@orq-ai/node 3.13.7 → 3.13.9
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 +215 -229
- package/bin/mcp-server.js.map +44 -44
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/deployments.d.ts +0 -6
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +0 -2
- package/models/components/deployments.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.d.ts +0 -6
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +2 -4
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/deploymentcreatemetric.d.ts +0 -6
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +0 -2
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +0 -6
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +0 -2
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +0 -6
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +0 -2
- package/models/operations/deploymentstream.js.map +1 -1
- 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/getagent.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/listagents.js +2 -2
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +0 -3
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -3
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- 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.d.ts +0 -3
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +2 -3
- package/models/operations/retrievedatapoint.js.map +1 -1
- 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.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +0 -6
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +2 -4
- package/models/operations/updatedatapoint.js.map +1 -1
- 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/knowledge/README.md +6 -0
- 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/lib/config.ts +2 -2
- 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/models/components/deployments.ts +0 -2
- 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 +9 -3
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -10
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +236 -201
- package/packages/orq-rc/src/models/operations/createknowledge.ts +1231 -275
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +7 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +7 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +192 -116
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -2
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -2
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +45 -15
- 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/getagent.ts +9 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +167 -118
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +157 -143
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +912 -166
- package/packages/orq-rc/src/models/operations/listagents.ts +9 -3
- 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 +8 -9
- 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/listknowledgebases.ts +755 -150
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -9
- 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/retrievetool.ts +45 -15
- package/packages/orq-rc/src/models/operations/runagent.ts +7 -1
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +49 -62
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -1
- 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 +8 -10
- package/packages/orq-rc/src/models/operations/updatedataset.ts +9 -3
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +56 -32
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +1710 -367
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +7 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +7 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +80 -20
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/deployments.ts +0 -2
- 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 -4
- 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/deploymentcreatemetric.ts +0 -2
- package/src/models/operations/deploymentgetconfig.ts +0 -2
- package/src/models/operations/deploymentstream.ts +0 -2
- 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/getagent.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/listagents.ts +2 -2
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -3
- 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 -3
- 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 +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -4
- 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
|
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
127
127
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
128
|
.optional(),
|
|
129
129
|
updated: z.string().datetime({ offset: true }).default(
|
|
130
|
-
"2025-10-
|
|
130
|
+
"2025-10-15T05:20:08.470Z",
|
|
131
131
|
).transform(v => new Date(v)),
|
|
132
132
|
}).transform((v) => {
|
|
133
133
|
return remap$(v, {
|
|
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
165
165
|
tags: z.array(z.string()).optional(),
|
|
166
166
|
metadata: z.record(z.any()).optional(),
|
|
167
167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
168
|
+
updated: z.date().default(() => new Date("2025-10-15T05:20:08.470Z"))
|
|
169
169
|
.transform(v => v.toISOString()),
|
|
170
170
|
}).transform((v) => {
|
|
171
171
|
return remap$(v, {
|
|
@@ -166,7 +166,6 @@ export type RetrieveDatapointMessagesDatasetsContent =
|
|
|
166
166
|
*/
|
|
167
167
|
export const RetrieveDatapointMessagesDatasetsResponse200Role = {
|
|
168
168
|
Assistant: "assistant",
|
|
169
|
-
Exception: "exception",
|
|
170
169
|
} as const;
|
|
171
170
|
/**
|
|
172
171
|
* The role of the messages author, in this case `assistant` or `exception`.
|
|
@@ -3198,7 +3197,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
3198
3197
|
.default("orq"),
|
|
3199
3198
|
reviewed_by_id: z.string(),
|
|
3200
3199
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3201
|
-
"2025-10-
|
|
3200
|
+
"2025-10-15T05:20:16.795Z",
|
|
3202
3201
|
).transform(v => new Date(v)),
|
|
3203
3202
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
3204
3203
|
values: z.array(z.string()),
|
|
@@ -3236,7 +3235,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
3236
3235
|
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
3237
3236
|
.default("orq"),
|
|
3238
3237
|
reviewedById: z.string(),
|
|
3239
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
3238
|
+
reviewedAt: z.date().default(() => new Date("2025-10-15T05:20:16.795Z"))
|
|
3240
3239
|
.transform(v => v.toISOString()),
|
|
3241
3240
|
type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
3242
3241
|
values: z.array(z.string()),
|
|
@@ -3366,7 +3365,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
3366
3365
|
),
|
|
3367
3366
|
reviewed_by_id: z.string(),
|
|
3368
3367
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3369
|
-
"2025-10-
|
|
3368
|
+
"2025-10-15T05:20:16.795Z",
|
|
3370
3369
|
).transform(v => new Date(v)),
|
|
3371
3370
|
type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
|
|
3372
3371
|
value: z.number(),
|
|
@@ -3405,7 +3404,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
3405
3404
|
"orq",
|
|
3406
3405
|
),
|
|
3407
3406
|
reviewedById: z.string(),
|
|
3408
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
3407
|
+
reviewedAt: z.date().default(() => new Date("2025-10-15T05:20:16.795Z"))
|
|
3409
3408
|
.transform(v => v.toISOString()),
|
|
3410
3409
|
type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
|
|
3411
3410
|
value: z.number(),
|
|
@@ -3529,7 +3528,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3529
3528
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
3530
3529
|
reviewed_by_id: z.string(),
|
|
3531
3530
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3532
|
-
"2025-10-
|
|
3531
|
+
"2025-10-15T05:20:16.795Z",
|
|
3533
3532
|
).transform(v => new Date(v)),
|
|
3534
3533
|
type: RetrieveDatapointEvaluationsType$inboundSchema,
|
|
3535
3534
|
value: z.string(),
|
|
@@ -3565,7 +3564,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
3565
3564
|
humanReviewId: z.string(),
|
|
3566
3565
|
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
3567
3566
|
reviewedById: z.string(),
|
|
3568
|
-
reviewedAt: z.date().default(() => new Date("2025-10-
|
|
3567
|
+
reviewedAt: z.date().default(() => new Date("2025-10-15T05:20:16.795Z"))
|
|
3569
3568
|
.transform(v => v.toISOString()),
|
|
3570
3569
|
type: RetrieveDatapointEvaluationsType$outboundSchema,
|
|
3571
3570
|
value: z.string(),
|
|
@@ -3705,7 +3704,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3705
3704
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3706
3705
|
.optional(),
|
|
3707
3706
|
updated: z.string().datetime({ offset: true }).default(
|
|
3708
|
-
"2025-10-
|
|
3707
|
+
"2025-10-15T05:20:08.470Z",
|
|
3709
3708
|
).transform(v => new Date(v)),
|
|
3710
3709
|
}).transform((v) => {
|
|
3711
3710
|
return remap$(v, {
|
|
@@ -3780,7 +3779,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
3780
3779
|
createdById: z.string().optional(),
|
|
3781
3780
|
updatedById: z.string().optional(),
|
|
3782
3781
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3783
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
3782
|
+
updated: z.date().default(() => new Date("2025-10-15T05:20:08.470Z"))
|
|
3784
3783
|
.transform(v => v.toISOString()),
|
|
3785
3784
|
}).transform((v) => {
|
|
3786
3785
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-10-
|
|
204
|
+
"2025-10-15T05:20:08.470Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
createdById: z.string().optional(),
|
|
242
242
|
updatedById: z.string().optional(),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-10-15T05:20:08.470Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01K7K4ZPE5JNJZMFMPNWMTDG5G"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01K7K4ZPE5JNJZMFMPNWMTDG5G"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -60,7 +60,13 @@ export type RetrieveToolResponseBodyCodeTool = {
|
|
|
60
60
|
export type RetrieveToolResponseBody5 = {
|
|
61
61
|
id?: string | undefined;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
*
|
|
67
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
68
|
+
*
|
|
69
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
64
70
|
*/
|
|
65
71
|
path: string;
|
|
66
72
|
/**
|
|
@@ -187,7 +193,13 @@ export type RetrieveToolResponseBodyMcp = {
|
|
|
187
193
|
export type RetrieveToolResponseBody4 = {
|
|
188
194
|
id?: string | undefined;
|
|
189
195
|
/**
|
|
190
|
-
*
|
|
196
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
*
|
|
200
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
201
|
+
*
|
|
202
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
191
203
|
*/
|
|
192
204
|
path: string;
|
|
193
205
|
/**
|
|
@@ -338,7 +350,13 @@ export type RetrieveToolResponseBodyHttp = {
|
|
|
338
350
|
export type RetrieveToolResponseBody3 = {
|
|
339
351
|
id?: string | undefined;
|
|
340
352
|
/**
|
|
341
|
-
*
|
|
353
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
354
|
+
*
|
|
355
|
+
* @remarks
|
|
356
|
+
*
|
|
357
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
358
|
+
*
|
|
359
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
342
360
|
*/
|
|
343
361
|
path: string;
|
|
344
362
|
/**
|
|
@@ -419,7 +437,13 @@ export type RetrieveToolResponseBodyJsonSchema = {
|
|
|
419
437
|
export type RetrieveToolResponseBody2 = {
|
|
420
438
|
id?: string | undefined;
|
|
421
439
|
/**
|
|
422
|
-
*
|
|
440
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
441
|
+
*
|
|
442
|
+
* @remarks
|
|
443
|
+
*
|
|
444
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
445
|
+
*
|
|
446
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
423
447
|
*/
|
|
424
448
|
path: string;
|
|
425
449
|
/**
|
|
@@ -500,7 +524,13 @@ export type RetrieveToolResponseBodyFunction = {
|
|
|
500
524
|
export type RetrieveToolResponseBody1 = {
|
|
501
525
|
id?: string | undefined;
|
|
502
526
|
/**
|
|
503
|
-
*
|
|
527
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
528
|
+
*
|
|
529
|
+
* @remarks
|
|
530
|
+
*
|
|
531
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
532
|
+
*
|
|
533
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
504
534
|
*/
|
|
505
535
|
path: string;
|
|
506
536
|
/**
|
|
@@ -750,7 +780,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
750
780
|
z.ZodTypeDef,
|
|
751
781
|
unknown
|
|
752
782
|
> = z.object({
|
|
753
|
-
_id: z.string().default("
|
|
783
|
+
_id: z.string().default("01K7K4ZPHXHCY7JX9XKKTNVAF4"),
|
|
754
784
|
path: z.string(),
|
|
755
785
|
key: z.string(),
|
|
756
786
|
display_name: z.string(),
|
|
@@ -806,7 +836,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
806
836
|
z.ZodTypeDef,
|
|
807
837
|
RetrieveToolResponseBody5
|
|
808
838
|
> = z.object({
|
|
809
|
-
id: z.string().default("
|
|
839
|
+
id: z.string().default("01K7K4ZPHXHCY7JX9XKKTNVAF4"),
|
|
810
840
|
path: z.string(),
|
|
811
841
|
key: z.string(),
|
|
812
842
|
displayName: z.string(),
|
|
@@ -1190,7 +1220,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1190
1220
|
z.ZodTypeDef,
|
|
1191
1221
|
unknown
|
|
1192
1222
|
> = z.object({
|
|
1193
|
-
_id: z.string().default("
|
|
1223
|
+
_id: z.string().default("01K7K4ZPHWS3V806WXEYWKDM4P"),
|
|
1194
1224
|
path: z.string(),
|
|
1195
1225
|
key: z.string(),
|
|
1196
1226
|
display_name: z.string(),
|
|
@@ -1244,7 +1274,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1244
1274
|
z.ZodTypeDef,
|
|
1245
1275
|
RetrieveToolResponseBody4
|
|
1246
1276
|
> = z.object({
|
|
1247
|
-
id: z.string().default("
|
|
1277
|
+
id: z.string().default("01K7K4ZPHWS3V806WXEYWKDM4P"),
|
|
1248
1278
|
path: z.string(),
|
|
1249
1279
|
key: z.string(),
|
|
1250
1280
|
displayName: z.string(),
|
|
@@ -1670,7 +1700,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1670
1700
|
z.ZodTypeDef,
|
|
1671
1701
|
unknown
|
|
1672
1702
|
> = z.object({
|
|
1673
|
-
_id: z.string().default("
|
|
1703
|
+
_id: z.string().default("01K7K4ZPHW9KDGVAX7AFQNJ709"),
|
|
1674
1704
|
path: z.string(),
|
|
1675
1705
|
key: z.string(),
|
|
1676
1706
|
display_name: z.string(),
|
|
@@ -1724,7 +1754,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1724
1754
|
z.ZodTypeDef,
|
|
1725
1755
|
RetrieveToolResponseBody3
|
|
1726
1756
|
> = z.object({
|
|
1727
|
-
id: z.string().default("
|
|
1757
|
+
id: z.string().default("01K7K4ZPHW9KDGVAX7AFQNJ709"),
|
|
1728
1758
|
path: z.string(),
|
|
1729
1759
|
key: z.string(),
|
|
1730
1760
|
displayName: z.string(),
|
|
@@ -1902,7 +1932,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1902
1932
|
z.ZodTypeDef,
|
|
1903
1933
|
unknown
|
|
1904
1934
|
> = z.object({
|
|
1905
|
-
_id: z.string().default("
|
|
1935
|
+
_id: z.string().default("01K7K4ZPHWGPTAXBJSXQZTV8P1"),
|
|
1906
1936
|
path: z.string(),
|
|
1907
1937
|
key: z.string(),
|
|
1908
1938
|
display_name: z.string(),
|
|
@@ -1955,7 +1985,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1955
1985
|
z.ZodTypeDef,
|
|
1956
1986
|
RetrieveToolResponseBody2
|
|
1957
1987
|
> = z.object({
|
|
1958
|
-
id: z.string().default("
|
|
1988
|
+
id: z.string().default("01K7K4ZPHWGPTAXBJSXQZTV8P1"),
|
|
1959
1989
|
path: z.string(),
|
|
1960
1990
|
key: z.string(),
|
|
1961
1991
|
displayName: z.string(),
|
|
@@ -2127,7 +2157,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2127
2157
|
z.ZodTypeDef,
|
|
2128
2158
|
unknown
|
|
2129
2159
|
> = z.object({
|
|
2130
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("01K7K4ZPHVH0RMT4CA7ZFREGA2"),
|
|
2131
2161
|
path: z.string(),
|
|
2132
2162
|
key: z.string(),
|
|
2133
2163
|
display_name: z.string(),
|
|
@@ -2179,7 +2209,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2179
2209
|
z.ZodTypeDef,
|
|
2180
2210
|
RetrieveToolResponseBody1
|
|
2181
2211
|
> = z.object({
|
|
2182
|
-
id: z.string().default("
|
|
2212
|
+
id: z.string().default("01K7K4ZPHVH0RMT4CA7ZFREGA2"),
|
|
2183
2213
|
path: z.string(),
|
|
2184
2214
|
key: z.string(),
|
|
2185
2215
|
displayName: z.string(),
|
|
@@ -749,7 +749,13 @@ export type RunAgentRequestBody = {
|
|
|
749
749
|
*/
|
|
750
750
|
memory?: RunAgentMemory | undefined;
|
|
751
751
|
/**
|
|
752
|
-
*
|
|
752
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
753
|
+
*
|
|
754
|
+
* @remarks
|
|
755
|
+
*
|
|
756
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
757
|
+
*
|
|
758
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
753
759
|
*/
|
|
754
760
|
path: string;
|
|
755
761
|
/**
|
|
@@ -336,7 +336,7 @@ export type SearchOptions = {
|
|
|
336
336
|
/**
|
|
337
337
|
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
338
338
|
*/
|
|
339
|
-
export type
|
|
339
|
+
export type RerankConfig = {
|
|
340
340
|
/**
|
|
341
341
|
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
|
|
342
342
|
*/
|
|
@@ -354,7 +354,7 @@ export type SearchKnowledgeRerankConfig = {
|
|
|
354
354
|
/**
|
|
355
355
|
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
356
356
|
*/
|
|
357
|
-
export type
|
|
357
|
+
export type AgenticRagConfig = {
|
|
358
358
|
/**
|
|
359
359
|
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
|
|
360
360
|
*/
|
|
@@ -403,11 +403,11 @@ export type SearchKnowledgeRequestBody = {
|
|
|
403
403
|
/**
|
|
404
404
|
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
405
405
|
*/
|
|
406
|
-
rerankConfig?:
|
|
406
|
+
rerankConfig?: RerankConfig | undefined;
|
|
407
407
|
/**
|
|
408
408
|
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
409
409
|
*/
|
|
410
|
-
agenticRagConfig?:
|
|
410
|
+
agenticRagConfig?: AgenticRagConfig | undefined;
|
|
411
411
|
};
|
|
412
412
|
|
|
413
413
|
export type SearchKnowledgeRequest = {
|
|
@@ -3079,8 +3079,8 @@ export function searchOptionsFromJSON(
|
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
3081
|
/** @internal */
|
|
3082
|
-
export const
|
|
3083
|
-
|
|
3082
|
+
export const RerankConfig$inboundSchema: z.ZodType<
|
|
3083
|
+
RerankConfig,
|
|
3084
3084
|
z.ZodTypeDef,
|
|
3085
3085
|
unknown
|
|
3086
3086
|
> = z.object({
|
|
@@ -3094,17 +3094,17 @@ export const SearchKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
|
3094
3094
|
});
|
|
3095
3095
|
|
|
3096
3096
|
/** @internal */
|
|
3097
|
-
export type
|
|
3097
|
+
export type RerankConfig$Outbound = {
|
|
3098
3098
|
model: string;
|
|
3099
3099
|
threshold: number;
|
|
3100
3100
|
top_k: number;
|
|
3101
3101
|
};
|
|
3102
3102
|
|
|
3103
3103
|
/** @internal */
|
|
3104
|
-
export const
|
|
3105
|
-
|
|
3104
|
+
export const RerankConfig$outboundSchema: z.ZodType<
|
|
3105
|
+
RerankConfig$Outbound,
|
|
3106
3106
|
z.ZodTypeDef,
|
|
3107
|
-
|
|
3107
|
+
RerankConfig
|
|
3108
3108
|
> = z.object({
|
|
3109
3109
|
model: z.string(),
|
|
3110
3110
|
threshold: z.number().default(0),
|
|
@@ -3119,38 +3119,32 @@ export const SearchKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
|
3119
3119
|
* @internal
|
|
3120
3120
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3121
3121
|
*/
|
|
3122
|
-
export namespace
|
|
3123
|
-
/** @deprecated use `
|
|
3124
|
-
export const inboundSchema =
|
|
3125
|
-
/** @deprecated use `
|
|
3126
|
-
export const outboundSchema =
|
|
3127
|
-
/** @deprecated use `
|
|
3128
|
-
export type Outbound =
|
|
3122
|
+
export namespace RerankConfig$ {
|
|
3123
|
+
/** @deprecated use `RerankConfig$inboundSchema` instead. */
|
|
3124
|
+
export const inboundSchema = RerankConfig$inboundSchema;
|
|
3125
|
+
/** @deprecated use `RerankConfig$outboundSchema` instead. */
|
|
3126
|
+
export const outboundSchema = RerankConfig$outboundSchema;
|
|
3127
|
+
/** @deprecated use `RerankConfig$Outbound` instead. */
|
|
3128
|
+
export type Outbound = RerankConfig$Outbound;
|
|
3129
3129
|
}
|
|
3130
3130
|
|
|
3131
|
-
export function
|
|
3132
|
-
|
|
3133
|
-
): string {
|
|
3134
|
-
return JSON.stringify(
|
|
3135
|
-
SearchKnowledgeRerankConfig$outboundSchema.parse(
|
|
3136
|
-
searchKnowledgeRerankConfig,
|
|
3137
|
-
),
|
|
3138
|
-
);
|
|
3131
|
+
export function rerankConfigToJSON(rerankConfig: RerankConfig): string {
|
|
3132
|
+
return JSON.stringify(RerankConfig$outboundSchema.parse(rerankConfig));
|
|
3139
3133
|
}
|
|
3140
3134
|
|
|
3141
|
-
export function
|
|
3135
|
+
export function rerankConfigFromJSON(
|
|
3142
3136
|
jsonString: string,
|
|
3143
|
-
): SafeParseResult<
|
|
3137
|
+
): SafeParseResult<RerankConfig, SDKValidationError> {
|
|
3144
3138
|
return safeParse(
|
|
3145
3139
|
jsonString,
|
|
3146
|
-
(x) =>
|
|
3147
|
-
`Failed to parse '
|
|
3140
|
+
(x) => RerankConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3141
|
+
`Failed to parse 'RerankConfig' from JSON`,
|
|
3148
3142
|
);
|
|
3149
3143
|
}
|
|
3150
3144
|
|
|
3151
3145
|
/** @internal */
|
|
3152
|
-
export const
|
|
3153
|
-
|
|
3146
|
+
export const AgenticRagConfig$inboundSchema: z.ZodType<
|
|
3147
|
+
AgenticRagConfig,
|
|
3154
3148
|
z.ZodTypeDef,
|
|
3155
3149
|
unknown
|
|
3156
3150
|
> = z.object({
|
|
@@ -3158,15 +3152,15 @@ export const SearchKnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
|
|
|
3158
3152
|
});
|
|
3159
3153
|
|
|
3160
3154
|
/** @internal */
|
|
3161
|
-
export type
|
|
3155
|
+
export type AgenticRagConfig$Outbound = {
|
|
3162
3156
|
model: string;
|
|
3163
3157
|
};
|
|
3164
3158
|
|
|
3165
3159
|
/** @internal */
|
|
3166
|
-
export const
|
|
3167
|
-
|
|
3160
|
+
export const AgenticRagConfig$outboundSchema: z.ZodType<
|
|
3161
|
+
AgenticRagConfig$Outbound,
|
|
3168
3162
|
z.ZodTypeDef,
|
|
3169
|
-
|
|
3163
|
+
AgenticRagConfig
|
|
3170
3164
|
> = z.object({
|
|
3171
3165
|
model: z.string(),
|
|
3172
3166
|
});
|
|
@@ -3175,32 +3169,30 @@ export const SearchKnowledgeAgenticRagConfig$outboundSchema: z.ZodType<
|
|
|
3175
3169
|
* @internal
|
|
3176
3170
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3177
3171
|
*/
|
|
3178
|
-
export namespace
|
|
3179
|
-
/** @deprecated use `
|
|
3180
|
-
export const inboundSchema =
|
|
3181
|
-
/** @deprecated use `
|
|
3182
|
-
export const outboundSchema =
|
|
3183
|
-
/** @deprecated use `
|
|
3184
|
-
export type Outbound =
|
|
3172
|
+
export namespace AgenticRagConfig$ {
|
|
3173
|
+
/** @deprecated use `AgenticRagConfig$inboundSchema` instead. */
|
|
3174
|
+
export const inboundSchema = AgenticRagConfig$inboundSchema;
|
|
3175
|
+
/** @deprecated use `AgenticRagConfig$outboundSchema` instead. */
|
|
3176
|
+
export const outboundSchema = AgenticRagConfig$outboundSchema;
|
|
3177
|
+
/** @deprecated use `AgenticRagConfig$Outbound` instead. */
|
|
3178
|
+
export type Outbound = AgenticRagConfig$Outbound;
|
|
3185
3179
|
}
|
|
3186
3180
|
|
|
3187
|
-
export function
|
|
3188
|
-
|
|
3181
|
+
export function agenticRagConfigToJSON(
|
|
3182
|
+
agenticRagConfig: AgenticRagConfig,
|
|
3189
3183
|
): string {
|
|
3190
3184
|
return JSON.stringify(
|
|
3191
|
-
|
|
3192
|
-
searchKnowledgeAgenticRagConfig,
|
|
3193
|
-
),
|
|
3185
|
+
AgenticRagConfig$outboundSchema.parse(agenticRagConfig),
|
|
3194
3186
|
);
|
|
3195
3187
|
}
|
|
3196
3188
|
|
|
3197
|
-
export function
|
|
3189
|
+
export function agenticRagConfigFromJSON(
|
|
3198
3190
|
jsonString: string,
|
|
3199
|
-
): SafeParseResult<
|
|
3191
|
+
): SafeParseResult<AgenticRagConfig, SDKValidationError> {
|
|
3200
3192
|
return safeParse(
|
|
3201
3193
|
jsonString,
|
|
3202
|
-
(x) =>
|
|
3203
|
-
`Failed to parse '
|
|
3194
|
+
(x) => AgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3195
|
+
`Failed to parse 'AgenticRagConfig' from JSON`,
|
|
3204
3196
|
);
|
|
3205
3197
|
}
|
|
3206
3198
|
|
|
@@ -3230,11 +3222,8 @@ export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
|
3230
3222
|
])),
|
|
3231
3223
|
]).optional(),
|
|
3232
3224
|
search_options: z.lazy(() => SearchOptions$inboundSchema).optional(),
|
|
3233
|
-
rerank_config: z.lazy(() =>
|
|
3234
|
-
|
|
3235
|
-
agentic_rag_config: z.lazy(() =>
|
|
3236
|
-
SearchKnowledgeAgenticRagConfig$inboundSchema
|
|
3237
|
-
).optional(),
|
|
3225
|
+
rerank_config: z.lazy(() => RerankConfig$inboundSchema).optional(),
|
|
3226
|
+
agentic_rag_config: z.lazy(() => AgenticRagConfig$inboundSchema).optional(),
|
|
3238
3227
|
}).transform((v) => {
|
|
3239
3228
|
return remap$(v, {
|
|
3240
3229
|
"top_k": "topK",
|
|
@@ -3265,8 +3254,8 @@ export type SearchKnowledgeRequestBody$Outbound = {
|
|
|
3265
3254
|
| SearchKnowledge1Exists$Outbound;
|
|
3266
3255
|
} | undefined;
|
|
3267
3256
|
search_options?: SearchOptions$Outbound | undefined;
|
|
3268
|
-
rerank_config?:
|
|
3269
|
-
agentic_rag_config?:
|
|
3257
|
+
rerank_config?: RerankConfig$Outbound | undefined;
|
|
3258
|
+
agentic_rag_config?: AgenticRagConfig$Outbound | undefined;
|
|
3270
3259
|
};
|
|
3271
3260
|
|
|
3272
3261
|
/** @internal */
|
|
@@ -3295,10 +3284,8 @@ export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
|
3295
3284
|
])),
|
|
3296
3285
|
]).optional(),
|
|
3297
3286
|
searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
|
|
3298
|
-
rerankConfig: z.lazy(() =>
|
|
3299
|
-
|
|
3300
|
-
agenticRagConfig: z.lazy(() => SearchKnowledgeAgenticRagConfig$outboundSchema)
|
|
3301
|
-
.optional(),
|
|
3287
|
+
rerankConfig: z.lazy(() => RerankConfig$outboundSchema).optional(),
|
|
3288
|
+
agenticRagConfig: z.lazy(() => AgenticRagConfig$outboundSchema).optional(),
|
|
3302
3289
|
}).transform((v) => {
|
|
3303
3290
|
return remap$(v, {
|
|
3304
3291
|
topK: "top_k",
|
|
@@ -773,7 +773,13 @@ export type StreamRunAgentRequestBody = {
|
|
|
773
773
|
*/
|
|
774
774
|
memory?: StreamRunAgentMemory | undefined;
|
|
775
775
|
/**
|
|
776
|
-
*
|
|
776
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
777
|
+
*
|
|
778
|
+
* @remarks
|
|
779
|
+
*
|
|
780
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
781
|
+
*
|
|
782
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
777
783
|
*/
|
|
778
784
|
path: string;
|
|
779
785
|
/**
|
|
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
538
538
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
539
539
|
.optional(),
|
|
540
540
|
updated: z.string().datetime({ offset: true }).default(
|
|
541
|
-
"2025-10-
|
|
541
|
+
"2025-10-15T05:20:08.470Z",
|
|
542
542
|
).transform(v => new Date(v)),
|
|
543
543
|
}).transform((v) => {
|
|
544
544
|
return remap$(v, {
|
|
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
573
573
|
isActive: z.boolean(),
|
|
574
574
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
575
575
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
576
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
576
|
+
updated: z.date().default(() => new Date("2025-10-15T05:20:08.470Z"))
|
|
577
577
|
.transform(v => v.toISOString()),
|
|
578
578
|
}).transform((v) => {
|
|
579
579
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
245
245
|
.optional(),
|
|
246
246
|
updated: z.string().datetime({ offset: true }).default(
|
|
247
|
-
"2025-10-
|
|
247
|
+
"2025-10-15T05:20:08.470Z",
|
|
248
248
|
).transform(v => new Date(v)),
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return remap$(v, {
|
|
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
282
282
|
tags: z.array(z.string()).optional(),
|
|
283
283
|
metadata: z.record(z.any()).optional(),
|
|
284
284
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
285
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
285
|
+
updated: z.date().default(() => new Date("2025-10-15T05:20:08.470Z"))
|
|
286
286
|
.transform(v => v.toISOString()),
|
|
287
287
|
}).transform((v) => {
|
|
288
288
|
return remap$(v, {
|