@orq-ai/node 4.7.5 → 4.7.7
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/funcs/filesCreate.js +3 -2
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +3 -2
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +3 -2
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +7 -0
- package/lib/encodings.js.map +1 -1
- 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.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevals.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getv2humanevalsid.js +6 -6
- 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/patchv2humanevalsid.js +12 -12
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevals.js +12 -12
- 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 +1 -1
- package/packages/orq-rc/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
- package/packages/orq-rc/src/funcs/agentsCreate.ts +2 -2
- package/packages/orq-rc/src/funcs/{evaluatorsGetV2EvaluatorsIdVersions.ts → evalsGetV2EvaluatorsIdVersions.ts} +1 -1
- package/packages/orq-rc/src/funcs/{postV2Feedback.ts → feedbackPostV2Feedback.ts} +5 -5
- package/packages/orq-rc/src/funcs/{postV2FeedbackRemove.ts → feedbackPostV2FeedbackRemove.ts} +1 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +4 -3
- package/packages/orq-rc/src/funcs/{postV2HumanEvals.ts → guardrailRulesCreate.ts} +20 -27
- package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +170 -0
- package/packages/orq-rc/src/funcs/guardrailRulesList.ts +170 -0
- package/packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts +168 -0
- package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/packages/orq-rc/src/funcs/policiesCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/policiesDelete.ts +166 -0
- package/packages/orq-rc/src/funcs/{modelsList.ts → policiesList.ts} +17 -14
- package/packages/orq-rc/src/funcs/{getV2HumanEvalsId.ts → policiesRetrieve.ts} +19 -22
- package/packages/orq-rc/src/funcs/{patchV2HumanEvalsId.ts → policiesUpdate.ts} +20 -24
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +4 -3
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +4 -3
- package/packages/orq-rc/src/funcs/routingRulesCreate.ts +161 -0
- package/packages/orq-rc/src/funcs/routingRulesDelete.ts +166 -0
- package/packages/orq-rc/src/funcs/{getV2HumanEvals.ts → routingRulesList.ts} +22 -23
- package/packages/orq-rc/src/funcs/{deleteV2HumanEvalsId.ts → routingRulesRetrieve.ts} +20 -24
- package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +166 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +9 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +9 -6
- package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
- package/packages/orq-rc/src/models/components/evaluatorref.ts +89 -0
- package/packages/orq-rc/src/models/components/expression.ts +51 -0
- package/packages/orq-rc/src/models/components/guardrailref.ts +75 -0
- package/packages/orq-rc/src/models/components/guardrailruledocument.ts +66 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/limits.ts +70 -0
- package/packages/orq-rc/src/models/components/modelref.ts +64 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +73 -0
- package/packages/orq-rc/src/models/components/policydocument.ts +76 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
- package/packages/orq-rc/src/models/components/retryconfig.ts +60 -0
- package/packages/orq-rc/src/models/components/routingruledocument.ts +67 -0
- package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -5
- package/packages/orq-rc/src/models/errors/postv2feedback.ts +8 -8
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -3
- package/packages/orq-rc/src/models/operations/createchunk.ts +7 -7
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +970 -150
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createknowledge.ts +17 -19
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/createresponse.ts +11 -11
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -21
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +447 -16
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- 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/guardrailrulecreate.ts +124 -0
- package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/guardrailruleget.ts +102 -0
- package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +94 -0
- package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +153 -0
- package/packages/orq-rc/src/models/operations/index.ts +15 -6
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
- package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
- package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
- package/packages/orq-rc/src/models/operations/policyupdate.ts +167 -0
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +8 -8
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -21
- package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
- package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
- package/packages/orq-rc/src/models/operations/routingrulelist.ts +94 -0
- package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +646 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -22
- package/packages/orq-rc/src/sdk/evals.ts +18 -0
- package/packages/orq-rc/src/sdk/feedback.ts +33 -0
- package/packages/orq-rc/src/sdk/guardrailrules.ts +99 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/packages/orq-rc/src/sdk/policies.ts +99 -0
- package/packages/orq-rc/src/sdk/routingrules.ts +99 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -94
- package/src/funcs/filesCreate.ts +4 -3
- package/src/funcs/routerAudioTranscriptionsCreate.ts +4 -3
- package/src/funcs/routerAudioTranslationsCreate.ts +4 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +9 -0
- 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 +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevals.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getv2humanevalsid.ts +6 -6
- 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/patchv2humanevalsid.ts +12 -12
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevals.ts +12 -12
- 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/packages/orq-rc/src/models/errors/deletev2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2humanevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/patchv2humanevalsid.ts +0 -51
- package/packages/orq-rc/src/models/errors/postv2humanevals.ts +0 -51
- package/packages/orq-rc/src/models/operations/deletev2humanevalsid.ts +0 -67
- package/packages/orq-rc/src/models/operations/getv2humanevals.ts +0 -696
- package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +0 -707
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -169
- package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +0 -1362
- package/packages/orq-rc/src/models/operations/postv2humanevals.ts +0 -1193
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -27
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-04-
|
|
159
|
+
"2026-04-15T12:53:36.045Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KP8K92M3EFR1YAZG47KZJ95S"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
|
|
|
227
227
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
228
228
|
.optional(),
|
|
229
229
|
updated: z.string().datetime({ offset: true }).default(
|
|
230
|
-
"2026-04-
|
|
230
|
+
"2026-04-15T12:53:36.045Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -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-04-
|
|
321
|
+
"2026-04-15T12:53:36.045Z",
|
|
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-04-
|
|
367
|
+
"2026-04-15T12:53:36.045Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type PolicyCreateRequestBody = {
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
displayName: string;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
evaluators?: Array<components.EvaluatorRef> | null | undefined;
|
|
17
|
+
limits?: components.Limits | undefined;
|
|
18
|
+
modelsConfig?: components.ModelsConfig | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Optional project ID. If null/omitted, the entity is global (workspace-wide).
|
|
21
|
+
*/
|
|
22
|
+
projectId?: string | undefined;
|
|
23
|
+
retryConfig?: components.RetryConfig | undefined;
|
|
24
|
+
timeout?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Policy created successfully
|
|
29
|
+
*/
|
|
30
|
+
export type PolicyCreateResponseBody = {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
createdById: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
displayName: string;
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
evaluators?: Array<components.EvaluatorRef> | null | undefined;
|
|
38
|
+
limits?: components.Limits | undefined;
|
|
39
|
+
modelsConfig?: components.ModelsConfig | undefined;
|
|
40
|
+
projectId: string;
|
|
41
|
+
retryConfig?: components.RetryConfig | undefined;
|
|
42
|
+
slug: string;
|
|
43
|
+
timeout: number;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
updatedById: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type PolicyCreateRequestBody$Outbound = {
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
display_name: string;
|
|
52
|
+
enabled?: boolean | undefined;
|
|
53
|
+
evaluators?: Array<components.EvaluatorRef$Outbound> | null | undefined;
|
|
54
|
+
limits?: components.Limits$Outbound | undefined;
|
|
55
|
+
models_config?: components.ModelsConfig$Outbound | undefined;
|
|
56
|
+
project_id?: string | undefined;
|
|
57
|
+
retry_config?: components.RetryConfig$Outbound | undefined;
|
|
58
|
+
timeout?: number | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const PolicyCreateRequestBody$outboundSchema: z.ZodType<
|
|
63
|
+
PolicyCreateRequestBody$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
PolicyCreateRequestBody
|
|
66
|
+
> = z.object({
|
|
67
|
+
description: z.string().optional(),
|
|
68
|
+
displayName: z.string(),
|
|
69
|
+
enabled: z.boolean().optional(),
|
|
70
|
+
evaluators: z.nullable(z.array(components.EvaluatorRef$outboundSchema))
|
|
71
|
+
.optional(),
|
|
72
|
+
limits: components.Limits$outboundSchema.optional(),
|
|
73
|
+
modelsConfig: components.ModelsConfig$outboundSchema.optional(),
|
|
74
|
+
projectId: z.string().optional(),
|
|
75
|
+
retryConfig: components.RetryConfig$outboundSchema.optional(),
|
|
76
|
+
timeout: z.number().int().optional(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
displayName: "display_name",
|
|
80
|
+
modelsConfig: "models_config",
|
|
81
|
+
projectId: "project_id",
|
|
82
|
+
retryConfig: "retry_config",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function policyCreateRequestBodyToJSON(
|
|
87
|
+
policyCreateRequestBody: PolicyCreateRequestBody,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
PolicyCreateRequestBody$outboundSchema.parse(policyCreateRequestBody),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const PolicyCreateResponseBody$inboundSchema: z.ZodType<
|
|
96
|
+
PolicyCreateResponseBody,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z.object({
|
|
100
|
+
_id: z.string(),
|
|
101
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
102
|
+
created_by_id: z.string(),
|
|
103
|
+
description: z.string().optional(),
|
|
104
|
+
display_name: z.string(),
|
|
105
|
+
enabled: z.boolean(),
|
|
106
|
+
evaluators: z.nullable(z.array(components.EvaluatorRef$inboundSchema))
|
|
107
|
+
.optional(),
|
|
108
|
+
limits: components.Limits$inboundSchema.optional(),
|
|
109
|
+
models_config: components.ModelsConfig$inboundSchema.optional(),
|
|
110
|
+
project_id: z.string(),
|
|
111
|
+
retry_config: components.RetryConfig$inboundSchema.optional(),
|
|
112
|
+
slug: z.string(),
|
|
113
|
+
timeout: z.number().int(),
|
|
114
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
115
|
+
updated_by_id: z.string(),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
"_id": "id",
|
|
119
|
+
"created_at": "createdAt",
|
|
120
|
+
"created_by_id": "createdById",
|
|
121
|
+
"display_name": "displayName",
|
|
122
|
+
"models_config": "modelsConfig",
|
|
123
|
+
"project_id": "projectId",
|
|
124
|
+
"retry_config": "retryConfig",
|
|
125
|
+
"updated_at": "updatedAt",
|
|
126
|
+
"updated_by_id": "updatedById",
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export function policyCreateResponseBodyFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<PolicyCreateResponseBody, SDKValidationError> {
|
|
133
|
+
return safeParse(
|
|
134
|
+
jsonString,
|
|
135
|
+
(x) => PolicyCreateResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'PolicyCreateResponseBody' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
@@ -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 PolicyDeleteRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the policy
|
|
11
|
+
*/
|
|
12
|
+
policyId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type PolicyDeleteRequest$Outbound = {
|
|
17
|
+
policy_id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PolicyDeleteRequest$outboundSchema: z.ZodType<
|
|
22
|
+
PolicyDeleteRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
PolicyDeleteRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
policyId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
policyId: "policy_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function policyDeleteRequestToJSON(
|
|
34
|
+
policyDeleteRequest: PolicyDeleteRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
PolicyDeleteRequest$outboundSchema.parse(policyDeleteRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type PolicyGetRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the policy
|
|
15
|
+
*/
|
|
16
|
+
policyId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Policy retrieved successfully
|
|
21
|
+
*/
|
|
22
|
+
export type PolicyGetResponseBody = {
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
createdById: string;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
displayName: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
evaluators?: Array<components.EvaluatorRef> | null | undefined;
|
|
30
|
+
limits?: components.Limits | undefined;
|
|
31
|
+
modelsConfig?: components.ModelsConfig | undefined;
|
|
32
|
+
projectId: string;
|
|
33
|
+
retryConfig?: components.RetryConfig | undefined;
|
|
34
|
+
slug: string;
|
|
35
|
+
timeout: number;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
updatedById: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type PolicyGetRequest$Outbound = {
|
|
42
|
+
policy_id: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PolicyGetRequest$outboundSchema: z.ZodType<
|
|
47
|
+
PolicyGetRequest$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PolicyGetRequest
|
|
50
|
+
> = z.object({
|
|
51
|
+
policyId: z.string(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
policyId: "policy_id",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function policyGetRequestToJSON(
|
|
59
|
+
policyGetRequest: PolicyGetRequest,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
PolicyGetRequest$outboundSchema.parse(policyGetRequest),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const PolicyGetResponseBody$inboundSchema: z.ZodType<
|
|
68
|
+
PolicyGetResponseBody,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = z.object({
|
|
72
|
+
_id: z.string(),
|
|
73
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
74
|
+
created_by_id: z.string(),
|
|
75
|
+
description: z.string().optional(),
|
|
76
|
+
display_name: z.string(),
|
|
77
|
+
enabled: z.boolean(),
|
|
78
|
+
evaluators: z.nullable(z.array(components.EvaluatorRef$inboundSchema))
|
|
79
|
+
.optional(),
|
|
80
|
+
limits: components.Limits$inboundSchema.optional(),
|
|
81
|
+
models_config: components.ModelsConfig$inboundSchema.optional(),
|
|
82
|
+
project_id: z.string(),
|
|
83
|
+
retry_config: components.RetryConfig$inboundSchema.optional(),
|
|
84
|
+
slug: z.string(),
|
|
85
|
+
timeout: z.number().int(),
|
|
86
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
|
+
updated_by_id: z.string(),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
"_id": "id",
|
|
91
|
+
"created_at": "createdAt",
|
|
92
|
+
"created_by_id": "createdById",
|
|
93
|
+
"display_name": "displayName",
|
|
94
|
+
"models_config": "modelsConfig",
|
|
95
|
+
"project_id": "projectId",
|
|
96
|
+
"retry_config": "retryConfig",
|
|
97
|
+
"updated_at": "updatedAt",
|
|
98
|
+
"updated_by_id": "updatedById",
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export function policyGetResponseBodyFromJSON(
|
|
103
|
+
jsonString: string,
|
|
104
|
+
): SafeParseResult<PolicyGetResponseBody, SDKValidationError> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) => PolicyGetResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'PolicyGetResponseBody' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type PolicyListRequest = {
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* A cursor for use in pagination.
|
|
16
|
+
*/
|
|
17
|
+
startingAfter?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* A cursor for use in pagination.
|
|
20
|
+
*/
|
|
21
|
+
endingBefore?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional filter by project ID.
|
|
24
|
+
*/
|
|
25
|
+
projectId?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Policies retrieved successfully
|
|
30
|
+
*/
|
|
31
|
+
export type PolicyListResponseBody = {
|
|
32
|
+
data: Array<components.PolicyDocument> | null;
|
|
33
|
+
hasMore: boolean;
|
|
34
|
+
object: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type PolicyListRequest$Outbound = {
|
|
39
|
+
limit: number;
|
|
40
|
+
starting_after?: string | undefined;
|
|
41
|
+
ending_before?: string | undefined;
|
|
42
|
+
project_id?: string | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PolicyListRequest$outboundSchema: z.ZodType<
|
|
47
|
+
PolicyListRequest$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PolicyListRequest
|
|
50
|
+
> = z.object({
|
|
51
|
+
limit: z.number().int().default(10),
|
|
52
|
+
startingAfter: z.string().optional(),
|
|
53
|
+
endingBefore: z.string().optional(),
|
|
54
|
+
projectId: z.string().optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
startingAfter: "starting_after",
|
|
58
|
+
endingBefore: "ending_before",
|
|
59
|
+
projectId: "project_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function policyListRequestToJSON(
|
|
64
|
+
policyListRequest: PolicyListRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
PolicyListRequest$outboundSchema.parse(policyListRequest),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const PolicyListResponseBody$inboundSchema: z.ZodType<
|
|
73
|
+
PolicyListResponseBody,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
data: z.nullable(z.array(components.PolicyDocument$inboundSchema)),
|
|
78
|
+
has_more: z.boolean(),
|
|
79
|
+
object: z.string(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
"has_more": "hasMore",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function policyListResponseBodyFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<PolicyListResponseBody, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => PolicyListResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'PolicyListResponseBody' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type PolicyUpdateRequestBody = {
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
evaluators?: Array<components.EvaluatorRef> | undefined;
|
|
17
|
+
limits?: components.Limits | undefined;
|
|
18
|
+
modelsConfig?: components.ModelsConfig | undefined;
|
|
19
|
+
retryConfig?: components.RetryConfig | undefined;
|
|
20
|
+
timeout?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type PolicyUpdateRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the policy
|
|
26
|
+
*/
|
|
27
|
+
policyId: string;
|
|
28
|
+
requestBody: PolicyUpdateRequestBody;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Policy updated successfully
|
|
33
|
+
*/
|
|
34
|
+
export type PolicyUpdateResponseBody = {
|
|
35
|
+
id: string;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
createdById: string;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
displayName: string;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
evaluators?: Array<components.EvaluatorRef> | null | undefined;
|
|
42
|
+
limits?: components.Limits | undefined;
|
|
43
|
+
modelsConfig?: components.ModelsConfig | undefined;
|
|
44
|
+
projectId: string;
|
|
45
|
+
retryConfig?: components.RetryConfig | undefined;
|
|
46
|
+
slug: string;
|
|
47
|
+
timeout: number;
|
|
48
|
+
updatedAt: Date;
|
|
49
|
+
updatedById: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type PolicyUpdateRequestBody$Outbound = {
|
|
54
|
+
description?: string | undefined;
|
|
55
|
+
display_name?: string | undefined;
|
|
56
|
+
enabled?: boolean | undefined;
|
|
57
|
+
evaluators?: Array<components.EvaluatorRef$Outbound> | undefined;
|
|
58
|
+
limits?: components.Limits$Outbound | undefined;
|
|
59
|
+
models_config?: components.ModelsConfig$Outbound | undefined;
|
|
60
|
+
retry_config?: components.RetryConfig$Outbound | undefined;
|
|
61
|
+
timeout?: number | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const PolicyUpdateRequestBody$outboundSchema: z.ZodType<
|
|
66
|
+
PolicyUpdateRequestBody$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
PolicyUpdateRequestBody
|
|
69
|
+
> = z.object({
|
|
70
|
+
description: z.string().optional(),
|
|
71
|
+
displayName: z.string().optional(),
|
|
72
|
+
enabled: z.boolean().optional(),
|
|
73
|
+
evaluators: z.array(components.EvaluatorRef$outboundSchema).optional(),
|
|
74
|
+
limits: components.Limits$outboundSchema.optional(),
|
|
75
|
+
modelsConfig: components.ModelsConfig$outboundSchema.optional(),
|
|
76
|
+
retryConfig: components.RetryConfig$outboundSchema.optional(),
|
|
77
|
+
timeout: z.number().int().optional(),
|
|
78
|
+
}).transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
displayName: "display_name",
|
|
81
|
+
modelsConfig: "models_config",
|
|
82
|
+
retryConfig: "retry_config",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function policyUpdateRequestBodyToJSON(
|
|
87
|
+
policyUpdateRequestBody: PolicyUpdateRequestBody,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
PolicyUpdateRequestBody$outboundSchema.parse(policyUpdateRequestBody),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type PolicyUpdateRequest$Outbound = {
|
|
96
|
+
policy_id: string;
|
|
97
|
+
RequestBody: PolicyUpdateRequestBody$Outbound;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const PolicyUpdateRequest$outboundSchema: z.ZodType<
|
|
102
|
+
PolicyUpdateRequest$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
PolicyUpdateRequest
|
|
105
|
+
> = z.object({
|
|
106
|
+
policyId: z.string(),
|
|
107
|
+
requestBody: z.lazy(() => PolicyUpdateRequestBody$outboundSchema),
|
|
108
|
+
}).transform((v) => {
|
|
109
|
+
return remap$(v, {
|
|
110
|
+
policyId: "policy_id",
|
|
111
|
+
requestBody: "RequestBody",
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function policyUpdateRequestToJSON(
|
|
116
|
+
policyUpdateRequest: PolicyUpdateRequest,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
PolicyUpdateRequest$outboundSchema.parse(policyUpdateRequest),
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const PolicyUpdateResponseBody$inboundSchema: z.ZodType<
|
|
125
|
+
PolicyUpdateResponseBody,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
unknown
|
|
128
|
+
> = z.object({
|
|
129
|
+
_id: z.string(),
|
|
130
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
131
|
+
created_by_id: z.string(),
|
|
132
|
+
description: z.string().optional(),
|
|
133
|
+
display_name: z.string(),
|
|
134
|
+
enabled: z.boolean(),
|
|
135
|
+
evaluators: z.nullable(z.array(components.EvaluatorRef$inboundSchema))
|
|
136
|
+
.optional(),
|
|
137
|
+
limits: components.Limits$inboundSchema.optional(),
|
|
138
|
+
models_config: components.ModelsConfig$inboundSchema.optional(),
|
|
139
|
+
project_id: z.string(),
|
|
140
|
+
retry_config: components.RetryConfig$inboundSchema.optional(),
|
|
141
|
+
slug: z.string(),
|
|
142
|
+
timeout: z.number().int(),
|
|
143
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
144
|
+
updated_by_id: z.string(),
|
|
145
|
+
}).transform((v) => {
|
|
146
|
+
return remap$(v, {
|
|
147
|
+
"_id": "id",
|
|
148
|
+
"created_at": "createdAt",
|
|
149
|
+
"created_by_id": "createdById",
|
|
150
|
+
"display_name": "displayName",
|
|
151
|
+
"models_config": "modelsConfig",
|
|
152
|
+
"project_id": "projectId",
|
|
153
|
+
"retry_config": "retryConfig",
|
|
154
|
+
"updated_at": "updatedAt",
|
|
155
|
+
"updated_by_id": "updatedById",
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function policyUpdateResponseBodyFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<PolicyUpdateResponseBody, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => PolicyUpdateResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'PolicyUpdateResponseBody' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
@@ -81,7 +81,6 @@ export type PostV2AgentsA2aResponseBody = {
|
|
|
81
81
|
role?: string | undefined;
|
|
82
82
|
instructions?: string | undefined;
|
|
83
83
|
status: string;
|
|
84
|
-
versionHash?: string | undefined;
|
|
85
84
|
path: string;
|
|
86
85
|
metrics: PostV2AgentsA2aMetrics;
|
|
87
86
|
memoryStores: Array<string>;
|
|
@@ -222,7 +221,6 @@ export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
|
|
|
222
221
|
role: z.string().optional(),
|
|
223
222
|
instructions: z.string().optional(),
|
|
224
223
|
status: z.string(),
|
|
225
|
-
version_hash: z.string().optional(),
|
|
226
224
|
path: z.string(),
|
|
227
225
|
metrics: z.lazy(() => PostV2AgentsA2aMetrics$inboundSchema),
|
|
228
226
|
memory_stores: z.array(z.string()),
|
|
@@ -238,7 +236,6 @@ export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
|
|
|
238
236
|
"project_id": "projectId",
|
|
239
237
|
"created_by_id": "createdById",
|
|
240
238
|
"updated_by_id": "updatedById",
|
|
241
|
-
"version_hash": "versionHash",
|
|
242
239
|
"memory_stores": "memoryStores",
|
|
243
240
|
"team_of_agents": "teamOfAgents",
|
|
244
241
|
});
|
|
@@ -173,7 +173,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
173
173
|
humanReviewId: z.string(),
|
|
174
174
|
source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
|
|
175
175
|
.default("orq"),
|
|
176
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
176
|
+
reviewedAt: z.date().default(() => new Date("2026-04-15T12:53:53.095Z"))
|
|
177
177
|
.transform(v => v.toISOString()),
|
|
178
178
|
type: z.literal("string_array"),
|
|
179
179
|
values: z.array(z.string()),
|
|
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
225
225
|
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
226
226
|
"orq",
|
|
227
227
|
),
|
|
228
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
228
|
+
reviewedAt: z.date().default(() => new Date("2026-04-15T12:53:53.094Z"))
|
|
229
229
|
.transform(v => v.toISOString()),
|
|
230
230
|
type: z.literal("number"),
|
|
231
231
|
value: z.number(),
|
|
@@ -275,7 +275,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
275
275
|
evaluationType: EvaluationType$outboundSchema,
|
|
276
276
|
humanReviewId: z.string(),
|
|
277
277
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
278
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
278
|
+
reviewedAt: z.date().default(() => new Date("2026-04-15T12:53:53.094Z"))
|
|
279
279
|
.transform(v => v.toISOString()),
|
|
280
280
|
type: z.literal("string"),
|
|
281
281
|
value: z.string(),
|