@orq-ai/node 3.3.2 → 3.3.4
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 +40 -40
- package/bin/mcp-server.js.map +21 -21
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/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/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/funcs/knowledgeDeleteDatasource.ts +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/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +59 -337
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- 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/listdatasetdatapoints.ts +2 -2
- 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/retrievedatapoint.ts +2 -2
- 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/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/src/lib/config.ts +3 -3
- 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/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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
@@ -45,90 +46,42 @@ export type CreateChunkRequest = {
|
|
|
45
46
|
requestBody?: Array<RequestBody> | undefined;
|
|
46
47
|
};
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* Document Languages. List is ordered by probability of being the primary language of the text.
|
|
63
|
-
*/
|
|
64
|
-
languages?: Array<string> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Page number. Optional field.
|
|
67
|
-
*/
|
|
68
|
-
pageNumber?: number | null | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Number of words in the text
|
|
71
|
-
*/
|
|
72
|
-
wordsCount?: number | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Number of sentences in the text
|
|
75
|
-
*/
|
|
76
|
-
sentencesCount?: number | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Number of paragraphs in the text
|
|
79
|
-
*/
|
|
80
|
-
paragraphsCount?: number | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Number of tokens in the text
|
|
83
|
-
*/
|
|
84
|
-
tokensCount?: number | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Number of characters in the text
|
|
87
|
-
*/
|
|
88
|
-
charactersCount?: number | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Number of total chunks
|
|
91
|
-
*/
|
|
92
|
-
chunksCount?: number | undefined;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export type Errors = {
|
|
96
|
-
code: number;
|
|
97
|
-
message: string;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export type ProcessingAttempts = {
|
|
101
|
-
id: string;
|
|
102
|
-
startedAt: string;
|
|
103
|
-
queuedAt?: string | undefined;
|
|
104
|
-
completedAt?: string | undefined;
|
|
105
|
-
errors?: Array<Errors> | undefined;
|
|
106
|
-
};
|
|
49
|
+
/**
|
|
50
|
+
* The status of the chunk
|
|
51
|
+
*/
|
|
52
|
+
export const CreateChunkStatus = {
|
|
53
|
+
Pending: "pending",
|
|
54
|
+
Processing: "processing",
|
|
55
|
+
Completed: "completed",
|
|
56
|
+
Failed: "failed",
|
|
57
|
+
Queued: "queued",
|
|
58
|
+
} as const;
|
|
59
|
+
/**
|
|
60
|
+
* The status of the chunk
|
|
61
|
+
*/
|
|
62
|
+
export type CreateChunkStatus = ClosedEnum<typeof CreateChunkStatus>;
|
|
107
63
|
|
|
108
64
|
export type CreateChunkResponseBody = {
|
|
109
65
|
/**
|
|
110
|
-
* The
|
|
66
|
+
* The unique identifier of the chunk
|
|
111
67
|
*/
|
|
112
|
-
|
|
68
|
+
id: string;
|
|
113
69
|
/**
|
|
114
|
-
* The
|
|
70
|
+
* The text content of the chunk
|
|
115
71
|
*/
|
|
116
|
-
|
|
72
|
+
text: string;
|
|
117
73
|
/**
|
|
118
|
-
*
|
|
74
|
+
* Metadata of the chunk. Can include `page_number` or any other key-value pairs. Only values of type string are supported.
|
|
119
75
|
*/
|
|
120
|
-
|
|
76
|
+
metadata?: { [k: string]: string } | undefined;
|
|
121
77
|
/**
|
|
122
|
-
*
|
|
78
|
+
* Whether the chunk is enabled
|
|
123
79
|
*/
|
|
124
|
-
|
|
80
|
+
enabled: boolean;
|
|
125
81
|
/**
|
|
126
|
-
*
|
|
82
|
+
* The status of the chunk
|
|
127
83
|
*/
|
|
128
|
-
|
|
129
|
-
enabled?: boolean | undefined;
|
|
130
|
-
metadata?: CreateChunkKnowledgeMetadata | undefined;
|
|
131
|
-
processingAttempts: Array<ProcessingAttempts>;
|
|
84
|
+
status: CreateChunkStatus;
|
|
132
85
|
/**
|
|
133
86
|
* The date and time the chunk was created
|
|
134
87
|
*/
|
|
@@ -140,11 +93,11 @@ export type CreateChunkResponseBody = {
|
|
|
140
93
|
/**
|
|
141
94
|
* The unique identifier of the user who created the chunk
|
|
142
95
|
*/
|
|
143
|
-
createdById
|
|
96
|
+
createdById?: string | undefined;
|
|
144
97
|
/**
|
|
145
98
|
* The unique identifier of the user who updated the chunk
|
|
146
99
|
*/
|
|
147
|
-
|
|
100
|
+
updateById?: string | undefined;
|
|
148
101
|
};
|
|
149
102
|
|
|
150
103
|
/** @internal */
|
|
@@ -338,239 +291,24 @@ export function createChunkRequestFromJSON(
|
|
|
338
291
|
}
|
|
339
292
|
|
|
340
293
|
/** @internal */
|
|
341
|
-
export const
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
unknown
|
|
345
|
-
> = z.object({
|
|
346
|
-
filename: z.string().optional(),
|
|
347
|
-
last_modified: z.string().optional(),
|
|
348
|
-
filetype: z.string().optional(),
|
|
349
|
-
languages: z.array(z.string()).optional(),
|
|
350
|
-
page_number: z.nullable(z.number()).optional(),
|
|
351
|
-
words_count: z.number().optional(),
|
|
352
|
-
sentences_count: z.number().optional(),
|
|
353
|
-
paragraphs_count: z.number().optional(),
|
|
354
|
-
tokens_count: z.number().optional(),
|
|
355
|
-
characters_count: z.number().optional(),
|
|
356
|
-
chunks_count: z.number().optional(),
|
|
357
|
-
}).transform((v) => {
|
|
358
|
-
return remap$(v, {
|
|
359
|
-
"last_modified": "lastModified",
|
|
360
|
-
"page_number": "pageNumber",
|
|
361
|
-
"words_count": "wordsCount",
|
|
362
|
-
"sentences_count": "sentencesCount",
|
|
363
|
-
"paragraphs_count": "paragraphsCount",
|
|
364
|
-
"tokens_count": "tokensCount",
|
|
365
|
-
"characters_count": "charactersCount",
|
|
366
|
-
"chunks_count": "chunksCount",
|
|
367
|
-
});
|
|
368
|
-
});
|
|
294
|
+
export const CreateChunkStatus$inboundSchema: z.ZodNativeEnum<
|
|
295
|
+
typeof CreateChunkStatus
|
|
296
|
+
> = z.nativeEnum(CreateChunkStatus);
|
|
369
297
|
|
|
370
298
|
/** @internal */
|
|
371
|
-
export
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
filetype?: string | undefined;
|
|
375
|
-
languages?: Array<string> | undefined;
|
|
376
|
-
page_number?: number | null | undefined;
|
|
377
|
-
words_count?: number | undefined;
|
|
378
|
-
sentences_count?: number | undefined;
|
|
379
|
-
paragraphs_count?: number | undefined;
|
|
380
|
-
tokens_count?: number | undefined;
|
|
381
|
-
characters_count?: number | undefined;
|
|
382
|
-
chunks_count?: number | undefined;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
/** @internal */
|
|
386
|
-
export const CreateChunkKnowledgeMetadata$outboundSchema: z.ZodType<
|
|
387
|
-
CreateChunkKnowledgeMetadata$Outbound,
|
|
388
|
-
z.ZodTypeDef,
|
|
389
|
-
CreateChunkKnowledgeMetadata
|
|
390
|
-
> = z.object({
|
|
391
|
-
filename: z.string().optional(),
|
|
392
|
-
lastModified: z.string().optional(),
|
|
393
|
-
filetype: z.string().optional(),
|
|
394
|
-
languages: z.array(z.string()).optional(),
|
|
395
|
-
pageNumber: z.nullable(z.number()).optional(),
|
|
396
|
-
wordsCount: z.number().optional(),
|
|
397
|
-
sentencesCount: z.number().optional(),
|
|
398
|
-
paragraphsCount: z.number().optional(),
|
|
399
|
-
tokensCount: z.number().optional(),
|
|
400
|
-
charactersCount: z.number().optional(),
|
|
401
|
-
chunksCount: z.number().optional(),
|
|
402
|
-
}).transform((v) => {
|
|
403
|
-
return remap$(v, {
|
|
404
|
-
lastModified: "last_modified",
|
|
405
|
-
pageNumber: "page_number",
|
|
406
|
-
wordsCount: "words_count",
|
|
407
|
-
sentencesCount: "sentences_count",
|
|
408
|
-
paragraphsCount: "paragraphs_count",
|
|
409
|
-
tokensCount: "tokens_count",
|
|
410
|
-
charactersCount: "characters_count",
|
|
411
|
-
chunksCount: "chunks_count",
|
|
412
|
-
});
|
|
413
|
-
});
|
|
299
|
+
export const CreateChunkStatus$outboundSchema: z.ZodNativeEnum<
|
|
300
|
+
typeof CreateChunkStatus
|
|
301
|
+
> = CreateChunkStatus$inboundSchema;
|
|
414
302
|
|
|
415
303
|
/**
|
|
416
304
|
* @internal
|
|
417
305
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
418
306
|
*/
|
|
419
|
-
export namespace
|
|
420
|
-
/** @deprecated use `
|
|
421
|
-
export const inboundSchema =
|
|
422
|
-
/** @deprecated use `
|
|
423
|
-
export const outboundSchema =
|
|
424
|
-
/** @deprecated use `CreateChunkKnowledgeMetadata$Outbound` instead. */
|
|
425
|
-
export type Outbound = CreateChunkKnowledgeMetadata$Outbound;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export function createChunkKnowledgeMetadataToJSON(
|
|
429
|
-
createChunkKnowledgeMetadata: CreateChunkKnowledgeMetadata,
|
|
430
|
-
): string {
|
|
431
|
-
return JSON.stringify(
|
|
432
|
-
CreateChunkKnowledgeMetadata$outboundSchema.parse(
|
|
433
|
-
createChunkKnowledgeMetadata,
|
|
434
|
-
),
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export function createChunkKnowledgeMetadataFromJSON(
|
|
439
|
-
jsonString: string,
|
|
440
|
-
): SafeParseResult<CreateChunkKnowledgeMetadata, SDKValidationError> {
|
|
441
|
-
return safeParse(
|
|
442
|
-
jsonString,
|
|
443
|
-
(x) => CreateChunkKnowledgeMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
444
|
-
`Failed to parse 'CreateChunkKnowledgeMetadata' from JSON`,
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/** @internal */
|
|
449
|
-
export const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z
|
|
450
|
-
.object({
|
|
451
|
-
code: z.number(),
|
|
452
|
-
message: z.string(),
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
/** @internal */
|
|
456
|
-
export type Errors$Outbound = {
|
|
457
|
-
code: number;
|
|
458
|
-
message: string;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
/** @internal */
|
|
462
|
-
export const Errors$outboundSchema: z.ZodType<
|
|
463
|
-
Errors$Outbound,
|
|
464
|
-
z.ZodTypeDef,
|
|
465
|
-
Errors
|
|
466
|
-
> = z.object({
|
|
467
|
-
code: z.number(),
|
|
468
|
-
message: z.string(),
|
|
469
|
-
});
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* @internal
|
|
473
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
474
|
-
*/
|
|
475
|
-
export namespace Errors$ {
|
|
476
|
-
/** @deprecated use `Errors$inboundSchema` instead. */
|
|
477
|
-
export const inboundSchema = Errors$inboundSchema;
|
|
478
|
-
/** @deprecated use `Errors$outboundSchema` instead. */
|
|
479
|
-
export const outboundSchema = Errors$outboundSchema;
|
|
480
|
-
/** @deprecated use `Errors$Outbound` instead. */
|
|
481
|
-
export type Outbound = Errors$Outbound;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export function errorsToJSON(errors: Errors): string {
|
|
485
|
-
return JSON.stringify(Errors$outboundSchema.parse(errors));
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export function errorsFromJSON(
|
|
489
|
-
jsonString: string,
|
|
490
|
-
): SafeParseResult<Errors, SDKValidationError> {
|
|
491
|
-
return safeParse(
|
|
492
|
-
jsonString,
|
|
493
|
-
(x) => Errors$inboundSchema.parse(JSON.parse(x)),
|
|
494
|
-
`Failed to parse 'Errors' from JSON`,
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/** @internal */
|
|
499
|
-
export const ProcessingAttempts$inboundSchema: z.ZodType<
|
|
500
|
-
ProcessingAttempts,
|
|
501
|
-
z.ZodTypeDef,
|
|
502
|
-
unknown
|
|
503
|
-
> = z.object({
|
|
504
|
-
id: z.string(),
|
|
505
|
-
started_at: z.string(),
|
|
506
|
-
queued_at: z.string().optional(),
|
|
507
|
-
completed_at: z.string().optional(),
|
|
508
|
-
errors: z.array(z.lazy(() => Errors$inboundSchema)).optional(),
|
|
509
|
-
}).transform((v) => {
|
|
510
|
-
return remap$(v, {
|
|
511
|
-
"started_at": "startedAt",
|
|
512
|
-
"queued_at": "queuedAt",
|
|
513
|
-
"completed_at": "completedAt",
|
|
514
|
-
});
|
|
515
|
-
});
|
|
516
|
-
|
|
517
|
-
/** @internal */
|
|
518
|
-
export type ProcessingAttempts$Outbound = {
|
|
519
|
-
id: string;
|
|
520
|
-
started_at: string;
|
|
521
|
-
queued_at?: string | undefined;
|
|
522
|
-
completed_at?: string | undefined;
|
|
523
|
-
errors?: Array<Errors$Outbound> | undefined;
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
/** @internal */
|
|
527
|
-
export const ProcessingAttempts$outboundSchema: z.ZodType<
|
|
528
|
-
ProcessingAttempts$Outbound,
|
|
529
|
-
z.ZodTypeDef,
|
|
530
|
-
ProcessingAttempts
|
|
531
|
-
> = z.object({
|
|
532
|
-
id: z.string(),
|
|
533
|
-
startedAt: z.string(),
|
|
534
|
-
queuedAt: z.string().optional(),
|
|
535
|
-
completedAt: z.string().optional(),
|
|
536
|
-
errors: z.array(z.lazy(() => Errors$outboundSchema)).optional(),
|
|
537
|
-
}).transform((v) => {
|
|
538
|
-
return remap$(v, {
|
|
539
|
-
startedAt: "started_at",
|
|
540
|
-
queuedAt: "queued_at",
|
|
541
|
-
completedAt: "completed_at",
|
|
542
|
-
});
|
|
543
|
-
});
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* @internal
|
|
547
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
548
|
-
*/
|
|
549
|
-
export namespace ProcessingAttempts$ {
|
|
550
|
-
/** @deprecated use `ProcessingAttempts$inboundSchema` instead. */
|
|
551
|
-
export const inboundSchema = ProcessingAttempts$inboundSchema;
|
|
552
|
-
/** @deprecated use `ProcessingAttempts$outboundSchema` instead. */
|
|
553
|
-
export const outboundSchema = ProcessingAttempts$outboundSchema;
|
|
554
|
-
/** @deprecated use `ProcessingAttempts$Outbound` instead. */
|
|
555
|
-
export type Outbound = ProcessingAttempts$Outbound;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
export function processingAttemptsToJSON(
|
|
559
|
-
processingAttempts: ProcessingAttempts,
|
|
560
|
-
): string {
|
|
561
|
-
return JSON.stringify(
|
|
562
|
-
ProcessingAttempts$outboundSchema.parse(processingAttempts),
|
|
563
|
-
);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
export function processingAttemptsFromJSON(
|
|
567
|
-
jsonString: string,
|
|
568
|
-
): SafeParseResult<ProcessingAttempts, SDKValidationError> {
|
|
569
|
-
return safeParse(
|
|
570
|
-
jsonString,
|
|
571
|
-
(x) => ProcessingAttempts$inboundSchema.parse(JSON.parse(x)),
|
|
572
|
-
`Failed to parse 'ProcessingAttempts' from JSON`,
|
|
573
|
-
);
|
|
307
|
+
export namespace CreateChunkStatus$ {
|
|
308
|
+
/** @deprecated use `CreateChunkStatus$inboundSchema` instead. */
|
|
309
|
+
export const inboundSchema = CreateChunkStatus$inboundSchema;
|
|
310
|
+
/** @deprecated use `CreateChunkStatus$outboundSchema` instead. */
|
|
311
|
+
export const outboundSchema = CreateChunkStatus$outboundSchema;
|
|
574
312
|
}
|
|
575
313
|
|
|
576
314
|
/** @internal */
|
|
@@ -579,43 +317,34 @@ export const CreateChunkResponseBody$inboundSchema: z.ZodType<
|
|
|
579
317
|
z.ZodTypeDef,
|
|
580
318
|
unknown
|
|
581
319
|
> = z.object({
|
|
582
|
-
|
|
583
|
-
workspace_id: z.string(),
|
|
584
|
-
data_source_id: z.string(),
|
|
585
|
-
id: z.string().default("chunk_01JQXQTYP7W7XG2C904M7ZY3P6"),
|
|
320
|
+
_id: z.string(),
|
|
586
321
|
text: z.string(),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
322
|
+
metadata: z.record(z.string()).optional(),
|
|
323
|
+
enabled: z.boolean(),
|
|
324
|
+
status: CreateChunkStatus$inboundSchema,
|
|
590
325
|
created: z.string(),
|
|
591
326
|
updated: z.string(),
|
|
592
|
-
created_by_id: z.string(),
|
|
593
|
-
|
|
327
|
+
created_by_id: z.string().optional(),
|
|
328
|
+
update_by_id: z.string().optional(),
|
|
594
329
|
}).transform((v) => {
|
|
595
330
|
return remap$(v, {
|
|
596
|
-
"
|
|
597
|
-
"workspace_id": "workspaceId",
|
|
598
|
-
"data_source_id": "dataSourceId",
|
|
599
|
-
"processing_attempts": "processingAttempts",
|
|
331
|
+
"_id": "id",
|
|
600
332
|
"created_by_id": "createdById",
|
|
601
|
-
"
|
|
333
|
+
"update_by_id": "updateById",
|
|
602
334
|
});
|
|
603
335
|
});
|
|
604
336
|
|
|
605
337
|
/** @internal */
|
|
606
338
|
export type CreateChunkResponseBody$Outbound = {
|
|
607
|
-
|
|
608
|
-
workspace_id: string;
|
|
609
|
-
data_source_id: string;
|
|
610
|
-
id: string;
|
|
339
|
+
_id: string;
|
|
611
340
|
text: string;
|
|
341
|
+
metadata?: { [k: string]: string } | undefined;
|
|
612
342
|
enabled: boolean;
|
|
613
|
-
|
|
614
|
-
processing_attempts: Array<ProcessingAttempts$Outbound>;
|
|
343
|
+
status: string;
|
|
615
344
|
created: string;
|
|
616
345
|
updated: string;
|
|
617
|
-
created_by_id
|
|
618
|
-
|
|
346
|
+
created_by_id?: string | undefined;
|
|
347
|
+
update_by_id?: string | undefined;
|
|
619
348
|
};
|
|
620
349
|
|
|
621
350
|
/** @internal */
|
|
@@ -624,27 +353,20 @@ export const CreateChunkResponseBody$outboundSchema: z.ZodType<
|
|
|
624
353
|
z.ZodTypeDef,
|
|
625
354
|
CreateChunkResponseBody
|
|
626
355
|
> = z.object({
|
|
627
|
-
|
|
628
|
-
workspaceId: z.string(),
|
|
629
|
-
dataSourceId: z.string(),
|
|
630
|
-
id: z.string().default("chunk_01JQXQTYP7W7XG2C904M7ZY3P6"),
|
|
356
|
+
id: z.string(),
|
|
631
357
|
text: z.string(),
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
processingAttempts: z.array(z.lazy(() => ProcessingAttempts$outboundSchema)),
|
|
358
|
+
metadata: z.record(z.string()).optional(),
|
|
359
|
+
enabled: z.boolean(),
|
|
360
|
+
status: CreateChunkStatus$outboundSchema,
|
|
636
361
|
created: z.string(),
|
|
637
362
|
updated: z.string(),
|
|
638
|
-
createdById: z.string(),
|
|
639
|
-
|
|
363
|
+
createdById: z.string().optional(),
|
|
364
|
+
updateById: z.string().optional(),
|
|
640
365
|
}).transform((v) => {
|
|
641
366
|
return remap$(v, {
|
|
642
|
-
|
|
643
|
-
workspaceId: "workspace_id",
|
|
644
|
-
dataSourceId: "data_source_id",
|
|
645
|
-
processingAttempts: "processing_attempts",
|
|
367
|
+
id: "_id",
|
|
646
368
|
createdById: "created_by_id",
|
|
647
|
-
|
|
369
|
+
updateById: "update_by_id",
|
|
648
370
|
});
|
|
649
371
|
});
|
|
650
372
|
|
|
@@ -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-03T20:49:20.627Z",
|
|
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-03T20:49:20.627Z"))
|
|
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-03T20:49:20.627Z",
|
|
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-03T20:49:20.627Z"))
|
|
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-03T20:49:20.627Z",
|
|
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-03T20:49:20.627Z"))
|
|
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("01JQYPMWQHD57SBKSH17RQ7ZMQ"),
|
|
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("01JQYPMWQHD57SBKSH17RQ7ZMQ"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -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-03T20:49:22.217Z",
|
|
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-03T20:49:22.217Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-04-
|
|
199
|
+
"2025-04-03T20:49:22.217Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-04-
|
|
233
|
+
created: z.date().default(() => new Date("2025-04-03T20:49:22.217Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
247
247
|
file_name: z.string(),
|
|
248
248
|
workspace_id: z.string(),
|
|
249
249
|
created: z.string().datetime({ offset: true }).default(
|
|
250
|
-
"2025-04-
|
|
250
|
+
"2025-04-03T20:49:22.217Z",
|
|
251
251
|
).transform(v => new Date(v)),
|
|
252
252
|
}).transform((v) => {
|
|
253
253
|
return remap$(v, {
|
|
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
281
281
|
bytes: z.number(),
|
|
282
282
|
fileName: z.string(),
|
|
283
283
|
workspaceId: z.string(),
|
|
284
|
-
created: z.date().default(() => new Date("2025-04-
|
|
284
|
+
created: z.date().default(() => new Date("2025-04-03T20:49:22.217Z"))
|
|
285
285
|
.transform(v => v.toISOString()),
|
|
286
286
|
}).transform((v) => {
|
|
287
287
|
return remap$(v, {
|
|
@@ -912,7 +912,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
912
912
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
913
913
|
.optional(),
|
|
914
914
|
updated: z.string().datetime({ offset: true }).default(
|
|
915
|
-
"2025-04-
|
|
915
|
+
"2025-04-03T20:49:20.627Z",
|
|
916
916
|
).transform(v => new Date(v)),
|
|
917
917
|
}).transform((v) => {
|
|
918
918
|
return remap$(v, {
|
|
@@ -955,7 +955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
955
955
|
createdById: z.string().optional(),
|
|
956
956
|
updatedById: z.string().optional(),
|
|
957
957
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
958
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
958
|
+
updated: z.date().default(() => new Date("2025-04-03T20:49:20.627Z"))
|
|
959
959
|
.transform(v => v.toISOString()),
|
|
960
960
|
}).transform((v) => {
|
|
961
961
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-04-
|
|
256
|
+
"2025-04-03T20:49:20.627Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-04-03T20:49:20.627Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01JQYPMWQFCYY75G59GZ5CRZNE"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01JQYPMWQFCYY75G59GZ5CRZNE"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|