@orq-ai/node 4.17.0-rc.27 → 4.17.0-rc.29

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 (154) hide show
  1. package/funcs/alertsCreate.d.ts +1 -1
  2. package/funcs/alertsCreate.js +1 -1
  3. package/funcs/alertsList.js +1 -0
  4. package/funcs/alertsList.js.map +1 -1
  5. package/funcs/alertsUpdate.d.ts +1 -1
  6. package/funcs/alertsUpdate.js +1 -1
  7. package/funcs/routerClassifyCreate.d.ts +3 -0
  8. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  9. package/funcs/routerClassifyCreate.js +3 -0
  10. package/funcs/routerClassifyCreate.js.map +1 -1
  11. package/funcs/routerDecisionsCreate.d.ts +3 -0
  12. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  13. package/funcs/routerDecisionsCreate.js +3 -0
  14. package/funcs/routerDecisionsCreate.js.map +1 -1
  15. package/funcs/telemetryListCapabilities.js +2 -0
  16. package/funcs/telemetryListCapabilities.js.map +1 -1
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +2 -2
  19. package/lib/config.js +2 -2
  20. package/models/components/alert.d.ts +3 -1
  21. package/models/components/alert.d.ts.map +1 -1
  22. package/models/components/alert.js +2 -0
  23. package/models/components/alert.js.map +1 -1
  24. package/models/components/alertquery.d.ts +16 -4
  25. package/models/components/alertquery.d.ts.map +1 -1
  26. package/models/components/alertquery.js +5 -0
  27. package/models/components/alertquery.js.map +1 -1
  28. package/models/components/alertscope.d.ts +13 -0
  29. package/models/components/alertscope.d.ts.map +1 -0
  30. package/models/components/alertscope.js +51 -0
  31. package/models/components/alertscope.js.map +1 -0
  32. package/models/components/alerttelemetrysource.d.ts +13 -0
  33. package/models/components/alerttelemetrysource.d.ts.map +1 -0
  34. package/models/components/alerttelemetrysource.js +50 -0
  35. package/models/components/alerttelemetrysource.js.map +1 -0
  36. package/models/components/alerttrigger.d.ts +8 -0
  37. package/models/components/alerttrigger.d.ts.map +1 -1
  38. package/models/components/alerttrigger.js +2 -0
  39. package/models/components/alerttrigger.js.map +1 -1
  40. package/models/components/audiocontentpartschema.d.ts +5 -5
  41. package/models/components/audiocontentpartschema.d.ts.map +1 -1
  42. package/models/components/audiocontentpartschema.js +6 -7
  43. package/models/components/audiocontentpartschema.js.map +1 -1
  44. package/models/components/classifyanswer.d.ts +2 -1
  45. package/models/components/classifyanswer.d.ts.map +1 -1
  46. package/models/components/classifyanswer.js +2 -0
  47. package/models/components/classifyanswer.js.map +1 -1
  48. package/models/components/classifyasset.d.ts +52 -0
  49. package/models/components/classifyasset.d.ts.map +1 -0
  50. package/models/components/classifyasset.js +75 -0
  51. package/models/components/classifyasset.js.map +1 -0
  52. package/models/components/classifybox.d.ts +25 -0
  53. package/models/components/classifybox.d.ts.map +1 -0
  54. package/models/components/classifybox.js +53 -0
  55. package/models/components/classifybox.js.map +1 -0
  56. package/models/components/classifyboxanswer.d.ts +16 -0
  57. package/models/components/classifyboxanswer.d.ts.map +1 -0
  58. package/models/components/classifyboxanswer.js +53 -0
  59. package/models/components/classifyboxanswer.js.map +1 -0
  60. package/models/components/classifychoiceanswer.d.ts +1 -1
  61. package/models/components/classifyscoreanswer.d.ts +1 -1
  62. package/models/components/createalertrequest.d.ts +6 -3
  63. package/models/components/createalertrequest.d.ts.map +1 -1
  64. package/models/components/createalertrequest.js +3 -1
  65. package/models/components/createalertrequest.js.map +1 -1
  66. package/models/components/index.d.ts +5 -0
  67. package/models/components/index.d.ts.map +1 -1
  68. package/models/components/index.js +5 -0
  69. package/models/components/index.js.map +1 -1
  70. package/models/components/reasoningpart.js +1 -1
  71. package/models/components/updatealertrequest.d.ts +4 -1
  72. package/models/components/updatealertrequest.d.ts.map +1 -1
  73. package/models/components/updatealertrequest.js.map +1 -1
  74. package/models/operations/alertlist.d.ts +9 -0
  75. package/models/operations/alertlist.d.ts.map +1 -1
  76. package/models/operations/alertlist.js +2 -0
  77. package/models/operations/alertlist.js.map +1 -1
  78. package/models/operations/createclassify.d.ts +118 -17
  79. package/models/operations/createclassify.d.ts.map +1 -1
  80. package/models/operations/createclassify.js +41 -5
  81. package/models/operations/createclassify.js.map +1 -1
  82. package/models/operations/createdecisions.d.ts +124 -23
  83. package/models/operations/createdecisions.d.ts.map +1 -1
  84. package/models/operations/createdecisions.js +48 -10
  85. package/models/operations/createdecisions.js.map +1 -1
  86. package/models/operations/createtool.js +4 -4
  87. package/models/operations/getalltools.js +4 -4
  88. package/models/operations/getv2humanevalsets.js +2 -2
  89. package/models/operations/getv2humanevalsetsid.js +2 -2
  90. package/models/operations/listdeploymentversions.js +1 -1
  91. package/models/operations/patchv2humanevalsetsid.js +2 -2
  92. package/models/operations/postv2feedbackevaluation.js +4 -4
  93. package/models/operations/postv2humanevalsets.js +2 -2
  94. package/models/operations/retrievetool.js +4 -4
  95. package/models/operations/runagent.js +1 -1
  96. package/models/operations/streamrunagent.js +1 -1
  97. package/models/operations/telemetrylistcapabilities.d.ts +16 -0
  98. package/models/operations/telemetrylistcapabilities.d.ts.map +1 -1
  99. package/models/operations/telemetrylistcapabilities.js +8 -0
  100. package/models/operations/telemetrylistcapabilities.js.map +1 -1
  101. package/models/operations/updatetool.js +4 -4
  102. package/package.json +3 -3
  103. package/sdk/alerts.d.ts +2 -2
  104. package/sdk/alerts.js +2 -2
  105. package/sdk/classify.d.ts +3 -0
  106. package/sdk/classify.d.ts.map +1 -1
  107. package/sdk/classify.js +3 -0
  108. package/sdk/classify.js.map +1 -1
  109. package/sdk/decisions.d.ts +3 -0
  110. package/sdk/decisions.d.ts.map +1 -1
  111. package/sdk/decisions.js +3 -0
  112. package/sdk/decisions.js.map +1 -1
  113. package/src/funcs/alertsCreate.ts +1 -1
  114. package/src/funcs/alertsList.ts +1 -0
  115. package/src/funcs/alertsUpdate.ts +1 -1
  116. package/src/funcs/routerClassifyCreate.ts +3 -0
  117. package/src/funcs/routerDecisionsCreate.ts +3 -0
  118. package/src/funcs/telemetryListCapabilities.ts +2 -0
  119. package/src/lib/config.ts +2 -2
  120. package/src/models/components/alert.ts +4 -1
  121. package/src/models/components/alertquery.ts +24 -4
  122. package/src/models/components/alertscope.ts +20 -0
  123. package/src/models/components/alerttelemetrysource.ts +22 -0
  124. package/src/models/components/alerttrigger.ts +9 -0
  125. package/src/models/components/audiocontentpartschema.ts +13 -9
  126. package/src/models/components/classifyanswer.ts +6 -0
  127. package/src/models/components/classifyasset.ts +81 -0
  128. package/src/models/components/classifybox.ts +49 -0
  129. package/src/models/components/classifyboxanswer.ts +39 -0
  130. package/src/models/components/classifychoiceanswer.ts +1 -1
  131. package/src/models/components/classifyscoreanswer.ts +1 -1
  132. package/src/models/components/createalertrequest.ts +8 -4
  133. package/src/models/components/index.ts +5 -0
  134. package/src/models/components/reasoningpart.ts +1 -1
  135. package/src/models/components/updatealertrequest.ts +4 -1
  136. package/src/models/operations/alertlist.ts +10 -0
  137. package/src/models/operations/createclassify.ts +169 -21
  138. package/src/models/operations/createdecisions.ts +197 -32
  139. package/src/models/operations/createtool.ts +4 -4
  140. package/src/models/operations/getalltools.ts +4 -4
  141. package/src/models/operations/getv2humanevalsets.ts +2 -2
  142. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  143. package/src/models/operations/listdeploymentversions.ts +1 -1
  144. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  145. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  146. package/src/models/operations/postv2humanevalsets.ts +2 -2
  147. package/src/models/operations/retrievetool.ts +4 -4
  148. package/src/models/operations/runagent.ts +1 -1
  149. package/src/models/operations/streamrunagent.ts +1 -1
  150. package/src/models/operations/telemetrylistcapabilities.ts +24 -0
  151. package/src/models/operations/updatetool.ts +4 -4
  152. package/src/sdk/alerts.ts +2 -2
  153. package/src/sdk/classify.ts +3 -0
  154. package/src/sdk/decisions.ts +3 -0
@@ -9,6 +9,25 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ /**
13
+ * The evaluation prompt for this question. A string, an object or an array.
14
+ */
15
+ export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions =
16
+ | string
17
+ | { [k: string]: any }
18
+ | Array<any>;
19
+
20
+ /**
21
+ * Beta, TypeSafe jev-preview only. Locates one target in an image from assets and returns its bounding box. Always returns a box; pair it with a noul question to check presence.
22
+ */
23
+ export type QuestionsBoxQuestion = {
24
+ /**
25
+ * The evaluation prompt for this question. A string, an object or an array.
26
+ */
27
+ instructions: string | { [k: string]: any } | Array<any>;
28
+ type: "box";
29
+ };
30
+
12
31
  /**
13
32
  * The evaluation prompt for this question. A string, an object or an array.
14
33
  */
@@ -22,9 +41,9 @@ export type CreateDecisionsQuestionsRouterDecisionsRequestInstructions =
22
41
  */
23
42
  export type QuestionsScoreQuestion = {
24
43
  /**
25
- * Ordered level descriptions from lowest to highest. At least two levels.
44
+ * Ordered level descriptions from lowest to highest. At least two levels. Each level can be a string, an object or an array.
26
45
  */
27
- criteria: Array<string>;
46
+ criteria: Array<any>;
28
47
  /**
29
48
  * The evaluation prompt for this question. A string, an object or an array.
30
49
  */
@@ -32,6 +51,13 @@ export type QuestionsScoreQuestion = {
32
51
  type: "score";
33
52
  };
34
53
 
54
+ /**
55
+ * The option description, or null.
56
+ */
57
+ export type CreateDecisionsQuestionsRouterDecisionsCriteria = string | {
58
+ [k: string]: any;
59
+ } | Array<any>;
60
+
35
61
  /**
36
62
  * The evaluation prompt for this question. A string, an object or an array.
37
63
  */
@@ -44,9 +70,9 @@ export type CreateDecisionsQuestionsRouterDecisionsInstructions = string | {
44
70
  */
45
71
  export type QuestionsChoiceQuestion = {
46
72
  /**
47
- * Options keyed by name, each mapped to a description or null.
73
+ * Options keyed by name, each mapped to a description or null. A description can be a string, an object or an array.
48
74
  */
49
- criteria: { [k: string]: string | null };
75
+ criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
50
76
  /**
51
77
  * The evaluation prompt for this question. A string, an object or an array.
52
78
  */
@@ -54,12 +80,28 @@ export type QuestionsChoiceQuestion = {
54
80
  type: "choice";
55
81
  };
56
82
 
83
+ /**
84
+ * What false means. A string, an object or an array.
85
+ */
86
+ export type QuestionsFalse = string | { [k: string]: any } | Array<any>;
87
+
88
+ /**
89
+ * What true means. A string, an object or an array.
90
+ */
91
+ export type QuestionsTrue = string | { [k: string]: any } | Array<any>;
92
+
57
93
  /**
58
94
  * Optional descriptions of what true and false mean.
59
95
  */
60
- export type QuestionsCriteria = {
61
- false?: string | undefined;
62
- true?: string | undefined;
96
+ export type CreateDecisionsQuestionsCriteria = {
97
+ /**
98
+ * What false means. A string, an object or an array.
99
+ */
100
+ false?: string | { [k: string]: any } | Array<any> | undefined;
101
+ /**
102
+ * What true means. A string, an object or an array.
103
+ */
104
+ true?: string | { [k: string]: any } | Array<any> | undefined;
63
105
  };
64
106
 
65
107
  /**
@@ -77,7 +119,7 @@ export type QuestionsNoulQuestion = {
77
119
  /**
78
120
  * Optional descriptions of what true and false mean.
79
121
  */
80
- criteria?: QuestionsCriteria | undefined;
122
+ criteria?: CreateDecisionsQuestionsCriteria | undefined;
81
123
  /**
82
124
  * The evaluation prompt for this question. A string, an object or an array.
83
125
  */
@@ -88,21 +130,26 @@ export type QuestionsNoulQuestion = {
88
130
  export type CreateDecisionsQuestions =
89
131
  | QuestionsNoulQuestion
90
132
  | QuestionsChoiceQuestion
91
- | QuestionsScoreQuestion;
133
+ | QuestionsScoreQuestion
134
+ | QuestionsBoxQuestion;
92
135
 
93
136
  /**
94
- * The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
137
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
95
138
  */
96
139
  export type CreateDecisionsState = string | { [k: string]: any } | Array<any>;
97
140
 
98
141
  export type CreateDecisionsRequestBody = {
142
+ /**
143
+ * Beta, TypeSafe models only. Inline images keyed by a reference string. Write the reference in state, instructions or criteria wherever the image belongs; every asset must be referenced. Required for box questions.
144
+ */
145
+ assets?: { [k: string]: components.ClassifyAsset } | undefined;
99
146
  cache?: components.ClassifyCacheConfig | undefined;
100
147
  /**
101
148
  * HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
102
149
  */
103
150
  fallbackOnCodes?: Array<number> | null | undefined;
104
151
  /**
105
- * Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Image requests require native OpenAI image-capable fallbacks.
152
+ * Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Requests with images in state require native OpenAI image-capable fallbacks; requests with assets or box questions require TypeSafe fallbacks.
106
153
  */
107
154
  fallbacks?: Array<components.FallbackConfig> | null | undefined;
108
155
  identity?: components.ResponseIdentity | undefined;
@@ -125,11 +172,12 @@ export type CreateDecisionsRequestBody = {
125
172
  [k: string]:
126
173
  | QuestionsNoulQuestion
127
174
  | QuestionsChoiceQuestion
128
- | QuestionsScoreQuestion;
175
+ | QuestionsScoreQuestion
176
+ | QuestionsBoxQuestion;
129
177
  };
130
178
  retry?: components.ClassifyRetryConfig | undefined;
131
179
  /**
132
- * The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
180
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
133
181
  */
134
182
  state: string | { [k: string]: any } | Array<any>;
135
183
  timeout?: components.ClassifyTimeoutConfig | undefined;
@@ -151,6 +199,56 @@ export type CreateDecisionsResponseBody = {
151
199
  usage: components.ClassifyUsage;
152
200
  };
153
201
 
202
+ /** @internal */
203
+ export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$Outbound =
204
+ | string
205
+ | { [k: string]: any }
206
+ | Array<any>;
207
+
208
+ /** @internal */
209
+ export const CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema:
210
+ z.ZodType<
211
+ CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$Outbound,
212
+ z.ZodTypeDef,
213
+ CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions
214
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
215
+
216
+ export function createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructionsToJSON(
217
+ createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions:
218
+ CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions,
219
+ ): string {
220
+ return JSON.stringify(
221
+ CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema
222
+ .parse(
223
+ createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions,
224
+ ),
225
+ );
226
+ }
227
+
228
+ /** @internal */
229
+ export type QuestionsBoxQuestion$Outbound = {
230
+ instructions: string | { [k: string]: any } | Array<any>;
231
+ type: "box";
232
+ };
233
+
234
+ /** @internal */
235
+ export const QuestionsBoxQuestion$outboundSchema: z.ZodType<
236
+ QuestionsBoxQuestion$Outbound,
237
+ z.ZodTypeDef,
238
+ QuestionsBoxQuestion
239
+ > = z.object({
240
+ instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
241
+ type: z.literal("box"),
242
+ });
243
+
244
+ export function questionsBoxQuestionToJSON(
245
+ questionsBoxQuestion: QuestionsBoxQuestion,
246
+ ): string {
247
+ return JSON.stringify(
248
+ QuestionsBoxQuestion$outboundSchema.parse(questionsBoxQuestion),
249
+ );
250
+ }
251
+
154
252
  /** @internal */
155
253
  export type CreateDecisionsQuestionsRouterDecisionsRequestInstructions$Outbound =
156
254
  | string
@@ -177,7 +275,7 @@ export function createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON
177
275
 
178
276
  /** @internal */
179
277
  export type QuestionsScoreQuestion$Outbound = {
180
- criteria: Array<string>;
278
+ criteria: Array<any>;
181
279
  instructions: string | { [k: string]: any } | Array<any>;
182
280
  type: "score";
183
281
  };
@@ -188,7 +286,7 @@ export const QuestionsScoreQuestion$outboundSchema: z.ZodType<
188
286
  z.ZodTypeDef,
189
287
  QuestionsScoreQuestion
190
288
  > = z.object({
191
- criteria: z.array(z.string()),
289
+ criteria: z.array(z.any()),
192
290
  instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
193
291
  type: z.literal("score"),
194
292
  });
@@ -201,6 +299,31 @@ export function questionsScoreQuestionToJSON(
201
299
  );
202
300
  }
203
301
 
302
+ /** @internal */
303
+ export type CreateDecisionsQuestionsRouterDecisionsCriteria$Outbound =
304
+ | string
305
+ | { [k: string]: any }
306
+ | Array<any>;
307
+
308
+ /** @internal */
309
+ export const CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema:
310
+ z.ZodType<
311
+ CreateDecisionsQuestionsRouterDecisionsCriteria$Outbound,
312
+ z.ZodTypeDef,
313
+ CreateDecisionsQuestionsRouterDecisionsCriteria
314
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
315
+
316
+ export function createDecisionsQuestionsRouterDecisionsCriteriaToJSON(
317
+ createDecisionsQuestionsRouterDecisionsCriteria:
318
+ CreateDecisionsQuestionsRouterDecisionsCriteria,
319
+ ): string {
320
+ return JSON.stringify(
321
+ CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema.parse(
322
+ createDecisionsQuestionsRouterDecisionsCriteria,
323
+ ),
324
+ );
325
+ }
326
+
204
327
  /** @internal */
205
328
  export type CreateDecisionsQuestionsRouterDecisionsInstructions$Outbound =
206
329
  | string
@@ -228,7 +351,7 @@ export function createDecisionsQuestionsRouterDecisionsInstructionsToJSON(
228
351
 
229
352
  /** @internal */
230
353
  export type QuestionsChoiceQuestion$Outbound = {
231
- criteria: { [k: string]: string | null };
354
+ criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
232
355
  instructions: string | { [k: string]: any } | Array<any>;
233
356
  type: "choice";
234
357
  };
@@ -239,7 +362,9 @@ export const QuestionsChoiceQuestion$outboundSchema: z.ZodType<
239
362
  z.ZodTypeDef,
240
363
  QuestionsChoiceQuestion
241
364
  > = z.object({
242
- criteria: z.record(z.nullable(z.string())),
365
+ criteria: z.record(
366
+ z.nullable(z.union([z.string(), z.record(z.any()), z.array(z.any())])),
367
+ ),
243
368
  instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
244
369
  type: z.literal("choice"),
245
370
  });
@@ -253,26 +378,59 @@ export function questionsChoiceQuestionToJSON(
253
378
  }
254
379
 
255
380
  /** @internal */
256
- export type QuestionsCriteria$Outbound = {
257
- false?: string | undefined;
258
- true?: string | undefined;
381
+ export type QuestionsFalse$Outbound =
382
+ | string
383
+ | { [k: string]: any }
384
+ | Array<any>;
385
+
386
+ /** @internal */
387
+ export const QuestionsFalse$outboundSchema: z.ZodType<
388
+ QuestionsFalse$Outbound,
389
+ z.ZodTypeDef,
390
+ QuestionsFalse
391
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
392
+
393
+ export function questionsFalseToJSON(questionsFalse: QuestionsFalse): string {
394
+ return JSON.stringify(QuestionsFalse$outboundSchema.parse(questionsFalse));
395
+ }
396
+
397
+ /** @internal */
398
+ export type QuestionsTrue$Outbound = string | { [k: string]: any } | Array<any>;
399
+
400
+ /** @internal */
401
+ export const QuestionsTrue$outboundSchema: z.ZodType<
402
+ QuestionsTrue$Outbound,
403
+ z.ZodTypeDef,
404
+ QuestionsTrue
405
+ > = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
406
+
407
+ export function questionsTrueToJSON(questionsTrue: QuestionsTrue): string {
408
+ return JSON.stringify(QuestionsTrue$outboundSchema.parse(questionsTrue));
409
+ }
410
+
411
+ /** @internal */
412
+ export type CreateDecisionsQuestionsCriteria$Outbound = {
413
+ false?: string | { [k: string]: any } | Array<any> | undefined;
414
+ true?: string | { [k: string]: any } | Array<any> | undefined;
259
415
  };
260
416
 
261
417
  /** @internal */
262
- export const QuestionsCriteria$outboundSchema: z.ZodType<
263
- QuestionsCriteria$Outbound,
418
+ export const CreateDecisionsQuestionsCriteria$outboundSchema: z.ZodType<
419
+ CreateDecisionsQuestionsCriteria$Outbound,
264
420
  z.ZodTypeDef,
265
- QuestionsCriteria
421
+ CreateDecisionsQuestionsCriteria
266
422
  > = z.object({
267
- false: z.string().optional(),
268
- true: z.string().optional(),
423
+ false: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
424
+ true: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
269
425
  });
270
426
 
271
- export function questionsCriteriaToJSON(
272
- questionsCriteria: QuestionsCriteria,
427
+ export function createDecisionsQuestionsCriteriaToJSON(
428
+ createDecisionsQuestionsCriteria: CreateDecisionsQuestionsCriteria,
273
429
  ): string {
274
430
  return JSON.stringify(
275
- QuestionsCriteria$outboundSchema.parse(questionsCriteria),
431
+ CreateDecisionsQuestionsCriteria$outboundSchema.parse(
432
+ createDecisionsQuestionsCriteria,
433
+ ),
276
434
  );
277
435
  }
278
436
 
@@ -300,7 +458,7 @@ export function createDecisionsQuestionsInstructionsToJSON(
300
458
 
301
459
  /** @internal */
302
460
  export type QuestionsNoulQuestion$Outbound = {
303
- criteria?: QuestionsCriteria$Outbound | undefined;
461
+ criteria?: CreateDecisionsQuestionsCriteria$Outbound | undefined;
304
462
  instructions: string | { [k: string]: any } | Array<any>;
305
463
  type: "noul";
306
464
  };
@@ -311,7 +469,8 @@ export const QuestionsNoulQuestion$outboundSchema: z.ZodType<
311
469
  z.ZodTypeDef,
312
470
  QuestionsNoulQuestion
313
471
  > = z.object({
314
- criteria: z.lazy(() => QuestionsCriteria$outboundSchema).optional(),
472
+ criteria: z.lazy(() => CreateDecisionsQuestionsCriteria$outboundSchema)
473
+ .optional(),
315
474
  instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
316
475
  type: z.literal("noul"),
317
476
  });
@@ -328,7 +487,8 @@ export function questionsNoulQuestionToJSON(
328
487
  export type CreateDecisionsQuestions$Outbound =
329
488
  | QuestionsNoulQuestion$Outbound
330
489
  | QuestionsChoiceQuestion$Outbound
331
- | QuestionsScoreQuestion$Outbound;
490
+ | QuestionsScoreQuestion$Outbound
491
+ | QuestionsBoxQuestion$Outbound;
332
492
 
333
493
  /** @internal */
334
494
  export const CreateDecisionsQuestions$outboundSchema: z.ZodType<
@@ -339,6 +499,7 @@ export const CreateDecisionsQuestions$outboundSchema: z.ZodType<
339
499
  z.lazy(() => QuestionsNoulQuestion$outboundSchema),
340
500
  z.lazy(() => QuestionsChoiceQuestion$outboundSchema),
341
501
  z.lazy(() => QuestionsScoreQuestion$outboundSchema),
502
+ z.lazy(() => QuestionsBoxQuestion$outboundSchema),
342
503
  ]);
343
504
 
344
505
  export function createDecisionsQuestionsToJSON(
@@ -372,6 +533,7 @@ export function createDecisionsStateToJSON(
372
533
 
373
534
  /** @internal */
374
535
  export type CreateDecisionsRequestBody$Outbound = {
536
+ assets?: { [k: string]: components.ClassifyAsset$Outbound } | undefined;
375
537
  cache?: components.ClassifyCacheConfig$Outbound | undefined;
376
538
  fallback_on_codes?: Array<number> | null | undefined;
377
539
  fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
@@ -383,7 +545,8 @@ export type CreateDecisionsRequestBody$Outbound = {
383
545
  [k: string]:
384
546
  | QuestionsNoulQuestion$Outbound
385
547
  | QuestionsChoiceQuestion$Outbound
386
- | QuestionsScoreQuestion$Outbound;
548
+ | QuestionsScoreQuestion$Outbound
549
+ | QuestionsBoxQuestion$Outbound;
387
550
  };
388
551
  retry?: components.ClassifyRetryConfig$Outbound | undefined;
389
552
  state: string | { [k: string]: any } | Array<any>;
@@ -396,6 +559,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
396
559
  z.ZodTypeDef,
397
560
  CreateDecisionsRequestBody
398
561
  > = z.object({
562
+ assets: z.record(components.ClassifyAsset$outboundSchema).optional(),
399
563
  cache: components.ClassifyCacheConfig$outboundSchema.optional(),
400
564
  fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
401
565
  fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
@@ -409,6 +573,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
409
573
  z.lazy(() => QuestionsNoulQuestion$outboundSchema),
410
574
  z.lazy(() => QuestionsChoiceQuestion$outboundSchema),
411
575
  z.lazy(() => QuestionsScoreQuestion$outboundSchema),
576
+ z.lazy(() => QuestionsBoxQuestion$outboundSchema),
412
577
  ]),
413
578
  ),
414
579
  retry: components.ClassifyRetryConfig$outboundSchema.optional(),
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1575
1575
  z.ZodTypeDef,
1576
1576
  unknown
1577
1577
  > = z.object({
1578
- _id: z.string().default("tool_01M4Z8KXAR46G2380RTC5GK1K8"),
1578
+ _id: z.string().default("tool_01M50DV9ZY0ZERFE6E0FE8KVBV"),
1579
1579
  path: z.string(),
1580
1580
  key: z.string(),
1581
1581
  display_name: z.string().optional(),
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
1761
1761
  z.ZodTypeDef,
1762
1762
  unknown
1763
1763
  > = z.object({
1764
- _id: z.string().default("tool_01M4Z8KXARKHME7PAZHV6XC7TX"),
1764
+ _id: z.string().default("tool_01M50DV9ZYYDNPTKVSP4C33K5E"),
1765
1765
  path: z.string(),
1766
1766
  key: z.string(),
1767
1767
  display_name: z.string().optional(),
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1854
1854
  z.ZodTypeDef,
1855
1855
  unknown
1856
1856
  > = z.object({
1857
- _id: z.string().default("tool_01M4Z8KXAQHK06NET4R661S1TV"),
1857
+ _id: z.string().default("tool_01M50DV9ZY4KZT0C1CE738J4T5"),
1858
1858
  path: z.string(),
1859
1859
  key: z.string(),
1860
1860
  display_name: z.string().optional(),
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
1955
1955
  z.ZodTypeDef,
1956
1956
  unknown
1957
1957
  > = z.object({
1958
- _id: z.string().default("tool_01M4Z8KXAQJ8H4RDBJ8T9HS1MD"),
1958
+ _id: z.string().default("tool_01M50DV9ZXDC77PN0C340SHQ7X"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
639
639
  z.ZodTypeDef,
640
640
  unknown
641
641
  > = z.object({
642
- _id: z.string().default("tool_01M4Z8KXAN6NQW2BM2SHC825YX"),
642
+ _id: z.string().default("tool_01M50DV9ZVY8AC804NC1M0KPVF"),
643
643
  path: z.string(),
644
644
  key: z.string(),
645
645
  display_name: z.string().optional(),
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
821
821
  z.ZodTypeDef,
822
822
  unknown
823
823
  > = z.object({
824
- _id: z.string().default("tool_01M4Z8KXAM8TK6EYFYN14QPEKY"),
824
+ _id: z.string().default("tool_01M50DV9ZTY0S1CJ56WZTBFH5A"),
825
825
  path: z.string(),
826
826
  key: z.string(),
827
827
  display_name: z.string().optional(),
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
914
914
  z.ZodTypeDef,
915
915
  unknown
916
916
  > = z.object({
917
- _id: z.string().default("tool_01M4Z8KXAMQ40MTKHT4M7QGRSH"),
917
+ _id: z.string().default("tool_01M50DV9ZT65N48HEJCAD2BBVS"),
918
918
  path: z.string(),
919
919
  key: z.string(),
920
920
  display_name: z.string().optional(),
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1012
1012
  z.ZodTypeDef,
1013
1013
  unknown
1014
1014
  > = z.object({
1015
- _id: z.string().default("tool_01M4Z8KXAK7NW24S0M3ENRZR7T"),
1015
+ _id: z.string().default("tool_01M50DV9ZT75FVE6FWSAHBEKD5"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-10-15T07:49:45.999Z",
143
+ "2026-10-15T18:40:25.712Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-10-15T07:49:45.999Z",
188
+ "2026-10-15T18:40:25.712Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-10-15T07:49:45.999Z",
144
+ "2026-10-15T18:40:25.712Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-10-15T07:49:45.999Z",
189
+ "2026-10-15T18:40:25.712Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -2525,7 +2525,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
2525
2525
  z.ZodTypeDef,
2526
2526
  unknown
2527
2527
  > = z.object({
2528
- id: z.string().default("01M4Z8KX7RRQ637TR5R1DTPKKC"),
2528
+ id: z.string().default("01M50DV9WF9QR929Z8CMJNNC8B"),
2529
2529
  knowledge_id: z.string(),
2530
2530
  configuration: z.union([
2531
2531
  z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-10-15T07:49:45.999Z",
321
+ "2026-10-15T18:40:25.712Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-10-15T07:49:45.999Z",
367
+ "2026-10-15T18:40:25.712Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
245
245
  PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
246
246
  .default("orq"),
247
247
  explanation: z.string().optional(),
248
- reviewedAt: z.date().default(() => new Date("2026-10-15T07:49:51.096Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-10-15T18:40:30.751Z"))
249
249
  .transform(v => v.toISOString()),
250
250
  type: z.literal("string_array"),
251
251
  values: z.array(z.string()),
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
299
299
  source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
300
300
  .default("orq"),
301
301
  explanation: z.string().optional(),
302
- reviewedAt: z.date().default(() => new Date("2026-10-15T07:49:51.096Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-10-15T18:40:30.751Z"))
303
303
  .transform(v => v.toISOString()),
304
304
  type: z.literal("boolean"),
305
305
  value: z.boolean(),
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
353
353
  "orq",
354
354
  ),
355
355
  explanation: z.string().optional(),
356
- reviewedAt: z.date().default(() => new Date("2026-10-15T07:49:51.096Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-10-15T18:40:30.751Z"))
357
357
  .transform(v => v.toISOString()),
358
358
  type: z.literal("number"),
359
359
  value: z.number(),
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
405
405
  humanReviewId: z.string().optional(),
406
406
  source: RequestBodySource$outboundSchema.default("orq"),
407
407
  explanation: z.string().optional(),
408
- reviewedAt: z.date().default(() => new Date("2026-10-15T07:49:51.096Z"))
408
+ reviewedAt: z.date().default(() => new Date("2026-10-15T18:40:30.751Z"))
409
409
  .transform(v => v.toISOString()),
410
410
  type: z.literal("string"),
411
411
  value: z.string(),
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-10-15T07:49:45.999Z",
274
+ "2026-10-15T18:40:25.712Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-10-15T07:49:45.999Z",
319
+ "2026-10-15T18:40:25.712Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
624
624
  z.ZodTypeDef,
625
625
  unknown
626
626
  > = z.object({
627
- _id: z.string().default("tool_01M4Z8KXB059D5EWRJA11QQ777"),
627
+ _id: z.string().default("tool_01M50DVA0737B9EZACQNG00QFW"),
628
628
  path: z.string(),
629
629
  key: z.string(),
630
630
  display_name: z.string().optional(),
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
820
820
  z.ZodTypeDef,
821
821
  unknown
822
822
  > = z.object({
823
- _id: z.string().default("tool_01M4Z8KXB04944ZP1ARDSH1DAP"),
823
+ _id: z.string().default("tool_01M50DVA06TZC8VZXG55Y15FA1"),
824
824
  path: z.string(),
825
825
  key: z.string(),
826
826
  display_name: z.string().optional(),
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
916
916
  z.ZodTypeDef,
917
917
  unknown
918
918
  > = z.object({
919
- _id: z.string().default("tool_01M4Z8KXAZQH950Z9GYMVRHZTW"),
919
+ _id: z.string().default("tool_01M50DVA067K6EVC2QJWX8BAK3"),
920
920
  path: z.string(),
921
921
  key: z.string(),
922
922
  display_name: z.string().optional(),
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1022
1022
  z.ZodTypeDef,
1023
1023
  unknown
1024
1024
  > = z.object({
1025
- _id: z.string().default("tool_01M4Z8KXAZGDVX7EH2HYN1W12H"),
1025
+ _id: z.string().default("tool_01M50DVA055ZQEDJC8FNAKQT89"),
1026
1026
  path: z.string(),
1027
1027
  key: z.string(),
1028
1028
  display_name: z.string().optional(),
@@ -3904,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
3904
3904
  z.ZodTypeDef,
3905
3905
  Tools
3906
3906
  > = z.object({
3907
- id: z.string().default("01M4Z8KX9B4SX410E6S5T010SJ"),
3907
+ id: z.string().default("01M50DV9YF7PTKJAWS0TCDKJS0"),
3908
3908
  name: z.string(),
3909
3909
  description: z.string().optional(),
3910
3910
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -3963,7 +3963,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3963
3963
  z.ZodTypeDef,
3964
3964
  AgentToolInputRunTools
3965
3965
  > = z.object({
3966
- id: z.string().default("01M4Z8KX9QRH7QQ4RZXEP2CE9W"),
3966
+ id: z.string().default("01M50DV9YXEKA2JZB34B173EDN"),
3967
3967
  name: z.string(),
3968
3968
  description: z.string().optional(),
3969
3969
  schema: z.lazy(() =>