# API schemas: O

## OnDemandRun

Type: object

One on-demand run of an evaluator version (T186.009).

- `id` (string, required)
- `evaluator_id` (string, required)
- `evaluator_version` (integer, required)
- `team_id` (string, required)
- `source` (string, required, one of `"selection"`, `"query"`, `"trace"`)
- `query` (string)
- `targets` (integer, required) — Targets chosen and found in the team
- `queued` (integer, required) — Jobs queued
- `status` (string, required, one of `"running"`, `"cancelled"`)
- `created_by` (string, required)
- `created_at` (string (date-time), required)
- `cancelled_by` (string)
- `cancelled_at` (string (date-time))
- `progress` (object, required)
  - `pending` (integer)
  - `running` (integer)
  - `done` (integer)
  - `failed` (integer)
  - `cancelled` (integer)
  - `outcomes` (object) — Finished jobs by outcome: ok, a skip or error reason (code_no_result, code_error, content_not_captured...), target_gone, not_run
    - any other key: integer
  - `finished` (boolean)

## OperationalAlertsDurationSetting

Type: object

- `value` (string, required) — Effective Go duration.
- `source` (string, required, one of `"yaml"`, `"default"`)

## OperationalAlertsNumberSetting

Type: object

- `value` (number, required)
- `source` (string, required, one of `"yaml"`, `"default"`)

## OperationalAlertsSettings

Type: object

Effective operational alert monitor, alerting.operational (T117): enabled (features.operational_alerts and alert_channels), events, restart_required (false: values apply from the next evaluation), and each threshold with its effective value and the source of that value.

- `enabled` (boolean, required)
- `events` (array of string, required)
- `restart_required` (boolean, required)
- `interval` ([OperationalAlertsDurationSetting](/docs/api/schemas/o/#operationalalertsdurationsetting), required)
- `cooldown` ([OperationalAlertsDurationSetting](/docs/api/schemas/o/#operationalalertsdurationsetting), required)
- `provider_error_ratio` ([OperationalAlertsNumberSetting](/docs/api/schemas/o/#operationalalertsnumbersetting), required)
- `provider_min_attempts` ([OperationalAlertsNumberSetting](/docs/api/schemas/o/#operationalalertsnumbersetting), required)
- `provider_slow_p95` ([OperationalAlertsDurationSetting](/docs/api/schemas/o/#operationalalertsdurationsetting), required)

## Organization

Type: object

- `id` (string, required) — org_default, org_&lt;hex&gt; (console) or a YAML id
- `name` (string, required)
- `source` (string, required, one of `"default"`, `"yaml"`, `"console"`)
- `restricted` (boolean, required) — When true allowed_models is the model ceiling; empty allows no model
- `allowed_models` (array of string, required)
- `version` (integer (int64), required)
- `created_at` (string (date-time))
- `teams` (integer, required) — Active teams in the organization
- `jit_email_domains` (array of string) — T168: JIT routing domains (empty without organization_admins)

## OrganizationEntitlementView

Type: object

- `organization_id` (string, required, pattern `^[A-Za-z0-9_-]{1,128}$`)
- `plan_id` (string, required) — Empty when source none denotes an unassigned tombstone
- `disabled` (boolean, required, default `false`)
- `version` (integer (int64), required, min 0)
- `source` (string, required, one of `"yaml"`, `"console"`, `"none"`)

## OrganizationInput

Type: object

- `name` (string, required, min length 1, max length 80)
- `allowed_models` (array of string, max items 200) — Model aliases or group:&lt;id&gt;; omit for no ceiling; * is not accepted
- `version` (integer (int64), min 0)
- `jit_email_domains` (array of string, max items 50) — T168 (organization_admins): lowercase domains; a new JIT user whose verified e-mail has one of them joins this organization. Omitted on update keeps the stored list.

## OrganizationModelAlias

Type: object

- `organization_id` (string, required)
- `id` (string, required)
- `alias_of` (string, required) — An exact canonical gateway model
- `disabled` (boolean, required)
- `source` (string, required, one of `"console"`, `"yaml"`)
- `version` (integer (int64), required)
- `updated_at` (string (date-time))
- `shadows` (string) — Canonical model of the gateway-wide alias of the same name, shadowed for this organization's keys
- `serving` (boolean, required)
- `problem` (string)

## OrganizationPlanBinding

Type: object

- `organization_id` (string, required, pattern `^[A-Za-z0-9_-]{1,128}$`)
- `plan_id` (string, required, pattern `^[a-z][a-z0-9_-]{0,63}$`)
- `disabled` (boolean, default `false`)

## OTLPAnyValue

Type: object

An OTLP AnyValue as OTLP/HTTP JSON writes it. The ingest reads stringValue and intValue only.

- `stringValue` (string)
- `intValue` (string or integer)
  - One of (1): string
  - One of (2): integer
- `boolValue` (boolean)
- `doubleValue` (number)

## OTLPIngestIssue

Type: object

- `code` (string, required, one of `"missing_model"`, `"invalid_tokens"`, `"model_not_priced"`, `"input_malformed"`, `"output_malformed"`, `"tags_malformed"`, `"invalid_session"`, `"unknown_operation"`, `"unsupported_dialect"`, `"attributes_dropped"`, `"content_not_captured"`)
- `attribute` (string)
- `effect` (string, required)
- `fix` (string, required)
- `detail` (string)

## OTLPIngestPolicy

Type: object

The OTLP ingest runtime policy (T186.016); an override replaces it as a whole.

- `max_request_bytes` (integer, required, min 1024, max 33554432) — Largest body, also after gzip is expanded (default 4194304)
- `max_spans_per_request` (integer, required, min 1, max 10000) — Most spans in one upload (default 1000)
- `max_traces_per_request` (integer, required, min 1, max 1000) — Most traces one upload touches (default 64)
- `max_concurrent_uploads` (integer, required, min 1, max 256) — Uploads one replica stores at once; past it 503 ingest_busy with Retry-After (default 8)
- `keep` (string, required, one of `"genai"`, `"genai_and_ancestors"`) — genai_and_ancestors (default) also keeps the non-GenAI spans that connect GenAI spans, as connectors

## OTLPKeyValue

Type: object

- `key` (string)
- `value` ([OTLPAnyValue](/docs/api/schemas/o/#otlpanyvalue))

## OTLPSignalBootSummary

Type: object

Safe immutable OTLP boot metadata. Configured means an enabled validated captured destination, never Collector health. No endpoint, host, environment name or credentials are returned. Changing these settings requires restart.

- `enabled` (boolean, required)
- `configured` (boolean, required)
- `source` (string or null, required, one of `"default"`, `"yaml"`, `"environment"`, `null`) — Null for disabled or uncaptured signals.
- `restart_required` (`true`, required)

## OTLPTraceExport

Type: object

OTLP/HTTP ExportTraceServiceRequest in JSON, as far as POST /v1/traces reads it (T186.019); members not listed are ignored. Resource attributes read: gen_ai.agent.name, else service.name, as the client's name. Span attributes read: gen_ai.operation.name, gen_ai.conversation.id, gen_ai.agent.name, gen_ai.agent.id, gen_ai.request.model, gen_ai.response.model, gen_ai.tool.name, gen_ai.tool.call.id (strings of at most 256 bytes) and gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.usage.cache_read.input_tokens, gen_ai.usage.cache_creation.input_tokens (integers). gen_ai.input.messages, gen_ai.output.messages, gen_ai.system_instructions, gen_ai.tool.call.arguments, gen_ai.tool.call.result, gen_ai.prompt and gen_ai.completion are discarded unread.

- `resourceSpans` (array of object)
  - `resource` (object)
    - `attributes` (array of [OTLPKeyValue](/docs/api/schemas/o/#otlpkeyvalue))
  - `scopeSpans` (array of object)
    - `spans` (array of object)

