@orq-ai/node 4.7.3 → 4.7.6
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 +1 -1
- package/funcs/filesCreate.js +3 -2
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesGetContent.d.ts +1 -1
- package/funcs/filesGetContent.js +3 -3
- package/funcs/filesGetContent.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/filecontent.d.ts +3 -3
- package/models/operations/filecontent.d.ts.map +1 -1
- package/models/operations/filecontent.js +2 -2
- package/models/operations/filecontent.js.map +1 -1
- 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/src/funcs/agentsCreate.ts +2 -2
- package/packages/orq-rc/src/funcs/filesCreate.ts +4 -3
- package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +161 -0
- package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +170 -0
- package/packages/orq-rc/src/funcs/guardrailRulesGet.ts +168 -0
- package/packages/orq-rc/src/funcs/guardrailRulesList.ts +170 -0
- package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +170 -0
- 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/policiesGet.ts +165 -0
- package/packages/orq-rc/src/funcs/policiesList.ts +168 -0
- package/packages/orq-rc/src/funcs/policiesUpdate.ts +166 -0
- 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/routingRulesGet.ts +165 -0
- package/packages/orq-rc/src/funcs/routingRulesList.ts +168 -0
- 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/operations/createagentrequest.ts +0 -3
- 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 +958 -132
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -21
- 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/getv2humanevals.ts +6 -6
- 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/getv2humanevalsid.ts +6 -6
- 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 -0
- 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/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +12 -12
- 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/postv2humanevals.ts +12 -12
- 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/updatetool.ts +7 -22
- package/packages/orq-rc/src/sdk/guardrailrules.ts +99 -0
- 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 +18 -0
- package/sdk/files.d.ts +7 -7
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +9 -9
- package/sdk/files.js.map +1 -1
- package/src/funcs/filesCreate.ts +4 -3
- package/src/funcs/filesGetContent.ts +3 -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/filecontent.ts +5 -5
- 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/src/sdk/files.ts +17 -17
|
@@ -1114,7 +1114,6 @@ export type ListAgentsData = {
|
|
|
1114
1114
|
* Current semantic version of the agent manifest.
|
|
1115
1115
|
*/
|
|
1116
1116
|
version?: string | undefined;
|
|
1117
|
-
versionHash?: string | undefined;
|
|
1118
1117
|
/**
|
|
1119
1118
|
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1120
1119
|
*
|
|
@@ -2712,7 +2711,6 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2712
2711
|
updated: z.string().optional(),
|
|
2713
2712
|
status: ListAgentsStatus$inboundSchema,
|
|
2714
2713
|
version: z.string().optional(),
|
|
2715
|
-
version_hash: z.string().optional(),
|
|
2716
2714
|
path: z.string(),
|
|
2717
2715
|
memory_stores: z.array(z.string()).optional(),
|
|
2718
2716
|
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
|
|
@@ -2737,7 +2735,6 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2737
2735
|
"display_name": "displayName",
|
|
2738
2736
|
"created_by_id": "createdById",
|
|
2739
2737
|
"updated_by_id": "updatedById",
|
|
2740
|
-
"version_hash": "versionHash",
|
|
2741
2738
|
"memory_stores": "memoryStores",
|
|
2742
2739
|
"team_of_agents": "teamOfAgents",
|
|
2743
2740
|
"knowledge_bases": "knowledgeBases",
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-04-
|
|
1273
|
+
"2026-04-14T08:17:08.945Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-04-
|
|
1323
|
+
"2026-04-14T08:17:08.945Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-04-
|
|
1372
|
+
"2026-04-14T08:17:08.944Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-04-
|
|
1451
|
+
"2026-04-14T08:16:52.325Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -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-14T08:16:52.325Z",
|
|
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("01KP5H1MRB3G7J01JAXJT6SZBJ"),
|
|
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-14T08:16:52.325Z",
|
|
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-14T08:16:52.325Z",
|
|
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-14T08:16:52.325Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -614,7 +614,7 @@ export type Six$Outbound = {
|
|
|
614
614
|
export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
|
|
615
615
|
.object({
|
|
616
616
|
type: z.literal("text"),
|
|
617
|
-
key: z.string().default("
|
|
617
|
+
key: z.string().default("orq_01kp5h1n1g"),
|
|
618
618
|
displayName: z.string(),
|
|
619
619
|
description: z.string(),
|
|
620
620
|
createdById: z.string().optional(),
|
|
@@ -692,7 +692,7 @@ export const RequestBody5$outboundSchema: z.ZodType<
|
|
|
692
692
|
options: z.array(
|
|
693
693
|
z.lazy(() => PatchV2HumanEvalsIdRequestBodyOptionsInput$outboundSchema),
|
|
694
694
|
),
|
|
695
|
-
key: z.string().default("
|
|
695
|
+
key: z.string().default("orq_01kp5h1n1f"),
|
|
696
696
|
displayName: z.string(),
|
|
697
697
|
description: z.string(),
|
|
698
698
|
createdById: z.string().optional(),
|
|
@@ -768,7 +768,7 @@ export const PatchV2HumanEvalsIdRequestBody4$outboundSchema: z.ZodType<
|
|
|
768
768
|
options: z.array(
|
|
769
769
|
z.lazy(() => PatchV2HumanEvalsIdRequestBodyOptions$outboundSchema),
|
|
770
770
|
),
|
|
771
|
-
key: z.string().default("
|
|
771
|
+
key: z.string().default("orq_01kp5h1n1e"),
|
|
772
772
|
displayName: z.string(),
|
|
773
773
|
description: z.string(),
|
|
774
774
|
createdById: z.string().optional(),
|
|
@@ -837,7 +837,7 @@ export const PatchV2HumanEvalsIdRequestBody3$outboundSchema: z.ZodType<
|
|
|
837
837
|
> = z.object({
|
|
838
838
|
type: z.literal("range"),
|
|
839
839
|
config: z.lazy(() => RequestBodyConfig$outboundSchema),
|
|
840
|
-
key: z.string().default("
|
|
840
|
+
key: z.string().default("orq_01kp5h1n1d"),
|
|
841
841
|
displayName: z.string(),
|
|
842
842
|
description: z.string(),
|
|
843
843
|
createdById: z.string().optional(),
|
|
@@ -880,7 +880,7 @@ export const PatchV2HumanEvalsIdRequestBody2$outboundSchema: z.ZodType<
|
|
|
880
880
|
PatchV2HumanEvalsIdRequestBody2
|
|
881
881
|
> = z.object({
|
|
882
882
|
type: z.literal("correction"),
|
|
883
|
-
key: z.string().default("
|
|
883
|
+
key: z.string().default("orq_01kp5h1n1c"),
|
|
884
884
|
displayName: z.string(),
|
|
885
885
|
description: z.string(),
|
|
886
886
|
createdById: z.string().optional(),
|
|
@@ -923,7 +923,7 @@ export const PatchV2HumanEvalsIdRequestBody1$outboundSchema: z.ZodType<
|
|
|
923
923
|
PatchV2HumanEvalsIdRequestBody1
|
|
924
924
|
> = z.object({
|
|
925
925
|
type: z.literal("boolean"),
|
|
926
|
-
key: z.string().default("
|
|
926
|
+
key: z.string().default("orq_01kp5h1n1c"),
|
|
927
927
|
displayName: z.string(),
|
|
928
928
|
description: z.string(),
|
|
929
929
|
createdById: z.string().optional(),
|
|
@@ -1031,7 +1031,7 @@ export const PatchV2HumanEvalsIdResponseBody6$inboundSchema: z.ZodType<
|
|
|
1031
1031
|
> = z.object({
|
|
1032
1032
|
type: z.literal("text"),
|
|
1033
1033
|
id: z.string(),
|
|
1034
|
-
key: z.string().default("
|
|
1034
|
+
key: z.string().default("orq_01kp5h1n1b"),
|
|
1035
1035
|
display_name: z.string(),
|
|
1036
1036
|
description: z.string(),
|
|
1037
1037
|
domain_id: z.string().optional(),
|
|
@@ -1106,7 +1106,7 @@ export const PatchV2HumanEvalsIdResponseBody5$inboundSchema: z.ZodType<
|
|
|
1106
1106
|
z.lazy(() => PatchV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema),
|
|
1107
1107
|
),
|
|
1108
1108
|
id: z.string(),
|
|
1109
|
-
key: z.string().default("
|
|
1109
|
+
key: z.string().default("orq_01kp5h1n1a"),
|
|
1110
1110
|
display_name: z.string(),
|
|
1111
1111
|
description: z.string(),
|
|
1112
1112
|
domain_id: z.string().optional(),
|
|
@@ -1175,7 +1175,7 @@ export const PatchV2HumanEvalsIdResponseBody4$inboundSchema: z.ZodType<
|
|
|
1175
1175
|
z.lazy(() => PatchV2HumanEvalsIdResponseBodyOptions$inboundSchema),
|
|
1176
1176
|
),
|
|
1177
1177
|
id: z.string(),
|
|
1178
|
-
key: z.string().default("
|
|
1178
|
+
key: z.string().default("orq_01kp5h1n18"),
|
|
1179
1179
|
display_name: z.string(),
|
|
1180
1180
|
description: z.string(),
|
|
1181
1181
|
domain_id: z.string().optional(),
|
|
@@ -1234,7 +1234,7 @@ export const PatchV2HumanEvalsIdResponseBody3$inboundSchema: z.ZodType<
|
|
|
1234
1234
|
type: z.literal("range"),
|
|
1235
1235
|
config: z.lazy(() => PatchV2HumanEvalsIdResponseBodyConfig$inboundSchema),
|
|
1236
1236
|
id: z.string(),
|
|
1237
|
-
key: z.string().default("
|
|
1237
|
+
key: z.string().default("orq_01kp5h1n17"),
|
|
1238
1238
|
display_name: z.string(),
|
|
1239
1239
|
description: z.string(),
|
|
1240
1240
|
domain_id: z.string().optional(),
|
|
@@ -1271,7 +1271,7 @@ export const PatchV2HumanEvalsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
1271
1271
|
> = z.object({
|
|
1272
1272
|
type: z.literal("correction"),
|
|
1273
1273
|
id: z.string(),
|
|
1274
|
-
key: z.string().default("
|
|
1274
|
+
key: z.string().default("orq_01kp5h1n16"),
|
|
1275
1275
|
display_name: z.string(),
|
|
1276
1276
|
description: z.string(),
|
|
1277
1277
|
domain_id: z.string().optional(),
|
|
@@ -1308,7 +1308,7 @@ export const PatchV2HumanEvalsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
1308
1308
|
> = z.object({
|
|
1309
1309
|
type: z.literal("boolean"),
|
|
1310
1310
|
id: z.string(),
|
|
1311
|
-
key: z.string().default("
|
|
1311
|
+
key: z.string().default("orq_01kp5h1n15"),
|
|
1312
1312
|
display_name: z.string(),
|
|
1313
1313
|
description: z.string(),
|
|
1314
1314
|
domain_id: z.string().optional(),
|
|
@@ -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
|
+
}
|