@orq-ai/node 4.8.7 → 4.8.9
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 +9 -9
- package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/projectsDelete.ts +165 -0
- package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
- package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +34 -0
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +8 -0
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/project.ts +64 -0
- package/packages/orq-rc/src/models/components/publicschedule.ts +0 -3
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +4 -0
- package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -3
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- 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 +4 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/projectget.ts +36 -0
- package/packages/orq-rc/src/models/operations/projectlist.ts +43 -0
- package/packages/orq-rc/src/models/operations/projectupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -3
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagentschedule.ts +0 -3
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/projects.ts +97 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- 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
|
@@ -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("01KQVSRM7QBJXWRDP912PRW4YB"),
|
|
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-05T10:08:15.299Z").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_01KQVSRM3EC00B79GW3ATYT371"),
|
|
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("01KQVSRM3D0N65CEHW393D2KCH"),
|
|
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_01KQVSRM3CPKA0Q3PQBC9CX2WF"),
|
|
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_01KQVSRM394KAV21KS1KN5XJHC"),
|
|
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_01KQVSRM37RS8KRGDAR0YWK9VP"),
|
|
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_01KQVSRM2R591BKKZBBQRBZ1QA"),
|
|
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("01KQVSRKA4N8CWSXJG6YG4DNYD"),
|
|
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("01KQVSRKBRTZE95A27PB05SBTD"),
|
|
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-05T10:08:30.019Z").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-05T10:08:30.019Z").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-05T10:08:30.019Z").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-05T10:08:15.299Z").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-05T10:08:15.299Z").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("01KQVSRM7THCF0EXCGY76WJCSY"),
|
|
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-05T10:08:17.375Z"),
|
|
531
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
616
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
973
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
1088
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
1169
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
1251
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
1417
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:17.375Z"),
|
|
1513
|
+
updated: z.string().default("2026-05-05T10:08:17.375Z"),
|
|
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-05T10:08:15.299Z").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("01KQVSRM1210DC6YG7N9E730JC"),
|
|
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_01KQVSRKZBSPDEKY2X97GCR8JS"),
|
|
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("01KQVSRKZ5SR43PZ1QT0VXM8QW"),
|
|
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_01KQVSRKYY2M5XS2TZ9RDQX35Z"),
|
|
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_01KQVSRKYJBQBQWZHG0Y6CYEA0"),
|
|
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_01KQVSRKY7G88DZHBTK4ZS943Z"),
|
|
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_01KQVSRKXV6KZP41Q2ZQCE8M1D"),
|
|
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.8.
|
|
3
|
+
"version": "4.8.9",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
|
-
"./langchain": {
|
|
7
|
-
"import": "./langchain/index.mjs",
|
|
8
|
-
"require": "./langchain/index.js",
|
|
9
|
-
"types": "./langchain/index.d.mts"
|
|
10
|
-
},
|
|
11
6
|
".": {
|
|
12
|
-
"import": "./index.js",
|
|
13
7
|
"require": "./index.js",
|
|
14
|
-
"types": "./index.d.ts"
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"import": "./index.js"
|
|
15
10
|
},
|
|
16
|
-
"./*": "./*"
|
|
11
|
+
"./*": "./*",
|
|
12
|
+
"./langchain": {
|
|
13
|
+
"require": "./langchain/index.js",
|
|
14
|
+
"types": "./langchain/index.d.mts",
|
|
15
|
+
"import": "./langchain/index.mjs"
|
|
16
|
+
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
19
19
|
"sideEffects": false,
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Create a new project
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
|
|
33
|
+
*/
|
|
34
|
+
export function projectsCreate(
|
|
35
|
+
client: OrqCore,
|
|
36
|
+
request: components.CreateProjectRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
components.CreateProjectResponse,
|
|
41
|
+
| OrqError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: OrqCore,
|
|
60
|
+
request: components.CreateProjectRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.CreateProjectResponse,
|
|
66
|
+
| OrqError
|
|
67
|
+
| ResponseValidationError
|
|
68
|
+
| ConnectionError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value) => components.CreateProjectRequest$outboundSchema.parse(value),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
88
|
+
|
|
89
|
+
const path = pathToFunc("/v2/projects")();
|
|
90
|
+
|
|
91
|
+
const headers = new Headers(compactMap({
|
|
92
|
+
"Content-Type": "application/json",
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
+
|
|
100
|
+
const context = {
|
|
101
|
+
options: client._options,
|
|
102
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
+
operationID: "ProjectCreate",
|
|
104
|
+
oAuth2Scopes: null,
|
|
105
|
+
|
|
106
|
+
resolvedSecurity: requestSecurity,
|
|
107
|
+
|
|
108
|
+
securitySource: client._options.apiKey,
|
|
109
|
+
retryConfig: options?.retries
|
|
110
|
+
|| client._options.retryConfig
|
|
111
|
+
|| { strategy: "none" },
|
|
112
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "POST",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path,
|
|
120
|
+
headers: headers,
|
|
121
|
+
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
|
|
130
|
+
const doResult = await client._do(req, {
|
|
131
|
+
context,
|
|
132
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
133
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
134
|
+
retryConfig: context.retryConfig,
|
|
135
|
+
retryCodes: context.retryCodes,
|
|
136
|
+
});
|
|
137
|
+
if (!doResult.ok) {
|
|
138
|
+
return [doResult, { status: "request-error", request: req }];
|
|
139
|
+
}
|
|
140
|
+
const response = doResult.value;
|
|
141
|
+
|
|
142
|
+
const [result] = await M.match<
|
|
143
|
+
components.CreateProjectResponse,
|
|
144
|
+
| OrqError
|
|
145
|
+
| ResponseValidationError
|
|
146
|
+
| ConnectionError
|
|
147
|
+
| RequestAbortedError
|
|
148
|
+
| RequestTimeoutError
|
|
149
|
+
| InvalidRequestError
|
|
150
|
+
| UnexpectedClientError
|
|
151
|
+
| SDKValidationError
|
|
152
|
+
>(
|
|
153
|
+
M.json(200, components.CreateProjectResponse$inboundSchema),
|
|
154
|
+
M.fail("4XX"),
|
|
155
|
+
M.fail("5XX"),
|
|
156
|
+
)(response, req);
|
|
157
|
+
if (!result.ok) {
|
|
158
|
+
return [result, { status: "complete", request: req, response }];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return [result, { status: "complete", request: req, response }];
|
|
162
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Delete a project
|
|
31
|
+
*/
|
|
32
|
+
export function projectsDelete(
|
|
33
|
+
client: OrqCore,
|
|
34
|
+
request: operations.ProjectDeleteRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
components.DeleteProjectResponse,
|
|
39
|
+
| OrqError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: OrqCore,
|
|
58
|
+
request: operations.ProjectDeleteRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
components.DeleteProjectResponse,
|
|
64
|
+
| OrqError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) => operations.ProjectDeleteRequest$outboundSchema.parse(value),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed.ok) {
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload = parsed.value;
|
|
85
|
+
const body = null;
|
|
86
|
+
|
|
87
|
+
const pathParams = {
|
|
88
|
+
project_id: encodeSimple("project_id", payload.project_id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
const path = pathToFunc("/v2/projects/{project_id}")(pathParams);
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
100
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
101
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
|
+
|
|
103
|
+
const context = {
|
|
104
|
+
options: client._options,
|
|
105
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
|
+
operationID: "ProjectDelete",
|
|
107
|
+
oAuth2Scopes: null,
|
|
108
|
+
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
|
|
111
|
+
securitySource: client._options.apiKey,
|
|
112
|
+
retryConfig: options?.retries
|
|
113
|
+
|| client._options.retryConfig
|
|
114
|
+
|| { strategy: "none" },
|
|
115
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const requestRes = client._createRequest(context, {
|
|
119
|
+
security: requestSecurity,
|
|
120
|
+
method: "DELETE",
|
|
121
|
+
baseURL: options?.serverURL,
|
|
122
|
+
path: path,
|
|
123
|
+
headers: headers,
|
|
124
|
+
body: body,
|
|
125
|
+
userAgent: client._options.userAgent,
|
|
126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
127
|
+
}, options);
|
|
128
|
+
if (!requestRes.ok) {
|
|
129
|
+
return [requestRes, { status: "invalid" }];
|
|
130
|
+
}
|
|
131
|
+
const req = requestRes.value;
|
|
132
|
+
|
|
133
|
+
const doResult = await client._do(req, {
|
|
134
|
+
context,
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
137
|
+
retryConfig: context.retryConfig,
|
|
138
|
+
retryCodes: context.retryCodes,
|
|
139
|
+
});
|
|
140
|
+
if (!doResult.ok) {
|
|
141
|
+
return [doResult, { status: "request-error", request: req }];
|
|
142
|
+
}
|
|
143
|
+
const response = doResult.value;
|
|
144
|
+
|
|
145
|
+
const [result] = await M.match<
|
|
146
|
+
components.DeleteProjectResponse,
|
|
147
|
+
| OrqError
|
|
148
|
+
| ResponseValidationError
|
|
149
|
+
| ConnectionError
|
|
150
|
+
| RequestAbortedError
|
|
151
|
+
| RequestTimeoutError
|
|
152
|
+
| InvalidRequestError
|
|
153
|
+
| UnexpectedClientError
|
|
154
|
+
| SDKValidationError
|
|
155
|
+
>(
|
|
156
|
+
M.json(200, components.DeleteProjectResponse$inboundSchema),
|
|
157
|
+
M.fail("4XX"),
|
|
158
|
+
M.fail("5XX"),
|
|
159
|
+
)(response, req);
|
|
160
|
+
if (!result.ok) {
|
|
161
|
+
return [result, { status: "complete", request: req, response }];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return [result, { status: "complete", request: req, response }];
|
|
165
|
+
}
|