From e68a0855a62881d7be50d83dd7d59e5a4161165f Mon Sep 17 00:00:00 2001 From: CLowbrow <647504+CLowbrow@users.noreply.github.com> Date: Thu, 25 Jun 2026 07:04:12 +0000 Subject: [PATCH] Update anthropic provider types --- .../anthropic/CacheControlEphemeral.ts | 3 +- .../src/generated/anthropic/Caller.ts | 4 +- .../src/generated/anthropic/CallerType.ts | 3 + .../typescript/src/generated/anthropic/Ttl.ts | 3 +- .../src/providers/anthropic/generated.rs | 77 +- provider-type-update-notes.md | 36 + specs/anthropic/.stats.yml | 6 +- specs/anthropic/openapi.yml | 4648 +++++++++-------- 8 files changed, 2513 insertions(+), 2267 deletions(-) create mode 100644 bindings/typescript/src/generated/anthropic/CallerType.ts create mode 100644 provider-type-update-notes.md diff --git a/bindings/typescript/src/generated/anthropic/CacheControlEphemeral.ts b/bindings/typescript/src/generated/anthropic/CacheControlEphemeral.ts index 95069030..0fd1bab4 100644 --- a/bindings/typescript/src/generated/anthropic/CacheControlEphemeral.ts +++ b/bindings/typescript/src/generated/anthropic/CacheControlEphemeral.ts @@ -10,6 +10,7 @@ export type CacheControlEphemeral = { * - `5m`: 5 minutes * - `1h`: 1 hour * - * Defaults to `5m`. + * Defaults to `5m`. See [prompt caching + * pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details. */ ttl: Ttl | null, type: CacheControlEphemeralType, }; diff --git a/bindings/typescript/src/generated/anthropic/Caller.ts b/bindings/typescript/src/generated/anthropic/Caller.ts index a0e02ff7..ec1c972b 100644 --- a/bindings/typescript/src/generated/anthropic/Caller.ts +++ b/bindings/typescript/src/generated/anthropic/Caller.ts @@ -1,9 +1,9 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { AllowedCaller } from "./AllowedCaller"; +import type { CallerType } from "./CallerType"; /** * Tool invocation directly from the model. * * Tool invocation generated by a server-side tool. */ -export type Caller = { type: AllowedCaller, tool_id: string | null, }; +export type Caller = { type: CallerType, tool_id: string | null, }; diff --git a/bindings/typescript/src/generated/anthropic/CallerType.ts b/bindings/typescript/src/generated/anthropic/CallerType.ts new file mode 100644 index 00000000..a8a182c7 --- /dev/null +++ b/bindings/typescript/src/generated/anthropic/CallerType.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type CallerType = "code_execution_20250825" | "code_execution_20260120" | "direct"; diff --git a/bindings/typescript/src/generated/anthropic/Ttl.ts b/bindings/typescript/src/generated/anthropic/Ttl.ts index e25d805a..38757b2f 100644 --- a/bindings/typescript/src/generated/anthropic/Ttl.ts +++ b/bindings/typescript/src/generated/anthropic/Ttl.ts @@ -7,6 +7,7 @@ * - `5m`: 5 minutes * - `1h`: 1 hour * - * Defaults to `5m`. + * Defaults to `5m`. See [prompt caching + * pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details. */ export type Ttl = "1h" | "5m"; diff --git a/crates/lingua/src/providers/anthropic/generated.rs b/crates/lingua/src/providers/anthropic/generated.rs index 2c35b351..266c618f 100644 --- a/crates/lingua/src/providers/anthropic/generated.rs +++ b/crates/lingua/src/providers/anthropic/generated.rs @@ -270,7 +270,8 @@ pub struct CacheControlEphemeral { /// - `5m`: 5 minutes /// - `1h`: 1 hour /// - /// Defaults to `5m`. + /// Defaults to `5m`. See [prompt caching + /// pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details. #[serde(skip_serializing_if = "Option::is_none")] pub ttl: Option, #[serde(rename = "type")] @@ -290,7 +291,8 @@ pub enum CacheControlEphemeralType { /// - `5m`: 5 minutes /// - `1h`: 1 hour /// -/// Defaults to `5m`. +/// Defaults to `5m`. See [prompt caching +/// pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] #[ts(export_to = "anthropic/")] pub enum Ttl { @@ -390,23 +392,15 @@ pub struct InputContentBlock { #[ts(export_to = "anthropic/")] pub struct Caller { #[serde(rename = "type")] - pub caller_type: AllowedCaller, + pub caller_type: CallerType, #[serde(skip_serializing_if = "Option::is_none")] pub tool_id: Option, } -/// Specifies who can invoke a tool. -/// -/// Values: -/// direct: The model can call this tool directly. -/// code_execution_20250825: The tool can be called from the code execution environment -/// (v1). -/// code_execution_20260120: The tool can be called from the code execution environment (v2 -/// with persistence). #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] #[serde(rename_all = "snake_case")] #[ts(export_to = "anthropic/")] -pub enum AllowedCaller { +pub enum CallerType { #[serde(rename = "code_execution_20250825")] CodeExecution20250825, #[serde(rename = "code_execution_20260120")] @@ -1143,6 +1137,8 @@ pub enum ToolChoiceType { /// Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint). /// +/// Code execution tool with REPL state persistence. +/// /// Web fetch tool with use_cache parameter for bypassing cached content. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] #[ts(export_to = "anthropic/")] @@ -1269,6 +1265,28 @@ pub struct CodeExecutionTool20260120 { pub strict: Option, } +/// Code execution tool with REPL state persistence. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] +#[ts(export_to = "anthropic/")] +pub struct CodeExecutionTool20260521 { + #[serde(skip_serializing_if = "Option::is_none")] + pub allowed_callers: Option>, + /// Create a cache control breakpoint at this content block. + #[serde(skip_serializing_if = "Option::is_none")] + #[ts(type = "unknown")] + pub cache_control: Option, + /// If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search. + #[serde(skip_serializing_if = "Option::is_none")] + pub defer_loading: Option, + /// Name of the tool. + /// + /// This is how the tool will be called by the model and in `tool_use` blocks. + pub name: String, + /// When true, guarantees schema validation on tool names and inputs + #[serde(skip_serializing_if = "Option::is_none")] + pub strict: Option, +} + #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] #[ts(export_to = "anthropic/")] pub struct MemoryTool20250818 { @@ -1576,6 +1594,9 @@ pub enum Tool { #[serde(rename = "code_execution_20260120")] CodeExecution20260120(CodeExecutionTool20260120), + #[serde(rename = "code_execution_20260521")] + CodeExecution20260521(CodeExecutionTool20260521), + #[serde(rename = "memory_20250818")] Memory20250818(MemoryTool20250818), @@ -1619,6 +1640,29 @@ pub enum Tool { Custom(CustomTool), } +/// Specifies who can invoke a tool. +/// +/// Values: +/// direct: The model can call this tool directly. +/// code_execution_20250825: The tool can be called from the code execution environment +/// (v1). +/// code_execution_20260120: The tool can be called from the code execution environment (v2 +/// with persistence). +/// code_execution_20260521: The tool can be called from the code execution environment (v2 +/// with persistence). +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] +#[serde(rename_all = "snake_case")] +#[ts(export_to = "anthropic/")] +pub enum AllowedCaller { + #[serde(rename = "code_execution_20250825")] + CodeExecution20250825, + #[serde(rename = "code_execution_20260120")] + CodeExecution20260120, + #[serde(rename = "code_execution_20260521")] + CodeExecution20260521, + Direct, +} + /// [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input. /// /// This defines the shape of the `input` that your tool accepts and that the model will @@ -1654,6 +1698,8 @@ pub enum ToolType { CodeExecution20250825, #[serde(rename = "code_execution_20260120")] CodeExecution20260120, + #[serde(rename = "code_execution_20260521")] + CodeExecution20260521, Custom, #[serde(rename = "memory_20250818")] Memory20250818, @@ -2096,7 +2142,7 @@ pub struct RefusalStopDetails { /// /// `null` when the refusal doesn't map to a named category. #[serde(skip_serializing_if = "Option::is_none")] - pub category: Option, + pub category: Option, /// Human-readable explanation of the refusal. /// /// This text is not guaranteed to be stable. `null` when no explanation is available for the @@ -2107,14 +2153,17 @@ pub struct RefusalStopDetails { pub refusal_stop_details_type: RefusalStopDetailsType, } +/// The policy category that triggered a refusal. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, TS)] #[serde(rename_all = "snake_case")] #[ts(export_to = "anthropic/")] -pub enum Category { +pub enum RefusalCategory { Bio, Cyber, #[serde(rename = "frontier_llm")] FrontierLlm, + #[serde(rename = "military_weapons")] + MilitaryWeapons, #[serde(rename = "reasoning_extraction")] ReasoningExtraction, } diff --git a/provider-type-update-notes.md b/provider-type-update-notes.md new file mode 100644 index 00000000..0c2cc3d6 --- /dev/null +++ b/provider-type-update-notes.md @@ -0,0 +1,36 @@ +# Anthropic provider type update notes + +## Summary + +The generated type update for the Anthropic provider introduces: +1. A new `CodeExecutionTool20260521` struct and `Tool::CodeExecution20260521` variant +2. A new `AllowedCaller` enum (used in tool `allowed_callers` fields) +3. A rename of the old `AllowedCaller` enum to `CallerType` (used in `Caller.caller_type`) +4. A rename of `Category` to `RefusalCategory` with a new `MilitaryWeapons` variant +5. A new `ToolType::CodeExecution20260521` variant +6. Doc-only changes to `CacheControlEphemeral` and `Ttl` + +## No hand-written code changes required + +All generated changes are either additive or renames that do not affect serde wire format: + +- **New `Tool::CodeExecution20260521`**: Handled by the existing catch-all arm in `From<&Tool> for UniversalTool` (convert.rs:2368) which serializes non-custom tools to builtin config. The reverse path in `TryFrom<&UniversalTool> for Tool` (convert.rs:2445) deserializes builtin configs back to `Tool` via serde. + +- **`AllowedCaller` -> `CallerType` rename**: The hand-written code references `generated::Caller` (the struct), never the inner enum type directly. Serde serialization wire values are unchanged (`rename_all = "snake_case"` with the same variants). + +- **`Category` -> `RefusalCategory` + `MilitaryWeapons`**: Not referenced in hand-written code. Refusal handling uses the `stop_reason` string field, where `"refusal"` already maps to `FinishReason::ContentFilter` (response.rs:119, 256). + +- **New `AllowedCaller` enum**: Only used in generated tool struct `allowed_callers` fields. Not referenced in hand-written code. + +## Potential spec/generation gap: `CallerType` missing `CodeExecution20260521` + +The generated `CallerType` enum (used in `Caller.caller_type`) has 3 variants: +- `CodeExecution20250825` +- `CodeExecution20260120` +- `Direct` + +The generated `AllowedCaller` enum (used in tool `allowed_callers`) has 4 variants — the 3 above plus `CodeExecution20260521`. + +If a tool is configured with `allowed_callers: ["code_execution_20260521"]` and the model invokes another tool from that code execution environment, the API response would include a `Caller` block with `type: "code_execution_20260521"`. Since `CallerType` lacks this variant, deserialization of that content block would fail. + +**Action needed**: This is a spec or generation-pipeline issue. The `CallerType` enum likely needs `CodeExecution20260521` added, but this requires either updating the OpenAPI spec or adjusting the generation pipeline. Do not edit `generated.rs` directly. diff --git a/specs/anthropic/.stats.yml b/specs/anthropic/.stats.yml index b3a3f2f6..e7f771c7 100644 --- a/specs/anthropic/.stats.yml +++ b/specs/anthropic/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 116 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-5ce93251152bd7c4c288dacdf5a445383825ba50bc472ff9e9821ee9455e3564.yml -openapi_spec_hash: 989d596f7660ce55a7cea748a9292b45 -config_hash: 44acd8a997dff056931fb4466201cdeb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-a548d120cebb4d68d46c828028d51d04b4d4abb868a7bad21dad960cb72cbd18.yml +openapi_spec_hash: 2b3214760a4e23a9704779ac99bce417 +config_hash: ce2cd5d2f03228adacf04ebcceb14465 diff --git a/specs/anthropic/openapi.yml b/specs/anthropic/openapi.yml index df44b212..63627f9d 100644 --- a/specs/anthropic/openapi.yml +++ b/specs/anthropic/openapi.yml @@ -18,6 +18,18 @@ "title": "Anthropic-Version" }, "description": "The version of the Claude API you want to use.\n\nRead more about versioning and our version history [here](https://docs.claude.com/en/api/versioning)." + }, + { + "name": "anthropic-user-profile-id", + "in": "header", + "required": false, + "schema": { + "type": "string", + "description": "The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header.", + "title": "Anthropic-User-Profile-Id", + "x-stainless-param": "user_profile_id" + }, + "description": "The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header." } ], "responses": { @@ -276,6 +288,18 @@ "title": "Anthropic-Version" }, "description": "The version of the Claude API you want to use.\n\nRead more about versioning and our version history [here](https://docs.claude.com/en/api/versioning)." + }, + { + "name": "anthropic-user-profile-id", + "in": "header", + "required": false, + "schema": { + "type": "string", + "description": "The user profile ID to attribute the requests in this batch to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header. Applies to every request in the batch; an individual request whose `user_profile_id` body field conflicts with this header is errored.", + "title": "Anthropic-User-Profile-Id", + "x-stainless-param": "user_profile_id" + }, + "description": "The user profile ID to attribute the requests in this batch to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header. Applies to every request in the batch; an individual request whose `user_profile_id` body field conflicts with this header is errored." } ], "responses": { @@ -647,6 +671,18 @@ "title": "Anthropic-Version" }, "description": "The version of the Claude API you want to use.\n\nRead more about versioning and our version history [here](https://docs.claude.com/en/api/versioning)." + }, + { + "name": "anthropic-user-profile-id", + "in": "header", + "required": false, + "schema": { + "type": "string", + "description": "The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header.", + "title": "Anthropic-User-Profile-Id", + "x-stainless-param": "user_profile_id" + }, + "description": "The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header." } ], "responses": { @@ -873,6 +909,18 @@ "title": "Anthropic-Version" }, "description": "The version of the Claude API you want to use.\n\nRead more about versioning and our version history [here](https://docs.claude.com/en/api/versioning)." + }, + { + "name": "anthropic-user-profile-id", + "in": "header", + "required": false, + "schema": { + "type": "string", + "description": "The user profile ID to attribute the requests in this batch to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header. Applies to every request in the batch; an individual request whose `user_profile_id` body field conflicts with this header is errored.", + "title": "Anthropic-User-Profile-Id", + "x-stainless-param": "user_profile_id" + }, + "description": "The user profile ID to attribute the requests in this batch to. Use when acting on behalf of a party other than your organization. Requires the `user-profiles` beta header. Applies to every request in the batch; an individual request whose `user_profile_id` body field conflicts with this header is errored." } ], "responses": { @@ -3541,48 +3589,15 @@ } } }, - "/v1/memory_stores/{memory_store_id}/memories?beta=true": { + "/v1/sessions?beta=true": { "post": { - "operationId": "BetaCreateMemory", - "summary": "Create a memory", - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - }, - { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "view", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" - } - ], + "operationId": "BetaCreateSession", + "summary": "Create Session", "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateSessionParams" } } } }, @@ -3590,134 +3605,123 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + } + }, + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } } } } - } + ] }, "get": { - "operationId": "BetaListMemories", - "summary": "List memories", + "operationId": "BetaListSessions", + "summary": "List Sessions", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -3738,60 +3742,100 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum number of results to return." }, { - "name": "path_prefix", + "name": "page", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Optional path prefix filter (raw string-prefix match; include a trailing slash for directory-scoped lists). This value appears in request URLs. Do not include secrets or personally identifiable information." + "description": "Opaque pagination cursor from a previous response." }, { - "name": "depth", + "name": "include_archived", "in": "query", "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for depth" + "schema": { "type": "boolean" }, + "description": "When true, includes archived sessions. Default: false (exclude archived)." }, { - "name": "order_by", + "name": "created_at[gte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return sessions created at or after this time (inclusive)." + }, + { + "name": "created_at[gt]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return sessions created after this time (exclusive)." + }, + { + "name": "created_at[lte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return sessions created at or before this time (inclusive)." + }, + { + "name": "created_at[lt]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return sessions created before this time (exclusive)." + }, + { + "name": "agent_id", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Query parameter for order_by" + "description": "Filter sessions created with this agent ID." + }, + { + "name": "agent_version", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Filter by agent version. Only applies when agent_id is also set." }, { "name": "order", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListOrder" }, - "description": "Query parameter for order" + "description": "Sort direction for results, ordered by created_at. Defaults to desc (newest first)." }, { - "name": "limit", + "name": "memory_store_id", "in": "query", "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for limit" + "schema": { "type": "string" }, + "description": "Filter sessions whose resources contain a memory_store with this memory store ID." }, { - "name": "page", + "name": "deployment_id", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Query parameter for page" + "description": "Filter sessions created by this deployment ID." }, { - "name": "view", + "name": "statuses[]", "in": "query", "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" + "style": "form", + "explode": true, + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/BetaManagedAgentsSessionStatus" } + }, + "description": "Filter by session status. Repeat the parameter to match any of multiple statuses." } ], "responses": { @@ -3799,137 +3843,107 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoriesResult" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessions" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } } }, - "/v1/memory_stores/{memory_store_id}/memories/{memory_id}?beta=true": { + "/v1/sessions/{session_id}?beta=true": { "get": { - "operationId": "BetaGetMemory", - "summary": "Retrieve a memory", + "operationId": "BetaGetSession", + "summary": "Get Session", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -3950,159 +3964,116 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "memory_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_id" - }, - { - "name": "view", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } }, "post": { - "operationId": "BetaUpdateMemory", - "summary": "Update a memory", + "operationId": "BetaUpdateSession", + "summary": "Update Session", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -4122,32 +4093,19 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "memory_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter memory_id" - }, - { - "name": "view", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionParams" } } } }, @@ -4155,134 +4113,104 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } }, "delete": { - "operationId": "BetaDeleteMemory", - "summary": "Delete a memory", + "operationId": "BetaDeleteSession", + "summary": "Delete Session", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -4303,25 +4231,12 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "memory_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_id" - }, - { - "name": "expected_content_sha256", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Query parameter for expected_content_sha256" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], "responses": { @@ -4329,137 +4244,107 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedMemory" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedSession" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } } }, - "/v1/memory_stores/{memory_store_id}/memory_versions?beta=true": { + "/v1/sessions/{session_id}/events?beta=true": { "get": { - "operationId": "BetaListMemoryVersions", - "summary": "List memory versions", + "operationId": "BetaListEvents", + "summary": "List Events", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -4480,74 +4365,70 @@ } }, { - "name": "memory_store_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" }, { - "name": "memory_id", + "name": "limit", "in": "query", "required": false, - "schema": { "type": "string" }, - "description": "Query parameter for memory_id" + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for limit" }, { - "name": "session_id", + "name": "page", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Query parameter for session_id" + "description": "Opaque pagination cursor from a previous response's next_page." }, { - "name": "api_key_id", + "name": "order", "in": "query", "required": false, - "schema": { "type": "string" }, - "description": "Query parameter for api_key_id" + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListOrder" }, + "description": "Sort direction for results, ordered by created_at. Defaults to asc (chronological)." }, { - "name": "operation", + "name": "types[]", "in": "query", "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersionOperation" }, - "description": "Query parameter for operation" + "style": "form", + "explode": true, + "schema": { "type": "array", "items": { "type": "string" } }, + "description": "Filter by event type. Values match the `type` field on returned events (for example, `user.message` or `agent.tool_use`). Omit to return all event types." }, { "name": "created_at[gte]", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return versions created at or after this time (inclusive)." + "description": "Return events created at or after this time (inclusive)." }, { - "name": "created_at[lte]", + "name": "created_at[gt]", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return versions created at or before this time (inclusive)." - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for limit" + "description": "Return events created after this time (exclusive)." }, { - "name": "page", + "name": "created_at[lte]", "in": "query", "required": false, - "schema": { "type": "string" }, - "description": "Query parameter for page" + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return events created at or before this time (inclusive)." }, { - "name": "view", + "name": "created_at[lt]", "in": "query", "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return events created before this time (exclusive)." } ], "responses": { @@ -4555,139 +4436,106 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoryVersionsResult" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionEvents" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } - } - }, - "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}?beta=true": { - "get": { - "operationId": "BetaGetMemoryVersion", - "summary": "Retrieve a memory version", + }, + "post": { + "operationId": "BetaSendEvents", + "summary": "Send Events", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -4706,164 +4554,130 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "memory_version_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_version_id" - }, - { - "name": "view", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, - "description": "Query parameter for view" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSendSessionEventsParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersion" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSendSessionEvents" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } } }, - "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact?beta=true": { - "post": { - "operationId": "BetaRedactMemoryVersion", - "summary": "Redact a memory version", + "/v1/sessions/{session_id}/events/stream?beta=true": { + "get": { + "operationId": "BetaStreamSessionEvents", + "summary": "Stream Events", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -4882,18 +4696,12 @@ } }, { - "name": "memory_store_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" - }, - { - "name": "memory_version_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_version_id" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], "responses": { @@ -4901,152 +4709,139 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersion" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsStreamSessionEvents" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "409": { - "description": "Custom error status", + "description": "Aborted - The operation was aborted due to concurrency issue", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } } } }, - "/v1/memory_stores?beta=true": { + "/v1/sessions/{session_id}/archive?beta=true": { "post": { - "operationId": "BetaCreateMemoryStore", - "summary": "Create a memory store", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryStoreRequest" } + "operationId": "BetaArchiveSession", + "summary": "Archive Session", + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } } + }, + { + "name": "session_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } - }, + ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryStoreResponse" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } } }, "400": { @@ -5139,30 +4934,13 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - }, - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - } - ] - }, + } + } + }, + "/v1/sessions/{session_id}/threads?beta=true": { "get": { - "operationId": "BetaListMemoryStores", - "summary": "List memory stores", + "operationId": "BetaListSessionThreads", + "summary": "List Session Threads", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -5182,40 +4960,27 @@ } } }, + { + "name": "session_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum number of stores to return per page. Must be between 1 and 100. Defaults to 20 when omitted." + "description": "Maximum results per page. Defaults to 1000." }, { "name": "page", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a previous response to fetch the next page; omit for the first page." - }, - { - "name": "include_archived", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "When `true`, archived stores are included in the results. Defaults to `false` (archived stores are excluded)." - }, - { - "name": "created_at[gte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return only stores whose `created_at` is at or after this time (inclusive). Sent on the wire as `created_at[gte]`." - }, - { - "name": "created_at[lte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return only stores whose `created_at` is at or before this time (inclusive). Sent on the wire as `created_at[lte]`." + "description": "Opaque pagination cursor from a previous response's next_page. Forward-only." } ], "responses": { @@ -5223,7 +4988,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoryStoresResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionThreads" } } } }, @@ -5320,10 +5085,10 @@ } } }, - "/v1/memory_stores/{memory_store_id}?beta=true": { + "/v1/sessions/{session_id}/threads/{thread_id}?beta=true": { "get": { - "operationId": "BetaGetMemoryStore", - "summary": "Retrieve a memory store", + "operationId": "BetaGetSessionThread", + "summary": "Get Session Thread", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -5344,11 +5109,20 @@ } }, { - "name": "memory_store_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "thread_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter thread_id", + "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" } ], "responses": { @@ -5356,7 +5130,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsGetMemoryStoreResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSessionThread" } } } }, @@ -5451,11 +5225,14 @@ } } } - }, - "post": { - "operationId": "BetaUpdateMemoryStore", - "summary": "Update a memory store", + } + }, + "/v1/sessions/{session_id}/threads/{thread_id}/events?beta=true": { + "get": { + "operationId": "BetaListSessionThreadEvents", + "summary": "List Session Thread Events", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -5474,27 +5251,42 @@ } }, { - "name": "memory_store_id", + "name": "session_id", "in": "path", "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter memory_store_id" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryStoreRequestBody" } - } + "schema": { "type": "string" }, + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "thread_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter thread_id", + "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for limit" + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for page" } - }, + ], "responses": { "200": { "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryStoreResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionThreadEvents" } } } }, @@ -5589,10 +5381,12 @@ } } } - }, - "delete": { - "operationId": "BetaDeleteMemoryStore", - "summary": "Delete a memory store", + } + }, + "/v1/sessions/{session_id}/threads/{thread_id}/stream?beta=true": { + "get": { + "operationId": "BetaStreamSessionThreadEvents", + "summary": "Stream Session Thread Events", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -5613,11 +5407,20 @@ } }, { - "name": "memory_store_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "thread_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter thread_id", + "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" } ], "responses": { @@ -5625,7 +5428,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeleteMemoryStoreResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsStreamSessionThreadEvents" } } } }, @@ -5722,10 +5525,10 @@ } } }, - "/v1/memory_stores/{memory_store_id}/archive?beta=true": { + "/v1/sessions/{session_id}/threads/{thread_id}/archive?beta=true": { "post": { - "operationId": "BetaArchiveMemoryStore", - "summary": "Archive a memory store", + "operationId": "BetaArchiveSessionThread", + "summary": "Archive Session Thread", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -5745,11 +5548,20 @@ } }, { - "name": "memory_store_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter memory_store_id" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "thread_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter thread_id", + "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" } ], "responses": { @@ -5757,7 +5569,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsArchiveMemoryStoreResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSessionThread" } } } }, @@ -5854,137 +5666,10 @@ } } }, - "/v1/user_profiles?beta=true": { - "post": { - "operationId": "BetaCreateUserProfile", - "summary": "Create User Profile", - "requestBody": { - "required": true, - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaCreateUserProfileRequest" } } - } - }, - "responses": { - "200": { - "description": "Successful response (OK)", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } - } - }, - "400": { - "description": "Invalid argument - The client specified an invalid argument", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "401": { - "description": "Unauthenticated - The request does not have valid authentication credentials", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "403": { - "description": "Permission denied - The caller does not have permission to execute the specified operation", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "404": { - "description": "Not found - Some requested entity was not found", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "408": { - "description": "Deadline exceeded - The deadline expired before the operation could complete", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "412": { - "description": "Failed precondition - Operation was rejected because the system is not in required state", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "413": { - "description": "Out of range - Operation was attempted past the valid range", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "429": { - "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "431": { - "description": "Request header fields too large - Request metadata was too large", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "499": { - "description": "Cancelled - The operation was cancelled by the client", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "500": { - "description": "Internal - Internal server error", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "501": { - "description": "Unimplemented - The operation is not implemented or supported", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "503": { - "description": "Unavailable - The service is currently unavailable", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "504": { - "description": "Deadline exceeded - Upstream service did not respond in time", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - } - }, - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - } - ] - }, + "/v1/sessions/{session_id}/resources?beta=true": { "get": { - "operationId": "BetaListUserProfiles", - "summary": "List User Profiles", + "operationId": "BetaListResources", + "summary": "List Session Resources", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -6004,26 +5689,27 @@ } } }, + { + "name": "session_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for limit" + "description": "Maximum number of resources to return per page (max 1000). If omitted, returns all resources." }, { "name": "page", "in": "query", "required": false, "schema": { "type": "string" }, - "description": "Query parameter for page" - }, - { - "name": "order", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaUserProfileListOrder" }, - "description": "Query parameter for order" + "description": "Opaque cursor from a previous response's next_page field." } ], "responses": { @@ -6031,7 +5717,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaListUserProfilesResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionResources" } } } }, @@ -6126,14 +5812,11 @@ } } } - } - }, - "/v1/user_profiles/{user_profile_id}?beta=true": { - "get": { - "operationId": "BetaGetUserProfile", - "summary": "Get User Profile", + }, + "post": { + "operationId": "BetaAddResource", + "summary": "Add Session Resource", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -6152,19 +5835,29 @@ } }, { - "name": "user_profile_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter user_profile_id", - "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAddSessionResourceParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAddSessionResource" } + } } }, "400": { @@ -6258,11 +5951,14 @@ } } } - }, - "post": { - "operationId": "BetaUpdateUserProfile", - "summary": "Update User Profile", + } + }, + "/v1/sessions/{session_id}/resources/{resource_id}?beta=true": { + "get": { + "operationId": "BetaGetResource", + "summary": "Get Session Resource", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -6281,27 +5977,169 @@ } }, { - "name": "user_profile_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter user_profile_id", - "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "resource_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter resource_id", + "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaUpdateUserProfileRequestBody" } + "responses": { + "200": { + "description": "Successful response (OK)", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsGetSessionResource" } + } + } + }, + "400": { + "description": "Invalid argument - The client specified an invalid argument", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "401": { + "description": "Unauthenticated - The request does not have valid authentication credentials", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "403": { + "description": "Permission denied - The caller does not have permission to execute the specified operation", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "404": { + "description": "Not found - Some requested entity was not found", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "408": { + "description": "Deadline exceeded - The deadline expired before the operation could complete", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "409": { + "description": "Aborted - The operation was aborted due to concurrency issue", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "412": { + "description": "Failed precondition - Operation was rejected because the system is not in required state", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "413": { + "description": "Out of range - Operation was attempted past the valid range", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "429": { + "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "431": { + "description": "Request header fields too large - Request metadata was too large", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "499": { + "description": "Cancelled - The operation was cancelled by the client", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "500": { + "description": "Internal - Internal server error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "501": { + "description": "Unimplemented - The operation is not implemented or supported", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "503": { + "description": "Unavailable - The service is currently unavailable", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "504": { + "description": "Deadline exceeded - Upstream service did not respond in time", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - }, + } + }, + "delete": { + "operationId": "BetaDeleteResource", + "summary": "Delete Session Resource", + "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + }, + { + "name": "session_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "resource_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter resource_id", + "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" + } + ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeleteSessionResource" } + } } }, "400": { @@ -6395,12 +6233,10 @@ } } } - } - }, - "/v1/user_profiles/{user_profile_id}/enrollment_url?beta=true": { + }, "post": { - "operationId": "BetaCreateEnrollmentUrl", - "summary": "Create Enrollment URL", + "operationId": "BetaUpdateResource", + "summary": "Update Session Resource", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -6420,19 +6256,37 @@ } }, { - "name": "user_profile_id", + "name": "session_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter user_profile_id", - "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" + "description": "Path parameter session_id", + "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + }, + { + "name": "resource_id", + "in": "path", + "required": true, + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter resource_id", + "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionResourceParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaEnrollmentUrl" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionResource" } + } } }, "400": { @@ -6528,15 +6382,15 @@ } } }, - "/v1/sessions?beta=true": { + "/v1/agents?beta=true": { "post": { - "operationId": "BetaCreateSession", - "summary": "Create Session", + "operationId": "BetaCreateAgent", + "summary": "Create Agent", "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateSessionParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateAgentParams" } } } }, @@ -6544,7 +6398,7 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } } }, "400": { @@ -6659,8 +6513,8 @@ ] }, "get": { - "operationId": "BetaListSessions", - "summary": "List Sessions", + "operationId": "BetaListAgents", + "summary": "List Agents", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -6685,105 +6539,45 @@ "in": "query", "required": false, "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum number of results to return." + "description": "Maximum results per page. Default 20, maximum 100." }, { "name": "page", "in": "query", "required": false, - "schema": { "type": "string" }, + "schema": { + "type": "string", + "x-stainless-pagination-property": { "purpose": "next_cursor_param" } + }, "description": "Opaque pagination cursor from a previous response." }, - { - "name": "include_archived", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "When true, includes archived sessions. Default: false (exclude archived)." - }, { "name": "created_at[gte]", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return sessions created at or after this time (inclusive)." - }, - { - "name": "created_at[gt]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return sessions created after this time (exclusive)." + "description": "Return agents created at or after this time (inclusive)." }, { "name": "created_at[lte]", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return sessions created at or before this time (inclusive)." - }, - { - "name": "created_at[lt]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return sessions created before this time (exclusive)." - }, - { - "name": "agent_id", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Filter sessions created with this agent ID." - }, - { - "name": "agent_version", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Filter by agent version. Only applies when agent_id is also set." - }, - { - "name": "order", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListOrder" }, - "description": "Sort direction for results, ordered by created_at. Defaults to desc (newest first)." - }, - { - "name": "memory_store_id", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Filter sessions whose resources contain a memory_store with this memory store ID." - }, - { - "name": "deployment_id", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Filter sessions created by this deployment ID." + "description": "Return agents created at or before this time (inclusive)." }, { - "name": "statuses[]", + "name": "include_archived", "in": "query", "required": false, - "style": "form", - "explode": true, - "schema": { - "type": "array", - "items": { "$ref": "#/components/schemas/BetaManagedAgentsSessionStatus" } - }, - "description": "Filter by session status. Repeat the parameter to match any of multiple statuses." + "schema": { "type": "boolean" }, + "description": "Include archived agents in results. Defaults to false." } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessions" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListAgents" } } } }, "400": { @@ -6879,10 +6673,10 @@ } } }, - "/v1/sessions/{session_id}?beta=true": { + "/v1/agents/{agent_id}?beta=true": { "get": { - "operationId": "BetaGetSession", - "summary": "Get Session", + "operationId": "BetaGetAgent", + "summary": "Get Agent", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -6903,19 +6697,26 @@ } }, { - "name": "session_id", + "name": "agent_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Path parameter agent_id", + "example": "agent_011CZkYpogX7uDKUyvBTophP" + }, + { + "name": "version", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Agent version. Omit for the most recent version. Must be at least 1 if specified." } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } } }, "400": { @@ -7011,8 +6812,8 @@ } }, "post": { - "operationId": "BetaUpdateSession", - "summary": "Update Session", + "operationId": "BetaUpdateAgent", + "summary": "Update Agent", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -7032,19 +6833,19 @@ } }, { - "name": "session_id", + "name": "agent_id", "in": "path", "required": true, "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Path parameter agent_id", + "example": "agent_011CZkYpogX7uDKUyvBTophP" } ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateAgentParams" } } } }, @@ -7052,7 +6853,7 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } } }, "400": { @@ -7146,12 +6947,13 @@ } } } - }, - "delete": { - "operationId": "BetaDeleteSession", - "summary": "Delete Session", + } + }, + "/v1/agents/{agent_id}/archive?beta=true": { + "post": { + "operationId": "BetaArchiveAgent", + "summary": "Archive Agent", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -7170,21 +6972,19 @@ } }, { - "name": "session_id", + "name": "agent_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Path parameter agent_id", + "example": "agent_011CZkYpogX7uDKUyvBTophP" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedSession" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } } }, "400": { @@ -7280,10 +7080,10 @@ } } }, - "/v1/sessions/{session_id}/events?beta=true": { + "/v1/agents/{agent_id}/versions?beta=true": { "get": { - "operationId": "BetaListEvents", - "summary": "List Events", + "operationId": "BetaListAgentVersions", + "summary": "List Agent Versions", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -7304,217 +7104,37 @@ } }, { - "name": "session_id", + "name": "agent_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Path parameter agent_id", + "example": "agent_011CZkYpogX7uDKUyvBTophP" }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for limit" + "description": "Maximum results per page. Default 20, maximum 100." }, { "name": "page", "in": "query", "required": false, - "schema": { "type": "string" }, - "description": "Opaque pagination cursor from a previous response's next_page." - }, - { - "name": "order", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListOrder" }, - "description": "Sort direction for results, ordered by created_at. Defaults to asc (chronological)." - }, - { - "name": "types[]", - "in": "query", - "required": false, - "style": "form", - "explode": true, - "schema": { "type": "array", "items": { "type": "string" } }, - "description": "Filter by event type. Values match the `type` field on returned events (for example, `user.message` or `agent.tool_use`). Omit to return all event types." - }, - { - "name": "created_at[gte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return events created at or after this time (inclusive)." - }, - { - "name": "created_at[gt]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return events created after this time (exclusive)." - }, - { - "name": "created_at[lte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return events created at or before this time (inclusive)." - }, - { - "name": "created_at[lt]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return events created before this time (exclusive)." - } - ], - "responses": { - "200": { - "description": "Successful response (OK)", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionEvents" } - } - } - }, - "400": { - "description": "Invalid argument - The client specified an invalid argument", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "401": { - "description": "Unauthenticated - The request does not have valid authentication credentials", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "403": { - "description": "Permission denied - The caller does not have permission to execute the specified operation", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "404": { - "description": "Not found - Some requested entity was not found", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "408": { - "description": "Deadline exceeded - The deadline expired before the operation could complete", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "412": { - "description": "Failed precondition - Operation was rejected because the system is not in required state", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "413": { - "description": "Out of range - Operation was attempted past the valid range", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "429": { - "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "431": { - "description": "Request header fields too large - Request metadata was too large", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "499": { - "description": "Cancelled - The operation was cancelled by the client", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "500": { - "description": "Internal - Internal server error", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "501": { - "description": "Unimplemented - The operation is not implemented or supported", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "503": { - "description": "Unavailable - The service is currently unavailable", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "504": { - "description": "Deadline exceeded - Upstream service did not respond in time", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - } - } - }, - "post": { - "operationId": "BetaSendEvents", - "summary": "Send Events", - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, "schema": { "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - }, - { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "x-stainless-pagination-property": { "purpose": "next_cursor_param" } + }, + "description": "Opaque pagination cursor." } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSendSessionEventsParams" } - } - } - }, "responses": { "200": { "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSendSessionEvents" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListAgentVersions" } } } }, @@ -7611,45 +7231,23 @@ } } }, - "/v1/sessions/{session_id}/events/stream?beta=true": { - "get": { - "operationId": "BetaStreamSessionEvents", - "summary": "Stream Events", - "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } + "/v1/deployments?beta=true": { + "post": { + "operationId": "BetaCreateDeployment", + "summary": "Create Deployment", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateDeploymentParams" } } - }, - { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" } - ], + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsStreamSessionEvents" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -7742,14 +7340,32 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - } - } - }, - "/v1/sessions/{session_id}/archive?beta=true": { - "post": { - "operationId": "BetaArchiveSession", - "summary": "Archive Session", + }, + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + } + ] + }, + "get": { + "operationId": "BetaListDeployments", + "summary": "List Deployments", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -7768,19 +7384,65 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum results per page. Default 20, maximum 100." + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { + "type": "string", + "x-stainless-pagination-property": { "purpose": "next_cursor_param" } + }, + "description": "Opaque pagination cursor." + }, + { + "name": "agent_id", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Filter by agent ID." + }, + { + "name": "status", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentStatus" }, + "description": "Filter by status: active or paused. Omit for both. To include archived deployments, use include_archived instead; the two cannot be combined." + }, + { + "name": "created_at[gte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return deployments created at or after this time (inclusive)." + }, + { + "name": "created_at[lte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return deployments created at or before this time (inclusive)." + }, + { + "name": "include_archived", + "in": "query", + "required": false, + "schema": { "type": "boolean" }, + "description": "When true, includes archived deployments. Default: false (exclude archived)." } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSession" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListDeploymentsData" } + } } }, "400": { @@ -7876,10 +7538,10 @@ } } }, - "/v1/sessions/{session_id}/threads?beta=true": { + "/v1/deployments/{deployment_id}?beta=true": { "get": { - "operationId": "BetaListSessionThreads", - "summary": "List Session Threads", + "operationId": "BetaGetDeployment", + "summary": "Get Deployment", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -7900,35 +7562,18 @@ } }, { - "name": "session_id", + "name": "deployment_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum results per page. Defaults to 1000." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Opaque pagination cursor from a previous response's next_page. Forward-only." + "description": "Path parameter deployment_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionThreads" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -8022,14 +7667,11 @@ } } } - } - }, - "/v1/sessions/{session_id}/threads/{thread_id}?beta=true": { - "get": { - "operationId": "BetaGetSessionThread", - "summary": "Get Session Thread", + }, + "post": { + "operationId": "BetaUpdateDeployment", + "summary": "Update Deployment", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -8048,29 +7690,26 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "thread_id", + "name": "deployment_id", "in": "path", "required": true, - "schema": { "type": "string" }, - "description": "Path parameter thread_id", - "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter deployment_id" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateDeploymentParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSessionThread" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -8166,12 +7805,11 @@ } } }, - "/v1/sessions/{session_id}/threads/{thread_id}/events?beta=true": { - "get": { - "operationId": "BetaListSessionThreadEvents", - "summary": "List Session Thread Events", + "/v1/deployments/{deployment_id}/archive?beta=true": { + "post": { + "operationId": "BetaArchiveDeployment", + "summary": "Archive Deployment", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -8190,43 +7828,18 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "thread_id", + "name": "deployment_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter thread_id", - "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Query parameter for limit" - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Query parameter for page" + "description": "Path parameter deployment_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionThreadEvents" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -8322,12 +7935,11 @@ } } }, - "/v1/sessions/{session_id}/threads/{thread_id}/stream?beta=true": { - "get": { - "operationId": "BetaStreamSessionThreadEvents", - "summary": "Stream Session Thread Events", + "/v1/deployments/{deployment_id}/pause?beta=true": { + "post": { + "operationId": "BetaPauseDeployment", + "summary": "Pause Deployment", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -8346,29 +7958,18 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "thread_id", + "name": "deployment_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter thread_id", - "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" + "description": "Path parameter deployment_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsStreamSessionThreadEvents" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -8464,10 +8065,10 @@ } } }, - "/v1/sessions/{session_id}/threads/{thread_id}/archive?beta=true": { + "/v1/deployments/{deployment_id}/unpause?beta=true": { "post": { - "operationId": "BetaArchiveSessionThread", - "summary": "Archive Session Thread", + "operationId": "BetaUnpauseDeployment", + "summary": "Unpause Deployment", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -8487,29 +8088,18 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "thread_id", + "name": "deployment_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter thread_id", - "example": "sthr_011CZkZVWa6oIjw0rgXZpnBt" + "description": "Path parameter deployment_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsSessionThread" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } } }, "400": { @@ -8605,12 +8195,11 @@ } } }, - "/v1/sessions/{session_id}/resources?beta=true": { - "get": { - "operationId": "BetaListResources", - "summary": "List Session Resources", + "/v1/deployments/{deployment_id}/run?beta=true": { + "post": { + "operationId": "BetaRunDeploymentNow", + "summary": "Run Deployment Now", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -8629,26 +8218,11 @@ } }, { - "name": "session_id", + "name": "deployment_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum number of resources to return per page (max 1000). If omitted, returns all resources." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Opaque cursor from a previous response's next_page field." + "description": "Path parameter deployment_id" } ], "responses": { @@ -8656,7 +8230,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListSessionResources" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentRun" } } } }, @@ -8751,11 +8325,14 @@ } } } - }, - "post": { - "operationId": "BetaAddResource", - "summary": "Add Session Resource", + } + }, + "/v1/deployment_runs?beta=true": { + "get": { + "operationId": "BetaListDeploymentRuns", + "summary": "List Deployment Runs", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -8774,28 +8351,78 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum results per page. Default 20, maximum 1000." + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { + "type": "string", + "x-stainless-pagination-property": { "purpose": "next_cursor_param" } + }, + "description": "Opaque pagination cursor. Pass next_page from the previous response. Invalid or expired cursors return 400." + }, + { + "name": "deployment_id", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Filter to a specific deployment. Omit to list across all deployments in the workspace. Filtering by a non-existent deployment_id returns 200 with empty data." + }, + { + "name": "trigger_type", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsTriggerType" }, + "description": "Filter runs by what triggered them. Omit to return all runs." + }, + { + "name": "has_error", + "in": "query", + "required": false, + "schema": { "type": "boolean" }, + "description": "Filter: true for runs with non-null error, false for runs with non-null session_id. Omit for all." + }, + { + "name": "created_at[gte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return runs created at or after this time (inclusive)." + }, + { + "name": "created_at[lte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return runs created at or before this time (inclusive)." + }, + { + "name": "created_at[gt]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return runs created strictly after this time (exclusive)." + }, + { + "name": "created_at[lt]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return runs created strictly before this time (exclusive)." } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAddSessionResourceParams" } - } - } - }, "responses": { "200": { "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAddSessionResource" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListDeploymentRunsData" } } } }, @@ -8892,10 +8519,10 @@ } } }, - "/v1/sessions/{session_id}/resources/{resource_id}?beta=true": { + "/v1/deployment_runs/{deployment_run_id}?beta=true": { "get": { - "operationId": "BetaGetResource", - "summary": "Get Session Resource", + "operationId": "BetaGetDeploymentRun", + "summary": "Get Deployment Run", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -8916,20 +8543,11 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "resource_id", + "name": "deployment_run_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter resource_id", - "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" + "description": "Path parameter deployment_run_id" } ], "responses": { @@ -8937,7 +8555,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsGetSessionResource" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentRun" } } } }, @@ -9032,53 +8650,25 @@ } } } - }, - "delete": { - "operationId": "BetaDeleteResource", - "summary": "Delete Session Resource", - "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } + } + }, + "/v1/vaults?beta=true": { + "post": { + "operationId": "BetaCreateVault", + "summary": "Create Vault", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateVaultRequest" } } - }, - { - "name": "session_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" - }, - { - "name": "resource_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter resource_id", - "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" } - ], + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeleteSessionResource" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } } }, "400": { @@ -9171,12 +8761,32 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - } + }, + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + } + ] }, - "post": { - "operationId": "BetaUpdateResource", - "summary": "Update Session Resource", + "get": { + "operationId": "BetaListVaults", + "summary": "List Vaults", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -9195,36 +8805,33 @@ } }, { - "name": "session_id", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum number of vaults to return per page. Defaults to 20, maximum 100." + }, + { + "name": "page", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "Path parameter session_id", - "example": "sesn_011CZkZAtmR3yMPDzynEDxu7" + "description": "Opaque pagination token from a previous `list_vaults` response." }, { - "name": "resource_id", - "in": "path", - "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter resource_id", - "example": "sesrsc_011CZkZBJq5dWxk9fVLNcPht" + "name": "include_archived", + "in": "query", + "required": false, + "schema": { "type": "boolean" }, + "description": "Whether to include archived vaults in the results." } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionResourceParams" } - } - } - }, "responses": { "200": { "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateSessionResource" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListVaultsResponse" } } } }, @@ -9321,23 +8928,43 @@ } } }, - "/v1/agents?beta=true": { - "post": { - "operationId": "BetaCreateAgent", - "summary": "Create Agent", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateAgentParams" } + "/v1/vaults/{vault_id}?beta=true": { + "get": { + "operationId": "BetaGetVault", + "summary": "Get Vault", + "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } } + }, + { + "name": "vault_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" } - }, + ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } } }, "400": { @@ -9430,7 +9057,11 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - }, + } + }, + "post": { + "operationId": "BetaUpdateVault", + "summary": "Update Vault", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -9448,12 +9079,126 @@ "items": { "$ref": "#/components/schemas/AnthropicBeta" } } } + }, + { + "name": "vault_id", + "in": "path", + "required": true, + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateVaultRequestBody" } + } } - ] + }, + "responses": { + "200": { + "description": "Successful response (OK)", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } + } + }, + "400": { + "description": "Invalid argument - The client specified an invalid argument", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "401": { + "description": "Unauthenticated - The request does not have valid authentication credentials", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "403": { + "description": "Permission denied - The caller does not have permission to execute the specified operation", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "404": { + "description": "Not found - Some requested entity was not found", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "408": { + "description": "Deadline exceeded - The deadline expired before the operation could complete", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "409": { + "description": "Aborted - The operation was aborted due to concurrency issue", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "412": { + "description": "Failed precondition - Operation was rejected because the system is not in required state", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "413": { + "description": "Out of range - Operation was attempted past the valid range", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "429": { + "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "431": { + "description": "Request header fields too large - Request metadata was too large", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "499": { + "description": "Cancelled - The operation was cancelled by the client", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "500": { + "description": "Internal - Internal server error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "501": { + "description": "Unimplemented - The operation is not implemented or supported", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "503": { + "description": "Unavailable - The service is currently unavailable", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "504": { + "description": "Deadline exceeded - Upstream service did not respond in time", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + } + } }, - "get": { - "operationId": "BetaListAgents", - "summary": "List Agents", + "delete": { + "operationId": "BetaDeleteVault", + "summary": "Delete Vault", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -9474,49 +9219,21 @@ } }, { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum results per page. Default 20, maximum 100." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "string", - "x-stainless-pagination-property": { "purpose": "next_cursor_param" } - }, - "description": "Opaque pagination cursor from a previous response." - }, - { - "name": "created_at[gte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return agents created at or after this time (inclusive)." - }, - { - "name": "created_at[lte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return agents created at or before this time (inclusive)." - }, - { - "name": "include_archived", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "Include archived agents in results. Defaults to false." + "name": "vault_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListAgents" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedVault" } + } } }, "400": { @@ -9612,12 +9329,11 @@ } } }, - "/v1/agents/{agent_id}?beta=true": { - "get": { - "operationId": "BetaGetAgent", - "summary": "Get Agent", + "/v1/vaults/{vault_id}/archive?beta=true": { + "post": { + "operationId": "BetaArchiveVault", + "summary": "Archive Vault", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -9636,26 +9352,19 @@ } }, { - "name": "agent_id", + "name": "vault_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter agent_id", - "example": "agent_011CZkYpogX7uDKUyvBTophP" - }, - { - "name": "version", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Agent version. Omit for the most recent version. Must be at least 1 if specified." + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } } }, "400": { @@ -9749,10 +9458,12 @@ } } } - }, + } + }, + "/v1/vaults/{vault_id}/credentials?beta=true": { "post": { - "operationId": "BetaUpdateAgent", - "summary": "Update Agent", + "operationId": "BetaCreateCredential", + "summary": "Create Credential", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -9772,19 +9483,19 @@ } }, { - "name": "agent_id", + "name": "vault_id", "in": "path", "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter agent_id", - "example": "agent_011CZkYpogX7uDKUyvBTophP" + "schema": { "type": "string" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" } ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateAgentParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateCredentialRequestBody" } } } }, @@ -9792,7 +9503,7 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } } }, "400": { @@ -9886,13 +9597,12 @@ } } } - } - }, - "/v1/agents/{agent_id}/archive?beta=true": { - "post": { - "operationId": "BetaArchiveAgent", - "summary": "Archive Agent", + }, + "get": { + "operationId": "BetaListCredentials", + "summary": "List Credentials", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -9911,19 +9621,42 @@ } }, { - "name": "agent_id", + "name": "vault_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter agent_id", - "example": "agent_011CZkYpogX7uDKUyvBTophP" + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum number of credentials to return per page. Defaults to 20, maximum 100." + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Opaque pagination token from a previous `list_credentials` response." + }, + { + "name": "include_archived", + "in": "query", + "required": false, + "schema": { "type": "boolean" }, + "description": "Whether to include archived credentials in the results." } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsAgent" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListCredentialsResponse" } + } } }, "400": { @@ -10019,10 +9752,10 @@ } } }, - "/v1/agents/{agent_id}/versions?beta=true": { + "/v1/vaults/{vault_id}/credentials/{credential_id}?beta=true": { "get": { - "operationId": "BetaListAgentVersions", - "summary": "List Agent Versions", + "operationId": "BetaGetCredential", + "summary": "Get Credential", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -10043,38 +9776,27 @@ } }, { - "name": "agent_id", + "name": "vault_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter agent_id", - "example": "agent_011CZkYpogX7uDKUyvBTophP" - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum results per page. Default 20, maximum 100." + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" }, { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "string", - "x-stainless-pagination-property": { "purpose": "next_cursor_param" } - }, - "description": "Opaque pagination cursor." + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter credential_id", + "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListAgentVersions" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } } }, "400": { @@ -10168,17 +9890,50 @@ } } } - } - }, - "/v1/deployments?beta=true": { + }, "post": { - "operationId": "BetaCreateDeployment", - "summary": "Create Deployment", + "operationId": "BetaUpdateCredential", + "summary": "Update Credential", + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + }, + { + "name": "vault_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + }, + { + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter credential_id", + "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + } + ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateDeploymentParams" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateCredentialRequestBody" } } } }, @@ -10186,7 +9941,7 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } } }, "400": { @@ -10279,30 +10034,11 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - }, - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - } - ] + } }, - "get": { - "operationId": "BetaListDeployments", - "summary": "List Deployments", + "delete": { + "operationId": "BetaDeleteCredential", + "summary": "Delete Credential", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -10323,56 +10059,20 @@ } }, { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum results per page. Default 20, maximum 100." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "string", - "x-stainless-pagination-property": { "purpose": "next_cursor_param" } - }, - "description": "Opaque pagination cursor." - }, - { - "name": "agent_id", - "in": "query", - "required": false, + "name": "vault_id", + "in": "path", + "required": true, "schema": { "type": "string" }, - "description": "Filter by agent ID." - }, - { - "name": "status", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentStatus" }, - "description": "Filter by status: active or paused. Omit for both. To include archived deployments, use include_archived instead; the two cannot be combined." - }, - { - "name": "created_at[gte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return deployments created at or after this time (inclusive)." - }, - { - "name": "created_at[lte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return deployments created at or before this time (inclusive)." + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" }, { - "name": "include_archived", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "When true, includes archived deployments. Default: false (exclude archived)." + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter credential_id", + "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" } ], "responses": { @@ -10380,7 +10080,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListDeploymentsData" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedCredential" } } } }, @@ -10477,12 +10177,11 @@ } } }, - "/v1/deployments/{deployment_id}?beta=true": { - "get": { - "operationId": "BetaGetDeployment", - "summary": "Get Deployment", + "/v1/vaults/{vault_id}/credentials/{credential_id}/archive?beta=true": { + "post": { + "operationId": "BetaArchiveCredential", + "summary": "Archive Credential", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -10501,18 +10200,27 @@ } }, { - "name": "deployment_id", + "name": "vault_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_id" + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + }, + { + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter credential_id", + "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } } }, "400": { @@ -10606,10 +10314,12 @@ } } } - }, + } + }, + "/v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate?beta=true": { "post": { - "operationId": "BetaUpdateDeployment", - "summary": "Update Deployment", + "operationId": "BetaValidateCredential", + "summary": "Validate Credential", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -10629,26 +10339,29 @@ } }, { - "name": "deployment_id", + "name": "vault_id", "in": "path", "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter deployment_id" + "schema": { "type": "string" }, + "description": "Path parameter vault_id", + "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + }, + { + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter credential_id", + "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateDeploymentParams" } - } - } - }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredentialValidation" } + } } }, "400": { @@ -10744,10 +10457,10 @@ } } }, - "/v1/deployments/{deployment_id}/archive?beta=true": { + "/v1/memory_stores/{memory_store_id}/memories?beta=true": { "post": { - "operationId": "BetaArchiveDeployment", - "summary": "Archive Deployment", + "operationId": "BetaCreateMemory", + "summary": "Create a memory", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -10767,118 +10480,162 @@ } }, { - "name": "deployment_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_id" + "description": "Path parameter memory_store_id" + }, + { + "name": "view", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } - } - }, - "/v1/deployments/{deployment_id}/pause?beta=true": { - "post": { - "operationId": "BetaPauseDeployment", - "summary": "Pause Deployment", + }, + "get": { + "operationId": "BetaListMemories", + "summary": "List memories", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -10897,118 +10654,200 @@ } }, { - "name": "deployment_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_id" + "description": "Path parameter memory_store_id" + }, + { + "name": "path_prefix", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Optional path prefix filter (raw string-prefix match; include a trailing slash for directory-scoped lists). This value appears in request URLs. Do not include secrets or personally identifiable information." + }, + { + "name": "depth", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for depth" + }, + { + "name": "order_by", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for order_by" + }, + { + "name": "order", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListOrder" }, + "description": "Query parameter for order" + }, + { + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for limit" + }, + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for page" + }, + { + "name": "view", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoriesResult" } + } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } } }, - "/v1/deployments/{deployment_id}/unpause?beta=true": { - "post": { - "operationId": "BetaUnpauseDeployment", - "summary": "Unpause Deployment", + "/v1/memory_stores/{memory_store_id}/memories/{memory_id}?beta=true": { + "get": { + "operationId": "BetaGetMemory", + "summary": "Retrieve a memory", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -11027,117 +10866,159 @@ } }, { - "name": "deployment_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_id" + "description": "Path parameter memory_store_id" + }, + { + "name": "memory_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter memory_id" + }, + { + "name": "view", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeployment" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } - } - }, - "/v1/deployments/{deployment_id}/run?beta=true": { + }, "post": { - "operationId": "BetaRunDeploymentNow", - "summary": "Run Deployment Now", + "operationId": "BetaUpdateMemory", + "summary": "Update a memory", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -11157,119 +11038,167 @@ } }, { - "name": "deployment_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_id" + "description": "Path parameter memory_store_id" + }, + { + "name": "memory_id", + "in": "path", + "required": true, + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter memory_id" + }, + { + "name": "view", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryParams" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentRun" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemory" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } - } - }, - "/v1/deployment_runs?beta=true": { - "get": { - "operationId": "BetaListDeploymentRuns", - "summary": "List Deployment Runs", + }, + "delete": { + "operationId": "BetaDeleteMemory", + "summary": "Delete a memory", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -11290,70 +11219,25 @@ } }, { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum results per page. Default 20, maximum 1000." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { - "type": "string", - "x-stainless-pagination-property": { "purpose": "next_cursor_param" } - }, - "description": "Opaque pagination cursor. Pass next_page from the previous response. Invalid or expired cursors return 400." - }, - { - "name": "deployment_id", - "in": "query", - "required": false, + "name": "memory_store_id", + "in": "path", + "required": true, "schema": { "type": "string" }, - "description": "Filter to a specific deployment. Omit to list across all deployments in the workspace. Filtering by a non-existent deployment_id returns 200 with empty data." - }, - { - "name": "trigger_type", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsTriggerType" }, - "description": "Filter runs by what triggered them. Omit to return all runs." - }, - { - "name": "has_error", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "Filter: true for runs with non-null error, false for runs with non-null session_id. Omit for all." - }, - { - "name": "created_at[gte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return runs created at or after this time (inclusive)." - }, - { - "name": "created_at[lte]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return runs created at or before this time (inclusive)." + "description": "Path parameter memory_store_id" }, { - "name": "created_at[gt]", - "in": "query", - "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return runs created strictly after this time (exclusive)." + "name": "memory_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter memory_id" }, { - "name": "created_at[lt]", + "name": "expected_content_sha256", "in": "query", "required": false, - "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, - "description": "Return runs created strictly before this time (exclusive)." + "schema": { "type": "string" }, + "description": "Query parameter for expected_content_sha256" } ], "responses": { @@ -11361,107 +11245,137 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListDeploymentRunsData" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedMemory" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } } }, - "/v1/deployment_runs/{deployment_run_id}?beta=true": { + "/v1/memory_stores/{memory_store_id}/memory_versions?beta=true": { "get": { - "operationId": "BetaGetDeploymentRun", - "summary": "Get Deployment Run", + "operationId": "BetaListMemoryVersions", + "summary": "List memory versions", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -11482,248 +11396,212 @@ } }, { - "name": "deployment_run_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter deployment_run_id" - } - ], - "responses": { - "200": { - "description": "Successful response (OK)", - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeploymentRun" } - } - } - }, - "400": { - "description": "Invalid argument - The client specified an invalid argument", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "401": { - "description": "Unauthenticated - The request does not have valid authentication credentials", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "403": { - "description": "Permission denied - The caller does not have permission to execute the specified operation", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "404": { - "description": "Not found - Some requested entity was not found", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "408": { - "description": "Deadline exceeded - The deadline expired before the operation could complete", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - }, - "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + "description": "Path parameter memory_store_id" }, - "412": { - "description": "Failed precondition - Operation was rejected because the system is not in required state", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "memory_id", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for memory_id" }, - "413": { - "description": "Out of range - Operation was attempted past the valid range", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "session_id", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for session_id" }, - "429": { - "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "api_key_id", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for api_key_id" }, - "431": { - "description": "Request header fields too large - Request metadata was too large", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "operation", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersionOperation" }, + "description": "Query parameter for operation" }, - "499": { - "description": "Cancelled - The operation was cancelled by the client", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "created_at[gte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return versions created at or after this time (inclusive)." }, - "500": { - "description": "Internal - Internal server error", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "created_at[lte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return versions created at or before this time (inclusive)." }, - "501": { - "description": "Unimplemented - The operation is not implemented or supported", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for limit" }, - "503": { - "description": "Unavailable - The service is currently unavailable", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } + { + "name": "page", + "in": "query", + "required": false, + "schema": { "type": "string" }, + "description": "Query parameter for page" }, - "504": { - "description": "Deadline exceeded - Upstream service did not respond in time", - "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - } - } - } - }, - "/v1/vaults?beta=true": { - "post": { - "operationId": "BetaCreateVault", - "summary": "Create Vault", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateVaultRequest" } - } + { + "name": "view", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } - }, + ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoryVersionsResult" } + } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } - } - } - }, - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } } } } - ] - }, + } + } + }, + "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}?beta=true": { "get": { - "operationId": "BetaListVaults", - "summary": "List Vaults", + "operationId": "BetaGetMemoryVersion", + "summary": "Retrieve a memory version", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -11744,25 +11622,25 @@ } }, { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum number of vaults to return per page. Defaults to 20, maximum 100." + "name": "memory_store_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter memory_store_id" }, { - "name": "page", - "in": "query", - "required": false, + "name": "memory_version_id", + "in": "path", + "required": true, "schema": { "type": "string" }, - "description": "Opaque pagination token from a previous `list_vaults` response." + "description": "Path parameter memory_version_id" }, { - "name": "include_archived", + "name": "view", "in": "query", "required": false, - "schema": { "type": "boolean" }, - "description": "Whether to include archived vaults in the results." + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryView" }, + "description": "Query parameter for view" } ], "responses": { @@ -11770,109 +11648,138 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListVaultsResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersion" } } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } } }, - "/v1/vaults/{vault_id}?beta=true": { - "get": { - "operationId": "BetaGetVault", - "summary": "Get Vault", + "/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact?beta=true": { + "post": { + "operationId": "BetaRedactMemoryVersion", + "summary": "Redact a memory version", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -11891,148 +11798,161 @@ } }, { - "name": "vault_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + "description": "Path parameter memory_store_id" + }, + { + "name": "memory_version_id", + "in": "path", + "required": true, + "schema": { "type": "string" }, + "description": "Path parameter memory_version_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsMemoryVersion" } + } } }, "400": { "description": "Invalid argument - The client specified an invalid argument", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "401": { "description": "Unauthenticated - The request does not have valid authentication credentials", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "403": { "description": "Permission denied - The caller does not have permission to execute the specified operation", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "404": { "description": "Not found - Some requested entity was not found", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "408": { "description": "Deadline exceeded - The deadline expired before the operation could complete", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "409": { - "description": "Aborted - The operation was aborted due to concurrency issue", + "description": "Custom error status", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "412": { "description": "Failed precondition - Operation was rejected because the system is not in required state", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "413": { "description": "Out of range - Operation was attempted past the valid range", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "429": { "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "431": { "description": "Request header fields too large - Request metadata was too large", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "499": { "description": "Cancelled - The operation was cancelled by the client", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "500": { "description": "Internal - Internal server error", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "501": { "description": "Unimplemented - The operation is not implemented or supported", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "503": { "description": "Unavailable - The service is currently unavailable", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } }, "504": { "description": "Deadline exceeded - Upstream service did not respond in time", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsErrorResponse" } + } } } } - }, + } + }, + "/v1/memory_stores?beta=true": { "post": { - "operationId": "BetaUpdateVault", - "summary": "Update Vault", - "parameters": [ - { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, - { - "name": "anthropic-beta", - "in": "header", - "required": false, - "schema": { - "type": "string", - "items": { "type": "string" }, - "x-stainless-override-schema": { - "x-stainless-param": "betas", - "x-stainless-extend-default": true, - "type": "array", - "description": "Optional header to specify the beta version(s) you want to use.", - "items": { "$ref": "#/components/schemas/AnthropicBeta" } - } - } - }, - { - "name": "vault_id", - "in": "path", - "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - } - ], + "operationId": "BetaCreateMemoryStore", + "summary": "Create a memory store", "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateVaultRequestBody" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryStoreRequest" } } } }, @@ -12040,7 +11960,9 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateMemoryStoreResponse" } + } } }, "400": { @@ -12133,11 +12055,30 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - } + }, + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + } + ] }, - "delete": { - "operationId": "BetaDeleteVault", - "summary": "Delete Vault", + "get": { + "operationId": "BetaListMemoryStores", + "summary": "List memory stores", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -12158,12 +12099,39 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Maximum number of stores to return per page. Must be between 1 and 100. Defaults to 20 when omitted." + }, + { + "name": "page", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + "description": "Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a previous response to fetch the next page; omit for the first page." + }, + { + "name": "include_archived", + "in": "query", + "required": false, + "schema": { "type": "boolean" }, + "description": "When `true`, archived stores are included in the results. Defaults to `false` (archived stores are excluded)." + }, + { + "name": "created_at[gte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return only stores whose `created_at` is at or after this time (inclusive). Sent on the wire as `created_at[gte]`." + }, + { + "name": "created_at[lte]", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaTimestamp" }, + "description": "Return only stores whose `created_at` is at or before this time (inclusive). Sent on the wire as `created_at[lte]`." } ], "responses": { @@ -12171,7 +12139,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedVault" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListMemoryStoresResponse" } } } }, @@ -12268,11 +12236,12 @@ } } }, - "/v1/vaults/{vault_id}/archive?beta=true": { - "post": { - "operationId": "BetaArchiveVault", - "summary": "Archive Vault", + "/v1/memory_stores/{memory_store_id}?beta=true": { + "get": { + "operationId": "BetaGetMemoryStore", + "summary": "Retrieve a memory store", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -12291,19 +12260,20 @@ } }, { - "name": "vault_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + "description": "Path parameter memory_store_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsVault" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsGetMemoryStoreResponse" } + } } }, "400": { @@ -12397,12 +12367,10 @@ } } } - } - }, - "/v1/vaults/{vault_id}/credentials?beta=true": { + }, "post": { - "operationId": "BetaCreateCredential", - "summary": "Create Credential", + "operationId": "BetaUpdateMemoryStore", + "summary": "Update a memory store", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -12422,19 +12390,18 @@ } }, { - "name": "vault_id", + "name": "memory_store_id", "in": "path", "required": true, - "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, + "description": "Path parameter memory_store_id" } ], "requestBody": { "required": true, "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCreateCredentialRequestBody" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryStoreRequestBody" } } } }, @@ -12442,7 +12409,9 @@ "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateMemoryStoreResponse" } + } } }, "400": { @@ -12537,9 +12506,9 @@ } } }, - "get": { - "operationId": "BetaListCredentials", - "summary": "List Credentials", + "delete": { + "operationId": "BetaDeleteMemoryStore", + "summary": "Delete a memory store", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -12560,33 +12529,11 @@ } }, { - "name": "vault_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - }, - { - "name": "limit", - "in": "query", - "required": false, - "schema": { "type": "integer", "format": "int32" }, - "description": "Maximum number of credentials to return per page. Defaults to 20, maximum 100." - }, - { - "name": "page", - "in": "query", - "required": false, - "schema": { "type": "string" }, - "description": "Opaque pagination token from a previous `list_credentials` response." - }, - { - "name": "include_archived", - "in": "query", - "required": false, - "schema": { "type": "boolean" }, - "description": "Whether to include archived credentials in the results." + "description": "Path parameter memory_store_id" } ], "responses": { @@ -12594,7 +12541,7 @@ "description": "Successful response (OK)", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsListCredentialsResponse" } + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeleteMemoryStoreResponse" } } } }, @@ -12691,12 +12638,11 @@ } } }, - "/v1/vaults/{vault_id}/credentials/{credential_id}?beta=true": { - "get": { - "operationId": "BetaGetCredential", - "summary": "Get Credential", + "/v1/memory_stores/{memory_store_id}/archive?beta=true": { + "post": { + "operationId": "BetaArchiveMemoryStore", + "summary": "Archive a memory store", "parameters": [ - { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -12715,27 +12661,130 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - }, - { - "name": "credential_id", + "name": "memory_store_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter credential_id", - "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + "description": "Path parameter memory_store_id" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaManagedAgentsArchiveMemoryStoreResponse" } + } + } + }, + "400": { + "description": "Invalid argument - The client specified an invalid argument", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "401": { + "description": "Unauthenticated - The request does not have valid authentication credentials", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "403": { + "description": "Permission denied - The caller does not have permission to execute the specified operation", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "404": { + "description": "Not found - Some requested entity was not found", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "408": { + "description": "Deadline exceeded - The deadline expired before the operation could complete", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "409": { + "description": "Aborted - The operation was aborted due to concurrency issue", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "412": { + "description": "Failed precondition - Operation was rejected because the system is not in required state", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "413": { + "description": "Out of range - Operation was attempted past the valid range", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "429": { + "description": "Resource exhausted - Some resource has been exhausted (rate limiting)", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "431": { + "description": "Request header fields too large - Request metadata was too large", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "499": { + "description": "Cancelled - The operation was cancelled by the client", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "500": { + "description": "Internal - Internal server error", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "501": { + "description": "Unimplemented - The operation is not implemented or supported", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "503": { + "description": "Unavailable - The service is currently unavailable", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + }, + "504": { + "description": "Deadline exceeded - Upstream service did not respond in time", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } + } + } + } + } + }, + "/v1/user_profiles?beta=true": { + "post": { + "operationId": "BetaCreateUserProfile", + "summary": "Create User Profile", + "requestBody": { + "required": true, + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaCreateUserProfileRequest" } } + } + }, + "responses": { + "200": { + "description": "Successful response (OK)", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } } }, "400": { @@ -12828,12 +12877,32 @@ "application/json": { "schema": { "$ref": "#/components/schemas/BetaErrorResponse" } } } } - } + }, + "parameters": [ + { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, + { + "name": "anthropic-beta", + "in": "header", + "required": false, + "schema": { + "type": "string", + "items": { "type": "string" }, + "x-stainless-override-schema": { + "x-stainless-param": "betas", + "x-stainless-extend-default": true, + "type": "array", + "description": "Optional header to specify the beta version(s) you want to use.", + "items": { "$ref": "#/components/schemas/AnthropicBeta" } + } + } + } + ] }, - "post": { - "operationId": "BetaUpdateCredential", - "summary": "Update Credential", + "get": { + "operationId": "BetaListUserProfiles", + "summary": "List User Profiles", "parameters": [ + { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-beta", @@ -12852,35 +12921,34 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, + "name": "limit", + "in": "query", + "required": false, + "schema": { "type": "integer", "format": "int32" }, + "description": "Query parameter for limit" + }, + { + "name": "page", + "in": "query", + "required": false, "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" + "description": "Query parameter for page" }, { - "name": "credential_id", - "in": "path", - "required": true, - "schema": { "type": "string", "x-stainless-cli-data-alias": "id" }, - "description": "Path parameter credential_id", - "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + "name": "order", + "in": "query", + "required": false, + "schema": { "$ref": "#/components/schemas/BetaUserProfileListOrder" }, + "description": "Query parameter for order" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsUpdateCredentialRequestBody" } - } - } - }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaListUserProfilesResponse" } + } } }, "400": { @@ -12974,10 +13042,12 @@ } } } - }, - "delete": { - "operationId": "BetaDeleteCredential", - "summary": "Delete Credential", + } + }, + "/v1/user_profiles/{user_profile_id}?beta=true": { + "get": { + "operationId": "BetaGetUserProfile", + "summary": "Get User Profile", "parameters": [ { "name": "x-api-key", "in": "header", "required": false, "schema": { "type": "string" } }, { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, @@ -12998,29 +13068,19 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - }, - { - "name": "credential_id", + "name": "user_profile_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter credential_id", - "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + "description": "Path parameter user_profile_id", + "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsDeletedCredential" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } } }, "400": { @@ -13114,12 +13174,10 @@ } } } - } - }, - "/v1/vaults/{vault_id}/credentials/{credential_id}/archive?beta=true": { + }, "post": { - "operationId": "BetaArchiveCredential", - "summary": "Archive Credential", + "operationId": "BetaUpdateUserProfile", + "summary": "Update User Profile", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -13139,27 +13197,27 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - }, - { - "name": "credential_id", + "name": "user_profile_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter credential_id", - "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + "description": "Path parameter user_profile_id", + "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/BetaUpdateUserProfileRequestBody" } + } + } + }, "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredential" } } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaUserProfile" } } } }, "400": { @@ -13255,10 +13313,10 @@ } } }, - "/v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate?beta=true": { + "/v1/user_profiles/{user_profile_id}/enrollment_url?beta=true": { "post": { - "operationId": "BetaValidateCredential", - "summary": "Validate Credential", + "operationId": "BetaCreateEnrollmentUrl", + "summary": "Create Enrollment URL", "parameters": [ { "name": "anthropic-version", "in": "header", "required": false, "schema": { "type": "string" } }, { @@ -13278,29 +13336,19 @@ } }, { - "name": "vault_id", - "in": "path", - "required": true, - "schema": { "type": "string" }, - "description": "Path parameter vault_id", - "example": "vlt_011CZkZDLs7fYzm1hXNPeRjv" - }, - { - "name": "credential_id", + "name": "user_profile_id", "in": "path", "required": true, "schema": { "type": "string" }, - "description": "Path parameter credential_id", - "example": "vcrd_011CZkZEMt8gZan2iYOQfSkw" + "description": "Path parameter user_profile_id", + "example": "uprof_011CZkZCu8hGbp5mYRQgUmz9" } ], "responses": { "200": { "description": "Successful response (OK)", "content": { - "application/json": { - "schema": { "$ref": "#/components/schemas/BetaManagedAgentsCredentialValidation" } - } + "application/json": { "schema": { "$ref": "#/components/schemas/BetaEnrollmentUrl" } } } }, "400": { @@ -13409,8 +13457,8 @@ "type": "object" }, "AllowedCaller": { - "description": "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).", - "enum": ["direct", "code_execution_20250825", "code_execution_20260120"], + "description": "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).\n code_execution_20260521: The tool can be called from the code execution environment (v2 with persistence).", + "enum": ["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"], "title": "AllowedCaller", "type": "string" }, @@ -13671,8 +13719,8 @@ "type": "object" }, "BetaAllowedCaller": { - "description": "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).", - "enum": ["direct", "code_execution_20250825", "code_execution_20260120"], + "description": "Specifies who can invoke a tool.\n\nValues:\n direct: The model can call this tool directly.\n code_execution_20250825: The tool can be called from the code execution environment (v1).\n code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).\n code_execution_20260521: The tool can be called from the code execution environment (v2 with persistence).", + "enum": ["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"], "title": "AllowedCaller", "type": "string" }, @@ -13877,7 +13925,7 @@ "additionalProperties": false, "properties": { "ttl": { - "description": "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`.", + "description": "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`. See [prompt caching pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details.", "enum": ["5m", "1h"], "title": "Ttl", "type": "string", @@ -14390,6 +14438,51 @@ "title": "CodeExecutionTool_20260120", "type": "object" }, + "BetaCodeExecutionTool_20260521": { + "additionalProperties": false, + "description": "Code execution tool with REPL state persistence.", + "properties": { + "allowed_callers": { + "items": { "$ref": "#/components/schemas/BetaAllowedCaller" }, + "title": "Allowed Callers", + "type": "array" + }, + "cache_control": { + "anyOf": [ + { + "discriminator": { + "mapping": { "ephemeral": "#/components/schemas/BetaCacheControlEphemeral" }, + "propertyName": "type" + }, + "oneOf": [{ "$ref": "#/components/schemas/BetaCacheControlEphemeral" }] + }, + { "type": "null" } + ], + "description": "Create a cache control breakpoint at this content block.", + "title": "Cache Control" + }, + "defer_loading": { + "description": "If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.", + "title": "Defer Loading", + "type": "boolean" + }, + "name": { + "const": "code_execution", + "description": "Name of the tool.\n\nThis is how the tool will be called by the model and in `tool_use` blocks.", + "title": "Name", + "type": "string" + }, + "strict": { + "description": "When true, guarantees schema validation on tool names and inputs", + "title": "Strict", + "type": "boolean" + }, + "type": { "const": "code_execution_20260521", "title": "Type", "type": "string" } + }, + "required": ["name", "type"], + "title": "CodeExecutionTool_20260521", + "type": "object" + }, "BetaCompact20260112": { "additionalProperties": false, "description": "Automatically compact older context when reaching the configured trigger threshold.", @@ -15049,6 +15142,7 @@ { "$ref": "#/components/schemas/BetaCodeExecutionTool_20250522" }, { "$ref": "#/components/schemas/BetaCodeExecutionTool_20250825" }, { "$ref": "#/components/schemas/BetaCodeExecutionTool_20260120" }, + { "$ref": "#/components/schemas/BetaCodeExecutionTool_20260521" }, { "$ref": "#/components/schemas/BetaComputerUseTool_20241022" }, { "$ref": "#/components/schemas/BetaMemoryTool_20250818" }, { "$ref": "#/components/schemas/BetaComputerUseTool_20250124" }, @@ -15225,7 +15319,8 @@ "stream": { "description": "Whether to incrementally stream the response using server-sent events.\n\nSee [streaming](https://docs.claude.com/en/api/messages-streaming) for details.", "title": "Stream", - "type": "boolean" + "type": "boolean", + "example": false }, "system": { "anyOf": [ @@ -15281,6 +15376,7 @@ { "$ref": "#/components/schemas/BetaCodeExecutionTool_20250522" }, { "$ref": "#/components/schemas/BetaCodeExecutionTool_20250825" }, { "$ref": "#/components/schemas/BetaCodeExecutionTool_20260120" }, + { "$ref": "#/components/schemas/BetaCodeExecutionTool_20260521" }, { "$ref": "#/components/schemas/BetaComputerUseTool_20241022" }, { "$ref": "#/components/schemas/BetaMemoryTool_20250818" }, { "$ref": "#/components/schemas/BetaComputerUseTool_20250124" }, @@ -15321,11 +15417,6 @@ "title": "Top P", "type": "number", "x-stainless-deprecation-message": "Deprecated. Models released after Claude Opus 4.6 do not support setting top_p. A value >= 0.99 will be accepted for backwards compatibility, all other values will be rejected with a 400 error." - }, - "user_profile_id": { - "anyOf": [{ "type": "string" }, { "type": "null" }], - "description": "The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization.", - "title": "User Profile Id" } }, "required": ["model", "messages", "max_tokens"], @@ -15998,6 +16089,21 @@ "title": "FallbackMessageIterationUsage", "type": "object" }, + "BetaFallbackRefusalTrigger": { + "description": "The `from` model declined for policy reasons.", + "properties": { + "category": { + "anyOf": [{ "$ref": "#/components/schemas/BetaRefusalCategory" }, { "type": "null" }], + "default": null, + "description": "The policy category that triggered the `from` model's refusal at this hop. `null` when the refusal doesn't map to a named category. Same vocabulary as `stop_details.category`.", + "x-stainless-naming": { "csharp": { "type_name": "BetaFallbackRefusalTriggerCategory" } } + }, + "type": { "const": "refusal", "default": "refusal", "title": "Type", "type": "string" } + }, + "required": ["category", "type"], + "title": "FallbackRefusalTrigger", + "type": "object" + }, "BetaFileDeleteResponse": { "properties": { "id": { @@ -17488,7 +17594,7 @@ "examples": [[{ "type": "agent_toolset_20260401" }]] }, "mcp_servers": { - "description": "MCP servers this agent connects to. Maximum 20. Names must be unique within the array.", + "description": "MCP servers this agent connects to. Maximum 20. Names must be unique within the array. Every server must be referenced by an `mcp_toolset` in `tools`; unreferenced servers are rejected. See the [MCP connector guide](https://platform.claude.com/docs/en/managed-agents/mcp-connector).", "type": "array", "items": { "$ref": "#/components/schemas/BetaManagedAgentsMCPServerParams" } }, @@ -22874,7 +22980,7 @@ "nullable": true }, "mcp_servers": { - "description": "MCP servers. Full replacement. Omit to preserve; send empty array or null to clear. Names must be unique. Maximum 20.", + "description": "MCP servers. Full replacement. Omit to preserve; send empty array or `null` to clear. Names must be unique. Maximum 20. Every server must be referenced by an `mcp_toolset` in the agent's resulting `tools`; unreferenced servers are rejected. See the [MCP connector guide](https://platform.claude.com/docs/en/managed-agents/mcp-connector).", "type": "array", "items": { "$ref": "#/components/schemas/BetaManagedAgentsMCPServerParams" }, "nullable": true @@ -24539,17 +24645,19 @@ "title": "RateLimitError", "type": "object" }, + "BetaRefusalCategory": { + "description": "The policy category that triggered a refusal.", + "enum": ["cyber", "bio", "frontier_llm", "reasoning_extraction", "military_weapons"], + "title": "RefusalCategory", + "type": "string" + }, "BetaRefusalStopDetails": { "description": "Structured information about a refusal.", "properties": { "category": { - "anyOf": [ - { "enum": ["cyber", "bio", "frontier_llm", "reasoning_extraction"], "type": "string" }, - { "type": "null" } - ], + "anyOf": [{ "$ref": "#/components/schemas/BetaRefusalCategory" }, { "type": "null" }], "default": null, - "description": "The policy category that triggered the refusal.\n\n`null` when the refusal doesn't map to a named category.", - "title": "Category" + "description": "The policy category that triggered the refusal.\n\n`null` when the refusal doesn't map to a named category." }, "explanation": { "anyOf": [{ "type": "string" }, { "type": "null" }], @@ -25040,10 +25148,14 @@ }, "BetaRequestFallbackBlock": { "additionalProperties": false, - "description": "A `fallback` block echoed back from a prior response.\n\nAccepted in `messages[].content` and never rendered into the prompt,\nnot validated against the request's `fallbacks` chain or top-level\n`model`, and stripped before the sticky-routing cache key is computed.\n\nCallers should echo the assistant turn verbatim — block included. The\nblock's position is load-bearing for thinking verification: the thinking\nruns on either side of a fallback hop carry independently-rooted\nverification hash chains, and this block is the only record of where one\nchain ends and the next begins. When thinking runs flank the boundary,\nomitting the block merges the runs into one contiguous span whose hashes\ncannot verify (the request is rejected), and moving it into the middle of\na single run splits that run's chain and is likewise rejected; between\nnon-thinking blocks the block's placement has no verification effect.", + "description": "A `fallback` block echoed back from a prior response.\n\nAccepted in `messages[].content` and not rendered into the prompt; not\nvalidated against the request's `fallbacks` chain or top-level `model`.\n\nEcho the assistant turn back verbatim, including this block in its\noriginal position. The block marks the boundary between content produced\nbefore and after a fallback hop, and the server relies on that boundary\nto validate the turn: when thinking runs flank the boundary, omitting\nthe block merges them into one span the server cannot validate (the\nrequest is rejected), and moving it into the middle of a single run is\nlikewise rejected; between non-thinking blocks the block's placement has\nno validation effect.", "properties": { "from": { "$ref": "#/components/schemas/BetaRequestFallbackHopInfo" }, "to": { "$ref": "#/components/schemas/BetaRequestFallbackHopInfo" }, + "trigger": { + "description": "The response block's `trigger`, echoed verbatim. Accepted and ignored by the server; any object or `null` is allowed.", + "title": "Trigger" + }, "type": { "const": "fallback", "title": "Type", "type": "string" } }, "required": ["from", "to", "type"], @@ -26378,7 +26490,7 @@ "type": "object" }, "BetaResponseFallbackBlock": { - "description": "Marks the point in `content` where one model's output gives way to the next.\n\nOne block appears per hop where a preceding model actually ran this turn and\ndeclined. A turn routed directly by the sticky decision has no such boundary\nand carries no block — the signal for whether a fallback model served the\nresponse is the presence of a `fallback_message` entry in\n`usage.iterations`, not this block.\n\nThe block is treated like a server-tool content block for streaming: it\narrives via the standard `content_block_start` / `content_block_stop`\npair and carries no deltas.", + "description": "Marks the point in `content` where one model's output gives way to the next.\n\nOne block appears per hop where a preceding model actually ran this turn and\ndeclined. A turn where no preceding model ran and declined has no such\nboundary and carries no block — the signal for whether a fallback model\nserved the response is the presence of a `fallback_message` entry in\n`usage.iterations`, not this block.\n\nThe block is treated like a server-tool content block for streaming: it\narrives via the standard `content_block_start` / `content_block_stop`\npair and carries no deltas.", "properties": { "from": { "$ref": "#/components/schemas/BetaResponseFallbackHopInfo", @@ -26388,9 +26500,13 @@ "$ref": "#/components/schemas/BetaResponseFallbackHopInfo", "description": "The fallback model producing the content that follows this block. Its `model` is always the canonical id." }, + "trigger": { + "$ref": "#/components/schemas/BetaFallbackRefusalTrigger", + "description": "What caused the `from` model to hand over at this hop." + }, "type": { "const": "fallback", "default": "fallback", "title": "Type", "type": "string" } }, - "required": ["from", "to", "type"], + "required": ["from", "to", "trigger", "type"], "title": "ResponseFallbackBlock", "type": "object" }, @@ -28795,7 +28911,8 @@ { "$ref": "#/components/schemas/BetaWebhookVaultCredentialCreatedEventData" }, { "$ref": "#/components/schemas/BetaWebhookVaultCredentialArchivedEventData" }, { "$ref": "#/components/schemas/BetaWebhookVaultCredentialDeletedEventData" }, - { "$ref": "#/components/schemas/BetaWebhookVaultCredentialRefreshFailedEventData" } + { "$ref": "#/components/schemas/BetaWebhookVaultCredentialRefreshFailedEventData" }, + { "$ref": "#/components/schemas/BetaWebhookSessionUpdatedEventData" } ], "discriminator": { "propertyName": "type", @@ -28821,7 +28938,8 @@ "vault_credential.created": "#/components/schemas/BetaWebhookVaultCredentialCreatedEventData", "vault_credential.archived": "#/components/schemas/BetaWebhookVaultCredentialArchivedEventData", "vault_credential.deleted": "#/components/schemas/BetaWebhookVaultCredentialDeletedEventData", - "vault_credential.refresh_failed": "#/components/schemas/BetaWebhookVaultCredentialRefreshFailedEventData" + "vault_credential.refresh_failed": "#/components/schemas/BetaWebhookVaultCredentialRefreshFailedEventData", + "session.updated": "#/components/schemas/BetaWebhookSessionUpdatedEventData" } } }, @@ -29026,6 +29144,17 @@ } } }, + "BetaWebhookSessionUpdatedEventData": { + "type": "object", + "title": "BetaWebhookSessionUpdatedEventData", + "required": ["type", "id", "organization_id", "workspace_id"], + "properties": { + "type": { "type": "string", "const": "session.updated" }, + "id": { "type": "string", "description": "ID of the session that triggered the event." }, + "organization_id": { "type": "string" }, + "workspace_id": { "type": "string" } + } + }, "BetaWebhookVaultArchivedEventData": { "type": "object", "title": "BetaWebhookVaultArchivedEventData", @@ -29169,7 +29298,7 @@ "additionalProperties": false, "properties": { "ttl": { - "description": "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`.", + "description": "The time-to-live for the cache control breakpoint.\n\nThis may be one the following values:\n- `5m`: 5 minutes\n- `1h`: 1 hour\n\nDefaults to `5m`. See [prompt caching pricing](https://docs.claude.com/en/docs/build-with-claude/prompt-caching) for details.", "enum": ["5m", "1h"], "title": "Ttl", "type": "string", @@ -29395,6 +29524,51 @@ "title": "CodeExecutionTool_20260120", "type": "object" }, + "CodeExecutionTool_20260521": { + "additionalProperties": false, + "description": "Code execution tool with REPL state persistence.", + "properties": { + "allowed_callers": { + "items": { "$ref": "#/components/schemas/AllowedCaller" }, + "title": "Allowed Callers", + "type": "array" + }, + "cache_control": { + "anyOf": [ + { + "discriminator": { + "mapping": { "ephemeral": "#/components/schemas/CacheControlEphemeral" }, + "propertyName": "type" + }, + "oneOf": [{ "$ref": "#/components/schemas/CacheControlEphemeral" }] + }, + { "type": "null" } + ], + "description": "Create a cache control breakpoint at this content block.", + "title": "Cache Control" + }, + "defer_loading": { + "description": "If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.", + "title": "Defer Loading", + "type": "boolean" + }, + "name": { + "const": "code_execution", + "description": "Name of the tool.\n\nThis is how the tool will be called by the model and in `tool_use` blocks.", + "title": "Name", + "type": "string" + }, + "strict": { + "description": "When true, guarantees schema validation on tool names and inputs", + "title": "Strict", + "type": "boolean" + }, + "type": { "const": "code_execution_20260521", "title": "Type", "type": "string" } + }, + "required": ["name", "type"], + "title": "CodeExecutionTool_20260521", + "type": "object" + }, "CompletionRequest": { "additionalProperties": false, "examples": [ @@ -29759,6 +29933,7 @@ { "$ref": "#/components/schemas/CodeExecutionTool_20250522" }, { "$ref": "#/components/schemas/CodeExecutionTool_20250825" }, { "$ref": "#/components/schemas/CodeExecutionTool_20260120" }, + { "$ref": "#/components/schemas/CodeExecutionTool_20260521" }, { "$ref": "#/components/schemas/MemoryTool_20250818" }, { "$ref": "#/components/schemas/TextEditor_20250124" }, { "$ref": "#/components/schemas/TextEditor_20250429" }, @@ -29879,7 +30054,8 @@ "stream": { "description": "Whether to incrementally stream the response using server-sent events.\n\nSee [streaming](https://docs.claude.com/en/api/messages-streaming) for details.", "title": "Stream", - "type": "boolean" + "type": "boolean", + "example": false }, "system": { "anyOf": [ @@ -29934,6 +30110,7 @@ { "$ref": "#/components/schemas/CodeExecutionTool_20250522" }, { "$ref": "#/components/schemas/CodeExecutionTool_20250825" }, { "$ref": "#/components/schemas/CodeExecutionTool_20260120" }, + { "$ref": "#/components/schemas/CodeExecutionTool_20260521" }, { "$ref": "#/components/schemas/MemoryTool_20250818" }, { "$ref": "#/components/schemas/TextEditor_20250124" }, { "$ref": "#/components/schemas/TextEditor_20250429" }, @@ -30882,17 +31059,19 @@ "title": "RateLimitError", "type": "object" }, + "RefusalCategory": { + "description": "The policy category that triggered a refusal.", + "enum": ["cyber", "bio", "frontier_llm", "reasoning_extraction", "military_weapons"], + "title": "RefusalCategory", + "type": "string" + }, "RefusalStopDetails": { "description": "Structured information about a refusal.", "properties": { "category": { - "anyOf": [ - { "enum": ["cyber", "bio", "frontier_llm", "reasoning_extraction"], "type": "string" }, - { "type": "null" } - ], + "anyOf": [{ "$ref": "#/components/schemas/RefusalCategory" }, { "type": "null" }], "default": null, - "description": "The policy category that triggered the refusal.\n\n`null` when the refusal doesn't map to a named category.", - "title": "Category" + "description": "The policy category that triggered the refusal.\n\n`null` when the refusal doesn't map to a named category." }, "explanation": { "anyOf": [{ "type": "string" }, { "type": "null" }], @@ -34088,6 +34267,7 @@ { "$ref": "#/components/schemas/CodeExecutionTool_20250522" }, { "$ref": "#/components/schemas/CodeExecutionTool_20250825" }, { "$ref": "#/components/schemas/CodeExecutionTool_20260120" }, + { "$ref": "#/components/schemas/CodeExecutionTool_20260521" }, { "$ref": "#/components/schemas/MemoryTool_20250818" }, { "$ref": "#/components/schemas/TextEditor_20250124" }, { "$ref": "#/components/schemas/TextEditor_20250429" }, @@ -34561,41 +34741,6 @@ "x-stainless-nominal": false, "deprecated": true, "x-stainless-deprecation-message": "Will reach end-of-life on August 5, 2026. Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." - }, - { - "const": "claude-opus-4-0", - "description": "Powerful model for complex tasks", - "x-stainless-nominal": false, - "deprecated": true, - "x-stainless-deprecation-message": "Will reach end-of-life on June 15th, 2026. Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." - }, - { - "const": "claude-opus-4-20250514", - "description": "Powerful model for complex tasks", - "x-stainless-nominal": false, - "deprecated": true, - "x-stainless-deprecation-message": "Will reach end-of-life on June 15th, 2026. Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." - }, - { - "const": "claude-sonnet-4-0", - "description": "High-performance model with extended thinking", - "x-stainless-nominal": false, - "deprecated": true, - "x-stainless-deprecation-message": "Will reach end-of-life on June 15th, 2026. Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." - }, - { - "const": "claude-sonnet-4-20250514", - "description": "High-performance model with extended thinking", - "x-stainless-nominal": false, - "deprecated": true, - "x-stainless-deprecation-message": "Will reach end-of-life on June 15th, 2026. Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." - }, - { - "const": "claude-3-haiku-20240307", - "description": "Fast and cost-effective model", - "x-stainless-nominal": false, - "deprecated": true, - "x-stainless-deprecation-message": "Will reach end-of-life on April 20th, 2026. Please migrate to claude-haiku-4-5. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information." } ] }, @@ -35196,6 +35341,17 @@ }, "responses": { "200": { "description": "Return any 2xx status to acknowledge receipt." } } } + }, + "session.updated": { + "post": { + "operationId": "BetaSessionUpdatedWebhook", + "summary": "session.updated webhook", + "requestBody": { + "required": true, + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BetaWebhookEvent" } } } + }, + "responses": { "200": { "description": "Return any 2xx status to acknowledge receipt." } } + } } } }