@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.
- package/README.md +93 -91
- package/bin/mcp-server.js +1983 -1375
- package/bin/mcp-server.js.map +50 -47
- package/docs/sdks/{knowledgebases → chunking}/README.md +10 -10
- package/docs/sdks/knowledge/README.md +77 -0
- package/examples/README.md +5 -0
- package/examples/contactsCreate.example.ts +2 -0
- package/examples/package-lock.json +2 -2
- package/funcs/{knowledgeBasesChunkText.d.ts → chunkingParse.d.ts} +3 -3
- package/funcs/chunkingParse.d.ts.map +1 -0
- package/funcs/{knowledgeBasesChunkText.js → chunkingParse.js} +8 -8
- package/funcs/chunkingParse.js.map +1 -0
- package/funcs/knowledgeCreate.d.ts +14 -0
- package/funcs/knowledgeCreate.d.ts.map +1 -0
- package/funcs/knowledgeCreate.js +111 -0
- package/funcs/knowledgeCreate.js.map +1 -0
- 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/event-streams.d.ts +1 -1
- package/lib/event-streams.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/chunkingParse.d.ts +8 -0
- package/mcp-server/tools/chunkingParse.d.ts.map +1 -0
- package/mcp-server/tools/{knowledgeBasesChunkText.js → chunkingParse.js} +8 -8
- package/mcp-server/tools/chunkingParse.js.map +1 -0
- package/mcp-server/tools/knowledgeCreate.d.ts +8 -0
- package/mcp-server/tools/knowledgeCreate.d.ts.map +1 -0
- package/mcp-server/tools/knowledgeCreate.js +62 -0
- package/mcp-server/tools/knowledgeCreate.js.map +1 -0
- package/models/components/deployments.d.ts +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/createknowledge.d.ts +426 -0
- package/models/operations/createknowledge.d.ts.map +1 -0
- package/models/operations/createknowledge.js +431 -0
- package/models/operations/createknowledge.js.map +1 -0
- package/models/operations/createprompt.d.ts +14 -2
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +4 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +2 -2
- package/models/operations/deploymentgetconfig.d.ts +3 -3
- package/models/operations/deploymentinvoke.d.ts +6 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +2 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +7 -1
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +7 -1
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +525 -4
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +582 -36
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +7 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +7 -1
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +2 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +5 -5
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +4 -4
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +7 -1
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/{chunktext.d.ts → parse.d.ts} +83 -83
- package/models/operations/parse.d.ts.map +1 -0
- package/models/operations/{chunktext.js → parse.js} +113 -117
- package/models/operations/parse.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +1 -1
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +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 +16 -16
- package/models/operations/updateknowledge.d.ts +106 -106
- package/models/operations/updateknowledge.d.ts.map +1 -1
- package/models/operations/updateknowledge.js +125 -129
- package/models/operations/updateknowledge.js.map +1 -1
- package/models/operations/updateprompt.d.ts +14 -2
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +2 -2
- package/sdk/{knowledgebases.d.ts → chunking.d.ts} +4 -4
- package/sdk/chunking.d.ts.map +1 -0
- package/sdk/{knowledgebases.js → chunking.js} +8 -8
- package/sdk/chunking.js.map +1 -0
- package/sdk/knowledge.d.ts +4 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +7 -0
- package/sdk/knowledge.js.map +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/{knowledgeBasesChunkText.ts → chunkingParse.ts} +11 -11
- package/src/funcs/knowledgeCreate.ts +158 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -3
- package/src/mcp-server/tools/{knowledgeBasesChunkText.ts → chunkingParse.ts} +6 -6
- package/src/mcp-server/tools/knowledgeCreate.ts +35 -0
- package/src/models/components/deployments.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 +4 -4
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createknowledge.ts +846 -0
- package/src/models/operations/createprompt.ts +6 -2
- package/src/models/operations/deploymentcreatemetric.ts +2 -2
- package/src/models/operations/deploymentgetconfig.ts +3 -3
- package/src/models/operations/deploymentinvoke.ts +2 -0
- package/src/models/operations/deployments.ts +3 -1
- package/src/models/operations/deploymentstream.ts +2 -2
- 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/getallprompts.ts +3 -1
- package/src/models/operations/getevals.ts +1159 -32
- package/src/models/operations/getoneprompt.ts +3 -1
- package/src/models/operations/getpromptversion.ts +3 -1
- package/src/models/operations/index.ts +2 -1
- package/src/models/operations/invokeeval.ts +9 -9
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +3 -3
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +3 -1
- package/src/models/operations/{chunktext.ts → parse.ts} +164 -183
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +3 -3
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateknowledge.ts +266 -206
- package/src/models/operations/updateprompt.ts +6 -2
- package/src/sdk/{knowledgebases.ts → chunking.ts} +7 -7
- package/src/sdk/knowledge.ts +15 -0
- package/src/sdk/sdk.ts +4 -4
- package/funcs/knowledgeBasesChunkText.d.ts.map +0 -1
- package/funcs/knowledgeBasesChunkText.js.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts +0 -8
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.js.map +0 -1
- package/models/operations/chunktext.d.ts.map +0 -1
- package/models/operations/chunktext.js.map +0 -1
- package/sdk/knowledgebases.d.ts.map +0 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
/**
|
|
@@ -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
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
/**
|