@orq-ai/node 4.10.34 → 4.10.36
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/models/components/reasoningpart.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/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/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/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/updatetool.js +7 -7
- package/package.json +5 -5
- package/packages/orq-rc/src/funcs/managementKeysCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/managementKeysDelete.ts +172 -0
- package/packages/orq-rc/src/funcs/managementKeysGet.ts +171 -0
- package/packages/orq-rc/src/funcs/managementKeysList.ts +175 -0
- package/packages/orq-rc/src/funcs/managementKeysListCapabilities.ts +144 -0
- package/packages/orq-rc/src/funcs/managementKeysUpdate.ts +175 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +69 -0
- package/packages/orq-rc/src/models/components/createmanagementkeyresponse.ts +48 -0
- package/packages/orq-rc/src/models/components/deletemanagementkeyresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/domain.ts +5 -14
- package/packages/orq-rc/src/models/components/getmanagementkeyresponse.ts +40 -0
- package/packages/orq-rc/src/models/components/index.ts +11 -0
- package/packages/orq-rc/src/models/components/listmanagementcapabilitiesresponse.ts +36 -0
- package/packages/orq-rc/src/models/components/listmanagementkeysresponse.ts +56 -0
- package/packages/orq-rc/src/models/components/managementkey.ts +132 -0
- package/packages/orq-rc/src/models/components/managementkeystatus.ts +23 -0
- package/packages/orq-rc/src/models/components/managementpermissionmode.ts +25 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemanagementkeyrequest.ts +80 -0
- package/packages/orq-rc/src/models/components/updatemanagementkeyresponse.ts +40 -0
- 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/createprompt.ts +0 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -1
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1
- 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/getoneprompt.ts +0 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1
- 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/listpromptversions.ts +0 -1
- package/packages/orq-rc/src/models/operations/managementkeydelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/managementkeyget.ts +39 -0
- package/packages/orq-rc/src/models/operations/managementkeylist.ts +85 -0
- package/packages/orq-rc/src/models/operations/managementkeyupdate.ts +45 -0
- 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/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/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/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/updateprompt.ts +0 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/feedback.ts +2 -2
- package/packages/orq-rc/src/sdk/managementkeys.ts +116 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.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/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/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/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/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +1 -4
|
@@ -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_01KW839F0RQDMRS0B74S8V651V"),
|
|
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("01KW839F0QRJRGN367XTCR571G"),
|
|
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_01KW839F0P6QGEP0R09TJBPJZT"),
|
|
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_01KW839F0MVMSFJKV5HBREWPPR"),
|
|
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_01KW839F0JMAF64FAZNJJKF7TA"),
|
|
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_01KW839F0HWZJ5ZETHAJ9BXGVT"),
|
|
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("01KW839ES1RS3R4Q5TKFAYP4TH"),
|
|
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("01KW839ETEKRQBB90BHESGP2ZV"),
|
|
967
967
|
name: z.string(),
|
|
968
968
|
description: z.string().optional(),
|
|
969
969
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -752,7 +752,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
752
752
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
753
753
|
.default("orq"),
|
|
754
754
|
reviewed_by_id: z.string(),
|
|
755
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
755
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-28T21:48:39.515Z").transform(v => new Date(v)),
|
|
756
756
|
type: z.literal("string_array"),
|
|
757
757
|
values: z.array(z.string()),
|
|
758
758
|
}).transform((v) => {
|
|
@@ -779,7 +779,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
779
779
|
human_review_id: z.string(),
|
|
780
780
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
781
781
|
reviewed_by_id: z.string(),
|
|
782
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
782
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-28T21:48:39.514Z").transform(v => new Date(v)),
|
|
783
783
|
type: z.literal("number"),
|
|
784
784
|
value: z.number(),
|
|
785
785
|
}).transform((v) => {
|
|
@@ -805,7 +805,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
805
805
|
human_review_id: z.string(),
|
|
806
806
|
source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
807
807
|
reviewed_by_id: z.string(),
|
|
808
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
808
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-28T21:48:39.514Z").transform(v => new Date(v)),
|
|
809
809
|
type: z.literal("string"),
|
|
810
810
|
value: z.string(),
|
|
811
811
|
}).transform((v) => {
|
|
@@ -852,7 +852,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
852
852
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
853
853
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
854
854
|
.optional(),
|
|
855
|
-
updated: z.string().datetime({ offset: true }).default("2026-06-
|
|
855
|
+
updated: z.string().datetime({ offset: true }).default("2026-06-28T21:48:18.406Z").transform(v => new Date(v)),
|
|
856
856
|
}).transform((v) => {
|
|
857
857
|
return (0, primitives_js_1.remap)(v, {
|
|
858
858
|
"_id": "id",
|
|
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
95
95
|
updated_by_id: z.nullable(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-06-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-06-28T21:48:18.406Z").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("01KW839F41PG740FJTZN3YH8XH"),
|
|
84
84
|
display_name: z.string(),
|
|
85
85
|
description: z.nullable(z.string()).optional(),
|
|
86
86
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -526,8 +526,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema
|
|
|
526
526
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
527
527
|
_id: z.string(),
|
|
528
528
|
description: z.string(),
|
|
529
|
-
created: z.string().default("2026-06-
|
|
530
|
-
updated: z.string().default("2026-06-
|
|
529
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
530
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
531
531
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
532
532
|
guardrail_config: z.nullable(z.union([
|
|
533
533
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
@@ -613,8 +613,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
|
|
|
613
613
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
614
614
|
_id: z.string(),
|
|
615
615
|
description: z.string(),
|
|
616
|
-
created: z.string().default("2026-06-
|
|
617
|
-
updated: z.string().default("2026-06-
|
|
616
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
617
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
618
618
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
619
619
|
guardrail_config: z.nullable(z.union([
|
|
620
620
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
@@ -972,8 +972,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
972
972
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
973
973
|
_id: z.string(),
|
|
974
974
|
description: z.string(),
|
|
975
|
-
created: z.string().default("2026-06-
|
|
976
|
-
updated: z.string().default("2026-06-
|
|
975
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
976
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
977
977
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
978
978
|
guardrail_config: z.nullable(z.union([
|
|
979
979
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -1089,8 +1089,8 @@ exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
|
|
|
1089
1089
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
1090
1090
|
_id: z.string(),
|
|
1091
1091
|
description: z.string(),
|
|
1092
|
-
created: z.string().default("2026-06-
|
|
1093
|
-
updated: z.string().default("2026-06-
|
|
1092
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1093
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1094
1094
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1095
1095
|
guardrail_config: z.nullable(z.union([
|
|
1096
1096
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -1172,8 +1172,8 @@ exports.ResponseBodyMethod$inboundSchema = z.nativeEnum(exports.ResponseBodyMeth
|
|
|
1172
1172
|
exports.ResponseBodyHTTP$inboundSchema = z.object({
|
|
1173
1173
|
_id: z.string(),
|
|
1174
1174
|
description: z.string(),
|
|
1175
|
-
created: z.string().default("2026-06-
|
|
1176
|
-
updated: z.string().default("2026-06-
|
|
1175
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1176
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1177
1177
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1178
1178
|
guardrail_config: z.nullable(z.union([
|
|
1179
1179
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -1256,8 +1256,8 @@ exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEv
|
|
|
1256
1256
|
exports.ResponseBodyJSON$inboundSchema = z.object({
|
|
1257
1257
|
_id: z.string(),
|
|
1258
1258
|
description: z.string(),
|
|
1259
|
-
created: z.string().default("2026-06-
|
|
1260
|
-
updated: z.string().default("2026-06-
|
|
1259
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1260
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1261
1261
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1262
1262
|
guardrail_config: z.nullable(z.union([
|
|
1263
1263
|
z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -1424,8 +1424,8 @@ function updateEvalLLMJuryFromJSON(jsonString) {
|
|
|
1424
1424
|
exports.UpdateEvalLlm2$inboundSchema = z.object({
|
|
1425
1425
|
_id: z.string(),
|
|
1426
1426
|
description: z.string(),
|
|
1427
|
-
created: z.string().default("2026-06-
|
|
1428
|
-
updated: z.string().default("2026-06-
|
|
1427
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1428
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1429
1429
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1430
1430
|
guardrail_config: z.nullable(z.union([
|
|
1431
1431
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
|
|
@@ -1524,8 +1524,8 @@ function updateEvalLLMCategoricalLabelsFromJSON(jsonString) {
|
|
|
1524
1524
|
exports.UpdateEvalLlm1$inboundSchema = z.object({
|
|
1525
1525
|
_id: z.string(),
|
|
1526
1526
|
description: z.string(),
|
|
1527
|
-
created: z.string().default("2026-06-
|
|
1528
|
-
updated: z.string().default("2026-06-
|
|
1527
|
+
created: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1528
|
+
updated: z.string().default("2026-06-28T21:48:20.169Z"),
|
|
1529
1529
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1530
1530
|
guardrail_config: z.nullable(z.union([
|
|
1531
1531
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
|
|
@@ -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("01KW839F046JWKXPD8S49G6WEY"),
|
|
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_01KW839EZYAH3QK7BD408KJ468"),
|
|
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("01KW839EZX3REB58K9HMJ0T29E"),
|
|
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_01KW839EZWY5CMKKJM8NE5EKFQ"),
|
|
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_01KW839EZS9X08AK93YN15KQP4"),
|
|
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_01KW839EZRH9K9EH5DWKXDFMY3"),
|
|
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_01KW839EZQCD4TABGMXG7ZCBR9"),
|
|
944
944
|
path: z.string(),
|
|
945
945
|
key: z.string(),
|
|
946
946
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.36",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./index.d.ts",
|
|
8
7
|
"import": "./index.js",
|
|
9
|
-
"require": "./index.js"
|
|
8
|
+
"require": "./index.js",
|
|
9
|
+
"types": "./index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
|
13
|
-
"require": "./langchain/index.js",
|
|
14
13
|
"types": "./langchain/index.d.mts",
|
|
15
|
-
"import": "./langchain/index.mjs"
|
|
14
|
+
"import": "./langchain/index.mjs",
|
|
15
|
+
"require": "./langchain/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
@@ -0,0 +1,163 @@
|
|
|
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 management key
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Mints a new opaque management key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
33
|
+
*/
|
|
34
|
+
export function managementKeysCreate(
|
|
35
|
+
client: OrqCore,
|
|
36
|
+
request: components.CreateManagementKeyRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<
|
|
39
|
+
Result<
|
|
40
|
+
components.CreateManagementKeyResponse,
|
|
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.CreateManagementKeyRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.CreateManagementKeyResponse,
|
|
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) =>
|
|
81
|
+
components.CreateManagementKeyRequest$outboundSchema.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/v2/management-keys")();
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
"Content-Type": "application/json",
|
|
94
|
+
Accept: "application/json",
|
|
95
|
+
}));
|
|
96
|
+
|
|
97
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
99
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
+
|
|
101
|
+
const context = {
|
|
102
|
+
options: client._options,
|
|
103
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
+
operationID: "ManagementKeyCreate",
|
|
105
|
+
oAuth2Scopes: null,
|
|
106
|
+
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
|
|
109
|
+
securitySource: client._options.apiKey,
|
|
110
|
+
retryConfig: options?.retries
|
|
111
|
+
|| client._options.retryConfig
|
|
112
|
+
|| { strategy: "none" },
|
|
113
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const requestRes = client._createRequest(context, {
|
|
117
|
+
security: requestSecurity,
|
|
118
|
+
method: "POST",
|
|
119
|
+
baseURL: options?.serverURL,
|
|
120
|
+
path: path,
|
|
121
|
+
headers: headers,
|
|
122
|
+
body: body,
|
|
123
|
+
userAgent: client._options.userAgent,
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client._do(req, {
|
|
132
|
+
context,
|
|
133
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
134
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
|
+
retryConfig: context.retryConfig,
|
|
136
|
+
retryCodes: context.retryCodes,
|
|
137
|
+
});
|
|
138
|
+
if (!doResult.ok) {
|
|
139
|
+
return [doResult, { status: "request-error", request: req }];
|
|
140
|
+
}
|
|
141
|
+
const response = doResult.value;
|
|
142
|
+
|
|
143
|
+
const [result] = await M.match<
|
|
144
|
+
components.CreateManagementKeyResponse,
|
|
145
|
+
| OrqError
|
|
146
|
+
| ResponseValidationError
|
|
147
|
+
| ConnectionError
|
|
148
|
+
| RequestAbortedError
|
|
149
|
+
| RequestTimeoutError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| UnexpectedClientError
|
|
152
|
+
| SDKValidationError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, components.CreateManagementKeyResponse$inboundSchema),
|
|
155
|
+
M.fail("4XX"),
|
|
156
|
+
M.fail("5XX"),
|
|
157
|
+
)(response, req);
|
|
158
|
+
if (!result.ok) {
|
|
159
|
+
return [result, { status: "complete", request: req, response }];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
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 management key
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Permanently deletes a management key. Cache entries are invalidated immediately so an in-flight token cannot ride out the TTL. The response body is empty on success.
|
|
34
|
+
*/
|
|
35
|
+
export function managementKeysDelete(
|
|
36
|
+
client: OrqCore,
|
|
37
|
+
request: operations.ManagementKeyDeleteRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.DeleteManagementKeyResponse,
|
|
42
|
+
| OrqError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: OrqCore,
|
|
61
|
+
request: operations.ManagementKeyDeleteRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.DeleteManagementKeyResponse,
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.ManagementKeyDeleteRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = null;
|
|
90
|
+
|
|
91
|
+
const pathParams = {
|
|
92
|
+
management_key_id: encodeSimple(
|
|
93
|
+
"management_key_id",
|
|
94
|
+
payload.management_key_id,
|
|
95
|
+
{ explode: false, charEncoding: "percent" },
|
|
96
|
+
),
|
|
97
|
+
};
|
|
98
|
+
const path = pathToFunc("/v2/management-keys/{management_key_id}")(
|
|
99
|
+
pathParams,
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
Accept: "application/json",
|
|
104
|
+
}));
|
|
105
|
+
|
|
106
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
107
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
108
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
|
+
|
|
110
|
+
const context = {
|
|
111
|
+
options: client._options,
|
|
112
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
|
+
operationID: "ManagementKeyDelete",
|
|
114
|
+
oAuth2Scopes: null,
|
|
115
|
+
|
|
116
|
+
resolvedSecurity: requestSecurity,
|
|
117
|
+
|
|
118
|
+
securitySource: client._options.apiKey,
|
|
119
|
+
retryConfig: options?.retries
|
|
120
|
+
|| client._options.retryConfig
|
|
121
|
+
|| { strategy: "none" },
|
|
122
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const requestRes = client._createRequest(context, {
|
|
126
|
+
security: requestSecurity,
|
|
127
|
+
method: "DELETE",
|
|
128
|
+
baseURL: options?.serverURL,
|
|
129
|
+
path: path,
|
|
130
|
+
headers: headers,
|
|
131
|
+
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
134
|
+
}, options);
|
|
135
|
+
if (!requestRes.ok) {
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
137
|
+
}
|
|
138
|
+
const req = requestRes.value;
|
|
139
|
+
|
|
140
|
+
const doResult = await client._do(req, {
|
|
141
|
+
context,
|
|
142
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
143
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
144
|
+
retryConfig: context.retryConfig,
|
|
145
|
+
retryCodes: context.retryCodes,
|
|
146
|
+
});
|
|
147
|
+
if (!doResult.ok) {
|
|
148
|
+
return [doResult, { status: "request-error", request: req }];
|
|
149
|
+
}
|
|
150
|
+
const response = doResult.value;
|
|
151
|
+
|
|
152
|
+
const [result] = await M.match<
|
|
153
|
+
components.DeleteManagementKeyResponse,
|
|
154
|
+
| OrqError
|
|
155
|
+
| ResponseValidationError
|
|
156
|
+
| ConnectionError
|
|
157
|
+
| RequestAbortedError
|
|
158
|
+
| RequestTimeoutError
|
|
159
|
+
| InvalidRequestError
|
|
160
|
+
| UnexpectedClientError
|
|
161
|
+
| SDKValidationError
|
|
162
|
+
>(
|
|
163
|
+
M.json(200, components.DeleteManagementKeyResponse$inboundSchema),
|
|
164
|
+
M.fail("4XX"),
|
|
165
|
+
M.fail("5XX"),
|
|
166
|
+
)(response, req);
|
|
167
|
+
if (!result.ok) {
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
|
+
}
|