@meetkai/mka1 0.55.21 → 0.55.23

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 (137) hide show
  1. package/README.md +410 -410
  2. package/bin/mcp-server.js +2664 -2382
  3. package/bin/mcp-server.js.map +16 -11
  4. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
  5. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js +136 -0
  7. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js +64 -0
  17. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
  18. package/dist/commonjs/models/components/computesecret.d.ts +15 -0
  19. package/dist/commonjs/models/components/computesecret.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/computesecret.js +10 -0
  21. package/dist/commonjs/models/components/computesecret.js.map +1 -1
  22. package/dist/commonjs/models/components/computesecretcreate.d.ts +5 -0
  23. package/dist/commonjs/models/components/computesecretcreate.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/computesecretcreate.js +12 -0
  25. package/dist/commonjs/models/components/computesecretcreate.js.map +1 -1
  26. package/dist/commonjs/models/components/computesecretrotate.d.ts +26 -0
  27. package/dist/commonjs/models/components/computesecretrotate.d.ts.map +1 -0
  28. package/dist/commonjs/models/components/computesecretrotate.js +70 -0
  29. package/dist/commonjs/models/components/computesecretrotate.js.map +1 -0
  30. package/dist/commonjs/models/components/index.d.ts +2 -0
  31. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/index.js +2 -0
  33. package/dist/commonjs/models/components/index.js.map +1 -1
  34. package/dist/commonjs/models/components/sandboxsessionscope.d.ts +18 -0
  35. package/dist/commonjs/models/components/sandboxsessionscope.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/sandboxsessionscope.js +52 -0
  37. package/dist/commonjs/models/components/sandboxsessionscope.js.map +1 -0
  38. package/dist/commonjs/models/components/tooldefinition.d.ts +95 -17
  39. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/tooldefinition.js +135 -27
  41. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  42. package/dist/commonjs/models/operations/index.d.ts +1 -0
  43. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/index.js +1 -0
  45. package/dist/commonjs/models/operations/index.js.map +1 -1
  46. package/dist/commonjs/models/operations/rotatecomputesecret.d.ts +34 -0
  47. package/dist/commonjs/models/operations/rotatecomputesecret.d.ts.map +1 -0
  48. package/dist/commonjs/models/operations/rotatecomputesecret.js +92 -0
  49. package/dist/commonjs/models/operations/rotatecomputesecret.js.map +1 -0
  50. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
  51. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  52. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js +47 -0
  53. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
  54. package/dist/commonjs/react-query/index.d.ts +1 -0
  55. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/index.js +1 -0
  57. package/dist/commonjs/react-query/index.js.map +1 -1
  58. package/dist/commonjs/sdk/computesecrets.d.ts +7 -0
  59. package/dist/commonjs/sdk/computesecrets.d.ts.map +1 -1
  60. package/dist/commonjs/sdk/computesecrets.js +10 -0
  61. package/dist/commonjs/sdk/computesecrets.js.map +1 -1
  62. package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
  63. package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  64. package/dist/esm/funcs/computeSecretsRotateComputeSecret.js +100 -0
  65. package/dist/esm/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
  66. package/dist/esm/lib/config.d.ts +2 -2
  67. package/dist/esm/lib/config.js +2 -2
  68. package/dist/esm/mcp-server/mcp-server.js +1 -1
  69. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  70. package/dist/esm/mcp-server/server.js +3 -1
  71. package/dist/esm/mcp-server/server.js.map +1 -1
  72. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
  73. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  74. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js +28 -0
  75. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
  76. package/dist/esm/models/components/computesecret.d.ts +15 -0
  77. package/dist/esm/models/components/computesecret.d.ts.map +1 -1
  78. package/dist/esm/models/components/computesecret.js +10 -0
  79. package/dist/esm/models/components/computesecret.js.map +1 -1
  80. package/dist/esm/models/components/computesecretcreate.d.ts +5 -0
  81. package/dist/esm/models/components/computesecretcreate.d.ts.map +1 -1
  82. package/dist/esm/models/components/computesecretcreate.js +12 -0
  83. package/dist/esm/models/components/computesecretcreate.js.map +1 -1
  84. package/dist/esm/models/components/computesecretrotate.d.ts +26 -0
  85. package/dist/esm/models/components/computesecretrotate.d.ts.map +1 -0
  86. package/dist/esm/models/components/computesecretrotate.js +32 -0
  87. package/dist/esm/models/components/computesecretrotate.js.map +1 -0
  88. package/dist/esm/models/components/index.d.ts +2 -0
  89. package/dist/esm/models/components/index.d.ts.map +1 -1
  90. package/dist/esm/models/components/index.js +2 -0
  91. package/dist/esm/models/components/index.js.map +1 -1
  92. package/dist/esm/models/components/sandboxsessionscope.d.ts +18 -0
  93. package/dist/esm/models/components/sandboxsessionscope.d.ts.map +1 -0
  94. package/dist/esm/models/components/sandboxsessionscope.js +16 -0
  95. package/dist/esm/models/components/sandboxsessionscope.js.map +1 -0
  96. package/dist/esm/models/components/tooldefinition.d.ts +95 -17
  97. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  98. package/dist/esm/models/components/tooldefinition.js +126 -25
  99. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  100. package/dist/esm/models/operations/index.d.ts +1 -0
  101. package/dist/esm/models/operations/index.d.ts.map +1 -1
  102. package/dist/esm/models/operations/index.js +1 -0
  103. package/dist/esm/models/operations/index.js.map +1 -1
  104. package/dist/esm/models/operations/rotatecomputesecret.d.ts +34 -0
  105. package/dist/esm/models/operations/rotatecomputesecret.d.ts.map +1 -0
  106. package/dist/esm/models/operations/rotatecomputesecret.js +52 -0
  107. package/dist/esm/models/operations/rotatecomputesecret.js.map +1 -0
  108. package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
  109. package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  110. package/dist/esm/react-query/computeSecretsRotateComputeSecret.js +42 -0
  111. package/dist/esm/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
  112. package/dist/esm/react-query/index.d.ts +1 -0
  113. package/dist/esm/react-query/index.d.ts.map +1 -1
  114. package/dist/esm/react-query/index.js +1 -0
  115. package/dist/esm/react-query/index.js.map +1 -1
  116. package/dist/esm/sdk/computesecrets.d.ts +7 -0
  117. package/dist/esm/sdk/computesecrets.d.ts.map +1 -1
  118. package/dist/esm/sdk/computesecrets.js +10 -0
  119. package/dist/esm/sdk/computesecrets.js.map +1 -1
  120. package/jsr.json +1 -1
  121. package/package.json +1 -1
  122. package/src/funcs/computeSecretsRotateComputeSecret.ts +189 -0
  123. package/src/lib/config.ts +2 -2
  124. package/src/mcp-server/mcp-server.ts +1 -1
  125. package/src/mcp-server/server.ts +3 -1
  126. package/src/mcp-server/tools/computeSecretsRotateComputeSecret.ts +39 -0
  127. package/src/models/components/computesecret.ts +27 -0
  128. package/src/models/components/computesecretcreate.ts +17 -0
  129. package/src/models/components/computesecretrotate.ts +68 -0
  130. package/src/models/components/index.ts +2 -0
  131. package/src/models/components/sandboxsessionscope.ts +27 -0
  132. package/src/models/components/tooldefinition.ts +269 -50
  133. package/src/models/operations/index.ts +1 -0
  134. package/src/models/operations/rotatecomputesecret.ts +121 -0
  135. package/src/react-query/computeSecretsRotateComputeSecret.ts +109 -0
  136. package/src/react-query/index.ts +1 -0
  137. package/src/sdk/computesecrets.ts +18 -0
@@ -34,11 +34,16 @@ import {
34
34
  MCPToolFilter$Outbound,
35
35
  MCPToolFilter$outboundSchema,
36
36
  } from "./mcptoolfilter.js";
37
+ import {
38
+ SandboxSessionScope,
39
+ SandboxSessionScope$inboundSchema,
40
+ SandboxSessionScope$outboundSchema,
41
+ } from "./sandboxsessionscope.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",
@@ -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?: SandboxSessionScope | undefined;
86
95
  /**
87
96
  * Arbitrary JSON value.
88
97
  */
@@ -96,8 +105,8 @@ export type Environment =
96
105
  | Environment2
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
112
  | Environment2
@@ -105,28 +114,64 @@ export type Nine = {
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?: SandboxSessionScope | 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<
@@ -531,11 +577,13 @@ export const Environment1$inboundSchema: z.ZodType<
531
577
  unknown
532
578
  > = z.object({
533
579
  type: z.literal("container_auto"),
580
+ session_scope: SandboxSessionScope$inboundSchema.optional(),
534
581
  network_policy: z.any().optional(),
535
582
  skills: z.array(z.any()).optional(),
536
583
  memory_stores: z.array(z.lazy(() => MemoryStores$inboundSchema)).optional(),
537
584
  }).transform((v) => {
538
585
  return remap$(v, {
586
+ "session_scope": "sessionScope",
539
587
  "network_policy": "networkPolicy",
540
588
  "memory_stores": "memoryStores",
541
589
  });
@@ -543,6 +591,7 @@ export const Environment1$inboundSchema: z.ZodType<
543
591
  /** @internal */
544
592
  export type Environment1$Outbound = {
545
593
  type: "container_auto";
594
+ session_scope?: string | undefined;
546
595
  network_policy?: any | undefined;
547
596
  skills?: Array<any> | undefined;
548
597
  memory_stores?: Array<MemoryStores$Outbound> | undefined;
@@ -555,11 +604,13 @@ export const Environment1$outboundSchema: z.ZodType<
555
604
  Environment1
556
605
  > = z.object({
557
606
  type: z.literal("container_auto"),
607
+ sessionScope: SandboxSessionScope$outboundSchema.optional(),
558
608
  networkPolicy: z.any().optional(),
559
609
  skills: z.array(z.any()).optional(),
560
610
  memoryStores: z.array(z.lazy(() => MemoryStores$outboundSchema)).optional(),
561
611
  }).transform((v) => {
562
612
  return remap$(v, {
613
+ sessionScope: "session_scope",
563
614
  networkPolicy: "network_policy",
564
615
  memoryStores: "memory_stores",
565
616
  });
@@ -616,30 +667,85 @@ export function environmentFromJSON(
616
667
  }
617
668
 
618
669
  /** @internal */
619
- export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
670
+ export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
620
671
  .object({
621
- type: ToolDefinition9Type$inboundSchema,
672
+ type: ToolDefinition10Type$inboundSchema,
622
673
  environment: discriminatedUnion("type", {
623
674
  container_auto: z.lazy(() => Environment1$inboundSchema),
624
675
  container_reference: z.lazy(() => Environment2$inboundSchema),
625
676
  }).optional(),
626
677
  });
627
678
  /** @internal */
628
- export type Nine$Outbound = {
679
+ export type Ten$Outbound = {
629
680
  type: string;
630
681
  environment?: Environment1$Outbound | Environment2$Outbound | undefined;
631
682
  };
632
683
 
633
684
  /** @internal */
634
- export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
635
- z.object({
636
- type: ToolDefinition9Type$outboundSchema,
685
+ export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
686
+ .object({
687
+ type: ToolDefinition10Type$outboundSchema,
637
688
  environment: z.union([
638
689
  z.lazy(() => Environment1$outboundSchema),
639
690
  z.lazy(() => Environment2$outboundSchema),
640
691
  ]).optional(),
641
692
  });
642
693
 
694
+ export function tenToJSON(ten: Ten): string {
695
+ return JSON.stringify(Ten$outboundSchema.parse(ten));
696
+ }
697
+ export function tenFromJSON(
698
+ jsonString: string,
699
+ ): SafeParseResult<Ten, SDKValidationError> {
700
+ return safeParse(
701
+ jsonString,
702
+ (x) => Ten$inboundSchema.parse(JSON.parse(x)),
703
+ `Failed to parse 'Ten' from JSON`,
704
+ );
705
+ }
706
+
707
+ /** @internal */
708
+ export const ToolDefinition9Type$inboundSchema: z.ZodNativeEnum<
709
+ typeof ToolDefinition9Type
710
+ > = z.nativeEnum(ToolDefinition9Type);
711
+ /** @internal */
712
+ export const ToolDefinition9Type$outboundSchema: z.ZodNativeEnum<
713
+ typeof ToolDefinition9Type
714
+ > = ToolDefinition9Type$inboundSchema;
715
+
716
+ /** @internal */
717
+ export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
718
+ .object({
719
+ type: ToolDefinition9Type$inboundSchema,
720
+ agent_id: z.string(),
721
+ name: z.string().optional(),
722
+ description: z.string().optional(),
723
+ }).transform((v) => {
724
+ return remap$(v, {
725
+ "agent_id": "agentId",
726
+ });
727
+ });
728
+ /** @internal */
729
+ export type Nine$Outbound = {
730
+ type: string;
731
+ agent_id: string;
732
+ name?: string | undefined;
733
+ description?: string | undefined;
734
+ };
735
+
736
+ /** @internal */
737
+ export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
738
+ z.object({
739
+ type: ToolDefinition9Type$outboundSchema,
740
+ agentId: z.string(),
741
+ name: z.string().optional(),
742
+ description: z.string().optional(),
743
+ }).transform((v) => {
744
+ return remap$(v, {
745
+ agentId: "agent_id",
746
+ });
747
+ });
748
+
643
749
  export function nineToJSON(nine: Nine): string {
644
750
  return JSON.stringify(Nine$outboundSchema.parse(nine));
645
751
  }
@@ -666,20 +772,10 @@ export const ToolDefinition8Type$outboundSchema: z.ZodNativeEnum<
666
772
  export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
667
773
  .object({
668
774
  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
775
  });
677
776
  /** @internal */
678
777
  export type Eight$Outbound = {
679
778
  type: string;
680
- agent_id: string;
681
- name?: string | undefined;
682
- description?: string | undefined;
683
779
  };
684
780
 
685
781
  /** @internal */
@@ -689,13 +785,6 @@ export const Eight$outboundSchema: z.ZodType<
689
785
  Eight
690
786
  > = z.object({
691
787
  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
788
  });
700
789
 
701
790
  export function eightToJSON(eight: Eight): string {
@@ -720,14 +809,137 @@ export const ToolDefinition7Type$outboundSchema: z.ZodNativeEnum<
720
809
  typeof ToolDefinition7Type
721
810
  > = ToolDefinition7Type$inboundSchema;
722
811
 
812
+ /** @internal */
813
+ export const ContainerType$inboundSchema: z.ZodNativeEnum<
814
+ typeof ContainerType
815
+ > = z.nativeEnum(ContainerType);
816
+ /** @internal */
817
+ export const ContainerType$outboundSchema: z.ZodNativeEnum<
818
+ typeof ContainerType
819
+ > = ContainerType$inboundSchema;
820
+
821
+ /** @internal */
822
+ export const ToolDefinitionContainerMemoryLimit$inboundSchema: z.ZodNativeEnum<
823
+ typeof ToolDefinitionContainerMemoryLimit
824
+ > = z.nativeEnum(ToolDefinitionContainerMemoryLimit);
825
+ /** @internal */
826
+ export const ToolDefinitionContainerMemoryLimit$outboundSchema: z.ZodNativeEnum<
827
+ typeof ToolDefinitionContainerMemoryLimit
828
+ > = ToolDefinitionContainerMemoryLimit$inboundSchema;
829
+
830
+ /** @internal */
831
+ export const ToolDefinitionContainer2$inboundSchema: z.ZodType<
832
+ ToolDefinitionContainer2,
833
+ z.ZodTypeDef,
834
+ unknown
835
+ > = z.object({
836
+ type: ContainerType$inboundSchema,
837
+ session_scope: SandboxSessionScope$inboundSchema.optional(),
838
+ file_ids: z.nullable(z.array(z.string())).optional(),
839
+ memory_limit: z.nullable(ToolDefinitionContainerMemoryLimit$inboundSchema)
840
+ .optional(),
841
+ }).transform((v) => {
842
+ return remap$(v, {
843
+ "session_scope": "sessionScope",
844
+ "file_ids": "fileIds",
845
+ "memory_limit": "memoryLimit",
846
+ });
847
+ });
848
+ /** @internal */
849
+ export type ToolDefinitionContainer2$Outbound = {
850
+ type: string;
851
+ session_scope?: string | undefined;
852
+ file_ids?: Array<string> | null | undefined;
853
+ memory_limit?: string | null | undefined;
854
+ };
855
+
856
+ /** @internal */
857
+ export const ToolDefinitionContainer2$outboundSchema: z.ZodType<
858
+ ToolDefinitionContainer2$Outbound,
859
+ z.ZodTypeDef,
860
+ ToolDefinitionContainer2
861
+ > = z.object({
862
+ type: ContainerType$outboundSchema,
863
+ sessionScope: SandboxSessionScope$outboundSchema.optional(),
864
+ fileIds: z.nullable(z.array(z.string())).optional(),
865
+ memoryLimit: z.nullable(ToolDefinitionContainerMemoryLimit$outboundSchema)
866
+ .optional(),
867
+ }).transform((v) => {
868
+ return remap$(v, {
869
+ sessionScope: "session_scope",
870
+ fileIds: "file_ids",
871
+ memoryLimit: "memory_limit",
872
+ });
873
+ });
874
+
875
+ export function toolDefinitionContainer2ToJSON(
876
+ toolDefinitionContainer2: ToolDefinitionContainer2,
877
+ ): string {
878
+ return JSON.stringify(
879
+ ToolDefinitionContainer2$outboundSchema.parse(toolDefinitionContainer2),
880
+ );
881
+ }
882
+ export function toolDefinitionContainer2FromJSON(
883
+ jsonString: string,
884
+ ): SafeParseResult<ToolDefinitionContainer2, SDKValidationError> {
885
+ return safeParse(
886
+ jsonString,
887
+ (x) => ToolDefinitionContainer2$inboundSchema.parse(JSON.parse(x)),
888
+ `Failed to parse 'ToolDefinitionContainer2' from JSON`,
889
+ );
890
+ }
891
+
892
+ /** @internal */
893
+ export const ToolDefinitionContainer$inboundSchema: z.ZodType<
894
+ ToolDefinitionContainer,
895
+ z.ZodTypeDef,
896
+ unknown
897
+ > = z.union([z.lazy(() => ToolDefinitionContainer2$inboundSchema), z.string()]);
898
+ /** @internal */
899
+ export type ToolDefinitionContainer$Outbound =
900
+ | ToolDefinitionContainer2$Outbound
901
+ | string;
902
+
903
+ /** @internal */
904
+ export const ToolDefinitionContainer$outboundSchema: z.ZodType<
905
+ ToolDefinitionContainer$Outbound,
906
+ z.ZodTypeDef,
907
+ ToolDefinitionContainer
908
+ > = z.union([
909
+ z.lazy(() => ToolDefinitionContainer2$outboundSchema),
910
+ z.string(),
911
+ ]);
912
+
913
+ export function toolDefinitionContainerToJSON(
914
+ toolDefinitionContainer: ToolDefinitionContainer,
915
+ ): string {
916
+ return JSON.stringify(
917
+ ToolDefinitionContainer$outboundSchema.parse(toolDefinitionContainer),
918
+ );
919
+ }
920
+ export function toolDefinitionContainerFromJSON(
921
+ jsonString: string,
922
+ ): SafeParseResult<ToolDefinitionContainer, SDKValidationError> {
923
+ return safeParse(
924
+ jsonString,
925
+ (x) => ToolDefinitionContainer$inboundSchema.parse(JSON.parse(x)),
926
+ `Failed to parse 'ToolDefinitionContainer' from JSON`,
927
+ );
928
+ }
929
+
723
930
  /** @internal */
724
931
  export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
725
932
  .object({
726
933
  type: ToolDefinition7Type$inboundSchema,
934
+ container: z.union([
935
+ z.lazy(() => ToolDefinitionContainer2$inboundSchema),
936
+ z.string(),
937
+ ]),
727
938
  });
728
939
  /** @internal */
729
940
  export type Seven$Outbound = {
730
941
  type: string;
942
+ container: ToolDefinitionContainer2$Outbound | string;
731
943
  };
732
944
 
733
945
  /** @internal */
@@ -737,6 +949,10 @@ export const Seven$outboundSchema: z.ZodType<
737
949
  Seven
738
950
  > = z.object({
739
951
  type: ToolDefinition7Type$outboundSchema,
952
+ container: z.union([
953
+ z.lazy(() => ToolDefinitionContainer2$outboundSchema),
954
+ z.string(),
955
+ ]),
740
956
  });
741
957
 
742
958
  export function sevenToJSON(seven: Seven): string {
@@ -1815,11 +2031,12 @@ export const ToolDefinition$inboundSchema: z.ZodType<
1815
2031
  z.lazy(() => ToolDefinition3$inboundSchema),
1816
2032
  FunctionToolReference$inboundSchema,
1817
2033
  z.lazy(() => ToolDefinition5$inboundSchema),
1818
- z.lazy(() => Eight$inboundSchema),
1819
- z.lazy(() => ToolDefinition2$inboundSchema),
1820
- z.lazy(() => ToolDefinition6$inboundSchema),
1821
2034
  z.lazy(() => Seven$inboundSchema),
1822
2035
  z.lazy(() => Nine$inboundSchema),
2036
+ z.lazy(() => ToolDefinition2$inboundSchema),
2037
+ z.lazy(() => ToolDefinition6$inboundSchema),
2038
+ z.lazy(() => Eight$inboundSchema),
2039
+ z.lazy(() => Ten$inboundSchema),
1823
2040
  z.union([
1824
2041
  z.lazy(() => Four1$inboundSchema),
1825
2042
  z.lazy(() => Four2$inboundSchema),
@@ -1830,11 +2047,12 @@ export type ToolDefinition$Outbound =
1830
2047
  | ToolDefinition3$Outbound
1831
2048
  | FunctionToolReference$Outbound
1832
2049
  | ToolDefinition5$Outbound
1833
- | Eight$Outbound
1834
- | ToolDefinition2$Outbound
1835
- | ToolDefinition6$Outbound
1836
2050
  | Seven$Outbound
1837
2051
  | Nine$Outbound
2052
+ | ToolDefinition2$Outbound
2053
+ | ToolDefinition6$Outbound
2054
+ | Eight$Outbound
2055
+ | Ten$Outbound
1838
2056
  | Four1$Outbound
1839
2057
  | Four2$Outbound;
1840
2058
 
@@ -1847,11 +2065,12 @@ export const ToolDefinition$outboundSchema: z.ZodType<
1847
2065
  z.lazy(() => ToolDefinition3$outboundSchema),
1848
2066
  FunctionToolReference$outboundSchema,
1849
2067
  z.lazy(() => ToolDefinition5$outboundSchema),
1850
- z.lazy(() => Eight$outboundSchema),
1851
- z.lazy(() => ToolDefinition2$outboundSchema),
1852
- z.lazy(() => ToolDefinition6$outboundSchema),
1853
2068
  z.lazy(() => Seven$outboundSchema),
1854
2069
  z.lazy(() => Nine$outboundSchema),
2070
+ z.lazy(() => ToolDefinition2$outboundSchema),
2071
+ z.lazy(() => ToolDefinition6$outboundSchema),
2072
+ z.lazy(() => Eight$outboundSchema),
2073
+ z.lazy(() => Ten$outboundSchema),
1855
2074
  z.union([
1856
2075
  z.lazy(() => Four1$outboundSchema),
1857
2076
  z.lazy(() => Four2$outboundSchema),
@@ -400,6 +400,7 @@ export * from "./revokeclusterinvite.js";
400
400
  export * from "./revokefeatureflagevaluationkey.js";
401
401
  export * from "./rollbackagentversion.js";
402
402
  export * from "./rollbackprompt.js";
403
+ export * from "./rotatecomputesecret.js";
403
404
  export * from "./runcode.js";
404
405
  export * from "./runcommand.js";
405
406
  export * from "./runsandboxenvironmentsetup.js";
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type RotateComputeSecretRequest = {
13
+ id: string;
14
+ /**
15
+ * Optional external end-user identifier forwarded by the API gateway.
16
+ */
17
+ xOnBehalfOf?: string | undefined;
18
+ computeSecretRotate: components.ComputeSecretRotate;
19
+ };
20
+
21
+ export type RotateComputeSecretResponse =
22
+ | components.ComputeSecret
23
+ | components.ComputeErrorEnvelope;
24
+
25
+ /** @internal */
26
+ export const RotateComputeSecretRequest$inboundSchema: z.ZodType<
27
+ RotateComputeSecretRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ id: z.string(),
32
+ "X-On-Behalf-Of": z.string().optional(),
33
+ ComputeSecretRotate: components.ComputeSecretRotate$inboundSchema,
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "X-On-Behalf-Of": "xOnBehalfOf",
37
+ "ComputeSecretRotate": "computeSecretRotate",
38
+ });
39
+ });
40
+ /** @internal */
41
+ export type RotateComputeSecretRequest$Outbound = {
42
+ id: string;
43
+ "X-On-Behalf-Of"?: string | undefined;
44
+ ComputeSecretRotate: components.ComputeSecretRotate$Outbound;
45
+ };
46
+
47
+ /** @internal */
48
+ export const RotateComputeSecretRequest$outboundSchema: z.ZodType<
49
+ RotateComputeSecretRequest$Outbound,
50
+ z.ZodTypeDef,
51
+ RotateComputeSecretRequest
52
+ > = z.object({
53
+ id: z.string(),
54
+ xOnBehalfOf: z.string().optional(),
55
+ computeSecretRotate: components.ComputeSecretRotate$outboundSchema,
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ xOnBehalfOf: "X-On-Behalf-Of",
59
+ computeSecretRotate: "ComputeSecretRotate",
60
+ });
61
+ });
62
+
63
+ export function rotateComputeSecretRequestToJSON(
64
+ rotateComputeSecretRequest: RotateComputeSecretRequest,
65
+ ): string {
66
+ return JSON.stringify(
67
+ RotateComputeSecretRequest$outboundSchema.parse(rotateComputeSecretRequest),
68
+ );
69
+ }
70
+ export function rotateComputeSecretRequestFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<RotateComputeSecretRequest, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => RotateComputeSecretRequest$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'RotateComputeSecretRequest' from JSON`,
77
+ );
78
+ }
79
+
80
+ /** @internal */
81
+ export const RotateComputeSecretResponse$inboundSchema: z.ZodType<
82
+ RotateComputeSecretResponse,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.union([
86
+ components.ComputeSecret$inboundSchema,
87
+ components.ComputeErrorEnvelope$inboundSchema,
88
+ ]);
89
+ /** @internal */
90
+ export type RotateComputeSecretResponse$Outbound =
91
+ | components.ComputeSecret$Outbound
92
+ | components.ComputeErrorEnvelope$Outbound;
93
+
94
+ /** @internal */
95
+ export const RotateComputeSecretResponse$outboundSchema: z.ZodType<
96
+ RotateComputeSecretResponse$Outbound,
97
+ z.ZodTypeDef,
98
+ RotateComputeSecretResponse
99
+ > = z.union([
100
+ components.ComputeSecret$outboundSchema,
101
+ components.ComputeErrorEnvelope$outboundSchema,
102
+ ]);
103
+
104
+ export function rotateComputeSecretResponseToJSON(
105
+ rotateComputeSecretResponse: RotateComputeSecretResponse,
106
+ ): string {
107
+ return JSON.stringify(
108
+ RotateComputeSecretResponse$outboundSchema.parse(
109
+ rotateComputeSecretResponse,
110
+ ),
111
+ );
112
+ }
113
+ export function rotateComputeSecretResponseFromJSON(
114
+ jsonString: string,
115
+ ): SafeParseResult<RotateComputeSecretResponse, SDKValidationError> {
116
+ return safeParse(
117
+ jsonString,
118
+ (x) => RotateComputeSecretResponse$inboundSchema.parse(JSON.parse(x)),
119
+ `Failed to parse 'RotateComputeSecretResponse' from JSON`,
120
+ );
121
+ }