@orq-ai/node 4.9.11 → 4.9.12
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 +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.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/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/{reportingQuery.ts → contactsCreate.ts} +13 -13
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +15 -10
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +16 -7
- package/packages/orq-rc/src/funcs/identitiesList.ts +5 -6
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +18 -6
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +15 -9
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -3
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
- package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -3
- package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -6
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -18
- package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/file.ts +3 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/index.ts +0 -15
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +10 -17
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -12
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -12
- package/packages/orq-rc/src/models/components/modelref.ts +0 -6
- package/packages/orq-rc/src/models/components/project.ts +3 -42
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/skill.ts +3 -37
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -12
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -21
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
- package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/createannotation.ts +11 -7
- package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
- 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 +31 -45
- package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
- package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -22
- package/packages/orq-rc/src/models/operations/getoneknowledge.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/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeeval.ts +80 -83
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -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 +230 -9
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +27 -34
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -3
- package/packages/orq-rc/src/models/operations/projectget.ts +0 -3
- package/packages/orq-rc/src/models/operations/projectlist.ts +0 -15
- package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -3
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -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 +138 -3
- package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
- package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -3
- package/packages/orq-rc/src/models/operations/skilllist.ts +0 -12
- package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -3
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +23 -30
- package/packages/orq-rc/src/models/operations/updateidentity.ts +154 -5
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
- package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
- package/packages/orq-rc/src/sdk/contacts.ts +27 -0
- package/packages/orq-rc/src/sdk/feedback.ts +8 -8
- package/packages/orq-rc/src/sdk/identities.ts +17 -18
- package/packages/orq-rc/src/sdk/projects.ts +2 -5
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -16
- package/packages/orq-rc/src/sdk/skills.ts +4 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +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/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
- package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/filter.ts +0 -137
- package/packages/orq-rc/src/models/components/identity.ts +0 -83
- package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -96
- package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/totals.ts +0 -34
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
- package/packages/orq-rc/src/sdk/reporting.ts +0 -27
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KS0ARZ5Z081EF396RFFQ2Q6F"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.string().optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -1541,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
1541
1541
|
> = z.object({
|
|
1542
1542
|
_id: z.string(),
|
|
1543
1543
|
description: z.string(),
|
|
1544
|
-
created: z.string().default("2026-05-
|
|
1545
|
-
updated: z.string().default("2026-05-
|
|
1544
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
1545
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
1546
1546
|
guardrail_config: z.nullable(
|
|
1547
1547
|
z.union([
|
|
1548
1548
|
z.lazy(() =>
|
|
@@ -1735,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
1735
1735
|
> = z.object({
|
|
1736
1736
|
_id: z.string(),
|
|
1737
1737
|
description: z.string(),
|
|
1738
|
-
created: z.string().default("2026-05-
|
|
1739
|
-
updated: z.string().default("2026-05-
|
|
1738
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
1739
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
1740
1740
|
guardrail_config: z.nullable(
|
|
1741
1741
|
z.union([
|
|
1742
1742
|
z.lazy(() =>
|
|
@@ -2592,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
2592
2592
|
> = z.object({
|
|
2593
2593
|
_id: z.string(),
|
|
2594
2594
|
description: z.string(),
|
|
2595
|
-
created: z.string().default("2026-05-
|
|
2596
|
-
updated: z.string().default("2026-05-
|
|
2595
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2596
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2597
2597
|
guardrail_config: z.nullable(
|
|
2598
2598
|
z.union([
|
|
2599
2599
|
z.lazy(() =>
|
|
@@ -2809,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2809
2809
|
> = z.object({
|
|
2810
2810
|
_id: z.string(),
|
|
2811
2811
|
description: z.string(),
|
|
2812
|
-
created: z.string().default("2026-05-
|
|
2813
|
-
updated: z.string().default("2026-05-
|
|
2812
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2813
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2814
2814
|
guardrail_config: z.nullable(
|
|
2815
2815
|
z.union([
|
|
2816
2816
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2976,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2976
2976
|
> = z.object({
|
|
2977
2977
|
_id: z.string(),
|
|
2978
2978
|
description: z.string(),
|
|
2979
|
-
created: z.string().default("2026-05-
|
|
2980
|
-
updated: z.string().default("2026-05-
|
|
2979
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2980
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
2981
2981
|
guardrail_config: z.nullable(
|
|
2982
2982
|
z.union([
|
|
2983
2983
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -3128,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3128
3128
|
> = z.object({
|
|
3129
3129
|
_id: z.string(),
|
|
3130
3130
|
description: z.string(),
|
|
3131
|
-
created: z.string().default("2026-05-
|
|
3132
|
-
updated: z.string().default("2026-05-
|
|
3131
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3132
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3133
3133
|
guardrail_config: z.nullable(
|
|
3134
3134
|
z.union([
|
|
3135
3135
|
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -3489,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3489
3489
|
> = z.object({
|
|
3490
3490
|
_id: z.string(),
|
|
3491
3491
|
description: z.string(),
|
|
3492
|
-
created: z.string().default("2026-05-
|
|
3493
|
-
updated: z.string().default("2026-05-
|
|
3492
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3493
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3494
3494
|
guardrail_config: z.nullable(
|
|
3495
3495
|
z.union([
|
|
3496
3496
|
z.lazy(() =>
|
|
@@ -3698,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3698
3698
|
> = z.object({
|
|
3699
3699
|
_id: z.string(),
|
|
3700
3700
|
description: z.string(),
|
|
3701
|
-
created: z.string().default("2026-05-
|
|
3702
|
-
updated: z.string().default("2026-05-
|
|
3701
|
+
created: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3702
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
3703
3703
|
guardrail_config: z.nullable(
|
|
3704
3704
|
z.union([
|
|
3705
3705
|
z.lazy(() =>
|
|
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-05-
|
|
170
|
+
"2026-05-19T14:38:12.201Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KS0ARZ33R0NSK5KTEKK1MMHA"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KS0ARZ2QE5XG90BZR7WNC4RW"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KS0ARZ2PH1VE8PY509W9KSJQ"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KS0ARZ2NP4XKRCCR08SFQJWM"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KS0ARZ2M9G6PHY6BV9JAPYHH"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KS0ARZ2KK024YRJ4TFTNTNR6"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KS0ARZ2JNAC524EQ8TNSBPAZ"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -1,76 +0,0 @@
|
|
|
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 CreateIdentityRequestMetadata = {};
|
|
9
|
-
|
|
10
|
-
export type CreateIdentityRequest = {
|
|
11
|
-
externalId?: string | undefined;
|
|
12
|
-
displayName?: string | undefined;
|
|
13
|
-
email?: string | undefined;
|
|
14
|
-
avatarUrl?: string | undefined;
|
|
15
|
-
tags?: Array<string> | undefined;
|
|
16
|
-
metadata?: CreateIdentityRequestMetadata | undefined;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type CreateIdentityRequestMetadata$Outbound = {};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const CreateIdentityRequestMetadata$outboundSchema: z.ZodType<
|
|
24
|
-
CreateIdentityRequestMetadata$Outbound,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
CreateIdentityRequestMetadata
|
|
27
|
-
> = z.object({});
|
|
28
|
-
|
|
29
|
-
export function createIdentityRequestMetadataToJSON(
|
|
30
|
-
createIdentityRequestMetadata: CreateIdentityRequestMetadata,
|
|
31
|
-
): string {
|
|
32
|
-
return JSON.stringify(
|
|
33
|
-
CreateIdentityRequestMetadata$outboundSchema.parse(
|
|
34
|
-
createIdentityRequestMetadata,
|
|
35
|
-
),
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type CreateIdentityRequest$Outbound = {
|
|
41
|
-
external_id?: string | undefined;
|
|
42
|
-
display_name?: string | undefined;
|
|
43
|
-
email?: string | undefined;
|
|
44
|
-
avatar_url?: string | undefined;
|
|
45
|
-
tags?: Array<string> | undefined;
|
|
46
|
-
metadata?: CreateIdentityRequestMetadata$Outbound | undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const CreateIdentityRequest$outboundSchema: z.ZodType<
|
|
51
|
-
CreateIdentityRequest$Outbound,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
CreateIdentityRequest
|
|
54
|
-
> = z.object({
|
|
55
|
-
externalId: z.string().optional(),
|
|
56
|
-
displayName: z.string().optional(),
|
|
57
|
-
email: z.string().optional(),
|
|
58
|
-
avatarUrl: z.string().optional(),
|
|
59
|
-
tags: z.array(z.string()).optional(),
|
|
60
|
-
metadata: z.lazy(() => CreateIdentityRequestMetadata$outboundSchema)
|
|
61
|
-
.optional(),
|
|
62
|
-
}).transform((v) => {
|
|
63
|
-
return remap$(v, {
|
|
64
|
-
externalId: "external_id",
|
|
65
|
-
displayName: "display_name",
|
|
66
|
-
avatarUrl: "avatar_url",
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export function createIdentityRequestToJSON(
|
|
71
|
-
createIdentityRequest: CreateIdentityRequest,
|
|
72
|
-
): string {
|
|
73
|
-
return JSON.stringify(
|
|
74
|
-
CreateIdentityRequest$outboundSchema.parse(createIdentityRequest),
|
|
75
|
-
);
|
|
76
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
10
|
-
|
|
11
|
-
export type CreateIdentityResponse = {
|
|
12
|
-
identity?: Identity | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const CreateIdentityResponse$inboundSchema: z.ZodType<
|
|
17
|
-
CreateIdentityResponse,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
identity: Identity$inboundSchema.optional(),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export function createIdentityResponseFromJSON(
|
|
25
|
-
jsonString: string,
|
|
26
|
-
): SafeParseResult<CreateIdentityResponse, SDKValidationError> {
|
|
27
|
-
return safeParse(
|
|
28
|
-
jsonString,
|
|
29
|
-
(x) => CreateIdentityResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
-
`Failed to parse 'CreateIdentityResponse' from JSON`,
|
|
31
|
-
);
|
|
32
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type DataPoint = {
|
|
11
|
-
/**
|
|
12
|
-
* Bucket start in UTC, RFC 3339. Clients that need epoch ms can call
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* `Date.parse(timestamp)` or `new Date(timestamp).getTime()` —
|
|
16
|
-
* returning the int64 in JSON would force a string (protojson rule)
|
|
17
|
-
* and force callers to coerce anyway, so we ship ISO only.
|
|
18
|
-
*/
|
|
19
|
-
timestamp?: Date | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Public breakdown labels for this bucket, keyed by group-by column.
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Empty when no group-by was requested. Empty values are omitted so
|
|
25
|
-
* the caller never has to special-case `""`.
|
|
26
|
-
*/
|
|
27
|
-
dimensions?: { [k: string]: string } | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Metric values for this bucket. Single-metric requests carry one
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* entry keyed by the requested metric name (e.g. `"genai.cost"` →
|
|
33
|
-
* `0.000495`). Bundle metrics carry one entry per field. Numbers are
|
|
34
|
-
* pre-rounded to 10 significant digits to avoid IEEE-754 display
|
|
35
|
-
* noise like `0.00009900000000000001`.
|
|
36
|
-
*/
|
|
37
|
-
metrics?: { [k: string]: number } | undefined;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const DataPoint$inboundSchema: z.ZodType<
|
|
42
|
-
DataPoint,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({
|
|
46
|
-
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
47
|
-
.optional(),
|
|
48
|
-
dimensions: z.record(z.string()).optional(),
|
|
49
|
-
metrics: z.record(z.number()).optional(),
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export function dataPointFromJSON(
|
|
53
|
-
jsonString: string,
|
|
54
|
-
): SafeParseResult<DataPoint, SDKValidationError> {
|
|
55
|
-
return safeParse(
|
|
56
|
-
jsonString,
|
|
57
|
-
(x) => DataPoint$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
-
`Failed to parse 'DataPoint' from JSON`,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type DeleteIdentityResponse = {};
|
|
11
|
-
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const DeleteIdentityResponse$inboundSchema: z.ZodType<
|
|
14
|
-
DeleteIdentityResponse,
|
|
15
|
-
z.ZodTypeDef,
|
|
16
|
-
unknown
|
|
17
|
-
> = z.object({});
|
|
18
|
-
|
|
19
|
-
export function deleteIdentityResponseFromJSON(
|
|
20
|
-
jsonString: string,
|
|
21
|
-
): SafeParseResult<DeleteIdentityResponse, SDKValidationError> {
|
|
22
|
-
return safeParse(
|
|
23
|
-
jsonString,
|
|
24
|
-
(x) => DeleteIdentityResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
-
`Failed to parse 'DeleteIdentityResponse' from JSON`,
|
|
26
|
-
);
|
|
27
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
13
|
-
*/
|
|
14
|
-
export const Field = {
|
|
15
|
-
Project: "project",
|
|
16
|
-
Identity: "identity",
|
|
17
|
-
Provider: "provider",
|
|
18
|
-
Model: "model",
|
|
19
|
-
Product: "product",
|
|
20
|
-
ApiKey: "api_key",
|
|
21
|
-
StatusCode: "status_code",
|
|
22
|
-
HttpStatusCode: "http_status_code",
|
|
23
|
-
CredentialType: "credential_type",
|
|
24
|
-
BillingBillable: "billing_billable",
|
|
25
|
-
Dimension: "dimension",
|
|
26
|
-
DimensionType: "dimension_type",
|
|
27
|
-
Tag: "tag",
|
|
28
|
-
Agent: "agent",
|
|
29
|
-
Tool: "tool",
|
|
30
|
-
Deployment: "deployment",
|
|
31
|
-
Evaluator: "evaluator",
|
|
32
|
-
Dataset: "dataset",
|
|
33
|
-
Prompt: "prompt",
|
|
34
|
-
Policy: "policy",
|
|
35
|
-
Conversation: "conversation",
|
|
36
|
-
Thread: "thread",
|
|
37
|
-
MemoryStore: "memory_store",
|
|
38
|
-
Knowledge: "knowledge",
|
|
39
|
-
Sheet: "sheet",
|
|
40
|
-
GuardrailOrigin: "guardrail_origin",
|
|
41
|
-
EvaluatorName: "evaluator_name",
|
|
42
|
-
EvaluatorType: "evaluator_type",
|
|
43
|
-
EvaluatorVersion: "evaluator_version",
|
|
44
|
-
ResultType: "result_type",
|
|
45
|
-
EvaluationStage: "evaluation_stage",
|
|
46
|
-
GuardrailStage: "guardrail_stage",
|
|
47
|
-
EvaluatorStage: "evaluator_stage",
|
|
48
|
-
GuardrailAction: "guardrail_action",
|
|
49
|
-
ResultLabel: "result_label",
|
|
50
|
-
} as const;
|
|
51
|
-
/**
|
|
52
|
-
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
53
|
-
*/
|
|
54
|
-
export type Field = ClosedEnum<typeof Field>;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
58
|
-
*/
|
|
59
|
-
export const Op = {
|
|
60
|
-
Eq: "eq",
|
|
61
|
-
Neq: "neq",
|
|
62
|
-
In: "in",
|
|
63
|
-
NotIn: "not_in",
|
|
64
|
-
} as const;
|
|
65
|
-
/**
|
|
66
|
-
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
67
|
-
*/
|
|
68
|
-
export type Op = ClosedEnum<typeof Op>;
|
|
69
|
-
|
|
70
|
-
export type Filter = {
|
|
71
|
-
/**
|
|
72
|
-
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
73
|
-
*/
|
|
74
|
-
field?: Field | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
77
|
-
*/
|
|
78
|
-
op?: Op | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Values compared against the selected field. Values are interpreted
|
|
81
|
-
*
|
|
82
|
-
* @remarks
|
|
83
|
-
* as public API strings, not SQL fragments.
|
|
84
|
-
*/
|
|
85
|
-
values?: Array<string> | undefined;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const Field$inboundSchema: z.ZodNativeEnum<typeof Field> = z.nativeEnum(
|
|
90
|
-
Field,
|
|
91
|
-
);
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const Field$outboundSchema: z.ZodNativeEnum<typeof Field> =
|
|
94
|
-
Field$inboundSchema;
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
|
|
103
|
-
.object({
|
|
104
|
-
field: Field$inboundSchema.optional(),
|
|
105
|
-
op: Op$inboundSchema.optional(),
|
|
106
|
-
values: z.array(z.string()).optional(),
|
|
107
|
-
});
|
|
108
|
-
/** @internal */
|
|
109
|
-
export type Filter$Outbound = {
|
|
110
|
-
field?: string | undefined;
|
|
111
|
-
op?: string | undefined;
|
|
112
|
-
values?: Array<string> | undefined;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export const Filter$outboundSchema: z.ZodType<
|
|
117
|
-
Filter$Outbound,
|
|
118
|
-
z.ZodTypeDef,
|
|
119
|
-
Filter
|
|
120
|
-
> = z.object({
|
|
121
|
-
field: Field$outboundSchema.optional(),
|
|
122
|
-
op: Op$outboundSchema.optional(),
|
|
123
|
-
values: z.array(z.string()).optional(),
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
export function filterToJSON(filter: Filter): string {
|
|
127
|
-
return JSON.stringify(Filter$outboundSchema.parse(filter));
|
|
128
|
-
}
|
|
129
|
-
export function filterFromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<Filter, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => Filter$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'Filter' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
IdentityMetrics,
|
|
12
|
-
IdentityMetrics$inboundSchema,
|
|
13
|
-
} from "./identitymetrics.js";
|
|
14
|
-
|
|
15
|
-
export type Metadata = {};
|
|
16
|
-
|
|
17
|
-
export type Identity = {
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
externalId?: string | undefined;
|
|
20
|
-
workspaceId?: string | undefined;
|
|
21
|
-
displayName?: string | undefined;
|
|
22
|
-
email?: string | undefined;
|
|
23
|
-
avatarUrl?: string | undefined;
|
|
24
|
-
tags?: Array<string> | undefined;
|
|
25
|
-
metadata?: Metadata | undefined;
|
|
26
|
-
created?: string | undefined;
|
|
27
|
-
updated?: string | undefined;
|
|
28
|
-
metrics?: IdentityMetrics | undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const Metadata$inboundSchema: z.ZodType<
|
|
33
|
-
Metadata,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
unknown
|
|
36
|
-
> = z.object({});
|
|
37
|
-
|
|
38
|
-
export function metadataFromJSON(
|
|
39
|
-
jsonString: string,
|
|
40
|
-
): SafeParseResult<Metadata, SDKValidationError> {
|
|
41
|
-
return safeParse(
|
|
42
|
-
jsonString,
|
|
43
|
-
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
-
`Failed to parse 'Metadata' from JSON`,
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const Identity$inboundSchema: z.ZodType<
|
|
50
|
-
Identity,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
unknown
|
|
53
|
-
> = z.object({
|
|
54
|
-
_id: z.string().optional(),
|
|
55
|
-
external_id: z.string().optional(),
|
|
56
|
-
workspace_id: z.string().optional(),
|
|
57
|
-
display_name: z.string().optional(),
|
|
58
|
-
email: z.string().optional(),
|
|
59
|
-
avatar_url: z.string().optional(),
|
|
60
|
-
tags: z.array(z.string()).optional(),
|
|
61
|
-
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
62
|
-
created: z.string().optional(),
|
|
63
|
-
updated: z.string().optional(),
|
|
64
|
-
metrics: IdentityMetrics$inboundSchema.optional(),
|
|
65
|
-
}).transform((v) => {
|
|
66
|
-
return remap$(v, {
|
|
67
|
-
"_id": "id",
|
|
68
|
-
"external_id": "externalId",
|
|
69
|
-
"workspace_id": "workspaceId",
|
|
70
|
-
"display_name": "displayName",
|
|
71
|
-
"avatar_url": "avatarUrl",
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export function identityFromJSON(
|
|
76
|
-
jsonString: string,
|
|
77
|
-
): SafeParseResult<Identity, SDKValidationError> {
|
|
78
|
-
return safeParse(
|
|
79
|
-
jsonString,
|
|
80
|
-
(x) => Identity$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
-
`Failed to parse 'Identity' from JSON`,
|
|
82
|
-
);
|
|
83
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type IdentityMetrics = {
|
|
12
|
-
totalTokens?: number | undefined;
|
|
13
|
-
totalCost?: number | undefined;
|
|
14
|
-
totalRequests?: number | undefined;
|
|
15
|
-
errorRate?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const IdentityMetrics$inboundSchema: z.ZodType<
|
|
20
|
-
IdentityMetrics,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
total_tokens: z.number().optional(),
|
|
25
|
-
total_cost: z.number().optional(),
|
|
26
|
-
total_requests: z.number().optional(),
|
|
27
|
-
error_rate: z.number().optional(),
|
|
28
|
-
}).transform((v) => {
|
|
29
|
-
return remap$(v, {
|
|
30
|
-
"total_tokens": "totalTokens",
|
|
31
|
-
"total_cost": "totalCost",
|
|
32
|
-
"total_requests": "totalRequests",
|
|
33
|
-
"error_rate": "errorRate",
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export function identityMetricsFromJSON(
|
|
38
|
-
jsonString: string,
|
|
39
|
-
): SafeParseResult<IdentityMetrics, SDKValidationError> {
|
|
40
|
-
return safeParse(
|
|
41
|
-
jsonString,
|
|
42
|
-
(x) => IdentityMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
-
`Failed to parse 'IdentityMetrics' from JSON`,
|
|
44
|
-
);
|
|
45
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
11
|
-
|
|
12
|
-
export type ListIdentitiesResponse = {
|
|
13
|
-
object?: string | undefined;
|
|
14
|
-
data?: Array<Identity> | undefined;
|
|
15
|
-
hasMore?: boolean | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const ListIdentitiesResponse$inboundSchema: z.ZodType<
|
|
20
|
-
ListIdentitiesResponse,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
object: z.string().optional(),
|
|
25
|
-
data: z.array(Identity$inboundSchema).optional(),
|
|
26
|
-
has_more: z.boolean().optional(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
"has_more": "hasMore",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export function listIdentitiesResponseFromJSON(
|
|
34
|
-
jsonString: string,
|
|
35
|
-
): SafeParseResult<ListIdentitiesResponse, SDKValidationError> {
|
|
36
|
-
return safeParse(
|
|
37
|
-
jsonString,
|
|
38
|
-
(x) => ListIdentitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
-
`Failed to parse 'ListIdentitiesResponse' from JSON`,
|
|
40
|
-
);
|
|
41
|
-
}
|