@meetkai/mka1 0.53.0 → 0.53.1

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 (141) hide show
  1. package/bin/mcp-server.js +48 -83
  2. package/bin/mcp-server.js.map +19 -20
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/agent.d.ts +5 -3
  8. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/agent.js +2 -3
  10. package/dist/commonjs/models/components/agent.js.map +1 -1
  11. package/dist/commonjs/models/components/agentconnector.d.ts +7 -5
  12. package/dist/commonjs/models/components/agentconnector.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/agentconnector.js +4 -5
  14. package/dist/commonjs/models/components/agentconnector.js.map +1 -1
  15. package/dist/commonjs/models/components/agentrun.d.ts +11 -9
  16. package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/agentrun.js +8 -9
  18. package/dist/commonjs/models/components/agentrun.js.map +1 -1
  19. package/dist/commonjs/models/components/agentschedule.d.ts +7 -5
  20. package/dist/commonjs/models/components/agentschedule.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/agentschedule.js +4 -5
  22. package/dist/commonjs/models/components/agentschedule.js.map +1 -1
  23. package/dist/commonjs/models/components/agentversion.d.ts +5 -3
  24. package/dist/commonjs/models/components/agentversion.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/agentversion.js +2 -3
  26. package/dist/commonjs/models/components/agentversion.js.map +1 -1
  27. package/dist/commonjs/models/components/createagentrequest.d.ts +5 -3
  28. package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/createagentrequest.js +2 -3
  30. package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
  31. package/dist/commonjs/models/components/createagentrunrequest.d.ts +5 -3
  32. package/dist/commonjs/models/components/createagentrunrequest.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/createagentrunrequest.js +2 -3
  34. package/dist/commonjs/models/components/createagentrunrequest.js.map +1 -1
  35. package/dist/commonjs/models/components/createagentschedulerequest.d.ts +5 -3
  36. package/dist/commonjs/models/components/createagentschedulerequest.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/createagentschedulerequest.js +2 -3
  38. package/dist/commonjs/models/components/createagentschedulerequest.js.map +1 -1
  39. package/dist/commonjs/models/components/index.d.ts +0 -1
  40. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/index.js +0 -1
  42. package/dist/commonjs/models/components/index.js.map +1 -1
  43. package/dist/commonjs/models/components/tooldefinition.d.ts +16 -11
  44. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/tooldefinition.js +10 -11
  46. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  47. package/dist/commonjs/models/components/updateagentrequest.d.ts +5 -3
  48. package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/updateagentrequest.js +2 -3
  50. package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
  51. package/dist/commonjs/models/components/updateagentschedulerequest.d.ts +2 -3
  52. package/dist/commonjs/models/components/updateagentschedulerequest.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/updateagentschedulerequest.js +2 -3
  54. package/dist/commonjs/models/components/updateagentschedulerequest.js.map +1 -1
  55. package/dist/commonjs/models/errors/errorenvelope.d.ts +2 -3
  56. package/dist/commonjs/models/errors/errorenvelope.d.ts.map +1 -1
  57. package/dist/commonjs/models/errors/errorenvelope.js +2 -3
  58. package/dist/commonjs/models/errors/errorenvelope.js.map +1 -1
  59. package/dist/esm/lib/config.d.ts +3 -3
  60. package/dist/esm/lib/config.js +3 -3
  61. package/dist/esm/mcp-server/mcp-server.js +1 -1
  62. package/dist/esm/mcp-server/server.js +1 -1
  63. package/dist/esm/models/components/agent.d.ts +5 -3
  64. package/dist/esm/models/components/agent.d.ts.map +1 -1
  65. package/dist/esm/models/components/agent.js +2 -3
  66. package/dist/esm/models/components/agent.js.map +1 -1
  67. package/dist/esm/models/components/agentconnector.d.ts +7 -5
  68. package/dist/esm/models/components/agentconnector.d.ts.map +1 -1
  69. package/dist/esm/models/components/agentconnector.js +4 -5
  70. package/dist/esm/models/components/agentconnector.js.map +1 -1
  71. package/dist/esm/models/components/agentrun.d.ts +11 -9
  72. package/dist/esm/models/components/agentrun.d.ts.map +1 -1
  73. package/dist/esm/models/components/agentrun.js +8 -9
  74. package/dist/esm/models/components/agentrun.js.map +1 -1
  75. package/dist/esm/models/components/agentschedule.d.ts +7 -5
  76. package/dist/esm/models/components/agentschedule.d.ts.map +1 -1
  77. package/dist/esm/models/components/agentschedule.js +4 -5
  78. package/dist/esm/models/components/agentschedule.js.map +1 -1
  79. package/dist/esm/models/components/agentversion.d.ts +5 -3
  80. package/dist/esm/models/components/agentversion.d.ts.map +1 -1
  81. package/dist/esm/models/components/agentversion.js +2 -3
  82. package/dist/esm/models/components/agentversion.js.map +1 -1
  83. package/dist/esm/models/components/createagentrequest.d.ts +5 -3
  84. package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
  85. package/dist/esm/models/components/createagentrequest.js +2 -3
  86. package/dist/esm/models/components/createagentrequest.js.map +1 -1
  87. package/dist/esm/models/components/createagentrunrequest.d.ts +5 -3
  88. package/dist/esm/models/components/createagentrunrequest.d.ts.map +1 -1
  89. package/dist/esm/models/components/createagentrunrequest.js +2 -3
  90. package/dist/esm/models/components/createagentrunrequest.js.map +1 -1
  91. package/dist/esm/models/components/createagentschedulerequest.d.ts +5 -3
  92. package/dist/esm/models/components/createagentschedulerequest.d.ts.map +1 -1
  93. package/dist/esm/models/components/createagentschedulerequest.js +2 -3
  94. package/dist/esm/models/components/createagentschedulerequest.js.map +1 -1
  95. package/dist/esm/models/components/index.d.ts +0 -1
  96. package/dist/esm/models/components/index.d.ts.map +1 -1
  97. package/dist/esm/models/components/index.js +0 -1
  98. package/dist/esm/models/components/index.js.map +1 -1
  99. package/dist/esm/models/components/tooldefinition.d.ts +16 -11
  100. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  101. package/dist/esm/models/components/tooldefinition.js +10 -11
  102. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  103. package/dist/esm/models/components/updateagentrequest.d.ts +5 -3
  104. package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
  105. package/dist/esm/models/components/updateagentrequest.js +2 -3
  106. package/dist/esm/models/components/updateagentrequest.js.map +1 -1
  107. package/dist/esm/models/components/updateagentschedulerequest.d.ts +2 -3
  108. package/dist/esm/models/components/updateagentschedulerequest.d.ts.map +1 -1
  109. package/dist/esm/models/components/updateagentschedulerequest.js +2 -3
  110. package/dist/esm/models/components/updateagentschedulerequest.js.map +1 -1
  111. package/dist/esm/models/errors/errorenvelope.d.ts +2 -3
  112. package/dist/esm/models/errors/errorenvelope.d.ts.map +1 -1
  113. package/dist/esm/models/errors/errorenvelope.js +2 -3
  114. package/dist/esm/models/errors/errorenvelope.js.map +1 -1
  115. package/jsr.json +1 -1
  116. package/package.json +1 -1
  117. package/src/lib/config.ts +3 -3
  118. package/src/mcp-server/mcp-server.ts +1 -1
  119. package/src/mcp-server/server.ts +1 -1
  120. package/src/models/components/agent.ts +7 -10
  121. package/src/models/components/agentconnector.ts +11 -14
  122. package/src/models/components/agentrun.ts +19 -22
  123. package/src/models/components/agentschedule.ts +11 -14
  124. package/src/models/components/agentversion.ts +7 -10
  125. package/src/models/components/createagentrequest.ts +7 -10
  126. package/src/models/components/createagentrunrequest.ts +7 -10
  127. package/src/models/components/createagentschedulerequest.ts +7 -10
  128. package/src/models/components/index.ts +0 -1
  129. package/src/models/components/tooldefinition.ts +26 -26
  130. package/src/models/components/updateagentrequest.ts +7 -10
  131. package/src/models/components/updateagentschedulerequest.ts +4 -10
  132. package/src/models/errors/errorenvelope.ts +4 -5
  133. package/dist/commonjs/models/components/jsonvalue.d.ts +0 -17
  134. package/dist/commonjs/models/components/jsonvalue.d.ts.map +0 -1
  135. package/dist/commonjs/models/components/jsonvalue.js +0 -68
  136. package/dist/commonjs/models/components/jsonvalue.js.map +0 -1
  137. package/dist/esm/models/components/jsonvalue.d.ts +0 -17
  138. package/dist/esm/models/components/jsonvalue.d.ts.map +0 -1
  139. package/dist/esm/models/components/jsonvalue.js +0 -30
  140. package/dist/esm/models/components/jsonvalue.js.map +0 -1
  141. package/src/models/components/jsonvalue.ts +0 -65
@@ -19,12 +19,6 @@ import {
19
19
  AgentTextConfiguration$Outbound,
20
20
  AgentTextConfiguration$outboundSchema,
21
21
  } from "./agenttextconfiguration.js";
22
- import {
23
- JsonValue,
24
- JsonValue$inboundSchema,
25
- JsonValue$Outbound,
26
- JsonValue$outboundSchema,
27
- } from "./jsonvalue.js";
28
22
  import {
29
23
  ToolDefinition,
30
24
  ToolDefinition$inboundSchema,
@@ -38,7 +32,10 @@ export type CreateAgentRequest = {
38
32
  model: string;
39
33
  instructions?: string | null | undefined;
40
34
  tools?: Array<ToolDefinition> | undefined;
41
- toolChoice?: JsonValue | null | undefined;
35
+ /**
36
+ * Arbitrary JSON value.
37
+ */
38
+ toolChoice?: any | undefined;
42
39
  parallelToolCalls?: boolean | undefined;
43
40
  maxToolCalls?: number | null | undefined;
44
41
  text?: AgentTextConfiguration | null | undefined;
@@ -57,7 +54,7 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
57
54
  model: z.string(),
58
55
  instructions: z.nullable(z.string()).optional(),
59
56
  tools: z.array(ToolDefinition$inboundSchema).optional(),
60
- tool_choice: z.nullable(JsonValue$inboundSchema).optional(),
57
+ tool_choice: z.any().optional(),
61
58
  parallel_tool_calls: z.boolean().default(true),
62
59
  max_tool_calls: z.nullable(z.number().int()).optional(),
63
60
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
@@ -77,7 +74,7 @@ export type CreateAgentRequest$Outbound = {
77
74
  model: string;
78
75
  instructions?: string | null | undefined;
79
76
  tools?: Array<ToolDefinition$Outbound> | undefined;
80
- tool_choice?: JsonValue$Outbound | null | undefined;
77
+ tool_choice?: any | undefined;
81
78
  parallel_tool_calls: boolean;
82
79
  max_tool_calls?: number | null | undefined;
83
80
  text?: AgentTextConfiguration$Outbound | null | undefined;
@@ -96,7 +93,7 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
96
93
  model: z.string(),
97
94
  instructions: z.nullable(z.string()).optional(),
98
95
  tools: z.array(ToolDefinition$outboundSchema).optional(),
99
- toolChoice: z.nullable(JsonValue$outboundSchema).optional(),
96
+ toolChoice: z.any().optional(),
100
97
  parallelToolCalls: z.boolean().default(true),
101
98
  maxToolCalls: z.nullable(z.number().int()).optional(),
102
99
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
@@ -16,12 +16,6 @@ import {
16
16
  AgentCompactionContextManagement$Outbound,
17
17
  AgentCompactionContextManagement$outboundSchema,
18
18
  } from "./agentcompactioncontextmanagement.js";
19
- import {
20
- JsonValue,
21
- JsonValue$inboundSchema,
22
- JsonValue$Outbound,
23
- JsonValue$outboundSchema,
24
- } from "./jsonvalue.js";
25
19
 
26
20
  export type CreateAgentRunRequestInput2 = {
27
21
  type?: string | undefined;
@@ -34,7 +28,10 @@ export type CreateAgentRunRequestInput =
34
28
 
35
29
  export type CreateAgentRunRequest = {
36
30
  input: string | Array<CreateAgentRunRequestInput2>;
37
- conversation?: JsonValue | null | undefined;
31
+ /**
32
+ * Arbitrary JSON value.
33
+ */
34
+ conversation?: any | undefined;
38
35
  previousResponseId?: string | undefined;
39
36
  /**
40
37
  * Context management strategies to apply during agent-run response generation. Supports compaction, which summarizes older conversation history when the context exceeds a token threshold.
@@ -148,7 +145,7 @@ export const CreateAgentRunRequest$inboundSchema: z.ZodType<
148
145
  z.string(),
149
146
  z.array(z.lazy(() => CreateAgentRunRequestInput2$inboundSchema)),
150
147
  ]),
151
- conversation: z.nullable(JsonValue$inboundSchema).optional(),
148
+ conversation: z.any().optional(),
152
149
  previous_response_id: z.string().optional(),
153
150
  context_management: z.array(AgentCompactionContextManagement$inboundSchema)
154
151
  .optional(),
@@ -162,7 +159,7 @@ export const CreateAgentRunRequest$inboundSchema: z.ZodType<
162
159
  /** @internal */
163
160
  export type CreateAgentRunRequest$Outbound = {
164
161
  input: string | Array<CreateAgentRunRequestInput2$Outbound>;
165
- conversation?: JsonValue$Outbound | null | undefined;
162
+ conversation?: any | undefined;
166
163
  previous_response_id?: string | undefined;
167
164
  context_management?:
168
165
  | Array<AgentCompactionContextManagement$Outbound>
@@ -180,7 +177,7 @@ export const CreateAgentRunRequest$outboundSchema: z.ZodType<
180
177
  z.string(),
181
178
  z.array(z.lazy(() => CreateAgentRunRequestInput2$outboundSchema)),
182
179
  ]),
183
- conversation: z.nullable(JsonValue$outboundSchema).optional(),
180
+ conversation: z.any().optional(),
184
181
  previousResponseId: z.string().optional(),
185
182
  contextManagement: z.array(AgentCompactionContextManagement$outboundSchema)
186
183
  .optional(),
@@ -22,12 +22,6 @@ import {
22
22
  AgentScheduleSpec$Outbound,
23
23
  AgentScheduleSpec$outboundSchema,
24
24
  } from "./agentschedulespec.js";
25
- import {
26
- JsonValue,
27
- JsonValue$inboundSchema,
28
- JsonValue$Outbound,
29
- JsonValue$outboundSchema,
30
- } from "./jsonvalue.js";
31
25
 
32
26
  export type Input2 = {
33
27
  type?: string | undefined;
@@ -40,7 +34,10 @@ export type CreateAgentScheduleRequest = {
40
34
  name?: string | undefined;
41
35
  schedule: AgentScheduleSpec;
42
36
  input: string | Array<Input2>;
43
- conversation?: JsonValue | null | undefined;
37
+ /**
38
+ * Arbitrary JSON value.
39
+ */
40
+ conversation?: any | undefined;
44
41
  previousResponseId?: string | undefined;
45
42
  /**
46
43
  * Context management strategies to apply during agent-run response generation. Supports compaction, which summarizes older conversation history when the context exceeds a token threshold.
@@ -140,7 +137,7 @@ export const CreateAgentScheduleRequest$inboundSchema: z.ZodType<
140
137
  name: z.string().optional(),
141
138
  schedule: AgentScheduleSpec$inboundSchema,
142
139
  input: z.union([z.string(), z.array(z.lazy(() => Input2$inboundSchema))]),
143
- conversation: z.nullable(JsonValue$inboundSchema).optional(),
140
+ conversation: z.any().optional(),
144
141
  previous_response_id: z.string().optional(),
145
142
  context_management: z.array(AgentCompactionContextManagement$inboundSchema)
146
143
  .optional(),
@@ -156,7 +153,7 @@ export type CreateAgentScheduleRequest$Outbound = {
156
153
  name?: string | undefined;
157
154
  schedule: AgentScheduleSpec$Outbound;
158
155
  input: string | Array<Input2$Outbound>;
159
- conversation?: JsonValue$Outbound | null | undefined;
156
+ conversation?: any | undefined;
160
157
  previous_response_id?: string | undefined;
161
158
  context_management?:
162
159
  | Array<AgentCompactionContextManagement$Outbound>
@@ -173,7 +170,7 @@ export const CreateAgentScheduleRequest$outboundSchema: z.ZodType<
173
170
  name: z.string().optional(),
174
171
  schedule: AgentScheduleSpec$outboundSchema,
175
172
  input: z.union([z.string(), z.array(z.lazy(() => Input2$outboundSchema))]),
176
- conversation: z.nullable(JsonValue$outboundSchema).optional(),
173
+ conversation: z.any().optional(),
177
174
  previousResponseId: z.string().optional(),
178
175
  contextManagement: z.array(AgentCompactionContextManagement$outboundSchema)
179
176
  .optional(),
@@ -290,7 +290,6 @@ export * from "./itemreferencewithid.js";
290
290
  export * from "./jobstatus.js";
291
291
  export * from "./jsonobjectresponseformat.js";
292
292
  export * from "./jsonschemaresponseformat.js";
293
- export * from "./jsonvalue.js";
294
293
  export * from "./keypressaction.js";
295
294
  export * from "./leakageconfig.js";
296
295
  export * from "./leakageguardrail.js";
@@ -20,12 +20,6 @@ import {
20
20
  FileSearchCompoundFilter$Outbound,
21
21
  FileSearchCompoundFilter$outboundSchema,
22
22
  } from "./filesearchcompoundfilter.js";
23
- import {
24
- JsonValue,
25
- JsonValue$inboundSchema,
26
- JsonValue$Outbound,
27
- JsonValue$outboundSchema,
28
- } from "./jsonvalue.js";
29
23
  import {
30
24
  MCPToolFilter,
31
25
  MCPToolFilter$inboundSchema,
@@ -57,8 +51,11 @@ export type EnvironmentMemoryStores = {
57
51
  export type Environment2 = {
58
52
  type: "container_reference";
59
53
  containerId: string;
60
- networkPolicy?: JsonValue | null | undefined;
61
- skills?: Array<JsonValue | null> | undefined;
54
+ /**
55
+ * Arbitrary JSON value.
56
+ */
57
+ networkPolicy?: any | undefined;
58
+ skills?: Array<any> | undefined;
62
59
  memoryStores?: Array<EnvironmentMemoryStores> | undefined;
63
60
  };
64
61
 
@@ -78,8 +75,11 @@ export type MemoryStores = {
78
75
 
79
76
  export type Environment1 = {
80
77
  type: "container_auto";
81
- networkPolicy?: JsonValue | null | undefined;
82
- skills?: Array<JsonValue | null> | undefined;
78
+ /**
79
+ * Arbitrary JSON value.
80
+ */
81
+ networkPolicy?: any | undefined;
82
+ skills?: Array<any> | undefined;
83
83
  memoryStores?: Array<MemoryStores> | undefined;
84
84
  };
85
85
 
@@ -234,7 +234,7 @@ export type ToolDefinition2 = {
234
234
  description?: string | undefined;
235
235
  strict?: boolean | undefined;
236
236
  deferLoading?: boolean | undefined;
237
- parameters: { [k: string]: JsonValue | null };
237
+ parameters: { [k: string]: any };
238
238
  };
239
239
 
240
240
  export const ToolDefinitionType = {
@@ -373,8 +373,8 @@ export const Environment2$inboundSchema: z.ZodType<
373
373
  > = z.object({
374
374
  type: z.literal("container_reference"),
375
375
  container_id: z.string(),
376
- network_policy: z.nullable(JsonValue$inboundSchema).optional(),
377
- skills: z.array(z.nullable(JsonValue$inboundSchema)).optional(),
376
+ network_policy: z.any().optional(),
377
+ skills: z.array(z.any()).optional(),
378
378
  memory_stores: z.array(z.lazy(() => EnvironmentMemoryStores$inboundSchema))
379
379
  .optional(),
380
380
  }).transform((v) => {
@@ -388,8 +388,8 @@ export const Environment2$inboundSchema: z.ZodType<
388
388
  export type Environment2$Outbound = {
389
389
  type: "container_reference";
390
390
  container_id: string;
391
- network_policy?: JsonValue$Outbound | null | undefined;
392
- skills?: Array<JsonValue$Outbound | null> | undefined;
391
+ network_policy?: any | undefined;
392
+ skills?: Array<any> | undefined;
393
393
  memory_stores?: Array<EnvironmentMemoryStores$Outbound> | undefined;
394
394
  };
395
395
 
@@ -401,8 +401,8 @@ export const Environment2$outboundSchema: z.ZodType<
401
401
  > = z.object({
402
402
  type: z.literal("container_reference"),
403
403
  containerId: z.string(),
404
- networkPolicy: z.nullable(JsonValue$outboundSchema).optional(),
405
- skills: z.array(z.nullable(JsonValue$outboundSchema)).optional(),
404
+ networkPolicy: z.any().optional(),
405
+ skills: z.array(z.any()).optional(),
406
406
  memoryStores: z.array(z.lazy(() => EnvironmentMemoryStores$outboundSchema))
407
407
  .optional(),
408
408
  }).transform((v) => {
@@ -497,8 +497,8 @@ export const Environment1$inboundSchema: z.ZodType<
497
497
  unknown
498
498
  > = z.object({
499
499
  type: z.literal("container_auto"),
500
- network_policy: z.nullable(JsonValue$inboundSchema).optional(),
501
- skills: z.array(z.nullable(JsonValue$inboundSchema)).optional(),
500
+ network_policy: z.any().optional(),
501
+ skills: z.array(z.any()).optional(),
502
502
  memory_stores: z.array(z.lazy(() => MemoryStores$inboundSchema)).optional(),
503
503
  }).transform((v) => {
504
504
  return remap$(v, {
@@ -509,8 +509,8 @@ export const Environment1$inboundSchema: z.ZodType<
509
509
  /** @internal */
510
510
  export type Environment1$Outbound = {
511
511
  type: "container_auto";
512
- network_policy?: JsonValue$Outbound | null | undefined;
513
- skills?: Array<JsonValue$Outbound | null> | undefined;
512
+ network_policy?: any | undefined;
513
+ skills?: Array<any> | undefined;
514
514
  memory_stores?: Array<MemoryStores$Outbound> | undefined;
515
515
  };
516
516
 
@@ -521,8 +521,8 @@ export const Environment1$outboundSchema: z.ZodType<
521
521
  Environment1
522
522
  > = z.object({
523
523
  type: z.literal("container_auto"),
524
- networkPolicy: z.nullable(JsonValue$outboundSchema).optional(),
525
- skills: z.array(z.nullable(JsonValue$outboundSchema)).optional(),
524
+ networkPolicy: z.any().optional(),
525
+ skills: z.array(z.any()).optional(),
526
526
  memoryStores: z.array(z.lazy(() => MemoryStores$outboundSchema)).optional(),
527
527
  }).transform((v) => {
528
528
  return remap$(v, {
@@ -1490,7 +1490,7 @@ export const ToolDefinition2$inboundSchema: z.ZodType<
1490
1490
  description: z.string().optional(),
1491
1491
  strict: z.boolean().optional(),
1492
1492
  defer_loading: z.boolean().optional(),
1493
- parameters: z.record(z.nullable(JsonValue$inboundSchema)),
1493
+ parameters: z.record(z.any()),
1494
1494
  }).transform((v) => {
1495
1495
  return remap$(v, {
1496
1496
  "defer_loading": "deferLoading",
@@ -1503,7 +1503,7 @@ export type ToolDefinition2$Outbound = {
1503
1503
  description?: string | undefined;
1504
1504
  strict?: boolean | undefined;
1505
1505
  defer_loading?: boolean | undefined;
1506
- parameters: { [k: string]: JsonValue$Outbound | null };
1506
+ parameters: { [k: string]: any };
1507
1507
  };
1508
1508
 
1509
1509
  /** @internal */
@@ -1517,7 +1517,7 @@ export const ToolDefinition2$outboundSchema: z.ZodType<
1517
1517
  description: z.string().optional(),
1518
1518
  strict: z.boolean().optional(),
1519
1519
  deferLoading: z.boolean().optional(),
1520
- parameters: z.record(z.nullable(JsonValue$outboundSchema)),
1520
+ parameters: z.record(z.any()),
1521
1521
  }).transform((v) => {
1522
1522
  return remap$(v, {
1523
1523
  deferLoading: "defer_loading",
@@ -19,12 +19,6 @@ import {
19
19
  AgentTextConfiguration$Outbound,
20
20
  AgentTextConfiguration$outboundSchema,
21
21
  } from "./agenttextconfiguration.js";
22
- import {
23
- JsonValue,
24
- JsonValue$inboundSchema,
25
- JsonValue$Outbound,
26
- JsonValue$outboundSchema,
27
- } from "./jsonvalue.js";
28
22
  import {
29
23
  ToolDefinition,
30
24
  ToolDefinition$inboundSchema,
@@ -38,7 +32,10 @@ export type UpdateAgentRequest = {
38
32
  model?: string | undefined;
39
33
  instructions?: string | null | undefined;
40
34
  tools?: Array<ToolDefinition> | undefined;
41
- toolChoice?: JsonValue | null | undefined;
35
+ /**
36
+ * Arbitrary JSON value.
37
+ */
38
+ toolChoice?: any | undefined;
42
39
  parallelToolCalls?: boolean | undefined;
43
40
  maxToolCalls?: number | null | undefined;
44
41
  text?: AgentTextConfiguration | null | undefined;
@@ -57,7 +54,7 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
57
54
  model: z.string().optional(),
58
55
  instructions: z.nullable(z.string()).optional(),
59
56
  tools: z.array(ToolDefinition$inboundSchema).optional(),
60
- tool_choice: z.nullable(JsonValue$inboundSchema).optional(),
57
+ tool_choice: z.any().optional(),
61
58
  parallel_tool_calls: z.boolean().optional(),
62
59
  max_tool_calls: z.nullable(z.number().int()).optional(),
63
60
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
@@ -77,7 +74,7 @@ export type UpdateAgentRequest$Outbound = {
77
74
  model?: string | undefined;
78
75
  instructions?: string | null | undefined;
79
76
  tools?: Array<ToolDefinition$Outbound> | undefined;
80
- tool_choice?: JsonValue$Outbound | null | undefined;
77
+ tool_choice?: any | undefined;
81
78
  parallel_tool_calls?: boolean | undefined;
82
79
  max_tool_calls?: number | null | undefined;
83
80
  text?: AgentTextConfiguration$Outbound | null | undefined;
@@ -96,7 +93,7 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
96
93
  model: z.string().optional(),
97
94
  instructions: z.nullable(z.string()).optional(),
98
95
  tools: z.array(ToolDefinition$outboundSchema).optional(),
99
- toolChoice: z.nullable(JsonValue$outboundSchema).optional(),
96
+ toolChoice: z.any().optional(),
100
97
  parallelToolCalls: z.boolean().optional(),
101
98
  maxToolCalls: z.nullable(z.number().int()).optional(),
102
99
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
@@ -22,12 +22,6 @@ import {
22
22
  AgentScheduleSpec$Outbound,
23
23
  AgentScheduleSpec$outboundSchema,
24
24
  } from "./agentschedulespec.js";
25
- import {
26
- JsonValue,
27
- JsonValue$inboundSchema,
28
- JsonValue$Outbound,
29
- JsonValue$outboundSchema,
30
- } from "./jsonvalue.js";
31
25
 
32
26
  export type UpdateAgentScheduleRequestInput2 = {
33
27
  type?: string | undefined;
@@ -42,7 +36,7 @@ export type UpdateAgentScheduleRequest = {
42
36
  name?: string | null | undefined;
43
37
  schedule?: AgentScheduleSpec | undefined;
44
38
  input?: string | Array<UpdateAgentScheduleRequestInput2> | undefined;
45
- conversation?: JsonValue | null | undefined;
39
+ conversation?: any | null | undefined;
46
40
  previousResponseId?: string | null | undefined;
47
41
  /**
48
42
  * Context management strategies to apply during agent-run response generation. Set to null to clear the schedule-level strategies.
@@ -163,7 +157,7 @@ export const UpdateAgentScheduleRequest$inboundSchema: z.ZodType<
163
157
  z.string(),
164
158
  z.array(z.lazy(() => UpdateAgentScheduleRequestInput2$inboundSchema)),
165
159
  ]).optional(),
166
- conversation: z.nullable(JsonValue$inboundSchema).optional(),
160
+ conversation: z.nullable(z.any()).optional(),
167
161
  previous_response_id: z.nullable(z.string()).optional(),
168
162
  context_management: z.nullable(
169
163
  z.array(AgentCompactionContextManagement$inboundSchema),
@@ -180,7 +174,7 @@ export type UpdateAgentScheduleRequest$Outbound = {
180
174
  name?: string | null | undefined;
181
175
  schedule?: AgentScheduleSpec$Outbound | undefined;
182
176
  input?: string | Array<UpdateAgentScheduleRequestInput2$Outbound> | undefined;
183
- conversation?: JsonValue$Outbound | null | undefined;
177
+ conversation?: any | null | undefined;
184
178
  previous_response_id?: string | null | undefined;
185
179
  context_management?:
186
180
  | Array<AgentCompactionContextManagement$Outbound>
@@ -201,7 +195,7 @@ export const UpdateAgentScheduleRequest$outboundSchema: z.ZodType<
201
195
  z.string(),
202
196
  z.array(z.lazy(() => UpdateAgentScheduleRequestInput2$outboundSchema)),
203
197
  ]).optional(),
204
- conversation: z.nullable(JsonValue$outboundSchema).optional(),
198
+ conversation: z.nullable(z.any()).optional(),
205
199
  previousResponseId: z.nullable(z.string()).optional(),
206
200
  contextManagement: z.nullable(
207
201
  z.array(AgentCompactionContextManagement$outboundSchema),
@@ -5,13 +5,12 @@
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as components from "../components/index.js";
9
8
  import { SDKError } from "./sdkerror.js";
10
9
  import { SDKValidationError } from "./sdkvalidationerror.js";
11
10
 
12
11
  export type ErrorT = {
13
12
  message: string;
14
- details?: components.JsonValue | null | undefined;
13
+ details?: any | null | undefined;
15
14
  };
16
15
 
17
16
  export type ErrorEnvelopeData = {
@@ -42,12 +41,12 @@ export class ErrorEnvelope extends SDKError {
42
41
  export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
43
42
  .object({
44
43
  message: z.string(),
45
- details: z.nullable(components.JsonValue$inboundSchema).optional(),
44
+ details: z.nullable(z.any()).optional(),
46
45
  });
47
46
  /** @internal */
48
47
  export type ErrorT$Outbound = {
49
48
  message: string;
50
- details?: components.JsonValue$Outbound | null | undefined;
49
+ details?: any | null | undefined;
51
50
  };
52
51
 
53
52
  /** @internal */
@@ -57,7 +56,7 @@ export const ErrorT$outboundSchema: z.ZodType<
57
56
  ErrorT
58
57
  > = z.object({
59
58
  message: z.string(),
60
- details: z.nullable(components.JsonValue$outboundSchema).optional(),
59
+ details: z.nullable(z.any()).optional(),
61
60
  });
62
61
 
63
62
  export function errorToJSON(errorT: ErrorT): string {
@@ -1,17 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type JsonValue = string | number | number | boolean | Array<JsonValue | null> | {
5
- [k: string]: JsonValue | null;
6
- };
7
- /** @internal */
8
- export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
9
- /** @internal */
10
- export type JsonValue$Outbound = string | number | number | boolean | Array<JsonValue$Outbound | null> | {
11
- [k: string]: JsonValue$Outbound | null;
12
- };
13
- /** @internal */
14
- export declare const JsonValue$outboundSchema: z.ZodType<JsonValue$Outbound, z.ZodTypeDef, JsonValue>;
15
- export declare function jsonValueToJSON(jsonValue: JsonValue): string;
16
- export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
17
- //# sourceMappingURL=jsonvalue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonvalue.d.ts","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GACvB;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,GAChC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAQT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AACD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
@@ -1,68 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.JsonValue$outboundSchema = exports.JsonValue$inboundSchema = void 0;
40
- exports.jsonValueToJSON = jsonValueToJSON;
41
- exports.jsonValueFromJSON = jsonValueFromJSON;
42
- const z = __importStar(require("zod/v3"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- /** @internal */
45
- exports.JsonValue$inboundSchema = z.union([
46
- z.string(),
47
- z.number(),
48
- z.number().int(),
49
- z.boolean(),
50
- z.array(z.nullable(z.lazy(() => exports.JsonValue$inboundSchema))),
51
- z.record(z.nullable(z.lazy(() => exports.JsonValue$inboundSchema))),
52
- ]);
53
- /** @internal */
54
- exports.JsonValue$outboundSchema = z.union([
55
- z.string(),
56
- z.number(),
57
- z.number().int(),
58
- z.boolean(),
59
- z.array(z.nullable(z.lazy(() => exports.JsonValue$outboundSchema))),
60
- z.record(z.nullable(z.lazy(() => exports.JsonValue$outboundSchema))),
61
- ]);
62
- function jsonValueToJSON(jsonValue) {
63
- return JSON.stringify(exports.JsonValue$outboundSchema.parse(jsonValue));
64
- }
65
- function jsonValueFromJSON(jsonString) {
66
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
67
- }
68
- //# sourceMappingURL=jsonvalue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonvalue.js","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,0CAEC;AACD,8CAQC;AA5DD,0CAA4B;AAC5B,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AACD,SAAgB,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
@@ -1,17 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type JsonValue = string | number | number | boolean | Array<JsonValue | null> | {
5
- [k: string]: JsonValue | null;
6
- };
7
- /** @internal */
8
- export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
9
- /** @internal */
10
- export type JsonValue$Outbound = string | number | number | boolean | Array<JsonValue$Outbound | null> | {
11
- [k: string]: JsonValue$Outbound | null;
12
- };
13
- /** @internal */
14
- export declare const JsonValue$outboundSchema: z.ZodType<JsonValue$Outbound, z.ZodTypeDef, JsonValue>;
15
- export declare function jsonValueToJSON(jsonValue: JsonValue): string;
16
- export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
17
- //# sourceMappingURL=jsonvalue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonvalue.d.ts","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GACvB;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,GAChC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAQT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AACD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
@@ -1,30 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { safeParse } from "../../lib/schemas.js";
6
- /** @internal */
7
- export const JsonValue$inboundSchema = z.union([
8
- z.string(),
9
- z.number(),
10
- z.number().int(),
11
- z.boolean(),
12
- z.array(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
13
- z.record(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
14
- ]);
15
- /** @internal */
16
- export const JsonValue$outboundSchema = z.union([
17
- z.string(),
18
- z.number(),
19
- z.number().int(),
20
- z.boolean(),
21
- z.array(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
22
- z.record(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
23
- ]);
24
- export function jsonValueToJSON(jsonValue) {
25
- return JSON.stringify(JsonValue$outboundSchema.parse(jsonValue));
26
- }
27
- export function jsonValueFromJSON(jsonString) {
28
- return safeParse(jsonString, (x) => JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
29
- }
30
- //# sourceMappingURL=jsonvalue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonvalue.js","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AACD,MAAM,UAAU,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
@@ -1,65 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type JsonValue =
11
- | string
12
- | number
13
- | number
14
- | boolean
15
- | Array<JsonValue | null>
16
- | { [k: string]: JsonValue | null };
17
-
18
- /** @internal */
19
- export const JsonValue$inboundSchema: z.ZodType<
20
- JsonValue,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.union([
24
- z.string(),
25
- z.number(),
26
- z.number().int(),
27
- z.boolean(),
28
- z.array(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
29
- z.record(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
30
- ]);
31
- /** @internal */
32
- export type JsonValue$Outbound =
33
- | string
34
- | number
35
- | number
36
- | boolean
37
- | Array<JsonValue$Outbound | null>
38
- | { [k: string]: JsonValue$Outbound | null };
39
-
40
- /** @internal */
41
- export const JsonValue$outboundSchema: z.ZodType<
42
- JsonValue$Outbound,
43
- z.ZodTypeDef,
44
- JsonValue
45
- > = z.union([
46
- z.string(),
47
- z.number(),
48
- z.number().int(),
49
- z.boolean(),
50
- z.array(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
51
- z.record(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
52
- ]);
53
-
54
- export function jsonValueToJSON(jsonValue: JsonValue): string {
55
- return JSON.stringify(JsonValue$outboundSchema.parse(jsonValue));
56
- }
57
- export function jsonValueFromJSON(
58
- jsonString: string,
59
- ): SafeParseResult<JsonValue, SDKValidationError> {
60
- return safeParse(
61
- jsonString,
62
- (x) => JsonValue$inboundSchema.parse(JSON.parse(x)),
63
- `Failed to parse 'JsonValue' from JSON`,
64
- );
65
- }