@labelbox/rl-sdk 0.0.146 → 0.0.148

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.
@@ -7126,7 +7126,7 @@ export type LockProblemVersionDto = {
7126
7126
  };
7127
7127
  };
7128
7128
  /**
7129
- * A configured agent: its model, system prompt, tool and MCP surface, and the vault defaults new sessions inherit. Mutating an agent mints a new immutable AgentVersion; a session records the version it ran.
7129
+ * A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.
7130
7130
  */
7131
7131
  export type ManagedAgentsAgent = {
7132
7132
  /**
@@ -7206,6 +7206,10 @@ export type ManagedAgentsAgent = {
7206
7206
  * System prompt prepended to every conversation this agent runs.
7207
7207
  */
7208
7208
  system?: string;
7209
+ /**
7210
+ * Current organization-scoped classification tags applied to this agent. Always an array. Tags are mutable catalog metadata and are deliberately absent from AgentVersion and session runtime snapshots.
7211
+ */
7212
+ tags: Array<ManagedAgentsTag>;
7209
7213
  /**
7210
7214
  * Additional tool groups to enable, snapshotted into the session and passed to the execution runtime unchanged. This does NOT gate the sandbox tools: run_command, run_process, read_file and write_file are offered to every session with a sandbox whether or not this list mentions them, so a shell needs no entry here. The names a session actually offers the model are reported as config.available_builtin_tools on the started session -- read that rather than inferring the tool surface from this list.
7211
7215
  */
@@ -8247,6 +8251,23 @@ export type ManagedAgentsCreateEnvironmentRequest = {
8247
8251
  */
8248
8252
  stopped_delete_after_seconds?: number;
8249
8253
  };
8254
+ /**
8255
+ * Request body for creating one organization-scoped tag definition. The organization always comes from the authenticated principal.
8256
+ */
8257
+ export type ManagedAgentsCreateTagRequest = {
8258
+ /**
8259
+ * Display color in #RRGGBB form.
8260
+ */
8261
+ color: string;
8262
+ /**
8263
+ * Optional operator-facing explanation of this classification, up to 280 characters.
8264
+ */
8265
+ description?: string;
8266
+ /**
8267
+ * Display label. Leading and trailing whitespace is removed; the result must contain 1-32 characters and be unique case-insensitively among live tags in the organization.
8268
+ */
8269
+ label: string;
8270
+ };
8250
8271
  /**
8251
8272
  * Request body creating a Slack wake rule: the connection and event to match, and the agent, environment, and vaults a match runs with. Every referenced object must belong to the calling organization; GitHub events use provider-neutral automations instead.
8252
8273
  */
@@ -8376,7 +8397,7 @@ export type ManagedAgentsDefineOutcomeRequest = {
8376
8397
  rubric: string;
8377
8398
  };
8378
8399
  /**
8379
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
8400
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
8380
8401
  */
8381
8402
  export type ManagedAgentsDeletedResponse = {
8382
8403
  /**
@@ -9156,6 +9177,23 @@ export type ManagedAgentsMemory = {
9156
9177
  */
9157
9178
  updated_at?: string;
9158
9179
  };
9180
+ /**
9181
+ * Fields for creating one memory. Path, content and summary are all required; omitting any of them is a 400.
9182
+ */
9183
+ export type ManagedAgentsMemoryCreateRequest = {
9184
+ /**
9185
+ * Full text of the memory. Capped at 100 kB; memory works better as many small focused documents.
9186
+ */
9187
+ content: string;
9188
+ /**
9189
+ * Address within the store, e.g. /conventions/testing.md.
9190
+ */
9191
+ path: string;
9192
+ /**
9193
+ * One line describing what this memory says, shown in search results and the console.
9194
+ */
9195
+ summary: string;
9196
+ };
9159
9197
  /**
9160
9198
  * One level of a memory store's namespace: memories and the prefixes standing for the paths beneath them.
9161
9199
  */
@@ -9175,7 +9213,7 @@ export type ManagedAgentsMemoryPinRequest = {
9175
9213
  pinned?: boolean;
9176
9214
  };
9177
9215
  /**
9178
- * Fields for creating or updating one memory. Supply content_sha256 on update to apply the write only if the stored content still matches what you read.
9216
+ * Fields for updating one memory. Every field is optional and an omitted one is left unchanged. Supply content_sha256 to apply the write only if the stored content still matches what you read.
9179
9217
  */
9180
9218
  export type ManagedAgentsMemoryRequest = {
9181
9219
  /**
@@ -10295,6 +10333,15 @@ export type ManagedAgentsReflectionListResponse = {
10295
10333
  */
10296
10334
  reflections?: unknown;
10297
10335
  };
10336
+ /**
10337
+ * Request body for atomically replacing an agent's complete mutable tag classification.
10338
+ */
10339
+ export type ManagedAgentsReplaceAgentTagsRequest = {
10340
+ /**
10341
+ * Complete replacement set of tag ids, with at most 32 distinct ids. Every id must be a live tag in the caller's organization. Duplicates are collapsed before enforcing the limit; [] removes every tag.
10342
+ */
10343
+ tag_ids: Array<string>;
10344
+ };
10298
10345
  /**
10299
10346
  * Structured input for manually starting an automation without a webhook delivery.
10300
10347
  */
@@ -11032,6 +11079,48 @@ export type ManagedAgentsStartSessionRequest = {
11032
11079
  */
11033
11080
  vault_ids?: Array<string>;
11034
11081
  };
11082
+ /**
11083
+ * An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.
11084
+ */
11085
+ export type ManagedAgentsTag = {
11086
+ /**
11087
+ * Display color in #RRGGBB form.
11088
+ */
11089
+ color?: string;
11090
+ /**
11091
+ * Server-assigned RFC 3339 timestamp of when the tag was created.
11092
+ */
11093
+ created_at?: string;
11094
+ /**
11095
+ * Optional operator-facing explanation of the classification, up to 280 characters.
11096
+ */
11097
+ description?: string;
11098
+ /**
11099
+ * Display label, trimmed by the service. Unique case-insensitively among live tags in this organization.
11100
+ */
11101
+ label?: string;
11102
+ /**
11103
+ * Labelbox organization that owns the tag. Server-assigned from the authenticated principal and never accepted as authority from the request body.
11104
+ */
11105
+ organization_id?: string;
11106
+ /**
11107
+ * Server-assigned tag id (UUID).
11108
+ */
11109
+ tag_id?: string;
11110
+ /**
11111
+ * Server-assigned RFC 3339 timestamp of the most recent definition update.
11112
+ */
11113
+ updated_at?: string;
11114
+ };
11115
+ /**
11116
+ * A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.
11117
+ */
11118
+ export type ManagedAgentsTagListResponse = {
11119
+ /**
11120
+ * The complete live tag set for this response. Always an array; an empty array means no definitions exist or the agent has no classifications.
11121
+ */
11122
+ tags: Array<ManagedAgentsTag>;
11123
+ };
11035
11124
  /**
11036
11125
  * One tool or toolset enabled on an agent version, with its type-specific settings. Callers supply these when creating an agent version; the resulting session offers exactly the tools they declare.
11037
11126
  */
@@ -11192,6 +11281,117 @@ export type ManagedAgentsTriggerBindingListResponse = {
11192
11281
  */
11193
11282
  bindings?: unknown;
11194
11283
  };
11284
+ /**
11285
+ * Partial update to an agent's versioned execution definition. Omitted fields keep their current values. Tags are changed only through the dedicated agent tag routes.
11286
+ */
11287
+ export type ManagedAgentsUpdateAgentRequest = {
11288
+ /**
11289
+ * Server-assigned id of the agent, used in the agent, agent-version, and session routes.
11290
+ */
11291
+ agent_id?: string;
11292
+ /**
11293
+ * Server-assigned RFC 3339 timestamp of when the agent was created.
11294
+ */
11295
+ created_at?: string;
11296
+ /**
11297
+ * Caller-defined tools exposed to the model in addition to the built-in toolsets.
11298
+ */
11299
+ custom_tools?: unknown;
11300
+ /**
11301
+ * Narrows the default vaults to individual credentials. Every credential is selected when a vault is first added, and may then be unchecked.
11302
+ */
11303
+ default_credential_refs?: unknown;
11304
+ /**
11305
+ * Markdown rubric that sessions started from this agent are graded against when their create request omits an outcome. A session that supplies its own outcome ignores this entirely. Omit the field to keep the stored rubric; send an empty string to remove it.
11306
+ */
11307
+ default_rubric?: unknown;
11308
+ /**
11309
+ * Vaults whose credentials are copied into a new session when its create request omits vault_ids. Sending an explicit empty list on the session still overrides these.
11310
+ */
11311
+ default_vault_ids?: unknown;
11312
+ /**
11313
+ * Free-text note about what this agent is for.
11314
+ */
11315
+ description?: string;
11316
+ /**
11317
+ * Server-maintained id of the newest version of this agent; sessions started without an explicit version use it.
11318
+ */
11319
+ latest_agent_version_id?: string;
11320
+ /**
11321
+ * Remote MCP servers to attach. Each entry is an object with name (the label the server's tools are grouped under) and url (its http/https endpoint); any further keys are passed to the runtime unchanged. Credentials come from the vaults granted to the session, not from this entry. Tools are discovered and snapshotted at session start.
11322
+ */
11323
+ mcp_servers?: unknown;
11324
+ /**
11325
+ * Caller-owned key/value data stored with the agent and returned unchanged.
11326
+ */
11327
+ metadata?: {
11328
+ [key: string]: unknown;
11329
+ };
11330
+ /**
11331
+ * Model the agent runs on. Pass a gateway model id exactly as the gateway models catalog reports it, e.g. anthropic/claude-sonnet-4-5; it is stored prefixed as litellm:anthropic/claude-sonnet-4-5, which is the form the router reads and the form returned on reads. An explicitly provider-qualified string such as anthropic:claude-sonnet-4-5 selects a directly-configured provider instead and is left as written. An id the gateway does not serve is rejected here, not at the session's first turn.
11332
+ */
11333
+ model?: string;
11334
+ model_config?: ManagedAgentsInferenceConfig;
11335
+ /**
11336
+ * Canonical model-reference id to run instead of a gateway model id, for fine-tuned or self-hosted models.
11337
+ */
11338
+ model_ref_id?: string;
11339
+ /**
11340
+ * Multi-agent orchestration settings, such as subagent definitions and delegation limits.
11341
+ */
11342
+ multiagent?: {
11343
+ [key: string]: unknown;
11344
+ };
11345
+ /**
11346
+ * Human-readable label shown wherever agents are listed. Not required to be unique.
11347
+ */
11348
+ name?: string;
11349
+ /**
11350
+ * Labelbox organization that owns the agent. Server-assigned from the caller's credentials; a value sent in a request body is ignored.
11351
+ */
11352
+ organization_id?: string;
11353
+ /**
11354
+ * Runtime adapter configurations that change how the harness executes turns; each entry is adapter-specific.
11355
+ */
11356
+ runtime_adapters?: unknown;
11357
+ /**
11358
+ * Skill packages loaded into the agent's runtime, each an entry with the skill reference and its metadata.
11359
+ */
11360
+ skills?: unknown;
11361
+ /**
11362
+ * System prompt prepended to every conversation this agent runs.
11363
+ */
11364
+ system?: string;
11365
+ /**
11366
+ * Additional tool groups to enable, snapshotted into the session and passed to the execution runtime unchanged. This does NOT gate the sandbox tools: run_command, run_process, read_file and write_file are offered to every session with a sandbox whether or not this list mentions them, so a shell needs no entry here. The names a session actually offers the model are reported as config.available_builtin_tools on the started session -- read that rather than inferring the tool surface from this list.
11367
+ */
11368
+ toolsets?: unknown;
11369
+ /**
11370
+ * Server-assigned RFC 3339 timestamp of the most recent update to the agent.
11371
+ */
11372
+ updated_at?: string;
11373
+ /**
11374
+ * Whether new sessions may use the native web_search tool. Omitted on legacy agents and interpreted as enabled.
11375
+ */
11376
+ web_search_enabled?: boolean;
11377
+ };
11378
+ /**
11379
+ * Request body for changing a tag definition. Every field is optional and tag applications remain unchanged.
11380
+ */
11381
+ export type ManagedAgentsUpdateTagRequest = {
11382
+ /**
11383
+ * Replacement display color in #RRGGBB form. Omit to keep the current color.
11384
+ */
11385
+ color?: string;
11386
+ /**
11387
+ * Replacement description. Send an empty string to clear it; omit to keep the current description.
11388
+ */
11389
+ description?: string;
11390
+ /**
11391
+ * Replacement display label. Leading and trailing whitespace is removed. Omit to keep the current label.
11392
+ */
11393
+ label?: string;
11394
+ };
11195
11395
  /**
11196
11396
  * Partial update of one trigger binding. Only the properties present in the request change; an omitted property keeps its stored value, so an explicit false or empty list is distinguishable from an omission. The merged binding is revalidated as a whole, which is what keeps a single-field edit from bypassing a provider or tenancy invariant.
11197
11397
  */
@@ -22739,7 +22939,12 @@ export type WorkspaceFileDownloadUrlResponseDto = {
22739
22939
  export type GetManagedAgentsV1AgentsData = {
22740
22940
  body?: never;
22741
22941
  path?: never;
22742
- query?: never;
22942
+ query?: {
22943
+ /**
22944
+ * Comma-separated tag ids, with at most 32 distinct ids. Blank segments are ignored. An agent must carry every requested tag (AND semantics). Unknown or cross-organization ids return 404.
22945
+ */
22946
+ tag_ids?: string;
22947
+ };
22743
22948
  url: '/managed-agents/v1/agents';
22744
22949
  };
22745
22950
  export type GetManagedAgentsV1AgentsErrors = {
@@ -22755,6 +22960,10 @@ export type GetManagedAgentsV1AgentsErrors = {
22755
22960
  * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
22756
22961
  */
22757
22962
  403: ApiErrorResponse;
22963
+ /**
22964
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
22965
+ */
22966
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
22758
22967
  /**
22759
22968
  * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
22760
22969
  */
@@ -22819,7 +23028,7 @@ export type PostManagedAgentsV1AgentsErrors = {
22819
23028
  export type PostManagedAgentsV1AgentsError = PostManagedAgentsV1AgentsErrors[keyof PostManagedAgentsV1AgentsErrors];
22820
23029
  export type PostManagedAgentsV1AgentsResponses = {
22821
23030
  /**
22822
- * A configured agent: its model, system prompt, tool and MCP surface, and the vault defaults new sessions inherit. Mutating an agent mints a new immutable AgentVersion; a session records the version it ran.
23031
+ * A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.
22823
23032
  */
22824
23033
  200: ManagedAgentsAgent;
22825
23034
  };
@@ -22872,7 +23081,7 @@ export type DeleteManagedAgentsV1AgentsByAgentIdErrors = {
22872
23081
  export type DeleteManagedAgentsV1AgentsByAgentIdError = DeleteManagedAgentsV1AgentsByAgentIdErrors[keyof DeleteManagedAgentsV1AgentsByAgentIdErrors];
22873
23082
  export type DeleteManagedAgentsV1AgentsByAgentIdResponses = {
22874
23083
  /**
22875
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
23084
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
22876
23085
  */
22877
23086
  200: ManagedAgentsDeletedResponse;
22878
23087
  };
@@ -22921,13 +23130,13 @@ export type GetManagedAgentsV1AgentsByAgentIdErrors = {
22921
23130
  export type GetManagedAgentsV1AgentsByAgentIdError = GetManagedAgentsV1AgentsByAgentIdErrors[keyof GetManagedAgentsV1AgentsByAgentIdErrors];
22922
23131
  export type GetManagedAgentsV1AgentsByAgentIdResponses = {
22923
23132
  /**
22924
- * A configured agent: its model, system prompt, tool and MCP surface, and the vault defaults new sessions inherit. Mutating an agent mints a new immutable AgentVersion; a session records the version it ran.
23133
+ * A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.
22925
23134
  */
22926
23135
  200: ManagedAgentsAgent;
22927
23136
  };
22928
23137
  export type GetManagedAgentsV1AgentsByAgentIdResponse = GetManagedAgentsV1AgentsByAgentIdResponses[keyof GetManagedAgentsV1AgentsByAgentIdResponses];
22929
23138
  export type PatchManagedAgentsV1AgentsByAgentIdData = {
22930
- body?: ManagedAgentsAgent;
23139
+ body?: ManagedAgentsUpdateAgentRequest;
22931
23140
  path: {
22932
23141
  /**
22933
23142
  * Agent id (UUID) as returned by createAgent or listAgents.
@@ -22978,7 +23187,7 @@ export type PatchManagedAgentsV1AgentsByAgentIdErrors = {
22978
23187
  export type PatchManagedAgentsV1AgentsByAgentIdError = PatchManagedAgentsV1AgentsByAgentIdErrors[keyof PatchManagedAgentsV1AgentsByAgentIdErrors];
22979
23188
  export type PatchManagedAgentsV1AgentsByAgentIdResponses = {
22980
23189
  /**
22981
- * A configured agent: its model, system prompt, tool and MCP surface, and the vault defaults new sessions inherit. Mutating an agent mints a new immutable AgentVersion; a session records the version it ran.
23190
+ * A configured agent: its versioned execution definition plus current mutable classification tags. Patching the execution definition mints a new immutable AgentVersion; applying tags does not. A session records the version it ran and never snapshots tags.
22982
23191
  */
22983
23192
  200: ManagedAgentsAgent;
22984
23193
  };
@@ -23150,18 +23359,18 @@ export type PostManagedAgentsV1AgentsByAgentIdReflectionsResponses = {
23150
23359
  202: ManagedAgentsReflection;
23151
23360
  };
23152
23361
  export type PostManagedAgentsV1AgentsByAgentIdReflectionsResponse = PostManagedAgentsV1AgentsByAgentIdReflectionsResponses[keyof PostManagedAgentsV1AgentsByAgentIdReflectionsResponses];
23153
- export type GetManagedAgentsV1AgentsByAgentIdVersionsData = {
23154
- body?: never;
23362
+ export type PutManagedAgentsV1AgentsByAgentIdTagsData = {
23363
+ body?: ManagedAgentsReplaceAgentTagsRequest;
23155
23364
  path: {
23156
23365
  /**
23157
- * Agent id (UUID) as returned by createAgent or listAgents.
23366
+ * Agent id (UUID) whose classifications are replaced.
23158
23367
  */
23159
23368
  agent_id: string;
23160
23369
  };
23161
23370
  query?: never;
23162
- url: '/managed-agents/v1/agents/{agent_id}/versions';
23371
+ url: '/managed-agents/v1/agents/{agent_id}/tags';
23163
23372
  };
23164
- export type GetManagedAgentsV1AgentsByAgentIdVersionsErrors = {
23373
+ export type PutManagedAgentsV1AgentsByAgentIdTagsErrors = {
23165
23374
  /**
23166
23375
  * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23167
23376
  */
@@ -23178,6 +23387,14 @@ export type GetManagedAgentsV1AgentsByAgentIdVersionsErrors = {
23178
23387
  * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23179
23388
  */
23180
23389
  404: ManagedAgentsApiErrorBody | ApiErrorResponse;
23390
+ /**
23391
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23392
+ */
23393
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
23394
+ /**
23395
+ * The request exceeds a size or transaction budget. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23396
+ */
23397
+ 413: ManagedAgentsApiErrorBody | ApiErrorResponse;
23181
23398
  /**
23182
23399
  * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23183
23400
  */
@@ -23191,30 +23408,30 @@ export type GetManagedAgentsV1AgentsByAgentIdVersionsErrors = {
23191
23408
  */
23192
23409
  503: ManagedAgentsApiErrorBody | ApiErrorResponse;
23193
23410
  };
23194
- export type GetManagedAgentsV1AgentsByAgentIdVersionsError = GetManagedAgentsV1AgentsByAgentIdVersionsErrors[keyof GetManagedAgentsV1AgentsByAgentIdVersionsErrors];
23195
- export type GetManagedAgentsV1AgentsByAgentIdVersionsResponses = {
23411
+ export type PutManagedAgentsV1AgentsByAgentIdTagsError = PutManagedAgentsV1AgentsByAgentIdTagsErrors[keyof PutManagedAgentsV1AgentsByAgentIdTagsErrors];
23412
+ export type PutManagedAgentsV1AgentsByAgentIdTagsResponses = {
23196
23413
  /**
23197
- * Response body of GET /v1/agents/{agent_id}/versions. Scoped to the one agent in the path, so an empty list means that agent has no versions yet, not that no agents exist. Versions are immutable snapshots: pin one to make a session reproducible.
23414
+ * A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.
23198
23415
  */
23199
- 200: ManagedAgentsAgentVersionListResponse;
23416
+ 200: ManagedAgentsTagListResponse;
23200
23417
  };
23201
- export type GetManagedAgentsV1AgentsByAgentIdVersionsResponse = GetManagedAgentsV1AgentsByAgentIdVersionsResponses[keyof GetManagedAgentsV1AgentsByAgentIdVersionsResponses];
23202
- export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdData = {
23418
+ export type PutManagedAgentsV1AgentsByAgentIdTagsResponse = PutManagedAgentsV1AgentsByAgentIdTagsResponses[keyof PutManagedAgentsV1AgentsByAgentIdTagsResponses];
23419
+ export type DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdData = {
23203
23420
  body?: never;
23204
23421
  path: {
23205
23422
  /**
23206
- * Agent id (UUID) the version belongs to.
23423
+ * Agent id (UUID) as returned by createAgent or listAgents.
23207
23424
  */
23208
23425
  agent_id: string;
23209
23426
  /**
23210
- * Immutable agent version id (UUID), as listed by listAgentVersions or reported as an agent's latest_agent_version_id.
23427
+ * Tag id (UUID) as returned by createTag or listTags.
23211
23428
  */
23212
- agent_version_id: string;
23429
+ tag_id: string;
23213
23430
  };
23214
23431
  query?: never;
23215
- url: '/managed-agents/v1/agents/{agent_id}/versions/{agent_version_id}';
23432
+ url: '/managed-agents/v1/agents/{agent_id}/tags/{tag_id}';
23216
23433
  };
23217
- export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors = {
23434
+ export type DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors = {
23218
23435
  /**
23219
23436
  * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23220
23437
  */
@@ -23231,6 +23448,10 @@ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors = {
23231
23448
  * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23232
23449
  */
23233
23450
  404: ManagedAgentsApiErrorBody | ApiErrorResponse;
23451
+ /**
23452
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23453
+ */
23454
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
23234
23455
  /**
23235
23456
  * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23236
23457
  */
@@ -23244,65 +23465,224 @@ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors = {
23244
23465
  */
23245
23466
  503: ManagedAgentsApiErrorBody | ApiErrorResponse;
23246
23467
  };
23247
- export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdError = GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors[keyof GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors];
23248
- export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses = {
23468
+ export type DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdError = DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors[keyof DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors];
23469
+ export type DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses = {
23249
23470
  /**
23250
- * An immutable snapshot of an agent's configuration, minted on every update. Sessions reference a version rather than the agent, so a running session's behaviour cannot change under it.
23471
+ * No Content
23251
23472
  */
23252
- 200: ManagedAgentsAgentVersion;
23473
+ 204: void;
23253
23474
  };
23254
- export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponse = GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses[keyof GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses];
23255
- export type GetManagedAgentsV1AnalyticsByFamilyData = {
23475
+ export type DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdResponse = DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses[keyof DeleteManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses];
23476
+ export type PutManagedAgentsV1AgentsByAgentIdTagsByTagIdData = {
23256
23477
  body?: never;
23257
23478
  path: {
23258
23479
  /**
23259
- * Metric family to read: managed_agent_usage for tool, token, and cost figures, managed_agent_turn for turn counts and turn duration percentiles, managed_agent_environment for sandbox startup latency.
23260
- */
23261
- family: 'managed_agent_usage' | 'managed_agent_turn' | 'managed_agent_environment';
23262
- };
23263
- query?: {
23264
- /**
23265
- * Read locality. workspace is the caller's own organization; tenant aggregates every workspace in the parent tenant organization and requires a Tenant Admin role.
23266
- */
23267
- scope?: 'workspace' | 'tenant';
23268
- /**
23269
- * With scope=tenant, narrow to one workspace of the tenant. Ignored at workspace scope, where the authenticated organization is authoritative.
23270
- */
23271
- workspace_id?: string;
23272
- /**
23273
- * RFC 3339 start of the window. Defaults to seven days before to. Widened outward to a bucket boundary.
23274
- */
23275
- from?: string;
23276
- /**
23277
- * RFC 3339 exclusive end of the window. Defaults to now.
23278
- */
23279
- to?: string;
23280
- /**
23281
- * Series bucket width. Defaults to hourly for windows up to two days and daily beyond that.
23282
- */
23283
- granularity?: 'hour' | 'day';
23284
- /**
23285
- * Filter to work under sessions launched from this agent, including its subagents.
23286
- */
23287
- launched_agent_id?: string;
23288
- /**
23289
- * Filter to work performed by this agent, whether it was launched directly or delegated to.
23290
- */
23291
- executing_agent_id?: string;
23292
- /**
23293
- * Filter to one immutable agent version.
23294
- */
23295
- executing_agent_version_id?: string;
23296
- /**
23297
- * Filter to one provider model id.
23480
+ * Agent id (UUID) as returned by createAgent or listAgents.
23298
23481
  */
23299
- model?: string;
23482
+ agent_id: string;
23300
23483
  /**
23301
- * Filter by the system a project or external source belongs to, e.g. rl_gym, taiga, or slack_thread.
23484
+ * Tag id (UUID) as returned by createTag or listTags.
23302
23485
  */
23303
- project_source?: string;
23304
- /**
23305
- * Filter to one project or external source id within project_source.
23486
+ tag_id: string;
23487
+ };
23488
+ query?: never;
23489
+ url: '/managed-agents/v1/agents/{agent_id}/tags/{tag_id}';
23490
+ };
23491
+ export type PutManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors = {
23492
+ /**
23493
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23494
+ */
23495
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
23496
+ /**
23497
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23498
+ */
23499
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
23500
+ /**
23501
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
23502
+ */
23503
+ 403: ApiErrorResponse;
23504
+ /**
23505
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23506
+ */
23507
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
23508
+ /**
23509
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23510
+ */
23511
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
23512
+ /**
23513
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23514
+ */
23515
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
23516
+ /**
23517
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23518
+ */
23519
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
23520
+ /**
23521
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23522
+ */
23523
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
23524
+ };
23525
+ export type PutManagedAgentsV1AgentsByAgentIdTagsByTagIdError = PutManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors[keyof PutManagedAgentsV1AgentsByAgentIdTagsByTagIdErrors];
23526
+ export type PutManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses = {
23527
+ /**
23528
+ * A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.
23529
+ */
23530
+ 200: ManagedAgentsTagListResponse;
23531
+ };
23532
+ export type PutManagedAgentsV1AgentsByAgentIdTagsByTagIdResponse = PutManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses[keyof PutManagedAgentsV1AgentsByAgentIdTagsByTagIdResponses];
23533
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsData = {
23534
+ body?: never;
23535
+ path: {
23536
+ /**
23537
+ * Agent id (UUID) as returned by createAgent or listAgents.
23538
+ */
23539
+ agent_id: string;
23540
+ };
23541
+ query?: never;
23542
+ url: '/managed-agents/v1/agents/{agent_id}/versions';
23543
+ };
23544
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsErrors = {
23545
+ /**
23546
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23547
+ */
23548
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
23549
+ /**
23550
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23551
+ */
23552
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
23553
+ /**
23554
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
23555
+ */
23556
+ 403: ApiErrorResponse;
23557
+ /**
23558
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23559
+ */
23560
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
23561
+ /**
23562
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23563
+ */
23564
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
23565
+ /**
23566
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23567
+ */
23568
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
23569
+ /**
23570
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23571
+ */
23572
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
23573
+ };
23574
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsError = GetManagedAgentsV1AgentsByAgentIdVersionsErrors[keyof GetManagedAgentsV1AgentsByAgentIdVersionsErrors];
23575
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsResponses = {
23576
+ /**
23577
+ * Response body of GET /v1/agents/{agent_id}/versions. Scoped to the one agent in the path, so an empty list means that agent has no versions yet, not that no agents exist. Versions are immutable snapshots: pin one to make a session reproducible.
23578
+ */
23579
+ 200: ManagedAgentsAgentVersionListResponse;
23580
+ };
23581
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsResponse = GetManagedAgentsV1AgentsByAgentIdVersionsResponses[keyof GetManagedAgentsV1AgentsByAgentIdVersionsResponses];
23582
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdData = {
23583
+ body?: never;
23584
+ path: {
23585
+ /**
23586
+ * Agent id (UUID) the version belongs to.
23587
+ */
23588
+ agent_id: string;
23589
+ /**
23590
+ * Immutable agent version id (UUID), as listed by listAgentVersions or reported as an agent's latest_agent_version_id.
23591
+ */
23592
+ agent_version_id: string;
23593
+ };
23594
+ query?: never;
23595
+ url: '/managed-agents/v1/agents/{agent_id}/versions/{agent_version_id}';
23596
+ };
23597
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors = {
23598
+ /**
23599
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23600
+ */
23601
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
23602
+ /**
23603
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23604
+ */
23605
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
23606
+ /**
23607
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
23608
+ */
23609
+ 403: ApiErrorResponse;
23610
+ /**
23611
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23612
+ */
23613
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
23614
+ /**
23615
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23616
+ */
23617
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
23618
+ /**
23619
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23620
+ */
23621
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
23622
+ /**
23623
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
23624
+ */
23625
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
23626
+ };
23627
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdError = GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors[keyof GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdErrors];
23628
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses = {
23629
+ /**
23630
+ * An immutable snapshot of an agent's configuration, minted on every update. Sessions reference a version rather than the agent, so a running session's behaviour cannot change under it.
23631
+ */
23632
+ 200: ManagedAgentsAgentVersion;
23633
+ };
23634
+ export type GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponse = GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses[keyof GetManagedAgentsV1AgentsByAgentIdVersionsByAgentVersionIdResponses];
23635
+ export type GetManagedAgentsV1AnalyticsByFamilyData = {
23636
+ body?: never;
23637
+ path: {
23638
+ /**
23639
+ * Metric family to read: managed_agent_usage for tool, token, and cost figures, managed_agent_turn for turn counts and turn duration percentiles, managed_agent_environment for sandbox startup latency.
23640
+ */
23641
+ family: 'managed_agent_usage' | 'managed_agent_turn' | 'managed_agent_environment';
23642
+ };
23643
+ query?: {
23644
+ /**
23645
+ * Read locality. workspace is the caller's own organization; tenant aggregates every workspace in the parent tenant organization and requires a Tenant Admin role.
23646
+ */
23647
+ scope?: 'workspace' | 'tenant';
23648
+ /**
23649
+ * With scope=tenant, narrow to one workspace of the tenant. Ignored at workspace scope, where the authenticated organization is authoritative.
23650
+ */
23651
+ workspace_id?: string;
23652
+ /**
23653
+ * RFC 3339 start of the window. Defaults to seven days before to. Widened outward to a bucket boundary.
23654
+ */
23655
+ from?: string;
23656
+ /**
23657
+ * RFC 3339 exclusive end of the window. Defaults to now.
23658
+ */
23659
+ to?: string;
23660
+ /**
23661
+ * Series bucket width. Defaults to hourly for windows up to two days and daily beyond that.
23662
+ */
23663
+ granularity?: 'hour' | 'day';
23664
+ /**
23665
+ * Filter to work under sessions launched from this agent, including its subagents.
23666
+ */
23667
+ launched_agent_id?: string;
23668
+ /**
23669
+ * Filter to work performed by this agent, whether it was launched directly or delegated to.
23670
+ */
23671
+ executing_agent_id?: string;
23672
+ /**
23673
+ * Filter to one immutable agent version.
23674
+ */
23675
+ executing_agent_version_id?: string;
23676
+ /**
23677
+ * Filter to one provider model id.
23678
+ */
23679
+ model?: string;
23680
+ /**
23681
+ * Filter by the system a project or external source belongs to, e.g. rl_gym, taiga, or slack_thread.
23682
+ */
23683
+ project_source?: string;
23684
+ /**
23685
+ * Filter to one project or external source id within project_source.
23306
23686
  */
23307
23687
  project_id?: string;
23308
23688
  /**
@@ -23818,7 +24198,7 @@ export type DeleteManagedAgentsV1EnvironmentsByEnvironmentIdErrors = {
23818
24198
  export type DeleteManagedAgentsV1EnvironmentsByEnvironmentIdError = DeleteManagedAgentsV1EnvironmentsByEnvironmentIdErrors[keyof DeleteManagedAgentsV1EnvironmentsByEnvironmentIdErrors];
23819
24199
  export type DeleteManagedAgentsV1EnvironmentsByEnvironmentIdResponses = {
23820
24200
  /**
23821
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
24201
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
23822
24202
  */
23823
24203
  200: ManagedAgentsDeletedResponse;
23824
24204
  };
@@ -24410,7 +24790,7 @@ export type GetManagedAgentsV1MemoryStoresByMemoryStoreIdMemoriesResponses = {
24410
24790
  };
24411
24791
  export type GetManagedAgentsV1MemoryStoresByMemoryStoreIdMemoriesResponse = GetManagedAgentsV1MemoryStoresByMemoryStoreIdMemoriesResponses[keyof GetManagedAgentsV1MemoryStoresByMemoryStoreIdMemoriesResponses];
24412
24792
  export type PostManagedAgentsV1MemoryStoresByMemoryStoreIdMemoriesData = {
24413
- body?: ManagedAgentsMemoryRequest;
24793
+ body?: ManagedAgentsMemoryCreateRequest;
24414
24794
  path: {
24415
24795
  /**
24416
24796
  * Memory store id (UUID) as returned by createMemoryStore or listMemoryStores.
@@ -25385,6 +25765,10 @@ export type GetManagedAgentsV1SessionsData = {
25385
25765
  * Filter by agent id.
25386
25766
  */
25387
25767
  agent_id?: string;
25768
+ /**
25769
+ * Comma-separated current agent tag ids, with at most 32 distinct ids. A session row's agent must carry every requested tag (AND semantics). Unknown or cross-organization ids return 404. Tags are resolved at read time, not from the session snapshot.
25770
+ */
25771
+ tag_ids?: string;
25388
25772
  external_source_type?: string;
25389
25773
  external_source_id?: string;
25390
25774
  /**
@@ -25408,6 +25792,10 @@ export type GetManagedAgentsV1SessionsErrors = {
25408
25792
  * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
25409
25793
  */
25410
25794
  403: ApiErrorResponse;
25795
+ /**
25796
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
25797
+ */
25798
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
25411
25799
  /**
25412
25800
  * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
25413
25801
  */
@@ -25625,7 +26013,7 @@ export type DeleteManagedAgentsV1SessionsBySessionIdErrors = {
25625
26013
  export type DeleteManagedAgentsV1SessionsBySessionIdError = DeleteManagedAgentsV1SessionsBySessionIdErrors[keyof DeleteManagedAgentsV1SessionsBySessionIdErrors];
25626
26014
  export type DeleteManagedAgentsV1SessionsBySessionIdResponses = {
25627
26015
  /**
25628
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
26016
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
25629
26017
  */
25630
26018
  200: ManagedAgentsDeletedResponse;
25631
26019
  };
@@ -26490,7 +26878,7 @@ export type DeleteManagedAgentsV1SkillsBySkillIdErrors = {
26490
26878
  export type DeleteManagedAgentsV1SkillsBySkillIdError = DeleteManagedAgentsV1SkillsBySkillIdErrors[keyof DeleteManagedAgentsV1SkillsBySkillIdErrors];
26491
26879
  export type DeleteManagedAgentsV1SkillsBySkillIdResponses = {
26492
26880
  /**
26493
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
26881
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
26494
26882
  */
26495
26883
  200: ManagedAgentsDeletedResponse;
26496
26884
  };
@@ -26703,6 +27091,253 @@ export type GetManagedAgentsV1SkillsBySkillIdVersionsBySkillVersionIdResponses =
26703
27091
  200: ManagedAgentsSkillVersion;
26704
27092
  };
26705
27093
  export type GetManagedAgentsV1SkillsBySkillIdVersionsBySkillVersionIdResponse = GetManagedAgentsV1SkillsBySkillIdVersionsBySkillVersionIdResponses[keyof GetManagedAgentsV1SkillsBySkillIdVersionsBySkillVersionIdResponses];
27094
+ export type GetManagedAgentsV1TagsData = {
27095
+ body?: never;
27096
+ path?: never;
27097
+ query?: never;
27098
+ url: '/managed-agents/v1/tags';
27099
+ };
27100
+ export type GetManagedAgentsV1TagsErrors = {
27101
+ /**
27102
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27103
+ */
27104
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
27105
+ /**
27106
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27107
+ */
27108
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
27109
+ /**
27110
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
27111
+ */
27112
+ 403: ApiErrorResponse;
27113
+ /**
27114
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27115
+ */
27116
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
27117
+ /**
27118
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27119
+ */
27120
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
27121
+ /**
27122
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27123
+ */
27124
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
27125
+ };
27126
+ export type GetManagedAgentsV1TagsError = GetManagedAgentsV1TagsErrors[keyof GetManagedAgentsV1TagsErrors];
27127
+ export type GetManagedAgentsV1TagsResponses = {
27128
+ /**
27129
+ * A complete set of organization-scoped tag definitions. GET /v1/tags returns the organization catalog; agent tag PUT routes return the agent's resulting exact set.
27130
+ */
27131
+ 200: ManagedAgentsTagListResponse;
27132
+ };
27133
+ export type GetManagedAgentsV1TagsResponse = GetManagedAgentsV1TagsResponses[keyof GetManagedAgentsV1TagsResponses];
27134
+ export type PostManagedAgentsV1TagsData = {
27135
+ body?: ManagedAgentsCreateTagRequest;
27136
+ path?: never;
27137
+ query?: never;
27138
+ url: '/managed-agents/v1/tags';
27139
+ };
27140
+ export type PostManagedAgentsV1TagsErrors = {
27141
+ /**
27142
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27143
+ */
27144
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
27145
+ /**
27146
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27147
+ */
27148
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
27149
+ /**
27150
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
27151
+ */
27152
+ 403: ApiErrorResponse;
27153
+ /**
27154
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27155
+ */
27156
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
27157
+ /**
27158
+ * The request exceeds a size or transaction budget. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27159
+ */
27160
+ 413: ManagedAgentsApiErrorBody | ApiErrorResponse;
27161
+ /**
27162
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27163
+ */
27164
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
27165
+ /**
27166
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27167
+ */
27168
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
27169
+ /**
27170
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27171
+ */
27172
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
27173
+ };
27174
+ export type PostManagedAgentsV1TagsError = PostManagedAgentsV1TagsErrors[keyof PostManagedAgentsV1TagsErrors];
27175
+ export type PostManagedAgentsV1TagsResponses = {
27176
+ /**
27177
+ * An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.
27178
+ */
27179
+ 200: ManagedAgentsTag;
27180
+ };
27181
+ export type PostManagedAgentsV1TagsResponse = PostManagedAgentsV1TagsResponses[keyof PostManagedAgentsV1TagsResponses];
27182
+ export type DeleteManagedAgentsV1TagsByTagIdData = {
27183
+ body?: never;
27184
+ path: {
27185
+ /**
27186
+ * Tag id (UUID) as returned by createTag or listTags.
27187
+ */
27188
+ tag_id: string;
27189
+ };
27190
+ query?: never;
27191
+ url: '/managed-agents/v1/tags/{tag_id}';
27192
+ };
27193
+ export type DeleteManagedAgentsV1TagsByTagIdErrors = {
27194
+ /**
27195
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27196
+ */
27197
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
27198
+ /**
27199
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27200
+ */
27201
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
27202
+ /**
27203
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
27204
+ */
27205
+ 403: ApiErrorResponse;
27206
+ /**
27207
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27208
+ */
27209
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
27210
+ /**
27211
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27212
+ */
27213
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
27214
+ /**
27215
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27216
+ */
27217
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
27218
+ /**
27219
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27220
+ */
27221
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
27222
+ /**
27223
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27224
+ */
27225
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
27226
+ };
27227
+ export type DeleteManagedAgentsV1TagsByTagIdError = DeleteManagedAgentsV1TagsByTagIdErrors[keyof DeleteManagedAgentsV1TagsByTagIdErrors];
27228
+ export type DeleteManagedAgentsV1TagsByTagIdResponses = {
27229
+ /**
27230
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27231
+ */
27232
+ 200: ManagedAgentsDeletedResponse;
27233
+ };
27234
+ export type DeleteManagedAgentsV1TagsByTagIdResponse = DeleteManagedAgentsV1TagsByTagIdResponses[keyof DeleteManagedAgentsV1TagsByTagIdResponses];
27235
+ export type GetManagedAgentsV1TagsByTagIdData = {
27236
+ body?: never;
27237
+ path: {
27238
+ /**
27239
+ * Tag id (UUID) as returned by createTag or listTags.
27240
+ */
27241
+ tag_id: string;
27242
+ };
27243
+ query?: never;
27244
+ url: '/managed-agents/v1/tags/{tag_id}';
27245
+ };
27246
+ export type GetManagedAgentsV1TagsByTagIdErrors = {
27247
+ /**
27248
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27249
+ */
27250
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
27251
+ /**
27252
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27253
+ */
27254
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
27255
+ /**
27256
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
27257
+ */
27258
+ 403: ApiErrorResponse;
27259
+ /**
27260
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27261
+ */
27262
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
27263
+ /**
27264
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27265
+ */
27266
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
27267
+ /**
27268
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27269
+ */
27270
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
27271
+ /**
27272
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27273
+ */
27274
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
27275
+ };
27276
+ export type GetManagedAgentsV1TagsByTagIdError = GetManagedAgentsV1TagsByTagIdErrors[keyof GetManagedAgentsV1TagsByTagIdErrors];
27277
+ export type GetManagedAgentsV1TagsByTagIdResponses = {
27278
+ /**
27279
+ * An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.
27280
+ */
27281
+ 200: ManagedAgentsTag;
27282
+ };
27283
+ export type GetManagedAgentsV1TagsByTagIdResponse = GetManagedAgentsV1TagsByTagIdResponses[keyof GetManagedAgentsV1TagsByTagIdResponses];
27284
+ export type PatchManagedAgentsV1TagsByTagIdData = {
27285
+ body?: ManagedAgentsUpdateTagRequest;
27286
+ path: {
27287
+ /**
27288
+ * Tag id (UUID) as returned by createTag or listTags.
27289
+ */
27290
+ tag_id: string;
27291
+ };
27292
+ query?: never;
27293
+ url: '/managed-agents/v1/tags/{tag_id}';
27294
+ };
27295
+ export type PatchManagedAgentsV1TagsByTagIdErrors = {
27296
+ /**
27297
+ * The request was rejected by schema or semantic validation. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27298
+ */
27299
+ 400: ManagedAgentsApiErrorBody | ApiErrorResponse;
27300
+ /**
27301
+ * The caller is unauthenticated. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27302
+ */
27303
+ 401: ManagedAgentsApiErrorBody | ApiErrorResponse;
27304
+ /**
27305
+ * Caller is missing a required permission, or the request scope (organization / environment / problem) does not resolve to the caller.
27306
+ */
27307
+ 403: ApiErrorResponse;
27308
+ /**
27309
+ * No such resource is reachable for this caller. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27310
+ */
27311
+ 404: ManagedAgentsApiErrorBody | ApiErrorResponse;
27312
+ /**
27313
+ * The request conflicts with the resource state, or with an in-flight idempotent replay. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27314
+ */
27315
+ 409: ManagedAgentsApiErrorBody | ApiErrorResponse;
27316
+ /**
27317
+ * The request exceeds a size or transaction budget. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27318
+ */
27319
+ 413: ManagedAgentsApiErrorBody | ApiErrorResponse;
27320
+ /**
27321
+ * A rate limit is exhausted. Honor `Retry-After`. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27322
+ */
27323
+ 429: ManagedAgentsApiErrorBody | ApiErrorResponse;
27324
+ /**
27325
+ * An unexpected server-side failure. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27326
+ */
27327
+ 500: ManagedAgentsApiErrorBody | ApiErrorResponse;
27328
+ /**
27329
+ * A dependency is unavailable. Retryable. Carries the managed-agents envelope (`error.code` is the stable, machine-readable contract) when the request reached the service, or the platform envelope when this API rejected it before forwarding.
27330
+ */
27331
+ 503: ManagedAgentsApiErrorBody | ApiErrorResponse;
27332
+ };
27333
+ export type PatchManagedAgentsV1TagsByTagIdError = PatchManagedAgentsV1TagsByTagIdErrors[keyof PatchManagedAgentsV1TagsByTagIdErrors];
27334
+ export type PatchManagedAgentsV1TagsByTagIdResponses = {
27335
+ /**
27336
+ * An organization-scoped classification definition. Applying or removing it changes only catalog membership: it does not update the agent, mint an AgentVersion, or affect running sessions.
27337
+ */
27338
+ 200: ManagedAgentsTag;
27339
+ };
27340
+ export type PatchManagedAgentsV1TagsByTagIdResponse = PatchManagedAgentsV1TagsByTagIdResponses[keyof PatchManagedAgentsV1TagsByTagIdResponses];
26706
27341
  export type GetManagedAgentsV1TriggerBindingsData = {
26707
27342
  body?: never;
26708
27343
  path?: never;
@@ -26844,7 +27479,7 @@ export type DeleteManagedAgentsV1TriggerBindingsByBindingIdErrors = {
26844
27479
  export type DeleteManagedAgentsV1TriggerBindingsByBindingIdError = DeleteManagedAgentsV1TriggerBindingsByBindingIdErrors[keyof DeleteManagedAgentsV1TriggerBindingsByBindingIdErrors];
26845
27480
  export type DeleteManagedAgentsV1TriggerBindingsByBindingIdResponses = {
26846
27481
  /**
26847
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27482
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
26848
27483
  */
26849
27484
  200: ManagedAgentsDeletedResponse;
26850
27485
  };
@@ -27042,7 +27677,7 @@ export type DeleteManagedAgentsV1VaultsByVaultIdErrors = {
27042
27677
  export type DeleteManagedAgentsV1VaultsByVaultIdError = DeleteManagedAgentsV1VaultsByVaultIdErrors[keyof DeleteManagedAgentsV1VaultsByVaultIdErrors];
27043
27678
  export type DeleteManagedAgentsV1VaultsByVaultIdResponses = {
27044
27679
  /**
27045
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27680
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27046
27681
  */
27047
27682
  200: ManagedAgentsDeletedResponse;
27048
27683
  };
@@ -27311,7 +27946,7 @@ export type DeleteManagedAgentsV1VaultsByVaultIdCredentialsByCredentialIdErrors
27311
27946
  export type DeleteManagedAgentsV1VaultsByVaultIdCredentialsByCredentialIdError = DeleteManagedAgentsV1VaultsByVaultIdCredentialsByCredentialIdErrors[keyof DeleteManagedAgentsV1VaultsByVaultIdCredentialsByCredentialIdErrors];
27312
27947
  export type DeleteManagedAgentsV1VaultsByVaultIdCredentialsByCredentialIdResponses = {
27313
27948
  /**
27314
- * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27949
+ * Shared response body of every soft-delete endpoint, on agents, environments, environment worker keys, tags, vaults, vault credentials, webhook bindings, and sessions. Soft delete is a tombstone, not an erase: the row stops appearing in list and get responses but is retained, and there is no undelete endpoint to bring it back. Irreversible erasure is the separate, confirmation-gated purge path.
27315
27950
  */
27316
27951
  200: ManagedAgentsDeletedResponse;
27317
27952
  };