@meetkai/mka1 0.55.23 → 0.55.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/bin/mcp-server.js +189 -77
  2. package/bin/mcp-server.js.map +24 -21
  3. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  4. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  11. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts +18 -0
  12. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  13. package/dist/commonjs/models/components/agentssandboxsessionscope.js +52 -0
  14. package/dist/commonjs/models/components/agentssandboxsessionscope.js.map +1 -0
  15. package/dist/commonjs/models/components/cataloghealth.d.ts +17 -0
  16. package/dist/commonjs/models/components/cataloghealth.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/cataloghealth.js +3 -0
  18. package/dist/commonjs/models/components/cataloghealth.js.map +1 -1
  19. package/dist/commonjs/models/components/cataloghealthresponse.d.ts +14 -0
  20. package/dist/commonjs/models/components/cataloghealthresponse.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/cataloghealthresponse.js +3 -0
  22. package/dist/commonjs/models/components/cataloghealthresponse.js.map +1 -1
  23. package/dist/commonjs/models/components/cataloghealthstatus.d.ts +19 -0
  24. package/dist/commonjs/models/components/cataloghealthstatus.d.ts.map +1 -0
  25. package/dist/commonjs/models/components/cataloghealthstatus.js +53 -0
  26. package/dist/commonjs/models/components/cataloghealthstatus.js.map +1 -0
  27. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts +6 -0
  28. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/codeinterpretercontainerauto.js +5 -0
  30. package/dist/commonjs/models/components/codeinterpretercontainerauto.js.map +1 -1
  31. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts +6 -0
  32. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/codeinterpretertoolrequest.js +5 -0
  34. package/dist/commonjs/models/components/codeinterpretertoolrequest.js.map +1 -1
  35. package/dist/commonjs/models/components/index.d.ts +3 -0
  36. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/index.js +3 -0
  38. package/dist/commonjs/models/components/index.js.map +1 -1
  39. package/dist/commonjs/models/components/livekittokenrequest.d.ts +6 -6
  40. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/livekittokenrequest.js +5 -5
  42. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  43. package/dist/commonjs/models/components/responsescreaterequest.d.ts +6 -6
  44. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/responsescreaterequest.js +5 -5
  46. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  47. package/dist/commonjs/models/components/sandboxsessionscope.d.ts +2 -2
  48. package/dist/commonjs/models/components/sandboxsessionscope.js +1 -1
  49. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  50. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js +5 -0
  52. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js.map +1 -1
  53. package/dist/commonjs/models/components/shelltoolrequest.d.ts +73 -0
  54. package/dist/commonjs/models/components/shelltoolrequest.d.ts.map +1 -0
  55. package/dist/commonjs/models/components/shelltoolrequest.js +129 -0
  56. package/dist/commonjs/models/components/shelltoolrequest.js.map +1 -0
  57. package/dist/commonjs/models/components/tooldefinition.d.ts +17 -17
  58. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/tooldefinition.js +26 -26
  60. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  61. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  62. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
  63. package/dist/commonjs/sdk/models.d.ts +1 -1
  64. package/dist/commonjs/sdk/models.js +1 -1
  65. package/dist/esm/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  66. package/dist/esm/funcs/llmModelsCheckCatalogHealth.js +1 -1
  67. package/dist/esm/lib/config.d.ts +2 -2
  68. package/dist/esm/lib/config.js +2 -2
  69. package/dist/esm/mcp-server/mcp-server.js +1 -1
  70. package/dist/esm/mcp-server/server.js +1 -1
  71. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  72. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  73. package/dist/esm/models/components/agentssandboxsessionscope.d.ts +18 -0
  74. package/dist/esm/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  75. package/dist/esm/models/components/agentssandboxsessionscope.js +16 -0
  76. package/dist/esm/models/components/agentssandboxsessionscope.js.map +1 -0
  77. package/dist/esm/models/components/cataloghealth.d.ts +17 -0
  78. package/dist/esm/models/components/cataloghealth.d.ts.map +1 -1
  79. package/dist/esm/models/components/cataloghealth.js +3 -0
  80. package/dist/esm/models/components/cataloghealth.js.map +1 -1
  81. package/dist/esm/models/components/cataloghealthresponse.d.ts +14 -0
  82. package/dist/esm/models/components/cataloghealthresponse.d.ts.map +1 -1
  83. package/dist/esm/models/components/cataloghealthresponse.js +3 -0
  84. package/dist/esm/models/components/cataloghealthresponse.js.map +1 -1
  85. package/dist/esm/models/components/cataloghealthstatus.d.ts +19 -0
  86. package/dist/esm/models/components/cataloghealthstatus.d.ts.map +1 -0
  87. package/dist/esm/models/components/cataloghealthstatus.js +17 -0
  88. package/dist/esm/models/components/cataloghealthstatus.js.map +1 -0
  89. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts +6 -0
  90. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  91. package/dist/esm/models/components/codeinterpretercontainerauto.js +5 -0
  92. package/dist/esm/models/components/codeinterpretercontainerauto.js.map +1 -1
  93. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts +6 -0
  94. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  95. package/dist/esm/models/components/codeinterpretertoolrequest.js +5 -0
  96. package/dist/esm/models/components/codeinterpretertoolrequest.js.map +1 -1
  97. package/dist/esm/models/components/index.d.ts +3 -0
  98. package/dist/esm/models/components/index.d.ts.map +1 -1
  99. package/dist/esm/models/components/index.js +3 -0
  100. package/dist/esm/models/components/index.js.map +1 -1
  101. package/dist/esm/models/components/livekittokenrequest.d.ts +6 -6
  102. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  103. package/dist/esm/models/components/livekittokenrequest.js +5 -5
  104. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  105. package/dist/esm/models/components/responsescreaterequest.d.ts +6 -6
  106. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  107. package/dist/esm/models/components/responsescreaterequest.js +5 -5
  108. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  109. package/dist/esm/models/components/sandboxsessionscope.d.ts +2 -2
  110. package/dist/esm/models/components/sandboxsessionscope.js +1 -1
  111. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  112. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  113. package/dist/esm/models/components/shellenvironmentcontainerauto.js +5 -0
  114. package/dist/esm/models/components/shellenvironmentcontainerauto.js.map +1 -1
  115. package/dist/esm/models/components/shelltoolrequest.d.ts +73 -0
  116. package/dist/esm/models/components/shelltoolrequest.d.ts.map +1 -0
  117. package/dist/esm/models/components/shelltoolrequest.js +87 -0
  118. package/dist/esm/models/components/shelltoolrequest.js.map +1 -0
  119. package/dist/esm/models/components/tooldefinition.d.ts +17 -17
  120. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  121. package/dist/esm/models/components/tooldefinition.js +21 -21
  122. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  123. package/dist/esm/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  124. package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
  125. package/dist/esm/sdk/models.d.ts +1 -1
  126. package/dist/esm/sdk/models.js +1 -1
  127. package/jsr.json +1 -1
  128. package/package.json +1 -1
  129. package/src/funcs/llmModelsCheckCatalogHealth.ts +1 -1
  130. package/src/lib/config.ts +2 -2
  131. package/src/mcp-server/mcp-server.ts +1 -1
  132. package/src/mcp-server/server.ts +1 -1
  133. package/src/mcp-server/tools/llmModelsCheckCatalogHealth.ts +1 -1
  134. package/src/models/components/agentssandboxsessionscope.ts +29 -0
  135. package/src/models/components/cataloghealth.ts +23 -0
  136. package/src/models/components/cataloghealthresponse.ts +20 -0
  137. package/src/models/components/cataloghealthstatus.ts +28 -0
  138. package/src/models/components/codeinterpretercontainerauto.ts +14 -0
  139. package/src/models/components/codeinterpretertoolrequest.ts +14 -0
  140. package/src/models/components/index.ts +3 -0
  141. package/src/models/components/livekittokenrequest.ts +14 -14
  142. package/src/models/components/responsescreaterequest.ts +14 -14
  143. package/src/models/components/sandboxsessionscope.ts +2 -2
  144. package/src/models/components/shellenvironmentcontainerauto.ts +14 -0
  145. package/src/models/components/shelltoolrequest.ts +219 -0
  146. package/src/models/components/tooldefinition.ts +58 -45
  147. package/src/react-query/llmModelsCheckCatalogHealth.ts +1 -1
  148. package/src/sdk/models.ts +1 -1
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Check a BYO catalog model's health
31
31
  *
32
32
  * @remarks
33
- * Probes an available BYO definition whether or not it is active.
33
+ * Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports `status: unknown`.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.23",
68
+ sdkVersion: "0.55.24",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.23 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.24 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.23",
22
+ currentVersion: "0.55.24",
23
23
  },
24
24
  });
25
25
 
@@ -515,7 +515,7 @@ export function createMCPServer(deps: {
515
515
  }) {
516
516
  const server = new McpServer({
517
517
  name: "SDK",
518
- version: "0.55.23",
518
+ version: "0.55.24",
519
519
  });
520
520
 
521
521
  const client = new SDKCore({
@@ -14,7 +14,7 @@ export const tool$llmModelsCheckCatalogHealth: ToolDefinition<typeof args> = {
14
14
  name: "llm-models-check-catalog-health",
15
15
  description: `Check a BYO catalog model's health
16
16
 
17
- Probes an available BYO definition whether or not it is active.`,
17
+ Probes an available BYO definition whether or not it is active. A definition without a health check has nothing to probe and reports \`status: unknown\`.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await llmModelsCheckCatalogHealth(
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
10
+ */
11
+ export const AgentsSandboxSessionScope = {
12
+ Conversation: "conversation",
13
+ Request: "request",
14
+ } as const;
15
+ /**
16
+ * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
17
+ */
18
+ export type AgentsSandboxSessionScope = ClosedEnum<
19
+ typeof AgentsSandboxSessionScope
20
+ >;
21
+
22
+ /** @internal */
23
+ export const AgentsSandboxSessionScope$inboundSchema: z.ZodNativeEnum<
24
+ typeof AgentsSandboxSessionScope
25
+ > = z.nativeEnum(AgentsSandboxSessionScope);
26
+ /** @internal */
27
+ export const AgentsSandboxSessionScope$outboundSchema: z.ZodNativeEnum<
28
+ typeof AgentsSandboxSessionScope
29
+ > = AgentsSandboxSessionScope$inboundSchema;
@@ -7,10 +7,30 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CatalogHealthStatus,
12
+ CatalogHealthStatus$inboundSchema,
13
+ CatalogHealthStatus$outboundSchema,
14
+ } from "./cataloghealthstatus.js";
10
15
 
11
16
  export type CatalogHealth = {
17
+ /**
18
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
19
+ */
20
+ status: CatalogHealthStatus;
21
+ /**
22
+ * Deprecated: read `status`. False only when `status` is `unavailable`, so it is also true when health is unknown.
23
+ *
24
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ */
12
26
  isAvailable: boolean;
27
+ /**
28
+ * Epoch ms when the verdict's probe started; null when there is no verdict.
29
+ */
13
30
  lastHealthCheck: number | null;
31
+ /**
32
+ * Why the verdict is unavailable; null when it is available or there is no verdict.
33
+ */
14
34
  error: string | null;
15
35
  };
16
36
 
@@ -20,6 +40,7 @@ export const CatalogHealth$inboundSchema: z.ZodType<
20
40
  z.ZodTypeDef,
21
41
  unknown
22
42
  > = z.object({
43
+ status: CatalogHealthStatus$inboundSchema,
23
44
  is_available: z.boolean(),
24
45
  last_health_check: z.nullable(z.number()),
25
46
  error: z.nullable(z.string()),
@@ -31,6 +52,7 @@ export const CatalogHealth$inboundSchema: z.ZodType<
31
52
  });
32
53
  /** @internal */
33
54
  export type CatalogHealth$Outbound = {
55
+ status: string;
34
56
  is_available: boolean;
35
57
  last_health_check: number | null;
36
58
  error: string | null;
@@ -42,6 +64,7 @@ export const CatalogHealth$outboundSchema: z.ZodType<
42
64
  z.ZodTypeDef,
43
65
  CatalogHealth
44
66
  > = z.object({
67
+ status: CatalogHealthStatus$outboundSchema,
45
68
  isAvailable: z.boolean(),
46
69
  lastHealthCheck: z.nullable(z.number()),
47
70
  error: z.nullable(z.string()),
@@ -7,10 +7,27 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CatalogHealthStatus,
12
+ CatalogHealthStatus$inboundSchema,
13
+ CatalogHealthStatus$outboundSchema,
14
+ } from "./cataloghealthstatus.js";
10
15
 
11
16
  export type CatalogHealthResponse = {
17
+ /**
18
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
19
+ */
20
+ status: CatalogHealthStatus;
21
+ /**
22
+ * Deprecated: read `status`. False only when `status` is `unavailable`, so it is also true when health is unknown.
23
+ *
24
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
25
+ */
12
26
  isAvailable: boolean;
13
27
  error?: string | undefined;
28
+ /**
29
+ * Epoch ms when the probe started. With `status` `unknown` no probe ran, and this is the response time.
30
+ */
14
31
  checkedAt: number;
15
32
  };
16
33
 
@@ -20,6 +37,7 @@ export const CatalogHealthResponse$inboundSchema: z.ZodType<
20
37
  z.ZodTypeDef,
21
38
  unknown
22
39
  > = z.object({
40
+ status: CatalogHealthStatus$inboundSchema,
23
41
  is_available: z.boolean(),
24
42
  error: z.string().optional(),
25
43
  checked_at: z.number(),
@@ -31,6 +49,7 @@ export const CatalogHealthResponse$inboundSchema: z.ZodType<
31
49
  });
32
50
  /** @internal */
33
51
  export type CatalogHealthResponse$Outbound = {
52
+ status: string;
34
53
  is_available: boolean;
35
54
  error?: string | undefined;
36
55
  checked_at: number;
@@ -42,6 +61,7 @@ export const CatalogHealthResponse$outboundSchema: z.ZodType<
42
61
  z.ZodTypeDef,
43
62
  CatalogHealthResponse
44
63
  > = z.object({
64
+ status: CatalogHealthStatus$outboundSchema,
45
65
  isAvailable: z.boolean(),
46
66
  error: z.string().optional(),
47
67
  checkedAt: z.number(),
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
10
+ */
11
+ export const CatalogHealthStatus = {
12
+ Available: "available",
13
+ Unavailable: "unavailable",
14
+ Unknown: "unknown",
15
+ } as const;
16
+ /**
17
+ * Provider health from the latest probe verdict: `available` or `unavailable`. `unknown` when there is no verdict: the definition has no health check, or its check has not run yet or its last verdict expired.
18
+ */
19
+ export type CatalogHealthStatus = ClosedEnum<typeof CatalogHealthStatus>;
20
+
21
+ /** @internal */
22
+ export const CatalogHealthStatus$inboundSchema: z.ZodNativeEnum<
23
+ typeof CatalogHealthStatus
24
+ > = z.nativeEnum(CatalogHealthStatus);
25
+ /** @internal */
26
+ export const CatalogHealthStatus$outboundSchema: z.ZodNativeEnum<
27
+ typeof CatalogHealthStatus
28
+ > = CatalogHealthStatus$inboundSchema;
@@ -8,6 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ SandboxSessionScope,
13
+ SandboxSessionScope$inboundSchema,
14
+ SandboxSessionScope$outboundSchema,
15
+ } from "./sandboxsessionscope.js";
11
16
 
12
17
  export const MemoryLimit = {
13
18
  FiveHundredAndTwelvem: "512m",
@@ -21,6 +26,10 @@ export type MemoryLimit = ClosedEnum<typeof MemoryLimit>;
21
26
 
22
27
  export type CodeInterpreterContainerAuto = {
23
28
  type: "auto";
29
+ /**
30
+ * Workspace lifetime. conversation (default) reuses the conversation or previous_response_id chain workspace; independent top-level responses start fresh. Delegated agents inherit their parent's workspace by default without inheriting its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance.
31
+ */
32
+ sessionScope?: SandboxSessionScope | undefined;
24
33
  fileIds?: Array<string> | null | undefined;
25
34
  /**
26
35
  * Guest memory cap. New requests support 512m, 1g, or 2g; larger legacy values remain readable only in historical responses.
@@ -42,10 +51,12 @@ export const CodeInterpreterContainerAuto$inboundSchema: z.ZodType<
42
51
  unknown
43
52
  > = z.object({
44
53
  type: z.literal("auto"),
54
+ session_scope: SandboxSessionScope$inboundSchema.optional(),
45
55
  file_ids: z.nullable(z.array(z.string())).optional(),
46
56
  memory_limit: z.nullable(MemoryLimit$inboundSchema).optional(),
47
57
  }).transform((v) => {
48
58
  return remap$(v, {
59
+ "session_scope": "sessionScope",
49
60
  "file_ids": "fileIds",
50
61
  "memory_limit": "memoryLimit",
51
62
  });
@@ -53,6 +64,7 @@ export const CodeInterpreterContainerAuto$inboundSchema: z.ZodType<
53
64
  /** @internal */
54
65
  export type CodeInterpreterContainerAuto$Outbound = {
55
66
  type: "auto";
67
+ session_scope?: string | undefined;
56
68
  file_ids?: Array<string> | null | undefined;
57
69
  memory_limit?: string | null | undefined;
58
70
  };
@@ -64,10 +76,12 @@ export const CodeInterpreterContainerAuto$outboundSchema: z.ZodType<
64
76
  CodeInterpreterContainerAuto
65
77
  > = z.object({
66
78
  type: z.literal("auto"),
79
+ sessionScope: SandboxSessionScope$outboundSchema.optional(),
67
80
  fileIds: z.nullable(z.array(z.string())).optional(),
68
81
  memoryLimit: z.nullable(MemoryLimit$outboundSchema).optional(),
69
82
  }).transform((v) => {
70
83
  return remap$(v, {
84
+ sessionScope: "session_scope",
71
85
  fileIds: "file_ids",
72
86
  memoryLimit: "memory_limit",
73
87
  });
@@ -8,6 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ SandboxSessionScope,
13
+ SandboxSessionScope$inboundSchema,
14
+ SandboxSessionScope$outboundSchema,
15
+ } from "./sandboxsessionscope.js";
11
16
 
12
17
  export const ContainerMemoryLimit = {
13
18
  FiveHundredAndTwelvem: "512m",
@@ -18,6 +23,10 @@ export type ContainerMemoryLimit = ClosedEnum<typeof ContainerMemoryLimit>;
18
23
 
19
24
  export type Container2 = {
20
25
  type: "auto";
26
+ /**
27
+ * Workspace lifetime. conversation (default) reuses the conversation or previous_response_id chain workspace; independent top-level responses start fresh. Delegated agents inherit their parent's workspace by default without inheriting its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance.
28
+ */
29
+ sessionScope?: SandboxSessionScope | undefined;
21
30
  fileIds?: Array<string> | null | undefined;
22
31
  /**
23
32
  * Hard guest cap: 512 MiB, 1 GiB, or 2 GiB. Omit for automatic sizing; an explicit cap never grows.
@@ -48,10 +57,12 @@ export const Container2$inboundSchema: z.ZodType<
48
57
  unknown
49
58
  > = z.object({
50
59
  type: z.literal("auto"),
60
+ session_scope: SandboxSessionScope$inboundSchema.optional(),
51
61
  file_ids: z.nullable(z.array(z.string())).optional(),
52
62
  memory_limit: z.nullable(ContainerMemoryLimit$inboundSchema).optional(),
53
63
  }).transform((v) => {
54
64
  return remap$(v, {
65
+ "session_scope": "sessionScope",
55
66
  "file_ids": "fileIds",
56
67
  "memory_limit": "memoryLimit",
57
68
  });
@@ -59,6 +70,7 @@ export const Container2$inboundSchema: z.ZodType<
59
70
  /** @internal */
60
71
  export type Container2$Outbound = {
61
72
  type: "auto";
73
+ session_scope?: string | undefined;
62
74
  file_ids?: Array<string> | null | undefined;
63
75
  memory_limit?: string | null | undefined;
64
76
  };
@@ -70,10 +82,12 @@ export const Container2$outboundSchema: z.ZodType<
70
82
  Container2
71
83
  > = z.object({
72
84
  type: z.literal("auto"),
85
+ sessionScope: SandboxSessionScope$outboundSchema.optional(),
73
86
  fileIds: z.nullable(z.array(z.string())).optional(),
74
87
  memoryLimit: z.nullable(ContainerMemoryLimit$outboundSchema).optional(),
75
88
  }).transform((v) => {
76
89
  return remap$(v, {
90
+ sessionScope: "session_scope",
77
91
  fileIds: "file_ids",
78
92
  memoryLimit: "memory_limit",
79
93
  });
@@ -25,6 +25,7 @@ export * from "./agentschedule.js";
25
25
  export * from "./agentschedulelist.js";
26
26
  export * from "./agentschedulespec.js";
27
27
  export * from "./agentsfunctiontooldefinition.js";
28
+ export * from "./agentssandboxsessionscope.js";
28
29
  export * from "./agenttextconfiguration.js";
29
30
  export * from "./agenttooldefinition.js";
30
31
  export * from "./agentversion.js";
@@ -68,6 +69,7 @@ export * from "./catalogactivationstate.js";
68
69
  export * from "./catalogentry.js";
69
70
  export * from "./cataloghealth.js";
70
71
  export * from "./cataloghealthresponse.js";
72
+ export * from "./cataloghealthstatus.js";
71
73
  export * from "./cataloglifecycle.js";
72
74
  export * from "./cataloglistresponse.js";
73
75
  export * from "./catalogpricepreview.js";
@@ -710,6 +712,7 @@ export * from "./shellenvironmentcontainerreference.js";
710
712
  export * from "./shellnetworkpolicy.js";
711
713
  export * from "./shellnetworkpolicydomainsecret.js";
712
714
  export * from "./shelltooldefinition.js";
715
+ export * from "./shelltoolrequest.js";
713
716
  export * from "./skill.js";
714
717
  export * from "./skillentry.js";
715
718
  export * from "./skilllist.js";
@@ -99,11 +99,11 @@ import {
99
99
  ReasoningConfiguration$outboundSchema,
100
100
  } from "./reasoningconfiguration.js";
101
101
  import {
102
- ShellToolDefinition,
103
- ShellToolDefinition$inboundSchema,
104
- ShellToolDefinition$Outbound,
105
- ShellToolDefinition$outboundSchema,
106
- } from "./shelltooldefinition.js";
102
+ ShellToolRequest,
103
+ ShellToolRequest$inboundSchema,
104
+ ShellToolRequest$Outbound,
105
+ ShellToolRequest$outboundSchema,
106
+ } from "./shelltoolrequest.js";
107
107
  import {
108
108
  SleepToolDefinition,
109
109
  SleepToolDefinition$inboundSchema,
@@ -154,7 +154,7 @@ export type LivekitTokenRequestTools =
154
154
  | MCPToolDefinition
155
155
  | ImageGenerationToolDefinition
156
156
  | LocalShellToolDefinition
157
- | ShellToolDefinition
157
+ | ShellToolRequest
158
158
  | WebSearchPreviewToolDefinition
159
159
  | HostedToolShorthandDefinition
160
160
  | SleepToolDefinition
@@ -226,7 +226,7 @@ export type Llm = {
226
226
  | MCPToolDefinition
227
227
  | ImageGenerationToolDefinition
228
228
  | LocalShellToolDefinition
229
- | ShellToolDefinition
229
+ | ShellToolRequest
230
230
  | WebSearchPreviewToolDefinition
231
231
  | HostedToolShorthandDefinition
232
232
  | SleepToolDefinition
@@ -279,7 +279,7 @@ export type Llm = {
279
279
  */
280
280
  serviceTier?: LivekitTokenRequestServiceTier | undefined;
281
281
  /**
282
- * Custom metadata to attach to this response as key-value pairs. Keys must be strings up to 64 characters, values must be strings up to 512 characters. Maximum 16 pairs. Useful for tracking, categorization, or passing custom identifiers through your system.
282
+ * Custom metadata to attach to this response as key-value pairs. Keys must be strings up to 64 characters, values must be strings up to 512 characters. Maximum 16 pairs, excluding invocation workspace linkage. Useful for tracking, categorization, or passing custom identifiers through your system.
283
283
  */
284
284
  metadata?: { [k: string]: string } | undefined;
285
285
  text?: TextConfiguration | undefined;
@@ -390,7 +390,7 @@ export const LivekitTokenRequestTools$inboundSchema: z.ZodType<
390
390
  MCPToolDefinition$inboundSchema,
391
391
  ImageGenerationToolDefinition$inboundSchema,
392
392
  LocalShellToolDefinition$inboundSchema,
393
- ShellToolDefinition$inboundSchema,
393
+ ShellToolRequest$inboundSchema,
394
394
  WebSearchPreviewToolDefinition$inboundSchema,
395
395
  HostedToolShorthandDefinition$inboundSchema,
396
396
  SleepToolDefinition$inboundSchema,
@@ -408,7 +408,7 @@ export type LivekitTokenRequestTools$Outbound =
408
408
  | MCPToolDefinition$Outbound
409
409
  | ImageGenerationToolDefinition$Outbound
410
410
  | LocalShellToolDefinition$Outbound
411
- | ShellToolDefinition$Outbound
411
+ | ShellToolRequest$Outbound
412
412
  | WebSearchPreviewToolDefinition$Outbound
413
413
  | HostedToolShorthandDefinition$Outbound
414
414
  | SleepToolDefinition$Outbound
@@ -430,7 +430,7 @@ export const LivekitTokenRequestTools$outboundSchema: z.ZodType<
430
430
  MCPToolDefinition$outboundSchema,
431
431
  ImageGenerationToolDefinition$outboundSchema,
432
432
  LocalShellToolDefinition$outboundSchema,
433
- ShellToolDefinition$outboundSchema,
433
+ ShellToolRequest$outboundSchema,
434
434
  WebSearchPreviewToolDefinition$outboundSchema,
435
435
  HostedToolShorthandDefinition$outboundSchema,
436
436
  SleepToolDefinition$outboundSchema,
@@ -493,7 +493,7 @@ export const Llm$inboundSchema: z.ZodType<Llm, z.ZodTypeDef, unknown> = z
493
493
  MCPToolDefinition$inboundSchema,
494
494
  ImageGenerationToolDefinition$inboundSchema,
495
495
  LocalShellToolDefinition$inboundSchema,
496
- ShellToolDefinition$inboundSchema,
496
+ ShellToolRequest$inboundSchema,
497
497
  WebSearchPreviewToolDefinition$inboundSchema,
498
498
  HostedToolShorthandDefinition$inboundSchema,
499
499
  SleepToolDefinition$inboundSchema,
@@ -548,7 +548,7 @@ export type Llm$Outbound = {
548
548
  | MCPToolDefinition$Outbound
549
549
  | ImageGenerationToolDefinition$Outbound
550
550
  | LocalShellToolDefinition$Outbound
551
- | ShellToolDefinition$Outbound
551
+ | ShellToolRequest$Outbound
552
552
  | WebSearchPreviewToolDefinition$Outbound
553
553
  | HostedToolShorthandDefinition$Outbound
554
554
  | SleepToolDefinition$Outbound
@@ -592,7 +592,7 @@ export const Llm$outboundSchema: z.ZodType<Llm$Outbound, z.ZodTypeDef, Llm> = z
592
592
  MCPToolDefinition$outboundSchema,
593
593
  ImageGenerationToolDefinition$outboundSchema,
594
594
  LocalShellToolDefinition$outboundSchema,
595
- ShellToolDefinition$outboundSchema,
595
+ ShellToolRequest$outboundSchema,
596
596
  WebSearchPreviewToolDefinition$outboundSchema,
597
597
  HostedToolShorthandDefinition$outboundSchema,
598
598
  SleepToolDefinition$outboundSchema,
@@ -105,11 +105,11 @@ import {
105
105
  ReasoningConfiguration$outboundSchema,
106
106
  } from "./reasoningconfiguration.js";
107
107
  import {
108
- ShellToolDefinition,
109
- ShellToolDefinition$inboundSchema,
110
- ShellToolDefinition$Outbound,
111
- ShellToolDefinition$outboundSchema,
112
- } from "./shelltooldefinition.js";
108
+ ShellToolRequest,
109
+ ShellToolRequest$inboundSchema,
110
+ ShellToolRequest$Outbound,
111
+ ShellToolRequest$outboundSchema,
112
+ } from "./shelltoolrequest.js";
113
113
  import {
114
114
  SleepToolDefinition,
115
115
  SleepToolDefinition$inboundSchema,
@@ -181,7 +181,7 @@ export type Tools =
181
181
  | MCPToolDefinition
182
182
  | ImageGenerationToolDefinition
183
183
  | LocalShellToolDefinition
184
- | ShellToolDefinition
184
+ | ShellToolRequest
185
185
  | WebSearchPreviewToolDefinition
186
186
  | HostedToolShorthandDefinition
187
187
  | SleepToolDefinition
@@ -341,7 +341,7 @@ export type ResponsesCreateRequest = {
341
341
  | MCPToolDefinition
342
342
  | ImageGenerationToolDefinition
343
343
  | LocalShellToolDefinition
344
- | ShellToolDefinition
344
+ | ShellToolRequest
345
345
  | WebSearchPreviewToolDefinition
346
346
  | HostedToolShorthandDefinition
347
347
  | SleepToolDefinition
@@ -442,7 +442,7 @@ export type ResponsesCreateRequest = {
442
442
  */
443
443
  safetyIdentifier?: string | undefined;
444
444
  /**
445
- * Custom metadata to attach to this response as key-value pairs. Keys must be strings up to 64 characters, values must be strings up to 512 characters. Maximum 16 pairs. Useful for tracking, categorization, or passing custom identifiers through your system.
445
+ * Custom metadata to attach to this response as key-value pairs. Keys must be strings up to 64 characters, values must be strings up to 512 characters. Maximum 16 pairs, excluding invocation workspace linkage. Useful for tracking, categorization, or passing custom identifiers through your system.
446
446
  */
447
447
  metadata?: { [k: string]: string } | undefined;
448
448
  /**
@@ -609,7 +609,7 @@ export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
609
609
  MCPToolDefinition$inboundSchema,
610
610
  ImageGenerationToolDefinition$inboundSchema,
611
611
  LocalShellToolDefinition$inboundSchema,
612
- ShellToolDefinition$inboundSchema,
612
+ ShellToolRequest$inboundSchema,
613
613
  WebSearchPreviewToolDefinition$inboundSchema,
614
614
  HostedToolShorthandDefinition$inboundSchema,
615
615
  SleepToolDefinition$inboundSchema,
@@ -627,7 +627,7 @@ export type Tools$Outbound =
627
627
  | MCPToolDefinition$Outbound
628
628
  | ImageGenerationToolDefinition$Outbound
629
629
  | LocalShellToolDefinition$Outbound
630
- | ShellToolDefinition$Outbound
630
+ | ShellToolRequest$Outbound
631
631
  | WebSearchPreviewToolDefinition$Outbound
632
632
  | HostedToolShorthandDefinition$Outbound
633
633
  | SleepToolDefinition$Outbound
@@ -649,7 +649,7 @@ export const Tools$outboundSchema: z.ZodType<
649
649
  MCPToolDefinition$outboundSchema,
650
650
  ImageGenerationToolDefinition$outboundSchema,
651
651
  LocalShellToolDefinition$outboundSchema,
652
- ShellToolDefinition$outboundSchema,
652
+ ShellToolRequest$outboundSchema,
653
653
  WebSearchPreviewToolDefinition$outboundSchema,
654
654
  HostedToolShorthandDefinition$outboundSchema,
655
655
  SleepToolDefinition$outboundSchema,
@@ -844,7 +844,7 @@ export const ResponsesCreateRequest$inboundSchema: z.ZodType<
844
844
  MCPToolDefinition$inboundSchema,
845
845
  ImageGenerationToolDefinition$inboundSchema,
846
846
  LocalShellToolDefinition$inboundSchema,
847
- ShellToolDefinition$inboundSchema,
847
+ ShellToolRequest$inboundSchema,
848
848
  WebSearchPreviewToolDefinition$inboundSchema,
849
849
  HostedToolShorthandDefinition$inboundSchema,
850
850
  SleepToolDefinition$inboundSchema,
@@ -943,7 +943,7 @@ export type ResponsesCreateRequest$Outbound = {
943
943
  | MCPToolDefinition$Outbound
944
944
  | ImageGenerationToolDefinition$Outbound
945
945
  | LocalShellToolDefinition$Outbound
946
- | ShellToolDefinition$Outbound
946
+ | ShellToolRequest$Outbound
947
947
  | WebSearchPreviewToolDefinition$Outbound
948
948
  | HostedToolShorthandDefinition$Outbound
949
949
  | SleepToolDefinition$Outbound
@@ -1017,7 +1017,7 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodType<
1017
1017
  MCPToolDefinition$outboundSchema,
1018
1018
  ImageGenerationToolDefinition$outboundSchema,
1019
1019
  LocalShellToolDefinition$outboundSchema,
1020
- ShellToolDefinition$outboundSchema,
1020
+ ShellToolRequest$outboundSchema,
1021
1021
  WebSearchPreviewToolDefinition$outboundSchema,
1022
1022
  HostedToolShorthandDefinition$outboundSchema,
1023
1023
  SleepToolDefinition$outboundSchema,
@@ -6,14 +6,14 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  /**
9
- * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
9
+ * Workspace lifetime. conversation (default) reuses the conversation or previous_response_id chain workspace; independent top-level responses start fresh. Delegated agents inherit their parent's workspace by default without inheriting its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance.
10
10
  */
11
11
  export const SandboxSessionScope = {
12
12
  Conversation: "conversation",
13
13
  Request: "request",
14
14
  } as const;
15
15
  /**
16
- * Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
16
+ * Workspace lifetime. conversation (default) reuses the conversation or previous_response_id chain workspace; independent top-level responses start fresh. Delegated agents inherit their parent's workspace by default without inheriting its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance.
17
17
  */
18
18
  export type SandboxSessionScope = ClosedEnum<typeof SandboxSessionScope>;
19
19
 
@@ -13,6 +13,11 @@ import {
13
13
  MemoryStoreMount$Outbound,
14
14
  MemoryStoreMount$outboundSchema,
15
15
  } from "./memorystoremount.js";
16
+ import {
17
+ SandboxSessionScope,
18
+ SandboxSessionScope$inboundSchema,
19
+ SandboxSessionScope$outboundSchema,
20
+ } from "./sandboxsessionscope.js";
16
21
  import {
17
22
  ShellNetworkPolicy,
18
23
  ShellNetworkPolicy$inboundSchema,
@@ -28,6 +33,10 @@ import {
28
33
 
29
34
  export type ShellEnvironmentContainerAuto = {
30
35
  type: "container_auto";
36
+ /**
37
+ * Workspace lifetime. conversation (default) reuses the conversation or previous_response_id chain workspace; independent top-level responses start fresh. Delegated agents inherit their parent's workspace by default without inheriting its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance.
38
+ */
39
+ sessionScope?: SandboxSessionScope | undefined;
31
40
  networkPolicy?: ShellNetworkPolicy | undefined;
32
41
  /**
33
42
  * Skills to inject into the container's /skills directory.
@@ -46,11 +55,13 @@ export const ShellEnvironmentContainerAuto$inboundSchema: z.ZodType<
46
55
  unknown
47
56
  > = z.object({
48
57
  type: z.literal("container_auto"),
58
+ session_scope: SandboxSessionScope$inboundSchema.optional(),
49
59
  network_policy: ShellNetworkPolicy$inboundSchema.optional(),
50
60
  skills: z.array(SkillEntry$inboundSchema).optional(),
51
61
  memory_stores: z.array(MemoryStoreMount$inboundSchema).optional(),
52
62
  }).transform((v) => {
53
63
  return remap$(v, {
64
+ "session_scope": "sessionScope",
54
65
  "network_policy": "networkPolicy",
55
66
  "memory_stores": "memoryStores",
56
67
  });
@@ -58,6 +69,7 @@ export const ShellEnvironmentContainerAuto$inboundSchema: z.ZodType<
58
69
  /** @internal */
59
70
  export type ShellEnvironmentContainerAuto$Outbound = {
60
71
  type: "container_auto";
72
+ session_scope?: string | undefined;
61
73
  network_policy?: ShellNetworkPolicy$Outbound | undefined;
62
74
  skills?: Array<SkillEntry$Outbound> | undefined;
63
75
  memory_stores?: Array<MemoryStoreMount$Outbound> | undefined;
@@ -70,11 +82,13 @@ export const ShellEnvironmentContainerAuto$outboundSchema: z.ZodType<
70
82
  ShellEnvironmentContainerAuto
71
83
  > = z.object({
72
84
  type: z.literal("container_auto"),
85
+ sessionScope: SandboxSessionScope$outboundSchema.optional(),
73
86
  networkPolicy: ShellNetworkPolicy$outboundSchema.optional(),
74
87
  skills: z.array(SkillEntry$outboundSchema).optional(),
75
88
  memoryStores: z.array(MemoryStoreMount$outboundSchema).optional(),
76
89
  }).transform((v) => {
77
90
  return remap$(v, {
91
+ sessionScope: "session_scope",
78
92
  networkPolicy: "network_policy",
79
93
  memoryStores: "memory_stores",
80
94
  });