@orq-ai/node 3.13.11 → 3.13.13
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/bin/mcp-server.js +266 -222
- package/bin/mcp-server.js.map +40 -40
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +18 -1
- package/lib/env.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +38 -0
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +35 -1
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +15 -15
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +20 -18
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +53 -18
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +54 -19
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/prompts/README.md +47 -13
- package/packages/orq-rc/docs/sdks/tools/README.md +7 -3
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/promptsCreate.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +4 -4
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +4 -4
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/env.ts +20 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +6 -6
- package/packages/orq-rc/src/models/operations/createagent.ts +73 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +14 -14
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +108 -40
- package/packages/orq-rc/src/models/operations/createprompt.ts +4603 -1478
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +56 -20
- package/packages/orq-rc/src/models/operations/getallprompts.ts +48 -52
- package/packages/orq-rc/src/models/operations/getalltools.ts +14 -14
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +11 -11
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +11 -11
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +56 -20
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +30 -24
- package/packages/orq-rc/src/models/operations/updateagent.ts +110 -28
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +14 -14
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +52 -20
- package/packages/orq-rc/src/models/operations/updateprompt.ts +5018 -1772
- package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/sdk/prompts.ts +3 -3
- package/packages/orq-rc/src/sdk/tools.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +20 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +73 -0
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +30 -24
- package/src/models/operations/updateagent.ts +110 -28
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -1675,8 +1675,8 @@ var UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$;
|
|
|
1675
1675
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
1676
1676
|
_id: z.string(),
|
|
1677
1677
|
description: z.string(),
|
|
1678
|
-
created: z.string().default("2025-10-
|
|
1679
|
-
updated: z.string().default("2025-10-
|
|
1678
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1679
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1680
1680
|
guardrail_config: z.union([
|
|
1681
1681
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
|
|
1682
1682
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
|
|
@@ -1694,8 +1694,8 @@ exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
|
1694
1694
|
exports.ResponseBodyTypescript$outboundSchema = z.object({
|
|
1695
1695
|
id: z.string(),
|
|
1696
1696
|
description: z.string(),
|
|
1697
|
-
created: z.string().default("2025-10-
|
|
1698
|
-
updated: z.string().default("2025-10-
|
|
1697
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1698
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1699
1699
|
guardrailConfig: z.union([
|
|
1700
1700
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$outboundSchema),
|
|
1701
1701
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$outboundSchema),
|
|
@@ -1898,8 +1898,8 @@ var ResponseBodyRagasMetric$;
|
|
|
1898
1898
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
1899
1899
|
_id: z.string(),
|
|
1900
1900
|
description: z.string(),
|
|
1901
|
-
created: z.string().default("2025-10-
|
|
1902
|
-
updated: z.string().default("2025-10-
|
|
1901
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1902
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1903
1903
|
guardrail_config: z.union([
|
|
1904
1904
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
|
|
1905
1905
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
|
|
@@ -1919,8 +1919,8 @@ exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
|
1919
1919
|
exports.ResponseBodyRagas$outboundSchema = z.object({
|
|
1920
1920
|
id: z.string(),
|
|
1921
1921
|
description: z.string(),
|
|
1922
|
-
created: z.string().default("2025-10-
|
|
1923
|
-
updated: z.string().default("2025-10-
|
|
1922
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1923
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
1924
1924
|
guardrailConfig: z.union([
|
|
1925
1925
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$outboundSchema),
|
|
1926
1926
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$outboundSchema),
|
|
@@ -3631,8 +3631,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
3631
3631
|
exports.UpdateEvalResponseBodyFunction$inboundSchema = z.object({
|
|
3632
3632
|
_id: z.string(),
|
|
3633
3633
|
description: z.string(),
|
|
3634
|
-
created: z.string().default("2025-10-
|
|
3635
|
-
updated: z.string().default("2025-10-
|
|
3634
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3635
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3636
3636
|
guardrail_config: z.union([
|
|
3637
3637
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
|
|
3638
3638
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
|
|
@@ -3687,8 +3687,8 @@ exports.UpdateEvalResponseBodyFunction$inboundSchema = z.object({
|
|
|
3687
3687
|
exports.UpdateEvalResponseBodyFunction$outboundSchema = z.object({
|
|
3688
3688
|
id: z.string(),
|
|
3689
3689
|
description: z.string(),
|
|
3690
|
-
created: z.string().default("2025-10-
|
|
3691
|
-
updated: z.string().default("2025-10-
|
|
3690
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3691
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3692
3692
|
guardrailConfig: z.union([
|
|
3693
3693
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$outboundSchema),
|
|
3694
3694
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$outboundSchema),
|
|
@@ -3912,8 +3912,8 @@ var UpdateEvalResponseBodyEvalsResponse200Type$;
|
|
|
3912
3912
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
3913
3913
|
_id: z.string(),
|
|
3914
3914
|
description: z.string(),
|
|
3915
|
-
created: z.string().default("2025-10-
|
|
3916
|
-
updated: z.string().default("2025-10-
|
|
3915
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3916
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3917
3917
|
guardrail_config: z.union([
|
|
3918
3918
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
|
|
3919
3919
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
@@ -3931,8 +3931,8 @@ exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
|
3931
3931
|
exports.UpdateEvalResponseBodyPython$outboundSchema = z.object({
|
|
3932
3932
|
id: z.string(),
|
|
3933
3933
|
description: z.string(),
|
|
3934
|
-
created: z.string().default("2025-10-
|
|
3935
|
-
updated: z.string().default("2025-10-
|
|
3934
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3935
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
3936
3936
|
guardrailConfig: z.union([
|
|
3937
3937
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
|
|
3938
3938
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema),
|
|
@@ -4134,8 +4134,8 @@ var UpdateEvalResponseBodyMethod$;
|
|
|
4134
4134
|
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
4135
4135
|
_id: z.string(),
|
|
4136
4136
|
description: z.string(),
|
|
4137
|
-
created: z.string().default("2025-10-
|
|
4138
|
-
updated: z.string().default("2025-10-
|
|
4137
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4138
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4139
4139
|
guardrail_config: z.union([
|
|
4140
4140
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
|
|
4141
4141
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
@@ -4156,8 +4156,8 @@ exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
|
|
|
4156
4156
|
exports.UpdateEvalResponseBodyHTTP$outboundSchema = z.object({
|
|
4157
4157
|
id: z.string(),
|
|
4158
4158
|
description: z.string(),
|
|
4159
|
-
created: z.string().default("2025-10-
|
|
4160
|
-
updated: z.string().default("2025-10-
|
|
4159
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4160
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4161
4161
|
guardrailConfig: z.union([
|
|
4162
4162
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
|
|
4163
4163
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema),
|
|
@@ -4343,8 +4343,8 @@ var UpdateEvalResponseBodyEvalsType$;
|
|
|
4343
4343
|
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
4344
4344
|
_id: z.string(),
|
|
4345
4345
|
description: z.string(),
|
|
4346
|
-
created: z.string().default("2025-10-
|
|
4347
|
-
updated: z.string().default("2025-10-
|
|
4346
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4347
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4348
4348
|
guardrail_config: z.union([
|
|
4349
4349
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
4350
4350
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -4362,8 +4362,8 @@ exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
|
|
|
4362
4362
|
exports.UpdateEvalResponseBodyJSON$outboundSchema = z.object({
|
|
4363
4363
|
id: z.string(),
|
|
4364
4364
|
description: z.string(),
|
|
4365
|
-
created: z.string().default("2025-10-
|
|
4366
|
-
updated: z.string().default("2025-10-
|
|
4365
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4366
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4367
4367
|
guardrailConfig: z.union([
|
|
4368
4368
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
|
|
4369
4369
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema),
|
|
@@ -4548,8 +4548,8 @@ var UpdateEvalResponseBodyType$;
|
|
|
4548
4548
|
exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
4549
4549
|
_id: z.string(),
|
|
4550
4550
|
description: z.string(),
|
|
4551
|
-
created: z.string().default("2025-10-
|
|
4552
|
-
updated: z.string().default("2025-10-
|
|
4551
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4552
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4553
4553
|
guardrail_config: z.union([
|
|
4554
4554
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
4555
4555
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4568,8 +4568,8 @@ exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
|
|
|
4568
4568
|
exports.UpdateEvalResponseBodyLLM$outboundSchema = z.object({
|
|
4569
4569
|
id: z.string(),
|
|
4570
4570
|
description: z.string(),
|
|
4571
|
-
created: z.string().default("2025-10-
|
|
4572
|
-
updated: z.string().default("2025-10-
|
|
4571
|
+
created: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4572
|
+
updated: z.string().default("2025-10-21T15:20:00.630Z"),
|
|
4573
4573
|
guardrailConfig: z.union([
|
|
4574
4574
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4575
4575
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -807,7 +807,7 @@ function updateToolRequestBodyHttpFromJSON(jsonString) {
|
|
|
807
807
|
}
|
|
808
808
|
/** @internal */
|
|
809
809
|
exports.UpdateToolRequestBody3$inboundSchema = z.object({
|
|
810
|
-
_id: z.string().default("
|
|
810
|
+
_id: z.string().default("01K83NPC3M07ZX67B927MCEWWZ"),
|
|
811
811
|
path: z.string().optional(),
|
|
812
812
|
display_name: z.string().optional(),
|
|
813
813
|
description: z.string().optional(),
|
|
@@ -822,7 +822,7 @@ exports.UpdateToolRequestBody3$inboundSchema = z.object({
|
|
|
822
822
|
});
|
|
823
823
|
/** @internal */
|
|
824
824
|
exports.UpdateToolRequestBody3$outboundSchema = z.object({
|
|
825
|
-
id: z.string().default("
|
|
825
|
+
id: z.string().default("01K83NPC3M07ZX67B927MCEWWZ"),
|
|
826
826
|
path: z.string().optional(),
|
|
827
827
|
displayName: z.string().optional(),
|
|
828
828
|
description: z.string().optional(),
|
|
@@ -915,7 +915,7 @@ function updateToolRequestBodyJsonSchemaFromJSON(jsonString) {
|
|
|
915
915
|
}
|
|
916
916
|
/** @internal */
|
|
917
917
|
exports.UpdateToolRequestBody2$inboundSchema = z.object({
|
|
918
|
-
_id: z.string().default("
|
|
918
|
+
_id: z.string().default("01K83NPC3KYTZE9B4FRGWF0FYJ"),
|
|
919
919
|
path: z.string().optional(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
921
921
|
description: z.string().optional(),
|
|
@@ -932,7 +932,7 @@ exports.UpdateToolRequestBody2$inboundSchema = z.object({
|
|
|
932
932
|
});
|
|
933
933
|
/** @internal */
|
|
934
934
|
exports.UpdateToolRequestBody2$outboundSchema = z.object({
|
|
935
|
-
id: z.string().default("
|
|
935
|
+
id: z.string().default("01K83NPC3KYTZE9B4FRGWF0FYJ"),
|
|
936
936
|
path: z.string().optional(),
|
|
937
937
|
displayName: z.string().optional(),
|
|
938
938
|
description: z.string().optional(),
|
|
@@ -1228,7 +1228,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
/** @internal */
|
|
1230
1230
|
exports.UpdateToolResponseBody5$inboundSchema = z.object({
|
|
1231
|
-
_id: z.string().default("
|
|
1231
|
+
_id: z.string().default("01K83NPC3K65SQVDCZAN2DRRY8"),
|
|
1232
1232
|
path: z.string(),
|
|
1233
1233
|
key: z.string(),
|
|
1234
1234
|
display_name: z.string().optional(),
|
|
@@ -1258,7 +1258,7 @@ exports.UpdateToolResponseBody5$inboundSchema = z.object({
|
|
|
1258
1258
|
});
|
|
1259
1259
|
/** @internal */
|
|
1260
1260
|
exports.UpdateToolResponseBody5$outboundSchema = z.object({
|
|
1261
|
-
id: z.string().default("
|
|
1261
|
+
id: z.string().default("01K83NPC3K65SQVDCZAN2DRRY8"),
|
|
1262
1262
|
path: z.string(),
|
|
1263
1263
|
key: z.string(),
|
|
1264
1264
|
displayName: z.string().optional(),
|
|
@@ -1476,7 +1476,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
/** @internal */
|
|
1478
1478
|
exports.UpdateToolResponseBody4$inboundSchema = z.object({
|
|
1479
|
-
_id: z.string().default("
|
|
1479
|
+
_id: z.string().default("01K83NPC3JKGNC80CX8RT14H98"),
|
|
1480
1480
|
path: z.string(),
|
|
1481
1481
|
key: z.string(),
|
|
1482
1482
|
display_name: z.string().optional(),
|
|
@@ -1504,7 +1504,7 @@ exports.UpdateToolResponseBody4$inboundSchema = z.object({
|
|
|
1504
1504
|
});
|
|
1505
1505
|
/** @internal */
|
|
1506
1506
|
exports.UpdateToolResponseBody4$outboundSchema = z.object({
|
|
1507
|
-
id: z.string().default("
|
|
1507
|
+
id: z.string().default("01K83NPC3JKGNC80CX8RT14H98"),
|
|
1508
1508
|
path: z.string(),
|
|
1509
1509
|
key: z.string(),
|
|
1510
1510
|
displayName: z.string().optional(),
|
|
@@ -1731,7 +1731,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
/** @internal */
|
|
1733
1733
|
exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
1734
|
-
_id: z.string().default("
|
|
1734
|
+
_id: z.string().default("01K83NPC3JA8A594T35HXVFVH6"),
|
|
1735
1735
|
path: z.string(),
|
|
1736
1736
|
key: z.string(),
|
|
1737
1737
|
display_name: z.string().optional(),
|
|
@@ -1759,7 +1759,7 @@ exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
|
1759
1759
|
});
|
|
1760
1760
|
/** @internal */
|
|
1761
1761
|
exports.UpdateToolResponseBody3$outboundSchema = z.object({
|
|
1762
|
-
id: z.string().default("
|
|
1762
|
+
id: z.string().default("01K83NPC3JA8A594T35HXVFVH6"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
displayName: z.string().optional(),
|
|
@@ -1865,7 +1865,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
/** @internal */
|
|
1867
1867
|
exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
1868
|
-
_id: z.string().default("
|
|
1868
|
+
_id: z.string().default("01K83NPC3JDMEKXFG2C3M22F5P"),
|
|
1869
1869
|
path: z.string(),
|
|
1870
1870
|
key: z.string(),
|
|
1871
1871
|
display_name: z.string().optional(),
|
|
@@ -1894,7 +1894,7 @@ exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
|
1894
1894
|
});
|
|
1895
1895
|
/** @internal */
|
|
1896
1896
|
exports.UpdateToolResponseBody2$outboundSchema = z.object({
|
|
1897
|
-
id: z.string().default("
|
|
1897
|
+
id: z.string().default("01K83NPC3JDMEKXFG2C3M22F5P"),
|
|
1898
1898
|
path: z.string(),
|
|
1899
1899
|
key: z.string(),
|
|
1900
1900
|
displayName: z.string().optional(),
|
|
@@ -2001,7 +2001,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
/** @internal */
|
|
2003
2003
|
exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
2004
|
-
_id: z.string().default("
|
|
2004
|
+
_id: z.string().default("01K83NPC3H69KR800GH8GY3HGS"),
|
|
2005
2005
|
path: z.string(),
|
|
2006
2006
|
key: z.string(),
|
|
2007
2007
|
display_name: z.string().optional(),
|
|
@@ -2029,7 +2029,7 @@ exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
|
2029
2029
|
});
|
|
2030
2030
|
/** @internal */
|
|
2031
2031
|
exports.UpdateToolResponseBody1$outboundSchema = z.object({
|
|
2032
|
-
id: z.string().default("
|
|
2032
|
+
id: z.string().default("01K83NPC3H69KR800GH8GY3HGS"),
|
|
2033
2033
|
path: z.string(),
|
|
2034
2034
|
key: z.string(),
|
|
2035
2035
|
displayName: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -99,17 +99,20 @@ const orq = new Orq({
|
|
|
99
99
|
async function run() {
|
|
100
100
|
const result = await orq.prompts.create({
|
|
101
101
|
displayName: "Raymundo83",
|
|
102
|
-
|
|
102
|
+
prompt: {
|
|
103
103
|
messages: [
|
|
104
104
|
{
|
|
105
|
-
role: "
|
|
106
|
-
content: "
|
|
105
|
+
role: "system",
|
|
106
|
+
content: "You are a helpful assistant",
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
|
-
role: "
|
|
110
|
-
content: "
|
|
109
|
+
role: "user",
|
|
110
|
+
content: "What is the weather today?",
|
|
111
111
|
},
|
|
112
112
|
],
|
|
113
|
+
model: "openai/gpt-4o",
|
|
114
|
+
temperature: 0.7,
|
|
115
|
+
maxTokens: 1000,
|
|
113
116
|
},
|
|
114
117
|
path: "Default",
|
|
115
118
|
});
|
|
@@ -137,17 +140,20 @@ const orq = new OrqCore({
|
|
|
137
140
|
async function run() {
|
|
138
141
|
const res = await promptsCreate(orq, {
|
|
139
142
|
displayName: "Raymundo83",
|
|
140
|
-
|
|
143
|
+
prompt: {
|
|
141
144
|
messages: [
|
|
142
145
|
{
|
|
143
|
-
role: "
|
|
144
|
-
content: "
|
|
146
|
+
role: "system",
|
|
147
|
+
content: "You are a helpful assistant",
|
|
145
148
|
},
|
|
146
149
|
{
|
|
147
|
-
role: "
|
|
148
|
-
content: "
|
|
150
|
+
role: "user",
|
|
151
|
+
content: "What is the weather today?",
|
|
149
152
|
},
|
|
150
153
|
],
|
|
154
|
+
model: "openai/gpt-4o",
|
|
155
|
+
temperature: 0.7,
|
|
156
|
+
maxTokens: 1000,
|
|
151
157
|
},
|
|
152
158
|
path: "Default",
|
|
153
159
|
});
|
|
@@ -173,7 +179,7 @@ run();
|
|
|
173
179
|
|
|
174
180
|
### Response
|
|
175
181
|
|
|
176
|
-
**Promise\<[operations.
|
|
182
|
+
**Promise\<[operations.CreatePromptPrompt](../../models/operations/createpromptprompt.md)\>**
|
|
177
183
|
|
|
178
184
|
### Errors
|
|
179
185
|
|
|
@@ -246,7 +252,7 @@ run();
|
|
|
246
252
|
|
|
247
253
|
### Response
|
|
248
254
|
|
|
249
|
-
**Promise\<[operations.
|
|
255
|
+
**Promise\<[operations.GetOnePromptPrompt](../../models/operations/getonepromptprompt.md)\>**
|
|
250
256
|
|
|
251
257
|
### Errors
|
|
252
258
|
|
|
@@ -273,6 +279,20 @@ async function run() {
|
|
|
273
279
|
id: "<id>",
|
|
274
280
|
requestBody: {
|
|
275
281
|
path: "Default",
|
|
282
|
+
prompt: {
|
|
283
|
+
messages: [
|
|
284
|
+
{
|
|
285
|
+
role: "system",
|
|
286
|
+
content: "You are a helpful assistant",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
role: "user",
|
|
290
|
+
content: "Hello!",
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
model: "anthropic/claude-3-5-sonnet-20241022",
|
|
294
|
+
temperature: 0.5,
|
|
295
|
+
},
|
|
276
296
|
},
|
|
277
297
|
});
|
|
278
298
|
|
|
@@ -301,6 +321,20 @@ async function run() {
|
|
|
301
321
|
id: "<id>",
|
|
302
322
|
requestBody: {
|
|
303
323
|
path: "Default",
|
|
324
|
+
prompt: {
|
|
325
|
+
messages: [
|
|
326
|
+
{
|
|
327
|
+
role: "system",
|
|
328
|
+
content: "You are a helpful assistant",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
role: "user",
|
|
332
|
+
content: "Hello!",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
model: "anthropic/claude-3-5-sonnet-20241022",
|
|
336
|
+
temperature: 0.5,
|
|
337
|
+
},
|
|
304
338
|
},
|
|
305
339
|
});
|
|
306
340
|
if (res.ok) {
|
|
@@ -325,7 +359,7 @@ run();
|
|
|
325
359
|
|
|
326
360
|
### Response
|
|
327
361
|
|
|
328
|
-
**Promise\<[operations.
|
|
362
|
+
**Promise\<[operations.UpdatePromptPrompt](../../models/operations/updatepromptprompt.md)\>**
|
|
329
363
|
|
|
330
364
|
### Errors
|
|
331
365
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
## list
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Lists all workspace tools. By default, returns all tools in a single response. Set `limit` to enable cursor-based pagination with `starting_after` and `ending_before`.
|
|
18
18
|
|
|
19
19
|
### Example Usage
|
|
20
20
|
|
|
@@ -27,7 +27,9 @@ const orq = new Orq({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await orq.tools.list({
|
|
30
|
+
const result = await orq.tools.list({
|
|
31
|
+
limit: 10,
|
|
32
|
+
});
|
|
31
33
|
|
|
32
34
|
console.log(result);
|
|
33
35
|
}
|
|
@@ -50,7 +52,9 @@ const orq = new OrqCore({
|
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
async function run() {
|
|
53
|
-
const res = await toolsList(orq, {
|
|
55
|
+
const res = await toolsList(orq, {
|
|
56
|
+
limit: 10,
|
|
57
|
+
});
|
|
54
58
|
if (res.ok) {
|
|
55
59
|
const { value: result } = res;
|
|
56
60
|
console.log(result);
|
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "3.14.0-rc.
|
|
3
|
+
"version": "3.14.0-rc.44",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@orq-ai/node",
|
|
9
|
-
"version": "3.14.0-rc.
|
|
9
|
+
"version": "3.14.0-rc.44",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"zod": "^3.20.0"
|
|
12
12
|
},
|
|
@@ -33,7 +33,7 @@ export function promptsCreate(
|
|
|
33
33
|
options?: RequestOptions,
|
|
34
34
|
): APIPromise<
|
|
35
35
|
Result<
|
|
36
|
-
operations.
|
|
36
|
+
operations.CreatePromptPrompt,
|
|
37
37
|
| OrqError
|
|
38
38
|
| ResponseValidationError
|
|
39
39
|
| ConnectionError
|
|
@@ -58,7 +58,7 @@ async function $do(
|
|
|
58
58
|
): Promise<
|
|
59
59
|
[
|
|
60
60
|
Result<
|
|
61
|
-
operations.
|
|
61
|
+
operations.CreatePromptPrompt,
|
|
62
62
|
| OrqError
|
|
63
63
|
| ResponseValidationError
|
|
64
64
|
| ConnectionError
|
|
@@ -138,7 +138,7 @@ async function $do(
|
|
|
138
138
|
const response = doResult.value;
|
|
139
139
|
|
|
140
140
|
const [result] = await M.match<
|
|
141
|
-
operations.
|
|
141
|
+
operations.CreatePromptPrompt,
|
|
142
142
|
| OrqError
|
|
143
143
|
| ResponseValidationError
|
|
144
144
|
| ConnectionError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
| UnexpectedClientError
|
|
149
149
|
| SDKValidationError
|
|
150
150
|
>(
|
|
151
|
-
M.json(200, operations.
|
|
151
|
+
M.json(200, operations.CreatePromptPrompt$inboundSchema),
|
|
152
152
|
M.fail("4XX"),
|
|
153
153
|
M.fail("5XX"),
|
|
154
154
|
)(response, req);
|
|
@@ -36,7 +36,7 @@ export function promptsRetrieve(
|
|
|
36
36
|
options?: RequestOptions,
|
|
37
37
|
): APIPromise<
|
|
38
38
|
Result<
|
|
39
|
-
operations.
|
|
39
|
+
operations.GetOnePromptPrompt,
|
|
40
40
|
| OrqError
|
|
41
41
|
| ResponseValidationError
|
|
42
42
|
| ConnectionError
|
|
@@ -61,7 +61,7 @@ async function $do(
|
|
|
61
61
|
): Promise<
|
|
62
62
|
[
|
|
63
63
|
Result<
|
|
64
|
-
operations.
|
|
64
|
+
operations.GetOnePromptPrompt,
|
|
65
65
|
| OrqError
|
|
66
66
|
| ResponseValidationError
|
|
67
67
|
| ConnectionError
|
|
@@ -144,7 +144,7 @@ async function $do(
|
|
|
144
144
|
const response = doResult.value;
|
|
145
145
|
|
|
146
146
|
const [result] = await M.match<
|
|
147
|
-
operations.
|
|
147
|
+
operations.GetOnePromptPrompt,
|
|
148
148
|
| OrqError
|
|
149
149
|
| ResponseValidationError
|
|
150
150
|
| ConnectionError
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
| UnexpectedClientError
|
|
155
155
|
| SDKValidationError
|
|
156
156
|
>(
|
|
157
|
-
M.json(200, operations.
|
|
157
|
+
M.json(200, operations.GetOnePromptPrompt$inboundSchema),
|
|
158
158
|
M.fail("4XX"),
|
|
159
159
|
M.fail("5XX"),
|
|
160
160
|
)(response, req);
|
|
@@ -34,7 +34,7 @@ export function promptsUpdate(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
operations.
|
|
37
|
+
operations.UpdatePromptPrompt,
|
|
38
38
|
| errors.UpdatePromptResponseBody
|
|
39
39
|
| OrqError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -60,7 +60,7 @@ async function $do(
|
|
|
60
60
|
): Promise<
|
|
61
61
|
[
|
|
62
62
|
Result<
|
|
63
|
-
operations.
|
|
63
|
+
operations.UpdatePromptPrompt,
|
|
64
64
|
| errors.UpdatePromptResponseBody
|
|
65
65
|
| OrqError
|
|
66
66
|
| ResponseValidationError
|
|
@@ -149,7 +149,7 @@ async function $do(
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
const [result] = await M.match<
|
|
152
|
-
operations.
|
|
152
|
+
operations.UpdatePromptPrompt,
|
|
153
153
|
| errors.UpdatePromptResponseBody
|
|
154
154
|
| OrqError
|
|
155
155
|
| ResponseValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
| UnexpectedClientError
|
|
161
161
|
| SDKValidationError
|
|
162
162
|
>(
|
|
163
|
-
M.json(200, operations.
|
|
163
|
+
M.json(200, operations.UpdatePromptPrompt$inboundSchema),
|
|
164
164
|
M.jsonErr(404, errors.UpdatePromptResponseBody$inboundSchema),
|
|
165
165
|
M.fail("4XX"),
|
|
166
166
|
M.fail("5XX"),
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* List tools
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Lists all workspace tools. By default, returns all tools in a single response. Set `limit` to enable cursor-based pagination with `starting_after` and `ending_before`.
|
|
33
33
|
*/
|
|
34
34
|
export function toolsList(
|
|
35
35
|
client: OrqCore,
|
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.14.0-rc.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.14.0-rc.
|
|
71
|
+
sdkVersion: "3.14.0-rc.44",
|
|
72
|
+
genVersion: "2.727.9",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.14.0-rc.44 2.727.9 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -32,6 +32,18 @@ export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
|
|
|
32
32
|
ORQ_DEBUG: z.coerce.boolean().optional(),
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Checks for the existence of the Deno global object to determine the environment.
|
|
37
|
+
* @returns {boolean} True if the runtime is Deno, false otherwise.
|
|
38
|
+
*/
|
|
39
|
+
function isDeno() {
|
|
40
|
+
if ("Deno" in globalThis) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
let envMemo: Env | undefined = undefined;
|
|
36
48
|
/**
|
|
37
49
|
* Reads and validates environment variables.
|
|
@@ -41,9 +53,14 @@ export function env(): Env {
|
|
|
41
53
|
return envMemo;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
let envObject: Record<string, unknown> = {};
|
|
57
|
+
if (isDeno()) {
|
|
58
|
+
envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {};
|
|
59
|
+
} else {
|
|
60
|
+
envObject = dlv(globalThis, "process.env") ?? {};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
envMemo = envSchema.parse(envObject);
|
|
47
64
|
return envMemo;
|
|
48
65
|
}
|
|
49
66
|
|