@orq-ai/node 4.15.0-rc.52 → 4.15.0-rc.54

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.
Files changed (153) hide show
  1. package/FUNCTIONS.md +38 -3
  2. package/README.md +252 -71
  3. package/examples/deploymentsInvoke.example.ts +62 -0
  4. package/funcs/deploymentsInvoke.d.ts +18 -0
  5. package/funcs/deploymentsInvoke.d.ts.map +1 -0
  6. package/funcs/deploymentsInvoke.js +116 -0
  7. package/funcs/deploymentsInvoke.js.map +1 -0
  8. package/funcs/deploymentsStream.d.ts +18 -0
  9. package/funcs/deploymentsStream.d.ts.map +1 -0
  10. package/funcs/deploymentsStream.js +129 -0
  11. package/funcs/deploymentsStream.js.map +1 -0
  12. package/funcs/skillsUpdate.d.ts +1 -1
  13. package/funcs/skillsUpdate.js +1 -1
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/components/agentresponserequest.d.ts +8 -8
  18. package/models/components/agentresponserequest.d.ts.map +1 -1
  19. package/models/components/agentresponserequest.js +10 -9
  20. package/models/components/agentresponserequest.js.map +1 -1
  21. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  22. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  23. package/models/components/agentthoughtstreamingevent.js +17 -17
  24. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  25. package/models/components/index.d.ts +1 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/invokedeploymentrequest.d.ts +1544 -0
  30. package/models/components/invokedeploymentrequest.d.ts.map +1 -0
  31. package/models/components/invokedeploymentrequest.js +1109 -0
  32. package/models/components/invokedeploymentrequest.js.map +1 -0
  33. package/models/components/reasoningpart.js +1 -1
  34. package/models/components/searchknowledgerequest.d.ts +176 -176
  35. package/models/components/searchknowledgerequest.d.ts.map +1 -1
  36. package/models/components/searchknowledgerequest.js +211 -222
  37. package/models/components/searchknowledgerequest.js.map +1 -1
  38. package/models/components/updatememorystorerequest.d.ts +5 -0
  39. package/models/components/updatememorystorerequest.d.ts.map +1 -1
  40. package/models/components/updatememorystorerequest.js +6 -0
  41. package/models/components/updatememorystorerequest.js.map +1 -1
  42. package/models/components/updateskillrequest.d.ts +1 -1
  43. package/models/operations/createagentrequest.d.ts +1 -1
  44. package/models/operations/createchatcompletion.d.ts +59 -59
  45. package/models/operations/createchatcompletion.d.ts.map +1 -1
  46. package/models/operations/createchatcompletion.js +81 -80
  47. package/models/operations/createchatcompletion.js.map +1 -1
  48. package/models/operations/createdataset.js +1 -1
  49. package/models/operations/createdatasetitem.js +5 -5
  50. package/models/operations/createprompt.d.ts +6 -6
  51. package/models/operations/createprompt.d.ts.map +1 -1
  52. package/models/operations/createprompt.js +5 -6
  53. package/models/operations/createprompt.js.map +1 -1
  54. package/models/operations/createtool.js +4 -4
  55. package/models/operations/deploymentgetconfig.d.ts +442 -442
  56. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  57. package/models/operations/deploymentgetconfig.js +481 -485
  58. package/models/operations/deploymentgetconfig.js.map +1 -1
  59. package/models/operations/deploymentinvoke.d.ts +367 -0
  60. package/models/operations/deploymentinvoke.d.ts.map +1 -0
  61. package/models/operations/deploymentinvoke.js +373 -0
  62. package/models/operations/deploymentinvoke.js.map +1 -0
  63. package/models/operations/deployments.d.ts +16 -16
  64. package/models/operations/deployments.d.ts.map +1 -1
  65. package/models/operations/deployments.js +16 -18
  66. package/models/operations/deployments.js.map +1 -1
  67. package/models/operations/deploymentstream.d.ts +1899 -0
  68. package/models/operations/deploymentstream.d.ts.map +1 -0
  69. package/models/operations/deploymentstream.js +1488 -0
  70. package/models/operations/deploymentstream.js.map +1 -0
  71. package/models/operations/getallprompts.d.ts +1 -1
  72. package/models/operations/getalltools.js +4 -4
  73. package/models/operations/getoneprompt.d.ts +1 -1
  74. package/models/operations/getpromptversion.d.ts +1 -1
  75. package/models/operations/getv2humanevalsets.js +2 -2
  76. package/models/operations/getv2humanevalsetsid.js +2 -2
  77. package/models/operations/index.d.ts +2 -0
  78. package/models/operations/index.d.ts.map +1 -1
  79. package/models/operations/index.js +2 -0
  80. package/models/operations/index.js.map +1 -1
  81. package/models/operations/listdatasetdatapoints.js +5 -5
  82. package/models/operations/listdatasets.js +1 -1
  83. package/models/operations/listpromptversions.d.ts +1 -1
  84. package/models/operations/patchv2humanevalsetsid.js +2 -2
  85. package/models/operations/postv2feedbackevaluation.js +4 -4
  86. package/models/operations/postv2humanevalsets.js +2 -2
  87. package/models/operations/retrievedatapoint.js +5 -5
  88. package/models/operations/retrievedataset.js +1 -1
  89. package/models/operations/retrievetool.js +4 -4
  90. package/models/operations/runagent.d.ts +1 -1
  91. package/models/operations/runagent.js +1 -1
  92. package/models/operations/streamrunagent.d.ts +1 -1
  93. package/models/operations/streamrunagent.js +1 -1
  94. package/models/operations/updateagent.d.ts +1 -1
  95. package/models/operations/updatedatapoint.js +5 -5
  96. package/models/operations/updatedataset.js +1 -1
  97. package/models/operations/updateprompt.d.ts +2 -2
  98. package/models/operations/updatetool.js +4 -4
  99. package/package.json +7 -7
  100. package/sdk/deployments.d.ts +16 -0
  101. package/sdk/deployments.d.ts.map +1 -1
  102. package/sdk/deployments.js +20 -0
  103. package/sdk/deployments.js.map +1 -1
  104. package/sdk/skills.d.ts +1 -1
  105. package/sdk/skills.js +1 -1
  106. package/src/funcs/deploymentsInvoke.ts +170 -0
  107. package/src/funcs/deploymentsStream.ts +180 -0
  108. package/src/funcs/skillsUpdate.ts +1 -1
  109. package/src/lib/config.ts +2 -2
  110. package/src/models/components/agentresponserequest.ts +17 -12
  111. package/src/models/components/agentthoughtstreamingevent.ts +55 -43
  112. package/src/models/components/index.ts +1 -0
  113. package/src/models/components/invokedeploymentrequest.ts +3444 -0
  114. package/src/models/components/reasoningpart.ts +1 -1
  115. package/src/models/components/searchknowledgerequest.ts +680 -469
  116. package/src/models/components/updatememorystorerequest.ts +11 -0
  117. package/src/models/components/updateskillrequest.ts +1 -1
  118. package/src/models/operations/createagentrequest.ts +1 -1
  119. package/src/models/operations/createchatcompletion.ts +314 -249
  120. package/src/models/operations/createdataset.ts +1 -1
  121. package/src/models/operations/createdatasetitem.ts +5 -5
  122. package/src/models/operations/createprompt.ts +9 -8
  123. package/src/models/operations/createtool.ts +4 -4
  124. package/src/models/operations/deploymentgetconfig.ts +1631 -1141
  125. package/src/models/operations/deploymentinvoke.ts +732 -0
  126. package/src/models/operations/deployments.ts +46 -42
  127. package/src/models/operations/deploymentstream.ts +4102 -0
  128. package/src/models/operations/getallprompts.ts +1 -1
  129. package/src/models/operations/getalltools.ts +4 -4
  130. package/src/models/operations/getoneprompt.ts +1 -1
  131. package/src/models/operations/getpromptversion.ts +1 -1
  132. package/src/models/operations/getv2humanevalsets.ts +2 -2
  133. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  134. package/src/models/operations/index.ts +2 -0
  135. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  136. package/src/models/operations/listdatasets.ts +1 -1
  137. package/src/models/operations/listpromptversions.ts +1 -1
  138. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  139. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  140. package/src/models/operations/postv2humanevalsets.ts +2 -2
  141. package/src/models/operations/retrievedatapoint.ts +5 -5
  142. package/src/models/operations/retrievedataset.ts +1 -1
  143. package/src/models/operations/retrievetool.ts +4 -4
  144. package/src/models/operations/runagent.ts +2 -2
  145. package/src/models/operations/streamrunagent.ts +2 -2
  146. package/src/models/operations/updateagent.ts +1 -1
  147. package/src/models/operations/updatedatapoint.ts +5 -5
  148. package/src/models/operations/updatedataset.ts +1 -1
  149. package/src/models/operations/updateprompt.ts +2 -2
  150. package/src/models/operations/updatetool.ts +4 -4
  151. package/src/sdk/deployments.ts +38 -0
  152. package/src/sdk/skills.ts +1 -1
  153. package/examples/deploymentsList.example.ts +0 -26
package/FUNCTIONS.md CHANGED
@@ -20,7 +20,7 @@ specific category of applications.
20
20
 
21
21
  ```typescript
22
22
  import { OrqCore } from "@orq-ai/node/core.js";
23
- import { deploymentsList } from "@orq-ai/node/funcs/deploymentsList.js";
23
+ import { deploymentsInvoke } from "@orq-ai/node/funcs/deploymentsInvoke.js";
24
24
 
25
25
  // Use `OrqCore` for best tree-shaking performance.
26
26
  // You can create one instance of it to use across an application.
@@ -29,12 +29,47 @@ const orq = new OrqCore({
29
29
  });
30
30
 
31
31
  async function run() {
32
- const res = await deploymentsList(orq, {});
32
+ const res = await deploymentsInvoke(orq, {
33
+ key: "<key>",
34
+ identity: {
35
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
36
+ displayName: "Jane Doe",
37
+ email: "jane.doe@example.com",
38
+ metadata: [
39
+ {
40
+ "department": "Engineering",
41
+ "role": "Senior Developer",
42
+ },
43
+ ],
44
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
45
+ tags: [
46
+ "hr",
47
+ "engineering",
48
+ ],
49
+ },
50
+ documents: [
51
+ {
52
+ text: "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
53
+ metadata: {
54
+ fileName: "refund_policy.pdf",
55
+ fileType: "application/pdf",
56
+ pageNumber: 1,
57
+ },
58
+ },
59
+ {
60
+ text: "Premium members receive free shipping on all orders over $50.",
61
+ metadata: {
62
+ fileName: "membership_benefits.md",
63
+ fileType: "text/markdown",
64
+ },
65
+ },
66
+ ],
67
+ });
33
68
  if (res.ok) {
34
69
  const { value: result } = res;
35
70
  console.log(result);
36
71
  } else {
37
- console.log("deploymentsList failed:", res.error);
72
+ console.log("deploymentsInvoke failed:", res.error);
38
73
  }
39
74
  }
40
75
 
package/README.md CHANGED
@@ -89,7 +89,43 @@ const orq = new Orq({
89
89
  });
90
90
 
91
91
  async function run() {
92
- const result = await orq.deployments.list({});
92
+ const result = await orq.deployments.invoke({
93
+ key: "<key>",
94
+ identity: {
95
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
96
+ displayName: "Jane Doe",
97
+ email: "jane.doe@example.com",
98
+ metadata: [
99
+ {
100
+ "department": "Engineering",
101
+ "role": "Senior Developer",
102
+ },
103
+ ],
104
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
105
+ tags: [
106
+ "hr",
107
+ "engineering",
108
+ ],
109
+ },
110
+ documents: [
111
+ {
112
+ text:
113
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
114
+ metadata: {
115
+ fileName: "refund_policy.pdf",
116
+ fileType: "application/pdf",
117
+ pageNumber: 1,
118
+ },
119
+ },
120
+ {
121
+ text: "Premium members receive free shipping on all orders over $50.",
122
+ metadata: {
123
+ fileName: "membership_benefits.md",
124
+ fileType: "text/markdown",
125
+ },
126
+ },
127
+ ],
128
+ });
93
129
 
94
130
  console.log(result);
95
131
  }
@@ -119,7 +155,43 @@ const orq = new Orq({
119
155
  });
120
156
 
121
157
  async function run() {
122
- const result = await orq.deployments.list({});
158
+ const result = await orq.deployments.invoke({
159
+ key: "<key>",
160
+ identity: {
161
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
162
+ displayName: "Jane Doe",
163
+ email: "jane.doe@example.com",
164
+ metadata: [
165
+ {
166
+ "department": "Engineering",
167
+ "role": "Senior Developer",
168
+ },
169
+ ],
170
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
171
+ tags: [
172
+ "hr",
173
+ "engineering",
174
+ ],
175
+ },
176
+ documents: [
177
+ {
178
+ text:
179
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
180
+ metadata: {
181
+ fileName: "refund_policy.pdf",
182
+ fileType: "application/pdf",
183
+ pageNumber: 1,
184
+ },
185
+ },
186
+ {
187
+ text: "Premium members receive free shipping on all orders over $50.",
188
+ metadata: {
189
+ fileName: "membership_benefits.md",
190
+ fileType: "text/markdown",
191
+ },
192
+ },
193
+ ],
194
+ });
123
195
 
124
196
  console.log(result);
125
197
  }
@@ -222,6 +294,8 @@ run();
222
294
 
223
295
  ### [Deployments](docs/sdks/deployments/README.md)
224
296
 
297
+ * [invoke](docs/sdks/deployments/README.md#invoke) - Invoke
298
+ * [stream](docs/sdks/deployments/README.md#stream) - Stream
225
299
  * [list](docs/sdks/deployments/README.md#list) - List all deployments
226
300
  * [getConfig](docs/sdks/deployments/README.md#getconfig) - Get config
227
301
 
@@ -670,7 +744,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
670
744
  - [`datasetsUpdate`](docs/sdks/datasets/README.md#update) - Update a dataset
671
745
  - [`datasetsUpdateDatapoint`](docs/sdks/datasets/README.md#updatedatapoint) - Update a datapoint
672
746
  - [`deploymentsGetConfig`](docs/sdks/deployments/README.md#getconfig) - Get config
747
+ - [`deploymentsInvoke`](docs/sdks/deployments/README.md#invoke) - Invoke
673
748
  - [`deploymentsList`](docs/sdks/deployments/README.md#list) - List all deployments
749
+ - [`deploymentsStream`](docs/sdks/deployments/README.md#stream) - Stream
674
750
  - [`evalsAll`](docs/sdks/evals/README.md#all) - Get all Evaluators
675
751
  - [`evalsCreate`](docs/sdks/evals/README.md#create) - Create an Evaluator
676
752
  - [`evalsDelete`](docs/sdks/evals/README.md#delete) - Delete an Evaluator
@@ -937,50 +1013,47 @@ const orq = new Orq({
937
1013
  });
938
1014
 
939
1015
  async function run() {
940
- const result = await orq.router.chat.completions.create({
941
- messages: [],
942
- model: "Model 3",
943
- fallbacks: [
944
- {
945
- model: "openai/gpt-4o-mini",
946
- },
947
- ],
948
- retry: {
949
- onCodes: [
950
- 429,
951
- 500,
952
- 502,
953
- 503,
954
- 504,
955
- ],
956
- },
957
- cache: {
958
- ttl: 3600,
959
- type: "exact_match",
960
- },
961
- loadBalancer: {
962
- type: "weight_based",
963
- models: [
964
- {
965
- model: "openai/gpt-4o",
966
- weight: 0.7,
967
- },
1016
+ const result = await orq.deployments.stream({
1017
+ key: "<key>",
1018
+ identity: {
1019
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
1020
+ displayName: "Jane Doe",
1021
+ email: "jane.doe@example.com",
1022
+ metadata: [
968
1023
  {
969
- model: "anthropic/claude-3-5-sonnet",
970
- weight: 0.3,
1024
+ "department": "Engineering",
1025
+ "role": "Senior Developer",
971
1026
  },
972
1027
  ],
1028
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
1029
+ tags: [
1030
+ "hr",
1031
+ "engineering",
1032
+ ],
973
1033
  },
974
- timeout: {
975
- callTimeout: 30000,
976
- },
977
- variables: {
978
- "customer_name": "John Smith",
979
- "product_name": "Premium Plan",
980
- },
1034
+ documents: [
1035
+ {
1036
+ text:
1037
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
1038
+ metadata: {
1039
+ fileName: "refund_policy.pdf",
1040
+ fileType: "application/pdf",
1041
+ pageNumber: 1,
1042
+ },
1043
+ },
1044
+ {
1045
+ text: "Premium members receive free shipping on all orders over $50.",
1046
+ metadata: {
1047
+ fileName: "membership_benefits.md",
1048
+ fileType: "text/markdown",
1049
+ },
1050
+ },
1051
+ ],
981
1052
  });
982
1053
 
983
- console.log(result);
1054
+ for await (const event of result) {
1055
+ console.log(event);
1056
+ }
984
1057
  }
985
1058
 
986
1059
  run();
@@ -1113,7 +1186,43 @@ const orq = new Orq({
1113
1186
  });
1114
1187
 
1115
1188
  async function run() {
1116
- const result = await orq.deployments.list({}, {
1189
+ const result = await orq.deployments.invoke({
1190
+ key: "<key>",
1191
+ identity: {
1192
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
1193
+ displayName: "Jane Doe",
1194
+ email: "jane.doe@example.com",
1195
+ metadata: [
1196
+ {
1197
+ "department": "Engineering",
1198
+ "role": "Senior Developer",
1199
+ },
1200
+ ],
1201
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
1202
+ tags: [
1203
+ "hr",
1204
+ "engineering",
1205
+ ],
1206
+ },
1207
+ documents: [
1208
+ {
1209
+ text:
1210
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
1211
+ metadata: {
1212
+ fileName: "refund_policy.pdf",
1213
+ fileType: "application/pdf",
1214
+ pageNumber: 1,
1215
+ },
1216
+ },
1217
+ {
1218
+ text: "Premium members receive free shipping on all orders over $50.",
1219
+ metadata: {
1220
+ fileName: "membership_benefits.md",
1221
+ fileType: "text/markdown",
1222
+ },
1223
+ },
1224
+ ],
1225
+ }, {
1117
1226
  retries: {
1118
1227
  strategy: "backoff",
1119
1228
  backoff: {
@@ -1152,7 +1261,43 @@ const orq = new Orq({
1152
1261
  });
1153
1262
 
1154
1263
  async function run() {
1155
- const result = await orq.deployments.list({});
1264
+ const result = await orq.deployments.invoke({
1265
+ key: "<key>",
1266
+ identity: {
1267
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
1268
+ displayName: "Jane Doe",
1269
+ email: "jane.doe@example.com",
1270
+ metadata: [
1271
+ {
1272
+ "department": "Engineering",
1273
+ "role": "Senior Developer",
1274
+ },
1275
+ ],
1276
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
1277
+ tags: [
1278
+ "hr",
1279
+ "engineering",
1280
+ ],
1281
+ },
1282
+ documents: [
1283
+ {
1284
+ text:
1285
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
1286
+ metadata: {
1287
+ fileName: "refund_policy.pdf",
1288
+ fileType: "application/pdf",
1289
+ pageNumber: 1,
1290
+ },
1291
+ },
1292
+ {
1293
+ text: "Premium members receive free shipping on all orders over $50.",
1294
+ metadata: {
1295
+ fileName: "membership_benefits.md",
1296
+ fileType: "text/markdown",
1297
+ },
1298
+ },
1299
+ ],
1300
+ });
1156
1301
 
1157
1302
  console.log(result);
1158
1303
  }
@@ -1228,34 +1373,34 @@ run();
1228
1373
 
1229
1374
 
1230
1375
  **Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
1231
- * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of 296 methods.*
1232
- * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 296 methods.*
1233
- * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 296 methods.*
1234
- * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 296 methods.*
1235
- * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 296 methods.*
1236
- * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 296 methods.*
1237
- * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 296 methods.*
1238
- * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 296 methods.*
1239
- * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 296 methods.*
1240
- * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 296 methods.*
1241
- * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 296 methods.*
1242
- * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 296 methods.*
1243
- * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 296 methods.*
1244
- * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 296 methods.*
1245
- * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 296 methods.*
1246
- * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 296 methods.*
1247
- * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 296 methods.*
1248
- * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 296 methods.*
1249
- * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 296 methods.*
1250
- * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
1251
- * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
1252
- * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 296 methods.*
1253
- * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
1254
- * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 296 methods.*
1255
- * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
1256
- * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
1257
- * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
1258
- * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 296 methods.*
1376
+ * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of 298 methods.*
1377
+ * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 298 methods.*
1378
+ * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 298 methods.*
1379
+ * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 298 methods.*
1380
+ * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 298 methods.*
1381
+ * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 298 methods.*
1382
+ * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 298 methods.*
1383
+ * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 298 methods.*
1384
+ * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 298 methods.*
1385
+ * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 298 methods.*
1386
+ * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 298 methods.*
1387
+ * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 298 methods.*
1388
+ * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 298 methods.*
1389
+ * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 298 methods.*
1390
+ * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 298 methods.*
1391
+ * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 298 methods.*
1392
+ * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
1393
+ * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 298 methods.*
1394
+ * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 298 methods.*
1395
+ * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
1396
+ * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
1397
+ * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 298 methods.*
1398
+ * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
1399
+ * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 298 methods.*
1400
+ * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
1401
+ * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
1402
+ * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
1403
+ * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 298 methods.*
1259
1404
  * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
1260
1405
 
1261
1406
  </details>
@@ -1278,7 +1423,43 @@ const orq = new Orq({
1278
1423
  });
1279
1424
 
1280
1425
  async function run() {
1281
- const result = await orq.deployments.list({});
1426
+ const result = await orq.deployments.invoke({
1427
+ key: "<key>",
1428
+ identity: {
1429
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
1430
+ displayName: "Jane Doe",
1431
+ email: "jane.doe@example.com",
1432
+ metadata: [
1433
+ {
1434
+ "department": "Engineering",
1435
+ "role": "Senior Developer",
1436
+ },
1437
+ ],
1438
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
1439
+ tags: [
1440
+ "hr",
1441
+ "engineering",
1442
+ ],
1443
+ },
1444
+ documents: [
1445
+ {
1446
+ text:
1447
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
1448
+ metadata: {
1449
+ fileName: "refund_policy.pdf",
1450
+ fileType: "application/pdf",
1451
+ pageNumber: 1,
1452
+ },
1453
+ },
1454
+ {
1455
+ text: "Premium members receive free shipping on all orders over $50.",
1456
+ metadata: {
1457
+ fileName: "membership_benefits.md",
1458
+ fileType: "text/markdown",
1459
+ },
1460
+ },
1461
+ ],
1462
+ });
1282
1463
 
1283
1464
  console.log(result);
1284
1465
  }
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import dotenv from "dotenv";
6
+ dotenv.config();
7
+ /**
8
+ * Example usage of the @orq-ai/node SDK
9
+ *
10
+ * To run this example from the examples directory:
11
+ * npm run build && npx tsx deploymentsInvoke.example.ts
12
+ */
13
+
14
+ import { Orq } from "@orq-ai/node";
15
+
16
+ const orq = new Orq({
17
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
18
+ });
19
+
20
+ async function main() {
21
+ const result = await orq.deployments.invoke({
22
+ key: "<key>",
23
+ identity: {
24
+ id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
25
+ displayName: "Jane Doe",
26
+ email: "jane.doe@example.com",
27
+ metadata: [
28
+ {
29
+ "department": "Engineering",
30
+ "role": "Senior Developer",
31
+ },
32
+ ],
33
+ logoUrl: "https://example.com/avatars/jane-doe.jpg",
34
+ tags: [
35
+ "hr",
36
+ "engineering",
37
+ ],
38
+ },
39
+ documents: [
40
+ {
41
+ text:
42
+ "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
43
+ metadata: {
44
+ fileName: "refund_policy.pdf",
45
+ fileType: "application/pdf",
46
+ pageNumber: 1,
47
+ },
48
+ },
49
+ {
50
+ text: "Premium members receive free shipping on all orders over $50.",
51
+ metadata: {
52
+ fileName: "membership_benefits.md",
53
+ fileType: "text/markdown",
54
+ },
55
+ },
56
+ ],
57
+ });
58
+
59
+ console.log(result);
60
+ }
61
+
62
+ main().catch(console.error);
@@ -0,0 +1,18 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Invoke
13
+ *
14
+ * @remarks
15
+ * Invoke a deployment with a given payload
16
+ */
17
+ export declare function deploymentsInvoke(client: OrqCore, request: components.InvokeDeploymentRequest, options?: RequestOptions): APIPromise<Result<operations.DeploymentInvokeResponseBody | undefined, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=deploymentsInvoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsInvoke.d.ts","sourceRoot":"","sources":["../src/funcs/deploymentsInvoke.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,GAAG,SAAS,EACjD,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.deploymentsInvoke = deploymentsInvoke;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const http_js_1 = require("../lib/http.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const components = __importStar(require("../models/components/index.js"));
48
+ const operations = __importStar(require("../models/operations/index.js"));
49
+ const async_js_1 = require("../types/async.js");
50
+ /**
51
+ * Invoke
52
+ *
53
+ * @remarks
54
+ * Invoke a deployment with a given payload
55
+ */
56
+ function deploymentsInvoke(client, request, options) {
57
+ return new async_js_1.APIPromise($do(client, request, options));
58
+ }
59
+ async function $do(client, request, options) {
60
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.InvokeDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
61
+ if (!parsed.ok) {
62
+ return [parsed, { status: "invalid" }];
63
+ }
64
+ const payload = parsed.value;
65
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
66
+ const path = (0, url_js_1.pathToFunc)("/v2/deployments/invoke")();
67
+ const headers = new Headers((0, primitives_js_1.compactMap)({
68
+ "Content-Type": "application/json",
69
+ Accept: "application/json",
70
+ }));
71
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
72
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
73
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
74
+ const context = {
75
+ options: client._options,
76
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
77
+ operationID: "DeploymentInvoke",
78
+ oAuth2Scopes: null,
79
+ resolvedSecurity: requestSecurity,
80
+ securitySource: client._options.apiKey,
81
+ retryConfig: options?.retries
82
+ || client._options.retryConfig
83
+ || { strategy: "none" },
84
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
85
+ };
86
+ const requestRes = client._createRequest(context, {
87
+ security: requestSecurity,
88
+ method: "POST",
89
+ baseURL: options?.serverURL,
90
+ path: path,
91
+ headers: headers,
92
+ body: body,
93
+ userAgent: client._options.userAgent,
94
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
95
+ }, options);
96
+ if (!requestRes.ok) {
97
+ return [requestRes, { status: "invalid" }];
98
+ }
99
+ const req = requestRes.value;
100
+ const doResult = await client._do(req, {
101
+ context,
102
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
103
+ retryConfig: context.retryConfig,
104
+ retryCodes: context.retryCodes,
105
+ });
106
+ if (!doResult.ok) {
107
+ return [doResult, { status: "request-error", request: req }];
108
+ }
109
+ const response = doResult.value;
110
+ const [result] = await M.match(M.json(200, operations.DeploymentInvokeResponseBody$inboundSchema.optional()), M.nil(204, operations.DeploymentInvokeResponseBody$inboundSchema.optional()), M.fail("4XX"), M.fail("5XX"))(response, req);
111
+ if (!result.ok) {
112
+ return [result, { status: "complete", request: req, response }];
113
+ }
114
+ return [result, { status: "complete", request: req, response }];
115
+ }
116
+ //# sourceMappingURL=deploymentsInvoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploymentsInvoke.js","sourceRoot":"","sources":["../src/funcs/deploymentsInvoke.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8CAsBC;AAnDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDA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