diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index 498d158e86..9a1c8afd52 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1829,6 +1829,12 @@ export type SessionNotFoundError = { message: string } +export type ServiceUnavailableError = { + _tag: "ServiceUnavailableError" + message: string + service?: string +} + export type V2SessionMessagesResponse = { items: Array cursor: { @@ -1837,12 +1843,6 @@ export type V2SessionMessagesResponse = { } } -export type ServiceUnavailableError = { - _tag: "ServiceUnavailableError" - message: string - service?: string -} - export type ProviderNotFoundError = { _tag: "ProviderNotFoundError" providerID: string @@ -7184,6 +7184,10 @@ export type V2SessionPromptErrors = { * SessionNotFoundError */ 404: SessionNotFoundError + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError } export type V2SessionPromptError = V2SessionPromptErrors[keyof V2SessionPromptErrors] @@ -7222,6 +7226,10 @@ export type V2SessionCompactErrors = { * SessionNotFoundError */ 404: SessionNotFoundError + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError } export type V2SessionCompactError = V2SessionCompactErrors[keyof V2SessionCompactErrors] @@ -7260,6 +7268,10 @@ export type V2SessionWaitErrors = { * SessionNotFoundError */ 404: SessionNotFoundError + /** + * ServiceUnavailableError + */ + 503: ServiceUnavailableError } export type V2SessionWaitError = V2SessionWaitErrors[keyof V2SessionWaitErrors] diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 17cd256d6e..88347e8a2e 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -8227,6 +8227,16 @@ } } } + }, + "503": { + "description": "ServiceUnavailableError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableError" + } + } + } } }, "description": "Create a v2 session message and queue it for the agent loop.", @@ -8323,6 +8333,16 @@ } } } + }, + "503": { + "description": "ServiceUnavailableError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableError" + } + } + } } }, "description": "Compact a v2 session conversation.", @@ -8400,6 +8420,16 @@ } } } + }, + "503": { + "description": "ServiceUnavailableError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableError" + } + } + } } }, "description": "Wait for a v2 session agent loop to become idle.", @@ -15685,6 +15715,23 @@ "required": ["_tag", "sessionID", "message"], "additionalProperties": false }, + "ServiceUnavailableError": { + "type": "object", + "properties": { + "_tag": { + "type": "string", + "enum": ["ServiceUnavailableError"] + }, + "message": { + "type": "string" + }, + "service": { + "type": "string" + } + }, + "required": ["_tag", "message"], + "additionalProperties": false + }, "V2SessionMessagesResponse": { "type": "object", "properties": { @@ -15710,23 +15757,6 @@ "required": ["items", "cursor"], "additionalProperties": false }, - "ServiceUnavailableError": { - "type": "object", - "properties": { - "_tag": { - "type": "string", - "enum": ["ServiceUnavailableError"] - }, - "message": { - "type": "string" - }, - "service": { - "type": "string" - } - }, - "required": ["_tag", "message"], - "additionalProperties": false - }, "ProviderNotFoundError": { "type": "object", "properties": {