# Generated public contract; edit the source and localization catalog.
openapi: 3.1.0
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
info:
  title: OrbitSpace Models and usage API
  version: 1.0.0
  description: Public v1 application contract for models and usage. Protocol lifecycle and capability availability are documented in the integration guides.
servers:
  - url: https://api.orbitspace.dev
security:
  - bearerAuth: []
paths:
  /api/v1/artifact-deliveries:report:
    post:
      tags:
        - UsageService
      operationId: UsageService_ReportExternalArtifactDeliveries
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReportExternalArtifactDeliveriesRequest"
        required: true
        description: Request body for report external artifact deliveries.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ReportExternalArtifactDeliveriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Report external artifact deliveries
      description: Report external artifact deliveries. Supply the fields defined in the request schema.
  /api/v1/model-allocations:
    get:
      tags:
        - ModelAllocationService
      operationId: ModelAllocationService_ListModelAllocations
      parameters:
        - name: tenant_id
          in: query
          description: |-
            The tenant API derives this from its authenticated principal. Platform
             operations select a tenant explicitly and require platform authority.
          schema:
            type: string
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: status
          in: query
          schema:
            type: string
          description: Status.
        - name: search
          in: query
          schema:
            type: string
          description: Search.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListModelAllocationsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List model allocations
      description: List model allocations. Use the declared pagination parameters to continue through results.
  /api/v1/model-allocations/{id}:
    get:
      tags:
        - ModelAllocationService
      operationId: ModelAllocationService_GetModelAllocation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: tenant_id
          in: query
          schema:
            type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelAllocation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get model allocation
      description: Get model allocation.
  /api/v1/model-allocations/{id}:mutate:
    post:
      tags:
        - ModelAllocationService
      operationId: ModelAllocationService_MutateModelAllocation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MutateModelAllocationRequest"
        required: true
        description: Request body for mutate model allocation.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelAllocation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Mutate model allocation
      description: Mutate model allocation. Supply the fields defined in the request schema.
  /api/v1/model-allocations:publish:
    post:
      tags:
        - ModelAllocationService
      operationId: ModelAllocationService_PublishModelAllocation
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishModelAllocationRequest"
        required: true
        description: Request body for publish model allocation.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelAllocation"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Publish model allocation
      description: Publish model allocation. Supply the fields defined in the request schema.
  /api/v1/usage/goals/{id}/model-financials:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetGoalModelFinancials
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GoalModelFinancials"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get goal model financials
      description: Get goal model financials.
  /api/v1/usage/invoice-exports:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListInvoiceExports
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInvoiceExportsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List invoice exports
      description: List invoice exports. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - UsageService
      operationId: UsageService_CreateInvoiceExport
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateInvoiceExportRequest"
        required: true
        description: Request body for create invoice export.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InvoiceExport"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create invoice export
      description: Create invoice export. Supply the fields defined in the request schema.
  /api/v1/usage/invoice-exports/{invoice_export_id}:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetInvoiceExport
      parameters:
        - name: invoice_export_id
          in: path
          required: true
          schema:
            type: string
          description: Invoice export id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InvoiceExport"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get invoice export
      description: Get invoice export.
  /api/v1/usage/invoice-exports/{invoice_export_id}/entries:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListInvoiceExportEntries
      parameters:
        - name: invoice_export_id
          in: path
          required: true
          schema:
            type: string
          description: Invoice export id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListInvoiceExportEntriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List invoice export entries
      description: List invoice export entries. Use the declared pagination parameters to continue through results.
  /api/v1/usage/invoice-exports/{invoice_export_id}/model-financial-entries:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListInvoiceFinancialEntries
      parameters:
        - name: invoice_export_id
          in: path
          required: true
          schema:
            type: string
          description: Invoice export id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListModelFinancialEntriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List invoice financial entries
      description: List invoice financial entries. Use the declared pagination parameters to continue through results.
  /api/v1/usage/invoice-exports/{invoice_export_id}:deliver:
    post:
      tags:
        - UsageService
      operationId: UsageService_DeliverInvoiceExport
      parameters:
        - name: invoice_export_id
          in: path
          required: true
          schema:
            type: string
          description: Invoice export id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeliverInvoiceExportRequest"
        required: true
        description: Request body for deliver invoice export.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InvoiceExport"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Deliver invoice export
      description: Deliver invoice export. Supply the fields defined in the request schema.
  /api/v1/usage/invoice-exports/{invoice_export_id}:retry:
    post:
      tags:
        - UsageService
      operationId: UsageService_RetryInvoiceExportDelivery
      parameters:
        - name: invoice_export_id
          in: path
          required: true
          schema:
            type: string
          description: Invoice export id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryInvoiceExportDeliveryRequest"
        required: true
        description: Request body for retry invoice export delivery.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/InvoiceExport"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Retry invoice export delivery
      description: Retry invoice export delivery. Supply the fields defined in the request schema.
  /api/v1/usage/ledger:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListUsageLedgerEntries
      parameters:
        - name: filter.run_id
          in: query
          schema:
            type: string
          description: Filter run id.
        - name: filter.task_id
          in: query
          schema:
            type: string
          description: Filter task id.
        - name: filter.agent_version_id
          in: query
          schema:
            type: string
          description: Filter agent version id.
        - name: filter.provider_registry_version_id
          in: query
          schema:
            type: string
          description: Filter provider registry version id.
        - name: filter.reporter_identity_id
          in: query
          schema:
            type: string
          description: Filter reporter identity id.
        - name: filter.start_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter start time.
        - name: filter.end_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter end time.
        - name: filter.source
          in: query
          schema:
            type: string
          description: Filter source.
        - name: filter.metering_point
          in: query
          schema:
            type: string
          description: Filter metering point.
        - name: filter.resource_type
          in: query
          schema:
            type: string
          description: Filter resource type.
        - name: filter.resource_id
          in: query
          schema:
            type: string
          description: Filter resource id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListUsageLedgerEntriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List usage ledger entries
      description: List usage ledger entries. Use the declared pagination parameters to continue through results.
  /api/v1/usage/model-allocations/{id}/spending:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetModelAllocationSpending
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelAllocationSpending"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get model allocation spending
      description: Get model allocation spending.
  /api/v1/usage/model-financials/entries:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListModelFinancialEntries
      parameters:
        - name: filter.start_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter start time.
        - name: filter.end_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter end time.
        - name: filter.run_id
          in: query
          schema:
            type: string
          description: Filter run id.
        - name: filter.task_id
          in: query
          schema:
            type: string
          description: Filter task id.
        - name: filter.model_allocation_id
          in: query
          schema:
            type: string
          description: Filter model allocation id.
        - name: filter.currency
          in: query
          schema:
            type: string
          description: Filter currency.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListModelFinancialEntriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List model financial entries
      description: List model financial entries. Use the declared pagination parameters to continue through results.
  /api/v1/usage/model-financials/summary:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetModelFinancialSummary
      parameters:
        - name: filter.start_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter start time.
        - name: filter.end_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter end time.
        - name: filter.run_id
          in: query
          schema:
            type: string
          description: Filter run id.
        - name: filter.task_id
          in: query
          schema:
            type: string
          description: Filter task id.
        - name: filter.model_allocation_id
          in: query
          schema:
            type: string
          description: Filter model allocation id.
        - name: filter.currency
          in: query
          schema:
            type: string
          description: Filter currency.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelFinancialSummary"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get model financial summary
      description: Get model financial summary.
  /api/v1/usage/quota:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetUsageQuota
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UsageQuota"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get usage quota
      description: Get usage quota.
    put:
      tags:
        - UsageService
      operationId: UsageService_UpdateUsageQuota
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateUsageQuotaRequest"
        required: true
        description: Request body for update usage quota.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UsageQuota"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update usage quota
      description: Update usage quota. Supply the fields defined in the request schema.
  /api/v1/usage/quota/alerts:
    get:
      tags:
        - UsageService
      operationId: UsageService_ListUsageQuotaAlerts
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListUsageQuotaAlertsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List usage quota alerts
      description: List usage quota alerts. Use the declared pagination parameters to continue through results.
  /api/v1/usage/quota/status:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetUsageQuotaStatus
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UsageQuotaStatus"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get usage quota status
      description: Get usage quota status.
  /api/v1/usage/summary:
    get:
      tags:
        - UsageService
      operationId: UsageService_GetUsageSummary
      parameters:
        - name: filter.run_id
          in: query
          schema:
            type: string
          description: Filter run id.
        - name: filter.task_id
          in: query
          schema:
            type: string
          description: Filter task id.
        - name: filter.agent_version_id
          in: query
          schema:
            type: string
          description: Filter agent version id.
        - name: filter.provider_registry_version_id
          in: query
          schema:
            type: string
          description: Filter provider registry version id.
        - name: filter.reporter_identity_id
          in: query
          schema:
            type: string
          description: Filter reporter identity id.
        - name: filter.start_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter start time.
        - name: filter.end_time
          in: query
          schema:
            type: string
            format: date-time
          description: Filter end time.
        - name: filter.source
          in: query
          schema:
            type: string
          description: Filter source.
        - name: filter.metering_point
          in: query
          schema:
            type: string
          description: Filter metering point.
        - name: filter.resource_type
          in: query
          schema:
            type: string
          description: Filter resource type.
        - name: filter.resource_id
          in: query
          schema:
            type: string
          description: Filter resource id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UsageSummary"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get usage summary
      description: Get usage summary.
  /api/v1/usage/task-model-financials:query:
    post:
      tags:
        - UsageService
      operationId: UsageService_ListTaskModelFinancials
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ListTaskModelFinancialsRequest"
        required: true
        description: Request body for list task model financials.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListTaskModelFinancialsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List task model financials
      description: List task model financials. Supply the fields defined in the request schema.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    CreateInvoiceExportRequest:
      type: object
      properties:
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        deliver:
          type: boolean
          description: Deliver.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Create invoice export request.
    DeliverInvoiceExportRequest:
      type: object
      properties:
        invoice_export_id:
          type: string
          description: Invoice export id.
      description: Deliver invoice export request.
    ExternalArtifactDelivery:
      type: object
      properties:
        source_event_id:
          type: string
          description: Source event id.
        artifact_id:
          type: string
          description: Artifact id.
        delivery_path:
          type: string
          description: Delivery path.
        request_id:
          type: string
          description: Request id.
        delivered_bytes:
          type: string
          description: Delivered bytes.
        started_at:
          type: string
          format: date-time
          description: Started at as an RFC 3339 timestamp.
        ended_at:
          type: string
          format: date-time
          description: Ended at as an RFC 3339 timestamp.
        observed_at:
          type: string
          format: date-time
          description: Observed at as an RFC 3339 timestamp.
        attributes:
          type: object
          additionalProperties:
            type: string
          description: Attributes map.
      description: |-
        ExternalArtifactDelivery records bytes already delivered by an
         operator-owned CDN, object proxy or download gateway. delivery_path is a
         stable non-secret identifier, not a URL.
    GoalModelFinancials:
      type: object
      properties:
        goal_id:
          type: string
          description: Goal id.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        totals:
          type: array
          items:
            $ref: "#/components/schemas/ModelFinancialTaskTotal"
          description: Totals list.
        budget_spending:
          $ref: "#/components/schemas/ModelChargeSpending"
          description: Budget spending.
      description: Lifetime charges for all Goal Tasks, phases, descendants and Run attempts.
    InvoiceExport:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        created_by:
          type: string
          description: Created by.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        ledger_cutoff:
          type: string
          format: date-time
          description: Ledger cutoff as an RFC 3339 timestamp.
        provider:
          type: string
          description: Provider.
        state:
          type: string
          description: State.
        ledger_entry_count:
          type: string
          description: Ledger entry count.
        ledger_manifest_digest:
          type: string
          description: Ledger manifest digest.
        line_items:
          type: array
          items:
            $ref: "#/components/schemas/InvoiceLineItem"
          description: Line items list.
        delivery_attempts:
          type: integer
          format: int32
          description: Delivery attempts.
        available_at:
          type: string
          format: date-time
          description: Available at as an RFC 3339 timestamp.
        provider_invoice_id:
          type: string
          description: Provider invoice id.
        delivered_at:
          type: string
          format: date-time
          description: Delivered at as an RFC 3339 timestamp.
        delivery_failed_at:
          type: string
          format: date-time
          description: Delivery failed at as an RFC 3339 timestamp.
        last_error:
          type: string
          description: Last error.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        model_financials:
          allOf:
            - $ref: "#/components/schemas/InvoiceModelFinancials"
          description: |-
            Frozen tenant charges, with signed adjustments and exact currency totals.
             Absent on historical v1 exports. Legacy model-cost line items in new
             exports are informational; they are not added to these tenant charges.
      description: Invoice export representation.
    InvoiceExportEntry:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        invoice_export_id:
          type: string
          description: Invoice export id.
        ledger_entry:
          $ref: "#/components/schemas/UsageLedgerEntry"
          description: Ledger entry.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Invoice export entry representation.
    InvoiceLineItem:
      type: object
      properties:
        dimension:
          type: string
          description: Dimension.
        unit:
          type: string
          description: Unit.
        quantity:
          type: string
          description: Quantity.
        currency:
          type: string
          description: Currency.
      description: Invoice line item representation.
    InvoiceModelFinancials:
      type: object
      properties:
        schema_version:
          type: string
          description: Schema version.
        ledger_entry_count:
          type: string
          description: Ledger entry count.
        ledger_manifest_digest:
          type: string
          description: Ledger manifest digest.
        totals:
          type: array
          items:
            $ref: "#/components/schemas/ModelFinancialCurrencyTotal"
          description: Totals list.
        legacy_usage_entry_count:
          type: string
          description: Legacy usage entry count.
        complete:
          type: boolean
          description: Complete.
      description: Invoice model financials representation.
    ListInvoiceExportEntriesResponse:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: "#/components/schemas/InvoiceExportEntry"
          description: Entries list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List invoice export entries response.
    ListInvoiceExportsResponse:
      type: object
      properties:
        exports:
          type: array
          items:
            $ref: "#/components/schemas/InvoiceExport"
          description: Exports list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List invoice exports response.
    ListModelAllocationsResponse:
      type: object
      properties:
        allocations:
          type: array
          items:
            $ref: "#/components/schemas/ModelAllocation"
          description: Allocations list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
        total_count:
          type: string
          description: Total count.
      description: List model allocations response.
    ListModelFinancialEntriesResponse:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: "#/components/schemas/ModelFinancialEntry"
          description: Entries list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
        start_time:
          type: string
          format: date-time
          description: Start time as an RFC 3339 timestamp.
        end_time:
          type: string
          format: date-time
          description: End time as an RFC 3339 timestamp.
      description: List model financial entries response.
    ListTaskModelFinancialsRequest:
      type: object
      properties:
        task_ids:
          type: array
          items:
            type: string
          description: Task ids list.
      description: |-
        At most 100 unique Tasks from the authenticated tenant. Only tenant charges
         are returned; supplier costs never enter tenant Task/Chat projections.
    ListTaskModelFinancialsResponse:
      type: object
      properties:
        tasks:
          type: array
          items:
            $ref: "#/components/schemas/TaskModelFinancials"
          description: Tasks list.
      description: List task model financials response.
    ListUsageLedgerEntriesResponse:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: "#/components/schemas/UsageLedgerEntry"
          description: Entries list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List usage ledger entries response.
    ListUsageQuotaAlertsResponse:
      type: object
      properties:
        alerts:
          type: array
          items:
            $ref: "#/components/schemas/UsageQuotaAlert"
          description: Alerts list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List usage quota alerts response.
    ModelAllocation:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        name:
          type: string
          description: Name.
        credential_mode:
          type: string
          description: Credential mode.
        status:
          type: string
          description: Status.
        is_default:
          type: boolean
          description: Is default.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        provider_registry_resource_id:
          type: string
          description: Provider registry resource id.
        current_version:
          $ref: "#/components/schemas/ModelAllocationVersion"
          description: Current version.
        model_policy_ref:
          type: string
          description: Model policy ref.
        created_by:
          type: string
          description: Created by.
        updated_by:
          type: string
          description: Updated by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Model allocation representation.
    ModelAllocationBudget:
      type: object
      properties:
        max_input_tokens:
          type: string
          description: Max input tokens.
        max_output_tokens:
          type: string
          description: Max output tokens.
        max_total_tokens:
          type: string
          description: Max total tokens.
        max_cost_microunits:
          type: string
          description: Max cost microunits.
        max_compute_ms:
          type: string
          description: Max compute ms.
        max_gpu_ms:
          type: string
          description: Max gpu ms.
      description: Model allocation budget representation.
    ModelAllocationConfiguration:
      type: object
      properties:
        provider_version_id:
          type: string
          description: Provider version id.
        managed_secret_id:
          type: string
          description: Managed secret id.
        enabled_models:
          type: array
          items:
            type: string
          description: Enabled models list.
        default_model:
          type: string
          description: Default model.
        rate_limits:
          $ref: "#/components/schemas/ModelAllocationRateLimits"
          description: Rate limits.
        budget:
          $ref: "#/components/schemas/ModelAllocationBudget"
          description: Budget.
        supplier_price_book_id:
          type: string
          description: |-
            Price assignments are platform-managed, including on BYOK allocations.
             Supplier price-book references are omitted from tenant responses.
        tenant_price_book_id:
          type: string
          description: Tenant price book id.
        monthly_tenant_charge_limit_microunits:
          type: string
          description: |-
            Platform-managed. Absence is unlimited; zero is an explicit zero ceiling.
             Currency is that of the assigned tenant price book, never supplier cost.
      description: Model allocation configuration representation.
    ModelAllocationRateLimits:
      type: object
      properties:
        requests_per_minute:
          type: string
          description: Requests per minute.
        input_tokens_per_minute:
          type: string
          description: Input tokens per minute.
        output_tokens_per_minute:
          type: string
          description: Output tokens per minute.
        max_concurrency:
          type: string
          description: Max concurrency.
      description: Model allocation rate limits representation.
    ModelAllocationSpending:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        model_allocation_id:
          type: string
          description: Model allocation id.
        configuration_version_id:
          type: string
          description: Configuration version id.
        currency:
          type: string
          description: Currency.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        limit_microunits:
          type: string
          description: Limit microunits.
        posted_microunits:
          type: string
          description: Exact decimal integers; unsettled exposure is distinct from posted charges.
        reserved_microunits:
          type: string
          description: Reserved microunits.
        available_microunits:
          type: string
          description: Available microunits.
        unknown_runs:
          type: string
          description: Unknown runs.
        uncertain_requests:
          type: string
          description: Uncertain requests.
        status:
          type: string
          description: Status.
        next_change_at:
          type: string
          description: |-
            Earliest prepared-request expiry or UTC month rollover. Clients can
             schedule one refresh at this deadline instead of polling balances.
          format: date-time
      description: Model allocation spending representation.
    ModelAllocationVersion:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        version:
          type: string
          description: Version.
        configuration:
          $ref: "#/components/schemas/ModelAllocationConfiguration"
          description: Configuration.
        content_digest:
          type: string
          description: Content digest.
        reason:
          type: string
          description: Reason.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Model allocation version representation.
    ModelChargeSpending:
      type: object
      properties:
        currency:
          type: string
          description: Currency.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        limit_microunits:
          type: string
          description: Limit microunits.
        posted_microunits:
          type: string
          description: Posted microunits.
        reserved_microunits:
          type: string
          description: Reserved microunits.
        available_microunits:
          type: string
          description: Available microunits.
        unknown_runs:
          type: string
          description: Unknown runs.
        uncertain_requests:
          type: string
          description: Uncertain requests.
        status:
          type: string
          description: Status.
        next_change_at:
          type: string
          format: date-time
          description: Next change at as an RFC 3339 timestamp.
      description: |-
        Exact money and unsettled exposure shared by tenant/application quotas.
         A nil legacy quota limit means unlimited; an unknown available amount never
         becomes a zero balance. Monetary sums do not have an int64 aggregate ceiling.
    ModelFinancialCurrencyTotal:
      type: object
      properties:
        purpose:
          type: string
          description: Purpose.
        currency:
          type: string
          description: Currency.
        posted_microunits:
          type: string
          description: |-
            Exact signed decimal integer, with no int64 aggregate or floating-point
             limit. This is the journal sum, not an estimate of unsettled money due.
        entry_count:
          type: string
          description: Entry count.
        run_count:
          type: string
          description: Run count.
        priced_runs:
          type: string
          description: Priced runs.
        free_runs:
          type: string
          description: Free runs.
        unpriced_runs:
          type: string
          description: Unpriced runs.
        incomplete_runs:
          type: string
          description: Incomplete runs.
      description: Model financial currency total representation.
    ModelFinancialEntry:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        usage_ledger_entry_id:
          type: string
          description: Usage ledger entry id.
        model_allocation_id:
          type: string
          description: Model allocation id.
        price_book_id:
          type: string
          description: Price book id.
        price_version_id:
          type: string
          description: Price version id.
        purpose:
          type: string
          description: Purpose.
        currency:
          type: string
          description: Currency.
        status:
          type: string
          description: Status.
        reason:
          type: string
          description: Reason.
        amount_microunits_total:
          type: string
          description: Amount microunits total.
        posted_microunits_total:
          type: string
          description: Posted microunits total.
        delta_microunits:
          type: string
          description: Negative values are explicit credits; older debits remain unchanged.
        usage_sequence:
          type: string
          description: Usage sequence.
        model_route_digest:
          type: string
          description: Model route digest.
        source_event_digest:
          type: string
          description: Source event digest.
        observed_at:
          type: string
          format: date-time
          description: Observed at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Model financial entry representation.
    ModelFinancialSummary:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        start_time:
          type: string
          format: date-time
          description: Start time as an RFC 3339 timestamp.
        end_time:
          type: string
          format: date-time
          description: End time as an RFC 3339 timestamp.
        totals:
          type: array
          items:
            $ref: "#/components/schemas/ModelFinancialCurrencyTotal"
          description: Totals list.
      description: Model financial summary representation.
    ModelFinancialTaskTotal:
      type: object
      properties:
        purpose:
          type: string
          description: Purpose.
        currency:
          type: string
          description: Currency.
        posted_microunits:
          type: string
          description: Posted microunits.
        run_count:
          type: string
          description: Run count.
        priced_runs:
          type: string
          description: Priced runs.
        free_runs:
          type: string
          description: Free runs.
        unpriced_runs:
          type: string
          description: Unpriced runs.
        incomplete_runs:
          type: string
          description: Incomplete runs.
      description: |-
        Current, lifetime Task projection across every Run attempt, not a monthly
         observation window. Decimal sums remain exact beyond int64 aggregate limits.
    MutateModelAllocationRequest:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        action:
          type: string
          description: Action.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        reason:
          type: string
          description: Reason.
      description: Mutate model allocation request.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details with OrbitSpace correlation extensions.
      required:
        - type
        - title
        - status
        - detail
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: Type.
        title:
          type: string
          description: Title.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Status.
        detail:
          type: string
          description: Detail.
        instance:
          type: string
          format: uri-reference
          description: Instance.
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]*$
          description: Code.
        request_id:
          type: string
          format: uuid
          description: Request id.
    PublishModelAllocationRequest:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        id:
          type: string
          description: Omit for creation; publishing an existing allocation requires its version.
        name:
          type: string
          description: Name.
        credential_mode:
          type: string
          description: Credential mode.
        is_default:
          type: boolean
          description: Is default.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        configuration:
          $ref: "#/components/schemas/ModelAllocationConfiguration"
          description: Configuration.
        reason:
          type: string
          description: Reason.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Publish model allocation request.
    ReportExternalArtifactDeliveriesRequest:
      type: object
      properties:
        deliveries:
          type: array
          items:
            $ref: "#/components/schemas/ExternalArtifactDelivery"
          description: Deliveries list.
      description: Report external artifact deliveries request.
    ReportExternalArtifactDeliveriesResponse:
      type: object
      properties:
        accepted:
          type: integer
          format: int32
          description: Accepted.
        replayed:
          type: integer
          format: int32
          description: Replayed.
      description: Report external artifact deliveries response.
    RetryInvoiceExportDeliveryRequest:
      type: object
      properties:
        invoice_export_id:
          type: string
          description: Invoice export id.
      description: Retry invoice export delivery request.
    TaskModelFinancials:
      type: object
      properties:
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        totals:
          type: array
          items:
            $ref: "#/components/schemas/ModelFinancialTaskTotal"
          description: Totals list.
        budget_spending:
          allOf:
            - $ref: "#/components/schemas/ModelChargeSpending"
          description: |-
            Separate lifetime envelope: includes descendant Tasks, while totals above
             describe this Task's own attempts. An admitted Delegation cap applies to
             its child Task subtree too. Absent when neither ceiling exists.
      description: Task model financials representation.
    UpdateUsageQuotaRequest:
      type: object
      properties:
        expected_version:
          type: string
          description: Expected version.
        currency:
          type: string
          description: Currency.
        limits:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Limits.
        alert_threshold_percent:
          type: integer
          format: int32
          description: Alert threshold percent.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Update usage quota request.
    UsageCostTotal:
      type: object
      properties:
        currency:
          type: string
          description: Currency.
        microunits:
          type: string
          description: Microunits.
      description: Usage cost total representation.
    UsageLedgerEntry:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        agent_version_id:
          type: string
          description: Agent version id.
        reporter_identity_id:
          type: string
          description: Reporter identity id.
        provider_registry_version_id:
          type: string
          description: Provider registry version id.
        sequence:
          type: string
          description: Event sequence number used for ordering and deduplication.
        worker_id:
          type: string
          description: Worker id.
        provider:
          type: string
          description: Provider.
        model:
          type: string
          description: Model.
        model_route_digest:
          type: string
          description: Model route digest.
        currency:
          type: string
          description: Currency.
        input_tokens_delta:
          type: string
          description: Input tokens delta.
        output_tokens_delta:
          type: string
          description: Output tokens delta.
        model_cost_microunits_delta:
          type: string
          description: Model cost microunits delta.
        compute_ms_delta:
          type: string
          description: Compute ms delta.
        gpu_ms_delta:
          type: string
          description: Gpu ms delta.
        input_tokens_total:
          type: string
          description: Input tokens total.
        output_tokens_total:
          type: string
          description: Output tokens total.
        model_cost_microunits_total:
          type: string
          description: Model cost microunits total.
        compute_ms_total:
          type: string
          description: Compute ms total.
        gpu_ms_total:
          type: string
          description: Gpu ms total.
        observed_at:
          type: string
          format: date-time
          description: Observed at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        source:
          type: string
          description: Source.
        source_event_id:
          type: string
          description: Source event id.
        resource_type:
          type: string
          description: Resource type.
        resource_id:
          type: string
          description: Resource id.
        metering_point:
          type: string
          description: Metering point.
        storage_byte_seconds_delta:
          type: string
          description: Storage byte seconds delta.
        artifact_egress_bytes_delta:
          type: string
          description: Artifact egress bytes delta.
        network_ingress_bytes_delta:
          type: string
          description: Network ingress bytes delta.
        network_egress_bytes_delta:
          type: string
          description: Network egress bytes delta.
        relay_bytes_delta:
          type: string
          description: Relay bytes delta.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        attributes:
          type: object
          additionalProperties:
            type: string
          description: Attributes map.
        cache_read_input_tokens_delta:
          type: string
          description: Cache read input tokens delta.
        cache_write_input_tokens_delta:
          type: string
          description: Cache write input tokens delta.
        cache_read_input_tokens_total:
          type: string
          description: Cache read input tokens total.
        cache_write_input_tokens_total:
          type: string
          description: Cache write input tokens total.
        cache_usage_reported:
          type: boolean
          description: Cache usage reported.
        cache_read_reported:
          type: boolean
          description: Cache read reported.
        cache_write_reported:
          type: boolean
          description: Cache write reported.
      description: Usage ledger entry representation.
    UsageQuota:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        version:
          type: string
          description: Version.
        currency:
          type: string
          description: Currency.
        limits:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Limits.
        alert_threshold_percent:
          type: integer
          format: int32
          description: Alert threshold percent.
        created_by:
          type: string
          description: Created by.
        updated_by:
          type: string
          description: Updated by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Usage quota representation.
    UsageQuotaAlert:
      type: object
      properties:
        model_spending:
          allOf:
            - $ref: "#/components/schemas/ModelChargeSpending"
          description: |-
            Frozen exact money evidence. Older integer fields are compatibility
             projections; absent on historical physical-meter alerts.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        usage_quota_id:
          type: string
          description: Usage quota id.
        quota_version:
          type: string
          description: Quota version.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        dimension:
          type: string
          description: Dimension.
        threshold_percent:
          type: integer
          format: int32
          description: Threshold percent.
        threshold_value:
          type: string
          description: Threshold value.
        limit_value:
          type: string
          description: Limit value.
        used_value:
          type: string
          description: Used value.
        reserved_value:
          type: string
          description: Reserved value.
        event_id:
          type: string
          description: Event id.
        published_at:
          type: string
          format: date-time
          description: Published at as an RFC 3339 timestamp.
        delivery_failed_at:
          type: string
          format: date-time
          description: Delivery failed at as an RFC 3339 timestamp.
        last_error:
          type: string
          description: Last error.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Usage quota alert representation.
    UsageQuotaAmounts:
      type: object
      properties:
        total_tokens:
          type: string
          description: Total tokens.
        model_cost_microunits:
          type: string
          description: Model cost microunits.
        compute_ms:
          type: string
          description: Compute ms.
        gpu_ms:
          type: string
          description: Gpu ms.
        storage_byte_seconds:
          type: string
          description: Storage byte seconds.
        artifact_egress_bytes:
          type: string
          description: Artifact egress bytes.
        network_ingress_bytes:
          type: string
          description: Network ingress bytes.
        network_egress_bytes:
          type: string
          description: Network egress bytes.
        relay_bytes:
          type: string
          description: Relay bytes.
      description: Usage quota amounts representation.
    UsageQuotaStatus:
      type: object
      properties:
        model_spending:
          $ref: "#/components/schemas/ModelChargeSpending"
          description: Model spending.
        quota:
          $ref: "#/components/schemas/UsageQuota"
          description: Quota.
        period_start:
          type: string
          format: date-time
          description: Period start as an RFC 3339 timestamp.
        period_end:
          type: string
          format: date-time
          description: Period end as an RFC 3339 timestamp.
        used:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Used.
        reserved:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Reserved.
        remaining:
          $ref: "#/components/schemas/UsageQuotaAmounts"
          description: Remaining.
        exhausted_dimensions:
          type: array
          items:
            type: string
          description: Exhausted dimensions list.
        unlimited_dimensions:
          type: array
          items:
            type: string
          description: Unlimited dimensions list.
        alerting_dimensions:
          type: array
          items:
            type: string
          description: Alerting dimensions list.
      description: Usage quota status representation.
    UsageSummary:
      type: object
      properties:
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        start_time:
          type: string
          format: date-time
          description: Start time as an RFC 3339 timestamp.
        end_time:
          type: string
          format: date-time
          description: End time as an RFC 3339 timestamp.
        entry_count:
          type: string
          description: Entry count.
        input_tokens:
          type: string
          description: Input tokens.
        output_tokens:
          type: string
          description: Output tokens.
        compute_ms:
          type: string
          description: Compute ms.
        gpu_ms:
          type: string
          description: Gpu ms.
        model_costs_by_currency:
          type: array
          items:
            $ref: "#/components/schemas/UsageCostTotal"
          description: Model costs by currency list.
        storage_byte_seconds:
          type: string
          description: Storage byte seconds.
        artifact_egress_bytes:
          type: string
          description: Artifact egress bytes.
        network_ingress_bytes:
          type: string
          description: Network ingress bytes.
        network_egress_bytes:
          type: string
          description: Network egress bytes.
        relay_bytes:
          type: string
          description: Relay bytes.
        cache_read_input_tokens:
          type: string
          description: Cache read input tokens.
        cache_write_input_tokens:
          type: string
          description: Cache write input tokens.
        cache_usage_reported:
          type: boolean
          description: Cache usage reported.
        cache_read_reported:
          type: boolean
          description: Cache read reported.
        cache_write_reported:
          type: boolean
          description: Cache write reported.
      description: Usage summary representation.
tags:
  - name: UsageService
    x-displayName: Usage and billing
    description: Usage and billing operations.
  - name: ModelAllocationService
    x-displayName: Model allocations
    description: Model allocations operations.
