@orq-ai/node 4.17.0-rc.7 → 4.17.0-rc.9

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 (135) hide show
  1. package/README.md +5 -3
  2. package/funcs/routerClassifyCreate.d.ts +10 -2
  3. package/funcs/routerClassifyCreate.d.ts.map +1 -1
  4. package/funcs/routerClassifyCreate.js +10 -2
  5. package/funcs/routerClassifyCreate.js.map +1 -1
  6. package/funcs/routerDecisionsCreate.d.ts +10 -2
  7. package/funcs/routerDecisionsCreate.d.ts.map +1 -1
  8. package/funcs/routerDecisionsCreate.js +11 -2
  9. package/funcs/routerDecisionsCreate.js.map +1 -1
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +2 -2
  12. package/lib/config.js +2 -2
  13. package/models/components/classifycacheconfig.d.ts +33 -0
  14. package/models/components/classifycacheconfig.d.ts.map +1 -0
  15. package/models/components/classifycacheconfig.js +58 -0
  16. package/models/components/classifycacheconfig.js.map +1 -0
  17. package/models/components/classifytimeoutconfig.d.ts +15 -0
  18. package/models/components/classifytimeoutconfig.d.ts.map +1 -0
  19. package/models/components/classifytimeoutconfig.js +54 -0
  20. package/models/components/classifytimeoutconfig.js.map +1 -0
  21. package/models/components/index.d.ts +2 -0
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +2 -0
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/reasoningpart.js +1 -1
  26. package/models/components/updateworkspacerequest.d.ts +2 -0
  27. package/models/components/updateworkspacerequest.d.ts.map +1 -1
  28. package/models/components/updateworkspacerequest.js +2 -0
  29. package/models/components/updateworkspacerequest.js.map +1 -1
  30. package/models/errors/createclassify.d.ts +23 -2
  31. package/models/errors/createclassify.d.ts.map +1 -1
  32. package/models/errors/createclassify.js +30 -2
  33. package/models/errors/createclassify.js.map +1 -1
  34. package/models/errors/createdecisions.d.ts +23 -2
  35. package/models/errors/createdecisions.d.ts.map +1 -1
  36. package/models/errors/createdecisions.js +30 -2
  37. package/models/errors/createdecisions.js.map +1 -1
  38. package/models/operations/createclassify.d.ts +4 -0
  39. package/models/operations/createclassify.d.ts.map +1 -1
  40. package/models/operations/createclassify.js +2 -0
  41. package/models/operations/createclassify.js.map +1 -1
  42. package/models/operations/createdecisions.d.ts +4 -0
  43. package/models/operations/createdecisions.d.ts.map +1 -1
  44. package/models/operations/createdecisions.js +2 -0
  45. package/models/operations/createdecisions.js.map +1 -1
  46. package/models/operations/createprompt.d.ts +1 -0
  47. package/models/operations/createprompt.d.ts.map +1 -1
  48. package/models/operations/createprompt.js +1 -0
  49. package/models/operations/createprompt.js.map +1 -1
  50. package/models/operations/createtool.js +4 -4
  51. package/models/operations/deploymentinvoke.d.ts +1 -0
  52. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  53. package/models/operations/deploymentinvoke.js +1 -0
  54. package/models/operations/deploymentinvoke.js.map +1 -1
  55. package/models/operations/deployments.d.ts +1 -0
  56. package/models/operations/deployments.d.ts.map +1 -1
  57. package/models/operations/deployments.js +1 -0
  58. package/models/operations/deployments.js.map +1 -1
  59. package/models/operations/deploymentstream.d.ts +1 -0
  60. package/models/operations/deploymentstream.d.ts.map +1 -1
  61. package/models/operations/deploymentstream.js +1 -0
  62. package/models/operations/deploymentstream.js.map +1 -1
  63. package/models/operations/getallprompts.d.ts +1 -0
  64. package/models/operations/getallprompts.d.ts.map +1 -1
  65. package/models/operations/getallprompts.js +1 -0
  66. package/models/operations/getallprompts.js.map +1 -1
  67. package/models/operations/getalltools.js +4 -4
  68. package/models/operations/getoneprompt.d.ts +1 -0
  69. package/models/operations/getoneprompt.d.ts.map +1 -1
  70. package/models/operations/getoneprompt.js +1 -0
  71. package/models/operations/getoneprompt.js.map +1 -1
  72. package/models/operations/getpromptversion.d.ts +1 -0
  73. package/models/operations/getpromptversion.d.ts.map +1 -1
  74. package/models/operations/getpromptversion.js +1 -0
  75. package/models/operations/getpromptversion.js.map +1 -1
  76. package/models/operations/getv2humanevalsets.js +2 -2
  77. package/models/operations/getv2humanevalsetsid.js +2 -2
  78. package/models/operations/listpromptversions.d.ts +1 -0
  79. package/models/operations/listpromptversions.d.ts.map +1 -1
  80. package/models/operations/listpromptversions.js +1 -0
  81. package/models/operations/listpromptversions.js.map +1 -1
  82. package/models/operations/patchv2humanevalsetsid.js +2 -2
  83. package/models/operations/postv2feedbackevaluation.js +4 -4
  84. package/models/operations/postv2humanevalsets.js +2 -2
  85. package/models/operations/retrievetool.js +4 -4
  86. package/models/operations/runagent.js +1 -1
  87. package/models/operations/streamrunagent.js +1 -1
  88. package/models/operations/updateprompt.d.ts +1 -0
  89. package/models/operations/updateprompt.d.ts.map +1 -1
  90. package/models/operations/updateprompt.js +1 -0
  91. package/models/operations/updateprompt.js.map +1 -1
  92. package/models/operations/updatetool.js +4 -4
  93. package/package.json +3 -3
  94. package/sdk/classify.d.ts +9 -1
  95. package/sdk/classify.d.ts.map +1 -1
  96. package/sdk/classify.js +9 -1
  97. package/sdk/classify.js.map +1 -1
  98. package/sdk/decisions.d.ts +9 -1
  99. package/sdk/decisions.d.ts.map +1 -1
  100. package/sdk/decisions.js +9 -1
  101. package/sdk/decisions.js.map +1 -1
  102. package/src/funcs/routerClassifyCreate.ts +16 -1
  103. package/src/funcs/routerDecisionsCreate.ts +17 -1
  104. package/src/lib/config.ts +2 -2
  105. package/src/models/components/classifycacheconfig.ts +59 -0
  106. package/src/models/components/classifytimeoutconfig.ts +39 -0
  107. package/src/models/components/index.ts +2 -0
  108. package/src/models/components/reasoningpart.ts +1 -1
  109. package/src/models/components/updateworkspacerequest.ts +4 -0
  110. package/src/models/errors/createclassify.ts +54 -2
  111. package/src/models/errors/createdecisions.ts +54 -2
  112. package/src/models/operations/createclassify.ts +6 -0
  113. package/src/models/operations/createdecisions.ts +6 -0
  114. package/src/models/operations/createprompt.ts +1 -0
  115. package/src/models/operations/createtool.ts +4 -4
  116. package/src/models/operations/deploymentinvoke.ts +1 -0
  117. package/src/models/operations/deployments.ts +1 -0
  118. package/src/models/operations/deploymentstream.ts +1 -0
  119. package/src/models/operations/getallprompts.ts +1 -0
  120. package/src/models/operations/getalltools.ts +4 -4
  121. package/src/models/operations/getoneprompt.ts +1 -0
  122. package/src/models/operations/getpromptversion.ts +1 -0
  123. package/src/models/operations/getv2humanevalsets.ts +2 -2
  124. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  125. package/src/models/operations/listpromptversions.ts +1 -0
  126. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  127. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  128. package/src/models/operations/postv2humanevalsets.ts +2 -2
  129. package/src/models/operations/retrievetool.ts +4 -4
  130. package/src/models/operations/runagent.ts +1 -1
  131. package/src/models/operations/streamrunagent.ts +1 -1
  132. package/src/models/operations/updateprompt.ts +1 -0
  133. package/src/models/operations/updatetool.ts +4 -4
  134. package/src/sdk/classify.ts +9 -1
  135. package/src/sdk/decisions.ts +9 -1
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Cache type. Only exact_match is supported.
10
+ */
11
+ export const ClassifyCacheConfigType = {
12
+ ExactMatch: "exact_match",
13
+ } as const;
14
+ /**
15
+ * Cache type. Only exact_match is supported.
16
+ */
17
+ export type ClassifyCacheConfigType = ClosedEnum<
18
+ typeof ClassifyCacheConfigType
19
+ >;
20
+
21
+ export type ClassifyCacheConfig = {
22
+ /**
23
+ * Time to live for the cached response in seconds, up to 259200 (3 days). Defaults to 3600.
24
+ */
25
+ ttl?: number | undefined;
26
+ /**
27
+ * Cache type. Only exact_match is supported.
28
+ */
29
+ type: ClassifyCacheConfigType;
30
+ };
31
+
32
+ /** @internal */
33
+ export const ClassifyCacheConfigType$outboundSchema: z.ZodNativeEnum<
34
+ typeof ClassifyCacheConfigType
35
+ > = z.nativeEnum(ClassifyCacheConfigType);
36
+
37
+ /** @internal */
38
+ export type ClassifyCacheConfig$Outbound = {
39
+ ttl?: number | undefined;
40
+ type: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ClassifyCacheConfig$outboundSchema: z.ZodType<
45
+ ClassifyCacheConfig$Outbound,
46
+ z.ZodTypeDef,
47
+ ClassifyCacheConfig
48
+ > = z.object({
49
+ ttl: z.number().int().optional(),
50
+ type: ClassifyCacheConfigType$outboundSchema,
51
+ });
52
+
53
+ export function classifyCacheConfigToJSON(
54
+ classifyCacheConfig: ClassifyCacheConfig,
55
+ ): string {
56
+ return JSON.stringify(
57
+ ClassifyCacheConfig$outboundSchema.parse(classifyCacheConfig),
58
+ );
59
+ }
@@ -0,0 +1,39 @@
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
+
8
+ export type ClassifyTimeoutConfig = {
9
+ /**
10
+ * Timeout in milliseconds for each model call. Set 2000 for two seconds. When retry is configured, timeout errors (408) are automatically retried.
11
+ */
12
+ callTimeout: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export type ClassifyTimeoutConfig$Outbound = {
17
+ call_timeout: number;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ClassifyTimeoutConfig$outboundSchema: z.ZodType<
22
+ ClassifyTimeoutConfig$Outbound,
23
+ z.ZodTypeDef,
24
+ ClassifyTimeoutConfig
25
+ > = z.object({
26
+ callTimeout: z.number().int(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ callTimeout: "call_timeout",
30
+ });
31
+ });
32
+
33
+ export function classifyTimeoutConfigToJSON(
34
+ classifyTimeoutConfig: ClassifyTimeoutConfig,
35
+ ): string {
36
+ return JSON.stringify(
37
+ ClassifyTimeoutConfig$outboundSchema.parse(classifyTimeoutConfig),
38
+ );
39
+ }
@@ -85,12 +85,14 @@ export * from "./chunksservicelistresponse.js";
85
85
  export * from "./chunksservicesetenabledrequest.js";
86
86
  export * from "./chunksserviceupdaterequest.js";
87
87
  export * from "./classifyanswer.js";
88
+ export * from "./classifycacheconfig.js";
88
89
  export * from "./classifychoiceanswer.js";
89
90
  export * from "./classifyinputtokensdetails.js";
90
91
  export * from "./classifynoulanswer.js";
91
92
  export * from "./classifyrefusalanswer.js";
92
93
  export * from "./classifyretryconfig.js";
93
94
  export * from "./classifyscoreanswer.js";
95
+ export * from "./classifytimeoutconfig.js";
94
96
  export * from "./classifyusage.js";
95
97
  export * from "./codeinterpretertoolinput.js";
96
98
  export * from "./codetoolinput.js";
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01m4gnqfvp3k2665xp9gsx2bcp"),
43
+ _id: z.string().default("reasoning_01m4hab6k2kpyggxwtrzbmp117"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -25,6 +25,7 @@ export type UpdateWorkspaceRequest = {
25
25
  metadata?: UpdateWorkspaceRequestMetadata | undefined;
26
26
  enforceEnabledModels?: boolean | undefined;
27
27
  chatKit?: ChatKitResources | undefined;
28
+ tracingEnabled?: boolean | undefined;
28
29
  };
29
30
 
30
31
  /** @internal */
@@ -56,6 +57,7 @@ export type UpdateWorkspaceRequest$Outbound = {
56
57
  metadata?: UpdateWorkspaceRequestMetadata$Outbound | undefined;
57
58
  enforce_enabled_models?: boolean | undefined;
58
59
  chat_kit?: ChatKitResources$Outbound | undefined;
60
+ tracing_enabled?: boolean | undefined;
59
61
  };
60
62
 
61
63
  /** @internal */
@@ -72,12 +74,14 @@ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
72
74
  .optional(),
73
75
  enforceEnabledModels: z.boolean().optional(),
74
76
  chatKit: ChatKitResources$outboundSchema.optional(),
77
+ tracingEnabled: z.boolean().optional(),
75
78
  }).transform((v) => {
76
79
  return remap$(v, {
77
80
  displayName: "display_name",
78
81
  logoUrl: "logo_url",
79
82
  enforceEnabledModels: "enforce_enabled_models",
80
83
  chatKit: "chat_kit",
84
+ tracingEnabled: "tracing_enabled",
81
85
  });
82
86
  });
83
87
 
@@ -134,6 +134,38 @@ export class CreateClassifyRouterClassifyResponse422ResponseBody
134
134
  }
135
135
  }
136
136
 
137
+ /**
138
+ * The final model call exceeded its timeout after available retries and fallbacks were exhausted.
139
+ */
140
+ export type CreateClassifyRouterClassifyResponse408ResponseBodyData = {
141
+ error: components.APIError;
142
+ };
143
+
144
+ /**
145
+ * The final model call exceeded its timeout after available retries and fallbacks were exhausted.
146
+ */
147
+ export class CreateClassifyRouterClassifyResponse408ResponseBody
148
+ extends OrqError
149
+ {
150
+ error: components.APIError;
151
+
152
+ /** The original data that was passed to this error instance. */
153
+ data$: CreateClassifyRouterClassifyResponse408ResponseBodyData;
154
+
155
+ constructor(
156
+ err: CreateClassifyRouterClassifyResponse408ResponseBodyData,
157
+ httpMeta: { response: Response; request: Request; body: string },
158
+ ) {
159
+ const message = err.error?.message
160
+ || `API error occurred: ${JSON.stringify(err)}`;
161
+ super(message, httpMeta);
162
+ this.data$ = err;
163
+ this.error = err.error;
164
+
165
+ this.name = "CreateClassifyRouterClassifyResponse408ResponseBody";
166
+ }
167
+ }
168
+
137
169
  /**
138
170
  * The API key lacks classify permission, or the workspace or project cannot access the model.
139
171
  */
@@ -195,14 +227,14 @@ export class CreateClassifyRouterClassifyResponseBody extends OrqError {
195
227
  }
196
228
 
197
229
  /**
198
- * Malformed JSON, missing or unsupported model, or invalid retry/fallback fields.
230
+ * Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
199
231
  */
200
232
  export type CreateClassifyResponseBodyData = {
201
233
  error: components.APIError;
202
234
  };
203
235
 
204
236
  /**
205
- * Malformed JSON, missing or unsupported model, or invalid retry/fallback fields.
237
+ * Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
206
238
  */
207
239
  export class CreateClassifyResponseBody extends OrqError {
208
240
  error: components.APIError;
@@ -304,6 +336,26 @@ export const CreateClassifyRouterClassifyResponse422ResponseBody$inboundSchema:
304
336
  });
305
337
  });
306
338
 
339
+ /** @internal */
340
+ export const CreateClassifyRouterClassifyResponse408ResponseBody$inboundSchema:
341
+ z.ZodType<
342
+ CreateClassifyRouterClassifyResponse408ResponseBody,
343
+ z.ZodTypeDef,
344
+ unknown
345
+ > = z.object({
346
+ error: components.APIError$inboundSchema,
347
+ request$: z.instanceof(Request),
348
+ response$: z.instanceof(Response),
349
+ body$: z.string(),
350
+ })
351
+ .transform((v) => {
352
+ return new CreateClassifyRouterClassifyResponse408ResponseBody(v, {
353
+ request: v.request$,
354
+ response: v.response$,
355
+ body: v.body$,
356
+ });
357
+ });
358
+
307
359
  /** @internal */
308
360
  export const CreateClassifyRouterClassifyResponseResponseBody$inboundSchema:
309
361
  z.ZodType<
@@ -134,6 +134,38 @@ export class CreateDecisionsRouterDecisionsResponse422ResponseBody
134
134
  }
135
135
  }
136
136
 
137
+ /**
138
+ * The final model call exceeded its timeout after available retries and fallbacks were exhausted.
139
+ */
140
+ export type CreateDecisionsRouterDecisionsResponse408ResponseBodyData = {
141
+ error: components.APIError;
142
+ };
143
+
144
+ /**
145
+ * The final model call exceeded its timeout after available retries and fallbacks were exhausted.
146
+ */
147
+ export class CreateDecisionsRouterDecisionsResponse408ResponseBody
148
+ extends OrqError
149
+ {
150
+ error: components.APIError;
151
+
152
+ /** The original data that was passed to this error instance. */
153
+ data$: CreateDecisionsRouterDecisionsResponse408ResponseBodyData;
154
+
155
+ constructor(
156
+ err: CreateDecisionsRouterDecisionsResponse408ResponseBodyData,
157
+ httpMeta: { response: Response; request: Request; body: string },
158
+ ) {
159
+ const message = err.error?.message
160
+ || `API error occurred: ${JSON.stringify(err)}`;
161
+ super(message, httpMeta);
162
+ this.data$ = err;
163
+ this.error = err.error;
164
+
165
+ this.name = "CreateDecisionsRouterDecisionsResponse408ResponseBody";
166
+ }
167
+ }
168
+
137
169
  /**
138
170
  * The API key lacks classify permission, or the workspace or project cannot access the model.
139
171
  */
@@ -197,14 +229,14 @@ export class CreateDecisionsRouterDecisionsResponseBody extends OrqError {
197
229
  }
198
230
 
199
231
  /**
200
- * Malformed JSON, missing or unsupported model, or invalid retry/fallback fields.
232
+ * Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
201
233
  */
202
234
  export type CreateDecisionsResponseBodyData = {
203
235
  error: components.APIError;
204
236
  };
205
237
 
206
238
  /**
207
- * Malformed JSON, missing or unsupported model, or invalid retry/fallback fields.
239
+ * Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields.
208
240
  */
209
241
  export class CreateDecisionsResponseBody extends OrqError {
210
242
  error: components.APIError;
@@ -306,6 +338,26 @@ export const CreateDecisionsRouterDecisionsResponse422ResponseBody$inboundSchema
306
338
  });
307
339
  });
308
340
 
341
+ /** @internal */
342
+ export const CreateDecisionsRouterDecisionsResponse408ResponseBody$inboundSchema:
343
+ z.ZodType<
344
+ CreateDecisionsRouterDecisionsResponse408ResponseBody,
345
+ z.ZodTypeDef,
346
+ unknown
347
+ > = z.object({
348
+ error: components.APIError$inboundSchema,
349
+ request$: z.instanceof(Request),
350
+ response$: z.instanceof(Response),
351
+ body$: z.string(),
352
+ })
353
+ .transform((v) => {
354
+ return new CreateDecisionsRouterDecisionsResponse408ResponseBody(v, {
355
+ request: v.request$,
356
+ response: v.response$,
357
+ body: v.body$,
358
+ });
359
+ });
360
+
309
361
  /** @internal */
310
362
  export const CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema:
311
363
  z.ZodType<
@@ -87,6 +87,7 @@ export type Questions = NoulQuestion | ChoiceQuestion | ScoreQuestion;
87
87
  export type State = string | { [k: string]: any } | Array<any>;
88
88
 
89
89
  export type CreateClassifyRequestBody = {
90
+ cache?: components.ClassifyCacheConfig | undefined;
90
91
  /**
91
92
  * 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.
92
93
  */
@@ -113,6 +114,7 @@ export type CreateClassifyRequestBody = {
113
114
  * 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.
114
115
  */
115
116
  state: string | { [k: string]: any } | Array<any>;
117
+ timeout?: components.ClassifyTimeoutConfig | undefined;
116
118
  };
117
119
 
118
120
  /**
@@ -311,6 +313,7 @@ export function stateToJSON(state: State): string {
311
313
 
312
314
  /** @internal */
313
315
  export type CreateClassifyRequestBody$Outbound = {
316
+ cache?: components.ClassifyCacheConfig$Outbound | undefined;
314
317
  fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
315
318
  identity?: components.ResponseIdentity$Outbound | undefined;
316
319
  metadata?: { [k: string]: string } | undefined;
@@ -324,6 +327,7 @@ export type CreateClassifyRequestBody$Outbound = {
324
327
  };
325
328
  retry?: components.ClassifyRetryConfig$Outbound | undefined;
326
329
  state: string | { [k: string]: any } | Array<any>;
330
+ timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
327
331
  };
328
332
 
329
333
  /** @internal */
@@ -332,6 +336,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
332
336
  z.ZodTypeDef,
333
337
  CreateClassifyRequestBody
334
338
  > = z.object({
339
+ cache: components.ClassifyCacheConfig$outboundSchema.optional(),
335
340
  fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
336
341
  .optional(),
337
342
  identity: components.ResponseIdentity$outboundSchema.optional(),
@@ -347,6 +352,7 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
347
352
  ),
348
353
  retry: components.ClassifyRetryConfig$outboundSchema.optional(),
349
354
  state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
355
+ timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
350
356
  });
351
357
 
352
358
  export function createClassifyRequestBodyToJSON(
@@ -95,6 +95,7 @@ export type CreateDecisionsQuestions =
95
95
  export type CreateDecisionsState = string | { [k: string]: any } | Array<any>;
96
96
 
97
97
  export type CreateDecisionsRequestBody = {
98
+ cache?: components.ClassifyCacheConfig | undefined;
98
99
  /**
99
100
  * 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.
100
101
  */
@@ -126,6 +127,7 @@ export type CreateDecisionsRequestBody = {
126
127
  * 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.
127
128
  */
128
129
  state: string | { [k: string]: any } | Array<any>;
130
+ timeout?: components.ClassifyTimeoutConfig | undefined;
129
131
  };
130
132
 
131
133
  /**
@@ -365,6 +367,7 @@ export function createDecisionsStateToJSON(
365
367
 
366
368
  /** @internal */
367
369
  export type CreateDecisionsRequestBody$Outbound = {
370
+ cache?: components.ClassifyCacheConfig$Outbound | undefined;
368
371
  fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
369
372
  identity?: components.ResponseIdentity$Outbound | undefined;
370
373
  metadata?: { [k: string]: string } | undefined;
@@ -378,6 +381,7 @@ export type CreateDecisionsRequestBody$Outbound = {
378
381
  };
379
382
  retry?: components.ClassifyRetryConfig$Outbound | undefined;
380
383
  state: string | { [k: string]: any } | Array<any>;
384
+ timeout?: components.ClassifyTimeoutConfig$Outbound | undefined;
381
385
  };
382
386
 
383
387
  /** @internal */
@@ -386,6 +390,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
386
390
  z.ZodTypeDef,
387
391
  CreateDecisionsRequestBody
388
392
  > = z.object({
393
+ cache: components.ClassifyCacheConfig$outboundSchema.optional(),
389
394
  fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
390
395
  .optional(),
391
396
  identity: components.ResponseIdentity$outboundSchema.optional(),
@@ -401,6 +406,7 @@ export const CreateDecisionsRequestBody$outboundSchema: z.ZodType<
401
406
  ),
402
407
  retry: components.ClassifyRetryConfig$outboundSchema.optional(),
403
408
  state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
409
+ timeout: components.ClassifyTimeoutConfig$outboundSchema.optional(),
404
410
  });
405
411
 
406
412
  export function createDecisionsRequestBodyToJSON(
@@ -1419,6 +1419,7 @@ export const CreatePromptProvider = {
1419
1419
  Liquid: "liquid",
1420
1420
  Typesafe: "typesafe",
1421
1421
  Berget: "berget",
1422
+ Cloudflare: "cloudflare",
1422
1423
  Slack: "slack",
1423
1424
  Orq: "orq",
1424
1425
  } as const;
@@ -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_01M4GNQFY1RW67PYJVBM6TK785"),
1578
+ _id: z.string().default("tool_01M4HAB6NDZQ4DTPZW69NDCYB6"),
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_01M4GNQFY1YP7HJ9139GKY2KSP"),
1764
+ _id: z.string().default("tool_01M4HAB6NC1Z3D2PT6AE31D7CP"),
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_01M4GNQFY0158BB78TKHEYSPKM"),
1857
+ _id: z.string().default("tool_01M4HAB6NCZWFH0CFH2W3J6PG6"),
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_01M4GNQFY0WB800V4JSBXW1G9E"),
1958
+ _id: z.string().default("tool_01M4HAB6NBG1445W075K08D34C"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -69,6 +69,7 @@ export const DeploymentInvokeProvider = {
69
69
  Liquid: "liquid",
70
70
  Typesafe: "typesafe",
71
71
  Berget: "berget",
72
+ Cloudflare: "cloudflare",
72
73
  Slack: "slack",
73
74
  Orq: "orq",
74
75
  } as const;
@@ -501,6 +501,7 @@ export const DeploymentsProvider = {
501
501
  Liquid: "liquid",
502
502
  Typesafe: "typesafe",
503
503
  Berget: "berget",
504
+ Cloudflare: "cloudflare",
504
505
  Slack: "slack",
505
506
  Orq: "orq",
506
507
  } as const;
@@ -1174,6 +1174,7 @@ export const DeploymentStreamProvider = {
1174
1174
  Liquid: "liquid",
1175
1175
  Typesafe: "typesafe",
1176
1176
  Berget: "berget",
1177
+ Cloudflare: "cloudflare",
1177
1178
  Slack: "slack",
1178
1179
  Orq: "orq",
1179
1180
  } as const;
@@ -452,6 +452,7 @@ export const GetAllPromptsProvider = {
452
452
  Liquid: "liquid",
453
453
  Typesafe: "typesafe",
454
454
  Berget: "berget",
455
+ Cloudflare: "cloudflare",
455
456
  Slack: "slack",
456
457
  Orq: "orq",
457
458
  } as const;
@@ -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_01M4GNQFXYA85Z7F2EBKTC3ZAC"),
642
+ _id: z.string().default("tool_01M4HAB6N9VSVA3AJJ9NFQJKFQ"),
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_01M4GNQFXX4RHC945VYAPK0J8A"),
824
+ _id: z.string().default("tool_01M4HAB6N983T2AFAGAK0RCQYF"),
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_01M4GNQFXXN3NN55Q91G40784B"),
917
+ _id: z.string().default("tool_01M4HAB6N8C5T7K6JY5CY618V9"),
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_01M4GNQFXXFHHRCM4NNHMDVZ25"),
1015
+ _id: z.string().default("tool_01M4HAB6N80DBVM76CX2CB44JM"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),
@@ -436,6 +436,7 @@ export const GetOnePromptProvider = {
436
436
  Liquid: "liquid",
437
437
  Typesafe: "typesafe",
438
438
  Berget: "berget",
439
+ Cloudflare: "cloudflare",
439
440
  Slack: "slack",
440
441
  Orq: "orq",
441
442
  } as const;
@@ -442,6 +442,7 @@ export const GetPromptVersionProvider = {
442
442
  Liquid: "liquid",
443
443
  Typesafe: "typesafe",
444
444
  Berget: "berget",
445
+ Cloudflare: "cloudflare",
445
446
  Slack: "slack",
446
447
  Orq: "orq",
447
448
  } as const;
@@ -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-09T15:50:18.630Z",
143
+ "2026-10-09T21:50:35.799Z",
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-09T15:50:18.630Z",
188
+ "2026-10-09T21:50:35.799Z",
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-09T15:50:18.630Z",
144
+ "2026-10-09T21:50:35.799Z",
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-09T15:50:18.630Z",
189
+ "2026-10-09T21:50:35.799Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -456,6 +456,7 @@ export const ListPromptVersionsProvider = {
456
456
  Liquid: "liquid",
457
457
  Typesafe: "typesafe",
458
458
  Berget: "berget",
459
+ Cloudflare: "cloudflare",
459
460
  Slack: "slack",
460
461
  Orq: "orq",
461
462
  } as const;
@@ -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-09T15:50:18.630Z",
321
+ "2026-10-09T21:50:35.799Z",
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-09T15:50:18.630Z",
367
+ "2026-10-09T21:50:35.799Z",
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-09T15:50:23.454Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-10-09T21:50:40.844Z"))
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-09T15:50:23.454Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-10-09T21:50:40.844Z"))
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-09T15:50:23.454Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-10-09T21:50:40.844Z"))
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-09T15:50:23.454Z"))
408
+ reviewedAt: z.date().default(() => new Date("2026-10-09T21:50:40.844Z"))
409
409
  .transform(v => v.toISOString()),
410
410
  type: z.literal("string"),
411
411
  value: z.string(),