@orq-ai/node 4.9.16 → 4.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.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/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 +1 -1
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
- package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
- package/packages/orq-rc/src/funcs/{remoteconfigsRetrieve.ts → modelsList.ts} +14 -33
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
- 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 +3 -3
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
- package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
- package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/file.ts +0 -3
- package/packages/orq-rc/src/models/components/filter.ts +137 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/identity.ts +83 -0
- package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
- package/packages/orq-rc/src/models/components/index.ts +16 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/modelref.ts +6 -0
- package/packages/orq-rc/src/models/components/project.ts +42 -3
- package/packages/orq-rc/src/models/components/publicmodelentry.ts +70 -0
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/skill.ts +37 -3
- package/packages/orq-rc/src/models/components/totals.ts +34 -0
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +21 -0
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
- 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 +45 -31
- 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 +0 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +22 -16
- 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 +1 -3
- package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
- 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 +9 -230
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
- package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
- package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -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 +3 -138
- 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 +3 -0
- package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
- package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
- 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 +30 -23
- package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
- 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/feedback.ts +8 -8
- package/packages/orq-rc/src/sdk/identities.ts +18 -17
- package/packages/orq-rc/src/sdk/models.ts +25 -0
- package/packages/orq-rc/src/sdk/projects.ts +5 -2
- package/packages/orq-rc/src/sdk/reporting.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -22
- package/packages/orq-rc/src/sdk/skills.ts +7 -4
- package/src/lib/config.ts +3 -3
- 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/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
|
@@ -78,7 +78,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
78
78
|
updated_by_id: z.string().optional(),
|
|
79
79
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
80
|
.optional(),
|
|
81
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-
|
|
81
|
+
updated: z.string().datetime({ offset: true }).default("2026-05-20T18:15:26.005Z").transform(v => new Date(v)),
|
|
82
82
|
}).transform((v) => {
|
|
83
83
|
return (0, primitives_js_1.remap)(v, {
|
|
84
84
|
"_id": "id",
|
|
@@ -66,7 +66,7 @@ function retrieveDatasourceRequestToJSON(retrieveDatasourceRequest) {
|
|
|
66
66
|
exports.RetrieveDatasourceStatus$inboundSchema = z.nativeEnum(exports.RetrieveDatasourceStatus);
|
|
67
67
|
/** @internal */
|
|
68
68
|
exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
69
|
-
_id: z.string().default("
|
|
69
|
+
_id: z.string().default("01KS39KECN9QR7M8YJBHA1F657"),
|
|
70
70
|
display_name: z.string(),
|
|
71
71
|
description: z.string().optional(),
|
|
72
72
|
status: exports.RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -83,7 +83,7 @@ exports.RetrieveIdentityResponseBody$inboundSchema = z.object({
|
|
|
83
83
|
metadata: z.record(z.any()).optional(),
|
|
84
84
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
85
85
|
.optional(),
|
|
86
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-
|
|
86
|
+
updated: z.string().datetime({ offset: true }).default("2026-05-20T18:15:26.005Z").transform(v => new Date(v)),
|
|
87
87
|
metrics: z.nullable(z.lazy(() => exports.Metrics$inboundSchema)).optional(),
|
|
88
88
|
}).transform((v) => {
|
|
89
89
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -187,7 +187,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
187
187
|
}
|
|
188
188
|
/** @internal */
|
|
189
189
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
190
|
-
_id: z.string().default("
|
|
190
|
+
_id: z.string().default("tool_01KS39KE9XJVBR1WBYJS7H8E91"),
|
|
191
191
|
path: z.string(),
|
|
192
192
|
key: z.string(),
|
|
193
193
|
display_name: z.string().optional(),
|
|
@@ -240,7 +240,7 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
240
240
|
}
|
|
241
241
|
/** @internal */
|
|
242
242
|
exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
|
|
243
|
-
id: z.string().default("
|
|
243
|
+
id: z.string().default("01KS39KE9W38RZZ26D0TF6ZSC6"),
|
|
244
244
|
name: z.string(),
|
|
245
245
|
description: z.string().optional(),
|
|
246
246
|
schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -270,7 +270,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
270
270
|
}
|
|
271
271
|
/** @internal */
|
|
272
272
|
exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
273
|
-
_id: z.string().default("
|
|
273
|
+
_id: z.string().default("tool_01KS39KE9VX7TDYX0QTDZQRGR1"),
|
|
274
274
|
path: z.string(),
|
|
275
275
|
key: z.string(),
|
|
276
276
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01KS39KE9TG54PY5N4WW4XDNBD"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -407,7 +407,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
407
407
|
}
|
|
408
408
|
/** @internal */
|
|
409
409
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
410
|
-
_id: z.string().default("
|
|
410
|
+
_id: z.string().default("tool_01KS39KE9S05CC0NWMRA1S1S3X"),
|
|
411
411
|
path: z.string(),
|
|
412
412
|
key: z.string(),
|
|
413
413
|
display_name: z.string().optional(),
|
|
@@ -461,7 +461,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
461
461
|
}
|
|
462
462
|
/** @internal */
|
|
463
463
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
464
|
-
_id: z.string().default("
|
|
464
|
+
_id: z.string().default("tool_01KS39KE9RRW9C4X26VFQDG0B4"),
|
|
465
465
|
path: z.string(),
|
|
466
466
|
key: z.string(),
|
|
467
467
|
display_name: z.string().optional(),
|
|
@@ -1000,7 +1000,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
/** @internal */
|
|
1002
1002
|
exports.Tools$outboundSchema = z.object({
|
|
1003
|
-
id: z.string().default("
|
|
1003
|
+
id: z.string().default("01KS39KDZ3CCR09ZGYQVK3DSH5"),
|
|
1004
1004
|
name: z.string(),
|
|
1005
1005
|
description: z.string().optional(),
|
|
1006
1006
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -963,7 +963,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
963
963
|
}
|
|
964
964
|
/** @internal */
|
|
965
965
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
966
|
-
id: z.string().default("
|
|
966
|
+
id: z.string().default("01KS39KE0QQ7T1R8DKDKPY78ZX"),
|
|
967
967
|
name: z.string(),
|
|
968
968
|
description: z.string().optional(),
|
|
969
969
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -745,7 +745,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
745
745
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
746
746
|
.default("orq"),
|
|
747
747
|
reviewed_by_id: z.string(),
|
|
748
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-
|
|
748
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-20T18:15:40.263Z").transform(v => new Date(v)),
|
|
749
749
|
type: z.literal("string_array"),
|
|
750
750
|
values: z.array(z.string()),
|
|
751
751
|
}).transform((v) => {
|
|
@@ -772,7 +772,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
772
772
|
human_review_id: z.string(),
|
|
773
773
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
774
774
|
reviewed_by_id: z.string(),
|
|
775
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-
|
|
775
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-20T18:15:40.262Z").transform(v => new Date(v)),
|
|
776
776
|
type: z.literal("number"),
|
|
777
777
|
value: z.number(),
|
|
778
778
|
}).transform((v) => {
|
|
@@ -798,7 +798,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
798
798
|
human_review_id: z.string(),
|
|
799
799
|
source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
800
800
|
reviewed_by_id: z.string(),
|
|
801
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-
|
|
801
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-05-20T18:15:40.262Z").transform(v => new Date(v)),
|
|
802
802
|
type: z.literal("string"),
|
|
803
803
|
value: z.string(),
|
|
804
804
|
}).transform((v) => {
|
|
@@ -845,7 +845,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
845
845
|
updated_by_id: z.string().optional(),
|
|
846
846
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
847
847
|
.optional(),
|
|
848
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-
|
|
848
|
+
updated: z.string().datetime({ offset: true }).default("2026-05-20T18:15:26.005Z").transform(v => new Date(v)),
|
|
849
849
|
}).transform((v) => {
|
|
850
850
|
return (0, primitives_js_1.remap)(v, {
|
|
851
851
|
"_id": "id",
|
|
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
95
95
|
updated_by_id: z.string().optional(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
97
|
.optional(),
|
|
98
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-05-20T18:15:26.005Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -80,7 +80,7 @@ function updateDatasourceRequestToJSON(updateDatasourceRequest) {
|
|
|
80
80
|
exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDatasourceStatus);
|
|
81
81
|
/** @internal */
|
|
82
82
|
exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
83
|
-
_id: z.string().default("
|
|
83
|
+
_id: z.string().default("01KS39KECQADJR95W5EPX3S6Y5"),
|
|
84
84
|
display_name: z.string(),
|
|
85
85
|
description: z.string().optional(),
|
|
86
86
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -527,8 +527,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema
|
|
|
527
527
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
528
528
|
_id: z.string(),
|
|
529
529
|
description: z.string(),
|
|
530
|
-
created: z.string().default("2026-05-
|
|
531
|
-
updated: z.string().default("2026-05-
|
|
530
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
531
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
532
532
|
guardrail_config: z.nullable(z.union([
|
|
533
533
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
534
534
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyCategorical$inboundSchema),
|
|
@@ -612,8 +612,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
|
|
|
612
612
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
613
613
|
_id: z.string(),
|
|
614
614
|
description: z.string(),
|
|
615
|
-
created: z.string().default("2026-05-
|
|
616
|
-
updated: z.string().default("2026-05-
|
|
615
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
616
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
617
617
|
guardrail_config: z.nullable(z.union([
|
|
618
618
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
619
619
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONCategorical$inboundSchema),
|
|
@@ -969,8 +969,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
969
969
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
970
970
|
_id: z.string(),
|
|
971
971
|
description: z.string(),
|
|
972
|
-
created: z.string().default("2026-05-
|
|
973
|
-
updated: z.string().default("2026-05-
|
|
972
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
973
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
974
974
|
guardrail_config: z.nullable(z.union([
|
|
975
975
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
976
976
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Categorical$inboundSchema),
|
|
@@ -1084,8 +1084,8 @@ exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
|
|
|
1084
1084
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
1085
1085
|
_id: z.string(),
|
|
1086
1086
|
description: z.string(),
|
|
1087
|
-
created: z.string().default("2026-05-
|
|
1088
|
-
updated: z.string().default("2026-05-
|
|
1087
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1088
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1089
1089
|
guardrail_config: z.nullable(z.union([
|
|
1090
1090
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
1091
1091
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseCategorical$inboundSchema),
|
|
@@ -1165,8 +1165,8 @@ exports.UpdateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.Update
|
|
|
1165
1165
|
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
1166
1166
|
_id: z.string(),
|
|
1167
1167
|
description: z.string(),
|
|
1168
|
-
created: z.string().default("2026-05-
|
|
1169
|
-
updated: z.string().default("2026-05-
|
|
1168
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1169
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1170
1170
|
guardrail_config: z.nullable(z.union([
|
|
1171
1171
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
1172
1172
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsCategorical$inboundSchema),
|
|
@@ -1247,8 +1247,8 @@ exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEv
|
|
|
1247
1247
|
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
1248
1248
|
_id: z.string(),
|
|
1249
1249
|
description: z.string(),
|
|
1250
|
-
created: z.string().default("2026-05-
|
|
1251
|
-
updated: z.string().default("2026-05-
|
|
1250
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1251
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1252
1252
|
guardrail_config: z.nullable(z.union([
|
|
1253
1253
|
z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
1254
1254
|
z.lazy(() => exports.UpdateEvalGuardrailConfigCategorical$inboundSchema),
|
|
@@ -1413,8 +1413,8 @@ function updateEvalLLMJuryFromJSON(jsonString) {
|
|
|
1413
1413
|
exports.UpdateEvalLlm2$inboundSchema = z.object({
|
|
1414
1414
|
_id: z.string(),
|
|
1415
1415
|
description: z.string(),
|
|
1416
|
-
created: z.string().default("2026-05-
|
|
1417
|
-
updated: z.string().default("2026-05-
|
|
1416
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1417
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1418
1418
|
guardrail_config: z.nullable(z.union([
|
|
1419
1419
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
|
|
1420
1420
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMCategorical$inboundSchema),
|
|
@@ -1509,8 +1509,8 @@ function updateEvalLLMCategoricalLabelsFromJSON(jsonString) {
|
|
|
1509
1509
|
exports.UpdateEvalLlm1$inboundSchema = z.object({
|
|
1510
1510
|
_id: z.string(),
|
|
1511
1511
|
description: z.string(),
|
|
1512
|
-
created: z.string().default("2026-05-
|
|
1513
|
-
updated: z.string().default("2026-05-
|
|
1512
|
+
created: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1513
|
+
updated: z.string().default("2026-05-20T18:15:27.999Z"),
|
|
1514
1514
|
guardrail_config: z.nullable(z.union([
|
|
1515
1515
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
|
|
1516
1516
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Categorical$inboundSchema),
|
|
@@ -83,7 +83,7 @@ exports.UpdateIdentityResponseBody$inboundSchema = z.object({
|
|
|
83
83
|
metadata: z.record(z.any()).optional(),
|
|
84
84
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
85
85
|
.optional(),
|
|
86
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-
|
|
86
|
+
updated: z.string().datetime({ offset: true }).default("2026-05-20T18:15:26.005Z").transform(v => new Date(v)),
|
|
87
87
|
}).transform((v) => {
|
|
88
88
|
return (0, primitives_js_1.remap)(v, {
|
|
89
89
|
"_id": "id",
|
|
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
|
|
|
371
371
|
}
|
|
372
372
|
/** @internal */
|
|
373
373
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
374
|
-
id: z.string().default("
|
|
374
|
+
id: z.string().default("01KS39KE9FPGCXWV1CR1M412F8"),
|
|
375
375
|
name: z.string(),
|
|
376
376
|
description: z.string().optional(),
|
|
377
377
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
666
666
|
}
|
|
667
667
|
/** @internal */
|
|
668
668
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
669
|
-
_id: z.string().default("
|
|
669
|
+
_id: z.string().default("tool_01KS39KE9BTTW5102ASWYDYC37"),
|
|
670
670
|
path: z.string(),
|
|
671
671
|
key: z.string(),
|
|
672
672
|
display_name: z.string().optional(),
|
|
@@ -719,7 +719,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
719
719
|
}
|
|
720
720
|
/** @internal */
|
|
721
721
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
722
|
-
id: z.string().default("
|
|
722
|
+
id: z.string().default("01KS39KE9AJH64G26EGD5HH5T8"),
|
|
723
723
|
name: z.string(),
|
|
724
724
|
description: z.string().optional(),
|
|
725
725
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
749
749
|
}
|
|
750
750
|
/** @internal */
|
|
751
751
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
752
|
-
_id: z.string().default("
|
|
752
|
+
_id: z.string().default("tool_01KS39KE9964HV8J1PPVYEHGVZ"),
|
|
753
753
|
path: z.string(),
|
|
754
754
|
key: z.string(),
|
|
755
755
|
display_name: z.string().optional(),
|
|
@@ -836,7 +836,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
836
836
|
}
|
|
837
837
|
/** @internal */
|
|
838
838
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
839
|
-
_id: z.string().default("
|
|
839
|
+
_id: z.string().default("tool_01KS39KE98ZWX5M8J9QG2X3RFY"),
|
|
840
840
|
path: z.string(),
|
|
841
841
|
key: z.string(),
|
|
842
842
|
display_name: z.string().optional(),
|
|
@@ -886,7 +886,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
886
886
|
}
|
|
887
887
|
/** @internal */
|
|
888
888
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
889
|
-
_id: z.string().default("
|
|
889
|
+
_id: z.string().default("tool_01KS39KE9746M105KTBPH1ANRX"),
|
|
890
890
|
path: z.string(),
|
|
891
891
|
key: z.string(),
|
|
892
892
|
display_name: z.string().optional(),
|
|
@@ -940,7 +940,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
940
940
|
}
|
|
941
941
|
/** @internal */
|
|
942
942
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
943
|
-
_id: z.string().default("
|
|
943
|
+
_id: z.string().default("tool_01KS39KE96HDSSA8BJF1W7JRT8"),
|
|
944
944
|
path: z.string(),
|
|
945
945
|
key: z.string(),
|
|
946
946
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import {
|
|
15
16
|
ConnectionError,
|
|
16
17
|
InvalidRequestError,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
@@ -29,15 +29,15 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create an identity
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Creates a new identity with a unique external_id. If an identity with the same external_id already exists, the operation will fail.
|
|
32
|
+
* Creates a new identity with a unique external_id. If an identity with the same external_id already exists, the operation will fail.
|
|
33
33
|
*/
|
|
34
34
|
export function identitiesCreate(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request
|
|
36
|
+
request: components.CreateIdentityRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
|
|
40
|
+
components.CreateIdentityResponse,
|
|
41
41
|
| OrqError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -57,12 +57,12 @@ export function identitiesCreate(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: OrqCore,
|
|
60
|
-
request
|
|
60
|
+
request: components.CreateIdentityRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
components.CreateIdentityResponse,
|
|
66
66
|
| OrqError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,19 +77,14 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) =>
|
|
81
|
-
operations.CreateIdentityRequestBody$outboundSchema.optional().parse(
|
|
82
|
-
value,
|
|
83
|
-
),
|
|
80
|
+
(value) => components.CreateIdentityRequest$outboundSchema.parse(value),
|
|
84
81
|
"Input validation failed",
|
|
85
82
|
);
|
|
86
83
|
if (!parsed.ok) {
|
|
87
84
|
return [parsed, { status: "invalid" }];
|
|
88
85
|
}
|
|
89
86
|
const payload = parsed.value;
|
|
90
|
-
const body = payload
|
|
91
|
-
? null
|
|
92
|
-
: encodeJSON("body", payload, { explode: true });
|
|
87
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
93
88
|
|
|
94
89
|
const path = pathToFunc("/v2/identities")();
|
|
95
90
|
|
|
@@ -145,7 +140,7 @@ async function $do(
|
|
|
145
140
|
const response = doResult.value;
|
|
146
141
|
|
|
147
142
|
const [result] = await M.match<
|
|
148
|
-
|
|
143
|
+
components.CreateIdentityResponse,
|
|
149
144
|
| OrqError
|
|
150
145
|
| ResponseValidationError
|
|
151
146
|
| ConnectionError
|
|
@@ -155,7 +150,7 @@ async function $do(
|
|
|
155
150
|
| UnexpectedClientError
|
|
156
151
|
| SDKValidationError
|
|
157
152
|
>(
|
|
158
|
-
M.json(
|
|
153
|
+
M.json(200, components.CreateIdentityResponse$inboundSchema),
|
|
159
154
|
M.fail("4XX"),
|
|
160
155
|
M.fail("5XX"),
|
|
161
156
|
)(response, req);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
5
|
import { OrqCore } from "../core.js";
|
|
7
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
8
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
@@ -12,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
12
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
13
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
15
|
import {
|
|
16
16
|
ConnectionError,
|
|
17
17
|
InvalidRequestError,
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
RequestTimeoutError,
|
|
20
20
|
UnexpectedClientError,
|
|
21
21
|
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
24
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -31,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
30
|
* Delete an identity
|
|
32
31
|
*
|
|
33
32
|
* @remarks
|
|
34
|
-
* Permanently deletes an identity from your workspace and cleans up associated budget configurations.
|
|
33
|
+
* Permanently deletes an identity from your workspace and cleans up associated budget configurations.
|
|
35
34
|
*/
|
|
36
35
|
export function identitiesDelete(
|
|
37
36
|
client: OrqCore,
|
|
@@ -39,8 +38,7 @@ export function identitiesDelete(
|
|
|
39
38
|
options?: RequestOptions,
|
|
40
39
|
): APIPromise<
|
|
41
40
|
Result<
|
|
42
|
-
|
|
43
|
-
| errors.DeleteIdentityResponseBody
|
|
41
|
+
components.DeleteIdentityResponse,
|
|
44
42
|
| OrqError
|
|
45
43
|
| ResponseValidationError
|
|
46
44
|
| ConnectionError
|
|
@@ -65,8 +63,7 @@ async function $do(
|
|
|
65
63
|
): Promise<
|
|
66
64
|
[
|
|
67
65
|
Result<
|
|
68
|
-
|
|
69
|
-
| errors.DeleteIdentityResponseBody
|
|
66
|
+
components.DeleteIdentityResponse,
|
|
70
67
|
| OrqError
|
|
71
68
|
| ResponseValidationError
|
|
72
69
|
| ConnectionError
|
|
@@ -148,13 +145,8 @@ async function $do(
|
|
|
148
145
|
}
|
|
149
146
|
const response = doResult.value;
|
|
150
147
|
|
|
151
|
-
const responseFields = {
|
|
152
|
-
HttpMeta: { Response: response, Request: req },
|
|
153
|
-
};
|
|
154
|
-
|
|
155
148
|
const [result] = await M.match<
|
|
156
|
-
|
|
157
|
-
| errors.DeleteIdentityResponseBody
|
|
149
|
+
components.DeleteIdentityResponse,
|
|
158
150
|
| OrqError
|
|
159
151
|
| ResponseValidationError
|
|
160
152
|
| ConnectionError
|
|
@@ -164,11 +156,10 @@ async function $do(
|
|
|
164
156
|
| UnexpectedClientError
|
|
165
157
|
| SDKValidationError
|
|
166
158
|
>(
|
|
167
|
-
M.
|
|
168
|
-
M.jsonErr(404, errors.DeleteIdentityResponseBody$inboundSchema),
|
|
159
|
+
M.json(200, components.DeleteIdentityResponse$inboundSchema),
|
|
169
160
|
M.fail("4XX"),
|
|
170
161
|
M.fail("5XX"),
|
|
171
|
-
)(response, req
|
|
162
|
+
)(response, req);
|
|
172
163
|
if (!result.ok) {
|
|
173
164
|
return [result, { status: "complete", request: req, response }];
|
|
174
165
|
}
|
|
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import {
|
|
15
16
|
ConnectionError,
|
|
16
17
|
InvalidRequestError,
|
|
@@ -37,7 +38,7 @@ export function identitiesList(
|
|
|
37
38
|
options?: RequestOptions,
|
|
38
39
|
): APIPromise<
|
|
39
40
|
Result<
|
|
40
|
-
|
|
41
|
+
components.ListIdentitiesResponse,
|
|
41
42
|
| OrqError
|
|
42
43
|
| ResponseValidationError
|
|
43
44
|
| ConnectionError
|
|
@@ -62,7 +63,7 @@ async function $do(
|
|
|
62
63
|
): Promise<
|
|
63
64
|
[
|
|
64
65
|
Result<
|
|
65
|
-
|
|
66
|
+
components.ListIdentitiesResponse,
|
|
66
67
|
| OrqError
|
|
67
68
|
| ResponseValidationError
|
|
68
69
|
| ConnectionError
|
|
@@ -91,7 +92,7 @@ async function $do(
|
|
|
91
92
|
|
|
92
93
|
const query = encodeFormQuery({
|
|
93
94
|
"ending_before": payload?.ending_before,
|
|
94
|
-
"filter_by": payload?.filter_by,
|
|
95
|
+
"filter_by.tags": payload?.["filter_by.tags"],
|
|
95
96
|
"include_metrics": payload?.include_metrics,
|
|
96
97
|
"limit": payload?.limit,
|
|
97
98
|
"search": payload?.search,
|
|
@@ -150,7 +151,7 @@ async function $do(
|
|
|
150
151
|
const response = doResult.value;
|
|
151
152
|
|
|
152
153
|
const [result] = await M.match<
|
|
153
|
-
|
|
154
|
+
components.ListIdentitiesResponse,
|
|
154
155
|
| OrqError
|
|
155
156
|
| ResponseValidationError
|
|
156
157
|
| ConnectionError
|
|
@@ -160,7 +161,7 @@ async function $do(
|
|
|
160
161
|
| UnexpectedClientError
|
|
161
162
|
| SDKValidationError
|
|
162
163
|
>(
|
|
163
|
-
M.json(200,
|
|
164
|
+
M.json(200, components.ListIdentitiesResponse$inboundSchema),
|
|
164
165
|
M.fail("4XX"),
|
|
165
166
|
M.fail("5XX"),
|
|
166
167
|
)(response, req);
|
|
@@ -11,6 +11,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import {
|
|
15
16
|
ConnectionError,
|
|
16
17
|
InvalidRequestError,
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
RequestTimeoutError,
|
|
19
20
|
UnexpectedClientError,
|
|
20
21
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -38,9 +38,7 @@ export function identitiesRetrieve(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
|
|
42
|
-
| errors.RetrieveIdentityResponseBody
|
|
43
|
-
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
41
|
+
components.RetrieveIdentityResponse,
|
|
44
42
|
| OrqError
|
|
45
43
|
| ResponseValidationError
|
|
46
44
|
| ConnectionError
|
|
@@ -65,9 +63,7 @@ async function $do(
|
|
|
65
63
|
): Promise<
|
|
66
64
|
[
|
|
67
65
|
Result<
|
|
68
|
-
|
|
69
|
-
| errors.RetrieveIdentityResponseBody
|
|
70
|
-
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
66
|
+
components.RetrieveIdentityResponse,
|
|
71
67
|
| OrqError
|
|
72
68
|
| ResponseValidationError
|
|
73
69
|
| ConnectionError
|
|
@@ -154,14 +150,8 @@ async function $do(
|
|
|
154
150
|
}
|
|
155
151
|
const response = doResult.value;
|
|
156
152
|
|
|
157
|
-
const responseFields = {
|
|
158
|
-
HttpMeta: { Response: response, Request: req },
|
|
159
|
-
};
|
|
160
|
-
|
|
161
153
|
const [result] = await M.match<
|
|
162
|
-
|
|
163
|
-
| errors.RetrieveIdentityResponseBody
|
|
164
|
-
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
154
|
+
components.RetrieveIdentityResponse,
|
|
165
155
|
| OrqError
|
|
166
156
|
| ResponseValidationError
|
|
167
157
|
| ConnectionError
|
|
@@ -171,12 +161,10 @@ async function $do(
|
|
|
171
161
|
| UnexpectedClientError
|
|
172
162
|
| SDKValidationError
|
|
173
163
|
>(
|
|
174
|
-
M.json(200,
|
|
175
|
-
M.jsonErr(404, errors.RetrieveIdentityResponseBody$inboundSchema),
|
|
176
|
-
M.jsonErr(500, errors.RetrieveIdentityIdentitiesResponseBody$inboundSchema),
|
|
164
|
+
M.json(200, components.RetrieveIdentityResponse$inboundSchema),
|
|
177
165
|
M.fail("4XX"),
|
|
178
166
|
M.fail("5XX"),
|
|
179
|
-
)(response, req
|
|
167
|
+
)(response, req);
|
|
180
168
|
if (!result.ok) {
|
|
181
169
|
return [result, { status: "complete", request: req, response }];
|
|
182
170
|
}
|