@orq-ai/node 4.16.12 → 4.16.14
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +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/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +5 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetalert.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetalertrestresponse.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/createbudgetrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/guardrailruleplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/routingruleplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/spansummary.ts +6 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +4 -4
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcompletion.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -2
- package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +15 -18
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +11 -14
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +0 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +21 -35
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/updateagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/feedback.ts +0 -30
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +25 -0
- package/packages/orq-rc/src/sdk/sdk.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- 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/updatetool.ts +4 -4
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +0 -173
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -453
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
|
@@ -511,7 +511,7 @@ export const CreateImageEditCache$outboundSchema: z.ZodType<
|
|
|
511
511
|
z.ZodTypeDef,
|
|
512
512
|
CreateImageEditCache
|
|
513
513
|
> = z.object({
|
|
514
|
-
ttl: z.number().default(
|
|
514
|
+
ttl: z.number().default(3600),
|
|
515
515
|
type: CreateImageEditType$outboundSchema,
|
|
516
516
|
});
|
|
517
517
|
|
|
@@ -732,7 +732,7 @@ export const CreateImageEditRouterImagesEditsCache$outboundSchema: z.ZodType<
|
|
|
732
732
|
z.ZodTypeDef,
|
|
733
733
|
CreateImageEditRouterImagesEditsCache
|
|
734
734
|
> = z.object({
|
|
735
|
-
ttl: z.number().default(
|
|
735
|
+
ttl: z.number().default(3600),
|
|
736
736
|
type: CreateImageEditRouterImagesEditsType$outboundSchema,
|
|
737
737
|
});
|
|
738
738
|
|
|
@@ -518,7 +518,7 @@ export const CreateImageVariationCache$outboundSchema: z.ZodType<
|
|
|
518
518
|
z.ZodTypeDef,
|
|
519
519
|
CreateImageVariationCache
|
|
520
520
|
> = z.object({
|
|
521
|
-
ttl: z.number().default(
|
|
521
|
+
ttl: z.number().default(3600),
|
|
522
522
|
type: CreateImageVariationType$outboundSchema,
|
|
523
523
|
});
|
|
524
524
|
|
|
@@ -745,7 +745,7 @@ export const CreateImageVariationRouterImagesVariationsCache$outboundSchema:
|
|
|
745
745
|
z.ZodTypeDef,
|
|
746
746
|
CreateImageVariationRouterImagesVariationsCache
|
|
747
747
|
> = z.object({
|
|
748
|
-
ttl: z.number().default(
|
|
748
|
+
ttl: z.number().default(3600),
|
|
749
749
|
type: CreateImageVariationRouterImagesVariationsType$outboundSchema,
|
|
750
750
|
});
|
|
751
751
|
|
|
@@ -3765,7 +3765,7 @@ export const CreatePromptCache$outboundSchema: z.ZodType<
|
|
|
3765
3765
|
z.ZodTypeDef,
|
|
3766
3766
|
CreatePromptCache
|
|
3767
3767
|
> = z.object({
|
|
3768
|
-
ttl: z.number().default(
|
|
3768
|
+
ttl: z.number().default(3600),
|
|
3769
3769
|
type: CreatePromptType$outboundSchema,
|
|
3770
3770
|
});
|
|
3771
3771
|
|
|
@@ -5118,7 +5118,7 @@ export const CreatePromptPromptsCache$inboundSchema: z.ZodType<
|
|
|
5118
5118
|
z.ZodTypeDef,
|
|
5119
5119
|
unknown
|
|
5120
5120
|
> = z.object({
|
|
5121
|
-
ttl: z.number().default(
|
|
5121
|
+
ttl: z.number().default(3600),
|
|
5122
5122
|
type: CreatePromptPromptsResponse200Type$inboundSchema,
|
|
5123
5123
|
});
|
|
5124
5124
|
|
|
@@ -404,7 +404,7 @@ export const CreateRerankCache$outboundSchema: z.ZodType<
|
|
|
404
404
|
z.ZodTypeDef,
|
|
405
405
|
CreateRerankCache
|
|
406
406
|
> = z.object({
|
|
407
|
-
ttl: z.number().default(
|
|
407
|
+
ttl: z.number().default(3600),
|
|
408
408
|
type: CreateRerankType$outboundSchema,
|
|
409
409
|
});
|
|
410
410
|
|
|
@@ -557,7 +557,7 @@ export const CreateRerankRouterRerankCache$outboundSchema: z.ZodType<
|
|
|
557
557
|
z.ZodTypeDef,
|
|
558
558
|
CreateRerankRouterRerankCache
|
|
559
559
|
> = z.object({
|
|
560
|
-
ttl: z.number().default(
|
|
560
|
+
ttl: z.number().default(3600),
|
|
561
561
|
type: CreateRerankRouterRerankType$outboundSchema,
|
|
562
562
|
});
|
|
563
563
|
|
|
@@ -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_01M5CA2HTDMSGC0DT6CEP5VFA6"),
|
|
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_01M5CA2HTC099X2VE2474PCD0X"),
|
|
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_01M5CA2HTBD9X3JRNE4RFQBHCE"),
|
|
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_01M5CA2HTBB450S99S6VVQZXAZ"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -168,7 +168,7 @@ export type DeploymentInvokeMessageRole = ClosedEnum<
|
|
|
168
168
|
typeof DeploymentInvokeMessageRole
|
|
169
169
|
>;
|
|
170
170
|
|
|
171
|
-
export type
|
|
171
|
+
export type Three = {
|
|
172
172
|
type: "image";
|
|
173
173
|
/**
|
|
174
174
|
* The role of the prompt message
|
|
@@ -282,11 +282,11 @@ export type Message1 = {
|
|
|
282
282
|
redactedReasoning?: string | undefined;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
export type Message = Message1 | Message2 |
|
|
285
|
+
export type Message = Message1 | Message2 | Three;
|
|
286
286
|
|
|
287
287
|
export type Choices = {
|
|
288
288
|
index: number;
|
|
289
|
-
message: Message1 | Message2 |
|
|
289
|
+
message: Message1 | Message2 | Three;
|
|
290
290
|
finishReason?: string | null | undefined;
|
|
291
291
|
};
|
|
292
292
|
|
|
@@ -517,23 +517,20 @@ export const DeploymentInvokeMessageRole$inboundSchema: z.ZodNativeEnum<
|
|
|
517
517
|
> = z.nativeEnum(DeploymentInvokeMessageRole);
|
|
518
518
|
|
|
519
519
|
/** @internal */
|
|
520
|
-
export const
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
role: DeploymentInvokeMessageRole$inboundSchema,
|
|
527
|
-
url: z.string(),
|
|
528
|
-
});
|
|
520
|
+
export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
|
|
521
|
+
.object({
|
|
522
|
+
type: z.literal("image"),
|
|
523
|
+
role: DeploymentInvokeMessageRole$inboundSchema,
|
|
524
|
+
url: z.string(),
|
|
525
|
+
});
|
|
529
526
|
|
|
530
|
-
export function
|
|
527
|
+
export function threeFromJSON(
|
|
531
528
|
jsonString: string,
|
|
532
|
-
): SafeParseResult<
|
|
529
|
+
): SafeParseResult<Three, SDKValidationError> {
|
|
533
530
|
return safeParse(
|
|
534
531
|
jsonString,
|
|
535
|
-
(x) =>
|
|
536
|
-
`Failed to parse '
|
|
532
|
+
(x) => Three$inboundSchema.parse(JSON.parse(x)),
|
|
533
|
+
`Failed to parse 'Three' from JSON`,
|
|
537
534
|
);
|
|
538
535
|
}
|
|
539
536
|
|
|
@@ -659,7 +656,7 @@ export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
|
|
|
659
656
|
z.union([
|
|
660
657
|
z.lazy(() => Message1$inboundSchema),
|
|
661
658
|
z.lazy(() => Message2$inboundSchema),
|
|
662
|
-
z.lazy(() =>
|
|
659
|
+
z.lazy(() => Three$inboundSchema),
|
|
663
660
|
]);
|
|
664
661
|
|
|
665
662
|
export function messageFromJSON(
|
|
@@ -679,7 +676,7 @@ export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
|
|
|
679
676
|
message: z.union([
|
|
680
677
|
z.lazy(() => Message1$inboundSchema),
|
|
681
678
|
z.lazy(() => Message2$inboundSchema),
|
|
682
|
-
z.lazy(() =>
|
|
679
|
+
z.lazy(() => Three$inboundSchema),
|
|
683
680
|
]),
|
|
684
681
|
finish_reason: z.nullable(z.string()).optional(),
|
|
685
682
|
}).transform((v) => {
|
|
@@ -1276,7 +1276,7 @@ export type DeploymentStreamMessageDeploymentsResponseRole = ClosedEnum<
|
|
|
1276
1276
|
typeof DeploymentStreamMessageDeploymentsResponseRole
|
|
1277
1277
|
>;
|
|
1278
1278
|
|
|
1279
|
-
export type
|
|
1279
|
+
export type Message3 = {
|
|
1280
1280
|
type: "image";
|
|
1281
1281
|
/**
|
|
1282
1282
|
* The role of the prompt message
|
|
@@ -1395,14 +1395,11 @@ export type DeploymentStreamMessage1 = {
|
|
|
1395
1395
|
export type DeploymentStreamMessage =
|
|
1396
1396
|
| DeploymentStreamMessage1
|
|
1397
1397
|
| DeploymentStreamMessage2
|
|
1398
|
-
|
|
|
1398
|
+
| Message3;
|
|
1399
1399
|
|
|
1400
1400
|
export type DeploymentStreamChoices = {
|
|
1401
1401
|
index: number;
|
|
1402
|
-
message:
|
|
1403
|
-
| DeploymentStreamMessage1
|
|
1404
|
-
| DeploymentStreamMessage2
|
|
1405
|
-
| DeploymentStreamMessage3;
|
|
1402
|
+
message: DeploymentStreamMessage1 | DeploymentStreamMessage2 | Message3;
|
|
1406
1403
|
finishReason?: string | null | undefined;
|
|
1407
1404
|
};
|
|
1408
1405
|
|
|
@@ -3974,8 +3971,8 @@ export const DeploymentStreamMessageDeploymentsResponseRole$inboundSchema:
|
|
|
3974
3971
|
.nativeEnum(DeploymentStreamMessageDeploymentsResponseRole);
|
|
3975
3972
|
|
|
3976
3973
|
/** @internal */
|
|
3977
|
-
export const
|
|
3978
|
-
|
|
3974
|
+
export const Message3$inboundSchema: z.ZodType<
|
|
3975
|
+
Message3,
|
|
3979
3976
|
z.ZodTypeDef,
|
|
3980
3977
|
unknown
|
|
3981
3978
|
> = z.object({
|
|
@@ -3984,13 +3981,13 @@ export const DeploymentStreamMessage3$inboundSchema: z.ZodType<
|
|
|
3984
3981
|
url: z.string(),
|
|
3985
3982
|
});
|
|
3986
3983
|
|
|
3987
|
-
export function
|
|
3984
|
+
export function message3FromJSON(
|
|
3988
3985
|
jsonString: string,
|
|
3989
|
-
): SafeParseResult<
|
|
3986
|
+
): SafeParseResult<Message3, SDKValidationError> {
|
|
3990
3987
|
return safeParse(
|
|
3991
3988
|
jsonString,
|
|
3992
|
-
(x) =>
|
|
3993
|
-
`Failed to parse '
|
|
3989
|
+
(x) => Message3$inboundSchema.parse(JSON.parse(x)),
|
|
3990
|
+
`Failed to parse 'Message3' from JSON`,
|
|
3994
3991
|
);
|
|
3995
3992
|
}
|
|
3996
3993
|
|
|
@@ -4122,7 +4119,7 @@ export const DeploymentStreamMessage$inboundSchema: z.ZodType<
|
|
|
4122
4119
|
> = z.union([
|
|
4123
4120
|
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
4124
4121
|
z.lazy(() => DeploymentStreamMessage2$inboundSchema),
|
|
4125
|
-
z.lazy(() =>
|
|
4122
|
+
z.lazy(() => Message3$inboundSchema),
|
|
4126
4123
|
]);
|
|
4127
4124
|
|
|
4128
4125
|
export function deploymentStreamMessageFromJSON(
|
|
@@ -4145,7 +4142,7 @@ export const DeploymentStreamChoices$inboundSchema: z.ZodType<
|
|
|
4145
4142
|
message: z.union([
|
|
4146
4143
|
z.lazy(() => DeploymentStreamMessage1$inboundSchema),
|
|
4147
4144
|
z.lazy(() => DeploymentStreamMessage2$inboundSchema),
|
|
4148
|
-
z.lazy(() =>
|
|
4145
|
+
z.lazy(() => Message3$inboundSchema),
|
|
4149
4146
|
]),
|
|
4150
4147
|
finish_reason: z.nullable(z.string()).optional(),
|
|
4151
4148
|
}).transform((v) => {
|
|
@@ -2635,7 +2635,7 @@ export const GetAllPromptsCache$inboundSchema: z.ZodType<
|
|
|
2635
2635
|
z.ZodTypeDef,
|
|
2636
2636
|
unknown
|
|
2637
2637
|
> = z.object({
|
|
2638
|
-
ttl: z.number().default(
|
|
2638
|
+
ttl: z.number().default(3600),
|
|
2639
2639
|
type: GetAllPromptsPromptsType$inboundSchema,
|
|
2640
2640
|
});
|
|
2641
2641
|
|
|
@@ -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_01M5CA2HT4ZD43J103VMM62DTR"),
|
|
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_01M5CA2HT37A81Z54YNZ88CZPM"),
|
|
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_01M5CA2HT2VWMWVR07C6CTBN2G"),
|
|
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_01M5CA2HT1Y8PY9H7AVWTZCAP9"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -2593,7 +2593,7 @@ export const GetOnePromptCache$inboundSchema: z.ZodType<
|
|
|
2593
2593
|
z.ZodTypeDef,
|
|
2594
2594
|
unknown
|
|
2595
2595
|
> = z.object({
|
|
2596
|
-
ttl: z.number().default(
|
|
2596
|
+
ttl: z.number().default(3600),
|
|
2597
2597
|
type: GetOnePromptPromptsType$inboundSchema,
|
|
2598
2598
|
});
|
|
2599
2599
|
|
|
@@ -2622,7 +2622,7 @@ export const GetPromptVersionCache$inboundSchema: z.ZodType<
|
|
|
2622
2622
|
z.ZodTypeDef,
|
|
2623
2623
|
unknown
|
|
2624
2624
|
> = z.object({
|
|
2625
|
-
ttl: z.number().default(
|
|
2625
|
+
ttl: z.number().default(3600),
|
|
2626
2626
|
type: GetPromptVersionType$inboundSchema,
|
|
2627
2627
|
});
|
|
2628
2628
|
|
|
@@ -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-20T09:25:18.712Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-20T09:25:18.712Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-20T09:25:18.712Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-20T09:25:18.712Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -211,8 +211,6 @@ export * from "./policyget.js";
|
|
|
211
211
|
export * from "./policylist.js";
|
|
212
212
|
export * from "./policyupdate.js";
|
|
213
213
|
export * from "./postv2feedback.js";
|
|
214
|
-
export * from "./postv2feedbackevaluation.js";
|
|
215
|
-
export * from "./postv2feedbackevaluationremove.js";
|
|
216
214
|
export * from "./postv2feedbackremove.js";
|
|
217
215
|
export * from "./postv2humanevalsets.js";
|
|
218
216
|
export * from "./postv2routerocr.js";
|
|
@@ -1986,7 +1986,7 @@ export const ListAgentsCache$inboundSchema: z.ZodType<
|
|
|
1986
1986
|
z.ZodTypeDef,
|
|
1987
1987
|
unknown
|
|
1988
1988
|
> = z.object({
|
|
1989
|
-
ttl: z.number().default(
|
|
1989
|
+
ttl: z.number().default(3600),
|
|
1990
1990
|
type: ListAgentsAgentsType$inboundSchema,
|
|
1991
1991
|
});
|
|
1992
1992
|
|
|
@@ -2623,7 +2623,7 @@ export const ListAgentsFallbackModelConfigurationCache$inboundSchema: z.ZodType<
|
|
|
2623
2623
|
z.ZodTypeDef,
|
|
2624
2624
|
unknown
|
|
2625
2625
|
> = z.object({
|
|
2626
|
-
ttl: z.number().default(
|
|
2626
|
+
ttl: z.number().default(3600),
|
|
2627
2627
|
type: ListAgentsFallbackModelConfigurationType$inboundSchema,
|
|
2628
2628
|
});
|
|
2629
2629
|
|
|
@@ -2525,7 +2525,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
2525
2525
|
z.ZodTypeDef,
|
|
2526
2526
|
unknown
|
|
2527
2527
|
> = z.object({
|
|
2528
|
-
id: z.string().default("
|
|
2528
|
+
id: z.string().default("01M5CA2HM4Z6GQ3PKXHXG7P6P3"),
|
|
2529
2529
|
knowledge_id: z.string(),
|
|
2530
2530
|
configuration: z.union([
|
|
2531
2531
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -2655,7 +2655,7 @@ export const ListPromptVersionsCache$inboundSchema: z.ZodType<
|
|
|
2655
2655
|
z.ZodTypeDef,
|
|
2656
2656
|
unknown
|
|
2657
2657
|
> = z.object({
|
|
2658
|
-
ttl: z.number().default(
|
|
2658
|
+
ttl: z.number().default(3600),
|
|
2659
2659
|
type: ListPromptVersionsType$inboundSchema,
|
|
2660
2660
|
});
|
|
2661
2661
|
|
|
@@ -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-20T09:25:18.712Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-10-
|
|
367
|
+
"2026-10-20T09:25:18.712Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type RequestBody2 = {
|
|
12
12
|
/**
|
|
13
13
|
* Display name of the human review set
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export type PostV2HumanEvalSetsRequestBody2 = {
|
|
|
32
32
|
filterValue: string;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type RequestBody1 = {
|
|
36
36
|
/**
|
|
37
37
|
* Display name of the human review set
|
|
38
38
|
*/
|
|
@@ -56,9 +56,7 @@ export type PostV2HumanEvalSetsRequestBody1 = {
|
|
|
56
56
|
filterValues: Array<string>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
export type PostV2HumanEvalSetsRequestBody =
|
|
60
|
-
| PostV2HumanEvalSetsRequestBody1
|
|
61
|
-
| PostV2HumanEvalSetsRequestBody2;
|
|
59
|
+
export type PostV2HumanEvalSetsRequestBody = RequestBody1 | RequestBody2;
|
|
62
60
|
|
|
63
61
|
export type PostV2HumanEvalSetsResponseBody2 = {
|
|
64
62
|
/**
|
|
@@ -146,7 +144,7 @@ export type PostV2HumanEvalSetsResponseBody =
|
|
|
146
144
|
| PostV2HumanEvalSetsResponseBody2;
|
|
147
145
|
|
|
148
146
|
/** @internal */
|
|
149
|
-
export type
|
|
147
|
+
export type RequestBody2$Outbound = {
|
|
150
148
|
display_name: string;
|
|
151
149
|
description?: string | undefined;
|
|
152
150
|
human_eval_ids: Array<string>;
|
|
@@ -156,10 +154,10 @@ export type PostV2HumanEvalSetsRequestBody2$Outbound = {
|
|
|
156
154
|
};
|
|
157
155
|
|
|
158
156
|
/** @internal */
|
|
159
|
-
export const
|
|
160
|
-
|
|
157
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
158
|
+
RequestBody2$Outbound,
|
|
161
159
|
z.ZodTypeDef,
|
|
162
|
-
|
|
160
|
+
RequestBody2
|
|
163
161
|
> = z.object({
|
|
164
162
|
displayName: z.string(),
|
|
165
163
|
description: z.string().optional(),
|
|
@@ -177,18 +175,12 @@ export const PostV2HumanEvalSetsRequestBody2$outboundSchema: z.ZodType<
|
|
|
177
175
|
});
|
|
178
176
|
});
|
|
179
177
|
|
|
180
|
-
export function
|
|
181
|
-
|
|
182
|
-
): string {
|
|
183
|
-
return JSON.stringify(
|
|
184
|
-
PostV2HumanEvalSetsRequestBody2$outboundSchema.parse(
|
|
185
|
-
postV2HumanEvalSetsRequestBody2,
|
|
186
|
-
),
|
|
187
|
-
);
|
|
178
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
179
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
188
180
|
}
|
|
189
181
|
|
|
190
182
|
/** @internal */
|
|
191
|
-
export type
|
|
183
|
+
export type RequestBody1$Outbound = {
|
|
192
184
|
display_name: string;
|
|
193
185
|
description?: string | undefined;
|
|
194
186
|
human_eval_ids: Array<string>;
|
|
@@ -198,10 +190,10 @@ export type PostV2HumanEvalSetsRequestBody1$Outbound = {
|
|
|
198
190
|
};
|
|
199
191
|
|
|
200
192
|
/** @internal */
|
|
201
|
-
export const
|
|
202
|
-
|
|
193
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
194
|
+
RequestBody1$Outbound,
|
|
203
195
|
z.ZodTypeDef,
|
|
204
|
-
|
|
196
|
+
RequestBody1
|
|
205
197
|
> = z.object({
|
|
206
198
|
displayName: z.string(),
|
|
207
199
|
description: z.string().optional(),
|
|
@@ -219,20 +211,14 @@ export const PostV2HumanEvalSetsRequestBody1$outboundSchema: z.ZodType<
|
|
|
219
211
|
});
|
|
220
212
|
});
|
|
221
213
|
|
|
222
|
-
export function
|
|
223
|
-
|
|
224
|
-
): string {
|
|
225
|
-
return JSON.stringify(
|
|
226
|
-
PostV2HumanEvalSetsRequestBody1$outboundSchema.parse(
|
|
227
|
-
postV2HumanEvalSetsRequestBody1,
|
|
228
|
-
),
|
|
229
|
-
);
|
|
214
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
215
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
230
216
|
}
|
|
231
217
|
|
|
232
218
|
/** @internal */
|
|
233
219
|
export type PostV2HumanEvalSetsRequestBody$Outbound =
|
|
234
|
-
|
|
|
235
|
-
|
|
|
220
|
+
| RequestBody1$Outbound
|
|
221
|
+
| RequestBody2$Outbound;
|
|
236
222
|
|
|
237
223
|
/** @internal */
|
|
238
224
|
export const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<
|
|
@@ -240,8 +226,8 @@ export const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<
|
|
|
240
226
|
z.ZodTypeDef,
|
|
241
227
|
PostV2HumanEvalSetsRequestBody
|
|
242
228
|
> = z.union([
|
|
243
|
-
z.lazy(() =>
|
|
244
|
-
z.lazy(() =>
|
|
229
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
230
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
245
231
|
]);
|
|
246
232
|
|
|
247
233
|
export function postV2HumanEvalSetsRequestBodyToJSON(
|
|
@@ -271,7 +257,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
257
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
258
|
.optional(),
|
|
273
259
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-10-
|
|
260
|
+
"2026-10-20T09:25:18.712Z",
|
|
275
261
|
).transform(v => new Date(v)),
|
|
276
262
|
filter_type: z.literal("name"),
|
|
277
263
|
filter_value: z.string(),
|
|
@@ -316,7 +302,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
303
|
.optional(),
|
|
318
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-10-
|
|
305
|
+
"2026-10-20T09:25:18.712Z",
|
|
320
306
|
).transform(v => new Date(v)),
|
|
321
307
|
filter_type: z.literal("span_type"),
|
|
322
308
|
filter_values: z.array(z.string()),
|
|
@@ -1995,7 +1995,7 @@ export const RetrieveAgentRequestCache$inboundSchema: z.ZodType<
|
|
|
1995
1995
|
z.ZodTypeDef,
|
|
1996
1996
|
unknown
|
|
1997
1997
|
> = z.object({
|
|
1998
|
-
ttl: z.number().default(
|
|
1998
|
+
ttl: z.number().default(3600),
|
|
1999
1999
|
type: RetrieveAgentRequestAgentsType$inboundSchema,
|
|
2000
2000
|
});
|
|
2001
2001
|
|
|
@@ -2669,7 +2669,7 @@ export const RetrieveAgentRequestFallbackModelConfigurationCache$inboundSchema:
|
|
|
2669
2669
|
z.ZodTypeDef,
|
|
2670
2670
|
unknown
|
|
2671
2671
|
> = z.object({
|
|
2672
|
-
ttl: z.number().default(
|
|
2672
|
+
ttl: z.number().default(3600),
|
|
2673
2673
|
type: RetrieveAgentRequestFallbackModelConfigurationType$inboundSchema,
|
|
2674
2674
|
});
|
|
2675
2675
|
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M5CA2HTX35ED4D7RTGHGF9CQ"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M5CA2HTWN8NAVJF2B9VA6EQS"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M5CA2HTV8GNHF9XDGK2DPCBS"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M5CA2HTTAWT44443T01ZYMHN"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -2367,7 +2367,7 @@ export const RunAgentModelConfigurationCache$outboundSchema: z.ZodType<
|
|
|
2367
2367
|
z.ZodTypeDef,
|
|
2368
2368
|
RunAgentModelConfigurationCache
|
|
2369
2369
|
> = z.object({
|
|
2370
|
-
ttl: z.number().default(
|
|
2370
|
+
ttl: z.number().default(3600),
|
|
2371
2371
|
type: RunAgentModelConfigurationType$outboundSchema,
|
|
2372
2372
|
});
|
|
2373
2373
|
|
|
@@ -3169,7 +3169,7 @@ export const RunAgentFallbackModelConfigurationCache$outboundSchema: z.ZodType<
|
|
|
3169
3169
|
z.ZodTypeDef,
|
|
3170
3170
|
RunAgentFallbackModelConfigurationCache
|
|
3171
3171
|
> = z.object({
|
|
3172
|
-
ttl: z.number().default(
|
|
3172
|
+
ttl: z.number().default(3600),
|
|
3173
3173
|
type: RunAgentFallbackModelConfigurationType$outboundSchema,
|
|
3174
3174
|
});
|
|
3175
3175
|
|
|
@@ -3904,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3904
3904
|
z.ZodTypeDef,
|
|
3905
3905
|
Tools
|
|
3906
3906
|
> = z.object({
|
|
3907
|
-
id: z.string().default("
|
|
3907
|
+
id: z.string().default("01M5CA2HQFAEQD8DJGJ5WT12P3"),
|
|
3908
3908
|
name: z.string(),
|
|
3909
3909
|
description: z.string().optional(),
|
|
3910
3910
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|