@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.
- package/README.md +5 -3
- package/funcs/routerClassifyCreate.d.ts +10 -2
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +10 -2
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +10 -2
- package/funcs/routerDecisionsCreate.d.ts.map +1 -1
- package/funcs/routerDecisionsCreate.js +11 -2
- package/funcs/routerDecisionsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/classifycacheconfig.d.ts +33 -0
- package/models/components/classifycacheconfig.d.ts.map +1 -0
- package/models/components/classifycacheconfig.js +58 -0
- package/models/components/classifycacheconfig.js.map +1 -0
- package/models/components/classifytimeoutconfig.d.ts +15 -0
- package/models/components/classifytimeoutconfig.d.ts.map +1 -0
- package/models/components/classifytimeoutconfig.js +54 -0
- package/models/components/classifytimeoutconfig.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/updateworkspacerequest.d.ts +2 -0
- package/models/components/updateworkspacerequest.d.ts.map +1 -1
- package/models/components/updateworkspacerequest.js +2 -0
- package/models/components/updateworkspacerequest.js.map +1 -1
- package/models/errors/createclassify.d.ts +23 -2
- package/models/errors/createclassify.d.ts.map +1 -1
- package/models/errors/createclassify.js +30 -2
- package/models/errors/createclassify.js.map +1 -1
- package/models/errors/createdecisions.d.ts +23 -2
- package/models/errors/createdecisions.d.ts.map +1 -1
- package/models/errors/createdecisions.js +30 -2
- package/models/errors/createdecisions.js.map +1 -1
- package/models/operations/createclassify.d.ts +4 -0
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +2 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +4 -0
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +2 -0
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createprompt.d.ts +1 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +1 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deploymentinvoke.d.ts +1 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/sdk/classify.d.ts +9 -1
- package/sdk/classify.d.ts.map +1 -1
- package/sdk/classify.js +9 -1
- package/sdk/classify.js.map +1 -1
- package/sdk/decisions.d.ts +9 -1
- package/sdk/decisions.d.ts.map +1 -1
- package/sdk/decisions.js +9 -1
- package/sdk/decisions.js.map +1 -1
- package/src/funcs/routerClassifyCreate.ts +16 -1
- package/src/funcs/routerDecisionsCreate.ts +17 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/classifycacheconfig.ts +59 -0
- package/src/models/components/classifytimeoutconfig.ts +39 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/updateworkspacerequest.ts +4 -0
- package/src/models/errors/createclassify.ts +54 -2
- package/src/models/errors/createdecisions.ts +54 -2
- package/src/models/operations/createclassify.ts +6 -0
- package/src/models/operations/createdecisions.ts +6 -0
- package/src/models/operations/createprompt.ts +1 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +1 -0
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +9 -1
- 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("
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
1958
|
+
_id: z.string().default("tool_01M4HAB6NBG1445W075K08D34C"),
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
1015
|
+
_id: z.string().default("tool_01M4HAB6N80DBVM76CX2CB44JM"),
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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()),
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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(),
|