@orq-ai/node 3.4.0-rc.29 → 3.4.0-rc.31
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 +72 -82
- package/bin/mcp-server.js.map +27 -27
- package/docs/sdks/knowledge/README.md +22 -0
- 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/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createchunk.d.ts +15 -43
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +18 -46
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +6 -6
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updatetool.js +6 -6
- package/package.json +1 -1
- 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/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createchunk.ts +31 -89
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updatetool.ts +6 -6
|
@@ -153,7 +153,7 @@ exports.ListDatasetsData$inboundSchema = z.object({
|
|
|
153
153
|
metadata: z.lazy(() => exports.ListDatasetsMetadata$inboundSchema),
|
|
154
154
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
155
155
|
.optional(),
|
|
156
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
156
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-16T14:25:19.566Z").transform(v => new Date(v)),
|
|
157
157
|
}).transform((v) => {
|
|
158
158
|
return (0, primitives_js_1.remap)(v, {
|
|
159
159
|
"_id": "id",
|
|
@@ -174,7 +174,7 @@ exports.ListDatasetsData$outboundSchema = z.object({
|
|
|
174
174
|
updatedById: z.string().optional(),
|
|
175
175
|
metadata: z.lazy(() => exports.ListDatasetsMetadata$outboundSchema),
|
|
176
176
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
177
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
177
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
178
178
|
.transform(v => v.toISOString()),
|
|
179
179
|
}).transform((v) => {
|
|
180
180
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -159,7 +159,7 @@ var ListDatasourcesStatus$;
|
|
|
159
159
|
})(ListDatasourcesStatus$ || (exports.ListDatasourcesStatus$ = ListDatasourcesStatus$ = {}));
|
|
160
160
|
/** @internal */
|
|
161
161
|
exports.ListDatasourcesData$inboundSchema = z.object({
|
|
162
|
-
_id: z.string().default("
|
|
162
|
+
_id: z.string().default("01JRZFV2YEE0ESTEBENQ58CMCE"),
|
|
163
163
|
display_name: z.string(),
|
|
164
164
|
description: z.string().optional(),
|
|
165
165
|
status: exports.ListDatasourcesStatus$inboundSchema,
|
|
@@ -183,7 +183,7 @@ exports.ListDatasourcesData$inboundSchema = z.object({
|
|
|
183
183
|
});
|
|
184
184
|
/** @internal */
|
|
185
185
|
exports.ListDatasourcesData$outboundSchema = z.object({
|
|
186
|
-
id: z.string().default("
|
|
186
|
+
id: z.string().default("01JRZFV2YEE0ESTEBENQ58CMCE"),
|
|
187
187
|
displayName: z.string(),
|
|
188
188
|
description: z.string().optional(),
|
|
189
189
|
status: exports.ListDatasourcesStatus$outboundSchema,
|
|
@@ -452,7 +452,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
452
452
|
updated_by_id: z.string().optional(),
|
|
453
453
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
454
454
|
.optional(),
|
|
455
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
455
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-16T14:25:19.566Z").transform(v => new Date(v)),
|
|
456
456
|
}).transform((v) => {
|
|
457
457
|
return (0, primitives_js_1.remap)(v, {
|
|
458
458
|
"_id": "id",
|
|
@@ -475,7 +475,7 @@ exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
|
|
|
475
475
|
createdById: z.string().optional(),
|
|
476
476
|
updatedById: z.string().optional(),
|
|
477
477
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
478
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
478
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
479
479
|
.transform(v => v.toISOString()),
|
|
480
480
|
}).transform((v) => {
|
|
481
481
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -127,7 +127,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
127
127
|
metadata: z.lazy(() => exports.RetrieveDatasetMetadata$inboundSchema),
|
|
128
128
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
129
129
|
.optional(),
|
|
130
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
130
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-16T14:25:19.566Z").transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return (0, primitives_js_1.remap)(v, {
|
|
133
133
|
"_id": "id",
|
|
@@ -148,7 +148,7 @@ exports.RetrieveDatasetResponseBody$outboundSchema = z.object({
|
|
|
148
148
|
updatedById: z.string().optional(),
|
|
149
149
|
metadata: z.lazy(() => exports.RetrieveDatasetMetadata$outboundSchema),
|
|
150
150
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
151
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
151
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
152
152
|
.transform(v => v.toISOString()),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -105,7 +105,7 @@ var RetrieveDatasourceStatus$;
|
|
|
105
105
|
})(RetrieveDatasourceStatus$ || (exports.RetrieveDatasourceStatus$ = RetrieveDatasourceStatus$ = {}));
|
|
106
106
|
/** @internal */
|
|
107
107
|
exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
108
|
-
_id: z.string().default("
|
|
108
|
+
_id: z.string().default("01JRZFV2YFAZ05WXAA9JQBSD3T"),
|
|
109
109
|
display_name: z.string(),
|
|
110
110
|
description: z.string().optional(),
|
|
111
111
|
status: exports.RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -129,7 +129,7 @@ exports.RetrieveDatasourceResponseBody$inboundSchema = z.object({
|
|
|
129
129
|
});
|
|
130
130
|
/** @internal */
|
|
131
131
|
exports.RetrieveDatasourceResponseBody$outboundSchema = z.object({
|
|
132
|
-
id: z.string().default("
|
|
132
|
+
id: z.string().default("01JRZFV2YFAZ05WXAA9JQBSD3T"),
|
|
133
133
|
displayName: z.string(),
|
|
134
134
|
description: z.string().optional(),
|
|
135
135
|
status: exports.RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -334,7 +334,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
334
334
|
}
|
|
335
335
|
/** @internal */
|
|
336
336
|
exports.RetrieveToolResponseBody3$inboundSchema = z.object({
|
|
337
|
-
_id: z.string().default("
|
|
337
|
+
_id: z.string().default("tool_01JRZFV2X8ZHJJK1YYC2FBR99S"),
|
|
338
338
|
path: z.string(),
|
|
339
339
|
key: z.string(),
|
|
340
340
|
description: z.string(),
|
|
@@ -360,7 +360,7 @@ exports.RetrieveToolResponseBody3$inboundSchema = z.object({
|
|
|
360
360
|
});
|
|
361
361
|
/** @internal */
|
|
362
362
|
exports.RetrieveToolResponseBody3$outboundSchema = z.object({
|
|
363
|
-
id: z.string().default("
|
|
363
|
+
id: z.string().default("tool_01JRZFV2X8ZHJJK1YYC2FBR99S"),
|
|
364
364
|
path: z.string(),
|
|
365
365
|
key: z.string(),
|
|
366
366
|
description: z.string(),
|
|
@@ -464,7 +464,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
464
464
|
}
|
|
465
465
|
/** @internal */
|
|
466
466
|
exports.RetrieveToolResponseBody2$inboundSchema = z.object({
|
|
467
|
-
_id: z.string().default("
|
|
467
|
+
_id: z.string().default("tool_01JRZFV2X7KCEE5EKP8FKKDJCA"),
|
|
468
468
|
path: z.string(),
|
|
469
469
|
key: z.string(),
|
|
470
470
|
description: z.string(),
|
|
@@ -491,7 +491,7 @@ exports.RetrieveToolResponseBody2$inboundSchema = z.object({
|
|
|
491
491
|
});
|
|
492
492
|
/** @internal */
|
|
493
493
|
exports.RetrieveToolResponseBody2$outboundSchema = z.object({
|
|
494
|
-
id: z.string().default("
|
|
494
|
+
id: z.string().default("tool_01JRZFV2X7KCEE5EKP8FKKDJCA"),
|
|
495
495
|
path: z.string(),
|
|
496
496
|
key: z.string(),
|
|
497
497
|
description: z.string(),
|
|
@@ -596,7 +596,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
596
596
|
}
|
|
597
597
|
/** @internal */
|
|
598
598
|
exports.RetrieveToolResponseBody1$inboundSchema = z.object({
|
|
599
|
-
_id: z.string().default("
|
|
599
|
+
_id: z.string().default("tool_01JRZFV2X7WXPGF4SFZC6NP1XX"),
|
|
600
600
|
path: z.string(),
|
|
601
601
|
key: z.string(),
|
|
602
602
|
description: z.string(),
|
|
@@ -622,7 +622,7 @@ exports.RetrieveToolResponseBody1$inboundSchema = z.object({
|
|
|
622
622
|
});
|
|
623
623
|
/** @internal */
|
|
624
624
|
exports.RetrieveToolResponseBody1$outboundSchema = z.object({
|
|
625
|
-
id: z.string().default("
|
|
625
|
+
id: z.string().default("tool_01JRZFV2X7WXPGF4SFZC6NP1XX"),
|
|
626
626
|
path: z.string(),
|
|
627
627
|
key: z.string(),
|
|
628
628
|
description: z.string(),
|
|
@@ -855,7 +855,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
855
855
|
updated_by_id: z.string().optional(),
|
|
856
856
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
857
857
|
.optional(),
|
|
858
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
858
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-16T14:25:19.566Z").transform(v => new Date(v)),
|
|
859
859
|
}).transform((v) => {
|
|
860
860
|
return (0, primitives_js_1.remap)(v, {
|
|
861
861
|
"_id": "id",
|
|
@@ -877,7 +877,7 @@ exports.UpdateDatapointResponseBody$outboundSchema = z.object({
|
|
|
877
877
|
createdById: z.string().optional(),
|
|
878
878
|
updatedById: z.string().optional(),
|
|
879
879
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
880
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
880
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
881
881
|
.transform(v => v.toISOString()),
|
|
882
882
|
}).transform((v) => {
|
|
883
883
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -174,7 +174,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
174
174
|
version: z.string().optional(),
|
|
175
175
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
176
176
|
.optional(),
|
|
177
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
177
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-16T14:25:19.566Z").transform(v => new Date(v)),
|
|
178
178
|
}).transform((v) => {
|
|
179
179
|
return (0, primitives_js_1.remap)(v, {
|
|
180
180
|
"_id": "id",
|
|
@@ -198,7 +198,7 @@ exports.UpdateDatasetResponseBody$outboundSchema = z.object({
|
|
|
198
198
|
parentId: z.string().optional(),
|
|
199
199
|
version: z.string().optional(),
|
|
200
200
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
201
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
201
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
202
202
|
.transform(v => v.toISOString()),
|
|
203
203
|
}).transform((v) => {
|
|
204
204
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -144,7 +144,7 @@ var UpdateDatasourceStatus$;
|
|
|
144
144
|
})(UpdateDatasourceStatus$ || (exports.UpdateDatasourceStatus$ = UpdateDatasourceStatus$ = {}));
|
|
145
145
|
/** @internal */
|
|
146
146
|
exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
147
|
-
_id: z.string().default("
|
|
147
|
+
_id: z.string().default("01JRZFV2YHYE4S0Z0NE3DPJ26S"),
|
|
148
148
|
display_name: z.string(),
|
|
149
149
|
description: z.string().optional(),
|
|
150
150
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -168,7 +168,7 @@ exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
|
168
168
|
});
|
|
169
169
|
/** @internal */
|
|
170
170
|
exports.UpdateDatasourceResponseBody$outboundSchema = z.object({
|
|
171
|
-
id: z.string().default("
|
|
171
|
+
id: z.string().default("01JRZFV2YHYE4S0Z0NE3DPJ26S"),
|
|
172
172
|
displayName: z.string(),
|
|
173
173
|
description: z.string().optional(),
|
|
174
174
|
status: exports.UpdateDatasourceStatus$outboundSchema,
|
|
@@ -889,7 +889,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
889
889
|
}
|
|
890
890
|
/** @internal */
|
|
891
891
|
exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
892
|
-
_id: z.string().default("
|
|
892
|
+
_id: z.string().default("tool_01JRZFV2X5MS3ZAXRJ1C62Q7RK"),
|
|
893
893
|
path: z.string(),
|
|
894
894
|
key: z.string(),
|
|
895
895
|
description: z.string(),
|
|
@@ -915,7 +915,7 @@ exports.UpdateToolResponseBody3$inboundSchema = z.object({
|
|
|
915
915
|
});
|
|
916
916
|
/** @internal */
|
|
917
917
|
exports.UpdateToolResponseBody3$outboundSchema = z.object({
|
|
918
|
-
id: z.string().default("
|
|
918
|
+
id: z.string().default("tool_01JRZFV2X5MS3ZAXRJ1C62Q7RK"),
|
|
919
919
|
path: z.string(),
|
|
920
920
|
key: z.string(),
|
|
921
921
|
description: z.string(),
|
|
@@ -1019,7 +1019,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
/** @internal */
|
|
1021
1021
|
exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
1022
|
-
_id: z.string().default("
|
|
1022
|
+
_id: z.string().default("tool_01JRZFV2X45750Z5CQ8Y4N720B"),
|
|
1023
1023
|
path: z.string(),
|
|
1024
1024
|
key: z.string(),
|
|
1025
1025
|
description: z.string(),
|
|
@@ -1046,7 +1046,7 @@ exports.UpdateToolResponseBody2$inboundSchema = z.object({
|
|
|
1046
1046
|
});
|
|
1047
1047
|
/** @internal */
|
|
1048
1048
|
exports.UpdateToolResponseBody2$outboundSchema = z.object({
|
|
1049
|
-
id: z.string().default("
|
|
1049
|
+
id: z.string().default("tool_01JRZFV2X45750Z5CQ8Y4N720B"),
|
|
1050
1050
|
path: z.string(),
|
|
1051
1051
|
key: z.string(),
|
|
1052
1052
|
description: z.string(),
|
|
@@ -1151,7 +1151,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
/** @internal */
|
|
1153
1153
|
exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
1154
|
-
_id: z.string().default("
|
|
1154
|
+
_id: z.string().default("tool_01JRZFV2X3GQR59WWSFH7XWY7P"),
|
|
1155
1155
|
path: z.string(),
|
|
1156
1156
|
key: z.string(),
|
|
1157
1157
|
description: z.string(),
|
|
@@ -1177,7 +1177,7 @@ exports.UpdateToolResponseBody1$inboundSchema = z.object({
|
|
|
1177
1177
|
});
|
|
1178
1178
|
/** @internal */
|
|
1179
1179
|
exports.UpdateToolResponseBody1$outboundSchema = z.object({
|
|
1180
|
-
id: z.string().default("
|
|
1180
|
+
id: z.string().default("tool_01JRZFV2X3GQR59WWSFH7XWY7P"),
|
|
1181
1181
|
path: z.string(),
|
|
1182
1182
|
key: z.string(),
|
|
1183
1183
|
description: z.string(),
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "2.0",
|
|
67
|
-
sdkVersion: "3.4.0-rc.
|
|
67
|
+
sdkVersion: "3.4.0-rc.31",
|
|
68
68
|
genVersion: "2.578.0",
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.4.0-rc.
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 3.4.0-rc.31 2.578.0 2.0 @orq-ai/node",
|
|
70
70
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -1731,7 +1731,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
1731
1731
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1732
1732
|
.optional(),
|
|
1733
1733
|
updated: z.string().datetime({ offset: true }).default(
|
|
1734
|
-
"2025-04-
|
|
1734
|
+
"2025-04-16T14:25:19.566Z",
|
|
1735
1735
|
).transform(v => new Date(v)),
|
|
1736
1736
|
}).transform((v) => {
|
|
1737
1737
|
return remap$(v, {
|
|
@@ -1775,7 +1775,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
1775
1775
|
createdById: z.string().optional(),
|
|
1776
1776
|
updatedById: z.string().optional(),
|
|
1777
1777
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1778
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
1778
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
1779
1779
|
.transform(v => v.toISOString()),
|
|
1780
1780
|
}).transform((v) => {
|
|
1781
1781
|
return remap$(v, {
|
|
@@ -19,7 +19,7 @@ export type CreateChunkMetadata = {
|
|
|
19
19
|
pageNumber?: number | undefined;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export type
|
|
22
|
+
export type RequestBody = {
|
|
23
23
|
/**
|
|
24
24
|
* The text content of the chunk
|
|
25
25
|
*/
|
|
@@ -34,13 +34,6 @@ export type Chunks = {
|
|
|
34
34
|
metadata?: CreateChunkMetadata | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export type CreateChunkRequestBody = {
|
|
38
|
-
/**
|
|
39
|
-
* Array of chunks to create. Maximum of 100 chunks per request.
|
|
40
|
-
*/
|
|
41
|
-
chunks: Array<Chunks>;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
37
|
export type CreateChunkRequest = {
|
|
45
38
|
/**
|
|
46
39
|
* Unique identifier of the knowledge
|
|
@@ -50,7 +43,7 @@ export type CreateChunkRequest = {
|
|
|
50
43
|
* Unique identifier of the datasource
|
|
51
44
|
*/
|
|
52
45
|
datasourceId: string;
|
|
53
|
-
requestBody
|
|
46
|
+
requestBody: Array<RequestBody>;
|
|
54
47
|
};
|
|
55
48
|
|
|
56
49
|
/**
|
|
@@ -170,25 +163,28 @@ export function createChunkMetadataFromJSON(
|
|
|
170
163
|
}
|
|
171
164
|
|
|
172
165
|
/** @internal */
|
|
173
|
-
export const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
166
|
+
export const RequestBody$inboundSchema: z.ZodType<
|
|
167
|
+
RequestBody,
|
|
168
|
+
z.ZodTypeDef,
|
|
169
|
+
unknown
|
|
170
|
+
> = z.object({
|
|
171
|
+
text: z.string(),
|
|
172
|
+
embedding: z.array(z.number()).optional(),
|
|
173
|
+
metadata: z.lazy(() => CreateChunkMetadata$inboundSchema).optional(),
|
|
174
|
+
});
|
|
179
175
|
|
|
180
176
|
/** @internal */
|
|
181
|
-
export type
|
|
177
|
+
export type RequestBody$Outbound = {
|
|
182
178
|
text: string;
|
|
183
179
|
embedding?: Array<number> | undefined;
|
|
184
180
|
metadata?: CreateChunkMetadata$Outbound | undefined;
|
|
185
181
|
};
|
|
186
182
|
|
|
187
183
|
/** @internal */
|
|
188
|
-
export const
|
|
189
|
-
|
|
184
|
+
export const RequestBody$outboundSchema: z.ZodType<
|
|
185
|
+
RequestBody$Outbound,
|
|
190
186
|
z.ZodTypeDef,
|
|
191
|
-
|
|
187
|
+
RequestBody
|
|
192
188
|
> = z.object({
|
|
193
189
|
text: z.string(),
|
|
194
190
|
embedding: z.array(z.number()).optional(),
|
|
@@ -199,80 +195,26 @@ export const Chunks$outboundSchema: z.ZodType<
|
|
|
199
195
|
* @internal
|
|
200
196
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
197
|
*/
|
|
202
|
-
export namespace
|
|
203
|
-
/** @deprecated use `
|
|
204
|
-
export const inboundSchema =
|
|
205
|
-
/** @deprecated use `
|
|
206
|
-
export const outboundSchema =
|
|
207
|
-
/** @deprecated use `
|
|
208
|
-
export type Outbound =
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export function chunksToJSON(chunks: Chunks): string {
|
|
212
|
-
return JSON.stringify(Chunks$outboundSchema.parse(chunks));
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export function chunksFromJSON(
|
|
216
|
-
jsonString: string,
|
|
217
|
-
): SafeParseResult<Chunks, SDKValidationError> {
|
|
218
|
-
return safeParse(
|
|
219
|
-
jsonString,
|
|
220
|
-
(x) => Chunks$inboundSchema.parse(JSON.parse(x)),
|
|
221
|
-
`Failed to parse 'Chunks' from JSON`,
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** @internal */
|
|
226
|
-
export const CreateChunkRequestBody$inboundSchema: z.ZodType<
|
|
227
|
-
CreateChunkRequestBody,
|
|
228
|
-
z.ZodTypeDef,
|
|
229
|
-
unknown
|
|
230
|
-
> = z.object({
|
|
231
|
-
chunks: z.array(z.lazy(() => Chunks$inboundSchema)),
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
/** @internal */
|
|
235
|
-
export type CreateChunkRequestBody$Outbound = {
|
|
236
|
-
chunks: Array<Chunks$Outbound>;
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
/** @internal */
|
|
240
|
-
export const CreateChunkRequestBody$outboundSchema: z.ZodType<
|
|
241
|
-
CreateChunkRequestBody$Outbound,
|
|
242
|
-
z.ZodTypeDef,
|
|
243
|
-
CreateChunkRequestBody
|
|
244
|
-
> = z.object({
|
|
245
|
-
chunks: z.array(z.lazy(() => Chunks$outboundSchema)),
|
|
246
|
-
});
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
251
|
-
*/
|
|
252
|
-
export namespace CreateChunkRequestBody$ {
|
|
253
|
-
/** @deprecated use `CreateChunkRequestBody$inboundSchema` instead. */
|
|
254
|
-
export const inboundSchema = CreateChunkRequestBody$inboundSchema;
|
|
255
|
-
/** @deprecated use `CreateChunkRequestBody$outboundSchema` instead. */
|
|
256
|
-
export const outboundSchema = CreateChunkRequestBody$outboundSchema;
|
|
257
|
-
/** @deprecated use `CreateChunkRequestBody$Outbound` instead. */
|
|
258
|
-
export type Outbound = CreateChunkRequestBody$Outbound;
|
|
198
|
+
export namespace RequestBody$ {
|
|
199
|
+
/** @deprecated use `RequestBody$inboundSchema` instead. */
|
|
200
|
+
export const inboundSchema = RequestBody$inboundSchema;
|
|
201
|
+
/** @deprecated use `RequestBody$outboundSchema` instead. */
|
|
202
|
+
export const outboundSchema = RequestBody$outboundSchema;
|
|
203
|
+
/** @deprecated use `RequestBody$Outbound` instead. */
|
|
204
|
+
export type Outbound = RequestBody$Outbound;
|
|
259
205
|
}
|
|
260
206
|
|
|
261
|
-
export function
|
|
262
|
-
|
|
263
|
-
): string {
|
|
264
|
-
return JSON.stringify(
|
|
265
|
-
CreateChunkRequestBody$outboundSchema.parse(createChunkRequestBody),
|
|
266
|
-
);
|
|
207
|
+
export function requestBodyToJSON(requestBody: RequestBody): string {
|
|
208
|
+
return JSON.stringify(RequestBody$outboundSchema.parse(requestBody));
|
|
267
209
|
}
|
|
268
210
|
|
|
269
|
-
export function
|
|
211
|
+
export function requestBodyFromJSON(
|
|
270
212
|
jsonString: string,
|
|
271
|
-
): SafeParseResult<
|
|
213
|
+
): SafeParseResult<RequestBody, SDKValidationError> {
|
|
272
214
|
return safeParse(
|
|
273
215
|
jsonString,
|
|
274
|
-
(x) =>
|
|
275
|
-
`Failed to parse '
|
|
216
|
+
(x) => RequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
217
|
+
`Failed to parse 'RequestBody' from JSON`,
|
|
276
218
|
);
|
|
277
219
|
}
|
|
278
220
|
|
|
@@ -284,7 +226,7 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
|
|
|
284
226
|
> = z.object({
|
|
285
227
|
knowledge_id: z.string(),
|
|
286
228
|
datasource_id: z.string(),
|
|
287
|
-
RequestBody: z.lazy(() =>
|
|
229
|
+
RequestBody: z.array(z.lazy(() => RequestBody$inboundSchema)),
|
|
288
230
|
}).transform((v) => {
|
|
289
231
|
return remap$(v, {
|
|
290
232
|
"knowledge_id": "knowledgeId",
|
|
@@ -297,7 +239,7 @@ export const CreateChunkRequest$inboundSchema: z.ZodType<
|
|
|
297
239
|
export type CreateChunkRequest$Outbound = {
|
|
298
240
|
knowledge_id: string;
|
|
299
241
|
datasource_id: string;
|
|
300
|
-
RequestBody
|
|
242
|
+
RequestBody: Array<RequestBody$Outbound>;
|
|
301
243
|
};
|
|
302
244
|
|
|
303
245
|
/** @internal */
|
|
@@ -308,7 +250,7 @@ export const CreateChunkRequest$outboundSchema: z.ZodType<
|
|
|
308
250
|
> = z.object({
|
|
309
251
|
knowledgeId: z.string(),
|
|
310
252
|
datasourceId: z.string(),
|
|
311
|
-
requestBody: z.lazy(() =>
|
|
253
|
+
requestBody: z.array(z.lazy(() => RequestBody$outboundSchema)),
|
|
312
254
|
}).transform((v) => {
|
|
313
255
|
return remap$(v, {
|
|
314
256
|
knowledgeId: "knowledge_id",
|
|
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
177
177
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
178
178
|
.optional(),
|
|
179
179
|
updated: z.string().datetime({ offset: true }).default(
|
|
180
|
-
"2025-04-
|
|
180
|
+
"2025-04-16T14:25:19.566Z",
|
|
181
181
|
).transform(v => new Date(v)),
|
|
182
182
|
}).transform((v) => {
|
|
183
183
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
214
214
|
tags: z.array(z.string()).optional(),
|
|
215
215
|
metadata: z.record(z.any()).optional(),
|
|
216
216
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
217
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
217
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
218
218
|
.transform(v => v.toISOString()),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-04-
|
|
214
|
+
"2025-04-16T14:25:19.566Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -1649,7 +1649,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
1649
1649
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1650
1650
|
.optional(),
|
|
1651
1651
|
updated: z.string().datetime({ offset: true }).default(
|
|
1652
|
-
"2025-04-
|
|
1652
|
+
"2025-04-16T14:25:19.566Z",
|
|
1653
1653
|
).transform(v => new Date(v)),
|
|
1654
1654
|
}).transform((v) => {
|
|
1655
1655
|
return remap$(v, {
|
|
@@ -1693,7 +1693,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
1693
1693
|
createdById: z.string().optional(),
|
|
1694
1694
|
updatedById: z.string().optional(),
|
|
1695
1695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1696
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
1696
|
+
updated: z.date().default(() => new Date("2025-04-16T14:25:19.566Z"))
|
|
1697
1697
|
.transform(v => v.toISOString()),
|
|
1698
1698
|
}).transform((v) => {
|
|
1699
1699
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01JRZFV2YGB0QQ2Z3AVQEVEM4E"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01JRZFV2YGB0QQ2Z3AVQEVEM4E"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -1710,7 +1710,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
1710
1710
|
z.ZodTypeDef,
|
|
1711
1711
|
unknown
|
|
1712
1712
|
> = z.object({
|
|
1713
|
-
_id: z.string().default("
|
|
1713
|
+
_id: z.string().default("tool_01JRZFV2X139ZVHNYV22EEDCHZ"),
|
|
1714
1714
|
path: z.string(),
|
|
1715
1715
|
key: z.string(),
|
|
1716
1716
|
description: z.string(),
|
|
@@ -1759,7 +1759,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
|
|
|
1759
1759
|
z.ZodTypeDef,
|
|
1760
1760
|
ResponseBody3
|
|
1761
1761
|
> = z.object({
|
|
1762
|
-
id: z.string().default("
|
|
1762
|
+
id: z.string().default("tool_01JRZFV2X139ZVHNYV22EEDCHZ"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
description: z.string(),
|
|
@@ -1922,7 +1922,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
1922
1922
|
z.ZodTypeDef,
|
|
1923
1923
|
unknown
|
|
1924
1924
|
> = z.object({
|
|
1925
|
-
_id: z.string().default("
|
|
1925
|
+
_id: z.string().default("tool_01JRZFV2X0TQSKN6BV52C960HC"),
|
|
1926
1926
|
path: z.string(),
|
|
1927
1927
|
key: z.string(),
|
|
1928
1928
|
description: z.string(),
|
|
@@ -1972,7 +1972,7 @@ export const ResponseBody2$outboundSchema: z.ZodType<
|
|
|
1972
1972
|
z.ZodTypeDef,
|
|
1973
1973
|
ResponseBody2
|
|
1974
1974
|
> = z.object({
|
|
1975
|
-
id: z.string().default("
|
|
1975
|
+
id: z.string().default("tool_01JRZFV2X0TQSKN6BV52C960HC"),
|
|
1976
1976
|
path: z.string(),
|
|
1977
1977
|
key: z.string(),
|
|
1978
1978
|
description: z.string(),
|
|
@@ -2136,7 +2136,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
|
|
|
2136
2136
|
z.ZodTypeDef,
|
|
2137
2137
|
unknown
|
|
2138
2138
|
> = z.object({
|
|
2139
|
-
_id: z.string().default("
|
|
2139
|
+
_id: z.string().default("tool_01JRZFV2X0EEZSZ80ZRM6D2D3V"),
|
|
2140
2140
|
path: z.string(),
|
|
2141
2141
|
key: z.string(),
|
|
2142
2142
|
description: z.string(),
|
|
@@ -2185,7 +2185,7 @@ export const ResponseBody1$outboundSchema: z.ZodType<
|
|
|
2185
2185
|
z.ZodTypeDef,
|
|
2186
2186
|
ResponseBody1
|
|
2187
2187
|
> = z.object({
|
|
2188
|
-
id: z.string().default("
|
|
2188
|
+
id: z.string().default("tool_01JRZFV2X0EEZSZ80ZRM6D2D3V"),
|
|
2189
2189
|
path: z.string(),
|
|
2190
2190
|
key: z.string(),
|
|
2191
2191
|
description: z.string(),
|
|
@@ -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-04-
|
|
149
|
+
"2025-04-16T14:25:22.177Z",
|
|
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-04-
|
|
183
|
+
created: z.date().default(() => new Date("2025-04-16T14:25:22.177Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|