@orq-ai/node 3.10.0-rc.2 → 3.10.0-rc.20

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 (192) hide show
  1. package/README.md +93 -91
  2. package/bin/mcp-server.js +1983 -1375
  3. package/bin/mcp-server.js.map +50 -47
  4. package/docs/sdks/{knowledgebases → chunking}/README.md +10 -10
  5. package/docs/sdks/knowledge/README.md +77 -0
  6. package/examples/README.md +5 -0
  7. package/examples/contactsCreate.example.ts +2 -0
  8. package/examples/package-lock.json +2 -2
  9. package/funcs/{knowledgeBasesChunkText.d.ts → chunkingParse.d.ts} +3 -3
  10. package/funcs/chunkingParse.d.ts.map +1 -0
  11. package/funcs/{knowledgeBasesChunkText.js → chunkingParse.js} +8 -8
  12. package/funcs/chunkingParse.js.map +1 -0
  13. package/funcs/knowledgeCreate.d.ts +14 -0
  14. package/funcs/knowledgeCreate.d.ts.map +1 -0
  15. package/funcs/knowledgeCreate.js +111 -0
  16. package/funcs/knowledgeCreate.js.map +1 -0
  17. package/jsr.json +1 -1
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/lib/config.js.map +1 -1
  21. package/lib/event-streams.d.ts +1 -1
  22. package/lib/event-streams.d.ts.map +1 -1
  23. package/mcp-server/mcp-server.js +1 -1
  24. package/mcp-server/mcp-server.js.map +1 -1
  25. package/mcp-server/server.d.ts.map +1 -1
  26. package/mcp-server/server.js +5 -3
  27. package/mcp-server/server.js.map +1 -1
  28. package/mcp-server/tools/chunkingParse.d.ts +8 -0
  29. package/mcp-server/tools/chunkingParse.d.ts.map +1 -0
  30. package/mcp-server/tools/{knowledgeBasesChunkText.js → chunkingParse.js} +8 -8
  31. package/mcp-server/tools/chunkingParse.js.map +1 -0
  32. package/mcp-server/tools/knowledgeCreate.d.ts +8 -0
  33. package/mcp-server/tools/knowledgeCreate.d.ts.map +1 -0
  34. package/mcp-server/tools/knowledgeCreate.js +62 -0
  35. package/mcp-server/tools/knowledgeCreate.js.map +1 -0
  36. package/models/components/deployments.d.ts +2 -2
  37. package/models/operations/createcontact.js +2 -2
  38. package/models/operations/createdataset.js +2 -2
  39. package/models/operations/createdatasetitem.d.ts +2 -2
  40. package/models/operations/createdatasetitem.js +2 -2
  41. package/models/operations/createdatasource.js +2 -2
  42. package/models/operations/createeval.js +16 -16
  43. package/models/operations/createknowledge.d.ts +426 -0
  44. package/models/operations/createknowledge.d.ts.map +1 -0
  45. package/models/operations/createknowledge.js +431 -0
  46. package/models/operations/createknowledge.js.map +1 -0
  47. package/models/operations/createprompt.d.ts +14 -2
  48. package/models/operations/createprompt.d.ts.map +1 -1
  49. package/models/operations/createprompt.js +4 -0
  50. package/models/operations/createprompt.js.map +1 -1
  51. package/models/operations/deploymentcreatemetric.d.ts +2 -2
  52. package/models/operations/deploymentgetconfig.d.ts +3 -3
  53. package/models/operations/deploymentinvoke.d.ts +6 -0
  54. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  55. package/models/operations/deploymentinvoke.js +2 -0
  56. package/models/operations/deploymentinvoke.js.map +1 -1
  57. package/models/operations/deployments.d.ts +7 -1
  58. package/models/operations/deployments.d.ts.map +1 -1
  59. package/models/operations/deployments.js +2 -0
  60. package/models/operations/deployments.js.map +1 -1
  61. package/models/operations/deploymentstream.d.ts +2 -2
  62. package/models/operations/fileget.js +2 -2
  63. package/models/operations/filelist.js +2 -2
  64. package/models/operations/fileupload.js +2 -2
  65. package/models/operations/getallprompts.d.ts +7 -1
  66. package/models/operations/getallprompts.d.ts.map +1 -1
  67. package/models/operations/getallprompts.js +2 -0
  68. package/models/operations/getallprompts.js.map +1 -1
  69. package/models/operations/getevals.d.ts +525 -4
  70. package/models/operations/getevals.d.ts.map +1 -1
  71. package/models/operations/getevals.js +582 -36
  72. package/models/operations/getevals.js.map +1 -1
  73. package/models/operations/getoneprompt.d.ts +7 -1
  74. package/models/operations/getoneprompt.d.ts.map +1 -1
  75. package/models/operations/getoneprompt.js +2 -0
  76. package/models/operations/getoneprompt.js.map +1 -1
  77. package/models/operations/getpromptversion.d.ts +7 -1
  78. package/models/operations/getpromptversion.d.ts.map +1 -1
  79. package/models/operations/getpromptversion.js +2 -0
  80. package/models/operations/getpromptversion.js.map +1 -1
  81. package/models/operations/index.d.ts +2 -1
  82. package/models/operations/index.d.ts.map +1 -1
  83. package/models/operations/index.js +2 -1
  84. package/models/operations/index.js.map +1 -1
  85. package/models/operations/invokeeval.d.ts +5 -5
  86. package/models/operations/invokeeval.d.ts.map +1 -1
  87. package/models/operations/invokeeval.js +4 -4
  88. package/models/operations/invokeeval.js.map +1 -1
  89. package/models/operations/listcontacts.js +2 -2
  90. package/models/operations/listdatasetdatapoints.d.ts +1 -1
  91. package/models/operations/listdatasetdatapoints.js +2 -2
  92. package/models/operations/listdatasets.js +2 -2
  93. package/models/operations/listdatasources.js +2 -2
  94. package/models/operations/listpromptversions.d.ts +7 -1
  95. package/models/operations/listpromptversions.d.ts.map +1 -1
  96. package/models/operations/listpromptversions.js +2 -0
  97. package/models/operations/listpromptversions.js.map +1 -1
  98. package/models/operations/{chunktext.d.ts → parse.d.ts} +83 -83
  99. package/models/operations/parse.d.ts.map +1 -0
  100. package/models/operations/{chunktext.js → parse.js} +113 -117
  101. package/models/operations/parse.js.map +1 -0
  102. package/models/operations/retrievecontact.js +2 -2
  103. package/models/operations/retrievedatapoint.d.ts +1 -1
  104. package/models/operations/retrievedatapoint.js +2 -2
  105. package/models/operations/retrievedataset.js +2 -2
  106. package/models/operations/retrievedatasource.js +2 -2
  107. package/models/operations/updatecontact.js +2 -2
  108. package/models/operations/updatedatapoint.d.ts +2 -2
  109. package/models/operations/updatedatapoint.js +2 -2
  110. package/models/operations/updatedataset.js +2 -2
  111. package/models/operations/updatedatasource.js +2 -2
  112. package/models/operations/updateeval.js +16 -16
  113. package/models/operations/updateknowledge.d.ts +106 -106
  114. package/models/operations/updateknowledge.d.ts.map +1 -1
  115. package/models/operations/updateknowledge.js +125 -129
  116. package/models/operations/updateknowledge.js.map +1 -1
  117. package/models/operations/updateprompt.d.ts +14 -2
  118. package/models/operations/updateprompt.d.ts.map +1 -1
  119. package/models/operations/updateprompt.js +4 -0
  120. package/models/operations/updateprompt.js.map +1 -1
  121. package/package.json +2 -2
  122. package/sdk/{knowledgebases.d.ts → chunking.d.ts} +4 -4
  123. package/sdk/chunking.d.ts.map +1 -0
  124. package/sdk/{knowledgebases.js → chunking.js} +8 -8
  125. package/sdk/chunking.js.map +1 -0
  126. package/sdk/knowledge.d.ts +4 -0
  127. package/sdk/knowledge.d.ts.map +1 -1
  128. package/sdk/knowledge.js +7 -0
  129. package/sdk/knowledge.js.map +1 -1
  130. package/sdk/sdk.d.ts +3 -3
  131. package/sdk/sdk.d.ts.map +1 -1
  132. package/sdk/sdk.js +3 -3
  133. package/sdk/sdk.js.map +1 -1
  134. package/src/funcs/{knowledgeBasesChunkText.ts → chunkingParse.ts} +11 -11
  135. package/src/funcs/knowledgeCreate.ts +158 -0
  136. package/src/lib/config.ts +3 -3
  137. package/src/lib/event-streams.ts +1 -1
  138. package/src/mcp-server/mcp-server.ts +1 -1
  139. package/src/mcp-server/server.ts +5 -3
  140. package/src/mcp-server/tools/{knowledgeBasesChunkText.ts → chunkingParse.ts} +6 -6
  141. package/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  142. package/src/models/components/deployments.ts +2 -2
  143. package/src/models/operations/createcontact.ts +2 -2
  144. package/src/models/operations/createdataset.ts +2 -2
  145. package/src/models/operations/createdatasetitem.ts +4 -4
  146. package/src/models/operations/createdatasource.ts +2 -2
  147. package/src/models/operations/createeval.ts +16 -16
  148. package/src/models/operations/createknowledge.ts +846 -0
  149. package/src/models/operations/createprompt.ts +6 -2
  150. package/src/models/operations/deploymentcreatemetric.ts +2 -2
  151. package/src/models/operations/deploymentgetconfig.ts +3 -3
  152. package/src/models/operations/deploymentinvoke.ts +2 -0
  153. package/src/models/operations/deployments.ts +3 -1
  154. package/src/models/operations/deploymentstream.ts +2 -2
  155. package/src/models/operations/fileget.ts +2 -2
  156. package/src/models/operations/filelist.ts +2 -2
  157. package/src/models/operations/fileupload.ts +2 -2
  158. package/src/models/operations/getallprompts.ts +3 -1
  159. package/src/models/operations/getevals.ts +1159 -32
  160. package/src/models/operations/getoneprompt.ts +3 -1
  161. package/src/models/operations/getpromptversion.ts +3 -1
  162. package/src/models/operations/index.ts +2 -1
  163. package/src/models/operations/invokeeval.ts +9 -9
  164. package/src/models/operations/listcontacts.ts +2 -2
  165. package/src/models/operations/listdatasetdatapoints.ts +3 -3
  166. package/src/models/operations/listdatasets.ts +2 -2
  167. package/src/models/operations/listdatasources.ts +2 -2
  168. package/src/models/operations/listpromptversions.ts +3 -1
  169. package/src/models/operations/{chunktext.ts → parse.ts} +164 -183
  170. package/src/models/operations/retrievecontact.ts +2 -2
  171. package/src/models/operations/retrievedatapoint.ts +3 -3
  172. package/src/models/operations/retrievedataset.ts +2 -2
  173. package/src/models/operations/retrievedatasource.ts +2 -2
  174. package/src/models/operations/updatecontact.ts +2 -2
  175. package/src/models/operations/updatedatapoint.ts +4 -4
  176. package/src/models/operations/updatedataset.ts +2 -2
  177. package/src/models/operations/updatedatasource.ts +2 -2
  178. package/src/models/operations/updateeval.ts +16 -16
  179. package/src/models/operations/updateknowledge.ts +266 -206
  180. package/src/models/operations/updateprompt.ts +6 -2
  181. package/src/sdk/{knowledgebases.ts → chunking.ts} +7 -7
  182. package/src/sdk/knowledge.ts +15 -0
  183. package/src/sdk/sdk.ts +4 -4
  184. package/funcs/knowledgeBasesChunkText.d.ts.map +0 -1
  185. package/funcs/knowledgeBasesChunkText.js.map +0 -1
  186. package/mcp-server/tools/knowledgeBasesChunkText.d.ts +0 -8
  187. package/mcp-server/tools/knowledgeBasesChunkText.d.ts.map +0 -1
  188. package/mcp-server/tools/knowledgeBasesChunkText.js.map +0 -1
  189. package/models/operations/chunktext.d.ts.map +0 -1
  190. package/models/operations/chunktext.js.map +0 -1
  191. package/sdk/knowledgebases.d.ts.map +0 -1
  192. package/sdk/knowledgebases.js.map +0 -1
@@ -222,6 +222,8 @@ export const Provider = {
222
222
  Togetherai: "togetherai",
223
223
  Elevenlabs: "elevenlabs",
224
224
  Litellm: "litellm",
225
+ Openailike: "openailike",
226
+ Cerebras: "cerebras",
225
227
  } as const;
226
228
  export type Provider = ClosedEnum<typeof Provider>;
227
229
 
@@ -258,7 +260,7 @@ export type CreatePrompt2PromptsRequestType = ClosedEnum<
258
260
 
259
261
  export type CreatePrompt2File = {
260
262
  /**
261
- * The base64 encoded file data, used when passing the file to the model as a string.
263
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
262
264
  */
263
265
  fileData: string;
264
266
  /**
@@ -686,6 +688,8 @@ export const CreatePromptProvider = {
686
688
  Togetherai: "togetherai",
687
689
  Elevenlabs: "elevenlabs",
688
690
  Litellm: "litellm",
691
+ Openailike: "openailike",
692
+ Cerebras: "cerebras",
689
693
  } as const;
690
694
  export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
691
695
 
@@ -724,7 +728,7 @@ export type CreatePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<
724
728
 
725
729
  export type CreatePrompt2PromptsFile = {
726
730
  /**
727
- * The base64 encoded file data, used when passing the file to the model as a string.
731
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
728
732
  */
729
733
  fileData: string;
730
734
  /**
@@ -279,7 +279,7 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType =
279
279
 
280
280
  export type DeploymentCreateMetric2File = {
281
281
  /**
282
- * The base64 encoded file data, used when passing the file to the model as a string.
282
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
283
283
  */
284
284
  fileData: string;
285
285
  /**
@@ -722,7 +722,7 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3C
722
722
 
723
723
  export type DeploymentCreateMetric2DeploymentsMetricsFile = {
724
724
  /**
725
- * The base64 encoded file data, used when passing the file to the model as a string.
725
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
726
726
  */
727
727
  fileData: string;
728
728
  /**
@@ -228,7 +228,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
228
228
 
229
229
  export type FileT = {
230
230
  /**
231
- * The base64 encoded file data, used when passing the file to the model as a string.
231
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
232
232
  */
233
233
  fileData: string;
234
234
  /**
@@ -633,7 +633,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Ty
633
633
 
634
634
  export type TwoFile = {
635
635
  /**
636
- * The base64 encoded file data, used when passing the file to the model as a string.
636
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
637
637
  */
638
638
  fileData: string;
639
639
  /**
@@ -1281,7 +1281,7 @@ export type DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType =
1281
1281
 
1282
1282
  export type DeploymentGetConfig2File = {
1283
1283
  /**
1284
- * The base64 encoded file data, used when passing the file to the model as a string.
1284
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1285
1285
  */
1286
1286
  fileData: string;
1287
1287
  /**
@@ -51,6 +51,8 @@ export const DeploymentInvokeProvider = {
51
51
  Togetherai: "togetherai",
52
52
  Elevenlabs: "elevenlabs",
53
53
  Litellm: "litellm",
54
+ Openailike: "openailike",
55
+ Cerebras: "cerebras",
54
56
  } as const;
55
57
  /**
56
58
  * The provider used to generate the response
@@ -317,6 +317,8 @@ export const DeploymentsProvider = {
317
317
  Togetherai: "togetherai",
318
318
  Elevenlabs: "elevenlabs",
319
319
  Litellm: "litellm",
320
+ Openailike: "openailike",
321
+ Cerebras: "cerebras",
320
322
  } as const;
321
323
  export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
322
324
 
@@ -353,7 +355,7 @@ export type Deployments2DeploymentsType = ClosedEnum<
353
355
 
354
356
  export type Deployments2File = {
355
357
  /**
356
- * The base64 encoded file data, used when passing the file to the model as a string.
358
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
357
359
  */
358
360
  fileData: string;
359
361
  /**
@@ -251,7 +251,7 @@ export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
251
251
 
252
252
  export type DeploymentStream2File = {
253
253
  /**
254
- * The base64 encoded file data, used when passing the file to the model as a string.
254
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
255
255
  */
256
256
  fileData: string;
257
257
  /**
@@ -689,7 +689,7 @@ export type DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type
689
689
 
690
690
  export type DeploymentStream2DeploymentsFile = {
691
691
  /**
692
- * The base64 encoded file data, used when passing the file to the model as a string.
692
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
693
693
  */
694
694
  fileData: string;
695
695
  /**
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-07-08T10:06:08.258Z",
149
+ "2025-07-25T12:14:16.790Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-07-08T10:06:08.258Z"))
183
+ created: z.date().default(() => new Date("2025-07-25T12:14:16.790Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-07-08T10:06:08.258Z",
199
+ "2025-07-25T12:14:16.790Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
230
230
  bytes: z.number(),
231
231
  fileName: z.string(),
232
232
  workspaceId: z.string(),
233
- created: z.date().default(() => new Date("2025-07-08T10:06:08.258Z"))
233
+ created: z.date().default(() => new Date("2025-07-25T12:14:16.790Z"))
234
234
  .transform(v => v.toISOString()),
235
235
  }).transform((v) => {
236
236
  return remap$(v, {
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
250
250
  file_name: z.string(),
251
251
  workspace_id: z.string(),
252
252
  created: z.string().datetime({ offset: true }).default(
253
- "2025-07-08T10:06:08.258Z",
253
+ "2025-07-25T12:14:16.790Z",
254
254
  ).transform(v => new Date(v)),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
284
284
  bytes: z.number(),
285
285
  fileName: z.string(),
286
286
  workspaceId: z.string(),
287
- created: z.date().default(() => new Date("2025-07-08T10:06:08.258Z"))
287
+ created: z.date().default(() => new Date("2025-07-25T12:14:16.790Z"))
288
288
  .transform(v => v.toISOString()),
289
289
  }).transform((v) => {
290
290
  return remap$(v, {
@@ -261,6 +261,8 @@ export const GetAllPromptsProvider = {
261
261
  Togetherai: "togetherai",
262
262
  Elevenlabs: "elevenlabs",
263
263
  Litellm: "litellm",
264
+ Openailike: "openailike",
265
+ Cerebras: "cerebras",
264
266
  } as const;
265
267
  export type GetAllPromptsProvider = ClosedEnum<typeof GetAllPromptsProvider>;
266
268
 
@@ -297,7 +299,7 @@ export type GetAllPrompts2PromptsResponseType = ClosedEnum<
297
299
 
298
300
  export type GetAllPrompts2File = {
299
301
  /**
300
- * The base64 encoded file data, used when passing the file to the model as a string.
302
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
301
303
  */
302
304
  fileData: string;
303
305
  /**