@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
|
@@ -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("01KS0ARZ5W6TGQ0RTXT1W4AJ8M"),
|
|
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-19T14:38:12.201Z").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_01KS0ARZ3FAYNC84HMYHJS40JA"),
|
|
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("01KS0ARZ3F66N2VD0V7ARH9XQF"),
|
|
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_01KS0ARZ3E4A73DJ3GP7XCZ46Q"),
|
|
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_01KS0ARZ3DE79XDQHNXC1B3BGQ"),
|
|
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_01KS0ARZ3C5JQ4AAXKC57BN38N"),
|
|
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_01KS0ARZ3BE24XGJPD6HJ2NA08"),
|
|
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("01KS0ARYSE4NACBKD8T5YJ3TJ7"),
|
|
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("01KS0ARYTSBY60SV029MWBS3XC"),
|
|
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-19T14:38:26.563Z").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-19T14:38:26.563Z").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-19T14:38:26.562Z").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-19T14:38:12.201Z").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-19T14:38:12.201Z").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("01KS0ARZ5Z081EF396RFFQ2Q6F"),
|
|
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-19T14:38:14.326Z"),
|
|
531
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
616
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
973
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
1088
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
1169
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
1251
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
1417
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:14.326Z"),
|
|
1513
|
+
updated: z.string().default("2026-05-19T14:38:14.326Z"),
|
|
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-19T14:38:12.201Z").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("01KS0ARZ33R0NSK5KTEKK1MMHA"),
|
|
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_01KS0ARZ2QE5XG90BZR7WNC4RW"),
|
|
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("01KS0ARZ2PH1VE8PY509W9KSJQ"),
|
|
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_01KS0ARZ2NP4XKRCCR08SFQJWM"),
|
|
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_01KS0ARZ2M9G6PHY6BV9JAPYHH"),
|
|
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_01KS0ARZ2KK024YRJ4TFTNTNR6"),
|
|
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_01KS0ARZ2JNAC524EQ8TNSBPAZ"),
|
|
944
944
|
path: z.string(),
|
|
945
945
|
key: z.string(),
|
|
946
946
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.12",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
|
-
"./*": "./*",
|
|
7
6
|
"./langchain": {
|
|
7
|
+
"import": "./langchain/index.mjs",
|
|
8
8
|
"require": "./langchain/index.js",
|
|
9
|
-
"types": "./langchain/index.d.mts"
|
|
10
|
-
"import": "./langchain/index.mjs"
|
|
9
|
+
"types": "./langchain/index.d.mts"
|
|
11
10
|
},
|
|
12
11
|
".": {
|
|
12
|
+
"import": "./index.js",
|
|
13
13
|
"require": "./index.js",
|
|
14
|
-
"types": "./index.d.ts"
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"types": "./index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./*": "./*"
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
19
19
|
"sideEffects": false,
|
|
@@ -11,7 +11,6 @@ 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";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -22,22 +21,23 @@ import {
|
|
|
22
21
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
23
|
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
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Update user information
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Update or add user information to workspace
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function contactsCreate(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request:
|
|
36
|
+
request: operations.CreateContactRequestBody,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
|
|
40
|
+
operations.CreateContactResponseBody,
|
|
41
41
|
| OrqError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -57,12 +57,12 @@ export function reportingQuery(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: OrqCore,
|
|
60
|
-
request:
|
|
60
|
+
request: operations.CreateContactRequestBody,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.CreateContactResponseBody,
|
|
66
66
|
| OrqError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,7 +77,7 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) =>
|
|
80
|
+
(value) => operations.CreateContactRequestBody$outboundSchema.parse(value),
|
|
81
81
|
"Input validation failed",
|
|
82
82
|
);
|
|
83
83
|
if (!parsed.ok) {
|
|
@@ -86,7 +86,7 @@ async function $do(
|
|
|
86
86
|
const payload = parsed.value;
|
|
87
87
|
const body = encodeJSON("body", payload, { explode: true });
|
|
88
88
|
|
|
89
|
-
const path = pathToFunc("/v2/
|
|
89
|
+
const path = pathToFunc("/v2/contacts")();
|
|
90
90
|
|
|
91
91
|
const headers = new Headers(compactMap({
|
|
92
92
|
"Content-Type": "application/json",
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
const context = {
|
|
101
101
|
options: client._options,
|
|
102
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
103
|
+
operationID: "CreateContact",
|
|
104
104
|
oAuth2Scopes: null,
|
|
105
105
|
|
|
106
106
|
resolvedSecurity: requestSecurity,
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
const response = doResult.value;
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
|
|
143
|
+
operations.CreateContactResponseBody,
|
|
144
144
|
| OrqError
|
|
145
145
|
| ResponseValidationError
|
|
146
146
|
| ConnectionError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| UnexpectedClientError
|
|
151
151
|
| SDKValidationError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200,
|
|
153
|
+
M.json(200, operations.CreateContactResponseBody$inboundSchema),
|
|
154
154
|
M.fail("4XX"),
|
|
155
155
|
M.fail("5XX"),
|
|
156
156
|
)(response, req);
|
|
@@ -11,7 +11,6 @@ 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";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -22,6 +21,7 @@ import {
|
|
|
22
21
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
23
|
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. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.
|
|
33
33
|
*/
|
|
34
34
|
export function identitiesCreate(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request
|
|
36
|
+
request?: operations.CreateIdentityRequestBody | undefined,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
|
|
40
|
+
operations.CreateIdentityResponseBody,
|
|
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?: operations.CreateIdentityRequestBody | undefined,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.CreateIdentityResponseBody,
|
|
66
66
|
| OrqError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,14 +77,19 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) =>
|
|
80
|
+
(value) =>
|
|
81
|
+
operations.CreateIdentityRequestBody$outboundSchema.optional().parse(
|
|
82
|
+
value,
|
|
83
|
+
),
|
|
81
84
|
"Input validation failed",
|
|
82
85
|
);
|
|
83
86
|
if (!parsed.ok) {
|
|
84
87
|
return [parsed, { status: "invalid" }];
|
|
85
88
|
}
|
|
86
89
|
const payload = parsed.value;
|
|
87
|
-
const body =
|
|
90
|
+
const body = payload === undefined
|
|
91
|
+
? null
|
|
92
|
+
: encodeJSON("body", payload, { explode: true });
|
|
88
93
|
|
|
89
94
|
const path = pathToFunc("/v2/identities")();
|
|
90
95
|
|
|
@@ -140,7 +145,7 @@ async function $do(
|
|
|
140
145
|
const response = doResult.value;
|
|
141
146
|
|
|
142
147
|
const [result] = await M.match<
|
|
143
|
-
|
|
148
|
+
operations.CreateIdentityResponseBody,
|
|
144
149
|
| OrqError
|
|
145
150
|
| ResponseValidationError
|
|
146
151
|
| ConnectionError
|
|
@@ -150,7 +155,7 @@ async function $do(
|
|
|
150
155
|
| UnexpectedClientError
|
|
151
156
|
| SDKValidationError
|
|
152
157
|
>(
|
|
153
|
-
M.json(
|
|
158
|
+
M.json(201, operations.CreateIdentityResponseBody$inboundSchema),
|
|
154
159
|
M.fail("4XX"),
|
|
155
160
|
M.fail("5XX"),
|
|
156
161
|
)(response, req);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import * as z from "zod/v3";
|
|
5
6
|
import { OrqCore } from "../core.js";
|
|
6
7
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
8
|
import { matchStatusCode } from "../lib/http.js";
|
|
@@ -11,7 +12,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
12
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
13
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
14
|
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,6 +19,7 @@ import {
|
|
|
19
19
|
RequestTimeoutError,
|
|
20
20
|
UnexpectedClientError,
|
|
21
21
|
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
22
23
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
24
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
25
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -30,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* Delete an identity
|
|
31
32
|
*
|
|
32
33
|
* @remarks
|
|
33
|
-
* Permanently deletes an identity from your workspace and cleans up associated budget configurations.
|
|
34
|
+
* Permanently deletes an identity from your workspace and cleans up associated budget configurations. This action cannot be undone.
|
|
34
35
|
*/
|
|
35
36
|
export function identitiesDelete(
|
|
36
37
|
client: OrqCore,
|
|
@@ -38,7 +39,8 @@ export function identitiesDelete(
|
|
|
38
39
|
options?: RequestOptions,
|
|
39
40
|
): APIPromise<
|
|
40
41
|
Result<
|
|
41
|
-
|
|
42
|
+
void,
|
|
43
|
+
| errors.DeleteIdentityResponseBody
|
|
42
44
|
| OrqError
|
|
43
45
|
| ResponseValidationError
|
|
44
46
|
| ConnectionError
|
|
@@ -63,7 +65,8 @@ async function $do(
|
|
|
63
65
|
): Promise<
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
|
-
|
|
68
|
+
void,
|
|
69
|
+
| errors.DeleteIdentityResponseBody
|
|
67
70
|
| OrqError
|
|
68
71
|
| ResponseValidationError
|
|
69
72
|
| ConnectionError
|
|
@@ -145,8 +148,13 @@ async function $do(
|
|
|
145
148
|
}
|
|
146
149
|
const response = doResult.value;
|
|
147
150
|
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
148
155
|
const [result] = await M.match<
|
|
149
|
-
|
|
156
|
+
void,
|
|
157
|
+
| errors.DeleteIdentityResponseBody
|
|
150
158
|
| OrqError
|
|
151
159
|
| ResponseValidationError
|
|
152
160
|
| ConnectionError
|
|
@@ -156,10 +164,11 @@ async function $do(
|
|
|
156
164
|
| UnexpectedClientError
|
|
157
165
|
| SDKValidationError
|
|
158
166
|
>(
|
|
159
|
-
M.
|
|
167
|
+
M.nil(204, z.void()),
|
|
168
|
+
M.jsonErr(404, errors.DeleteIdentityResponseBody$inboundSchema),
|
|
160
169
|
M.fail("4XX"),
|
|
161
170
|
M.fail("5XX"),
|
|
162
|
-
)(response, req);
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
163
172
|
if (!result.ok) {
|
|
164
173
|
return [result, { status: "complete", request: req, response }];
|
|
165
174
|
}
|
|
@@ -11,7 +11,6 @@ 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";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -38,7 +37,7 @@ export function identitiesList(
|
|
|
38
37
|
options?: RequestOptions,
|
|
39
38
|
): APIPromise<
|
|
40
39
|
Result<
|
|
41
|
-
|
|
40
|
+
operations.ListIdentitiesResponseBody,
|
|
42
41
|
| OrqError
|
|
43
42
|
| ResponseValidationError
|
|
44
43
|
| ConnectionError
|
|
@@ -63,7 +62,7 @@ async function $do(
|
|
|
63
62
|
): Promise<
|
|
64
63
|
[
|
|
65
64
|
Result<
|
|
66
|
-
|
|
65
|
+
operations.ListIdentitiesResponseBody,
|
|
67
66
|
| OrqError
|
|
68
67
|
| ResponseValidationError
|
|
69
68
|
| ConnectionError
|
|
@@ -92,7 +91,7 @@ async function $do(
|
|
|
92
91
|
|
|
93
92
|
const query = encodeFormQuery({
|
|
94
93
|
"ending_before": payload?.ending_before,
|
|
95
|
-
"filter_by
|
|
94
|
+
"filter_by": payload?.filter_by,
|
|
96
95
|
"include_metrics": payload?.include_metrics,
|
|
97
96
|
"limit": payload?.limit,
|
|
98
97
|
"search": payload?.search,
|
|
@@ -151,7 +150,7 @@ async function $do(
|
|
|
151
150
|
const response = doResult.value;
|
|
152
151
|
|
|
153
152
|
const [result] = await M.match<
|
|
154
|
-
|
|
153
|
+
operations.ListIdentitiesResponseBody,
|
|
155
154
|
| OrqError
|
|
156
155
|
| ResponseValidationError
|
|
157
156
|
| ConnectionError
|
|
@@ -161,7 +160,7 @@ async function $do(
|
|
|
161
160
|
| UnexpectedClientError
|
|
162
161
|
| SDKValidationError
|
|
163
162
|
>(
|
|
164
|
-
M.json(200,
|
|
163
|
+
M.json(200, operations.ListIdentitiesResponseBody$inboundSchema),
|
|
165
164
|
M.fail("4XX"),
|
|
166
165
|
M.fail("5XX"),
|
|
167
166
|
)(response, req);
|