@orq-ai/node 4.9.0-rc.46 → 4.9.0-rc.49
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 +47 -52
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +5 -5
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +24 -23
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createrouterresponse.d.ts +24 -24
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +23 -26
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +9 -9
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +17 -15
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +2 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/orqresponses.d.ts +13 -5
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +16 -6
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/router.d.ts +0 -3
- package/sdk/router.d.ts.map +1 -1
- package/sdk/router.js +0 -4
- package/sdk/router.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +29 -32
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +40 -58
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +33 -48
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +4 -4
- package/src/sdk/orqresponses.ts +28 -7
- package/src/sdk/router.ts +0 -6
- package/funcs/routerResponsesCreate.d.ts +0 -23
- package/funcs/routerResponsesCreate.d.ts.map +0 -1
- package/funcs/routerResponsesCreate.js +0 -122
- package/funcs/routerResponsesCreate.js.map +0 -1
- package/models/operations/createresponse.d.ts +0 -1990
- package/models/operations/createresponse.d.ts.map +0 -1
- package/models/operations/createresponse.js +0 -1422
- package/models/operations/createresponse.js.map +0 -1
- package/sdk/orqagentsresponses.d.ts +0 -24
- package/sdk/orqagentsresponses.d.ts.map +0 -1
- package/sdk/orqagentsresponses.js +0 -34
- package/sdk/orqagentsresponses.js.map +0 -1
- package/src/funcs/routerResponsesCreate.ts +0 -169
- package/src/models/operations/createresponse.ts +0 -3864
- package/src/sdk/orqagentsresponses.ts +0 -53
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-05-
|
|
2358
|
+
"2026-05-12T11:10:24.489Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-05-
|
|
2403
|
+
"2026-05-12T11:10:24.489Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-05-
|
|
2449
|
+
"2026-05-12T11:10:24.488Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-05-
|
|
2532
|
+
"2026-05-12T11:10:09.376Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KRDY30M7P44Z3M5FFWQB2S0X"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -820,7 +820,7 @@ export type Six = {
|
|
|
820
820
|
type: "contains_url";
|
|
821
821
|
};
|
|
822
822
|
|
|
823
|
-
export type
|
|
823
|
+
export type Five = {
|
|
824
824
|
type: "contains_email";
|
|
825
825
|
};
|
|
826
826
|
|
|
@@ -849,7 +849,7 @@ export type FunctionParams =
|
|
|
849
849
|
| FunctionParams2
|
|
850
850
|
| CreateEvalFunctionParams3
|
|
851
851
|
| CreateEvalFunctionParams4
|
|
852
|
-
|
|
|
852
|
+
| Five
|
|
853
853
|
| Six
|
|
854
854
|
| Seven
|
|
855
855
|
| Eight
|
|
@@ -895,7 +895,7 @@ export type CreateEvalResponseBodyFunction = {
|
|
|
895
895
|
| FunctionParams2
|
|
896
896
|
| CreateEvalFunctionParams3
|
|
897
897
|
| CreateEvalFunctionParams4
|
|
898
|
-
|
|
|
898
|
+
| Five
|
|
899
899
|
| Six
|
|
900
900
|
| Seven
|
|
901
901
|
| Eight
|
|
@@ -2776,8 +2776,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2776
2776
|
> = z.object({
|
|
2777
2777
|
_id: z.string(),
|
|
2778
2778
|
description: z.string(),
|
|
2779
|
-
created: z.string().default("2026-05-
|
|
2780
|
-
updated: z.string().default("2026-05-
|
|
2779
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
2780
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
2781
2781
|
guardrail_config: z.nullable(
|
|
2782
2782
|
z.union([
|
|
2783
2783
|
z.lazy(() =>
|
|
@@ -2965,8 +2965,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2965
2965
|
.object({
|
|
2966
2966
|
_id: z.string(),
|
|
2967
2967
|
description: z.string(),
|
|
2968
|
-
created: z.string().default("2026-05-
|
|
2969
|
-
updated: z.string().default("2026-05-
|
|
2968
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
2969
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
2970
2970
|
guardrail_config: z.nullable(
|
|
2971
2971
|
z.union([
|
|
2972
2972
|
z.lazy(() =>
|
|
@@ -3636,21 +3636,18 @@ export function sixFromJSON(
|
|
|
3636
3636
|
}
|
|
3637
3637
|
|
|
3638
3638
|
/** @internal */
|
|
3639
|
-
export const
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
> = z.object({
|
|
3644
|
-
type: z.literal("contains_email"),
|
|
3645
|
-
});
|
|
3639
|
+
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
3640
|
+
.object({
|
|
3641
|
+
type: z.literal("contains_email"),
|
|
3642
|
+
});
|
|
3646
3643
|
|
|
3647
|
-
export function
|
|
3644
|
+
export function fiveFromJSON(
|
|
3648
3645
|
jsonString: string,
|
|
3649
|
-
): SafeParseResult<
|
|
3646
|
+
): SafeParseResult<Five, SDKValidationError> {
|
|
3650
3647
|
return safeParse(
|
|
3651
3648
|
jsonString,
|
|
3652
|
-
(x) =>
|
|
3653
|
-
`Failed to parse '
|
|
3649
|
+
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
3650
|
+
`Failed to parse 'Five' from JSON`,
|
|
3654
3651
|
);
|
|
3655
3652
|
}
|
|
3656
3653
|
|
|
@@ -3744,7 +3741,7 @@ export const FunctionParams$inboundSchema: z.ZodType<
|
|
|
3744
3741
|
z.lazy(() => FunctionParams2$inboundSchema),
|
|
3745
3742
|
z.lazy(() => CreateEvalFunctionParams3$inboundSchema),
|
|
3746
3743
|
z.lazy(() => CreateEvalFunctionParams4$inboundSchema),
|
|
3747
|
-
z.lazy(() =>
|
|
3744
|
+
z.lazy(() => Five$inboundSchema),
|
|
3748
3745
|
z.lazy(() => Six$inboundSchema),
|
|
3749
3746
|
z.lazy(() => Seven$inboundSchema),
|
|
3750
3747
|
z.lazy(() => Eight$inboundSchema),
|
|
@@ -3792,8 +3789,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3792
3789
|
> = z.object({
|
|
3793
3790
|
_id: z.string(),
|
|
3794
3791
|
description: z.string(),
|
|
3795
|
-
created: z.string().default("2026-05-
|
|
3796
|
-
updated: z.string().default("2026-05-
|
|
3792
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
3793
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
3797
3794
|
guardrail_config: z.nullable(
|
|
3798
3795
|
z.union([
|
|
3799
3796
|
z.lazy(() =>
|
|
@@ -3813,7 +3810,7 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3813
3810
|
z.lazy(() => FunctionParams2$inboundSchema),
|
|
3814
3811
|
z.lazy(() => CreateEvalFunctionParams3$inboundSchema),
|
|
3815
3812
|
z.lazy(() => CreateEvalFunctionParams4$inboundSchema),
|
|
3816
|
-
z.lazy(() =>
|
|
3813
|
+
z.lazy(() => Five$inboundSchema),
|
|
3817
3814
|
z.lazy(() => Six$inboundSchema),
|
|
3818
3815
|
z.lazy(() => Seven$inboundSchema),
|
|
3819
3816
|
z.lazy(() => Eight$inboundSchema),
|
|
@@ -4011,8 +4008,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
4011
4008
|
> = z.object({
|
|
4012
4009
|
_id: z.string(),
|
|
4013
4010
|
description: z.string(),
|
|
4014
|
-
created: z.string().default("2026-05-
|
|
4015
|
-
updated: z.string().default("2026-05-
|
|
4011
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4012
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4016
4013
|
guardrail_config: z.nullable(
|
|
4017
4014
|
z.union([
|
|
4018
4015
|
z.lazy(() =>
|
|
@@ -4193,8 +4190,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4193
4190
|
> = z.object({
|
|
4194
4191
|
_id: z.string(),
|
|
4195
4192
|
description: z.string(),
|
|
4196
|
-
created: z.string().default("2026-05-
|
|
4197
|
-
updated: z.string().default("2026-05-
|
|
4193
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4194
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4198
4195
|
guardrail_config: z.nullable(
|
|
4199
4196
|
z.union([
|
|
4200
4197
|
z.lazy(() =>
|
|
@@ -4370,8 +4367,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4370
4367
|
> = z.object({
|
|
4371
4368
|
_id: z.string(),
|
|
4372
4369
|
description: z.string(),
|
|
4373
|
-
created: z.string().default("2026-05-
|
|
4374
|
-
updated: z.string().default("2026-05-
|
|
4370
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4371
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4375
4372
|
guardrail_config: z.nullable(
|
|
4376
4373
|
z.union([
|
|
4377
4374
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4741,8 +4738,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4741
4738
|
> = z.object({
|
|
4742
4739
|
_id: z.string(),
|
|
4743
4740
|
description: z.string(),
|
|
4744
|
-
created: z.string().default("2026-05-
|
|
4745
|
-
updated: z.string().default("2026-05-
|
|
4741
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4742
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4746
4743
|
guardrail_config: z.nullable(
|
|
4747
4744
|
z.union([
|
|
4748
4745
|
z.lazy(() =>
|
|
@@ -4957,8 +4954,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4957
4954
|
> = z.object({
|
|
4958
4955
|
_id: z.string(),
|
|
4959
4956
|
description: z.string(),
|
|
4960
|
-
created: z.string().default("2026-05-
|
|
4961
|
-
updated: z.string().default("2026-05-
|
|
4957
|
+
created: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4958
|
+
updated: z.string().default("2026-05-12T11:10:11.507Z"),
|
|
4962
4959
|
guardrail_config: z.nullable(
|
|
4963
4960
|
z.union([
|
|
4964
4961
|
z.lazy(() =>
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-05-
|
|
142
|
+
"2026-05-12T11:10:09.376Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -41,7 +41,7 @@ export type TwoFile = {
|
|
|
41
41
|
/**
|
|
42
42
|
* The detail level for image understanding.
|
|
43
43
|
*/
|
|
44
|
-
export const
|
|
44
|
+
export const Detail = {
|
|
45
45
|
Auto: "auto",
|
|
46
46
|
Low: "low",
|
|
47
47
|
High: "high",
|
|
@@ -49,7 +49,7 @@ export const TwoDetail = {
|
|
|
49
49
|
/**
|
|
50
50
|
* The detail level for image understanding.
|
|
51
51
|
*/
|
|
52
|
-
export type
|
|
52
|
+
export type Detail = ClosedEnum<typeof Detail>;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* An image content part.
|
|
@@ -58,7 +58,7 @@ export type Image = {
|
|
|
58
58
|
/**
|
|
59
59
|
* The detail level for image understanding.
|
|
60
60
|
*/
|
|
61
|
-
detail?:
|
|
61
|
+
detail?: Detail | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* The ID of a previously uploaded file.
|
|
64
64
|
*/
|
|
@@ -121,7 +121,7 @@ export type InputType = ClosedEnum<typeof InputType>;
|
|
|
121
121
|
/**
|
|
122
122
|
* An input item. The "type" field determines the item kind: "message", "function_call_output", "item_reference", etc.
|
|
123
123
|
*/
|
|
124
|
-
export type
|
|
124
|
+
export type Input2 = {
|
|
125
125
|
/**
|
|
126
126
|
* The ID of the function call being responded to (for function_call_output type).
|
|
127
127
|
*/
|
|
@@ -151,9 +151,7 @@ export type CreateRouterResponseInput2 = {
|
|
|
151
151
|
/**
|
|
152
152
|
* Input to the model: a string or an array of input items (messages, files, etc.).
|
|
153
153
|
*/
|
|
154
|
-
export type CreateRouterResponseInput =
|
|
155
|
-
| string
|
|
156
|
-
| Array<CreateRouterResponseInput2>;
|
|
154
|
+
export type CreateRouterResponseInput = string | Array<Input2>;
|
|
157
155
|
|
|
158
156
|
/**
|
|
159
157
|
* Template engine for variable substitution in instructions. Defaults to the agent manifest's engine when invoking an agent, otherwise text.
|
|
@@ -291,7 +289,7 @@ export type ToolsMCPTool = {
|
|
|
291
289
|
/**
|
|
292
290
|
* The orq.ai tool type.
|
|
293
291
|
*/
|
|
294
|
-
export const
|
|
292
|
+
export const CreateRouterResponseToolsType = {
|
|
295
293
|
OrqCurrentDate: "orq:current_date",
|
|
296
294
|
OrqGoogleSearch: "orq:google_search",
|
|
297
295
|
OrqWebScraper: "orq:web_scraper",
|
|
@@ -302,8 +300,8 @@ export const CreateRouterResponseToolsResponsesType = {
|
|
|
302
300
|
/**
|
|
303
301
|
* The orq.ai tool type.
|
|
304
302
|
*/
|
|
305
|
-
export type
|
|
306
|
-
typeof
|
|
303
|
+
export type CreateRouterResponseToolsType = ClosedEnum<
|
|
304
|
+
typeof CreateRouterResponseToolsType
|
|
307
305
|
>;
|
|
308
306
|
|
|
309
307
|
/**
|
|
@@ -317,7 +315,7 @@ export type OrqAiTool = {
|
|
|
317
315
|
/**
|
|
318
316
|
* The orq.ai tool type.
|
|
319
317
|
*/
|
|
320
|
-
type:
|
|
318
|
+
type: CreateRouterResponseToolsType;
|
|
321
319
|
};
|
|
322
320
|
|
|
323
321
|
/**
|
|
@@ -375,7 +373,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
375
373
|
/**
|
|
376
374
|
* Input to the model: a string or an array of input items (messages, files, etc.).
|
|
377
375
|
*/
|
|
378
|
-
input?: string | Array<
|
|
376
|
+
input?: string | Array<Input2> | undefined;
|
|
379
377
|
/**
|
|
380
378
|
* System prompt / instructions for the model.
|
|
381
379
|
*/
|
|
@@ -533,15 +531,13 @@ export type CreateRouterResponseResponsesResponseBody = {
|
|
|
533
531
|
data?: CreateRouterResponseData | undefined;
|
|
534
532
|
};
|
|
535
533
|
|
|
536
|
-
export const
|
|
534
|
+
export const ServiceTier = {
|
|
537
535
|
Auto: "auto",
|
|
538
536
|
Default: "default",
|
|
539
537
|
Flex: "flex",
|
|
540
538
|
Priority: "priority",
|
|
541
539
|
} as const;
|
|
542
|
-
export type
|
|
543
|
-
typeof CreateRouterResponseServiceTier
|
|
544
|
-
>;
|
|
540
|
+
export type ServiceTier = ClosedEnum<typeof ServiceTier>;
|
|
545
541
|
|
|
546
542
|
export const CreateRouterResponseStatus = {
|
|
547
543
|
Queued: "queued",
|
|
@@ -555,13 +551,11 @@ export type CreateRouterResponseStatus = ClosedEnum<
|
|
|
555
551
|
typeof CreateRouterResponseStatus
|
|
556
552
|
>;
|
|
557
553
|
|
|
558
|
-
export const
|
|
554
|
+
export const Truncation = {
|
|
559
555
|
Disabled: "disabled",
|
|
560
556
|
Auto: "auto",
|
|
561
557
|
} as const;
|
|
562
|
-
export type
|
|
563
|
-
typeof CreateRouterResponseTruncation
|
|
564
|
-
>;
|
|
558
|
+
export type Truncation = ClosedEnum<typeof Truncation>;
|
|
565
559
|
|
|
566
560
|
/**
|
|
567
561
|
* Returns a response object or a stream of events.
|
|
@@ -603,7 +597,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
603
597
|
promptCacheRetention: string | null;
|
|
604
598
|
reasoning: components.Reasoning;
|
|
605
599
|
safetyIdentifier: string | null;
|
|
606
|
-
serviceTier:
|
|
600
|
+
serviceTier: ServiceTier;
|
|
607
601
|
status: CreateRouterResponseStatus;
|
|
608
602
|
store: boolean;
|
|
609
603
|
temperature: number;
|
|
@@ -621,7 +615,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
621
615
|
tools: Array<any> | null;
|
|
622
616
|
topLogprobs: number;
|
|
623
617
|
topP: number;
|
|
624
|
-
truncation:
|
|
618
|
+
truncation: Truncation;
|
|
625
619
|
usage: components.PublicUsage;
|
|
626
620
|
user: string | null;
|
|
627
621
|
variables?: { [k: string]: any } | undefined;
|
|
@@ -667,8 +661,8 @@ export function twoFileToJSON(twoFile: TwoFile): string {
|
|
|
667
661
|
}
|
|
668
662
|
|
|
669
663
|
/** @internal */
|
|
670
|
-
export const
|
|
671
|
-
.nativeEnum(
|
|
664
|
+
export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> = z
|
|
665
|
+
.nativeEnum(Detail);
|
|
672
666
|
|
|
673
667
|
/** @internal */
|
|
674
668
|
export type Image$Outbound = {
|
|
@@ -684,7 +678,7 @@ export const Image$outboundSchema: z.ZodType<
|
|
|
684
678
|
z.ZodTypeDef,
|
|
685
679
|
Image
|
|
686
680
|
> = z.object({
|
|
687
|
-
detail:
|
|
681
|
+
detail: Detail$outboundSchema.optional(),
|
|
688
682
|
fileId: z.string().optional(),
|
|
689
683
|
imageUrl: z.string().optional(),
|
|
690
684
|
type: z.literal("input_image"),
|
|
@@ -778,7 +772,7 @@ export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
|
|
|
778
772
|
.nativeEnum(InputType);
|
|
779
773
|
|
|
780
774
|
/** @internal */
|
|
781
|
-
export type
|
|
775
|
+
export type Input2$Outbound = {
|
|
782
776
|
call_id?: string | undefined;
|
|
783
777
|
content?:
|
|
784
778
|
| string
|
|
@@ -791,10 +785,10 @@ export type CreateRouterResponseInput2$Outbound = {
|
|
|
791
785
|
};
|
|
792
786
|
|
|
793
787
|
/** @internal */
|
|
794
|
-
export const
|
|
795
|
-
|
|
788
|
+
export const Input2$outboundSchema: z.ZodType<
|
|
789
|
+
Input2$Outbound,
|
|
796
790
|
z.ZodTypeDef,
|
|
797
|
-
|
|
791
|
+
Input2
|
|
798
792
|
> = z.object({
|
|
799
793
|
callId: z.string().optional(),
|
|
800
794
|
content: z.union([
|
|
@@ -815,28 +809,21 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
815
809
|
});
|
|
816
810
|
});
|
|
817
811
|
|
|
818
|
-
export function
|
|
819
|
-
|
|
820
|
-
): string {
|
|
821
|
-
return JSON.stringify(
|
|
822
|
-
CreateRouterResponseInput2$outboundSchema.parse(createRouterResponseInput2),
|
|
823
|
-
);
|
|
812
|
+
export function input2ToJSON(input2: Input2): string {
|
|
813
|
+
return JSON.stringify(Input2$outboundSchema.parse(input2));
|
|
824
814
|
}
|
|
825
815
|
|
|
826
816
|
/** @internal */
|
|
827
817
|
export type CreateRouterResponseInput$Outbound =
|
|
828
818
|
| string
|
|
829
|
-
| Array<
|
|
819
|
+
| Array<Input2$Outbound>;
|
|
830
820
|
|
|
831
821
|
/** @internal */
|
|
832
822
|
export const CreateRouterResponseInput$outboundSchema: z.ZodType<
|
|
833
823
|
CreateRouterResponseInput$Outbound,
|
|
834
824
|
z.ZodTypeDef,
|
|
835
825
|
CreateRouterResponseInput
|
|
836
|
-
> = z.union([
|
|
837
|
-
z.string(),
|
|
838
|
-
z.array(z.lazy(() => CreateRouterResponseInput2$outboundSchema)),
|
|
839
|
-
]);
|
|
826
|
+
> = z.union([z.string(), z.array(z.lazy(() => Input2$outboundSchema))]);
|
|
840
827
|
|
|
841
828
|
export function createRouterResponseInputToJSON(
|
|
842
829
|
createRouterResponseInput: CreateRouterResponseInput,
|
|
@@ -1085,10 +1072,9 @@ export function toolsMCPToolToJSON(toolsMCPTool: ToolsMCPTool): string {
|
|
|
1085
1072
|
}
|
|
1086
1073
|
|
|
1087
1074
|
/** @internal */
|
|
1088
|
-
export const
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
);
|
|
1075
|
+
export const CreateRouterResponseToolsType$outboundSchema: z.ZodNativeEnum<
|
|
1076
|
+
typeof CreateRouterResponseToolsType
|
|
1077
|
+
> = z.nativeEnum(CreateRouterResponseToolsType);
|
|
1092
1078
|
|
|
1093
1079
|
/** @internal */
|
|
1094
1080
|
export type OrqAiTool$Outbound = {
|
|
@@ -1103,7 +1089,7 @@ export const OrqAiTool$outboundSchema: z.ZodType<
|
|
|
1103
1089
|
OrqAiTool
|
|
1104
1090
|
> = z.object({
|
|
1105
1091
|
toolId: z.string().optional(),
|
|
1106
|
-
type:
|
|
1092
|
+
type: CreateRouterResponseToolsType$outboundSchema,
|
|
1107
1093
|
}).transform((v) => {
|
|
1108
1094
|
return remap$(v, {
|
|
1109
1095
|
toolId: "tool_id",
|
|
@@ -1209,7 +1195,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1209
1195
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
1210
1196
|
frequency_penalty?: number | undefined;
|
|
1211
1197
|
identity?: components.ResponseIdentity$Outbound | undefined;
|
|
1212
|
-
input?: string | Array<
|
|
1198
|
+
input?: string | Array<Input2$Outbound> | undefined;
|
|
1213
1199
|
instructions?: string | undefined;
|
|
1214
1200
|
limits?: components.ResponseExecutionLimits$Outbound | undefined;
|
|
1215
1201
|
max_output_tokens?: number | undefined;
|
|
@@ -1260,10 +1246,8 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
1260
1246
|
.optional(),
|
|
1261
1247
|
frequencyPenalty: z.number().optional(),
|
|
1262
1248
|
identity: components.ResponseIdentity$outboundSchema.optional(),
|
|
1263
|
-
input: z.union([
|
|
1264
|
-
|
|
1265
|
-
z.array(z.lazy(() => CreateRouterResponseInput2$outboundSchema)),
|
|
1266
|
-
]).optional(),
|
|
1249
|
+
input: z.union([z.string(), z.array(z.lazy(() => Input2$outboundSchema))])
|
|
1250
|
+
.optional(),
|
|
1267
1251
|
instructions: z.string().optional(),
|
|
1268
1252
|
limits: components.ResponseExecutionLimits$outboundSchema.optional(),
|
|
1269
1253
|
maxOutputTokens: z.number().int().optional(),
|
|
@@ -1407,9 +1391,8 @@ export function createRouterResponseResponsesResponseBodyFromJSON(
|
|
|
1407
1391
|
}
|
|
1408
1392
|
|
|
1409
1393
|
/** @internal */
|
|
1410
|
-
export const
|
|
1411
|
-
|
|
1412
|
-
> = z.nativeEnum(CreateRouterResponseServiceTier);
|
|
1394
|
+
export const ServiceTier$inboundSchema: z.ZodNativeEnum<typeof ServiceTier> = z
|
|
1395
|
+
.nativeEnum(ServiceTier);
|
|
1413
1396
|
|
|
1414
1397
|
/** @internal */
|
|
1415
1398
|
export const CreateRouterResponseStatus$inboundSchema: z.ZodNativeEnum<
|
|
@@ -1417,9 +1400,8 @@ export const CreateRouterResponseStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
1417
1400
|
> = z.nativeEnum(CreateRouterResponseStatus);
|
|
1418
1401
|
|
|
1419
1402
|
/** @internal */
|
|
1420
|
-
export const
|
|
1421
|
-
|
|
1422
|
-
> = z.nativeEnum(CreateRouterResponseTruncation);
|
|
1403
|
+
export const Truncation$inboundSchema: z.ZodNativeEnum<typeof Truncation> = z
|
|
1404
|
+
.nativeEnum(Truncation);
|
|
1423
1405
|
|
|
1424
1406
|
/** @internal */
|
|
1425
1407
|
export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
@@ -1451,7 +1433,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
1451
1433
|
prompt_cache_retention: z.nullable(z.string()),
|
|
1452
1434
|
reasoning: components.Reasoning$inboundSchema,
|
|
1453
1435
|
safety_identifier: z.nullable(z.string()),
|
|
1454
|
-
service_tier:
|
|
1436
|
+
service_tier: ServiceTier$inboundSchema,
|
|
1455
1437
|
status: CreateRouterResponseStatus$inboundSchema,
|
|
1456
1438
|
store: z.boolean(),
|
|
1457
1439
|
temperature: z.number(),
|
|
@@ -1460,7 +1442,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
1460
1442
|
tools: z.nullable(z.array(z.any())),
|
|
1461
1443
|
top_logprobs: z.number().int(),
|
|
1462
1444
|
top_p: z.number(),
|
|
1463
|
-
truncation:
|
|
1445
|
+
truncation: Truncation$inboundSchema,
|
|
1464
1446
|
usage: components.PublicUsage$inboundSchema,
|
|
1465
1447
|
user: z.nullable(z.string()),
|
|
1466
1448
|
variables: z.record(z.any()).optional(),
|
|
@@ -1902,7 +1902,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1902
1902
|
z.ZodTypeDef,
|
|
1903
1903
|
unknown
|
|
1904
1904
|
> = z.object({
|
|
1905
|
-
_id: z.string().default("
|
|
1905
|
+
_id: z.string().default("tool_01KRDY302R1SKNRFXRR8REA4SC"),
|
|
1906
1906
|
path: z.string(),
|
|
1907
1907
|
key: z.string(),
|
|
1908
1908
|
display_name: z.string().optional(),
|
|
@@ -1999,7 +1999,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1999
1999
|
z.ZodTypeDef,
|
|
2000
2000
|
unknown
|
|
2001
2001
|
> = z.object({
|
|
2002
|
-
id: z.string().default("
|
|
2002
|
+
id: z.string().default("01KRDY302QG0RP41DXY21T42NY"),
|
|
2003
2003
|
name: z.string(),
|
|
2004
2004
|
description: z.string().optional(),
|
|
2005
2005
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2055,7 +2055,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2055
2055
|
z.ZodTypeDef,
|
|
2056
2056
|
unknown
|
|
2057
2057
|
> = z.object({
|
|
2058
|
-
_id: z.string().default("
|
|
2058
|
+
_id: z.string().default("tool_01KRDY302PNGN2TFJVPKMG3RD4"),
|
|
2059
2059
|
path: z.string(),
|
|
2060
2060
|
key: z.string(),
|
|
2061
2061
|
display_name: z.string().optional(),
|
|
@@ -2241,7 +2241,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2241
2241
|
z.ZodTypeDef,
|
|
2242
2242
|
unknown
|
|
2243
2243
|
> = z.object({
|
|
2244
|
-
_id: z.string().default("
|
|
2244
|
+
_id: z.string().default("tool_01KRDY302MP4B5ZBFXHJ5GMV5G"),
|
|
2245
2245
|
path: z.string(),
|
|
2246
2246
|
key: z.string(),
|
|
2247
2247
|
display_name: z.string().optional(),
|
|
@@ -2334,7 +2334,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2334
2334
|
z.ZodTypeDef,
|
|
2335
2335
|
unknown
|
|
2336
2336
|
> = z.object({
|
|
2337
|
-
_id: z.string().default("
|
|
2337
|
+
_id: z.string().default("tool_01KRDY302KB5DQJRXY006R2D3N"),
|
|
2338
2338
|
path: z.string(),
|
|
2339
2339
|
key: z.string(),
|
|
2340
2340
|
display_name: z.string().optional(),
|
|
@@ -2435,7 +2435,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2435
2435
|
z.ZodTypeDef,
|
|
2436
2436
|
unknown
|
|
2437
2437
|
> = z.object({
|
|
2438
|
-
_id: z.string().default("
|
|
2438
|
+
_id: z.string().default("tool_01KRDY302H9M3CGYZCQZZVF7T5"),
|
|
2439
2439
|
path: z.string(),
|
|
2440
2440
|
key: z.string(),
|
|
2441
2441
|
display_name: z.string().optional(),
|