@meetkai/mka1 0.55.23 → 0.55.25

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 (221) hide show
  1. package/bin/mcp-server.js +242 -87
  2. package/bin/mcp-server.js.map +32 -29
  3. package/dist/commonjs/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  4. package/dist/commonjs/funcs/agentRunsCancelAgentRun.js +1 -1
  5. package/dist/commonjs/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  6. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js +2 -2
  7. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js.map +1 -1
  8. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  9. package/dist/commonjs/funcs/llmModelsCheckCatalogHealth.js +1 -1
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.js +1 -1
  14. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  15. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  16. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  17. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  19. package/dist/commonjs/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  20. package/dist/commonjs/models/components/agent.d.ts +13 -0
  21. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/agent.js +17 -1
  23. package/dist/commonjs/models/components/agent.js.map +1 -1
  24. package/dist/commonjs/models/components/agentrun.d.ts +4 -3
  25. package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/agentrun.js +2 -1
  27. package/dist/commonjs/models/components/agentrun.js.map +1 -1
  28. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts +18 -0
  29. package/dist/commonjs/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  30. package/dist/commonjs/models/components/agentssandboxsessionscope.js +52 -0
  31. package/dist/commonjs/models/components/agentssandboxsessionscope.js.map +1 -0
  32. package/dist/commonjs/models/components/cataloghealth.d.ts +17 -0
  33. package/dist/commonjs/models/components/cataloghealth.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/cataloghealth.js +3 -0
  35. package/dist/commonjs/models/components/cataloghealth.js.map +1 -1
  36. package/dist/commonjs/models/components/cataloghealthresponse.d.ts +14 -0
  37. package/dist/commonjs/models/components/cataloghealthresponse.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/cataloghealthresponse.js +3 -0
  39. package/dist/commonjs/models/components/cataloghealthresponse.js.map +1 -1
  40. package/dist/commonjs/models/components/cataloghealthstatus.d.ts +19 -0
  41. package/dist/commonjs/models/components/cataloghealthstatus.d.ts.map +1 -0
  42. package/dist/commonjs/models/components/cataloghealthstatus.js +53 -0
  43. package/dist/commonjs/models/components/cataloghealthstatus.js.map +1 -0
  44. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts +6 -0
  45. package/dist/commonjs/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/codeinterpretercontainerauto.js +5 -0
  47. package/dist/commonjs/models/components/codeinterpretercontainerauto.js.map +1 -1
  48. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts +6 -0
  49. package/dist/commonjs/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/codeinterpretertoolrequest.js +5 -0
  51. package/dist/commonjs/models/components/codeinterpretertoolrequest.js.map +1 -1
  52. package/dist/commonjs/models/components/createagentrequest.d.ts +26 -0
  53. package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/createagentrequest.js +22 -1
  55. package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
  56. package/dist/commonjs/models/components/index.d.ts +3 -0
  57. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/index.js +3 -0
  59. package/dist/commonjs/models/components/index.js.map +1 -1
  60. package/dist/commonjs/models/components/livekittokenrequest.d.ts +6 -6
  61. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/livekittokenrequest.js +5 -5
  63. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  64. package/dist/commonjs/models/components/responsescreaterequest.d.ts +6 -6
  65. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/responsescreaterequest.js +5 -5
  67. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  68. package/dist/commonjs/models/components/sandboxsessionscope.d.ts +2 -2
  69. package/dist/commonjs/models/components/sandboxsessionscope.js +1 -1
  70. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  71. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js +5 -0
  73. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js.map +1 -1
  74. package/dist/commonjs/models/components/shelltoolrequest.d.ts +73 -0
  75. package/dist/commonjs/models/components/shelltoolrequest.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/shelltoolrequest.js +129 -0
  77. package/dist/commonjs/models/components/shelltoolrequest.js.map +1 -0
  78. package/dist/commonjs/models/components/tooldefinition.d.ts +17 -17
  79. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/tooldefinition.js +26 -26
  81. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  82. package/dist/commonjs/models/components/updateagentrequest.d.ts +26 -0
  83. package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/updateagentrequest.js +22 -1
  85. package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
  86. package/dist/commonjs/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  87. package/dist/commonjs/react-query/agentRunsCancelAgentRun.js +1 -1
  88. package/dist/commonjs/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  89. package/dist/commonjs/react-query/agentRunsCreateAgentRun.js +1 -1
  90. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  91. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
  92. package/dist/commonjs/sdk/agentruns.d.ts +2 -2
  93. package/dist/commonjs/sdk/agentruns.js +2 -2
  94. package/dist/commonjs/sdk/models.d.ts +1 -1
  95. package/dist/commonjs/sdk/models.js +1 -1
  96. package/dist/esm/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  97. package/dist/esm/funcs/agentRunsCancelAgentRun.js +1 -1
  98. package/dist/esm/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  99. package/dist/esm/funcs/agentRunsCreateAgentRun.js +2 -2
  100. package/dist/esm/funcs/agentRunsCreateAgentRun.js.map +1 -1
  101. package/dist/esm/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  102. package/dist/esm/funcs/llmModelsCheckCatalogHealth.js +1 -1
  103. package/dist/esm/lib/config.d.ts +2 -2
  104. package/dist/esm/lib/config.js +2 -2
  105. package/dist/esm/mcp-server/mcp-server.js +1 -1
  106. package/dist/esm/mcp-server/server.js +1 -1
  107. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  108. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  109. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  110. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  111. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  112. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  113. package/dist/esm/models/components/agent.d.ts +13 -0
  114. package/dist/esm/models/components/agent.d.ts.map +1 -1
  115. package/dist/esm/models/components/agent.js +16 -0
  116. package/dist/esm/models/components/agent.js.map +1 -1
  117. package/dist/esm/models/components/agentrun.d.ts +4 -3
  118. package/dist/esm/models/components/agentrun.d.ts.map +1 -1
  119. package/dist/esm/models/components/agentrun.js +2 -1
  120. package/dist/esm/models/components/agentrun.js.map +1 -1
  121. package/dist/esm/models/components/agentssandboxsessionscope.d.ts +18 -0
  122. package/dist/esm/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  123. package/dist/esm/models/components/agentssandboxsessionscope.js +16 -0
  124. package/dist/esm/models/components/agentssandboxsessionscope.js.map +1 -0
  125. package/dist/esm/models/components/cataloghealth.d.ts +17 -0
  126. package/dist/esm/models/components/cataloghealth.d.ts.map +1 -1
  127. package/dist/esm/models/components/cataloghealth.js +3 -0
  128. package/dist/esm/models/components/cataloghealth.js.map +1 -1
  129. package/dist/esm/models/components/cataloghealthresponse.d.ts +14 -0
  130. package/dist/esm/models/components/cataloghealthresponse.d.ts.map +1 -1
  131. package/dist/esm/models/components/cataloghealthresponse.js +3 -0
  132. package/dist/esm/models/components/cataloghealthresponse.js.map +1 -1
  133. package/dist/esm/models/components/cataloghealthstatus.d.ts +19 -0
  134. package/dist/esm/models/components/cataloghealthstatus.d.ts.map +1 -0
  135. package/dist/esm/models/components/cataloghealthstatus.js +17 -0
  136. package/dist/esm/models/components/cataloghealthstatus.js.map +1 -0
  137. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts +6 -0
  138. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  139. package/dist/esm/models/components/codeinterpretercontainerauto.js +5 -0
  140. package/dist/esm/models/components/codeinterpretercontainerauto.js.map +1 -1
  141. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts +6 -0
  142. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  143. package/dist/esm/models/components/codeinterpretertoolrequest.js +5 -0
  144. package/dist/esm/models/components/codeinterpretertoolrequest.js.map +1 -1
  145. package/dist/esm/models/components/createagentrequest.d.ts +26 -0
  146. package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
  147. package/dist/esm/models/components/createagentrequest.js +21 -0
  148. package/dist/esm/models/components/createagentrequest.js.map +1 -1
  149. package/dist/esm/models/components/index.d.ts +3 -0
  150. package/dist/esm/models/components/index.d.ts.map +1 -1
  151. package/dist/esm/models/components/index.js +3 -0
  152. package/dist/esm/models/components/index.js.map +1 -1
  153. package/dist/esm/models/components/livekittokenrequest.d.ts +6 -6
  154. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  155. package/dist/esm/models/components/livekittokenrequest.js +5 -5
  156. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  157. package/dist/esm/models/components/responsescreaterequest.d.ts +6 -6
  158. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  159. package/dist/esm/models/components/responsescreaterequest.js +5 -5
  160. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  161. package/dist/esm/models/components/sandboxsessionscope.d.ts +2 -2
  162. package/dist/esm/models/components/sandboxsessionscope.js +1 -1
  163. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  164. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  165. package/dist/esm/models/components/shellenvironmentcontainerauto.js +5 -0
  166. package/dist/esm/models/components/shellenvironmentcontainerauto.js.map +1 -1
  167. package/dist/esm/models/components/shelltoolrequest.d.ts +73 -0
  168. package/dist/esm/models/components/shelltoolrequest.d.ts.map +1 -0
  169. package/dist/esm/models/components/shelltoolrequest.js +87 -0
  170. package/dist/esm/models/components/shelltoolrequest.js.map +1 -0
  171. package/dist/esm/models/components/tooldefinition.d.ts +17 -17
  172. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  173. package/dist/esm/models/components/tooldefinition.js +21 -21
  174. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  175. package/dist/esm/models/components/updateagentrequest.d.ts +26 -0
  176. package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
  177. package/dist/esm/models/components/updateagentrequest.js +21 -0
  178. package/dist/esm/models/components/updateagentrequest.js.map +1 -1
  179. package/dist/esm/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  180. package/dist/esm/react-query/agentRunsCancelAgentRun.js +1 -1
  181. package/dist/esm/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  182. package/dist/esm/react-query/agentRunsCreateAgentRun.js +1 -1
  183. package/dist/esm/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  184. package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
  185. package/dist/esm/sdk/agentruns.d.ts +2 -2
  186. package/dist/esm/sdk/agentruns.js +2 -2
  187. package/dist/esm/sdk/models.d.ts +1 -1
  188. package/dist/esm/sdk/models.js +1 -1
  189. package/jsr.json +1 -1
  190. package/package.json +1 -1
  191. package/src/funcs/agentRunsCancelAgentRun.ts +1 -1
  192. package/src/funcs/agentRunsCreateAgentRun.ts +4 -4
  193. package/src/funcs/llmModelsCheckCatalogHealth.ts +1 -1
  194. package/src/lib/config.ts +2 -2
  195. package/src/mcp-server/mcp-server.ts +1 -1
  196. package/src/mcp-server/server.ts +1 -1
  197. package/src/mcp-server/tools/agentRunsCancelAgentRun.ts +1 -1
  198. package/src/mcp-server/tools/agentRunsCreateAgentRun.ts +1 -1
  199. package/src/mcp-server/tools/llmModelsCheckCatalogHealth.ts +1 -1
  200. package/src/models/components/agent.ts +27 -0
  201. package/src/models/components/agentrun.ts +4 -3
  202. package/src/models/components/agentssandboxsessionscope.ts +29 -0
  203. package/src/models/components/cataloghealth.ts +23 -0
  204. package/src/models/components/cataloghealthresponse.ts +20 -0
  205. package/src/models/components/cataloghealthstatus.ts +28 -0
  206. package/src/models/components/codeinterpretercontainerauto.ts +14 -0
  207. package/src/models/components/codeinterpretertoolrequest.ts +14 -0
  208. package/src/models/components/createagentrequest.ts +45 -0
  209. package/src/models/components/index.ts +3 -0
  210. package/src/models/components/livekittokenrequest.ts +14 -14
  211. package/src/models/components/responsescreaterequest.ts +14 -14
  212. package/src/models/components/sandboxsessionscope.ts +2 -2
  213. package/src/models/components/shellenvironmentcontainerauto.ts +14 -0
  214. package/src/models/components/shelltoolrequest.ts +219 -0
  215. package/src/models/components/tooldefinition.ts +58 -45
  216. package/src/models/components/updateagentrequest.ts +45 -0
  217. package/src/react-query/agentRunsCancelAgentRun.ts +1 -1
  218. package/src/react-query/agentRunsCreateAgentRun.ts +1 -1
  219. package/src/react-query/llmModelsCheckCatalogHealth.ts +1 -1
  220. package/src/sdk/agentruns.ts +2 -2
  221. package/src/sdk/models.ts +1 -1
@@ -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
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -26,6 +27,20 @@ import {
26
27
  ToolDefinition$outboundSchema,
27
28
  } from "./tooldefinition.js";
28
29
 
30
+ /**
31
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
32
+ */
33
+ export const CreateAgentRequestConcurrencyOverflow = {
34
+ Reject: "reject",
35
+ Queue: "queue",
36
+ } as const;
37
+ /**
38
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
39
+ */
40
+ export type CreateAgentRequestConcurrencyOverflow = ClosedEnum<
41
+ typeof CreateAgentRequestConcurrencyOverflow
42
+ >;
43
+
29
44
  export type CreateAgentRequest = {
30
45
  name: string;
31
46
  description?: string | null | undefined;
@@ -42,11 +57,29 @@ export type CreateAgentRequest = {
42
57
  * Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
43
58
  */
44
59
  fallbackModels?: Array<string> | undefined;
60
+ /**
61
+ * Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
62
+ */
63
+ maxConcurrentRuns?: number | null | undefined;
64
+ /**
65
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
66
+ */
67
+ concurrencyOverflow?: CreateAgentRequestConcurrencyOverflow | undefined;
45
68
  text?: AgentTextConfiguration | null | undefined;
46
69
  reasoning?: AgentReasoningConfiguration | null | undefined;
47
70
  metadata?: { [k: string]: string } | undefined;
48
71
  };
49
72
 
73
+ /** @internal */
74
+ export const CreateAgentRequestConcurrencyOverflow$inboundSchema:
75
+ z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> = z.nativeEnum(
76
+ CreateAgentRequestConcurrencyOverflow,
77
+ );
78
+ /** @internal */
79
+ export const CreateAgentRequestConcurrencyOverflow$outboundSchema:
80
+ z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> =
81
+ CreateAgentRequestConcurrencyOverflow$inboundSchema;
82
+
50
83
  /** @internal */
51
84
  export const CreateAgentRequest$inboundSchema: z.ZodType<
52
85
  CreateAgentRequest,
@@ -62,6 +95,9 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
62
95
  parallel_tool_calls: z.boolean().default(true),
63
96
  max_tool_calls: z.nullable(z.number().int()).optional(),
64
97
  fallback_models: z.array(z.string()).optional(),
98
+ max_concurrent_runs: z.nullable(z.number().int()).optional(),
99
+ concurrency_overflow: CreateAgentRequestConcurrencyOverflow$inboundSchema
100
+ .optional(),
65
101
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
66
102
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
67
103
  metadata: z.record(z.string()).optional(),
@@ -71,6 +107,8 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
71
107
  "parallel_tool_calls": "parallelToolCalls",
72
108
  "max_tool_calls": "maxToolCalls",
73
109
  "fallback_models": "fallbackModels",
110
+ "max_concurrent_runs": "maxConcurrentRuns",
111
+ "concurrency_overflow": "concurrencyOverflow",
74
112
  });
75
113
  });
76
114
  /** @internal */
@@ -84,6 +122,8 @@ export type CreateAgentRequest$Outbound = {
84
122
  parallel_tool_calls: boolean;
85
123
  max_tool_calls?: number | null | undefined;
86
124
  fallback_models?: Array<string> | undefined;
125
+ max_concurrent_runs?: number | null | undefined;
126
+ concurrency_overflow?: string | undefined;
87
127
  text?: AgentTextConfiguration$Outbound | null | undefined;
88
128
  reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
89
129
  metadata?: { [k: string]: string } | undefined;
@@ -104,6 +144,9 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
104
144
  parallelToolCalls: z.boolean().default(true),
105
145
  maxToolCalls: z.nullable(z.number().int()).optional(),
106
146
  fallbackModels: z.array(z.string()).optional(),
147
+ maxConcurrentRuns: z.nullable(z.number().int()).optional(),
148
+ concurrencyOverflow: CreateAgentRequestConcurrencyOverflow$outboundSchema
149
+ .optional(),
107
150
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
108
151
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
109
152
  metadata: z.record(z.string()).optional(),
@@ -113,6 +156,8 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
113
156
  parallelToolCalls: "parallel_tool_calls",
114
157
  maxToolCalls: "max_tool_calls",
115
158
  fallbackModels: "fallback_models",
159
+ maxConcurrentRuns: "max_concurrent_runs",
160
+ concurrencyOverflow: "concurrency_overflow",
116
161
  });
117
162
  });
118
163
 
@@ -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
  });