@meetkai/mka1 0.55.22 → 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 (152) hide show
  1. package/bin/mcp-server.js +275 -83
  2. package/bin/mcp-server.js.map +24 -20
  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 +4 -0
  36. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/index.js +4 -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 +18 -0
  48. package/dist/commonjs/models/components/sandboxsessionscope.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/sandboxsessionscope.js +52 -0
  50. package/dist/commonjs/models/components/sandboxsessionscope.js.map +1 -0
  51. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  52. package/dist/commonjs/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js +5 -0
  54. package/dist/commonjs/models/components/shellenvironmentcontainerauto.js.map +1 -1
  55. package/dist/commonjs/models/components/shelltoolrequest.d.ts +73 -0
  56. package/dist/commonjs/models/components/shelltoolrequest.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/shelltoolrequest.js +129 -0
  58. package/dist/commonjs/models/components/shelltoolrequest.js.map +1 -0
  59. package/dist/commonjs/models/components/tooldefinition.d.ts +108 -30
  60. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/tooldefinition.js +155 -47
  62. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  63. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  64. package/dist/commonjs/react-query/llmModelsCheckCatalogHealth.js +1 -1
  65. package/dist/commonjs/sdk/models.d.ts +1 -1
  66. package/dist/commonjs/sdk/models.js +1 -1
  67. package/dist/esm/funcs/llmModelsCheckCatalogHealth.d.ts +1 -1
  68. package/dist/esm/funcs/llmModelsCheckCatalogHealth.js +1 -1
  69. package/dist/esm/lib/config.d.ts +2 -2
  70. package/dist/esm/lib/config.js +2 -2
  71. package/dist/esm/mcp-server/mcp-server.js +1 -1
  72. package/dist/esm/mcp-server/server.js +1 -1
  73. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js +1 -1
  74. package/dist/esm/mcp-server/tools/llmModelsCheckCatalogHealth.js.map +1 -1
  75. package/dist/esm/models/components/agentssandboxsessionscope.d.ts +18 -0
  76. package/dist/esm/models/components/agentssandboxsessionscope.d.ts.map +1 -0
  77. package/dist/esm/models/components/agentssandboxsessionscope.js +16 -0
  78. package/dist/esm/models/components/agentssandboxsessionscope.js.map +1 -0
  79. package/dist/esm/models/components/cataloghealth.d.ts +17 -0
  80. package/dist/esm/models/components/cataloghealth.d.ts.map +1 -1
  81. package/dist/esm/models/components/cataloghealth.js +3 -0
  82. package/dist/esm/models/components/cataloghealth.js.map +1 -1
  83. package/dist/esm/models/components/cataloghealthresponse.d.ts +14 -0
  84. package/dist/esm/models/components/cataloghealthresponse.d.ts.map +1 -1
  85. package/dist/esm/models/components/cataloghealthresponse.js +3 -0
  86. package/dist/esm/models/components/cataloghealthresponse.js.map +1 -1
  87. package/dist/esm/models/components/cataloghealthstatus.d.ts +19 -0
  88. package/dist/esm/models/components/cataloghealthstatus.d.ts.map +1 -0
  89. package/dist/esm/models/components/cataloghealthstatus.js +17 -0
  90. package/dist/esm/models/components/cataloghealthstatus.js.map +1 -0
  91. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts +6 -0
  92. package/dist/esm/models/components/codeinterpretercontainerauto.d.ts.map +1 -1
  93. package/dist/esm/models/components/codeinterpretercontainerauto.js +5 -0
  94. package/dist/esm/models/components/codeinterpretercontainerauto.js.map +1 -1
  95. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts +6 -0
  96. package/dist/esm/models/components/codeinterpretertoolrequest.d.ts.map +1 -1
  97. package/dist/esm/models/components/codeinterpretertoolrequest.js +5 -0
  98. package/dist/esm/models/components/codeinterpretertoolrequest.js.map +1 -1
  99. package/dist/esm/models/components/index.d.ts +4 -0
  100. package/dist/esm/models/components/index.d.ts.map +1 -1
  101. package/dist/esm/models/components/index.js +4 -0
  102. package/dist/esm/models/components/index.js.map +1 -1
  103. package/dist/esm/models/components/livekittokenrequest.d.ts +6 -6
  104. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  105. package/dist/esm/models/components/livekittokenrequest.js +5 -5
  106. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  107. package/dist/esm/models/components/responsescreaterequest.d.ts +6 -6
  108. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  109. package/dist/esm/models/components/responsescreaterequest.js +5 -5
  110. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  111. package/dist/esm/models/components/sandboxsessionscope.d.ts +18 -0
  112. package/dist/esm/models/components/sandboxsessionscope.d.ts.map +1 -0
  113. package/dist/esm/models/components/sandboxsessionscope.js +16 -0
  114. package/dist/esm/models/components/sandboxsessionscope.js.map +1 -0
  115. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts +6 -0
  116. package/dist/esm/models/components/shellenvironmentcontainerauto.d.ts.map +1 -1
  117. package/dist/esm/models/components/shellenvironmentcontainerauto.js +5 -0
  118. package/dist/esm/models/components/shellenvironmentcontainerauto.js.map +1 -1
  119. package/dist/esm/models/components/shelltoolrequest.d.ts +73 -0
  120. package/dist/esm/models/components/shelltoolrequest.d.ts.map +1 -0
  121. package/dist/esm/models/components/shelltoolrequest.js +87 -0
  122. package/dist/esm/models/components/shelltoolrequest.js.map +1 -0
  123. package/dist/esm/models/components/tooldefinition.d.ts +108 -30
  124. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  125. package/dist/esm/models/components/tooldefinition.js +142 -41
  126. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  127. package/dist/esm/react-query/llmModelsCheckCatalogHealth.d.ts +1 -1
  128. package/dist/esm/react-query/llmModelsCheckCatalogHealth.js +1 -1
  129. package/dist/esm/sdk/models.d.ts +1 -1
  130. package/dist/esm/sdk/models.js +1 -1
  131. package/jsr.json +1 -1
  132. package/package.json +1 -1
  133. package/src/funcs/llmModelsCheckCatalogHealth.ts +1 -1
  134. package/src/lib/config.ts +2 -2
  135. package/src/mcp-server/mcp-server.ts +1 -1
  136. package/src/mcp-server/server.ts +1 -1
  137. package/src/mcp-server/tools/llmModelsCheckCatalogHealth.ts +1 -1
  138. package/src/models/components/agentssandboxsessionscope.ts +29 -0
  139. package/src/models/components/cataloghealth.ts +23 -0
  140. package/src/models/components/cataloghealthresponse.ts +20 -0
  141. package/src/models/components/cataloghealthstatus.ts +28 -0
  142. package/src/models/components/codeinterpretercontainerauto.ts +14 -0
  143. package/src/models/components/codeinterpretertoolrequest.ts +14 -0
  144. package/src/models/components/index.ts +4 -0
  145. package/src/models/components/livekittokenrequest.ts +14 -14
  146. package/src/models/components/responsescreaterequest.ts +14 -14
  147. package/src/models/components/sandboxsessionscope.ts +27 -0
  148. package/src/models/components/shellenvironmentcontainerauto.ts +14 -0
  149. package/src/models/components/shelltoolrequest.ts +219 -0
  150. package/src/models/components/tooldefinition.ts +315 -83
  151. package/src/react-query/llmModelsCheckCatalogHealth.ts +1 -1
  152. package/src/sdk/models.ts +1 -1
@@ -10,6 +10,11 @@ import { discriminatedUnion } from "../../types/discriminatedUnion.js";
10
10
  import { ClosedEnum } from "../../types/enums.js";
11
11
  import { Result as SafeParseResult } from "../../types/fp.js";
12
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+ import {
14
+ AgentsSandboxSessionScope,
15
+ AgentsSandboxSessionScope$inboundSchema,
16
+ AgentsSandboxSessionScope$outboundSchema,
17
+ } from "./agentssandboxsessionscope.js";
13
18
  import {
14
19
  FileSearchComparisonFilter,
15
20
  FileSearchComparisonFilter$inboundSchema,
@@ -35,10 +40,10 @@ import {
35
40
  MCPToolFilter$outboundSchema,
36
41
  } from "./mcptoolfilter.js";
37
42
 
38
- export const ToolDefinition9Type = {
43
+ export const ToolDefinition10Type = {
39
44
  Shell: "shell",
40
45
  } as const;
41
- export type ToolDefinition9Type = ClosedEnum<typeof ToolDefinition9Type>;
46
+ export type ToolDefinition10Type = ClosedEnum<typeof ToolDefinition10Type>;
42
47
 
43
48
  export const ToolDefinitionEnvironmentAccess = {
44
49
  ReadOnly: "read_only",
@@ -56,7 +61,7 @@ export type EnvironmentMemoryStores = {
56
61
  instructions?: string | undefined;
57
62
  };
58
63
 
59
- export type Environment2 = {
64
+ export type ToolDefinitionEnvironment2 = {
60
65
  type: "container_reference";
61
66
  containerId: string;
62
67
  /**
@@ -83,6 +88,10 @@ export type MemoryStores = {
83
88
 
84
89
  export type Environment1 = {
85
90
  type: "container_auto";
91
+ /**
92
+ * 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.
93
+ */
94
+ sessionScope?: AgentsSandboxSessionScope | undefined;
86
95
  /**
87
96
  * Arbitrary JSON value.
88
97
  */
@@ -91,42 +100,78 @@ export type Environment1 = {
91
100
  memoryStores?: Array<MemoryStores> | undefined;
92
101
  };
93
102
 
94
- export type Environment =
103
+ export type ToolDefinitionEnvironment =
95
104
  | Environment1
96
- | Environment2
105
+ | ToolDefinitionEnvironment2
97
106
  | discriminatedUnionTypes.Unknown<"type">;
98
107
 
99
- export type Nine = {
100
- type: ToolDefinition9Type;
108
+ export type Ten = {
109
+ type: ToolDefinition10Type;
101
110
  environment?:
102
111
  | Environment1
103
- | Environment2
112
+ | ToolDefinitionEnvironment2
104
113
  | discriminatedUnionTypes.Unknown<"type">
105
114
  | undefined;
106
115
  };
107
116
 
108
- export const ToolDefinition8Type = {
117
+ export const ToolDefinition9Type = {
109
118
  Agent: "agent",
110
119
  } as const;
111
- export type ToolDefinition8Type = ClosedEnum<typeof ToolDefinition8Type>;
120
+ export type ToolDefinition9Type = ClosedEnum<typeof ToolDefinition9Type>;
112
121
 
113
122
  /**
114
123
  * Another saved agent of the same team, called as a tool. mkllm-gateway starts a run of that agent and returns its answer.
115
124
  */
116
- export type Eight = {
117
- type: ToolDefinition8Type;
125
+ export type Nine = {
126
+ type: ToolDefinition9Type;
118
127
  agentId: string;
119
128
  name?: string | undefined;
120
129
  description?: string | undefined;
121
130
  };
122
131
 
123
- export const ToolDefinition7Type = {
132
+ export const ToolDefinition8Type = {
124
133
  Sleep: "sleep",
125
134
  } as const;
135
+ export type ToolDefinition8Type = ClosedEnum<typeof ToolDefinition8Type>;
136
+
137
+ export type Eight = {
138
+ type: ToolDefinition8Type;
139
+ };
140
+
141
+ export const ToolDefinition7Type = {
142
+ CodeInterpreter: "code_interpreter",
143
+ } as const;
126
144
  export type ToolDefinition7Type = ClosedEnum<typeof ToolDefinition7Type>;
127
145
 
146
+ export const ContainerType = {
147
+ Auto: "auto",
148
+ } as const;
149
+ export type ContainerType = ClosedEnum<typeof ContainerType>;
150
+
151
+ export const ToolDefinitionContainerMemoryLimit = {
152
+ FiveHundredAndTwelvem: "512m",
153
+ Oneg: "1g",
154
+ Twog: "2g",
155
+ } as const;
156
+ export type ToolDefinitionContainerMemoryLimit = ClosedEnum<
157
+ typeof ToolDefinitionContainerMemoryLimit
158
+ >;
159
+
160
+ export type ToolDefinitionContainer2 = {
161
+ type: ContainerType;
162
+ /**
163
+ * 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.
164
+ */
165
+ sessionScope?: AgentsSandboxSessionScope | undefined;
166
+ fileIds?: Array<string> | null | undefined;
167
+ memoryLimit?: ToolDefinitionContainerMemoryLimit | null | undefined;
168
+ };
169
+
170
+ export type ToolDefinitionContainer = ToolDefinitionContainer2 | string;
171
+
128
172
  export type Seven = {
129
173
  type: ToolDefinition7Type;
174
+ container: ToolDefinitionContainer2 | string;
130
175
  };
131
176
 
132
177
  export const ToolDefinition6Type = {
@@ -314,22 +359,23 @@ export type ToolDefinition =
314
359
  | ToolDefinition3
315
360
  | FunctionToolReference
316
361
  | ToolDefinition5
317
- | Eight
318
- | ToolDefinition2
319
- | ToolDefinition6
320
362
  | Seven
321
363
  | Nine
364
+ | ToolDefinition2
365
+ | ToolDefinition6
366
+ | Eight
367
+ | Ten
322
368
  | Four1
323
369
  | Four2;
324
370
 
325
371
  /** @internal */
326
- export const ToolDefinition9Type$inboundSchema: z.ZodNativeEnum<
327
- typeof ToolDefinition9Type
328
- > = z.nativeEnum(ToolDefinition9Type);
372
+ export const ToolDefinition10Type$inboundSchema: z.ZodNativeEnum<
373
+ typeof ToolDefinition10Type
374
+ > = z.nativeEnum(ToolDefinition10Type);
329
375
  /** @internal */
330
- export const ToolDefinition9Type$outboundSchema: z.ZodNativeEnum<
331
- typeof ToolDefinition9Type
332
- > = ToolDefinition9Type$inboundSchema;
376
+ export const ToolDefinition10Type$outboundSchema: z.ZodNativeEnum<
377
+ typeof ToolDefinition10Type
378
+ > = ToolDefinition10Type$inboundSchema;
333
379
 
334
380
  /** @internal */
335
381
  export const ToolDefinitionEnvironmentAccess$inboundSchema: z.ZodNativeEnum<
@@ -400,8 +446,8 @@ export function environmentMemoryStoresFromJSON(
400
446
  }
401
447
 
402
448
  /** @internal */
403
- export const Environment2$inboundSchema: z.ZodType<
404
- Environment2,
449
+ export const ToolDefinitionEnvironment2$inboundSchema: z.ZodType<
450
+ ToolDefinitionEnvironment2,
405
451
  z.ZodTypeDef,
406
452
  unknown
407
453
  > = z.object({
@@ -419,7 +465,7 @@ export const Environment2$inboundSchema: z.ZodType<
419
465
  });
420
466
  });
421
467
  /** @internal */
422
- export type Environment2$Outbound = {
468
+ export type ToolDefinitionEnvironment2$Outbound = {
423
469
  type: "container_reference";
424
470
  container_id: string;
425
471
  network_policy?: any | undefined;
@@ -428,10 +474,10 @@ export type Environment2$Outbound = {
428
474
  };
429
475
 
430
476
  /** @internal */
431
- export const Environment2$outboundSchema: z.ZodType<
432
- Environment2$Outbound,
477
+ export const ToolDefinitionEnvironment2$outboundSchema: z.ZodType<
478
+ ToolDefinitionEnvironment2$Outbound,
433
479
  z.ZodTypeDef,
434
- Environment2
480
+ ToolDefinitionEnvironment2
435
481
  > = z.object({
436
482
  type: z.literal("container_reference"),
437
483
  containerId: z.string(),
@@ -447,16 +493,20 @@ export const Environment2$outboundSchema: z.ZodType<
447
493
  });
448
494
  });
449
495
 
450
- export function environment2ToJSON(environment2: Environment2): string {
451
- return JSON.stringify(Environment2$outboundSchema.parse(environment2));
496
+ export function toolDefinitionEnvironment2ToJSON(
497
+ toolDefinitionEnvironment2: ToolDefinitionEnvironment2,
498
+ ): string {
499
+ return JSON.stringify(
500
+ ToolDefinitionEnvironment2$outboundSchema.parse(toolDefinitionEnvironment2),
501
+ );
452
502
  }
453
- export function environment2FromJSON(
503
+ export function toolDefinitionEnvironment2FromJSON(
454
504
  jsonString: string,
455
- ): SafeParseResult<Environment2, SDKValidationError> {
505
+ ): SafeParseResult<ToolDefinitionEnvironment2, SDKValidationError> {
456
506
  return safeParse(
457
507
  jsonString,
458
- (x) => Environment2$inboundSchema.parse(JSON.parse(x)),
459
- `Failed to parse 'Environment2' from JSON`,
508
+ (x) => ToolDefinitionEnvironment2$inboundSchema.parse(JSON.parse(x)),
509
+ `Failed to parse 'ToolDefinitionEnvironment2' from JSON`,
460
510
  );
461
511
  }
462
512
 
@@ -531,11 +581,13 @@ export const Environment1$inboundSchema: z.ZodType<
531
581
  unknown
532
582
  > = z.object({
533
583
  type: z.literal("container_auto"),
584
+ session_scope: AgentsSandboxSessionScope$inboundSchema.optional(),
534
585
  network_policy: z.any().optional(),
535
586
  skills: z.array(z.any()).optional(),
536
587
  memory_stores: z.array(z.lazy(() => MemoryStores$inboundSchema)).optional(),
537
588
  }).transform((v) => {
538
589
  return remap$(v, {
590
+ "session_scope": "sessionScope",
539
591
  "network_policy": "networkPolicy",
540
592
  "memory_stores": "memoryStores",
541
593
  });
@@ -543,6 +595,7 @@ export const Environment1$inboundSchema: z.ZodType<
543
595
  /** @internal */
544
596
  export type Environment1$Outbound = {
545
597
  type: "container_auto";
598
+ session_scope?: string | undefined;
546
599
  network_policy?: any | undefined;
547
600
  skills?: Array<any> | undefined;
548
601
  memory_stores?: Array<MemoryStores$Outbound> | undefined;
@@ -555,11 +608,13 @@ export const Environment1$outboundSchema: z.ZodType<
555
608
  Environment1
556
609
  > = z.object({
557
610
  type: z.literal("container_auto"),
611
+ sessionScope: AgentsSandboxSessionScope$outboundSchema.optional(),
558
612
  networkPolicy: z.any().optional(),
559
613
  skills: z.array(z.any()).optional(),
560
614
  memoryStores: z.array(z.lazy(() => MemoryStores$outboundSchema)).optional(),
561
615
  }).transform((v) => {
562
616
  return remap$(v, {
617
+ sessionScope: "session_scope",
563
618
  networkPolicy: "network_policy",
564
619
  memoryStores: "memory_stores",
565
620
  });
@@ -579,65 +634,129 @@ export function environment1FromJSON(
579
634
  }
580
635
 
581
636
  /** @internal */
582
- export const Environment$inboundSchema: z.ZodType<
583
- Environment,
637
+ export const ToolDefinitionEnvironment$inboundSchema: z.ZodType<
638
+ ToolDefinitionEnvironment,
584
639
  z.ZodTypeDef,
585
640
  unknown
586
641
  > = discriminatedUnion("type", {
587
642
  container_auto: z.lazy(() => Environment1$inboundSchema),
588
- container_reference: z.lazy(() => Environment2$inboundSchema),
643
+ container_reference: z.lazy(() => ToolDefinitionEnvironment2$inboundSchema),
589
644
  });
590
645
  /** @internal */
591
- export type Environment$Outbound =
646
+ export type ToolDefinitionEnvironment$Outbound =
592
647
  | Environment1$Outbound
593
- | Environment2$Outbound;
648
+ | ToolDefinitionEnvironment2$Outbound;
594
649
 
595
650
  /** @internal */
596
- export const Environment$outboundSchema: z.ZodType<
597
- Environment$Outbound,
651
+ export const ToolDefinitionEnvironment$outboundSchema: z.ZodType<
652
+ ToolDefinitionEnvironment$Outbound,
598
653
  z.ZodTypeDef,
599
- Environment
654
+ ToolDefinitionEnvironment
600
655
  > = z.union([
601
656
  z.lazy(() => Environment1$outboundSchema),
602
- z.lazy(() => Environment2$outboundSchema),
657
+ z.lazy(() => ToolDefinitionEnvironment2$outboundSchema),
603
658
  ]);
604
659
 
605
- export function environmentToJSON(environment: Environment): string {
606
- return JSON.stringify(Environment$outboundSchema.parse(environment));
660
+ export function toolDefinitionEnvironmentToJSON(
661
+ toolDefinitionEnvironment: ToolDefinitionEnvironment,
662
+ ): string {
663
+ return JSON.stringify(
664
+ ToolDefinitionEnvironment$outboundSchema.parse(toolDefinitionEnvironment),
665
+ );
607
666
  }
608
- export function environmentFromJSON(
667
+ export function toolDefinitionEnvironmentFromJSON(
609
668
  jsonString: string,
610
- ): SafeParseResult<Environment, SDKValidationError> {
669
+ ): SafeParseResult<ToolDefinitionEnvironment, SDKValidationError> {
611
670
  return safeParse(
612
671
  jsonString,
613
- (x) => Environment$inboundSchema.parse(JSON.parse(x)),
614
- `Failed to parse 'Environment' from JSON`,
672
+ (x) => ToolDefinitionEnvironment$inboundSchema.parse(JSON.parse(x)),
673
+ `Failed to parse 'ToolDefinitionEnvironment' from JSON`,
615
674
  );
616
675
  }
617
676
 
618
677
  /** @internal */
619
- export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
678
+ export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
620
679
  .object({
621
- type: ToolDefinition9Type$inboundSchema,
680
+ type: ToolDefinition10Type$inboundSchema,
622
681
  environment: discriminatedUnion("type", {
623
682
  container_auto: z.lazy(() => Environment1$inboundSchema),
624
- container_reference: z.lazy(() => Environment2$inboundSchema),
683
+ container_reference: z.lazy(() =>
684
+ ToolDefinitionEnvironment2$inboundSchema
685
+ ),
625
686
  }).optional(),
626
687
  });
627
688
  /** @internal */
689
+ export type Ten$Outbound = {
690
+ type: string;
691
+ environment?:
692
+ | Environment1$Outbound
693
+ | ToolDefinitionEnvironment2$Outbound
694
+ | undefined;
695
+ };
696
+
697
+ /** @internal */
698
+ export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
699
+ .object({
700
+ type: ToolDefinition10Type$outboundSchema,
701
+ environment: z.union([
702
+ z.lazy(() => Environment1$outboundSchema),
703
+ z.lazy(() => ToolDefinitionEnvironment2$outboundSchema),
704
+ ]).optional(),
705
+ });
706
+
707
+ export function tenToJSON(ten: Ten): string {
708
+ return JSON.stringify(Ten$outboundSchema.parse(ten));
709
+ }
710
+ export function tenFromJSON(
711
+ jsonString: string,
712
+ ): SafeParseResult<Ten, SDKValidationError> {
713
+ return safeParse(
714
+ jsonString,
715
+ (x) => Ten$inboundSchema.parse(JSON.parse(x)),
716
+ `Failed to parse 'Ten' from JSON`,
717
+ );
718
+ }
719
+
720
+ /** @internal */
721
+ export const ToolDefinition9Type$inboundSchema: z.ZodNativeEnum<
722
+ typeof ToolDefinition9Type
723
+ > = z.nativeEnum(ToolDefinition9Type);
724
+ /** @internal */
725
+ export const ToolDefinition9Type$outboundSchema: z.ZodNativeEnum<
726
+ typeof ToolDefinition9Type
727
+ > = ToolDefinition9Type$inboundSchema;
728
+
729
+ /** @internal */
730
+ export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
731
+ .object({
732
+ type: ToolDefinition9Type$inboundSchema,
733
+ agent_id: z.string(),
734
+ name: z.string().optional(),
735
+ description: z.string().optional(),
736
+ }).transform((v) => {
737
+ return remap$(v, {
738
+ "agent_id": "agentId",
739
+ });
740
+ });
741
+ /** @internal */
628
742
  export type Nine$Outbound = {
629
743
  type: string;
630
- environment?: Environment1$Outbound | Environment2$Outbound | undefined;
744
+ agent_id: string;
745
+ name?: string | undefined;
746
+ description?: string | undefined;
631
747
  };
632
748
 
633
749
  /** @internal */
634
750
  export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
635
751
  z.object({
636
752
  type: ToolDefinition9Type$outboundSchema,
637
- environment: z.union([
638
- z.lazy(() => Environment1$outboundSchema),
639
- z.lazy(() => Environment2$outboundSchema),
640
- ]).optional(),
753
+ agentId: z.string(),
754
+ name: z.string().optional(),
755
+ description: z.string().optional(),
756
+ }).transform((v) => {
757
+ return remap$(v, {
758
+ agentId: "agent_id",
759
+ });
641
760
  });
642
761
 
643
762
  export function nineToJSON(nine: Nine): string {
@@ -666,20 +785,10 @@ export const ToolDefinition8Type$outboundSchema: z.ZodNativeEnum<
666
785
  export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
667
786
  .object({
668
787
  type: ToolDefinition8Type$inboundSchema,
669
- agent_id: z.string(),
670
- name: z.string().optional(),
671
- description: z.string().optional(),
672
- }).transform((v) => {
673
- return remap$(v, {
674
- "agent_id": "agentId",
675
- });
676
788
  });
677
789
  /** @internal */
678
790
  export type Eight$Outbound = {
679
791
  type: string;
680
- agent_id: string;
681
- name?: string | undefined;
682
- description?: string | undefined;
683
792
  };
684
793
 
685
794
  /** @internal */
@@ -689,13 +798,6 @@ export const Eight$outboundSchema: z.ZodType<
689
798
  Eight
690
799
  > = z.object({
691
800
  type: ToolDefinition8Type$outboundSchema,
692
- agentId: z.string(),
693
- name: z.string().optional(),
694
- description: z.string().optional(),
695
- }).transform((v) => {
696
- return remap$(v, {
697
- agentId: "agent_id",
698
- });
699
801
  });
700
802
 
701
803
  export function eightToJSON(eight: Eight): string {
@@ -720,14 +822,137 @@ export const ToolDefinition7Type$outboundSchema: z.ZodNativeEnum<
720
822
  typeof ToolDefinition7Type
721
823
  > = ToolDefinition7Type$inboundSchema;
722
824
 
825
+ /** @internal */
826
+ export const ContainerType$inboundSchema: z.ZodNativeEnum<
827
+ typeof ContainerType
828
+ > = z.nativeEnum(ContainerType);
829
+ /** @internal */
830
+ export const ContainerType$outboundSchema: z.ZodNativeEnum<
831
+ typeof ContainerType
832
+ > = ContainerType$inboundSchema;
833
+
834
+ /** @internal */
835
+ export const ToolDefinitionContainerMemoryLimit$inboundSchema: z.ZodNativeEnum<
836
+ typeof ToolDefinitionContainerMemoryLimit
837
+ > = z.nativeEnum(ToolDefinitionContainerMemoryLimit);
838
+ /** @internal */
839
+ export const ToolDefinitionContainerMemoryLimit$outboundSchema: z.ZodNativeEnum<
840
+ typeof ToolDefinitionContainerMemoryLimit
841
+ > = ToolDefinitionContainerMemoryLimit$inboundSchema;
842
+
843
+ /** @internal */
844
+ export const ToolDefinitionContainer2$inboundSchema: z.ZodType<
845
+ ToolDefinitionContainer2,
846
+ z.ZodTypeDef,
847
+ unknown
848
+ > = z.object({
849
+ type: ContainerType$inboundSchema,
850
+ session_scope: AgentsSandboxSessionScope$inboundSchema.optional(),
851
+ file_ids: z.nullable(z.array(z.string())).optional(),
852
+ memory_limit: z.nullable(ToolDefinitionContainerMemoryLimit$inboundSchema)
853
+ .optional(),
854
+ }).transform((v) => {
855
+ return remap$(v, {
856
+ "session_scope": "sessionScope",
857
+ "file_ids": "fileIds",
858
+ "memory_limit": "memoryLimit",
859
+ });
860
+ });
861
+ /** @internal */
862
+ export type ToolDefinitionContainer2$Outbound = {
863
+ type: string;
864
+ session_scope?: string | undefined;
865
+ file_ids?: Array<string> | null | undefined;
866
+ memory_limit?: string | null | undefined;
867
+ };
868
+
869
+ /** @internal */
870
+ export const ToolDefinitionContainer2$outboundSchema: z.ZodType<
871
+ ToolDefinitionContainer2$Outbound,
872
+ z.ZodTypeDef,
873
+ ToolDefinitionContainer2
874
+ > = z.object({
875
+ type: ContainerType$outboundSchema,
876
+ sessionScope: AgentsSandboxSessionScope$outboundSchema.optional(),
877
+ fileIds: z.nullable(z.array(z.string())).optional(),
878
+ memoryLimit: z.nullable(ToolDefinitionContainerMemoryLimit$outboundSchema)
879
+ .optional(),
880
+ }).transform((v) => {
881
+ return remap$(v, {
882
+ sessionScope: "session_scope",
883
+ fileIds: "file_ids",
884
+ memoryLimit: "memory_limit",
885
+ });
886
+ });
887
+
888
+ export function toolDefinitionContainer2ToJSON(
889
+ toolDefinitionContainer2: ToolDefinitionContainer2,
890
+ ): string {
891
+ return JSON.stringify(
892
+ ToolDefinitionContainer2$outboundSchema.parse(toolDefinitionContainer2),
893
+ );
894
+ }
895
+ export function toolDefinitionContainer2FromJSON(
896
+ jsonString: string,
897
+ ): SafeParseResult<ToolDefinitionContainer2, SDKValidationError> {
898
+ return safeParse(
899
+ jsonString,
900
+ (x) => ToolDefinitionContainer2$inboundSchema.parse(JSON.parse(x)),
901
+ `Failed to parse 'ToolDefinitionContainer2' from JSON`,
902
+ );
903
+ }
904
+
905
+ /** @internal */
906
+ export const ToolDefinitionContainer$inboundSchema: z.ZodType<
907
+ ToolDefinitionContainer,
908
+ z.ZodTypeDef,
909
+ unknown
910
+ > = z.union([z.lazy(() => ToolDefinitionContainer2$inboundSchema), z.string()]);
911
+ /** @internal */
912
+ export type ToolDefinitionContainer$Outbound =
913
+ | ToolDefinitionContainer2$Outbound
914
+ | string;
915
+
916
+ /** @internal */
917
+ export const ToolDefinitionContainer$outboundSchema: z.ZodType<
918
+ ToolDefinitionContainer$Outbound,
919
+ z.ZodTypeDef,
920
+ ToolDefinitionContainer
921
+ > = z.union([
922
+ z.lazy(() => ToolDefinitionContainer2$outboundSchema),
923
+ z.string(),
924
+ ]);
925
+
926
+ export function toolDefinitionContainerToJSON(
927
+ toolDefinitionContainer: ToolDefinitionContainer,
928
+ ): string {
929
+ return JSON.stringify(
930
+ ToolDefinitionContainer$outboundSchema.parse(toolDefinitionContainer),
931
+ );
932
+ }
933
+ export function toolDefinitionContainerFromJSON(
934
+ jsonString: string,
935
+ ): SafeParseResult<ToolDefinitionContainer, SDKValidationError> {
936
+ return safeParse(
937
+ jsonString,
938
+ (x) => ToolDefinitionContainer$inboundSchema.parse(JSON.parse(x)),
939
+ `Failed to parse 'ToolDefinitionContainer' from JSON`,
940
+ );
941
+ }
942
+
723
943
  /** @internal */
724
944
  export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
725
945
  .object({
726
946
  type: ToolDefinition7Type$inboundSchema,
947
+ container: z.union([
948
+ z.lazy(() => ToolDefinitionContainer2$inboundSchema),
949
+ z.string(),
950
+ ]),
727
951
  });
728
952
  /** @internal */
729
953
  export type Seven$Outbound = {
730
954
  type: string;
955
+ container: ToolDefinitionContainer2$Outbound | string;
731
956
  };
732
957
 
733
958
  /** @internal */
@@ -737,6 +962,10 @@ export const Seven$outboundSchema: z.ZodType<
737
962
  Seven
738
963
  > = z.object({
739
964
  type: ToolDefinition7Type$outboundSchema,
965
+ container: z.union([
966
+ z.lazy(() => ToolDefinitionContainer2$outboundSchema),
967
+ z.string(),
968
+ ]),
740
969
  });
741
970
 
742
971
  export function sevenToJSON(seven: Seven): string {
@@ -1815,11 +2044,12 @@ export const ToolDefinition$inboundSchema: z.ZodType<
1815
2044
  z.lazy(() => ToolDefinition3$inboundSchema),
1816
2045
  FunctionToolReference$inboundSchema,
1817
2046
  z.lazy(() => ToolDefinition5$inboundSchema),
1818
- z.lazy(() => Eight$inboundSchema),
1819
- z.lazy(() => ToolDefinition2$inboundSchema),
1820
- z.lazy(() => ToolDefinition6$inboundSchema),
1821
2047
  z.lazy(() => Seven$inboundSchema),
1822
2048
  z.lazy(() => Nine$inboundSchema),
2049
+ z.lazy(() => ToolDefinition2$inboundSchema),
2050
+ z.lazy(() => ToolDefinition6$inboundSchema),
2051
+ z.lazy(() => Eight$inboundSchema),
2052
+ z.lazy(() => Ten$inboundSchema),
1823
2053
  z.union([
1824
2054
  z.lazy(() => Four1$inboundSchema),
1825
2055
  z.lazy(() => Four2$inboundSchema),
@@ -1830,11 +2060,12 @@ export type ToolDefinition$Outbound =
1830
2060
  | ToolDefinition3$Outbound
1831
2061
  | FunctionToolReference$Outbound
1832
2062
  | ToolDefinition5$Outbound
1833
- | Eight$Outbound
1834
- | ToolDefinition2$Outbound
1835
- | ToolDefinition6$Outbound
1836
2063
  | Seven$Outbound
1837
2064
  | Nine$Outbound
2065
+ | ToolDefinition2$Outbound
2066
+ | ToolDefinition6$Outbound
2067
+ | Eight$Outbound
2068
+ | Ten$Outbound
1838
2069
  | Four1$Outbound
1839
2070
  | Four2$Outbound;
1840
2071
 
@@ -1847,11 +2078,12 @@ export const ToolDefinition$outboundSchema: z.ZodType<
1847
2078
  z.lazy(() => ToolDefinition3$outboundSchema),
1848
2079
  FunctionToolReference$outboundSchema,
1849
2080
  z.lazy(() => ToolDefinition5$outboundSchema),
1850
- z.lazy(() => Eight$outboundSchema),
1851
- z.lazy(() => ToolDefinition2$outboundSchema),
1852
- z.lazy(() => ToolDefinition6$outboundSchema),
1853
2081
  z.lazy(() => Seven$outboundSchema),
1854
2082
  z.lazy(() => Nine$outboundSchema),
2083
+ z.lazy(() => ToolDefinition2$outboundSchema),
2084
+ z.lazy(() => ToolDefinition6$outboundSchema),
2085
+ z.lazy(() => Eight$outboundSchema),
2086
+ z.lazy(() => Ten$outboundSchema),
1855
2087
  z.union([
1856
2088
  z.lazy(() => Four1$outboundSchema),
1857
2089
  z.lazy(() => Four2$outboundSchema),
@@ -49,7 +49,7 @@ export type LlmModelsCheckCatalogHealthMutationError =
49
49
  * Check a BYO catalog model's health
50
50
  *
51
51
  * @remarks
52
- * Probes an available BYO definition whether or not it is active.
52
+ * 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`.
53
53
  */
54
54
  export function useLlmModelsCheckCatalogHealthMutation(
55
55
  options?: MutationHookOptions<
package/src/sdk/models.ts CHANGED
@@ -192,7 +192,7 @@ export class Models extends ClientSDK {
192
192
  * Check a BYO catalog model's health
193
193
  *
194
194
  * @remarks
195
- * Probes an available BYO definition whether or not it is active.
195
+ * 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`.
196
196
  */
197
197
  async checkCatalogHealth(
198
198
  request: operations.CheckModelCatalogHealthRequest,