@orq-ai/node 3.3.0 → 3.3.2
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 +70 -163
- package/bin/mcp-server.js.map +24 -24
- package/funcs/knowledgeDeleteDatasource.js +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/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createchunk.d.ts +54 -153
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +36 -170
- 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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- 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/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/src/funcs/knowledgeDeleteDatasource.ts +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 +59 -337
- 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/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- 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/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
|
@@ -113,7 +113,7 @@ async function $do(client, request, options) {
|
|
|
113
113
|
return [doResult, { status: "request-error", request: req }];
|
|
114
114
|
}
|
|
115
115
|
const response = doResult.value;
|
|
116
|
-
const [result] = await M.match(M.nil(
|
|
116
|
+
const [result] = await M.match(M.nil(204, z.void()), M.fail("4XX"), M.fail("5XX"))(response);
|
|
117
117
|
if (!result.ok) {
|
|
118
118
|
return [result, { status: "complete", request: req, response }];
|
|
119
119
|
}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "2.0";
|
|
38
|
-
readonly sdkVersion: "3.3.
|
|
38
|
+
readonly sdkVersion: "3.3.2";
|
|
39
39
|
readonly genVersion: "2.565.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 3.3.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 3.3.2 2.565.1 2.0 @orq-ai/node";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "3.3.
|
|
31
|
+
sdkVersion: "3.3.2",
|
|
32
32
|
genVersion: "2.565.1",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 3.3.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 3.3.2 2.565.1 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "3.3.
|
|
25
|
+
currentVersion: "3.3.2",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -60,7 +60,7 @@ const remoteconfigsRetrieve_js_1 = require("./tools/remoteconfigsRetrieve.js");
|
|
|
60
60
|
function createMCPServer(deps) {
|
|
61
61
|
const server = new mcp_js_1.McpServer({
|
|
62
62
|
name: "Orq",
|
|
63
|
-
version: "3.3.
|
|
63
|
+
version: "3.3.2",
|
|
64
64
|
});
|
|
65
65
|
const client = new core_js_1.OrqCore({
|
|
66
66
|
apiKey: deps.apiKey,
|
|
@@ -879,7 +879,7 @@ exports.ResponseBody$inboundSchema = z.object({
|
|
|
879
879
|
updated_by_id: z.string().optional(),
|
|
880
880
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
881
881
|
.optional(),
|
|
882
|
-
updated: z.string().datetime({ offset: true }).default("2025-04-
|
|
882
|
+
updated: z.string().datetime({ offset: true }).default("2025-04-03T20:49:20.627Z").transform(v => new Date(v)),
|
|
883
883
|
}).transform((v) => {
|
|
884
884
|
return (0, primitives_js_1.remap)(v, {
|
|
885
885
|
"_id": "id",
|
|
@@ -901,7 +901,7 @@ exports.ResponseBody$outboundSchema = z.object({
|
|
|
901
901
|
createdById: z.string().optional(),
|
|
902
902
|
updatedById: z.string().optional(),
|
|
903
903
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
904
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
904
|
+
updated: z.date().default(() => new Date("2025-04-03T20:49:20.627Z"))
|
|
905
905
|
.transform(v => v.toISOString()),
|
|
906
906
|
}).transform((v) => {
|
|
907
907
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
/**
|
|
@@ -35,87 +36,43 @@ export type CreateChunkRequest = {
|
|
|
35
36
|
datasourceId: string;
|
|
36
37
|
requestBody?: Array<RequestBody> | undefined;
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* File type
|
|
49
|
-
*/
|
|
50
|
-
filetype?: string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Document Languages. List is ordered by probability of being the primary language of the text.
|
|
53
|
-
*/
|
|
54
|
-
languages?: Array<string> | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Page number. Optional field.
|
|
57
|
-
*/
|
|
58
|
-
pageNumber?: number | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Number of words in the text
|
|
61
|
-
*/
|
|
62
|
-
wordsCount?: number | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Number of sentences in the text
|
|
65
|
-
*/
|
|
66
|
-
sentencesCount?: number | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Number of paragraphs in the text
|
|
69
|
-
*/
|
|
70
|
-
paragraphsCount?: number | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Number of tokens in the text
|
|
73
|
-
*/
|
|
74
|
-
tokensCount?: number | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Number of characters in the text
|
|
77
|
-
*/
|
|
78
|
-
charactersCount?: number | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Number of total chunks
|
|
81
|
-
*/
|
|
82
|
-
chunksCount?: number | undefined;
|
|
83
|
-
};
|
|
84
|
-
export type Errors = {
|
|
85
|
-
code: number;
|
|
86
|
-
message: string;
|
|
87
|
-
};
|
|
88
|
-
export type ProcessingAttempts = {
|
|
89
|
-
id: string;
|
|
90
|
-
startedAt: string;
|
|
91
|
-
queuedAt?: string | undefined;
|
|
92
|
-
completedAt?: string | undefined;
|
|
93
|
-
errors?: Array<Errors> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The status of the chunk
|
|
41
|
+
*/
|
|
42
|
+
export declare const CreateChunkStatus: {
|
|
43
|
+
readonly Pending: "pending";
|
|
44
|
+
readonly Processing: "processing";
|
|
45
|
+
readonly Completed: "completed";
|
|
46
|
+
readonly Failed: "failed";
|
|
47
|
+
readonly Queued: "queued";
|
|
94
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* The status of the chunk
|
|
51
|
+
*/
|
|
52
|
+
export type CreateChunkStatus = ClosedEnum<typeof CreateChunkStatus>;
|
|
95
53
|
export type CreateChunkResponseBody = {
|
|
96
54
|
/**
|
|
97
|
-
* The
|
|
55
|
+
* The unique identifier of the chunk
|
|
98
56
|
*/
|
|
99
|
-
|
|
57
|
+
id: string;
|
|
100
58
|
/**
|
|
101
|
-
* The
|
|
59
|
+
* The text content of the chunk
|
|
102
60
|
*/
|
|
103
|
-
|
|
61
|
+
text: string;
|
|
104
62
|
/**
|
|
105
|
-
*
|
|
63
|
+
* Metadata of the chunk. Can include `page_number` or any other key-value pairs. Only values of type string are supported.
|
|
106
64
|
*/
|
|
107
|
-
|
|
65
|
+
metadata?: {
|
|
66
|
+
[k: string]: string;
|
|
67
|
+
} | undefined;
|
|
108
68
|
/**
|
|
109
|
-
*
|
|
69
|
+
* Whether the chunk is enabled
|
|
110
70
|
*/
|
|
111
|
-
|
|
71
|
+
enabled: boolean;
|
|
112
72
|
/**
|
|
113
|
-
*
|
|
73
|
+
* The status of the chunk
|
|
114
74
|
*/
|
|
115
|
-
|
|
116
|
-
enabled?: boolean | undefined;
|
|
117
|
-
metadata?: CreateChunkKnowledgeMetadata | undefined;
|
|
118
|
-
processingAttempts: Array<ProcessingAttempts>;
|
|
75
|
+
status: CreateChunkStatus;
|
|
119
76
|
/**
|
|
120
77
|
* The date and time the chunk was created
|
|
121
78
|
*/
|
|
@@ -127,11 +84,11 @@ export type CreateChunkResponseBody = {
|
|
|
127
84
|
/**
|
|
128
85
|
* The unique identifier of the user who created the chunk
|
|
129
86
|
*/
|
|
130
|
-
createdById
|
|
87
|
+
createdById?: string | undefined;
|
|
131
88
|
/**
|
|
132
89
|
* The unique identifier of the user who updated the chunk
|
|
133
90
|
*/
|
|
134
|
-
|
|
91
|
+
updateById?: string | undefined;
|
|
135
92
|
};
|
|
136
93
|
/** @internal */
|
|
137
94
|
export declare const CreateChunkMetadata$inboundSchema: z.ZodType<CreateChunkMetadata, z.ZodTypeDef, unknown>;
|
|
@@ -204,102 +161,46 @@ export declare namespace CreateChunkRequest$ {
|
|
|
204
161
|
export declare function createChunkRequestToJSON(createChunkRequest: CreateChunkRequest): string;
|
|
205
162
|
export declare function createChunkRequestFromJSON(jsonString: string): SafeParseResult<CreateChunkRequest, SDKValidationError>;
|
|
206
163
|
/** @internal */
|
|
207
|
-
export declare const
|
|
208
|
-
/** @internal */
|
|
209
|
-
export type CreateChunkKnowledgeMetadata$Outbound = {
|
|
210
|
-
filename?: string | undefined;
|
|
211
|
-
last_modified?: string | undefined;
|
|
212
|
-
filetype?: string | undefined;
|
|
213
|
-
languages?: Array<string> | undefined;
|
|
214
|
-
page_number?: number | null | undefined;
|
|
215
|
-
words_count?: number | undefined;
|
|
216
|
-
sentences_count?: number | undefined;
|
|
217
|
-
paragraphs_count?: number | undefined;
|
|
218
|
-
tokens_count?: number | undefined;
|
|
219
|
-
characters_count?: number | undefined;
|
|
220
|
-
chunks_count?: number | undefined;
|
|
221
|
-
};
|
|
164
|
+
export declare const CreateChunkStatus$inboundSchema: z.ZodNativeEnum<typeof CreateChunkStatus>;
|
|
222
165
|
/** @internal */
|
|
223
|
-
export declare const
|
|
166
|
+
export declare const CreateChunkStatus$outboundSchema: z.ZodNativeEnum<typeof CreateChunkStatus>;
|
|
224
167
|
/**
|
|
225
168
|
* @internal
|
|
226
169
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
227
170
|
*/
|
|
228
|
-
export declare namespace
|
|
229
|
-
/** @deprecated use `
|
|
230
|
-
const inboundSchema: z.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
171
|
+
export declare namespace CreateChunkStatus$ {
|
|
172
|
+
/** @deprecated use `CreateChunkStatus$inboundSchema` instead. */
|
|
173
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
174
|
+
readonly Pending: "pending";
|
|
175
|
+
readonly Processing: "processing";
|
|
176
|
+
readonly Completed: "completed";
|
|
177
|
+
readonly Failed: "failed";
|
|
178
|
+
readonly Queued: "queued";
|
|
179
|
+
}>;
|
|
180
|
+
/** @deprecated use `CreateChunkStatus$outboundSchema` instead. */
|
|
181
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
182
|
+
readonly Pending: "pending";
|
|
183
|
+
readonly Processing: "processing";
|
|
184
|
+
readonly Completed: "completed";
|
|
185
|
+
readonly Failed: "failed";
|
|
186
|
+
readonly Queued: "queued";
|
|
187
|
+
}>;
|
|
235
188
|
}
|
|
236
|
-
export declare function createChunkKnowledgeMetadataToJSON(createChunkKnowledgeMetadata: CreateChunkKnowledgeMetadata): string;
|
|
237
|
-
export declare function createChunkKnowledgeMetadataFromJSON(jsonString: string): SafeParseResult<CreateChunkKnowledgeMetadata, SDKValidationError>;
|
|
238
|
-
/** @internal */
|
|
239
|
-
export declare const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown>;
|
|
240
|
-
/** @internal */
|
|
241
|
-
export type Errors$Outbound = {
|
|
242
|
-
code: number;
|
|
243
|
-
message: string;
|
|
244
|
-
};
|
|
245
|
-
/** @internal */
|
|
246
|
-
export declare const Errors$outboundSchema: z.ZodType<Errors$Outbound, z.ZodTypeDef, Errors>;
|
|
247
|
-
/**
|
|
248
|
-
* @internal
|
|
249
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
250
|
-
*/
|
|
251
|
-
export declare namespace Errors$ {
|
|
252
|
-
/** @deprecated use `Errors$inboundSchema` instead. */
|
|
253
|
-
const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown>;
|
|
254
|
-
/** @deprecated use `Errors$outboundSchema` instead. */
|
|
255
|
-
const outboundSchema: z.ZodType<Errors$Outbound, z.ZodTypeDef, Errors>;
|
|
256
|
-
/** @deprecated use `Errors$Outbound` instead. */
|
|
257
|
-
type Outbound = Errors$Outbound;
|
|
258
|
-
}
|
|
259
|
-
export declare function errorsToJSON(errors: Errors): string;
|
|
260
|
-
export declare function errorsFromJSON(jsonString: string): SafeParseResult<Errors, SDKValidationError>;
|
|
261
|
-
/** @internal */
|
|
262
|
-
export declare const ProcessingAttempts$inboundSchema: z.ZodType<ProcessingAttempts, z.ZodTypeDef, unknown>;
|
|
263
|
-
/** @internal */
|
|
264
|
-
export type ProcessingAttempts$Outbound = {
|
|
265
|
-
id: string;
|
|
266
|
-
started_at: string;
|
|
267
|
-
queued_at?: string | undefined;
|
|
268
|
-
completed_at?: string | undefined;
|
|
269
|
-
errors?: Array<Errors$Outbound> | undefined;
|
|
270
|
-
};
|
|
271
|
-
/** @internal */
|
|
272
|
-
export declare const ProcessingAttempts$outboundSchema: z.ZodType<ProcessingAttempts$Outbound, z.ZodTypeDef, ProcessingAttempts>;
|
|
273
|
-
/**
|
|
274
|
-
* @internal
|
|
275
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
-
*/
|
|
277
|
-
export declare namespace ProcessingAttempts$ {
|
|
278
|
-
/** @deprecated use `ProcessingAttempts$inboundSchema` instead. */
|
|
279
|
-
const inboundSchema: z.ZodType<ProcessingAttempts, z.ZodTypeDef, unknown>;
|
|
280
|
-
/** @deprecated use `ProcessingAttempts$outboundSchema` instead. */
|
|
281
|
-
const outboundSchema: z.ZodType<ProcessingAttempts$Outbound, z.ZodTypeDef, ProcessingAttempts>;
|
|
282
|
-
/** @deprecated use `ProcessingAttempts$Outbound` instead. */
|
|
283
|
-
type Outbound = ProcessingAttempts$Outbound;
|
|
284
|
-
}
|
|
285
|
-
export declare function processingAttemptsToJSON(processingAttempts: ProcessingAttempts): string;
|
|
286
|
-
export declare function processingAttemptsFromJSON(jsonString: string): SafeParseResult<ProcessingAttempts, SDKValidationError>;
|
|
287
189
|
/** @internal */
|
|
288
190
|
export declare const CreateChunkResponseBody$inboundSchema: z.ZodType<CreateChunkResponseBody, z.ZodTypeDef, unknown>;
|
|
289
191
|
/** @internal */
|
|
290
192
|
export type CreateChunkResponseBody$Outbound = {
|
|
291
|
-
|
|
292
|
-
workspace_id: string;
|
|
293
|
-
data_source_id: string;
|
|
294
|
-
id: string;
|
|
193
|
+
_id: string;
|
|
295
194
|
text: string;
|
|
195
|
+
metadata?: {
|
|
196
|
+
[k: string]: string;
|
|
197
|
+
} | undefined;
|
|
296
198
|
enabled: boolean;
|
|
297
|
-
|
|
298
|
-
processing_attempts: Array<ProcessingAttempts$Outbound>;
|
|
199
|
+
status: string;
|
|
299
200
|
created: string;
|
|
300
201
|
updated: string;
|
|
301
|
-
created_by_id
|
|
302
|
-
|
|
202
|
+
created_by_id?: string | undefined;
|
|
203
|
+
update_by_id?: string | undefined;
|
|
303
204
|
};
|
|
304
205
|
/** @internal */
|
|
305
206
|
export declare const CreateChunkResponseBody$outboundSchema: z.ZodType<CreateChunkResponseBody$Outbound, z.ZodTypeDef, CreateChunkResponseBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createchunk.d.ts","sourceRoot":"","sources":["../../src/models/operations/createchunk.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"createchunk.d.ts","sourceRoot":"","sources":["../../src/models/operations/createchunk.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MA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28 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateChunkResponseBody$ = exports.CreateChunkResponseBody$outboundSchema = exports.CreateChunkResponseBody$inboundSchema = exports.
|
|
39
|
+
exports.CreateChunkResponseBody$ = exports.CreateChunkResponseBody$outboundSchema = exports.CreateChunkResponseBody$inboundSchema = exports.CreateChunkStatus$ = exports.CreateChunkStatus$outboundSchema = exports.CreateChunkStatus$inboundSchema = exports.CreateChunkRequest$ = exports.CreateChunkRequest$outboundSchema = exports.CreateChunkRequest$inboundSchema = exports.RequestBody$ = exports.RequestBody$outboundSchema = exports.RequestBody$inboundSchema = exports.CreateChunkMetadata$ = exports.CreateChunkMetadata$outboundSchema = exports.CreateChunkMetadata$inboundSchema = exports.CreateChunkStatus = void 0;
|
|
40
40
|
exports.createChunkMetadataToJSON = createChunkMetadataToJSON;
|
|
41
41
|
exports.createChunkMetadataFromJSON = createChunkMetadataFromJSON;
|
|
42
42
|
exports.requestBodyToJSON = requestBodyToJSON;
|
|
43
43
|
exports.requestBodyFromJSON = requestBodyFromJSON;
|
|
44
44
|
exports.createChunkRequestToJSON = createChunkRequestToJSON;
|
|
45
45
|
exports.createChunkRequestFromJSON = createChunkRequestFromJSON;
|
|
46
|
-
exports.createChunkKnowledgeMetadataToJSON = createChunkKnowledgeMetadataToJSON;
|
|
47
|
-
exports.createChunkKnowledgeMetadataFromJSON = createChunkKnowledgeMetadataFromJSON;
|
|
48
|
-
exports.errorsToJSON = errorsToJSON;
|
|
49
|
-
exports.errorsFromJSON = errorsFromJSON;
|
|
50
|
-
exports.processingAttemptsToJSON = processingAttemptsToJSON;
|
|
51
|
-
exports.processingAttemptsFromJSON = processingAttemptsFromJSON;
|
|
52
46
|
exports.createChunkResponseBodyToJSON = createChunkResponseBodyToJSON;
|
|
53
47
|
exports.createChunkResponseBodyFromJSON = createChunkResponseBodyFromJSON;
|
|
54
48
|
const z = __importStar(require("zod"));
|
|
55
49
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
56
50
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
51
|
+
/**
|
|
52
|
+
* The status of the chunk
|
|
53
|
+
*/
|
|
54
|
+
exports.CreateChunkStatus = {
|
|
55
|
+
Pending: "pending",
|
|
56
|
+
Processing: "processing",
|
|
57
|
+
Completed: "completed",
|
|
58
|
+
Failed: "failed",
|
|
59
|
+
Queued: "queued",
|
|
60
|
+
};
|
|
57
61
|
/** @internal */
|
|
58
62
|
exports.CreateChunkMetadata$inboundSchema = z.object({
|
|
59
63
|
page_number: z.number().optional(),
|
|
@@ -158,192 +162,54 @@ function createChunkRequestFromJSON(jsonString) {
|
|
|
158
162
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateChunkRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateChunkRequest' from JSON`);
|
|
159
163
|
}
|
|
160
164
|
/** @internal */
|
|
161
|
-
exports.
|
|
162
|
-
filename: z.string().optional(),
|
|
163
|
-
last_modified: z.string().optional(),
|
|
164
|
-
filetype: z.string().optional(),
|
|
165
|
-
languages: z.array(z.string()).optional(),
|
|
166
|
-
page_number: z.nullable(z.number()).optional(),
|
|
167
|
-
words_count: z.number().optional(),
|
|
168
|
-
sentences_count: z.number().optional(),
|
|
169
|
-
paragraphs_count: z.number().optional(),
|
|
170
|
-
tokens_count: z.number().optional(),
|
|
171
|
-
characters_count: z.number().optional(),
|
|
172
|
-
chunks_count: z.number().optional(),
|
|
173
|
-
}).transform((v) => {
|
|
174
|
-
return (0, primitives_js_1.remap)(v, {
|
|
175
|
-
"last_modified": "lastModified",
|
|
176
|
-
"page_number": "pageNumber",
|
|
177
|
-
"words_count": "wordsCount",
|
|
178
|
-
"sentences_count": "sentencesCount",
|
|
179
|
-
"paragraphs_count": "paragraphsCount",
|
|
180
|
-
"tokens_count": "tokensCount",
|
|
181
|
-
"characters_count": "charactersCount",
|
|
182
|
-
"chunks_count": "chunksCount",
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
/** @internal */
|
|
186
|
-
exports.CreateChunkKnowledgeMetadata$outboundSchema = z.object({
|
|
187
|
-
filename: z.string().optional(),
|
|
188
|
-
lastModified: z.string().optional(),
|
|
189
|
-
filetype: z.string().optional(),
|
|
190
|
-
languages: z.array(z.string()).optional(),
|
|
191
|
-
pageNumber: z.nullable(z.number()).optional(),
|
|
192
|
-
wordsCount: z.number().optional(),
|
|
193
|
-
sentencesCount: z.number().optional(),
|
|
194
|
-
paragraphsCount: z.number().optional(),
|
|
195
|
-
tokensCount: z.number().optional(),
|
|
196
|
-
charactersCount: z.number().optional(),
|
|
197
|
-
chunksCount: z.number().optional(),
|
|
198
|
-
}).transform((v) => {
|
|
199
|
-
return (0, primitives_js_1.remap)(v, {
|
|
200
|
-
lastModified: "last_modified",
|
|
201
|
-
pageNumber: "page_number",
|
|
202
|
-
wordsCount: "words_count",
|
|
203
|
-
sentencesCount: "sentences_count",
|
|
204
|
-
paragraphsCount: "paragraphs_count",
|
|
205
|
-
tokensCount: "tokens_count",
|
|
206
|
-
charactersCount: "characters_count",
|
|
207
|
-
chunksCount: "chunks_count",
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
213
|
-
*/
|
|
214
|
-
var CreateChunkKnowledgeMetadata$;
|
|
215
|
-
(function (CreateChunkKnowledgeMetadata$) {
|
|
216
|
-
/** @deprecated use `CreateChunkKnowledgeMetadata$inboundSchema` instead. */
|
|
217
|
-
CreateChunkKnowledgeMetadata$.inboundSchema = exports.CreateChunkKnowledgeMetadata$inboundSchema;
|
|
218
|
-
/** @deprecated use `CreateChunkKnowledgeMetadata$outboundSchema` instead. */
|
|
219
|
-
CreateChunkKnowledgeMetadata$.outboundSchema = exports.CreateChunkKnowledgeMetadata$outboundSchema;
|
|
220
|
-
})(CreateChunkKnowledgeMetadata$ || (exports.CreateChunkKnowledgeMetadata$ = CreateChunkKnowledgeMetadata$ = {}));
|
|
221
|
-
function createChunkKnowledgeMetadataToJSON(createChunkKnowledgeMetadata) {
|
|
222
|
-
return JSON.stringify(exports.CreateChunkKnowledgeMetadata$outboundSchema.parse(createChunkKnowledgeMetadata));
|
|
223
|
-
}
|
|
224
|
-
function createChunkKnowledgeMetadataFromJSON(jsonString) {
|
|
225
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateChunkKnowledgeMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateChunkKnowledgeMetadata' from JSON`);
|
|
226
|
-
}
|
|
227
|
-
/** @internal */
|
|
228
|
-
exports.Errors$inboundSchema = z
|
|
229
|
-
.object({
|
|
230
|
-
code: z.number(),
|
|
231
|
-
message: z.string(),
|
|
232
|
-
});
|
|
165
|
+
exports.CreateChunkStatus$inboundSchema = z.nativeEnum(exports.CreateChunkStatus);
|
|
233
166
|
/** @internal */
|
|
234
|
-
exports.
|
|
235
|
-
code: z.number(),
|
|
236
|
-
message: z.string(),
|
|
237
|
-
});
|
|
167
|
+
exports.CreateChunkStatus$outboundSchema = exports.CreateChunkStatus$inboundSchema;
|
|
238
168
|
/**
|
|
239
169
|
* @internal
|
|
240
170
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
241
171
|
*/
|
|
242
|
-
var
|
|
243
|
-
(function (
|
|
244
|
-
/** @deprecated use `
|
|
245
|
-
|
|
246
|
-
/** @deprecated use `
|
|
247
|
-
|
|
248
|
-
})(
|
|
249
|
-
function errorsToJSON(errors) {
|
|
250
|
-
return JSON.stringify(exports.Errors$outboundSchema.parse(errors));
|
|
251
|
-
}
|
|
252
|
-
function errorsFromJSON(jsonString) {
|
|
253
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Errors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Errors' from JSON`);
|
|
254
|
-
}
|
|
255
|
-
/** @internal */
|
|
256
|
-
exports.ProcessingAttempts$inboundSchema = z.object({
|
|
257
|
-
id: z.string(),
|
|
258
|
-
started_at: z.string(),
|
|
259
|
-
queued_at: z.string().optional(),
|
|
260
|
-
completed_at: z.string().optional(),
|
|
261
|
-
errors: z.array(z.lazy(() => exports.Errors$inboundSchema)).optional(),
|
|
262
|
-
}).transform((v) => {
|
|
263
|
-
return (0, primitives_js_1.remap)(v, {
|
|
264
|
-
"started_at": "startedAt",
|
|
265
|
-
"queued_at": "queuedAt",
|
|
266
|
-
"completed_at": "completedAt",
|
|
267
|
-
});
|
|
268
|
-
});
|
|
269
|
-
/** @internal */
|
|
270
|
-
exports.ProcessingAttempts$outboundSchema = z.object({
|
|
271
|
-
id: z.string(),
|
|
272
|
-
startedAt: z.string(),
|
|
273
|
-
queuedAt: z.string().optional(),
|
|
274
|
-
completedAt: z.string().optional(),
|
|
275
|
-
errors: z.array(z.lazy(() => exports.Errors$outboundSchema)).optional(),
|
|
276
|
-
}).transform((v) => {
|
|
277
|
-
return (0, primitives_js_1.remap)(v, {
|
|
278
|
-
startedAt: "started_at",
|
|
279
|
-
queuedAt: "queued_at",
|
|
280
|
-
completedAt: "completed_at",
|
|
281
|
-
});
|
|
282
|
-
});
|
|
283
|
-
/**
|
|
284
|
-
* @internal
|
|
285
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
286
|
-
*/
|
|
287
|
-
var ProcessingAttempts$;
|
|
288
|
-
(function (ProcessingAttempts$) {
|
|
289
|
-
/** @deprecated use `ProcessingAttempts$inboundSchema` instead. */
|
|
290
|
-
ProcessingAttempts$.inboundSchema = exports.ProcessingAttempts$inboundSchema;
|
|
291
|
-
/** @deprecated use `ProcessingAttempts$outboundSchema` instead. */
|
|
292
|
-
ProcessingAttempts$.outboundSchema = exports.ProcessingAttempts$outboundSchema;
|
|
293
|
-
})(ProcessingAttempts$ || (exports.ProcessingAttempts$ = ProcessingAttempts$ = {}));
|
|
294
|
-
function processingAttemptsToJSON(processingAttempts) {
|
|
295
|
-
return JSON.stringify(exports.ProcessingAttempts$outboundSchema.parse(processingAttempts));
|
|
296
|
-
}
|
|
297
|
-
function processingAttemptsFromJSON(jsonString) {
|
|
298
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ProcessingAttempts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProcessingAttempts' from JSON`);
|
|
299
|
-
}
|
|
172
|
+
var CreateChunkStatus$;
|
|
173
|
+
(function (CreateChunkStatus$) {
|
|
174
|
+
/** @deprecated use `CreateChunkStatus$inboundSchema` instead. */
|
|
175
|
+
CreateChunkStatus$.inboundSchema = exports.CreateChunkStatus$inboundSchema;
|
|
176
|
+
/** @deprecated use `CreateChunkStatus$outboundSchema` instead. */
|
|
177
|
+
CreateChunkStatus$.outboundSchema = exports.CreateChunkStatus$outboundSchema;
|
|
178
|
+
})(CreateChunkStatus$ || (exports.CreateChunkStatus$ = CreateChunkStatus$ = {}));
|
|
300
179
|
/** @internal */
|
|
301
180
|
exports.CreateChunkResponseBody$inboundSchema = z.object({
|
|
302
|
-
|
|
303
|
-
workspace_id: z.string(),
|
|
304
|
-
data_source_id: z.string(),
|
|
305
|
-
id: z.string().default("chunk_01JQYJSBSRYKECXYPB02KAAFGW"),
|
|
181
|
+
_id: z.string(),
|
|
306
182
|
text: z.string(),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
183
|
+
metadata: z.record(z.string()).optional(),
|
|
184
|
+
enabled: z.boolean(),
|
|
185
|
+
status: exports.CreateChunkStatus$inboundSchema,
|
|
310
186
|
created: z.string(),
|
|
311
187
|
updated: z.string(),
|
|
312
|
-
created_by_id: z.string(),
|
|
313
|
-
|
|
188
|
+
created_by_id: z.string().optional(),
|
|
189
|
+
update_by_id: z.string().optional(),
|
|
314
190
|
}).transform((v) => {
|
|
315
191
|
return (0, primitives_js_1.remap)(v, {
|
|
316
|
-
"
|
|
317
|
-
"workspace_id": "workspaceId",
|
|
318
|
-
"data_source_id": "dataSourceId",
|
|
319
|
-
"processing_attempts": "processingAttempts",
|
|
192
|
+
"_id": "id",
|
|
320
193
|
"created_by_id": "createdById",
|
|
321
|
-
"
|
|
194
|
+
"update_by_id": "updateById",
|
|
322
195
|
});
|
|
323
196
|
});
|
|
324
197
|
/** @internal */
|
|
325
198
|
exports.CreateChunkResponseBody$outboundSchema = z.object({
|
|
326
|
-
|
|
327
|
-
workspaceId: z.string(),
|
|
328
|
-
dataSourceId: z.string(),
|
|
329
|
-
id: z.string().default("chunk_01JQYJSBSRYKECXYPB02KAAFGW"),
|
|
199
|
+
id: z.string(),
|
|
330
200
|
text: z.string(),
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
processingAttempts: z.array(z.lazy(() => exports.ProcessingAttempts$outboundSchema)),
|
|
201
|
+
metadata: z.record(z.string()).optional(),
|
|
202
|
+
enabled: z.boolean(),
|
|
203
|
+
status: exports.CreateChunkStatus$outboundSchema,
|
|
335
204
|
created: z.string(),
|
|
336
205
|
updated: z.string(),
|
|
337
|
-
createdById: z.string(),
|
|
338
|
-
|
|
206
|
+
createdById: z.string().optional(),
|
|
207
|
+
updateById: z.string().optional(),
|
|
339
208
|
}).transform((v) => {
|
|
340
209
|
return (0, primitives_js_1.remap)(v, {
|
|
341
|
-
|
|
342
|
-
workspaceId: "workspace_id",
|
|
343
|
-
dataSourceId: "data_source_id",
|
|
344
|
-
processingAttempts: "processing_attempts",
|
|
210
|
+
id: "_id",
|
|
345
211
|
createdById: "created_by_id",
|
|
346
|
-
|
|
212
|
+
updateById: "update_by_id",
|
|
347
213
|
});
|
|
348
214
|
});
|
|
349
215
|
/**
|