@soat/sdk 0.57.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -864,6 +864,10 @@ type UpdateAgentRequest = {
864
864
  * Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.
865
865
  */
866
866
  version_label?: string | null;
867
+ /**
868
+ * Refuses the write unless the resource is at this version.
869
+ */
870
+ expected_version?: ExpectedVersion;
867
871
  };
868
872
  type CreateAgentGenerationRequest = {
869
873
  messages: Array<{
@@ -909,9 +913,7 @@ type CreateAgentGenerationRequest = {
909
913
  /**
910
914
  * Caller-supplied key/value metadata attached to the generation record for per-run audit attribution (e.g. the knowledge-corpus version that produced this action). Round-trips verbatim when the generation is fetched via the generations API. The bag is caller-owned and no key is reserved: server-owned state (usage attribution, the served agent version, the model route's record, the extraction summary) lives in its own top-level generation fields and cannot be written from here. Use the request's own `action_id` field to set the usage-attribution label.
911
915
  */
912
- metadata?: {
913
- [key: string]: unknown;
914
- } | null;
916
+ metadata?: NullableMetadataBag;
915
917
  /**
916
918
  * Per-generation knowledge retrieval override. Array filters (memory_store_ids, document_ids, document_paths) are unioned with the agent's stored knowledge_config; `tags` pairs are merged with the override winning per key; scalar fields (min_score, rrf_k, recency_half_life_days, limit) use the per-generation value when present.
917
919
  */
@@ -1585,6 +1587,14 @@ type ChatCompletionResponse = {
1585
1587
  };
1586
1588
  };
1587
1589
  };
1590
+ /**
1591
+ * The version the caller believes the resource holds. When the resource is at any other version the write is refused with `409 VERSION_CONFLICT` and nothing is written; `meta.current_version` on that response names the version in force.
1592
+ *
1593
+ * Omit it to write unconditionally. Omitting it does not make the write unordered: two writes that reach the server together are still serialized, and the one whose version was taken first is refused the same way. What the field adds is refusing a write whose author read the resource some time ago and has not seen what happened since.
1594
+ *
1595
+ * The `If-Match` header carries the same precondition for a client that prefers the HTTP spelling. Sending both with different versions is `400 VALIDATION_FAILED`.
1596
+ */
1597
+ type ExpectedVersion = number | null;
1588
1598
  type ConversationRecord = {
1589
1599
  /**
1590
1600
  * Conversation ID
@@ -1643,9 +1653,7 @@ type ConversationMessageRecord = {
1643
1653
  /**
1644
1654
  * Optional structured metadata attached to the message
1645
1655
  */
1646
- metadata?: {
1647
- [key: string]: unknown;
1648
- } | null;
1656
+ metadata?: NullableMetadataBag;
1649
1657
  /**
1650
1658
  * Full text content of the message
1651
1659
  */
@@ -1701,6 +1709,42 @@ type GenerateConversationMessageResponse = ({
1701
1709
  } & GenerateConversationMessageCompleted) | ({
1702
1710
  status: 'requires_action';
1703
1711
  } & GenerateConversationMessageRequiresAction);
1712
+ /**
1713
+ * An immutable archive of a document's content and annotations at one version.
1714
+ */
1715
+ type DocumentVersion = {
1716
+ /**
1717
+ * Public ID of the archived version
1718
+ */
1719
+ id?: string;
1720
+ /**
1721
+ * Public ID of the document this version belongs to
1722
+ */
1723
+ document_id?: string;
1724
+ /**
1725
+ * The archived version number
1726
+ */
1727
+ version?: number;
1728
+ /**
1729
+ * The document's versioned surface as it stood at this version: its `content`, `title`, `path`, `metadata`, `tags` and chunk configuration. A full snapshot rather than a diff, because what a restore has to reproduce is what a run read — which is a read by version, and a diff chain would have to be replayed to answer it.
1730
+ *
1731
+ * A withdrawal is archived as a version too, carrying `withdrawn: true` and no content. Restoring one is refused; restore the version before it.
1732
+ *
1733
+ * Deliberately open rather than a fixed schema: an archive written by an earlier release of SOAT reflects the document surface **of its own time**, so it may carry fields the current API no longer documents.
1734
+ */
1735
+ config?: {
1736
+ [key: string]: unknown;
1737
+ };
1738
+ /**
1739
+ * Optional human tag for this version, e.g. `pre-correction`. Set from the `version_label` of the write that archived it, or generated for a restore or a withdrawal.
1740
+ */
1741
+ label?: string | null;
1742
+ /**
1743
+ * Public ID of the user whose write produced this version; null for a write with no request user behind it.
1744
+ */
1745
+ created_by?: string | null;
1746
+ created_at?: Date;
1747
+ };
1704
1748
  type DocumentRecord = {
1705
1749
  /**
1706
1750
  * Document ID
@@ -1731,9 +1775,13 @@ type DocumentRecord = {
1731
1775
  */
1732
1776
  size?: number;
1733
1777
  /**
1734
- * Ingestion lifecycle state. `pending` — enqueued; `processing` — chunks being extracted and embedded; `ready` — fully indexed; `failed` — processing error (see the `error` field on `GET /documents/{id}/status`).
1778
+ * Ingestion lifecycle state. `pending` — enqueued; `processing` — chunks being extracted and embedded; `ready` — fully indexed; `failed` — processing error (see the `error` field on `GET /documents/{id}/status`); `withdrawn` — taken out of listings and search, with its chunks dropped, and restorable from an earlier version.
1735
1779
  */
1736
- status?: 'pending' | 'processing' | 'ready' | 'failed';
1780
+ status?: 'pending' | 'processing' | 'ready' | 'failed' | 'withdrawn';
1781
+ /**
1782
+ * The document's content version, starting at 1. Every write that changes the content or its annotations archives the state it replaced and increments this.
1783
+ */
1784
+ version?: number;
1737
1785
  /**
1738
1786
  * Text content (only present on getDocument, and only when status is ready)
1739
1787
  */
@@ -1750,9 +1798,32 @@ type DocumentRecord = {
1750
1798
  * Overlap in characters between consecutive windows used when `chunk_strategy=size`. Absent otherwise.
1751
1799
  */
1752
1800
  chunk_overlap?: number;
1801
+ /**
1802
+ * The typed edges this document asserts about others, on a single document read. Absent from a listing, which is a page of documents rather than of edges.
1803
+ */
1804
+ relations?: Array<DocumentRelation>;
1753
1805
  created_at?: Date;
1754
1806
  updated_at?: Date;
1755
1807
  };
1808
+ /**
1809
+ * A typed edge one document asserts about another, within one project.
1810
+ */
1811
+ type DocumentRelation = {
1812
+ id?: string;
1813
+ /**
1814
+ * What the asserting document claims: it was `derived_from` the other, `supersedes` it, or `cites` it.
1815
+ */
1816
+ type?: 'derived_from' | 'supersedes' | 'cites';
1817
+ /**
1818
+ * The document that asserts the edge
1819
+ */
1820
+ from_document_id?: string;
1821
+ /**
1822
+ * The document the edge points at
1823
+ */
1824
+ to_document_id?: string;
1825
+ created_at?: Date;
1826
+ };
1756
1827
  type IngestedDocumentRecord = DocumentRecord & {
1757
1828
  /**
1758
1829
  * Number of chunks created from the file.
@@ -1955,9 +2026,7 @@ type DatasetItem = {
1955
2026
  dataset_id?: string;
1956
2027
  input?: DatasetItemInput;
1957
2028
  expected_output?: string | null;
1958
- metadata?: {
1959
- [key: string]: unknown;
1960
- } | null;
2029
+ metadata?: NullableMetadataBag;
1961
2030
  /**
1962
2031
  * The generation this item was curated from. A curated item is a deliberate fixture: erasing the source generation neither deletes nor mutates it.
1963
2032
  */
@@ -2053,9 +2122,7 @@ type EvalRun = {
2053
2122
  /**
2054
2123
  * The caller-owned key/value metadata supplied when the run was started, returned verbatim. Null when the run was started without any (a trigger-started run included — see `trigger_id` for that provenance). The server writes nothing here.
2055
2124
  */
2056
- metadata?: {
2057
- [key: string]: unknown;
2058
- } | null;
2125
+ metadata?: NullableMetadataBag;
2059
2126
  started_at?: Date | null;
2060
2127
  finished_at?: Date | null;
2061
2128
  created_at?: Date;
@@ -2164,10 +2231,7 @@ type UploadFileBase64Request = {
2164
2231
  * MIME type of the file
2165
2232
  */
2166
2233
  content_type?: string;
2167
- /**
2168
- * JSON string with additional metadata
2169
- */
2170
- metadata?: string;
2234
+ metadata?: MetadataBag;
2171
2235
  };
2172
2236
  type PresignedUrlRequest = {
2173
2237
  /**
@@ -2214,10 +2278,7 @@ type UploadFileWithTokenRequest = {
2214
2278
  * MIME type of the file (overrides the token's content type)
2215
2279
  */
2216
2280
  content_type?: string;
2217
- /**
2218
- * JSON string with additional metadata
2219
- */
2220
- metadata?: string;
2281
+ metadata?: MetadataBag;
2221
2282
  };
2222
2283
  /**
2223
2284
  * Stored file metadata
@@ -2247,10 +2308,7 @@ type FileRecord = {
2247
2308
  * File size in bytes
2248
2309
  */
2249
2310
  size?: number | null;
2250
- /**
2251
- * JSON string with additional metadata
2252
- */
2253
- metadata?: string | null;
2311
+ metadata?: NullableMetadataBag;
2254
2312
  tags?: TagBag;
2255
2313
  /**
2256
2314
  * Creation timestamp
@@ -2291,9 +2349,7 @@ type FormationTemplate = {
2291
2349
  * Arbitrary metadata attached to the template. Supports the same substitution as `outputs`: `{ "ref": "logicalId" }` resolves to a created resource's physical ID, and `{ "param": "ParamName" }` / `{ "sub": "text ${ParamName}" }` embed parameter values. The raw expressions are preserved here; the resolved values from the last deploy are exposed on the formation's `resolved_metadata` field.
2292
2350
  *
2293
2351
  */
2294
- metadata?: {
2295
- [key: string]: unknown;
2296
- } | null;
2352
+ metadata?: NullableMetadataBag;
2297
2353
  };
2298
2354
  type ParameterDeclaration = {
2299
2355
  /**
@@ -2737,9 +2793,7 @@ type DatasetItemResourceProperties = {
2737
2793
  /**
2738
2794
  * Free-form tags on the case, e.g. `{"topic": "billing"}`
2739
2795
  */
2740
- metadata?: {
2741
- [key: string]: unknown;
2742
- } | null;
2796
+ metadata?: NullableMetadataBag;
2743
2797
  };
2744
2798
  /**
2745
2799
  * Binds an agent under test to a dataset and the scorers its outputs are judged by. `pass_threshold` is the pass rate a run must reach for its `passed` verdict — the gate an agent-version promotion consumes.
@@ -2791,9 +2845,7 @@ type DocumentResourceProperties = {
2791
2845
  /**
2792
2846
  * Arbitrary metadata key-value pairs
2793
2847
  */
2794
- metadata?: {
2795
- [key: string]: unknown;
2796
- } | null;
2848
+ metadata?: NullableMetadataBag;
2797
2849
  /**
2798
2850
  * Tag key-value pairs for filtering
2799
2851
  */
@@ -2862,9 +2914,7 @@ type MemoryResourceProperties = {
2862
2914
  /**
2863
2915
  * Arbitrary structured metadata attached to the memory
2864
2916
  */
2865
- metadata?: {
2866
- [key: string]: unknown;
2867
- } | null;
2917
+ metadata?: NullableMetadataBag;
2868
2918
  };
2869
2919
  /**
2870
2920
  * Declares a model route within the formation's project: a named, ordered list of provider+model failover targets with retry and circuit-breaker configuration. Consumers reference it through their own `model_route_id`, or inherit it as the project's `default_model_route_id`.
@@ -3058,9 +3108,9 @@ type FileResourceProperties = {
3058
3108
  */
3059
3109
  size?: number | null;
3060
3110
  /**
3061
- * JSON string with additional metadata
3111
+ * Caller-owned annotations on the file, stored as the object they were written as; `null` clears the bag. Keys are stored and returned verbatim in the casing supplied.
3062
3112
  */
3063
- metadata?: string | null;
3113
+ metadata?: NullableMetadataBag;
3064
3114
  };
3065
3115
  /**
3066
3116
  * Creates an access-control policy within the formation's project.
@@ -3174,7 +3224,7 @@ type SessionResourceProperties = {
3174
3224
  */
3175
3225
  inactivity_ttl_seconds?: number;
3176
3226
  /**
3177
- * Optional context object passed to tool calls
3227
+ * Optional context object passed to tool calls. Write-only: no read of a session returns it.
3178
3228
  */
3179
3229
  tool_context?: {
3180
3230
  [key: string]: unknown;
@@ -3229,9 +3279,7 @@ type IngestionRuleResourceProperties = {
3229
3279
  /**
3230
3280
  * Arbitrary JSON metadata
3231
3281
  */
3232
- metadata?: {
3233
- [key: string]: unknown;
3234
- } | null;
3282
+ metadata?: NullableMetadataBag;
3235
3283
  };
3236
3284
  /**
3237
3285
  * Declares what a memory store accepts from completed agent turns: a selector, an event, and a handler. With neither `agent_id` nor `tool_id` the built-in extractor runs, configurable through `prompt`, `ai_provider_id` and `model`. See the Memory Rules section of the Memories module docs.
@@ -3352,6 +3400,25 @@ type WorkflowResourceProperties = {
3352
3400
  [key: string]: unknown;
3353
3401
  } | null;
3354
3402
  };
3403
+ /**
3404
+ * Declares what `metadata` must satisfy for one resource type under one selector, so a template ships the corpus and the rule governing it together. `resource_type` is immutable: changing it in a template is a delete and a create.
3405
+ */
3406
+ type MetadataSchemaResourceProperties = {
3407
+ /**
3408
+ * The resource whose metadata this declaration governs.
3409
+ */
3410
+ resource_type: 'document';
3411
+ /**
3412
+ * The selector a `document` declaration must carry: the directory it governs, matched on a path boundary.
3413
+ */
3414
+ path_prefix?: string;
3415
+ /**
3416
+ * A JSON Schema, stored as written.
3417
+ */
3418
+ schema: {
3419
+ [key: string]: unknown;
3420
+ };
3421
+ };
3355
3422
  /**
3356
3423
  * Creates a quota — a project-scoped cap that blocks (`enforce`) or reports (`monitor`) when a windowed aggregate is exceeded. `requests` quotas are enforced by the request middleware; `tokens`/`cost_usd` quotas at the pre-generation check. Mirrors the quotas REST contract; `scope`, `metric`, `window`, and `meter_type` are immutable after creation (only `limit`, `mode`, and `on_unpriced` update).
3357
3424
  */
@@ -3432,7 +3499,7 @@ type GuardrailResourceProperties = {
3432
3499
  };
3433
3500
  type ResourceDeclaration = {
3434
3501
  /**
3435
- * Resource type. The built-in types are `ai_provider`, `tool`, `agent`, `actor`, `api_key`, `chat`, `conversation`, `dataset`, `dataset_item`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `model_route`, `eval`, `orchestration`, `policy`, `project_price`, `quota`, `secret`, `session`, `webhook`, `trigger` and `workflow`.
3502
+ * Resource type. The built-in types are `ai_provider`, `tool`, `agent`, `actor`, `api_key`, `chat`, `conversation`, `dataset`, `dataset_item`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `orchestration`, `policy`, `project_price`, `quota`, `secret`, `session`, `webhook`, `trigger` and `workflow`.
3436
3503
  *
3437
3504
  * This is deliberately not an enum: a deployment operator can register additional resource types backed by their own handler, and those are declared here exactly like a built-in one. The set a given deployment accepts is authoritative in the server, which rejects an unregistered type with `VALIDATION_FAILED` and lists what it does support.
3438
3505
  *
@@ -3454,9 +3521,7 @@ type ResourceDeclaration = {
3454
3521
  *
3455
3522
  */
3456
3523
  deletion_policy?: 'delete' | 'retain';
3457
- metadata?: {
3458
- [key: string]: unknown;
3459
- } | null;
3524
+ metadata?: NullableMetadataBag;
3460
3525
  };
3461
3526
  type FormationResource = {
3462
3527
  /**
@@ -3513,9 +3578,7 @@ type Formation = {
3513
3578
  * Static annotations stored on the formation record (supplied at create/update). Not a substitution site — `sub`/`param`/`ref` expressions are rejected. Use the template's top-level `metadata` block for deploy-time substitution (see `resolved_metadata`).
3514
3579
  *
3515
3580
  */
3516
- metadata?: {
3517
- [key: string]: unknown;
3518
- } | null;
3581
+ metadata?: NullableMetadataBag;
3519
3582
  /**
3520
3583
  * The template's top-level `metadata` block after parameter (`sub`/`param`) and resource (`ref`) substitution at the last deploy. Null when the template declares no metadata.
3521
3584
  *
@@ -3847,9 +3910,7 @@ type Generation = {
3847
3910
  * Caller-owned key/value annotations, attached at create time (via the `metadata` field on the create-agent-generation request) or afterwards (via the update-generation request), and returned verbatim. The server writes nothing here: every piece of state it owns — usage attribution, the served agent version, the route's record, the extraction summary, internal recovery state — is a field of its own, so no key written here can reach platform state. Keys are never transformed, and no key is reserved.
3848
3911
  *
3849
3912
  */
3850
- metadata?: {
3851
- [key: string]: unknown;
3852
- } | null;
3913
+ metadata?: NullableMetadataBag;
3853
3914
  /**
3854
3915
  * When the generation's content was purged. Non-null means `metadata`, `error`, `extraction` and the internal recovery state have been cleared, while the usage/audit skeleton — ids, timestamps, status, stop reason and the attribution fields — is preserved.
3855
3916
  *
@@ -3872,9 +3933,7 @@ type UpdateGenerationRequest = {
3872
3933
  * Caller-supplied key/value metadata to shallow-merge into the generation record's caller-owned `metadata` bag. No key is reserved: server-owned state lives in its own top-level fields and cannot be written from here.
3873
3934
  *
3874
3935
  */
3875
- metadata: {
3876
- [key: string]: unknown;
3877
- };
3936
+ metadata: MetadataBag;
3878
3937
  };
3879
3938
  /**
3880
3939
  * One tool call the model made during a step.
@@ -4193,6 +4252,10 @@ type UpdateGuardrailRequest = {
4193
4252
  * Optional tag for the config version this write archives (e.g. `pre-tightening`). Annotates the version only — it is not stored on the guardrail and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes no policy, since no version is created.
4194
4253
  */
4195
4254
  version_label?: string;
4255
+ /**
4256
+ * Refuses the write unless the resource is at this version.
4257
+ */
4258
+ expected_version?: ExpectedVersion;
4196
4259
  };
4197
4260
  type IngestionRule = {
4198
4261
  id?: string;
@@ -4209,9 +4272,7 @@ type IngestionRule = {
4209
4272
  chunk_strategy?: string | null;
4210
4273
  chunk_size?: number | null;
4211
4274
  chunk_overlap?: number | null;
4212
- metadata?: {
4213
- [key: string]: unknown;
4214
- } | null;
4275
+ metadata?: NullableMetadataBag;
4215
4276
  created_at?: Date;
4216
4277
  updated_at?: Date;
4217
4278
  };
@@ -4264,9 +4325,7 @@ type DocumentKnowledgeResult = {
4264
4325
  /**
4265
4326
  * Arbitrary metadata attached to the document, returned verbatim in the casing it was written with at create/update time (e.g. a key written as `strapiDocumentId` is returned as `strapiDocumentId`, not `strapi_document_id`) — it is not converted between snake_case and camelCase like other response fields.
4266
4327
  */
4267
- metadata?: {
4268
- [key: string]: unknown;
4269
- };
4328
+ metadata?: MetadataBag;
4270
4329
  tags?: TagBag;
4271
4330
  /**
4272
4331
  * Full text content of the document
@@ -4375,17 +4434,19 @@ type Memory = {
4375
4434
  /**
4376
4435
  * Arbitrary structured metadata attached to the memory
4377
4436
  */
4378
- metadata?: {
4379
- [key: string]: unknown;
4380
- } | null;
4437
+ metadata?: NullableMetadataBag;
4381
4438
  /**
4382
- * When the memory was superseded. Null means the memory is currently valid. Invalidated memories are excluded from listing, from write deduplication, and from knowledge search, but remain readable by ID — with their original text — for audit.
4439
+ * When the memory stopped holding, whether a supersede replaced it or a retraction withdrew it. Null means the memory is currently valid. Invalidated memories are excluded from listing, from write deduplication, and from knowledge search, but remain readable by ID — with their original text — for audit.
4383
4440
  */
4384
4441
  invalidated_at?: Date | null;
4385
4442
  /**
4386
- * The memory that replaced this one, when it was superseded. Null for valid memories.
4443
+ * The memory that replaced this one, when it was superseded. Null for a valid memory and for a retracted one, which nothing replaced.
4387
4444
  */
4388
4445
  superseded_by_memory_id?: string | null;
4446
+ /**
4447
+ * The memory's write version, starting at 1 and incremented on every update. States a precondition against it with `expected_version` or `If-Match` on `PUT /memories/{memory_id}`.
4448
+ */
4449
+ version?: number;
4389
4450
  created_at?: Date;
4390
4451
  updated_at?: Date;
4391
4452
  };
@@ -4402,11 +4463,11 @@ type MemoryAssertion = {
4402
4463
  id?: string;
4403
4464
  memory_store_id?: string;
4404
4465
  /**
4405
- * The memory this assertion resolved into: the new memory for `created` and `superseded`, the existing memory that matched for `skipped`. Null only once that memory has been deleted.
4466
+ * The memory this assertion resolved into: the new memory for `created` and `superseded`, the existing memory that matched for `skipped`, the memory withdrawn for `retracted`. Null only once that memory has been deleted.
4406
4467
  */
4407
4468
  memory_id?: string | null;
4408
4469
  /**
4409
- * The memory this assertion retired, on a `superseded` outcome; null otherwise. Read back from `memories.superseded_by_memory_id` rather than stored here, because validity lives on the memory — where every read filters it — and exactly one memory is superseded per assertion.
4470
+ * The memory this assertion retired, on a `superseded` outcome; null otherwise, a retraction included — it retires its own memory, which `memory_id` already names. Read back from `memories.superseded_by_memory_id` rather than stored here, because validity lives on the memory — where every read filters it — and exactly one memory is superseded per assertion.
4410
4471
  */
4411
4472
  superseded_memory_id?: string | null;
4412
4473
  /**
@@ -4431,15 +4492,15 @@ type MemoryAssertion = {
4431
4492
  principal_type?: string;
4432
4493
  principal_id?: string;
4433
4494
  /**
4434
- * What the write resolved to. `created` is a distinct fact, `superseded` is the same fact changed (the top match was invalidated and replaced), `skipped` is a fact already known.
4495
+ * What the write resolved to. `created` is a distinct fact, `superseded` is the same fact changed (the top match was invalidated and replaced), `skipped` is a fact already known, `retracted` is a fact that stopped holding with nothing replacing it.
4435
4496
  */
4436
- outcome?: 'created' | 'superseded' | 'skipped';
4497
+ outcome?: 'created' | 'superseded' | 'skipped' | 'retracted';
4437
4498
  /**
4438
- * The cosine similarity the outcome was decided against — the top match's, or the declared target's when `declared` is true, where it decides nothing and only records how far apart the two statements were. Null when there was nothing to compare against, or when the content could not be embedded.
4499
+ * The cosine similarity the outcome was decided against — the top match's, or the declared target's when `declared` is true, where it decides nothing and only records how far apart the two statements were. Null when there was nothing to compare against, when the content could not be embedded, and on a `retracted` outcome, which compares nothing.
4439
4500
  */
4440
4501
  similarity?: number | null;
4441
4502
  /**
4442
- * Whether the write named the memory it replaced (`supersedes` on create) instead of the thresholds choosing one. Always false on a `created` or `skipped` outcome.
4503
+ * Whether the write named the memory it replaced (`supersedes` on create) instead of the thresholds choosing one. Always false on a `created`, `skipped` or `retracted` outcome.
4443
4504
  */
4444
4505
  declared?: boolean;
4445
4506
  created_at?: Date;
@@ -4487,6 +4548,57 @@ type MemoryStore = {
4487
4548
  created_at?: Date;
4488
4549
  updated_at?: Date;
4489
4550
  };
4551
+ /**
4552
+ * Narrows results by the `metadata` bag. Each key is a field; its value is either a value to match exactly, or an object naming one or more operators.
4553
+ *
4554
+ * Equality and `in` match the stored value exactly, so `3` and `"3"` are different filters.
4555
+ *
4556
+ * `gt`, `gte`, `lt` and `lte` order the field against the operand, and the operand's own JSON type says which comparison is meant: a number orders numerically, a string lexicographically. They work on any field, in any scope. A document whose field holds another type is excluded from the comparison rather than erroring on it, so a range never fails on a bag that happens to hold text where another holds a number. An operand that is neither a number nor a string — a boolean, `null`, a list, an object — has no ordering and is `400 VALIDATION_FAILED`, naming the field in `meta.field`.
4557
+ */
4558
+ type MetadataFilter = {
4559
+ [key: string]: unknown;
4560
+ };
4561
+ type MetadataSchemaRecord = {
4562
+ /**
4563
+ * Public ID (mdschema_ prefix)
4564
+ */
4565
+ id?: string;
4566
+ project_id?: string;
4567
+ /**
4568
+ * The resource whose metadata this declaration governs.
4569
+ */
4570
+ resource_type?: 'document';
4571
+ /**
4572
+ * The selector, in the field its resource type is addressed by. A document's is the directory it is filed under.
4573
+ */
4574
+ path_prefix?: string;
4575
+ /**
4576
+ * The declared JSON Schema, as written.
4577
+ */
4578
+ schema?: {
4579
+ [key: string]: unknown;
4580
+ };
4581
+ created_at?: Date;
4582
+ updated_at?: Date;
4583
+ };
4584
+ /**
4585
+ * Caller-owned annotations on a resource, stored as the object they were written as: the types a value was written with are the types a read returns, so a filter can ask an ordering question about a number. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
4586
+ *
4587
+ * No key is reserved, and that is the point: every piece of state the platform owns lives in its own typed column, so nothing written here reaches platform state. The platform never reads the bag — it is not an IAM context, not a policy input and not part of a prompt — which is what separates it from a tag bag.
4588
+ */
4589
+ type MetadataBag = {
4590
+ [key: string]: unknown;
4591
+ };
4592
+ /**
4593
+ * A `MetadataBag` on a field where `null` is meaningful — a full-replacement update that clears the bag, or a record whose bag was never set.
4594
+ */
4595
+ type NullableMetadataBag = {
4596
+ [key: string]: unknown;
4597
+ } | null;
4598
+ /**
4599
+ * A `MetadataBag` as JSON text. A multipart field carries text, so the object travels serialized on those surfaces and is parsed on arrival; a JSON body carries the object itself. Text that is not a JSON object is `400 VALIDATION_FAILED`.
4600
+ */
4601
+ type MetadataBagText = string;
4490
4602
  type ModelRouteTarget = {
4491
4603
  /**
4492
4604
  * AI provider in the route's project
@@ -4985,6 +5097,10 @@ type UpdateOrchestrationRequest = {
4985
5097
  * Optional tag for the version this write archives, e.g. `pre-rewire`. Ignored when the write changes no graph field, since no version is archived.
4986
5098
  */
4987
5099
  version_label?: string;
5100
+ /**
5101
+ * Refuses the write unless the resource is at this version.
5102
+ */
5103
+ expected_version?: ExpectedVersion;
4988
5104
  };
4989
5105
  /**
4990
5106
  * An immutable archive of an orchestration's graph at one version.
@@ -5090,9 +5206,7 @@ type OrchestrationRun = {
5090
5206
  /**
5091
5207
  * The caller-owned key/value metadata supplied at run creation, returned verbatim. Null when the run was started without any. The server writes nothing here and no key is reserved; the bag is never merged into `state`, so nothing in it reaches the graph.
5092
5208
  */
5093
- metadata?: {
5094
- [key: string]: unknown;
5095
- } | null;
5209
+ metadata?: NullableMetadataBag;
5096
5210
  /**
5097
5211
  * The deduplication key the run was started under, unique within the project and claimed for as long as the run record exists. Null for a run started without one, which every platform-started run is.
5098
5212
  */
@@ -5261,7 +5375,7 @@ type StartOrchestrationRunRequest = {
5261
5375
  /**
5262
5376
  * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call made by an agent node of this run — including the agents of any child run a `loop` or `sub_orchestration` node starts. The header name is `X-Soat-Context-` plus the key verbatim; no character is re-cased.
5263
5377
  *
5264
- * The bag is stored on the run and re-read on every step, so it survives an `awaiting_input` pause, a `sleeping` wait, a background worker drive and a crash redrive. It is **write-only**: a run is a record every principal who may read runs can read, and a credential in it is not theirs to see, so it is never returned on one. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY` and no run is created.
5378
+ * The bag is stored on the run and re-read on every step, so it survives an `awaiting_input` pause, a `sleeping` wait, a background worker drive and a crash redrive. It is **write-only**: a run is a record every principal who may read runs can read, and a credential in it is not theirs to see, so it is never returned on one. It also does not outlive the run: reaching a terminal status (`succeeded`, `failed`, `cancelled` or `expired`) clears it. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY` and no run is created.
5265
5379
  *
5266
5380
  * The reserved identity keys (`session_id`, `actor_id`, `actor_external_id`) are stripped at generation time — a caller cannot address them from here.
5267
5381
  */
@@ -5275,9 +5389,7 @@ type StartOrchestrationRunRequest = {
5275
5389
  *
5276
5390
  * It is **not** merged into run state: no graph node sees it, and an `input_schema` never has to tolerate it — which is what makes it the place for an infrastructural label, rather than `input`. Keys are never transformed. It is not inherited by the child runs a `loop` or `sub_orchestration` node starts; each child carries whatever the graph gives it, which today is nothing.
5277
5391
  */
5278
- metadata?: {
5279
- [key: string]: unknown;
5280
- };
5392
+ metadata?: MetadataBag;
5281
5393
  /**
5282
5394
  * Deduplication key, unique within the project, that makes a retry of an ambiguous failure safe. The first request under a key starts the run and answers `201`; any later request carrying the same key answers `200` with that same run, whatever state it has reached — including a retry that arrives while the original is still running.
5283
5395
  *
@@ -5301,6 +5413,24 @@ type ValidateOrchestrationRequest = {
5301
5413
  [key: string]: unknown;
5302
5414
  } | null;
5303
5415
  };
5416
+ type OrchestrationValidationError = {
5417
+ /**
5418
+ * Location of the issue (e.g. nodes[1].input_mapping.val).
5419
+ */
5420
+ path?: string;
5421
+ /**
5422
+ * Human-readable description of the issue.
5423
+ */
5424
+ message?: string;
5425
+ };
5426
+ type OrchestrationValidationResult = {
5427
+ /**
5428
+ * True when there are no blocking errors.
5429
+ */
5430
+ valid: boolean;
5431
+ errors: Array<OrchestrationValidationError>;
5432
+ warnings: Array<OrchestrationValidationError>;
5433
+ };
5304
5434
  type PolicyStatement = {
5305
5435
  effect: 'Allow' | 'Deny';
5306
5436
  action: Array<string>;
@@ -5503,12 +5633,6 @@ type SessionRecord = {
5503
5633
  generating_at?: Date | null;
5504
5634
  created_at?: Date;
5505
5635
  updated_at?: Date;
5506
- /**
5507
- * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this session. The header name is the deployment's configured context prefix (`X-Soat-Context-` by default) plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
5508
- */
5509
- tool_context?: {
5510
- [key: string]: string;
5511
- } | null;
5512
5636
  /**
5513
5637
  * Number of seconds of inactivity after which the session expires. 0 means the session never expires.
5514
5638
  */
@@ -5582,7 +5706,7 @@ type CreateSessionRequest = {
5582
5706
  */
5583
5707
  auto_generate?: boolean;
5584
5708
  /**
5585
- * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this session. The header name is the deployment's configured context prefix (`X-Soat-Context-` by default) plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
5709
+ * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this session. The header name is the deployment's configured context prefix (`X-Soat-Context-` by default) plus the key verbatim — no character is re-cased. Keys are stored exactly as sent and never case-converted. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`. `session_id`, `actor_id` and `actor_external_id` are server-derived and dropped from the stored bag, in any casing. Write-only: no read of a session returns it. It also does not outlive the session: closing or expiring it clears the bag.
5586
5710
  */
5587
5711
  tool_context?: {
5588
5712
  [key: string]: string;
@@ -5611,7 +5735,7 @@ type UpdateSessionRequest = {
5611
5735
  */
5612
5736
  auto_generate?: boolean;
5613
5737
  /**
5614
- * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this session. The header name is the deployment's configured context prefix (`X-Soat-Context-` by default) plus the key verbatim — no character is re-cased. Keys are never case-converted — they round-trip exactly as sent. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`.
5738
+ * Key-value pairs forwarded as `X-Soat-Context-<key>` headers on every `http`, `mcp` and `builtin` tool call in this session. The header name is the deployment's configured context prefix (`X-Soat-Context-` by default) plus the key verbatim — no character is re-cased. Keys are stored exactly as sent and never case-converted. A key that is not a valid HTTP header name, or two keys that map to the same header, are rejected with `400 INVALID_TOOL_CONTEXT_KEY`. `session_id`, `actor_id` and `actor_external_id` are server-derived and dropped from the stored bag, in any casing. Write-only: no read of a session returns it. It also does not outlive the session: closing or expiring it clears the bag.
5615
5739
  */
5616
5740
  tool_context?: {
5617
5741
  [key: string]: string;
@@ -5742,6 +5866,8 @@ type SubmitSessionToolOutputsRequest = {
5742
5866
  * Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `soat:ResourceTag/<key>` condition.
5743
5867
  *
5744
5868
  * Keys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.
5869
+ *
5870
+ * The bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.
5745
5871
  */
5746
5872
  type TagBag = {
5747
5873
  [key: string]: string;
@@ -5772,9 +5898,7 @@ type Task = {
5772
5898
  /**
5773
5899
  * The caller-owned key/value metadata supplied when the task was created, returned verbatim. Null when the task was created without any. Unlike `payload` it is invisible to guards and to `payload_writes`, so it is the place for an attribution label rather than task data.
5774
5900
  */
5775
- metadata?: {
5776
- [key: string]: unknown;
5777
- } | null;
5901
+ metadata?: NullableMetadataBag;
5778
5902
  /**
5779
5903
  * Server-owned. The result of the current state's last completed dispatch, overwritten on every dispatch. Read-only — exposed to transition guards and `on_complete`/`payload_writes` expressions as `task.last_result`, a namespace a caller cannot write.
5780
5904
  */
@@ -5870,9 +5994,7 @@ type CreateTaskRequest = {
5870
5994
  *
5871
5995
  * Prefer this over `payload` for anything that is not task data: `payload` is read by every guard as `task.payload` and may be written by the workflow's declared `payload_writes`, so a label parked there is neither invisible to the state machine nor safe from it. A non-object is rejected with `400 VALIDATION_FAILED` and no task is created.
5872
5996
  */
5873
- metadata?: {
5874
- [key: string]: unknown;
5875
- };
5997
+ metadata?: MetadataBag;
5876
5998
  };
5877
5999
  type UpdateTaskRequest = {
5878
6000
  title?: string;
@@ -6463,6 +6585,14 @@ type TriggerFiring = {
6463
6585
  error?: {
6464
6586
  [key: string]: unknown;
6465
6587
  } | null;
6588
+ /**
6589
+ * `<event_id>:<trigger_id>` for an `event` firing, null for every other source. The same event reaching the same trigger twice produces one firing under this key, so a consumer reading firings can recognise a redelivery.
6590
+ */
6591
+ idempotency_key?: string | null;
6592
+ /**
6593
+ * Dispatch attempts started. Above 1 means an earlier attempt was interrupted before it recorded a result and the firing was redelivered — not that the target refused it, which is recorded terminally in `error` and never retried.
6594
+ */
6595
+ attempts?: number;
6466
6596
  started_at?: Date | null;
6467
6597
  completed_at?: Date | null;
6468
6598
  created_at?: Date;
@@ -7159,6 +7289,10 @@ type UpdateWorkflowRequest = {
7159
7289
  * Optional tag for the version this write archives, e.g. `pre-rewire`. Ignored when the write changes no definition field, since no version is archived.
7160
7290
  */
7161
7291
  version_label?: string;
7292
+ /**
7293
+ * Refuses the write unless the resource is at this version.
7294
+ */
7295
+ expected_version?: ExpectedVersion;
7162
7296
  };
7163
7297
  /**
7164
7298
  * An immutable archive of a workflow's state machine at one version.
@@ -7225,10 +7359,7 @@ type FileRecordWritable = {
7225
7359
  * File size in bytes
7226
7360
  */
7227
7361
  size?: number | null;
7228
- /**
7229
- * JSON string with additional metadata
7230
- */
7231
- metadata?: string | null;
7362
+ metadata?: NullableMetadataBag;
7232
7363
  tags?: TagBag;
7233
7364
  /**
7234
7365
  * Creation timestamp
@@ -7247,10 +7378,18 @@ type ApprovalId = string;
7247
7378
  * Continuation chain ID
7248
7379
  */
7249
7380
  type ChainId = string;
7381
+ /**
7382
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
7383
+ */
7384
+ type IfMatchVersion = string;
7250
7385
  /**
7251
7386
  * Exception item ID
7252
7387
  */
7253
7388
  type ExceptionId = string;
7389
+ /**
7390
+ * A `MetadataFilter` as JSON, url-encoded. It travels as JSON rather than as `key:value` pairs because the match is exact and a query string cannot otherwise say whether `3` is the number or the string.
7391
+ */
7392
+ type MetadataQuery = string;
7254
7393
  /**
7255
7394
  * Public ID of the orchestration (orch_...)
7256
7395
  */
@@ -7338,6 +7477,58 @@ type ListActivityResponses = {
7338
7477
  };
7339
7478
  };
7340
7479
  type ListActivityResponse = ListActivityResponses[keyof ListActivityResponses];
7480
+ type ExportActivityData = {
7481
+ body?: never;
7482
+ path?: never;
7483
+ query: {
7484
+ /**
7485
+ * Project whose activity is exported
7486
+ */
7487
+ project_id: string;
7488
+ /**
7489
+ * Only entries of this kind
7490
+ */
7491
+ kind?: string;
7492
+ /**
7493
+ * Only entries of this severity
7494
+ */
7495
+ severity?: string;
7496
+ /**
7497
+ * Only entries an agent produced
7498
+ */
7499
+ agent_id?: string;
7500
+ /**
7501
+ * Only entries a generation produced
7502
+ */
7503
+ generation_id?: string;
7504
+ /**
7505
+ * Only entries an orchestration run produced
7506
+ */
7507
+ orchestration_run_id?: string;
7508
+ };
7509
+ url: '/api/v1/activity/export';
7510
+ };
7511
+ type ExportActivityErrors = {
7512
+ /**
7513
+ * `project_id` is required
7514
+ */
7515
+ 400: unknown;
7516
+ /**
7517
+ * Unauthorized
7518
+ */
7519
+ 401: unknown;
7520
+ /**
7521
+ * Forbidden
7522
+ */
7523
+ 403: unknown;
7524
+ };
7525
+ type ExportActivityResponses = {
7526
+ /**
7527
+ * A newline-delimited stream of activity entries. Each line is a JSON object with the same fields as `ActivityEntry`.
7528
+ */
7529
+ 200: string;
7530
+ };
7531
+ type ExportActivityResponse = ExportActivityResponses[keyof ExportActivityResponses];
7341
7532
  type ListActorsData = {
7342
7533
  body?: never;
7343
7534
  path?: never;
@@ -7824,6 +8015,12 @@ type GetAgentResponses = {
7824
8015
  type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
7825
8016
  type PatchAgentData = {
7826
8017
  body: UpdateAgentRequest;
8018
+ headers?: {
8019
+ /**
8020
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
8021
+ */
8022
+ 'If-Match'?: string;
8023
+ };
7827
8024
  path: {
7828
8025
  agent_id: string;
7829
8026
  };
@@ -9685,11 +9882,9 @@ type AddConversationMessageData = {
9685
9882
  */
9686
9883
  position?: number;
9687
9884
  /**
9688
- * Optional structured metadata to attach to the message (e.g. phone number, channel). Stored as-is and injected into the AI prompt context.
9885
+ * Caller-owned annotations on the message (e.g. a phone number, a channel), stored as sent and returned verbatim. The platform does not read the bag, so nothing in it reaches the model: a value the model should see belongs in `message`.
9689
9886
  */
9690
- metadata?: {
9691
- [key: string]: unknown;
9692
- } | null;
9887
+ metadata?: NullableMetadataBag;
9693
9888
  };
9694
9889
  path: {
9695
9890
  /**
@@ -9943,11 +10138,23 @@ type ListDocumentsData = {
9943
10138
  * Only documents filed under this directory. The prefix is a path boundary, not a substring: `/reports` returns `/reports/q1.txt` and never `/reports-archive/q1.txt`, and `/` selects the whole project. A leading slash is optional and a trailing one is ignored, so `reports`, `/reports` and `/reports/` are the same filter. `%` and `_` are literal characters, not wildcards.
9944
10139
  */
9945
10140
  path_prefix?: string;
10141
+ /**
10142
+ * Include withdrawn documents. A withdrawn document leaves every default read and is not in the knowledge index at all — its chunks are dropped when it is withdrawn — so this shows it in the listing but never in a search.
10143
+ */
10144
+ include_withdrawn?: boolean;
10145
+ /**
10146
+ * Only documents related to this one, on either side of the edge: what it points at, and what points at it. An id with no relations narrows the listing to nothing.
10147
+ */
10148
+ related_to?: string;
9946
10149
  /**
9947
10150
  * Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.
9948
10151
  *
9949
10152
  */
9950
10153
  tags?: Array<string>;
10154
+ /**
10155
+ * A `MetadataFilter` as JSON, url-encoded. It travels as JSON rather than as `key:value` pairs because the match is exact and a query string cannot otherwise say whether `3` is the number or the string.
10156
+ */
10157
+ metadata?: string;
9951
10158
  /**
9952
10159
  * Maximum number of results to return
9953
10160
  */
@@ -10001,9 +10208,7 @@ type CreateDocumentData = {
10001
10208
  /**
10002
10209
  * Arbitrary metadata object. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
10003
10210
  */
10004
- metadata?: {
10005
- [key: string]: unknown;
10006
- };
10211
+ metadata?: MetadataBag;
10007
10212
  tags?: TagBag;
10008
10213
  /**
10009
10214
  * How to split the content into embeddable chunks. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.
@@ -10119,6 +10324,42 @@ type IngestDocumentResponses = {
10119
10324
  202: IngestedDocumentRecord;
10120
10325
  };
10121
10326
  type IngestDocumentResponse = IngestDocumentResponses[keyof IngestDocumentResponses];
10327
+ type ExportDocumentsData = {
10328
+ body?: never;
10329
+ path?: never;
10330
+ query: {
10331
+ /**
10332
+ * Project whose documents are exported
10333
+ */
10334
+ project_id: string;
10335
+ /**
10336
+ * Only documents filed under this directory. The prefix is a path boundary, not a substring, exactly as on the listing.
10337
+ */
10338
+ path_prefix?: string;
10339
+ };
10340
+ url: '/api/v1/documents/export';
10341
+ };
10342
+ type ExportDocumentsErrors = {
10343
+ /**
10344
+ * `project_id` is required
10345
+ */
10346
+ 400: unknown;
10347
+ /**
10348
+ * Unauthorized
10349
+ */
10350
+ 401: unknown;
10351
+ /**
10352
+ * Forbidden
10353
+ */
10354
+ 403: unknown;
10355
+ };
10356
+ type ExportDocumentsResponses = {
10357
+ /**
10358
+ * A newline-delimited stream of documents. Each line is a JSON object with the same fields as `Document`.
10359
+ */
10360
+ 200: string;
10361
+ };
10362
+ type ExportDocumentsResponse = ExportDocumentsResponses[keyof ExportDocumentsResponses];
10122
10363
  type DeleteDocumentData = {
10123
10364
  body?: never;
10124
10365
  path: {
@@ -10200,12 +10441,20 @@ type UpdateDocumentData = {
10200
10441
  */
10201
10442
  path?: string | null;
10202
10443
  /**
10203
- * Arbitrary metadata object. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
10444
+ * Arbitrary metadata object, replacing the stored bag; `null` clears it. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.
10204
10445
  */
10205
- metadata?: {
10206
- [key: string]: unknown;
10207
- };
10446
+ metadata?: NullableMetadataBag;
10208
10447
  tags?: TagBag;
10448
+ /**
10449
+ * Refuses the write unless the document is at this version.
10450
+ */
10451
+ expected_version?: ExpectedVersion;
10452
+ };
10453
+ headers?: {
10454
+ /**
10455
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
10456
+ */
10457
+ 'If-Match'?: string;
10209
10458
  };
10210
10459
  path: {
10211
10460
  /**
@@ -10238,6 +10487,113 @@ type UpdateDocumentResponses = {
10238
10487
  200: DocumentRecord;
10239
10488
  };
10240
10489
  type UpdateDocumentResponse = UpdateDocumentResponses[keyof UpdateDocumentResponses];
10490
+ type ListDocumentRelationsData = {
10491
+ body?: never;
10492
+ path: {
10493
+ document_id: string;
10494
+ };
10495
+ query?: never;
10496
+ url: '/api/v1/documents/{document_id}/relations';
10497
+ };
10498
+ type ListDocumentRelationsErrors = {
10499
+ /**
10500
+ * Unauthorized
10501
+ */
10502
+ 401: unknown;
10503
+ /**
10504
+ * Forbidden
10505
+ */
10506
+ 403: unknown;
10507
+ /**
10508
+ * Document not found
10509
+ */
10510
+ 404: unknown;
10511
+ };
10512
+ type ListDocumentRelationsResponses = {
10513
+ /**
10514
+ * The document's relations
10515
+ */
10516
+ 200: {
10517
+ data?: Array<DocumentRelation>;
10518
+ };
10519
+ };
10520
+ type ListDocumentRelationsResponse = ListDocumentRelationsResponses[keyof ListDocumentRelationsResponses];
10521
+ type CreateDocumentRelationData = {
10522
+ body: {
10523
+ /**
10524
+ * What this document claims about the other
10525
+ */
10526
+ type: 'derived_from' | 'supersedes' | 'cites';
10527
+ /**
10528
+ * The document the edge points at. Must be in the same project, and visible to the caller.
10529
+ */
10530
+ to_document_id: string;
10531
+ };
10532
+ path: {
10533
+ document_id: string;
10534
+ };
10535
+ query?: never;
10536
+ url: '/api/v1/documents/{document_id}/relations';
10537
+ };
10538
+ type CreateDocumentRelationErrors = {
10539
+ /**
10540
+ * An undeclared `type`, a `to_document_id` that is not a document id, a document relating to itself, or a target in another project
10541
+ */
10542
+ 400: unknown;
10543
+ /**
10544
+ * Unauthorized
10545
+ */
10546
+ 401: unknown;
10547
+ /**
10548
+ * Forbidden
10549
+ */
10550
+ 403: unknown;
10551
+ /**
10552
+ * Either document was not found
10553
+ */
10554
+ 404: unknown;
10555
+ /**
10556
+ * That relation is already asserted
10557
+ */
10558
+ 409: unknown;
10559
+ };
10560
+ type CreateDocumentRelationResponses = {
10561
+ /**
10562
+ * The asserted relation
10563
+ */
10564
+ 201: DocumentRelation;
10565
+ };
10566
+ type CreateDocumentRelationResponse = CreateDocumentRelationResponses[keyof CreateDocumentRelationResponses];
10567
+ type DeleteDocumentRelationData = {
10568
+ body?: never;
10569
+ path: {
10570
+ document_id: string;
10571
+ relation_id: string;
10572
+ };
10573
+ query?: never;
10574
+ url: '/api/v1/documents/{document_id}/relations/{relation_id}';
10575
+ };
10576
+ type DeleteDocumentRelationErrors = {
10577
+ /**
10578
+ * Unauthorized
10579
+ */
10580
+ 401: unknown;
10581
+ /**
10582
+ * Forbidden
10583
+ */
10584
+ 403: unknown;
10585
+ /**
10586
+ * Document or relation not found
10587
+ */
10588
+ 404: unknown;
10589
+ };
10590
+ type DeleteDocumentRelationResponses = {
10591
+ /**
10592
+ * Relation retracted
10593
+ */
10594
+ 204: void;
10595
+ };
10596
+ type DeleteDocumentRelationResponse = DeleteDocumentRelationResponses[keyof DeleteDocumentRelationResponses];
10241
10597
  type GetDocumentStatusData = {
10242
10598
  body?: never;
10243
10599
  path: {
@@ -10271,6 +10627,178 @@ type GetDocumentStatusResponses = {
10271
10627
  200: DocumentStatusRecord;
10272
10628
  };
10273
10629
  type GetDocumentStatusResponse = GetDocumentStatusResponses[keyof GetDocumentStatusResponses];
10630
+ type WithdrawDocumentData = {
10631
+ body?: {
10632
+ /**
10633
+ * Optional tag for the tombstone version this write archives.
10634
+ */
10635
+ version_label?: string | null;
10636
+ /**
10637
+ * Refuses the withdrawal unless the document is at this version.
10638
+ */
10639
+ expected_version?: ExpectedVersion;
10640
+ };
10641
+ headers?: {
10642
+ /**
10643
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
10644
+ */
10645
+ 'If-Match'?: string;
10646
+ };
10647
+ path: {
10648
+ document_id: string;
10649
+ };
10650
+ query?: never;
10651
+ url: '/api/v1/documents/{document_id}/withdraw';
10652
+ };
10653
+ type WithdrawDocumentErrors = {
10654
+ /**
10655
+ * Bad Request — the document is filed under the reserved root
10656
+ */
10657
+ 400: ErrorResponse;
10658
+ /**
10659
+ * Unauthorized
10660
+ */
10661
+ 401: ErrorResponse;
10662
+ /**
10663
+ * Forbidden
10664
+ */
10665
+ 403: ErrorResponse;
10666
+ /**
10667
+ * Document not found
10668
+ */
10669
+ 404: ErrorResponse;
10670
+ /**
10671
+ * Conflict — already withdrawn, or the version moved
10672
+ */
10673
+ 409: ErrorResponse;
10674
+ };
10675
+ type WithdrawDocumentError = WithdrawDocumentErrors[keyof WithdrawDocumentErrors];
10676
+ type WithdrawDocumentResponses = {
10677
+ /**
10678
+ * The withdrawn document
10679
+ */
10680
+ 200: DocumentRecord;
10681
+ };
10682
+ type WithdrawDocumentResponse = WithdrawDocumentResponses[keyof WithdrawDocumentResponses];
10683
+ type ListDocumentVersionsData = {
10684
+ body?: never;
10685
+ path: {
10686
+ document_id: string;
10687
+ };
10688
+ query?: {
10689
+ /**
10690
+ * Maximum number of results to return
10691
+ */
10692
+ limit?: number;
10693
+ /**
10694
+ * Number of results to skip
10695
+ */
10696
+ offset?: number;
10697
+ };
10698
+ url: '/api/v1/documents/{document_id}/versions';
10699
+ };
10700
+ type ListDocumentVersionsErrors = {
10701
+ /**
10702
+ * Unauthorized
10703
+ */
10704
+ 401: ErrorResponse;
10705
+ /**
10706
+ * Forbidden
10707
+ */
10708
+ 403: ErrorResponse;
10709
+ /**
10710
+ * Document not found
10711
+ */
10712
+ 404: ErrorResponse;
10713
+ };
10714
+ type ListDocumentVersionsError = ListDocumentVersionsErrors[keyof ListDocumentVersionsErrors];
10715
+ type ListDocumentVersionsResponses = {
10716
+ /**
10717
+ * List of document versions, newest first
10718
+ */
10719
+ 200: {
10720
+ data: Array<DocumentVersion>;
10721
+ total: number;
10722
+ limit: number;
10723
+ offset: number;
10724
+ };
10725
+ };
10726
+ type ListDocumentVersionsResponse = ListDocumentVersionsResponses[keyof ListDocumentVersionsResponses];
10727
+ type GetDocumentVersionData = {
10728
+ body?: never;
10729
+ path: {
10730
+ document_id: string;
10731
+ version: number;
10732
+ };
10733
+ query?: never;
10734
+ url: '/api/v1/documents/{document_id}/versions/{version}';
10735
+ };
10736
+ type GetDocumentVersionErrors = {
10737
+ /**
10738
+ * Bad Request — version is not a positive integer
10739
+ */
10740
+ 400: ErrorResponse;
10741
+ /**
10742
+ * Unauthorized
10743
+ */
10744
+ 401: ErrorResponse;
10745
+ /**
10746
+ * Forbidden
10747
+ */
10748
+ 403: ErrorResponse;
10749
+ /**
10750
+ * Not found
10751
+ */
10752
+ 404: ErrorResponse;
10753
+ };
10754
+ type GetDocumentVersionError = GetDocumentVersionErrors[keyof GetDocumentVersionErrors];
10755
+ type GetDocumentVersionResponses = {
10756
+ /**
10757
+ * Archived document version
10758
+ */
10759
+ 200: DocumentVersion;
10760
+ };
10761
+ type GetDocumentVersionResponse = GetDocumentVersionResponses[keyof GetDocumentVersionResponses];
10762
+ type RestoreDocumentVersionData = {
10763
+ body?: {
10764
+ /**
10765
+ * Optional tag for the version this restore archives. Defaults to `restored from v<version>`.
10766
+ */
10767
+ label?: string | null;
10768
+ };
10769
+ path: {
10770
+ document_id: string;
10771
+ version: number;
10772
+ };
10773
+ query?: never;
10774
+ url: '/api/v1/documents/{document_id}/versions/{version}/restore';
10775
+ };
10776
+ type RestoreDocumentVersionErrors = {
10777
+ /**
10778
+ * Bad Request — invalid version, or the version is a withdrawal
10779
+ */
10780
+ 400: ErrorResponse;
10781
+ /**
10782
+ * Unauthorized
10783
+ */
10784
+ 401: ErrorResponse;
10785
+ /**
10786
+ * Forbidden
10787
+ */
10788
+ 403: ErrorResponse;
10789
+ /**
10790
+ * Document or version not found
10791
+ */
10792
+ 404: ErrorResponse;
10793
+ };
10794
+ type RestoreDocumentVersionError = RestoreDocumentVersionErrors[keyof RestoreDocumentVersionErrors];
10795
+ type RestoreDocumentVersionResponses = {
10796
+ /**
10797
+ * The document, at its new version
10798
+ */
10799
+ 200: DocumentRecord;
10800
+ };
10801
+ type RestoreDocumentVersionResponse = RestoreDocumentVersionResponses[keyof RestoreDocumentVersionResponses];
10274
10802
  type ReingestDocumentData = {
10275
10803
  body?: {
10276
10804
  /**
@@ -10786,9 +11314,7 @@ type CreateDatasetItemData = {
10786
11314
  /**
10787
11315
  * Free-form tags, opaque to the platform
10788
11316
  */
10789
- metadata?: {
10790
- [key: string]: unknown;
10791
- } | null;
11317
+ metadata?: NullableMetadataBag;
10792
11318
  };
10793
11319
  path: {
10794
11320
  /**
@@ -10841,9 +11367,7 @@ type CreateDatasetItemFromGenerationData = {
10841
11367
  /**
10842
11368
  * Free-form tags, opaque to the platform
10843
11369
  */
10844
- metadata?: {
10845
- [key: string]: unknown;
10846
- } | null;
11370
+ metadata?: NullableMetadataBag;
10847
11371
  };
10848
11372
  path: {
10849
11373
  /**
@@ -10923,9 +11447,7 @@ type UpdateDatasetItemData = {
10923
11447
  body: {
10924
11448
  input?: DatasetItemInput;
10925
11449
  expected_output?: string | null;
10926
- metadata?: {
10927
- [key: string]: unknown;
10928
- } | null;
11450
+ metadata?: NullableMetadataBag;
10929
11451
  };
10930
11452
  path: {
10931
11453
  /**
@@ -11242,9 +11764,7 @@ type StartEvalRunData = {
11242
11764
  *
11243
11765
  * The bag is caller-owned and no key is reserved: everything the platform decides about a run (`status`, `agent_version`, `baseline_run_id`, `aggregate_scores`, `passed`, the counts) is a field of its own and cannot be written from here. Nothing in the scoring path reads it. A non-object is rejected with `400 VALIDATION_FAILED` and no run is created.
11244
11766
  */
11245
- metadata?: {
11246
- [key: string]: unknown;
11247
- };
11767
+ metadata?: MetadataBag;
11248
11768
  /**
11249
11769
  * Key/value context forwarded to every item's generation, so an agent whose tools authorize through `tool_context` is scored against the configuration it runs in production rather than with an empty bag. Each key is forwarded as one `X-Soat-Context-<key>` header and resolves any `{{context:<key>}}` token in a bound tool's headers or `preset_parameters`.
11250
11770
  *
@@ -11659,10 +12179,7 @@ type CreateFileData = {
11659
12179
  * File size in bytes
11660
12180
  */
11661
12181
  size?: number | null;
11662
- /**
11663
- * JSON string with additional metadata
11664
- */
11665
- metadata?: string;
12182
+ metadata?: MetadataBag;
11666
12183
  };
11667
12184
  path?: never;
11668
12185
  query?: never;
@@ -11704,10 +12221,7 @@ type UploadFileData = {
11704
12221
  * Original / download name. Optional; defaults to the uploaded file's name.
11705
12222
  */
11706
12223
  filename?: string;
11707
- /**
11708
- * Additional metadata as a JSON string
11709
- */
11710
- metadata?: string;
12224
+ metadata?: MetadataBagText;
11711
12225
  };
11712
12226
  path?: never;
11713
12227
  query?: never;
@@ -11943,9 +12457,9 @@ type DownloadFileResponse = DownloadFileResponses[keyof DownloadFileResponses];
11943
12457
  type UpdateFileMetadataData = {
11944
12458
  body: {
11945
12459
  /**
11946
- * New metadata as a JSON string
12460
+ * Replaces the stored bag; `null` clears it.
11947
12461
  */
11948
- metadata?: string;
12462
+ metadata?: NullableMetadataBag;
11949
12463
  /**
11950
12464
  * New directory — moves the file. The resulting path (prefix + filename) must be unique within the project.
11951
12465
  */
@@ -12279,9 +12793,7 @@ type CreateFormationData = {
12279
12793
  * Static annotations stored on the formation record. This field is NOT a substitution site: `sub`/`param`/`ref` expressions are rejected with 400 (`FORMATION_INVALID_METADATA`). For deploy-time substitution use the template's top-level `metadata` block, which is resolved into `resolved_metadata`.
12280
12794
  *
12281
12795
  */
12282
- metadata?: {
12283
- [key: string]: unknown;
12284
- } | null;
12796
+ metadata?: NullableMetadataBag;
12285
12797
  };
12286
12798
  path?: never;
12287
12799
  query?: never;
@@ -12391,9 +12903,7 @@ type UpdateFormationData = {
12391
12903
  * Static annotations stored on the formation record. This field is NOT a substitution site: `sub`/`param`/`ref` expressions are rejected with 400 (`FORMATION_INVALID_METADATA`). For deploy-time substitution use the template's top-level `metadata` block, which is resolved into `resolved_metadata`.
12392
12904
  *
12393
12905
  */
12394
- metadata?: {
12395
- [key: string]: unknown;
12396
- } | null;
12906
+ metadata?: NullableMetadataBag;
12397
12907
  };
12398
12908
  path: {
12399
12909
  formation_id: string;
@@ -12811,6 +13321,12 @@ type GetGuardrailResponses = {
12811
13321
  type GetGuardrailResponse = GetGuardrailResponses[keyof GetGuardrailResponses];
12812
13322
  type UpdateGuardrailData = {
12813
13323
  body: UpdateGuardrailRequest;
13324
+ headers?: {
13325
+ /**
13326
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
13327
+ */
13328
+ 'If-Match'?: string;
13329
+ };
12814
13330
  path: {
12815
13331
  guardrail_id: string;
12816
13332
  };
@@ -13101,9 +13617,7 @@ type CreateIngestionRuleData = {
13101
13617
  /**
13102
13618
  * Arbitrary JSON metadata
13103
13619
  */
13104
- metadata?: {
13105
- [key: string]: unknown;
13106
- };
13620
+ metadata?: MetadataBag;
13107
13621
  };
13108
13622
  path?: never;
13109
13623
  query?: never;
@@ -13222,9 +13736,7 @@ type UpdateIngestionRuleData = {
13222
13736
  chunk_strategy?: 'page' | 'whole' | 'size' | null;
13223
13737
  chunk_size?: number | null;
13224
13738
  chunk_overlap?: number | null;
13225
- metadata?: {
13226
- [key: string]: unknown;
13227
- } | null;
13739
+ metadata?: NullableMetadataBag;
13228
13740
  };
13229
13741
  path: {
13230
13742
  /**
@@ -13314,6 +13826,10 @@ type SearchKnowledgeData = {
13314
13826
  * Filter results to documents and memories whose `tags` contain every one of these key-value pairs (exact, case-sensitive match). Scopes both stores, so passing it alone searches both — as `query` does. For memories it matches at memory granularity: a memory is returned when its parent memory store's tags match or its own do.
13315
13827
  */
13316
13828
  tags?: TagBag;
13829
+ /**
13830
+ * Filter document results by their `metadata` bag. A document-store filter: a memory carries no such bag, so passing it alone searches documents, as `document_paths` does.
13831
+ */
13832
+ metadata?: MetadataFilter;
13317
13833
  };
13318
13834
  path?: never;
13319
13835
  query?: never;
@@ -13365,7 +13881,7 @@ type ListMemoriesData = {
13365
13881
  */
13366
13882
  offset?: number;
13367
13883
  /**
13368
- * Include invalidated (superseded) memories. They are excluded by default; set this to audit the supersede history.
13884
+ * Include invalidated memories — superseded or retracted. They are excluded by default; set this to audit what a store once held.
13369
13885
  */
13370
13886
  include_invalidated?: boolean;
13371
13887
  };
@@ -13426,9 +13942,7 @@ type CreateMemoryData = {
13426
13942
  /**
13427
13943
  * Arbitrary structured metadata attached to the memory
13428
13944
  */
13429
- metadata?: {
13430
- [key: string]: unknown;
13431
- };
13945
+ metadata?: MetadataBag;
13432
13946
  /**
13433
13947
  * The memory this write replaces, named outright. The declaration outranks the thresholds in both directions: the target is retired and the write returns `superseded` however similar or distant the two texts are. This is what reaches a contradiction cosine cannot see ("The office is in Lisbon" then "We closed the Lisbon office"). The target must be a still-valid memory in the same memory store, and the caller needs `memories:UpdateMemory` on it as well as `memories:CreateMemory` on the store.
13434
13948
  */
@@ -13562,9 +14076,17 @@ type UpdateMemoryData = {
13562
14076
  /**
13563
14077
  * Replaces the memory's metadata. Pass null to clear.
13564
14078
  */
13565
- metadata?: {
13566
- [key: string]: unknown;
13567
- } | null;
14079
+ metadata?: NullableMetadataBag;
14080
+ /**
14081
+ * Refuses the write unless the memory is at this version.
14082
+ */
14083
+ expected_version?: ExpectedVersion;
14084
+ };
14085
+ headers?: {
14086
+ /**
14087
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
14088
+ */
14089
+ 'If-Match'?: string;
13568
14090
  };
13569
14091
  path: {
13570
14092
  memory_id: string;
@@ -13597,8 +14119,56 @@ type UpdateMemoryResponses = {
13597
14119
  200: Memory;
13598
14120
  };
13599
14121
  type UpdateMemoryResponse = UpdateMemoryResponses[keyof UpdateMemoryResponses];
13600
- type ListMemoryAssertionsData = {
13601
- body?: never;
14122
+ type RetractMemoryData = {
14123
+ body?: {
14124
+ /**
14125
+ * Refuses the retraction unless the memory is at this version.
14126
+ */
14127
+ expected_version?: ExpectedVersion;
14128
+ };
14129
+ headers?: {
14130
+ /**
14131
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
14132
+ */
14133
+ 'If-Match'?: string;
14134
+ };
14135
+ path: {
14136
+ memory_id: string;
14137
+ };
14138
+ query?: never;
14139
+ url: '/api/v1/memories/{memory_id}/retract';
14140
+ };
14141
+ type RetractMemoryErrors = {
14142
+ /**
14143
+ * Unauthorized
14144
+ */
14145
+ 401: unknown;
14146
+ /**
14147
+ * Forbidden
14148
+ */
14149
+ 403: unknown;
14150
+ /**
14151
+ * Memory store or memory not found
14152
+ */
14153
+ 404: unknown;
14154
+ /**
14155
+ * Conflict — the memory is already invalidated, or the version moved
14156
+ */
14157
+ 409: unknown;
14158
+ /**
14159
+ * Internal server error
14160
+ */
14161
+ 500: unknown;
14162
+ };
14163
+ type RetractMemoryResponses = {
14164
+ /**
14165
+ * The retracted memory
14166
+ */
14167
+ 200: Memory;
14168
+ };
14169
+ type RetractMemoryResponse = RetractMemoryResponses[keyof RetractMemoryResponses];
14170
+ type ListMemoryAssertionsData = {
14171
+ body?: never;
13602
14172
  path: {
13603
14173
  memory_id: string;
13604
14174
  };
@@ -14171,228 +14741,528 @@ type UpdateMemoryStoreData = {
14171
14741
  */
14172
14742
  name?: string;
14173
14743
  /**
14174
- * Optional description
14744
+ * Optional description
14745
+ */
14746
+ description?: string | null;
14747
+ /**
14748
+ * Optional key-value tags. Replaces the stored bag; `null` clears it.
14749
+ */
14750
+ tags?: NullableTagBag;
14751
+ /**
14752
+ * The store's dedup policy: cosine similarity at or above which an incoming fact is already known and the write is skipped. `null` (the default) uses the algorithm constant `0.95`. A single `POST /api/v1/memories` call may override it; the agent tool and the post-turn rule never can.
14753
+ */
14754
+ duplicate_threshold?: number | null;
14755
+ /**
14756
+ * Cosine similarity at or above which an incoming fact restates a known one that has changed: the matched memory is invalidated and replaced. `null` (the default) uses the algorithm constant `0.90`. Must be lower than the effective `duplicate_threshold`, or the write is rejected with `400 VALIDATION_FAILED` — equal makes `superseded` unreachable and inverted swallows `skipped`.
14757
+ */
14758
+ supersede_threshold?: number | null;
14759
+ };
14760
+ path: {
14761
+ memory_store_id: string;
14762
+ };
14763
+ query?: never;
14764
+ url: '/api/v1/memory-stores/{memory_store_id}';
14765
+ };
14766
+ type UpdateMemoryStoreErrors = {
14767
+ /**
14768
+ * Bad request — a threshold outside `[0, 1]`, or a pair that is not `supersede_threshold < duplicate_threshold` once the stored values this request does not replace are applied.
14769
+ */
14770
+ 400: unknown;
14771
+ /**
14772
+ * Unauthorized
14773
+ */
14774
+ 401: unknown;
14775
+ /**
14776
+ * Forbidden
14777
+ */
14778
+ 403: unknown;
14779
+ /**
14780
+ * Memory store not found
14781
+ */
14782
+ 404: unknown;
14783
+ /**
14784
+ * Internal server error
14785
+ */
14786
+ 500: unknown;
14787
+ };
14788
+ type UpdateMemoryStoreResponses = {
14789
+ /**
14790
+ * Memory store updated
14791
+ */
14792
+ 200: MemoryStore;
14793
+ };
14794
+ type UpdateMemoryStoreResponse = UpdateMemoryStoreResponses[keyof UpdateMemoryStoreResponses];
14795
+ type ListMemoryStoreAssertionsData = {
14796
+ body?: never;
14797
+ path: {
14798
+ memory_store_id: string;
14799
+ };
14800
+ query?: {
14801
+ /**
14802
+ * Only assertions that came through this door.
14803
+ */
14804
+ mechanism?: 'tool' | 'rule' | 'api' | 'formation';
14805
+ /**
14806
+ * Only assertions that resolved this way.
14807
+ */
14808
+ outcome?: 'created' | 'superseded' | 'skipped';
14809
+ /**
14810
+ * Only assertions made during this generation. A generation that does not exist matches nothing rather than widening to the whole store.
14811
+ */
14812
+ generation_id?: string;
14813
+ /**
14814
+ * Only assertions recorded at or after this instant.
14815
+ */
14816
+ since?: Date;
14817
+ /**
14818
+ * Maximum number of results to return
14819
+ */
14820
+ limit?: number;
14821
+ /**
14822
+ * Number of results to skip
14823
+ */
14824
+ offset?: number;
14825
+ };
14826
+ url: '/api/v1/memory-stores/{memory_store_id}/assertions';
14827
+ };
14828
+ type ListMemoryStoreAssertionsErrors = {
14829
+ /**
14830
+ * An unknown `mechanism` or `outcome`, or a `since` that is not a timestamp
14831
+ */
14832
+ 400: unknown;
14833
+ /**
14834
+ * Unauthorized
14835
+ */
14836
+ 401: unknown;
14837
+ /**
14838
+ * Forbidden
14839
+ */
14840
+ 403: unknown;
14841
+ /**
14842
+ * Memory store not found
14843
+ */
14844
+ 404: unknown;
14845
+ /**
14846
+ * Internal server error
14847
+ */
14848
+ 500: unknown;
14849
+ };
14850
+ type ListMemoryStoreAssertionsResponses = {
14851
+ /**
14852
+ * List of assertions
14853
+ */
14854
+ 200: {
14855
+ data: Array<MemoryAssertion>;
14856
+ total: number;
14857
+ limit: number;
14858
+ offset: number;
14859
+ };
14860
+ };
14861
+ type ListMemoryStoreAssertionsResponse = ListMemoryStoreAssertionsResponses[keyof ListMemoryStoreAssertionsResponses];
14862
+ type ExportMemoriesData = {
14863
+ body?: never;
14864
+ path: {
14865
+ /**
14866
+ * Memory store whose memories are exported
14867
+ */
14868
+ memory_store_id: string;
14869
+ };
14870
+ query?: {
14871
+ /**
14872
+ * Include memories that were retracted or superseded
14873
+ */
14874
+ include_invalidated?: boolean;
14875
+ /**
14876
+ * Filter by tag pairs, written `key:value` (split on the first colon, so a value may contain colons). Repeat the parameter for several pairs; **all** must be present with exactly that value.
14877
+ *
14878
+ */
14879
+ tags?: Array<string>;
14880
+ };
14881
+ url: '/api/v1/memory-stores/{memory_store_id}/export';
14882
+ };
14883
+ type ExportMemoriesErrors = {
14884
+ /**
14885
+ * Unauthorized
14886
+ */
14887
+ 401: unknown;
14888
+ /**
14889
+ * Forbidden
14890
+ */
14891
+ 403: unknown;
14892
+ /**
14893
+ * Memory store not found
14894
+ */
14895
+ 404: unknown;
14896
+ };
14897
+ type ExportMemoriesResponses = {
14898
+ /**
14899
+ * A newline-delimited stream of memories. Each line is a JSON object with the same fields as `Memory`.
14900
+ */
14901
+ 200: string;
14902
+ };
14903
+ type ExportMemoriesResponse = ExportMemoriesResponses[keyof ExportMemoriesResponses];
14904
+ type GetMemoryStoreTagsData = {
14905
+ body?: never;
14906
+ path: {
14907
+ /**
14908
+ * Memory store ID
14909
+ */
14910
+ memory_store_id: string;
14911
+ };
14912
+ query?: never;
14913
+ url: '/api/v1/memory-stores/{memory_store_id}/tags';
14914
+ };
14915
+ type GetMemoryStoreTagsErrors = {
14916
+ /**
14917
+ * Unauthorized
14918
+ */
14919
+ 401: unknown;
14920
+ /**
14921
+ * Forbidden
14922
+ */
14923
+ 403: unknown;
14924
+ /**
14925
+ * Memory store not found
14926
+ */
14927
+ 404: unknown;
14928
+ };
14929
+ type GetMemoryStoreTagsResponses = {
14930
+ /**
14931
+ * Memory store tags
14932
+ */
14933
+ 200: TagBag;
14934
+ };
14935
+ type GetMemoryStoreTagsResponse = GetMemoryStoreTagsResponses[keyof GetMemoryStoreTagsResponses];
14936
+ type MergeMemoryStoreTagsData = {
14937
+ body: TagBag;
14938
+ path: {
14939
+ /**
14940
+ * Memory store ID
14941
+ */
14942
+ memory_store_id: string;
14943
+ };
14944
+ query?: never;
14945
+ url: '/api/v1/memory-stores/{memory_store_id}/tags';
14946
+ };
14947
+ type MergeMemoryStoreTagsErrors = {
14948
+ /**
14949
+ * Body is not an object of string values
14950
+ */
14951
+ 400: unknown;
14952
+ /**
14953
+ * Unauthorized
14954
+ */
14955
+ 401: unknown;
14956
+ /**
14957
+ * Forbidden
14958
+ */
14959
+ 403: unknown;
14960
+ /**
14961
+ * Memory store not found
14962
+ */
14963
+ 404: unknown;
14964
+ };
14965
+ type MergeMemoryStoreTagsResponses = {
14966
+ /**
14967
+ * Tags merged
14968
+ */
14969
+ 200: TagBag;
14970
+ };
14971
+ type MergeMemoryStoreTagsResponse = MergeMemoryStoreTagsResponses[keyof MergeMemoryStoreTagsResponses];
14972
+ type ReplaceMemoryStoreTagsData = {
14973
+ body: TagBag;
14974
+ path: {
14975
+ /**
14976
+ * Memory store ID
14977
+ */
14978
+ memory_store_id: string;
14979
+ };
14980
+ query?: never;
14981
+ url: '/api/v1/memory-stores/{memory_store_id}/tags';
14982
+ };
14983
+ type ReplaceMemoryStoreTagsErrors = {
14984
+ /**
14985
+ * Body is not an object of string values
14986
+ */
14987
+ 400: unknown;
14988
+ /**
14989
+ * Unauthorized
14990
+ */
14991
+ 401: unknown;
14992
+ /**
14993
+ * Forbidden
14994
+ */
14995
+ 403: unknown;
14996
+ /**
14997
+ * Memory store not found
14998
+ */
14999
+ 404: unknown;
15000
+ };
15001
+ type ReplaceMemoryStoreTagsResponses = {
15002
+ /**
15003
+ * Tags replaced
15004
+ */
15005
+ 200: TagBag;
15006
+ };
15007
+ type ReplaceMemoryStoreTagsResponse = ReplaceMemoryStoreTagsResponses[keyof ReplaceMemoryStoreTagsResponses];
15008
+ type ListMetadataSchemasData = {
15009
+ body?: never;
15010
+ path?: never;
15011
+ query?: {
15012
+ /**
15013
+ * Project public ID (proj_ prefix)
15014
+ */
15015
+ project_id?: string;
15016
+ /**
15017
+ * Return only the declarations governing this resource.
15018
+ */
15019
+ resource_type?: 'document';
15020
+ /**
15021
+ * Maximum number of results to return
15022
+ */
15023
+ limit?: number;
15024
+ /**
15025
+ * Number of results to skip
15026
+ */
15027
+ offset?: number;
15028
+ };
15029
+ url: '/api/v1/metadata-schemas';
15030
+ };
15031
+ type ListMetadataSchemasErrors = {
15032
+ /**
15033
+ * Unauthorized
15034
+ */
15035
+ 401: ErrorResponse;
15036
+ /**
15037
+ * Forbidden
15038
+ */
15039
+ 403: ErrorResponse;
15040
+ };
15041
+ type ListMetadataSchemasError = ListMetadataSchemasErrors[keyof ListMetadataSchemasErrors];
15042
+ type ListMetadataSchemasResponses = {
15043
+ /**
15044
+ * The declarations in scope
15045
+ */
15046
+ 200: {
15047
+ data: Array<MetadataSchemaRecord>;
15048
+ total: number;
15049
+ limit: number;
15050
+ offset: number;
15051
+ };
15052
+ };
15053
+ type ListMetadataSchemasResponse = ListMetadataSchemasResponses[keyof ListMetadataSchemasResponses];
15054
+ type CreateMetadataSchemaData = {
15055
+ body: {
15056
+ /**
15057
+ * Project the declaration governs. Optional for a project-scoped API key, which supplies it.
14175
15058
  */
14176
- description?: string | null;
15059
+ project_id?: string;
14177
15060
  /**
14178
- * Optional key-value tags. Replaces the stored bag; `null` clears it.
15061
+ * The resource whose metadata this declaration governs. A type appears here once its write path reads the registry, so a declaration always has a door that enforces it.
14179
15062
  */
14180
- tags?: NullableTagBag;
15063
+ resource_type: 'document';
14181
15064
  /**
14182
- * The store's dedup policy: cosine similarity at or above which an incoming fact is already known and the write is skipped. `null` (the default) uses the algorithm constant `0.95`. A single `POST /api/v1/memories` call may override it; the agent tool and the post-turn rule never can.
15065
+ * The selector a `document` declaration must carry: the directory it governs.
14183
15066
  */
14184
- duplicate_threshold?: number | null;
15067
+ path_prefix?: string;
14185
15068
  /**
14186
- * Cosine similarity at or above which an incoming fact restates a known one that has changed: the matched memory is invalidated and replaced. `null` (the default) uses the algorithm constant `0.90`. Must be lower than the effective `duplicate_threshold`, or the write is rejected with `400 VALIDATION_FAILED` — equal makes `superseded` unreachable and inverted swallows `skipped`.
15069
+ * A JSON Schema. Its keywords are its own vocabulary and are stored as written.
14187
15070
  */
14188
- supersede_threshold?: number | null;
14189
- };
14190
- path: {
14191
- memory_store_id: string;
15071
+ schema: {
15072
+ [key: string]: unknown;
15073
+ };
14192
15074
  };
15075
+ path?: never;
14193
15076
  query?: never;
14194
- url: '/api/v1/memory-stores/{memory_store_id}';
15077
+ url: '/api/v1/metadata-schemas';
14195
15078
  };
14196
- type UpdateMemoryStoreErrors = {
15079
+ type CreateMetadataSchemaErrors = {
14197
15080
  /**
14198
- * Bad request — a threshold outside `[0, 1]`, or a pair that is not `supersede_threshold < duplicate_threshold` once the stored values this request does not replace are applied.
15081
+ * Bad Request — unknown `resource_type`, a missing or unusable selector, the reserved root, or a schema that is not valid JSON Schema
14199
15082
  */
14200
- 400: unknown;
15083
+ 400: ErrorResponse;
14201
15084
  /**
14202
15085
  * Unauthorized
14203
15086
  */
14204
- 401: unknown;
15087
+ 401: ErrorResponse;
14205
15088
  /**
14206
15089
  * Forbidden
14207
15090
  */
14208
- 403: unknown;
14209
- /**
14210
- * Memory store not found
14211
- */
14212
- 404: unknown;
15091
+ 403: ErrorResponse;
14213
15092
  /**
14214
- * Internal server error
15093
+ * Conflict — this selector is already declared for this type
14215
15094
  */
14216
- 500: unknown;
15095
+ 409: ErrorResponse;
14217
15096
  };
14218
- type UpdateMemoryStoreResponses = {
15097
+ type CreateMetadataSchemaError = CreateMetadataSchemaErrors[keyof CreateMetadataSchemaErrors];
15098
+ type CreateMetadataSchemaResponses = {
14219
15099
  /**
14220
- * Memory store updated
15100
+ * The declaration
14221
15101
  */
14222
- 200: MemoryStore;
15102
+ 201: MetadataSchemaRecord;
14223
15103
  };
14224
- type UpdateMemoryStoreResponse = UpdateMemoryStoreResponses[keyof UpdateMemoryStoreResponses];
14225
- type ListMemoryStoreAssertionsData = {
14226
- body?: never;
14227
- path: {
14228
- memory_store_id: string;
14229
- };
14230
- query?: {
14231
- /**
14232
- * Only assertions that came through this door.
14233
- */
14234
- mechanism?: 'tool' | 'rule' | 'api' | 'formation';
14235
- /**
14236
- * Only assertions that resolved this way.
14237
- */
14238
- outcome?: 'created' | 'superseded' | 'skipped';
14239
- /**
14240
- * Only assertions made during this generation. A generation that does not exist matches nothing rather than widening to the whole store.
14241
- */
14242
- generation_id?: string;
14243
- /**
14244
- * Only assertions recorded at or after this instant.
14245
- */
14246
- since?: Date;
15104
+ type CreateMetadataSchemaResponse = CreateMetadataSchemaResponses[keyof CreateMetadataSchemaResponses];
15105
+ type ValidateMetadataData = {
15106
+ body: {
15107
+ project_id?: string;
14247
15108
  /**
14248
- * Maximum number of results to return
15109
+ * The path the document would be filed at, which decides which declaration governs it.
14249
15110
  */
14250
- limit?: number;
15111
+ path: string;
14251
15112
  /**
14252
- * Number of results to skip
15113
+ * The bag to judge. Absent or `null` is judged as an empty bag.
14253
15114
  */
14254
- offset?: number;
15115
+ metadata?: NullableMetadataBag;
14255
15116
  };
14256
- url: '/api/v1/memory-stores/{memory_store_id}/assertions';
15117
+ path?: never;
15118
+ query?: never;
15119
+ url: '/api/v1/metadata-schemas/validate';
14257
15120
  };
14258
- type ListMemoryStoreAssertionsErrors = {
14259
- /**
14260
- * An unknown `mechanism` or `outcome`, or a `since` that is not a timestamp
14261
- */
14262
- 400: unknown;
15121
+ type ValidateMetadataErrors = {
14263
15122
  /**
14264
15123
  * Unauthorized
14265
15124
  */
14266
- 401: unknown;
15125
+ 401: ErrorResponse;
14267
15126
  /**
14268
15127
  * Forbidden
14269
15128
  */
14270
- 403: unknown;
14271
- /**
14272
- * Memory store not found
14273
- */
14274
- 404: unknown;
14275
- /**
14276
- * Internal server error
14277
- */
14278
- 500: unknown;
15129
+ 403: ErrorResponse;
14279
15130
  };
14280
- type ListMemoryStoreAssertionsResponses = {
15131
+ type ValidateMetadataError = ValidateMetadataErrors[keyof ValidateMetadataErrors];
15132
+ type ValidateMetadataResponses = {
14281
15133
  /**
14282
- * List of assertions
15134
+ * The verdict
14283
15135
  */
14284
15136
  200: {
14285
- data: Array<MemoryAssertion>;
14286
- total: number;
14287
- limit: number;
14288
- offset: number;
15137
+ /**
15138
+ * Whether a write of this metadata at this path would be accepted.
15139
+ */
15140
+ valid: boolean;
15141
+ resource_type: 'document';
15142
+ /**
15143
+ * The declaration that would refuse it; `null` when the metadata is accepted or nothing governs the path.
15144
+ */
15145
+ metadata_schema_id: string | null;
15146
+ /**
15147
+ * The refusing declaration's selector.
15148
+ */
15149
+ path_prefix: string | null;
15150
+ /**
15151
+ * What the metadata violates, field by field.
15152
+ */
15153
+ error: string | null;
14289
15154
  };
14290
15155
  };
14291
- type ListMemoryStoreAssertionsResponse = ListMemoryStoreAssertionsResponses[keyof ListMemoryStoreAssertionsResponses];
14292
- type GetMemoryStoreTagsData = {
15156
+ type ValidateMetadataResponse = ValidateMetadataResponses[keyof ValidateMetadataResponses];
15157
+ type DeleteMetadataSchemaData = {
14293
15158
  body?: never;
14294
15159
  path: {
14295
- /**
14296
- * Memory store ID
14297
- */
14298
- memory_store_id: string;
15160
+ metadata_schema_id: string;
14299
15161
  };
14300
15162
  query?: never;
14301
- url: '/api/v1/memory-stores/{memory_store_id}/tags';
15163
+ url: '/api/v1/metadata-schemas/{metadata_schema_id}';
14302
15164
  };
14303
- type GetMemoryStoreTagsErrors = {
15165
+ type DeleteMetadataSchemaErrors = {
14304
15166
  /**
14305
15167
  * Unauthorized
14306
15168
  */
14307
- 401: unknown;
15169
+ 401: ErrorResponse;
14308
15170
  /**
14309
15171
  * Forbidden
14310
15172
  */
14311
- 403: unknown;
15173
+ 403: ErrorResponse;
14312
15174
  /**
14313
- * Memory store not found
15175
+ * Not found
14314
15176
  */
14315
- 404: unknown;
15177
+ 404: ErrorResponse;
14316
15178
  };
14317
- type GetMemoryStoreTagsResponses = {
15179
+ type DeleteMetadataSchemaError = DeleteMetadataSchemaErrors[keyof DeleteMetadataSchemaErrors];
15180
+ type DeleteMetadataSchemaResponses = {
14318
15181
  /**
14319
- * Memory store tags
15182
+ * Deleted
14320
15183
  */
14321
- 200: TagBag;
15184
+ 204: void;
14322
15185
  };
14323
- type GetMemoryStoreTagsResponse = GetMemoryStoreTagsResponses[keyof GetMemoryStoreTagsResponses];
14324
- type MergeMemoryStoreTagsData = {
14325
- body: TagBag;
15186
+ type DeleteMetadataSchemaResponse = DeleteMetadataSchemaResponses[keyof DeleteMetadataSchemaResponses];
15187
+ type GetMetadataSchemaData = {
15188
+ body?: never;
14326
15189
  path: {
14327
- /**
14328
- * Memory store ID
14329
- */
14330
- memory_store_id: string;
15190
+ metadata_schema_id: string;
14331
15191
  };
14332
15192
  query?: never;
14333
- url: '/api/v1/memory-stores/{memory_store_id}/tags';
15193
+ url: '/api/v1/metadata-schemas/{metadata_schema_id}';
14334
15194
  };
14335
- type MergeMemoryStoreTagsErrors = {
14336
- /**
14337
- * Body is not an object of string values
14338
- */
14339
- 400: unknown;
15195
+ type GetMetadataSchemaErrors = {
14340
15196
  /**
14341
15197
  * Unauthorized
14342
15198
  */
14343
- 401: unknown;
15199
+ 401: ErrorResponse;
14344
15200
  /**
14345
15201
  * Forbidden
14346
15202
  */
14347
- 403: unknown;
15203
+ 403: ErrorResponse;
14348
15204
  /**
14349
- * Memory store not found
15205
+ * Not found
14350
15206
  */
14351
- 404: unknown;
15207
+ 404: ErrorResponse;
14352
15208
  };
14353
- type MergeMemoryStoreTagsResponses = {
15209
+ type GetMetadataSchemaError = GetMetadataSchemaErrors[keyof GetMetadataSchemaErrors];
15210
+ type GetMetadataSchemaResponses = {
14354
15211
  /**
14355
- * Tags merged
15212
+ * The declaration
14356
15213
  */
14357
- 200: TagBag;
15214
+ 200: MetadataSchemaRecord;
14358
15215
  };
14359
- type MergeMemoryStoreTagsResponse = MergeMemoryStoreTagsResponses[keyof MergeMemoryStoreTagsResponses];
14360
- type ReplaceMemoryStoreTagsData = {
14361
- body: TagBag;
14362
- path: {
15216
+ type GetMetadataSchemaResponse = GetMetadataSchemaResponses[keyof GetMetadataSchemaResponses];
15217
+ type UpdateMetadataSchemaData = {
15218
+ body: {
14363
15219
  /**
14364
- * Memory store ID
15220
+ * The declaration's new selector.
14365
15221
  */
14366
- memory_store_id: string;
15222
+ path_prefix?: string;
15223
+ /**
15224
+ * Replaces the declared JSON Schema.
15225
+ */
15226
+ schema?: {
15227
+ [key: string]: unknown;
15228
+ };
15229
+ };
15230
+ path: {
15231
+ metadata_schema_id: string;
14367
15232
  };
14368
15233
  query?: never;
14369
- url: '/api/v1/memory-stores/{memory_store_id}/tags';
15234
+ url: '/api/v1/metadata-schemas/{metadata_schema_id}';
14370
15235
  };
14371
- type ReplaceMemoryStoreTagsErrors = {
15236
+ type UpdateMetadataSchemaErrors = {
14372
15237
  /**
14373
- * Body is not an object of string values
15238
+ * Bad Request — an unusable selector, or a schema that is not valid JSON Schema
14374
15239
  */
14375
- 400: unknown;
15240
+ 400: ErrorResponse;
14376
15241
  /**
14377
15242
  * Unauthorized
14378
15243
  */
14379
- 401: unknown;
15244
+ 401: ErrorResponse;
14380
15245
  /**
14381
15246
  * Forbidden
14382
15247
  */
14383
- 403: unknown;
15248
+ 403: ErrorResponse;
14384
15249
  /**
14385
- * Memory store not found
15250
+ * Not found
14386
15251
  */
14387
- 404: unknown;
15252
+ 404: ErrorResponse;
15253
+ /**
15254
+ * Conflict — this selector is already declared for this type
15255
+ */
15256
+ 409: ErrorResponse;
14388
15257
  };
14389
- type ReplaceMemoryStoreTagsResponses = {
15258
+ type UpdateMetadataSchemaError = UpdateMetadataSchemaErrors[keyof UpdateMetadataSchemaErrors];
15259
+ type UpdateMetadataSchemaResponses = {
14390
15260
  /**
14391
- * Tags replaced
15261
+ * The declaration
14392
15262
  */
14393
- 200: TagBag;
15263
+ 200: MetadataSchemaRecord;
14394
15264
  };
14395
- type ReplaceMemoryStoreTagsResponse = ReplaceMemoryStoreTagsResponses[keyof ReplaceMemoryStoreTagsResponses];
15265
+ type UpdateMetadataSchemaResponse = UpdateMetadataSchemaResponses[keyof UpdateMetadataSchemaResponses];
14396
15266
  type ListModelRoutesData = {
14397
15267
  body?: never;
14398
15268
  path?: never;
@@ -14702,7 +15572,7 @@ type ValidateOrchestrationResponses = {
14702
15572
  /**
14703
15573
  * Validation result
14704
15574
  */
14705
- 200: ValidationResult;
15575
+ 200: OrchestrationValidationResult;
14706
15576
  };
14707
15577
  type ValidateOrchestrationResponse = ValidateOrchestrationResponses[keyof ValidateOrchestrationResponses];
14708
15578
  type GetQueueStatsData = {
@@ -14794,6 +15664,12 @@ type GetOrchestrationResponses = {
14794
15664
  type GetOrchestrationResponse = GetOrchestrationResponses[keyof GetOrchestrationResponses];
14795
15665
  type UpdateOrchestrationData = {
14796
15666
  body: UpdateOrchestrationRequest;
15667
+ headers?: {
15668
+ /**
15669
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
15670
+ */
15671
+ 'If-Match'?: string;
15672
+ };
14797
15673
  path: {
14798
15674
  /**
14799
15675
  * Public ID of the orchestration (orch_...)
@@ -18715,6 +19591,12 @@ type GetWorkflowResponses = {
18715
19591
  type GetWorkflowResponse = GetWorkflowResponses[keyof GetWorkflowResponses];
18716
19592
  type UpdateWorkflowData = {
18717
19593
  body: UpdateWorkflowRequest;
19594
+ headers?: {
19595
+ /**
19596
+ * The version the caller believes the resource holds, as an entity tag (`3` or `"3"`). Equivalent to `expected_version` in the request body; `*` states no precondition beyond the resource existing. A mismatch is `409 VERSION_CONFLICT`.
19597
+ */
19598
+ 'If-Match'?: string;
19599
+ };
18718
19600
  path: {
18719
19601
  workflow_id: string;
18720
19602
  };
@@ -18885,6 +19767,12 @@ export declare class Activity {
18885
19767
  * Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest. Paginated with an opaque cursor rather than offset/limit — pass the previous page's `next_cursor` to fetch the next one; a `null` `next_cursor` means there is no more data.
18886
19768
  */
18887
19769
  static listActivity<ThrowOnError extends boolean = false>(options?: Options<ListActivityData, ThrowOnError>): RequestResult<ListActivityResponses, ListActivityErrors, ThrowOnError>;
19770
+ /**
19771
+ * Export the activity feed as NDJSON
19772
+ *
19773
+ * Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. `project_id` is required: the export is per-project by design. Filters behave exactly as they do on the list endpoint.
19774
+ */
19775
+ static exportActivity<ThrowOnError extends boolean = false>(options: Options<ExportActivityData, ThrowOnError>): RequestResult<ExportActivityResponses, ExportActivityErrors, ThrowOnError>;
18888
19776
  }
18889
19777
  export declare class Actors {
18890
19778
  /**
@@ -19365,6 +20253,12 @@ export declare class Documents {
19365
20253
  *
19366
20254
  */
19367
20255
  static ingestDocument<ThrowOnError extends boolean = false>(options: Options<IngestDocumentData, ThrowOnError>): RequestResult<IngestDocumentResponses, IngestDocumentErrors, ThrowOnError>;
20256
+ /**
20257
+ * Export documents as NDJSON
20258
+ *
20259
+ * Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. `project_id` is required: the export is per-project by design. The rows are the rows the listing returns for the same caller, so a policy that hides a document hides it here too, and withdrawn documents and the reserved `/.system/` root are left out.
20260
+ */
20261
+ static exportDocuments<ThrowOnError extends boolean = false>(options: Options<ExportDocumentsData, ThrowOnError>): RequestResult<ExportDocumentsResponses, ExportDocumentsErrors, ThrowOnError>;
19368
20262
  /**
19369
20263
  * Delete a document
19370
20264
  *
@@ -19383,6 +20277,26 @@ export declare class Documents {
19383
20277
  * Updates document content, title, path, metadata, or tags. Supplying `path` moves the document to a new logical path within the project.
19384
20278
  */
19385
20279
  static updateDocument<ThrowOnError extends boolean = false>(options: Options<UpdateDocumentData, ThrowOnError>): RequestResult<UpdateDocumentResponses, UpdateDocumentErrors, ThrowOnError>;
20280
+ /**
20281
+ * List a document's relations
20282
+ *
20283
+ * Returns the typed edges this document asserts about others, oldest first. An edge is owned by the document it leaves, so this is what the document claims — use `?related_to=` on the listing to find what claims something about it.
20284
+ */
20285
+ static listDocumentRelations<ThrowOnError extends boolean = false>(options: Options<ListDocumentRelationsData, ThrowOnError>): RequestResult<ListDocumentRelationsResponses, ListDocumentRelationsErrors, ThrowOnError>;
20286
+ /**
20287
+ * Assert a relation
20288
+ *
20289
+ * Asserts a typed edge from this document to another in the same project. Asserting the same edge twice is `409`: an edge is a fact, and the second assertion is the same fact.
20290
+ *
20291
+ * Writing an edge is a write of the asserting document (`documents:UpdateDocument`); the document it points at is unchanged, which is what lets an agent record what its own report derives from without being able to make another report claim anything.
20292
+ */
20293
+ static createDocumentRelation<ThrowOnError extends boolean = false>(options: Options<CreateDocumentRelationData, ThrowOnError>): RequestResult<CreateDocumentRelationResponses, CreateDocumentRelationErrors, ThrowOnError>;
20294
+ /**
20295
+ * Retract a relation
20296
+ *
20297
+ * Removes an edge this document asserts. Both documents are left as they are — retracting a claim is not a change to what it was about.
20298
+ */
20299
+ static deleteDocumentRelation<ThrowOnError extends boolean = false>(options: Options<DeleteDocumentRelationData, ThrowOnError>): RequestResult<DeleteDocumentRelationResponses, DeleteDocumentRelationErrors, ThrowOnError>;
19386
20300
  /**
19387
20301
  * Get document ingestion status
19388
20302
  *
@@ -19395,6 +20309,42 @@ export declare class Documents {
19395
20309
  *
19396
20310
  */
19397
20311
  static getDocumentStatus<ThrowOnError extends boolean = false>(options: Options<GetDocumentStatusData, ThrowOnError>): RequestResult<GetDocumentStatusResponses, GetDocumentStatusErrors, ThrowOnError>;
20312
+ /**
20313
+ * Withdraw a document
20314
+ *
20315
+ * Takes a document out of every default read while keeping its history. The withdrawal is archived as a **tombstone version**, so one mechanism answers what a document holds now and there is no second lifecycle flag for a reader to miss.
20316
+ *
20317
+ * Its chunks are dropped from the knowledge index, so a withdrawn document costs a live search nothing. The content is not lost with them: it is in the version before the tombstone, which [`POST /api/v1/documents/{document_id}/versions/{version}/restore`](/docs/api/documents/restore-document-version) re-chunks from.
20318
+ *
20319
+ * `DELETE` stays what it is — permanent, and it removes the backing file. Withdrawal is the reversible act. It does not apply under `/.system/`: a platform-written document keeps the owning module's lifecycle.
20320
+ *
20321
+ */
20322
+ static withdrawDocument<ThrowOnError extends boolean = false>(options: Options<WithdrawDocumentData, ThrowOnError>): RequestResult<WithdrawDocumentResponses, WithdrawDocumentErrors, ThrowOnError>;
20323
+ /**
20324
+ * List a document's content versions
20325
+ *
20326
+ * Returns the document's archived states, newest first. A version is written on create and on every subsequent write that changes the content or its annotations, and a withdrawal is archived as a version carrying no content.
20327
+ *
20328
+ */
20329
+ static listDocumentVersions<ThrowOnError extends boolean = false>(options: Options<ListDocumentVersionsData, ThrowOnError>): RequestResult<ListDocumentVersionsResponses, ListDocumentVersionsErrors, ThrowOnError>;
20330
+ /**
20331
+ * Fetch an archived document version
20332
+ *
20333
+ * Returns the exact content and annotations the document held at a given version, which is what lets a run that cited a version read what it read.
20334
+ *
20335
+ */
20336
+ static getDocumentVersion<ThrowOnError extends boolean = false>(options: Options<GetDocumentVersionData, ThrowOnError>): RequestResult<GetDocumentVersionResponses, GetDocumentVersionErrors, ThrowOnError>;
20337
+ /**
20338
+ * Restore an archived document version
20339
+ *
20340
+ * Writes an archived version's content and annotations back as the document's live state, which archives them again as a **new** version rather than rewinding the counter — so a run citing any version in between still resolves.
20341
+ *
20342
+ * The restore runs through the ordinary update path, so the content is re-chunked and re-embedded; restoring the state the document already holds is a no-op and archives nothing. Restoring any content version of a withdrawn document brings it back into listings and search.
20343
+ *
20344
+ * A tombstone version has no content, so naming one is `400 VALIDATION_FAILED`: restore the version before it instead.
20345
+ *
20346
+ */
20347
+ static restoreDocumentVersion<ThrowOnError extends boolean = false>(options: Options<RestoreDocumentVersionData, ThrowOnError>): RequestResult<RestoreDocumentVersionResponses, RestoreDocumentVersionErrors, ThrowOnError>;
19398
20348
  /**
19399
20349
  * Re-ingest an existing document
19400
20350
  *
@@ -19963,6 +20913,17 @@ export declare class Memories {
19963
20913
  * Updates an existing memory. Regenerates the embedding if content changes.
19964
20914
  */
19965
20915
  static updateMemory<ThrowOnError extends boolean = false>(options: Options<UpdateMemoryData, ThrowOnError>): RequestResult<UpdateMemoryResponses, UpdateMemoryErrors, ThrowOnError>;
20916
+ /**
20917
+ * Retract a memory
20918
+ *
20919
+ * Retires a fact that stopped holding with nothing replacing it. The memory leaves the default listing, [knowledge search](/docs/api/knowledge/search-knowledge) and write deduplication, so restating the fact later lands as a new memory.
20920
+ *
20921
+ * It is an invalidation with no successor, which is what tells it apart from a supersede: `invalidated_at` is set and `superseded_by_memory_id` stays null. The retraction is appended to the assertion ledger with outcome `retracted`, so who withdrew the fact is part of the record.
20922
+ *
20923
+ * The memory stays readable by id, with its text and its assertions. `DELETE` remains the way to remove it outright.
20924
+ *
20925
+ */
20926
+ static retractMemory<ThrowOnError extends boolean = false>(options: Options<RetractMemoryData, ThrowOnError>): RequestResult<RetractMemoryResponses, RetractMemoryErrors, ThrowOnError>;
19966
20927
  /**
19967
20928
  * List a memory's assertions
19968
20929
  *
@@ -20057,6 +21018,12 @@ export declare class MemoryStores {
20057
21018
  * Returns the store's write ledger, newest first: one row per write attempt, skips included. This is how "which write path is filling this store?" is asked — a question no column on a memory row could answer, because a skipped write produced no memory at all.
20058
21019
  */
20059
21020
  static listMemoryStoreAssertions<ThrowOnError extends boolean = false>(options: Options<ListMemoryStoreAssertionsData, ThrowOnError>): RequestResult<ListMemoryStoreAssertionsResponses, ListMemoryStoreAssertionsErrors, ThrowOnError>;
21021
+ /**
21022
+ * Export a memory store's memories as NDJSON
21023
+ *
21024
+ * Streams one store's memories as newline-delimited JSON — one memory object per line, oldest first. Invalidated memories (retracted or superseded) are left out unless `include_invalidated` asks for them, so the file holds what the store currently asserts. The rows are the rows the listing returns for the same caller.
21025
+ */
21026
+ static exportMemories<ThrowOnError extends boolean = false>(options: Options<ExportMemoriesData, ThrowOnError>): RequestResult<ExportMemoriesResponses, ExportMemoriesErrors, ThrowOnError>;
20060
21027
  /**
20061
21028
  * Get memory store tags
20062
21029
  *
@@ -20076,6 +21043,50 @@ export declare class MemoryStores {
20076
21043
  */
20077
21044
  static replaceMemoryStoreTags<ThrowOnError extends boolean = false>(options: Options<ReplaceMemoryStoreTagsData, ThrowOnError>): RequestResult<ReplaceMemoryStoreTagsResponses, ReplaceMemoryStoreTagsErrors, ThrowOnError>;
20078
21045
  }
21046
+ export declare class MetadataSchemas {
21047
+ /**
21048
+ * List metadata schemas
21049
+ *
21050
+ * Returns the declarations in scope, oldest first. `resource_type` narrows them to one governed resource.
21051
+ */
21052
+ static listMetadataSchemas<ThrowOnError extends boolean = false>(options?: Options<ListMetadataSchemasData, ThrowOnError>): RequestResult<ListMetadataSchemasResponses, ListMetadataSchemasErrors, ThrowOnError>;
21053
+ /**
21054
+ * Declare a metadata schema
21055
+ *
21056
+ * Declares what `metadata` must satisfy for one resource type under one selector. A document is selected by `path_prefix`, matched on a path boundary: `/reports` covers `/reports/q1.txt` and never `/reports-archive/q1.txt`.
21057
+ *
21058
+ * The schema is compiled here, so one JSON Schema cannot parse is refused rather than stored — a stored one would be a rule that silently governs nothing. One selector has one schema per resource type; a second declaration of the same one is `409 NAME_CONFLICT`. The reserved root `/.system` cannot be governed: a platform-written document carries no caller metadata.
21059
+ *
21060
+ */
21061
+ static createMetadataSchema<ThrowOnError extends boolean = false>(options: Options<CreateMetadataSchemaData, ThrowOnError>): RequestResult<CreateMetadataSchemaResponses, CreateMetadataSchemaErrors, ThrowOnError>;
21062
+ /**
21063
+ * Check metadata against what is declared
21064
+ *
21065
+ * Answers what a write would be told, without writing: a caller preparing a batch learns which declaration would refuse it, and why, before it sends anything.
21066
+ *
21067
+ * It reports; it does not enforce. The refusal itself lives in each resource's own write path, because a check a writer has to call is advisory and the writer who skips it is the one the rule exists for.
21068
+ *
21069
+ */
21070
+ static validateMetadata<ThrowOnError extends boolean = false>(options: Options<ValidateMetadataData, ThrowOnError>): RequestResult<ValidateMetadataResponses, ValidateMetadataErrors, ThrowOnError>;
21071
+ /**
21072
+ * Delete a metadata schema
21073
+ *
21074
+ * Removes the declaration. Documents already stored keep the metadata they hold — the rule governed writes, not rows.
21075
+ */
21076
+ static deleteMetadataSchema<ThrowOnError extends boolean = false>(options: Options<DeleteMetadataSchemaData, ThrowOnError>): RequestResult<DeleteMetadataSchemaResponses, DeleteMetadataSchemaErrors, ThrowOnError>;
21077
+ /**
21078
+ * Get a metadata schema
21079
+ *
21080
+ * Returns one declaration by id.
21081
+ */
21082
+ static getMetadataSchema<ThrowOnError extends boolean = false>(options: Options<GetMetadataSchemaData, ThrowOnError>): RequestResult<GetMetadataSchemaResponses, GetMetadataSchemaErrors, ThrowOnError>;
21083
+ /**
21084
+ * Update a metadata schema
21085
+ *
21086
+ * Changes the schema, the selector, or both. `resource_type` is fixed at creation: it decides the selector's spelling and which write path reads the row, so changing it would silently repoint the declaration at a different door — delete it and declare again instead.
21087
+ */
21088
+ static updateMetadataSchema<ThrowOnError extends boolean = false>(options: Options<UpdateMetadataSchemaData, ThrowOnError>): RequestResult<UpdateMetadataSchemaResponses, UpdateMetadataSchemaErrors, ThrowOnError>;
21089
+ }
20079
21090
  export declare class ModelRoutes {
20080
21091
  /**
20081
21092
  * List model routes
@@ -20967,6 +21978,7 @@ export declare class SoatClient {
20967
21978
  readonly memories: typeof Memories;
20968
21979
  readonly memoryRules: typeof MemoryRules;
20969
21980
  readonly memoryStores: typeof MemoryStores;
21981
+ readonly metadataSchemas: typeof MetadataSchemas;
20970
21982
  readonly modelRoutes: typeof ModelRoutes;
20971
21983
  readonly orchestrations: typeof Orchestrations;
20972
21984
  readonly policies: typeof Policies;
@@ -20985,4 +21997,4 @@ export declare class SoatClient {
20985
21997
  constructor({ baseUrl, token, headers }?: SoatClientOptions);
20986
21998
  }
20987
21999
  //#endregion
20988
- export type { AbortAgentReleaseData, AbortAgentReleaseError, AbortAgentReleaseErrors, AbortAgentReleaseResponse, AbortAgentReleaseResponses, AcceptedGenerationResponse, AcknowledgeExceptionData, AcknowledgeExceptionErrors, AcknowledgeExceptionResponse, AcknowledgeExceptionResponses, ActivityEntry, ActorRecord, ActorResourceProperties, AddConversationMessageData, AddConversationMessageError, AddConversationMessageErrors, AddConversationMessageResponse, AddConversationMessageResponses, AddSessionMessageData, AddSessionMessageError, AddSessionMessageErrors, AddSessionMessageRequest, AddSessionMessageResponse, AddSessionMessageResponse2, AddSessionMessageResponses, AddSessionMessageSaved, Agent, AgentBoundaryPolicy, AgentBoundaryPolicyStatement, AgentGenerationResponse, AgentRelease, AgentResourceProperties, AgentStepRule, AgentStopCondition, AgentVersion, AggregateScores, AiProviderResourceProperties, ApiKeyCreated, ApiKeyRecord, ApiKeyResourceProperties, ApprovalId, ApprovalItem, ApprovalRecurrenceGroup, ApproveApprovalData, ApproveApprovalErrors, ApproveApprovalResponse, ApproveApprovalResponses, AttachUserPoliciesData, AttachUserPoliciesError, AttachUserPoliciesErrors, AttachUserPoliciesResponse, AttachUserPoliciesResponses, AuditEntry, BaselineComparison, BootstrapUserData, BootstrapUserError, BootstrapUserErrors, BootstrapUserResponse, BootstrapUserResponses, CallToolData, CallToolError, CallToolErrors, CallToolRequest, CallToolResponses, CancelEvalRunData, CancelEvalRunErrors, CancelEvalRunResponse, CancelEvalRunResponses, CancelOrchestrationRunData, CancelOrchestrationRunErrors, CancelOrchestrationRunResponse, CancelOrchestrationRunResponses, Chain, ChainId, Chat, ChatCompletionChoice, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionResponseMessage, ChatMessageInput, ChatResourceProperties, ClientOptions, CompleteIngestionCallbackData, CompleteIngestionCallbackError, CompleteIngestionCallbackErrors, CompleteIngestionCallbackResponse, CompleteIngestionCallbackResponses, ContainsScorer, ConversationMessageRecord, ConversationRecord, ConversationResourceProperties, CreateActorData, CreateActorError, CreateActorErrors, CreateActorResponse, CreateActorResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentGenerationData, CreateAgentGenerationError, CreateAgentGenerationErrors, CreateAgentGenerationRequest, CreateAgentGenerationResponse, CreateAgentGenerationResponses, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAiProviderData, CreateAiProviderErrors, CreateAiProviderResponse, CreateAiProviderResponses, CreateApiKeyData, CreateApiKeyError, CreateApiKeyErrors, CreateApiKeyResponse, CreateApiKeyResponses, CreateChatCompletionData, CreateChatCompletionError, CreateChatCompletionErrors, CreateChatCompletionResponse, CreateChatCompletionResponses, CreateChatData, CreateChatError, CreateChatErrors, CreateChatRequest, CreateChatResponse, CreateChatResponses, CreateConversationData, CreateConversationError, CreateConversationErrors, CreateConversationResponse, CreateConversationResponses, CreateDatasetData, CreateDatasetErrors, CreateDatasetItemData, CreateDatasetItemErrors, CreateDatasetItemFromGenerationData, CreateDatasetItemFromGenerationErrors, CreateDatasetItemFromGenerationResponse, CreateDatasetItemFromGenerationResponses, CreateDatasetItemResponse, CreateDatasetItemResponses, CreateDatasetResponse, CreateDatasetResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentResponse, CreateDocumentResponses, CreateEmbeddingsData, CreateEmbeddingsError, CreateEmbeddingsErrors, CreateEmbeddingsResponse, CreateEmbeddingsResponses, CreateEvalData, CreateEvalErrors, CreateEvalResponse, CreateEvalResponses, CreateFileData, CreateFileError, CreateFileErrors, CreateFileResponse, CreateFileResponses, CreateFormationData, CreateFormationErrors, CreateFormationResponse, CreateFormationResponses, CreateGuardrailData, CreateGuardrailError, CreateGuardrailErrors, CreateGuardrailRequest, CreateGuardrailResponse, CreateGuardrailResponses, CreateIngestionRuleData, CreateIngestionRuleErrors, CreateIngestionRuleResponse, CreateIngestionRuleResponses, CreateMemoryData, CreateMemoryErrors, CreateMemoryResponse, CreateMemoryResponses, CreateMemoryRuleData, CreateMemoryRuleErrors, CreateMemoryRuleResponse, CreateMemoryRuleResponses, CreateMemoryStoreData, CreateMemoryStoreErrors, CreateMemoryStoreResponse, CreateMemoryStoreResponses, CreateModelRouteData, CreateModelRouteErrors, CreateModelRouteResponse, CreateModelRouteResponses, CreateOrchestrationData, CreateOrchestrationErrors, CreateOrchestrationRequest, CreateOrchestrationResponse, CreateOrchestrationResponses, CreatePolicyData, CreatePolicyError, CreatePolicyErrors, CreatePolicyResponse, CreatePolicyResponses, CreatePresignedUrlData, CreatePresignedUrlError, CreatePresignedUrlErrors, CreatePresignedUrlResponse, CreatePresignedUrlResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateQuotaData, CreateQuotaErrors, CreateQuotaResponse, CreateQuotaResponses, CreateSecretData, CreateSecretErrors, CreateSecretResponse, CreateSecretResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionRequest, CreateSessionResponse, CreateSessionResponses, CreateTaskData, CreateTaskErrors, CreateTaskRequest, CreateTaskResponse, CreateTaskResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolRequest, CreateToolResponse, CreateToolResponses, CreateTriggerData, CreateTriggerErrors, CreateTriggerRequest, CreateTriggerResponse, CreateTriggerResponses, CreateUsageThresholdData, CreateUsageThresholdError, CreateUsageThresholdErrors, CreateUsageThresholdRequest, CreateUsageThresholdResponse, CreateUsageThresholdResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponses, CreateWorkflowData, CreateWorkflowErrors, CreateWorkflowRequest, CreateWorkflowResponse, CreateWorkflowResponses, Dataset, DatasetItem, DatasetItemInput, DatasetItemResourceProperties, DatasetResourceProperties, DeleteActorData, DeleteActorError, DeleteActorErrors, DeleteActorResponse, DeleteActorResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAiProviderData, DeleteAiProviderErrors, DeleteAiProviderResponse, DeleteAiProviderResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponse, DeleteApiKeyResponses, DeleteChatData, DeleteChatError, DeleteChatErrors, DeleteChatResponse, DeleteChatResponses, DeleteConversationData, DeleteConversationError, DeleteConversationErrors, DeleteConversationResponse, DeleteConversationResponses, DeleteDatasetData, DeleteDatasetErrors, DeleteDatasetItemData, DeleteDatasetItemErrors, DeleteDatasetItemResponse, DeleteDatasetItemResponses, DeleteDatasetResponse, DeleteDatasetResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEvalData, DeleteEvalErrors, DeleteEvalResponse, DeleteEvalResponses, DeleteFileData, DeleteFileError, DeleteFileErrors, DeleteFileResponse, DeleteFileResponses, DeleteFormationData, DeleteFormationErrors, DeleteFormationResponse, DeleteFormationResponses, DeleteGuardrailData, DeleteGuardrailError, DeleteGuardrailErrors, DeleteGuardrailResponse, DeleteGuardrailResponses, DeleteIngestionRuleData, DeleteIngestionRuleErrors, DeleteIngestionRuleResponse, DeleteIngestionRuleResponses, DeleteMemoryData, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteMemoryRuleData, DeleteMemoryRuleErrors, DeleteMemoryRuleResponse, DeleteMemoryRuleResponses, DeleteMemoryStoreData, DeleteMemoryStoreErrors, DeleteMemoryStoreResponse, DeleteMemoryStoreResponses, DeleteModelRouteData, DeleteModelRouteErrors, DeleteModelRouteResponse, DeleteModelRouteResponses, DeleteOrchestrationData, DeleteOrchestrationErrors, DeleteOrchestrationResponse, DeleteOrchestrationResponses, DeletePolicyData, DeletePolicyErrors, DeletePolicyResponse, DeletePolicyResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, DeleteQuotaData, DeleteQuotaErrors, DeleteQuotaResponse, DeleteQuotaResponses, DeleteSecretData, DeleteSecretErrors, DeleteSecretResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteTaskData, DeleteTaskErrors, DeleteTaskResponse, DeleteTaskResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteTriggerData, DeleteTriggerErrors, DeleteTriggerResponse, DeleteTriggerResponses, DeleteUsageThresholdData, DeleteUsageThresholdError, DeleteUsageThresholdErrors, DeleteUsageThresholdResponse, DeleteUsageThresholdResponses, DeleteUserData, DeleteUserError, DeleteUserErrors, DeleteUserResponse, DeleteUserResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DeleteWorkflowData, DeleteWorkflowErrors, DeleteWorkflowResponse, DeleteWorkflowResponses, Delivery, DeliveryListResponse, DocumentKnowledgeResult, DocumentMessageContent, DocumentRecord, DocumentResourceProperties, DocumentStatusRecord, DownloadFileBase64Data, DownloadFileBase64Error, DownloadFileBase64Errors, DownloadFileBase64Response, DownloadFileBase64Responses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, EmbeddingSimilarityScorer, EmbeddingsResponse, ErrorResponse, Eval, EvalResourceProperties, EvalResult, EvalRun, EvaluateGuardrailData, EvaluateGuardrailError, EvaluateGuardrailErrors, EvaluateGuardrailResponse, EvaluateGuardrailResponses, ExactMatchScorer, ExceptionId, ExceptionItem, ExportAuditEntriesData, ExportAuditEntriesErrors, ExportAuditEntriesResponse, ExportAuditEntriesResponses, FileRecord, FileRecordWritable, FileResourceProperties, FireTriggerData, FireTriggerErrors, FireTriggerRequest, FireTriggerResponse, FireTriggerResponses, ForkSessionData, ForkSessionError, ForkSessionErrors, ForkSessionRequest, ForkSessionResponse, ForkSessionResponses, Formation, FormationError, FormationEvent, FormationOperation, FormationResource, FormationTemplate, FormationTemplateInput, GenerateConversationMessageCompleted, GenerateConversationMessageData, GenerateConversationMessageError, GenerateConversationMessageErrors, GenerateConversationMessageRequiresAction, GenerateConversationMessageResponse, GenerateConversationMessageResponse2, GenerateConversationMessageResponses, GenerateSessionRequest, GenerateSessionResponse, GenerateSessionResponseData, GenerateSessionResponseError, GenerateSessionResponseErrors, GenerateSessionResponseResponse, GenerateSessionResponseResponses, Generation, GenerationTranscript, GetActorData, GetActorError, GetActorErrors, GetActorResponse, GetActorResponses, GetActorTagsData, GetActorTagsError, GetActorTagsErrors, GetActorTagsResponse, GetActorTagsResponses, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentVersionData, GetAgentVersionError, GetAgentVersionErrors, GetAgentVersionResponse, GetAgentVersionResponses, GetAiProviderData, GetAiProviderErrors, GetAiProviderPricesData, GetAiProviderPricesErrors, GetAiProviderPricesResponse, GetAiProviderPricesResponses, GetAiProviderResponse, GetAiProviderResponses, GetApiKeyData, GetApiKeyErrors, GetApiKeyResponse, GetApiKeyResponses, GetApprovalData, GetApprovalErrors, GetApprovalResponse, GetApprovalResponses, GetAuditEntryData, GetAuditEntryErrors, GetAuditEntryResponse, GetAuditEntryResponses, GetChainData, GetChainErrors, GetChainResponse, GetChainResponses, GetChatData, GetChatError, GetChatErrors, GetChatResponse, GetChatResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetConversationTagsData, GetConversationTagsError, GetConversationTagsErrors, GetConversationTagsResponse, GetConversationTagsResponses, GetCurrentUserData, GetCurrentUserError, GetCurrentUserErrors, GetCurrentUserResponse, GetCurrentUserResponses, GetDatasetData, GetDatasetErrors, GetDatasetResponse, GetDatasetResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentResponse, GetDocumentResponses, GetDocumentStatusData, GetDocumentStatusError, GetDocumentStatusErrors, GetDocumentStatusResponse, GetDocumentStatusResponses, GetDocumentTagsData, GetDocumentTagsError, GetDocumentTagsErrors, GetDocumentTagsResponse, GetDocumentTagsResponses, GetEvalData, GetEvalErrors, GetEvalResponse, GetEvalResponses, GetEvalRunData, GetEvalRunErrors, GetEvalRunResponse, GetEvalRunResponses, GetExceptionData, GetExceptionErrors, GetExceptionResponse, GetExceptionResponses, GetFileData, GetFileError, GetFileErrors, GetFileResponse, GetFileResponses, GetFileTagsData, GetFileTagsError, GetFileTagsErrors, GetFileTagsResponse, GetFileTagsResponses, GetFormationData, GetFormationErrors, GetFormationResponse, GetFormationResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetGenerationTranscriptData, GetGenerationTranscriptError, GetGenerationTranscriptErrors, GetGenerationTranscriptResponse, GetGenerationTranscriptResponses, GetGuardrailData, GetGuardrailError, GetGuardrailErrors, GetGuardrailResponse, GetGuardrailResponses, GetGuardrailVersionData, GetGuardrailVersionError, GetGuardrailVersionErrors, GetGuardrailVersionResponse, GetGuardrailVersionResponses, GetIngestionRuleData, GetIngestionRuleErrors, GetIngestionRuleResponse, GetIngestionRuleResponses, GetMemoryData, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetMemoryRuleData, GetMemoryRuleErrors, GetMemoryRuleResponse, GetMemoryRuleResponses, GetMemoryStoreData, GetMemoryStoreErrors, GetMemoryStoreResponse, GetMemoryStoreResponses, GetMemoryStoreTagsData, GetMemoryStoreTagsErrors, GetMemoryStoreTagsResponse, GetMemoryStoreTagsResponses, GetMemoryTagsData, GetMemoryTagsErrors, GetMemoryTagsResponse, GetMemoryTagsResponses, GetModelRouteData, GetModelRouteErrors, GetModelRouteResponse, GetModelRouteResponses, GetOrchestrationData, GetOrchestrationErrors, GetOrchestrationResponse, GetOrchestrationResponses, GetOrchestrationRunData, GetOrchestrationRunErrors, GetOrchestrationRunResponse, GetOrchestrationRunResponses, GetOrchestrationVersionData, GetOrchestrationVersionErrors, GetOrchestrationVersionResponse, GetOrchestrationVersionResponses, GetPolicyData, GetPolicyErrors, GetPolicyResponse, GetPolicyResponses, GetPriceBookData, GetPriceBookError, GetPriceBookErrors, GetPriceBookResponse, GetPriceBookResponses, GetProjectData, GetProjectErrors, GetProjectPricesData, GetProjectPricesErrors, GetProjectPricesResponse, GetProjectPricesResponses, GetProjectResponse, GetProjectResponses, GetQueueStatsData, GetQueueStatsErrors, GetQueueStatsResponse, GetQueueStatsResponses, GetQuotaData, GetQuotaErrors, GetQuotaResponse, GetQuotaResponses, GetSecretData, GetSecretErrors, GetSecretResponse, GetSecretResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSessionTagsData, GetSessionTagsError, GetSessionTagsErrors, GetSessionTagsResponse, GetSessionTagsResponses, GetTaskData, GetTaskErrors, GetTaskHistoryData, GetTaskHistoryErrors, GetTaskHistoryResponse, GetTaskHistoryResponses, GetTaskResponse, GetTaskResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTraceData, GetTraceError, GetTraceErrors, GetTraceResponse, GetTraceResponses, GetTraceTreeData, GetTraceTreeError, GetTraceTreeErrors, GetTraceTreeResponse, GetTraceTreeResponses, GetTriggerData, GetTriggerErrors, GetTriggerFiringData, GetTriggerFiringErrors, GetTriggerFiringResponse, GetTriggerFiringResponses, GetTriggerResponse, GetTriggerResponses, GetTriggerSecretData, GetTriggerSecretErrors, GetTriggerSecretResponse, GetTriggerSecretResponses, GetUsageAggregateData, GetUsageAggregateError, GetUsageAggregateErrors, GetUsageAggregateResponse, GetUsageAggregateResponses, GetUsageReceiptData, GetUsageReceiptError, GetUsageReceiptErrors, GetUsageReceiptResponse, GetUsageReceiptResponses, GetUserData, GetUserError, GetUserErrors, GetUserResponse, GetUserResponses, GetWebhookData, GetWebhookDeliveryData, GetWebhookDeliveryErrors, GetWebhookDeliveryResponse, GetWebhookDeliveryResponses, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GetWebhookSecretData, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, GetWorkflowData, GetWorkflowErrors, GetWorkflowResponse, GetWorkflowResponses, GetWorkflowVersionData, GetWorkflowVersionErrors, GetWorkflowVersionResponse, GetWorkflowVersionResponses, Guardrail, GuardrailDocument, GuardrailEvaluation, GuardrailResourceProperties, GuardrailVersion, HumanInputRequest, IngestDocumentData, IngestDocumentError, IngestDocumentErrors, IngestDocumentResponse, IngestDocumentResponses, IngestedDocumentRecord, IngestionRule, IngestionRuleResourceProperties, JsonLogicScorer, KnowledgeResult, ListActivityData, ListActivityErrors, ListActivityResponse, ListActivityResponses, ListActorsData, ListActorsError, ListActorsErrors, ListActorsResponse, ListActorsResponses, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsErrors, ListAgentVersionsResponse, ListAgentVersionsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAiProviderModelsData, ListAiProviderModelsErrors, ListAiProviderModelsResponse, ListAiProviderModelsResponses, ListAiProvidersData, ListAiProvidersErrors, ListAiProvidersResponse, ListAiProvidersResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponse, ListApiKeysResponses, ListApprovalRecurrencesData, ListApprovalRecurrencesErrors, ListApprovalRecurrencesResponse, ListApprovalRecurrencesResponses, ListApprovalsData, ListApprovalsErrors, ListApprovalsResponse, ListApprovalsResponses, ListAuditEntriesData, ListAuditEntriesErrors, ListAuditEntriesResponse, ListAuditEntriesResponses, ListChainsData, ListChainsErrors, ListChainsResponse, ListChainsResponses, ListChatsData, ListChatsError, ListChatsErrors, ListChatsResponse, ListChatsResponses, ListConversationMessagesData, ListConversationMessagesError, ListConversationMessagesErrors, ListConversationMessagesResponse, ListConversationMessagesResponses, ListConversationsData, ListConversationsError, ListConversationsErrors, ListConversationsResponse, ListConversationsResponses, ListDatasetItemsData, ListDatasetItemsErrors, ListDatasetItemsResponse, ListDatasetItemsResponses, ListDatasetsData, ListDatasetsErrors, ListDatasetsResponse, ListDatasetsResponses, ListDocumentsData, ListDocumentsError, ListDocumentsErrors, ListDocumentsResponse, ListDocumentsResponses, ListEvalResultsData, ListEvalResultsErrors, ListEvalResultsResponse, ListEvalResultsResponses, ListEvalRunsData, ListEvalRunsErrors, ListEvalRunsResponse, ListEvalRunsResponses, ListEvalsData, ListEvalsErrors, ListEvalsResponse, ListEvalsResponses, ListExceptionsData, ListExceptionsErrors, ListExceptionsResponse, ListExceptionsResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, ListFormationEventsData, ListFormationEventsErrors, ListFormationEventsResponse, ListFormationEventsResponses, ListFormationsData, ListFormationsErrors, ListFormationsResponse, ListFormationsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListGuardrailVersionsData, ListGuardrailVersionsError, ListGuardrailVersionsErrors, ListGuardrailVersionsResponse, ListGuardrailVersionsResponses, ListGuardrailsData, ListGuardrailsError, ListGuardrailsErrors, ListGuardrailsResponse, ListGuardrailsResponses, ListIngestionRulesData, ListIngestionRulesErrors, ListIngestionRulesResponse, ListIngestionRulesResponses, ListMemoriesData, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListMemoryAssertionsData, ListMemoryAssertionsErrors, ListMemoryAssertionsResponse, ListMemoryAssertionsResponses, ListMemoryRulesData, ListMemoryRulesErrors, ListMemoryRulesResponse, ListMemoryRulesResponses, ListMemoryStoreAssertionsData, ListMemoryStoreAssertionsErrors, ListMemoryStoreAssertionsResponse, ListMemoryStoreAssertionsResponses, ListMemoryStoresData, ListMemoryStoresErrors, ListMemoryStoresResponse, ListMemoryStoresResponses, ListModelRoutesData, ListModelRoutesErrors, ListModelRoutesResponse, ListModelRoutesResponses, ListOrchestrationRunsData, ListOrchestrationRunsErrors, ListOrchestrationRunsResponse, ListOrchestrationRunsResponses, ListOrchestrationVersionsData, ListOrchestrationVersionsErrors, ListOrchestrationVersionsResponse, ListOrchestrationVersionsResponses, ListOrchestrationsData, ListOrchestrationsErrors, ListOrchestrationsResponse, ListOrchestrationsResponses, ListPoliciesData, ListPoliciesErrors, ListPoliciesResponse, ListPoliciesResponses, ListProjectsData, ListProjectsErrors, ListProjectsResponse, ListProjectsResponses, ListQuotasData, ListQuotasErrors, ListQuotasResponse, ListQuotasResponses, ListSecretsData, ListSecretsErrors, ListSecretsResponse, ListSecretsResponses, ListSessionForksData, ListSessionForksError, ListSessionForksErrors, ListSessionForksResponse, ListSessionForksResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListTasksData, ListTasksErrors, ListTasksResponse, ListTasksResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListTracesData, ListTracesError, ListTracesErrors, ListTracesResponse, ListTracesResponses, ListTriggerFiringsData, ListTriggerFiringsErrors, ListTriggerFiringsResponse, ListTriggerFiringsResponses, ListTriggersData, ListTriggersErrors, ListTriggersResponse, ListTriggersResponses, ListUsageEventsData, ListUsageEventsError, ListUsageEventsErrors, ListUsageEventsResponse, ListUsageEventsResponses, ListUsageThresholdsData, ListUsageThresholdsError, ListUsageThresholdsErrors, ListUsageThresholdsResponse, ListUsageThresholdsResponses, ListUsersData, ListUsersError, ListUsersErrors, ListUsersResponse, ListUsersResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponses, ListWorkflowVersionsData, ListWorkflowVersionsErrors, ListWorkflowVersionsResponse, ListWorkflowVersionsResponses, ListWorkflowsData, ListWorkflowsErrors, ListWorkflowsResponse, ListWorkflowsResponses, LlmJudgeScorer, LoginResponse, LoginUserData, LoginUserError, LoginUserErrors, LoginUserResponse, LoginUserResponses, Memory, MemoryAssertion, MemoryKnowledgeResult, MemoryResourceProperties, MemoryRule, MemoryRuleEvent, MemoryRuleResourceProperties, MemoryStore, MemoryStoreResourceProperties, MemoryWriteResult, MergeActorTagsData, MergeActorTagsError, MergeActorTagsErrors, MergeActorTagsResponse, MergeActorTagsResponses, MergeConversationTagsData, MergeConversationTagsError, MergeConversationTagsErrors, MergeConversationTagsResponse, MergeConversationTagsResponses, MergeDocumentTagsData, MergeDocumentTagsError, MergeDocumentTagsErrors, MergeDocumentTagsResponse, MergeDocumentTagsResponses, MergeFileTagsData, MergeFileTagsError, MergeFileTagsErrors, MergeFileTagsResponse, MergeFileTagsResponses, MergeMemoryStoreTagsData, MergeMemoryStoreTagsErrors, MergeMemoryStoreTagsResponse, MergeMemoryStoreTagsResponses, MergeMemoryTagsData, MergeMemoryTagsErrors, MergeMemoryTagsResponse, MergeMemoryTagsResponses, MergeSessionTagsData, MergeSessionTagsError, MergeSessionTagsErrors, MergeSessionTagsResponse, MergeSessionTagsResponses, ModelRoute, ModelRouteResourceProperties, ModelRouteTarget, NodeExecution, NullableTagBag, OauthAuthorizationServerMetadata, OauthClientRegistrationRequest, OauthClientRegistrationResponse, OauthErrorResponse, OauthProtectedResourceMetadata, OauthTokenRequest, OauthTokenResponse, Options, Orchestration, OrchestrationEdge, OrchestrationId, OrchestrationNode, OrchestrationResourceProperties, OrchestrationRun, OrchestrationRunId, OrchestrationVersion, OutputSchemaScorer, ParameterDeclaration, PatchAgentData, PatchAgentError, PatchAgentErrors, PatchAgentResponse, PatchAgentResponses, PauseOrchestrationRunData, PauseOrchestrationRunErrors, PauseOrchestrationRunRequest, PauseOrchestrationRunResponse, PauseOrchestrationRunResponses, PauseTaskData, PauseTaskErrors, PauseTaskRequest, PauseTaskResponse, PauseTaskResponses, PlanChange, PlanFormationData, PlanFormationErrors, PlanFormationResponse, PlanFormationResponses, PlanResult, PolicyDocument, PolicyRecord, PolicyResourceProperties, PolicyStatement, PresignedUrlRequest, PresignedUrlResponse, Price, PriceBookResponse, ProjectPrice, ProjectPriceResourceProperties, ProjectPricesResponse, ProjectRecord, PromoteAgentReleaseData, PromoteAgentReleaseError, PromoteAgentReleaseErrors, PromoteAgentReleaseResponse, PromoteAgentReleaseResponses, ProviderModelsResponse, ProviderPrice, ProviderPricesResponse, PurgeGenerationContentData, PurgeGenerationContentError, PurgeGenerationContentErrors, PurgeGenerationContentResponse, PurgeGenerationContentResponses, PurgeTraceContentData, PurgeTraceContentError, PurgeTraceContentErrors, PurgeTraceContentResponse, PurgeTraceContentResponses, QueueStats, Quota, QuotaResourceProperties, RedeliverWebhookDeliveryData, RedeliverWebhookDeliveryErrors, RedeliverWebhookDeliveryResponse, RedeliverWebhookDeliveryResponses, ReingestDocumentData, ReingestDocumentError, ReingestDocumentErrors, ReingestDocumentResponse, ReingestDocumentResponses, RejectApprovalData, RejectApprovalErrors, RejectApprovalResponse, RejectApprovalResponses, RemoveConversationMessageData, RemoveConversationMessageError, RemoveConversationMessageErrors, RemoveConversationMessageResponse, RemoveConversationMessageResponses, ReplaceActorTagsData, ReplaceActorTagsError, ReplaceActorTagsErrors, ReplaceActorTagsResponse, ReplaceActorTagsResponses, ReplaceConversationTagsData, ReplaceConversationTagsError, ReplaceConversationTagsErrors, ReplaceConversationTagsResponse, ReplaceConversationTagsResponses, ReplaceDocumentTagsData, ReplaceDocumentTagsError, ReplaceDocumentTagsErrors, ReplaceDocumentTagsResponse, ReplaceDocumentTagsResponses, ReplaceFileTagsData, ReplaceFileTagsError, ReplaceFileTagsErrors, ReplaceFileTagsResponse, ReplaceFileTagsResponses, ReplaceMemoryStoreTagsData, ReplaceMemoryStoreTagsErrors, ReplaceMemoryStoreTagsResponse, ReplaceMemoryStoreTagsResponses, ReplaceMemoryTagsData, ReplaceMemoryTagsErrors, ReplaceMemoryTagsResponse, ReplaceMemoryTagsResponses, ReplaceSessionTagsData, ReplaceSessionTagsError, ReplaceSessionTagsErrors, ReplaceSessionTagsResponse, ReplaceSessionTagsResponses, RequiredAction, ResolveExceptionData, ResolveExceptionErrors, ResolveExceptionResponse, ResolveExceptionResponses, ResourceDeclaration, RestoreAgentVersionData, RestoreAgentVersionError, RestoreAgentVersionErrors, RestoreAgentVersionRequest, RestoreAgentVersionResponse, RestoreAgentVersionResponses, RestoreGuardrailVersionData, RestoreGuardrailVersionError, RestoreGuardrailVersionErrors, RestoreGuardrailVersionRequest, RestoreGuardrailVersionResponse, RestoreGuardrailVersionResponses, RestoreOrchestrationVersionData, RestoreOrchestrationVersionErrors, RestoreOrchestrationVersionRequest, RestoreOrchestrationVersionResponse, RestoreOrchestrationVersionResponses, RestoreWorkflowVersionData, RestoreWorkflowVersionErrors, RestoreWorkflowVersionRequest, RestoreWorkflowVersionResponse, RestoreWorkflowVersionResponses, ResumeOrchestrationRunData, ResumeOrchestrationRunErrors, ResumeOrchestrationRunResponse, ResumeOrchestrationRunResponses, ResumeTaskData, ResumeTaskErrors, ResumeTaskResponse, ResumeTaskResponses, RotateTriggerSecretData, RotateTriggerSecretErrors, RotateTriggerSecretResponse, RotateTriggerSecretResponses, RotateWebhookSecretData, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, ScorerResult, Scorers, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SecretResourceProperties, SendSessionMessageResponse, SessionId, SessionRecord, SessionResourceProperties, SetAgentReleaseData, SetAgentReleaseError, SetAgentReleaseErrors, SetAgentReleaseRequest, SetAgentReleaseResponse, SetAgentReleaseResponses, SoatClientOptions, StartEvalRunData, StartEvalRunErrors, StartEvalRunResponse, StartEvalRunResponses, StartOrchestrationRunData, StartOrchestrationRunErrors, StartOrchestrationRunRequest, StartOrchestrationRunResponse, StartOrchestrationRunResponses, SubmitAgentToolOutputsData, SubmitAgentToolOutputsError, SubmitAgentToolOutputsErrors, SubmitAgentToolOutputsResponse, SubmitAgentToolOutputsResponses, SubmitHumanInputData, SubmitHumanInputErrors, SubmitHumanInputResponse, SubmitHumanInputResponses, SubmitSessionToolOutputsData, SubmitSessionToolOutputsError, SubmitSessionToolOutputsErrors, SubmitSessionToolOutputsRequest, SubmitSessionToolOutputsResponse, SubmitSessionToolOutputsResponses, SubmitToolOutputsRequest, TagBag, TagsQuery, Task, TaskTransition, Tool, ToolBinding, ToolExecuteAuthConfig, ToolExecuteConfig, ToolMcpConfig, ToolOutputMessageContent, ToolResourceProperties, ToolScorer, Trace, TraceTreeNode, TranscriptStep, TranscriptToolCall, TranscriptToolResult, TransitionTaskData, TransitionTaskErrors, TransitionTaskRequest, TransitionTaskResponse, TransitionTaskResponses, Trigger, TriggerFiring, TriggerFiringListResponse, TriggerResourceProperties, TriggerSecretResponse, TriggerWithSecret, UnauthorizedFormationAction, UpdateActorData, UpdateActorError, UpdateActorErrors, UpdateActorResponse, UpdateActorResponses, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateAiProviderData, UpdateAiProviderErrors, UpdateAiProviderPricesData, UpdateAiProviderPricesErrors, UpdateAiProviderPricesResponse, UpdateAiProviderPricesResponses, UpdateAiProviderResponses, UpdateApiKeyData, UpdateApiKeyError, UpdateApiKeyErrors, UpdateApiKeyResponse, UpdateApiKeyResponses, UpdateConversationData, UpdateConversationError, UpdateConversationErrors, UpdateConversationResponse, UpdateConversationResponses, UpdateDatasetData, UpdateDatasetErrors, UpdateDatasetItemData, UpdateDatasetItemErrors, UpdateDatasetItemResponse, UpdateDatasetItemResponses, UpdateDatasetResponse, UpdateDatasetResponses, UpdateDocumentData, UpdateDocumentError, UpdateDocumentErrors, UpdateDocumentResponse, UpdateDocumentResponses, UpdateEvalData, UpdateEvalErrors, UpdateEvalResponse, UpdateEvalResponses, UpdateFileMetadataData, UpdateFileMetadataError, UpdateFileMetadataErrors, UpdateFileMetadataResponse, UpdateFileMetadataResponses, UpdateFormationData, UpdateFormationErrors, UpdateFormationResponse, UpdateFormationResponses, UpdateGenerationData, UpdateGenerationError, UpdateGenerationErrors, UpdateGenerationRequest, UpdateGenerationResponse, UpdateGenerationResponses, UpdateGuardrailData, UpdateGuardrailError, UpdateGuardrailErrors, UpdateGuardrailRequest, UpdateGuardrailResponse, UpdateGuardrailResponses, UpdateIngestionRuleData, UpdateIngestionRuleErrors, UpdateIngestionRuleResponse, UpdateIngestionRuleResponses, UpdateMemoryData, UpdateMemoryErrors, UpdateMemoryResponse, UpdateMemoryResponses, UpdateMemoryRuleData, UpdateMemoryRuleErrors, UpdateMemoryRuleResponse, UpdateMemoryRuleResponses, UpdateMemoryStoreData, UpdateMemoryStoreErrors, UpdateMemoryStoreResponse, UpdateMemoryStoreResponses, UpdateModelRouteData, UpdateModelRouteErrors, UpdateModelRouteResponse, UpdateModelRouteResponses, UpdateOrchestrationData, UpdateOrchestrationErrors, UpdateOrchestrationRequest, UpdateOrchestrationResponse, UpdateOrchestrationResponses, UpdatePolicyData, UpdatePolicyError, UpdatePolicyErrors, UpdatePolicyResponse, UpdatePolicyResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectPricesData, UpdateProjectPricesErrors, UpdateProjectPricesResponse, UpdateProjectPricesResponses, UpdateProjectResponse, UpdateProjectResponses, UpdateQuotaData, UpdateQuotaErrors, UpdateQuotaResponse, UpdateQuotaResponses, UpdateSecretData, UpdateSecretErrors, UpdateSecretResponses, UpdateSessionData, UpdateSessionError, UpdateSessionErrors, UpdateSessionRequest, UpdateSessionResponse, UpdateSessionResponses, UpdateTaskData, UpdateTaskErrors, UpdateTaskRequest, UpdateTaskResponse, UpdateTaskResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolRequest, UpdateToolResponse, UpdateToolResponses, UpdateTriggerData, UpdateTriggerErrors, UpdateTriggerRequest, UpdateTriggerResponse, UpdateTriggerResponses, UpdateWebhookData, UpdateWebhookErrors, UpdateWebhookRequest, UpdateWebhookResponse, UpdateWebhookResponses, UpdateWorkflowData, UpdateWorkflowErrors, UpdateWorkflowRequest, UpdateWorkflowResponse, UpdateWorkflowResponses, UploadFileBase64Data, UploadFileBase64Error, UploadFileBase64Errors, UploadFileBase64Request, UploadFileBase64Response, UploadFileBase64Responses, UploadFileData, UploadFileError, UploadFileErrors, UploadFileResponse, UploadFileResponses, UploadFileWithTokenData, UploadFileWithTokenError, UploadFileWithTokenErrors, UploadFileWithTokenRequest, UploadFileWithTokenResponse, UploadFileWithTokenResponses, UpsertPriceBookData, UpsertPriceBookError, UpsertPriceBookErrors, UpsertPriceBookResponse, UpsertPriceBookResponses, UpsertPricesRequest, UpsertProjectPricesRequest, UpsertProviderPricesRequest, UsageAggregate, UsageAggregateBucket, UsageAggregateComponent, UsageAggregateFilters, UsageAggregateGroup, UsageAggregateTotals, UsageComponent, UsageDistinct, UsageEvent, UsageGroupBy, UsageReceipt, UsageThreshold, UsageTotals, UserRecord, ValidateFormationData, ValidateFormationErrors, ValidateFormationResponse, ValidateFormationResponses, ValidateOrchestrationData, ValidateOrchestrationErrors, ValidateOrchestrationRequest, ValidateOrchestrationResponse, ValidateOrchestrationResponses, ValidationError, ValidationResult, Webhook, WebhookResourceProperties, WebhookSecretResponse, WebhookWithSecret, Workflow, WorkflowResourceProperties, WorkflowState, WorkflowTransition, WorkflowVersion };
22000
+ export type { AbortAgentReleaseData, AbortAgentReleaseError, AbortAgentReleaseErrors, AbortAgentReleaseResponse, AbortAgentReleaseResponses, AcceptedGenerationResponse, AcknowledgeExceptionData, AcknowledgeExceptionErrors, AcknowledgeExceptionResponse, AcknowledgeExceptionResponses, ActivityEntry, ActorRecord, ActorResourceProperties, AddConversationMessageData, AddConversationMessageError, AddConversationMessageErrors, AddConversationMessageResponse, AddConversationMessageResponses, AddSessionMessageData, AddSessionMessageError, AddSessionMessageErrors, AddSessionMessageRequest, AddSessionMessageResponse, AddSessionMessageResponse2, AddSessionMessageResponses, AddSessionMessageSaved, Agent, AgentBoundaryPolicy, AgentBoundaryPolicyStatement, AgentGenerationResponse, AgentRelease, AgentResourceProperties, AgentStepRule, AgentStopCondition, AgentVersion, AggregateScores, AiProviderResourceProperties, ApiKeyCreated, ApiKeyRecord, ApiKeyResourceProperties, ApprovalId, ApprovalItem, ApprovalRecurrenceGroup, ApproveApprovalData, ApproveApprovalErrors, ApproveApprovalResponse, ApproveApprovalResponses, AttachUserPoliciesData, AttachUserPoliciesError, AttachUserPoliciesErrors, AttachUserPoliciesResponse, AttachUserPoliciesResponses, AuditEntry, BaselineComparison, BootstrapUserData, BootstrapUserError, BootstrapUserErrors, BootstrapUserResponse, BootstrapUserResponses, CallToolData, CallToolError, CallToolErrors, CallToolRequest, CallToolResponses, CancelEvalRunData, CancelEvalRunErrors, CancelEvalRunResponse, CancelEvalRunResponses, CancelOrchestrationRunData, CancelOrchestrationRunErrors, CancelOrchestrationRunResponse, CancelOrchestrationRunResponses, Chain, ChainId, Chat, ChatCompletionChoice, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionResponseMessage, ChatMessageInput, ChatResourceProperties, ClientOptions, CompleteIngestionCallbackData, CompleteIngestionCallbackError, CompleteIngestionCallbackErrors, CompleteIngestionCallbackResponse, CompleteIngestionCallbackResponses, ContainsScorer, ConversationMessageRecord, ConversationRecord, ConversationResourceProperties, CreateActorData, CreateActorError, CreateActorErrors, CreateActorResponse, CreateActorResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentGenerationData, CreateAgentGenerationError, CreateAgentGenerationErrors, CreateAgentGenerationRequest, CreateAgentGenerationResponse, CreateAgentGenerationResponses, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAiProviderData, CreateAiProviderErrors, CreateAiProviderResponse, CreateAiProviderResponses, CreateApiKeyData, CreateApiKeyError, CreateApiKeyErrors, CreateApiKeyResponse, CreateApiKeyResponses, CreateChatCompletionData, CreateChatCompletionError, CreateChatCompletionErrors, CreateChatCompletionResponse, CreateChatCompletionResponses, CreateChatData, CreateChatError, CreateChatErrors, CreateChatRequest, CreateChatResponse, CreateChatResponses, CreateConversationData, CreateConversationError, CreateConversationErrors, CreateConversationResponse, CreateConversationResponses, CreateDatasetData, CreateDatasetErrors, CreateDatasetItemData, CreateDatasetItemErrors, CreateDatasetItemFromGenerationData, CreateDatasetItemFromGenerationErrors, CreateDatasetItemFromGenerationResponse, CreateDatasetItemFromGenerationResponses, CreateDatasetItemResponse, CreateDatasetItemResponses, CreateDatasetResponse, CreateDatasetResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRelationData, CreateDocumentRelationErrors, CreateDocumentRelationResponse, CreateDocumentRelationResponses, CreateDocumentResponse, CreateDocumentResponses, CreateEmbeddingsData, CreateEmbeddingsError, CreateEmbeddingsErrors, CreateEmbeddingsResponse, CreateEmbeddingsResponses, CreateEvalData, CreateEvalErrors, CreateEvalResponse, CreateEvalResponses, CreateFileData, CreateFileError, CreateFileErrors, CreateFileResponse, CreateFileResponses, CreateFormationData, CreateFormationErrors, CreateFormationResponse, CreateFormationResponses, CreateGuardrailData, CreateGuardrailError, CreateGuardrailErrors, CreateGuardrailRequest, CreateGuardrailResponse, CreateGuardrailResponses, CreateIngestionRuleData, CreateIngestionRuleErrors, CreateIngestionRuleResponse, CreateIngestionRuleResponses, CreateMemoryData, CreateMemoryErrors, CreateMemoryResponse, CreateMemoryResponses, CreateMemoryRuleData, CreateMemoryRuleErrors, CreateMemoryRuleResponse, CreateMemoryRuleResponses, CreateMemoryStoreData, CreateMemoryStoreErrors, CreateMemoryStoreResponse, CreateMemoryStoreResponses, CreateMetadataSchemaData, CreateMetadataSchemaError, CreateMetadataSchemaErrors, CreateMetadataSchemaResponse, CreateMetadataSchemaResponses, CreateModelRouteData, CreateModelRouteErrors, CreateModelRouteResponse, CreateModelRouteResponses, CreateOrchestrationData, CreateOrchestrationErrors, CreateOrchestrationRequest, CreateOrchestrationResponse, CreateOrchestrationResponses, CreatePolicyData, CreatePolicyError, CreatePolicyErrors, CreatePolicyResponse, CreatePolicyResponses, CreatePresignedUrlData, CreatePresignedUrlError, CreatePresignedUrlErrors, CreatePresignedUrlResponse, CreatePresignedUrlResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateQuotaData, CreateQuotaErrors, CreateQuotaResponse, CreateQuotaResponses, CreateSecretData, CreateSecretErrors, CreateSecretResponse, CreateSecretResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionRequest, CreateSessionResponse, CreateSessionResponses, CreateTaskData, CreateTaskErrors, CreateTaskRequest, CreateTaskResponse, CreateTaskResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolRequest, CreateToolResponse, CreateToolResponses, CreateTriggerData, CreateTriggerErrors, CreateTriggerRequest, CreateTriggerResponse, CreateTriggerResponses, CreateUsageThresholdData, CreateUsageThresholdError, CreateUsageThresholdErrors, CreateUsageThresholdRequest, CreateUsageThresholdResponse, CreateUsageThresholdResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponses, CreateWorkflowData, CreateWorkflowErrors, CreateWorkflowRequest, CreateWorkflowResponse, CreateWorkflowResponses, Dataset, DatasetItem, DatasetItemInput, DatasetItemResourceProperties, DatasetResourceProperties, DeleteActorData, DeleteActorError, DeleteActorErrors, DeleteActorResponse, DeleteActorResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAiProviderData, DeleteAiProviderErrors, DeleteAiProviderResponse, DeleteAiProviderResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponse, DeleteApiKeyResponses, DeleteChatData, DeleteChatError, DeleteChatErrors, DeleteChatResponse, DeleteChatResponses, DeleteConversationData, DeleteConversationError, DeleteConversationErrors, DeleteConversationResponse, DeleteConversationResponses, DeleteDatasetData, DeleteDatasetErrors, DeleteDatasetItemData, DeleteDatasetItemErrors, DeleteDatasetItemResponse, DeleteDatasetItemResponses, DeleteDatasetResponse, DeleteDatasetResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentRelationData, DeleteDocumentRelationErrors, DeleteDocumentRelationResponse, DeleteDocumentRelationResponses, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEvalData, DeleteEvalErrors, DeleteEvalResponse, DeleteEvalResponses, DeleteFileData, DeleteFileError, DeleteFileErrors, DeleteFileResponse, DeleteFileResponses, DeleteFormationData, DeleteFormationErrors, DeleteFormationResponse, DeleteFormationResponses, DeleteGuardrailData, DeleteGuardrailError, DeleteGuardrailErrors, DeleteGuardrailResponse, DeleteGuardrailResponses, DeleteIngestionRuleData, DeleteIngestionRuleErrors, DeleteIngestionRuleResponse, DeleteIngestionRuleResponses, DeleteMemoryData, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteMemoryRuleData, DeleteMemoryRuleErrors, DeleteMemoryRuleResponse, DeleteMemoryRuleResponses, DeleteMemoryStoreData, DeleteMemoryStoreErrors, DeleteMemoryStoreResponse, DeleteMemoryStoreResponses, DeleteMetadataSchemaData, DeleteMetadataSchemaError, DeleteMetadataSchemaErrors, DeleteMetadataSchemaResponse, DeleteMetadataSchemaResponses, DeleteModelRouteData, DeleteModelRouteErrors, DeleteModelRouteResponse, DeleteModelRouteResponses, DeleteOrchestrationData, DeleteOrchestrationErrors, DeleteOrchestrationResponse, DeleteOrchestrationResponses, DeletePolicyData, DeletePolicyErrors, DeletePolicyResponse, DeletePolicyResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, DeleteQuotaData, DeleteQuotaErrors, DeleteQuotaResponse, DeleteQuotaResponses, DeleteSecretData, DeleteSecretErrors, DeleteSecretResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteTaskData, DeleteTaskErrors, DeleteTaskResponse, DeleteTaskResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteTriggerData, DeleteTriggerErrors, DeleteTriggerResponse, DeleteTriggerResponses, DeleteUsageThresholdData, DeleteUsageThresholdError, DeleteUsageThresholdErrors, DeleteUsageThresholdResponse, DeleteUsageThresholdResponses, DeleteUserData, DeleteUserError, DeleteUserErrors, DeleteUserResponse, DeleteUserResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DeleteWorkflowData, DeleteWorkflowErrors, DeleteWorkflowResponse, DeleteWorkflowResponses, Delivery, DeliveryListResponse, DocumentKnowledgeResult, DocumentMessageContent, DocumentRecord, DocumentRelation, DocumentResourceProperties, DocumentStatusRecord, DocumentVersion, DownloadFileBase64Data, DownloadFileBase64Error, DownloadFileBase64Errors, DownloadFileBase64Response, DownloadFileBase64Responses, DownloadFileData, DownloadFileError, DownloadFileErrors, DownloadFileResponse, DownloadFileResponses, EmbeddingSimilarityScorer, EmbeddingsResponse, ErrorResponse, Eval, EvalResourceProperties, EvalResult, EvalRun, EvaluateGuardrailData, EvaluateGuardrailError, EvaluateGuardrailErrors, EvaluateGuardrailResponse, EvaluateGuardrailResponses, ExactMatchScorer, ExceptionId, ExceptionItem, ExpectedVersion, ExportActivityData, ExportActivityErrors, ExportActivityResponse, ExportActivityResponses, ExportAuditEntriesData, ExportAuditEntriesErrors, ExportAuditEntriesResponse, ExportAuditEntriesResponses, ExportDocumentsData, ExportDocumentsErrors, ExportDocumentsResponse, ExportDocumentsResponses, ExportMemoriesData, ExportMemoriesErrors, ExportMemoriesResponse, ExportMemoriesResponses, FileRecord, FileRecordWritable, FileResourceProperties, FireTriggerData, FireTriggerErrors, FireTriggerRequest, FireTriggerResponse, FireTriggerResponses, ForkSessionData, ForkSessionError, ForkSessionErrors, ForkSessionRequest, ForkSessionResponse, ForkSessionResponses, Formation, FormationError, FormationEvent, FormationOperation, FormationResource, FormationTemplate, FormationTemplateInput, GenerateConversationMessageCompleted, GenerateConversationMessageData, GenerateConversationMessageError, GenerateConversationMessageErrors, GenerateConversationMessageRequiresAction, GenerateConversationMessageResponse, GenerateConversationMessageResponse2, GenerateConversationMessageResponses, GenerateSessionRequest, GenerateSessionResponse, GenerateSessionResponseData, GenerateSessionResponseError, GenerateSessionResponseErrors, GenerateSessionResponseResponse, GenerateSessionResponseResponses, Generation, GenerationTranscript, GetActorData, GetActorError, GetActorErrors, GetActorResponse, GetActorResponses, GetActorTagsData, GetActorTagsError, GetActorTagsErrors, GetActorTagsResponse, GetActorTagsResponses, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentVersionData, GetAgentVersionError, GetAgentVersionErrors, GetAgentVersionResponse, GetAgentVersionResponses, GetAiProviderData, GetAiProviderErrors, GetAiProviderPricesData, GetAiProviderPricesErrors, GetAiProviderPricesResponse, GetAiProviderPricesResponses, GetAiProviderResponse, GetAiProviderResponses, GetApiKeyData, GetApiKeyErrors, GetApiKeyResponse, GetApiKeyResponses, GetApprovalData, GetApprovalErrors, GetApprovalResponse, GetApprovalResponses, GetAuditEntryData, GetAuditEntryErrors, GetAuditEntryResponse, GetAuditEntryResponses, GetChainData, GetChainErrors, GetChainResponse, GetChainResponses, GetChatData, GetChatError, GetChatErrors, GetChatResponse, GetChatResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetConversationTagsData, GetConversationTagsError, GetConversationTagsErrors, GetConversationTagsResponse, GetConversationTagsResponses, GetCurrentUserData, GetCurrentUserError, GetCurrentUserErrors, GetCurrentUserResponse, GetCurrentUserResponses, GetDatasetData, GetDatasetErrors, GetDatasetResponse, GetDatasetResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentResponse, GetDocumentResponses, GetDocumentStatusData, GetDocumentStatusError, GetDocumentStatusErrors, GetDocumentStatusResponse, GetDocumentStatusResponses, GetDocumentTagsData, GetDocumentTagsError, GetDocumentTagsErrors, GetDocumentTagsResponse, GetDocumentTagsResponses, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetEvalData, GetEvalErrors, GetEvalResponse, GetEvalResponses, GetEvalRunData, GetEvalRunErrors, GetEvalRunResponse, GetEvalRunResponses, GetExceptionData, GetExceptionErrors, GetExceptionResponse, GetExceptionResponses, GetFileData, GetFileError, GetFileErrors, GetFileResponse, GetFileResponses, GetFileTagsData, GetFileTagsError, GetFileTagsErrors, GetFileTagsResponse, GetFileTagsResponses, GetFormationData, GetFormationErrors, GetFormationResponse, GetFormationResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetGenerationTranscriptData, GetGenerationTranscriptError, GetGenerationTranscriptErrors, GetGenerationTranscriptResponse, GetGenerationTranscriptResponses, GetGuardrailData, GetGuardrailError, GetGuardrailErrors, GetGuardrailResponse, GetGuardrailResponses, GetGuardrailVersionData, GetGuardrailVersionError, GetGuardrailVersionErrors, GetGuardrailVersionResponse, GetGuardrailVersionResponses, GetIngestionRuleData, GetIngestionRuleErrors, GetIngestionRuleResponse, GetIngestionRuleResponses, GetMemoryData, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetMemoryRuleData, GetMemoryRuleErrors, GetMemoryRuleResponse, GetMemoryRuleResponses, GetMemoryStoreData, GetMemoryStoreErrors, GetMemoryStoreResponse, GetMemoryStoreResponses, GetMemoryStoreTagsData, GetMemoryStoreTagsErrors, GetMemoryStoreTagsResponse, GetMemoryStoreTagsResponses, GetMemoryTagsData, GetMemoryTagsErrors, GetMemoryTagsResponse, GetMemoryTagsResponses, GetMetadataSchemaData, GetMetadataSchemaError, GetMetadataSchemaErrors, GetMetadataSchemaResponse, GetMetadataSchemaResponses, GetModelRouteData, GetModelRouteErrors, GetModelRouteResponse, GetModelRouteResponses, GetOrchestrationData, GetOrchestrationErrors, GetOrchestrationResponse, GetOrchestrationResponses, GetOrchestrationRunData, GetOrchestrationRunErrors, GetOrchestrationRunResponse, GetOrchestrationRunResponses, GetOrchestrationVersionData, GetOrchestrationVersionErrors, GetOrchestrationVersionResponse, GetOrchestrationVersionResponses, GetPolicyData, GetPolicyErrors, GetPolicyResponse, GetPolicyResponses, GetPriceBookData, GetPriceBookError, GetPriceBookErrors, GetPriceBookResponse, GetPriceBookResponses, GetProjectData, GetProjectErrors, GetProjectPricesData, GetProjectPricesErrors, GetProjectPricesResponse, GetProjectPricesResponses, GetProjectResponse, GetProjectResponses, GetQueueStatsData, GetQueueStatsErrors, GetQueueStatsResponse, GetQueueStatsResponses, GetQuotaData, GetQuotaErrors, GetQuotaResponse, GetQuotaResponses, GetSecretData, GetSecretErrors, GetSecretResponse, GetSecretResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSessionTagsData, GetSessionTagsError, GetSessionTagsErrors, GetSessionTagsResponse, GetSessionTagsResponses, GetTaskData, GetTaskErrors, GetTaskHistoryData, GetTaskHistoryErrors, GetTaskHistoryResponse, GetTaskHistoryResponses, GetTaskResponse, GetTaskResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTraceData, GetTraceError, GetTraceErrors, GetTraceResponse, GetTraceResponses, GetTraceTreeData, GetTraceTreeError, GetTraceTreeErrors, GetTraceTreeResponse, GetTraceTreeResponses, GetTriggerData, GetTriggerErrors, GetTriggerFiringData, GetTriggerFiringErrors, GetTriggerFiringResponse, GetTriggerFiringResponses, GetTriggerResponse, GetTriggerResponses, GetTriggerSecretData, GetTriggerSecretErrors, GetTriggerSecretResponse, GetTriggerSecretResponses, GetUsageAggregateData, GetUsageAggregateError, GetUsageAggregateErrors, GetUsageAggregateResponse, GetUsageAggregateResponses, GetUsageReceiptData, GetUsageReceiptError, GetUsageReceiptErrors, GetUsageReceiptResponse, GetUsageReceiptResponses, GetUserData, GetUserError, GetUserErrors, GetUserResponse, GetUserResponses, GetWebhookData, GetWebhookDeliveryData, GetWebhookDeliveryErrors, GetWebhookDeliveryResponse, GetWebhookDeliveryResponses, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GetWebhookSecretData, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, GetWorkflowData, GetWorkflowErrors, GetWorkflowResponse, GetWorkflowResponses, GetWorkflowVersionData, GetWorkflowVersionErrors, GetWorkflowVersionResponse, GetWorkflowVersionResponses, Guardrail, GuardrailDocument, GuardrailEvaluation, GuardrailResourceProperties, GuardrailVersion, HumanInputRequest, IfMatchVersion, IngestDocumentData, IngestDocumentError, IngestDocumentErrors, IngestDocumentResponse, IngestDocumentResponses, IngestedDocumentRecord, IngestionRule, IngestionRuleResourceProperties, JsonLogicScorer, KnowledgeResult, ListActivityData, ListActivityErrors, ListActivityResponse, ListActivityResponses, ListActorsData, ListActorsError, ListActorsErrors, ListActorsResponse, ListActorsResponses, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsErrors, ListAgentVersionsResponse, ListAgentVersionsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAiProviderModelsData, ListAiProviderModelsErrors, ListAiProviderModelsResponse, ListAiProviderModelsResponses, ListAiProvidersData, ListAiProvidersErrors, ListAiProvidersResponse, ListAiProvidersResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponse, ListApiKeysResponses, ListApprovalRecurrencesData, ListApprovalRecurrencesErrors, ListApprovalRecurrencesResponse, ListApprovalRecurrencesResponses, ListApprovalsData, ListApprovalsErrors, ListApprovalsResponse, ListApprovalsResponses, ListAuditEntriesData, ListAuditEntriesErrors, ListAuditEntriesResponse, ListAuditEntriesResponses, ListChainsData, ListChainsErrors, ListChainsResponse, ListChainsResponses, ListChatsData, ListChatsError, ListChatsErrors, ListChatsResponse, ListChatsResponses, ListConversationMessagesData, ListConversationMessagesError, ListConversationMessagesErrors, ListConversationMessagesResponse, ListConversationMessagesResponses, ListConversationsData, ListConversationsError, ListConversationsErrors, ListConversationsResponse, ListConversationsResponses, ListDatasetItemsData, ListDatasetItemsErrors, ListDatasetItemsResponse, ListDatasetItemsResponses, ListDatasetsData, ListDatasetsErrors, ListDatasetsResponse, ListDatasetsResponses, ListDocumentRelationsData, ListDocumentRelationsErrors, ListDocumentRelationsResponse, ListDocumentRelationsResponses, ListDocumentVersionsData, ListDocumentVersionsError, ListDocumentVersionsErrors, ListDocumentVersionsResponse, ListDocumentVersionsResponses, ListDocumentsData, ListDocumentsError, ListDocumentsErrors, ListDocumentsResponse, ListDocumentsResponses, ListEvalResultsData, ListEvalResultsErrors, ListEvalResultsResponse, ListEvalResultsResponses, ListEvalRunsData, ListEvalRunsErrors, ListEvalRunsResponse, ListEvalRunsResponses, ListEvalsData, ListEvalsErrors, ListEvalsResponse, ListEvalsResponses, ListExceptionsData, ListExceptionsErrors, ListExceptionsResponse, ListExceptionsResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, ListFormationEventsData, ListFormationEventsErrors, ListFormationEventsResponse, ListFormationEventsResponses, ListFormationsData, ListFormationsErrors, ListFormationsResponse, ListFormationsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListGuardrailVersionsData, ListGuardrailVersionsError, ListGuardrailVersionsErrors, ListGuardrailVersionsResponse, ListGuardrailVersionsResponses, ListGuardrailsData, ListGuardrailsError, ListGuardrailsErrors, ListGuardrailsResponse, ListGuardrailsResponses, ListIngestionRulesData, ListIngestionRulesErrors, ListIngestionRulesResponse, ListIngestionRulesResponses, ListMemoriesData, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListMemoryAssertionsData, ListMemoryAssertionsErrors, ListMemoryAssertionsResponse, ListMemoryAssertionsResponses, ListMemoryRulesData, ListMemoryRulesErrors, ListMemoryRulesResponse, ListMemoryRulesResponses, ListMemoryStoreAssertionsData, ListMemoryStoreAssertionsErrors, ListMemoryStoreAssertionsResponse, ListMemoryStoreAssertionsResponses, ListMemoryStoresData, ListMemoryStoresErrors, ListMemoryStoresResponse, ListMemoryStoresResponses, ListMetadataSchemasData, ListMetadataSchemasError, ListMetadataSchemasErrors, ListMetadataSchemasResponse, ListMetadataSchemasResponses, ListModelRoutesData, ListModelRoutesErrors, ListModelRoutesResponse, ListModelRoutesResponses, ListOrchestrationRunsData, ListOrchestrationRunsErrors, ListOrchestrationRunsResponse, ListOrchestrationRunsResponses, ListOrchestrationVersionsData, ListOrchestrationVersionsErrors, ListOrchestrationVersionsResponse, ListOrchestrationVersionsResponses, ListOrchestrationsData, ListOrchestrationsErrors, ListOrchestrationsResponse, ListOrchestrationsResponses, ListPoliciesData, ListPoliciesErrors, ListPoliciesResponse, ListPoliciesResponses, ListProjectsData, ListProjectsErrors, ListProjectsResponse, ListProjectsResponses, ListQuotasData, ListQuotasErrors, ListQuotasResponse, ListQuotasResponses, ListSecretsData, ListSecretsErrors, ListSecretsResponse, ListSecretsResponses, ListSessionForksData, ListSessionForksError, ListSessionForksErrors, ListSessionForksResponse, ListSessionForksResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListTasksData, ListTasksErrors, ListTasksResponse, ListTasksResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListTracesData, ListTracesError, ListTracesErrors, ListTracesResponse, ListTracesResponses, ListTriggerFiringsData, ListTriggerFiringsErrors, ListTriggerFiringsResponse, ListTriggerFiringsResponses, ListTriggersData, ListTriggersErrors, ListTriggersResponse, ListTriggersResponses, ListUsageEventsData, ListUsageEventsError, ListUsageEventsErrors, ListUsageEventsResponse, ListUsageEventsResponses, ListUsageThresholdsData, ListUsageThresholdsError, ListUsageThresholdsErrors, ListUsageThresholdsResponse, ListUsageThresholdsResponses, ListUsersData, ListUsersError, ListUsersErrors, ListUsersResponse, ListUsersResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponses, ListWorkflowVersionsData, ListWorkflowVersionsErrors, ListWorkflowVersionsResponse, ListWorkflowVersionsResponses, ListWorkflowsData, ListWorkflowsErrors, ListWorkflowsResponse, ListWorkflowsResponses, LlmJudgeScorer, LoginResponse, LoginUserData, LoginUserError, LoginUserErrors, LoginUserResponse, LoginUserResponses, Memory, MemoryAssertion, MemoryKnowledgeResult, MemoryResourceProperties, MemoryRule, MemoryRuleEvent, MemoryRuleResourceProperties, MemoryStore, MemoryStoreResourceProperties, MemoryWriteResult, MergeActorTagsData, MergeActorTagsError, MergeActorTagsErrors, MergeActorTagsResponse, MergeActorTagsResponses, MergeConversationTagsData, MergeConversationTagsError, MergeConversationTagsErrors, MergeConversationTagsResponse, MergeConversationTagsResponses, MergeDocumentTagsData, MergeDocumentTagsError, MergeDocumentTagsErrors, MergeDocumentTagsResponse, MergeDocumentTagsResponses, MergeFileTagsData, MergeFileTagsError, MergeFileTagsErrors, MergeFileTagsResponse, MergeFileTagsResponses, MergeMemoryStoreTagsData, MergeMemoryStoreTagsErrors, MergeMemoryStoreTagsResponse, MergeMemoryStoreTagsResponses, MergeMemoryTagsData, MergeMemoryTagsErrors, MergeMemoryTagsResponse, MergeMemoryTagsResponses, MergeSessionTagsData, MergeSessionTagsError, MergeSessionTagsErrors, MergeSessionTagsResponse, MergeSessionTagsResponses, MetadataBag, MetadataBagText, MetadataFilter, MetadataQuery, MetadataSchemaRecord, MetadataSchemaResourceProperties, ModelRoute, ModelRouteResourceProperties, ModelRouteTarget, NodeExecution, NullableMetadataBag, NullableTagBag, OauthAuthorizationServerMetadata, OauthClientRegistrationRequest, OauthClientRegistrationResponse, OauthErrorResponse, OauthProtectedResourceMetadata, OauthTokenRequest, OauthTokenResponse, Options, Orchestration, OrchestrationEdge, OrchestrationId, OrchestrationNode, OrchestrationResourceProperties, OrchestrationRun, OrchestrationRunId, OrchestrationValidationError, OrchestrationValidationResult, OrchestrationVersion, OutputSchemaScorer, ParameterDeclaration, PatchAgentData, PatchAgentError, PatchAgentErrors, PatchAgentResponse, PatchAgentResponses, PauseOrchestrationRunData, PauseOrchestrationRunErrors, PauseOrchestrationRunRequest, PauseOrchestrationRunResponse, PauseOrchestrationRunResponses, PauseTaskData, PauseTaskErrors, PauseTaskRequest, PauseTaskResponse, PauseTaskResponses, PlanChange, PlanFormationData, PlanFormationErrors, PlanFormationResponse, PlanFormationResponses, PlanResult, PolicyDocument, PolicyRecord, PolicyResourceProperties, PolicyStatement, PresignedUrlRequest, PresignedUrlResponse, Price, PriceBookResponse, ProjectPrice, ProjectPriceResourceProperties, ProjectPricesResponse, ProjectRecord, PromoteAgentReleaseData, PromoteAgentReleaseError, PromoteAgentReleaseErrors, PromoteAgentReleaseResponse, PromoteAgentReleaseResponses, ProviderModelsResponse, ProviderPrice, ProviderPricesResponse, PurgeGenerationContentData, PurgeGenerationContentError, PurgeGenerationContentErrors, PurgeGenerationContentResponse, PurgeGenerationContentResponses, PurgeTraceContentData, PurgeTraceContentError, PurgeTraceContentErrors, PurgeTraceContentResponse, PurgeTraceContentResponses, QueueStats, Quota, QuotaResourceProperties, RedeliverWebhookDeliveryData, RedeliverWebhookDeliveryErrors, RedeliverWebhookDeliveryResponse, RedeliverWebhookDeliveryResponses, ReingestDocumentData, ReingestDocumentError, ReingestDocumentErrors, ReingestDocumentResponse, ReingestDocumentResponses, RejectApprovalData, RejectApprovalErrors, RejectApprovalResponse, RejectApprovalResponses, RemoveConversationMessageData, RemoveConversationMessageError, RemoveConversationMessageErrors, RemoveConversationMessageResponse, RemoveConversationMessageResponses, ReplaceActorTagsData, ReplaceActorTagsError, ReplaceActorTagsErrors, ReplaceActorTagsResponse, ReplaceActorTagsResponses, ReplaceConversationTagsData, ReplaceConversationTagsError, ReplaceConversationTagsErrors, ReplaceConversationTagsResponse, ReplaceConversationTagsResponses, ReplaceDocumentTagsData, ReplaceDocumentTagsError, ReplaceDocumentTagsErrors, ReplaceDocumentTagsResponse, ReplaceDocumentTagsResponses, ReplaceFileTagsData, ReplaceFileTagsError, ReplaceFileTagsErrors, ReplaceFileTagsResponse, ReplaceFileTagsResponses, ReplaceMemoryStoreTagsData, ReplaceMemoryStoreTagsErrors, ReplaceMemoryStoreTagsResponse, ReplaceMemoryStoreTagsResponses, ReplaceMemoryTagsData, ReplaceMemoryTagsErrors, ReplaceMemoryTagsResponse, ReplaceMemoryTagsResponses, ReplaceSessionTagsData, ReplaceSessionTagsError, ReplaceSessionTagsErrors, ReplaceSessionTagsResponse, ReplaceSessionTagsResponses, RequiredAction, ResolveExceptionData, ResolveExceptionErrors, ResolveExceptionResponse, ResolveExceptionResponses, ResourceDeclaration, RestoreAgentVersionData, RestoreAgentVersionError, RestoreAgentVersionErrors, RestoreAgentVersionRequest, RestoreAgentVersionResponse, RestoreAgentVersionResponses, RestoreDocumentVersionData, RestoreDocumentVersionError, RestoreDocumentVersionErrors, RestoreDocumentVersionResponse, RestoreDocumentVersionResponses, RestoreGuardrailVersionData, RestoreGuardrailVersionError, RestoreGuardrailVersionErrors, RestoreGuardrailVersionRequest, RestoreGuardrailVersionResponse, RestoreGuardrailVersionResponses, RestoreOrchestrationVersionData, RestoreOrchestrationVersionErrors, RestoreOrchestrationVersionRequest, RestoreOrchestrationVersionResponse, RestoreOrchestrationVersionResponses, RestoreWorkflowVersionData, RestoreWorkflowVersionErrors, RestoreWorkflowVersionRequest, RestoreWorkflowVersionResponse, RestoreWorkflowVersionResponses, ResumeOrchestrationRunData, ResumeOrchestrationRunErrors, ResumeOrchestrationRunResponse, ResumeOrchestrationRunResponses, ResumeTaskData, ResumeTaskErrors, ResumeTaskResponse, ResumeTaskResponses, RetractMemoryData, RetractMemoryErrors, RetractMemoryResponse, RetractMemoryResponses, RotateTriggerSecretData, RotateTriggerSecretErrors, RotateTriggerSecretResponse, RotateTriggerSecretResponses, RotateWebhookSecretData, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, ScorerResult, Scorers, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SecretResourceProperties, SendSessionMessageResponse, SessionId, SessionRecord, SessionResourceProperties, SetAgentReleaseData, SetAgentReleaseError, SetAgentReleaseErrors, SetAgentReleaseRequest, SetAgentReleaseResponse, SetAgentReleaseResponses, SoatClientOptions, StartEvalRunData, StartEvalRunErrors, StartEvalRunResponse, StartEvalRunResponses, StartOrchestrationRunData, StartOrchestrationRunErrors, StartOrchestrationRunRequest, StartOrchestrationRunResponse, StartOrchestrationRunResponses, SubmitAgentToolOutputsData, SubmitAgentToolOutputsError, SubmitAgentToolOutputsErrors, SubmitAgentToolOutputsResponse, SubmitAgentToolOutputsResponses, SubmitHumanInputData, SubmitHumanInputErrors, SubmitHumanInputResponse, SubmitHumanInputResponses, SubmitSessionToolOutputsData, SubmitSessionToolOutputsError, SubmitSessionToolOutputsErrors, SubmitSessionToolOutputsRequest, SubmitSessionToolOutputsResponse, SubmitSessionToolOutputsResponses, SubmitToolOutputsRequest, TagBag, TagsQuery, Task, TaskTransition, Tool, ToolBinding, ToolExecuteAuthConfig, ToolExecuteConfig, ToolMcpConfig, ToolOutputMessageContent, ToolResourceProperties, ToolScorer, Trace, TraceTreeNode, TranscriptStep, TranscriptToolCall, TranscriptToolResult, TransitionTaskData, TransitionTaskErrors, TransitionTaskRequest, TransitionTaskResponse, TransitionTaskResponses, Trigger, TriggerFiring, TriggerFiringListResponse, TriggerResourceProperties, TriggerSecretResponse, TriggerWithSecret, UnauthorizedFormationAction, UpdateActorData, UpdateActorError, UpdateActorErrors, UpdateActorResponse, UpdateActorResponses, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateAiProviderData, UpdateAiProviderErrors, UpdateAiProviderPricesData, UpdateAiProviderPricesErrors, UpdateAiProviderPricesResponse, UpdateAiProviderPricesResponses, UpdateAiProviderResponses, UpdateApiKeyData, UpdateApiKeyError, UpdateApiKeyErrors, UpdateApiKeyResponse, UpdateApiKeyResponses, UpdateConversationData, UpdateConversationError, UpdateConversationErrors, UpdateConversationResponse, UpdateConversationResponses, UpdateDatasetData, UpdateDatasetErrors, UpdateDatasetItemData, UpdateDatasetItemErrors, UpdateDatasetItemResponse, UpdateDatasetItemResponses, UpdateDatasetResponse, UpdateDatasetResponses, UpdateDocumentData, UpdateDocumentError, UpdateDocumentErrors, UpdateDocumentResponse, UpdateDocumentResponses, UpdateEvalData, UpdateEvalErrors, UpdateEvalResponse, UpdateEvalResponses, UpdateFileMetadataData, UpdateFileMetadataError, UpdateFileMetadataErrors, UpdateFileMetadataResponse, UpdateFileMetadataResponses, UpdateFormationData, UpdateFormationErrors, UpdateFormationResponse, UpdateFormationResponses, UpdateGenerationData, UpdateGenerationError, UpdateGenerationErrors, UpdateGenerationRequest, UpdateGenerationResponse, UpdateGenerationResponses, UpdateGuardrailData, UpdateGuardrailError, UpdateGuardrailErrors, UpdateGuardrailRequest, UpdateGuardrailResponse, UpdateGuardrailResponses, UpdateIngestionRuleData, UpdateIngestionRuleErrors, UpdateIngestionRuleResponse, UpdateIngestionRuleResponses, UpdateMemoryData, UpdateMemoryErrors, UpdateMemoryResponse, UpdateMemoryResponses, UpdateMemoryRuleData, UpdateMemoryRuleErrors, UpdateMemoryRuleResponse, UpdateMemoryRuleResponses, UpdateMemoryStoreData, UpdateMemoryStoreErrors, UpdateMemoryStoreResponse, UpdateMemoryStoreResponses, UpdateMetadataSchemaData, UpdateMetadataSchemaError, UpdateMetadataSchemaErrors, UpdateMetadataSchemaResponse, UpdateMetadataSchemaResponses, UpdateModelRouteData, UpdateModelRouteErrors, UpdateModelRouteResponse, UpdateModelRouteResponses, UpdateOrchestrationData, UpdateOrchestrationErrors, UpdateOrchestrationRequest, UpdateOrchestrationResponse, UpdateOrchestrationResponses, UpdatePolicyData, UpdatePolicyError, UpdatePolicyErrors, UpdatePolicyResponse, UpdatePolicyResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectPricesData, UpdateProjectPricesErrors, UpdateProjectPricesResponse, UpdateProjectPricesResponses, UpdateProjectResponse, UpdateProjectResponses, UpdateQuotaData, UpdateQuotaErrors, UpdateQuotaResponse, UpdateQuotaResponses, UpdateSecretData, UpdateSecretErrors, UpdateSecretResponses, UpdateSessionData, UpdateSessionError, UpdateSessionErrors, UpdateSessionRequest, UpdateSessionResponse, UpdateSessionResponses, UpdateTaskData, UpdateTaskErrors, UpdateTaskRequest, UpdateTaskResponse, UpdateTaskResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolRequest, UpdateToolResponse, UpdateToolResponses, UpdateTriggerData, UpdateTriggerErrors, UpdateTriggerRequest, UpdateTriggerResponse, UpdateTriggerResponses, UpdateWebhookData, UpdateWebhookErrors, UpdateWebhookRequest, UpdateWebhookResponse, UpdateWebhookResponses, UpdateWorkflowData, UpdateWorkflowErrors, UpdateWorkflowRequest, UpdateWorkflowResponse, UpdateWorkflowResponses, UploadFileBase64Data, UploadFileBase64Error, UploadFileBase64Errors, UploadFileBase64Request, UploadFileBase64Response, UploadFileBase64Responses, UploadFileData, UploadFileError, UploadFileErrors, UploadFileResponse, UploadFileResponses, UploadFileWithTokenData, UploadFileWithTokenError, UploadFileWithTokenErrors, UploadFileWithTokenRequest, UploadFileWithTokenResponse, UploadFileWithTokenResponses, UpsertPriceBookData, UpsertPriceBookError, UpsertPriceBookErrors, UpsertPriceBookResponse, UpsertPriceBookResponses, UpsertPricesRequest, UpsertProjectPricesRequest, UpsertProviderPricesRequest, UsageAggregate, UsageAggregateBucket, UsageAggregateComponent, UsageAggregateFilters, UsageAggregateGroup, UsageAggregateTotals, UsageComponent, UsageDistinct, UsageEvent, UsageGroupBy, UsageReceipt, UsageThreshold, UsageTotals, UserRecord, ValidateFormationData, ValidateFormationErrors, ValidateFormationResponse, ValidateFormationResponses, ValidateMetadataData, ValidateMetadataError, ValidateMetadataErrors, ValidateMetadataResponse, ValidateMetadataResponses, ValidateOrchestrationData, ValidateOrchestrationErrors, ValidateOrchestrationRequest, ValidateOrchestrationResponse, ValidateOrchestrationResponses, ValidationError, ValidationResult, Webhook, WebhookResourceProperties, WebhookSecretResponse, WebhookWithSecret, WithdrawDocumentData, WithdrawDocumentError, WithdrawDocumentErrors, WithdrawDocumentResponse, WithdrawDocumentResponses, Workflow, WorkflowResourceProperties, WorkflowState, WorkflowTransition, WorkflowVersion };