@orq-ai/node 3.12.16 → 3.12.19
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 +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- 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/createbudget.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/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.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/retrievecontact.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/updatebudget.js +2 -2
- package/models/operations/updatecontact.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/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +107 -90
- package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +13 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
- package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
- package/packages/orq-rc/src/models/components/deployments.ts +52 -45
- package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
- package/packages/orq-rc/src/models/components/httptool.ts +532 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
- package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
- package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
- package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
- package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
- package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
- package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
- package/packages/orq-rc/src/models/operations/parse.ts +20 -335
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
- package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
- package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/tools.ts +117 -0
- 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/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.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/retrievecontact.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/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.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
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -12,15 +12,16 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Return format: chunks (with metadata) or texts (plain strings)
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const ParseChunkingRequestChunkingRequestReturnType = {
|
|
16
16
|
Chunks: "chunks",
|
|
17
17
|
Texts: "texts",
|
|
18
18
|
} as const;
|
|
19
19
|
/**
|
|
20
20
|
* Return format: chunks (with metadata) or texts (plain strings)
|
|
21
21
|
*/
|
|
22
|
-
export type
|
|
23
|
-
|
|
22
|
+
export type ParseChunkingRequestChunkingRequestReturnType = ClosedEnum<
|
|
23
|
+
typeof ParseChunkingRequestChunkingRequestReturnType
|
|
24
|
+
>;
|
|
24
25
|
|
|
25
26
|
export const AgenticChunker = {
|
|
26
27
|
Agentic: "agentic",
|
|
@@ -42,9 +43,7 @@ export type AgenticChunkerStrategy = {
|
|
|
42
43
|
/**
|
|
43
44
|
* Return format: chunks (with metadata) or texts (plain strings)
|
|
44
45
|
*/
|
|
45
|
-
returnType?:
|
|
46
|
-
| ParseChunkingRequestChunkingRequestRequestBodyReturnType
|
|
47
|
-
| undefined;
|
|
46
|
+
returnType?: ParseChunkingRequestChunkingRequestReturnType | undefined;
|
|
48
47
|
strategy: AgenticChunker;
|
|
49
48
|
/**
|
|
50
49
|
* Chat model to use for chunking. (Available models)[https://docs.orq.ai/docs/proxy#chat-models]
|
|
@@ -64,86 +63,6 @@ export type AgenticChunkerStrategy = {
|
|
|
64
63
|
minCharactersPerChunk?: number | undefined;
|
|
65
64
|
};
|
|
66
65
|
|
|
67
|
-
/**
|
|
68
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
69
|
-
*/
|
|
70
|
-
export const ParseChunkingRequestChunkingRequestReturnType = {
|
|
71
|
-
Chunks: "chunks",
|
|
72
|
-
Texts: "texts",
|
|
73
|
-
} as const;
|
|
74
|
-
/**
|
|
75
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
76
|
-
*/
|
|
77
|
-
export type ParseChunkingRequestChunkingRequestReturnType = ClosedEnum<
|
|
78
|
-
typeof ParseChunkingRequestChunkingRequestReturnType
|
|
79
|
-
>;
|
|
80
|
-
|
|
81
|
-
export const SDPMChunker = {
|
|
82
|
-
Sdpm: "sdpm",
|
|
83
|
-
} as const;
|
|
84
|
-
export type SDPMChunker = ClosedEnum<typeof SDPMChunker>;
|
|
85
|
-
|
|
86
|
-
export const ParseThreshold2 = {
|
|
87
|
-
Auto: "auto",
|
|
88
|
-
} as const;
|
|
89
|
-
export type ParseThreshold2 = ClosedEnum<typeof ParseThreshold2>;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
93
|
-
*/
|
|
94
|
-
export type ChunkingRequestThreshold = number | ParseThreshold2;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
98
|
-
*/
|
|
99
|
-
export const ChunkingRequestMode = {
|
|
100
|
-
Window: "window",
|
|
101
|
-
Sentence: "sentence",
|
|
102
|
-
} as const;
|
|
103
|
-
/**
|
|
104
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
105
|
-
*/
|
|
106
|
-
export type ChunkingRequestMode = ClosedEnum<typeof ChunkingRequestMode>;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Sub-Document Prose Model chunker that uses skip-gram patterns to identify optimal split points. Good for technical documents with structured content.
|
|
110
|
-
*/
|
|
111
|
-
export type SDPMChunkerStrategy = {
|
|
112
|
-
/**
|
|
113
|
-
* The text content to be chunked
|
|
114
|
-
*/
|
|
115
|
-
text: string;
|
|
116
|
-
/**
|
|
117
|
-
* Whether to include metadata for each chunk
|
|
118
|
-
*/
|
|
119
|
-
metadata?: boolean | undefined;
|
|
120
|
-
/**
|
|
121
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
122
|
-
*/
|
|
123
|
-
returnType?: ParseChunkingRequestChunkingRequestReturnType | undefined;
|
|
124
|
-
strategy: SDPMChunker;
|
|
125
|
-
/**
|
|
126
|
-
* Maximum tokens per chunk
|
|
127
|
-
*/
|
|
128
|
-
chunkSize?: number | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Window size for skip-gram patterns
|
|
131
|
-
*/
|
|
132
|
-
skipWindow?: number | undefined;
|
|
133
|
-
/**
|
|
134
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
135
|
-
*/
|
|
136
|
-
threshold?: number | ParseThreshold2 | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* Embedding model to use for semantic similarity. (Available embedding models)[https://docs.orq.ai/docs/proxy#embedding-models]
|
|
139
|
-
*/
|
|
140
|
-
embeddingModel: string;
|
|
141
|
-
/**
|
|
142
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
143
|
-
*/
|
|
144
|
-
mode?: ChunkingRequestMode | undefined;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
66
|
/**
|
|
148
67
|
* Return format: chunks (with metadata) or texts (plain strings)
|
|
149
68
|
*/
|
|
@@ -373,7 +292,6 @@ export type TokenChunkerStrategy = {
|
|
|
373
292
|
*/
|
|
374
293
|
export type ParseChunkingRequest =
|
|
375
294
|
| SemanticChunkerStrategy
|
|
376
|
-
| SDPMChunkerStrategy
|
|
377
295
|
| AgenticChunkerStrategy
|
|
378
296
|
| TokenChunkerStrategy
|
|
379
297
|
| SentenceChunkerStrategy
|
|
@@ -405,28 +323,26 @@ export type ParseResponseBody = {
|
|
|
405
323
|
};
|
|
406
324
|
|
|
407
325
|
/** @internal */
|
|
408
|
-
export const
|
|
409
|
-
z.ZodNativeEnum<
|
|
410
|
-
|
|
411
|
-
> = z.nativeEnum(ParseChunkingRequestChunkingRequestRequestBodyReturnType);
|
|
326
|
+
export const ParseChunkingRequestChunkingRequestReturnType$inboundSchema:
|
|
327
|
+
z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType> = z
|
|
328
|
+
.nativeEnum(ParseChunkingRequestChunkingRequestReturnType);
|
|
412
329
|
|
|
413
330
|
/** @internal */
|
|
414
|
-
export const
|
|
415
|
-
z.ZodNativeEnum<
|
|
416
|
-
|
|
417
|
-
> = ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema;
|
|
331
|
+
export const ParseChunkingRequestChunkingRequestReturnType$outboundSchema:
|
|
332
|
+
z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType> =
|
|
333
|
+
ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
418
334
|
|
|
419
335
|
/**
|
|
420
336
|
* @internal
|
|
421
337
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
422
338
|
*/
|
|
423
|
-
export namespace
|
|
424
|
-
/** @deprecated use `
|
|
339
|
+
export namespace ParseChunkingRequestChunkingRequestReturnType$ {
|
|
340
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$inboundSchema` instead. */
|
|
425
341
|
export const inboundSchema =
|
|
426
|
-
|
|
427
|
-
/** @deprecated use `
|
|
342
|
+
ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
343
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$outboundSchema` instead. */
|
|
428
344
|
export const outboundSchema =
|
|
429
|
-
|
|
345
|
+
ParseChunkingRequestChunkingRequestReturnType$outboundSchema;
|
|
430
346
|
}
|
|
431
347
|
|
|
432
348
|
/** @internal */
|
|
@@ -458,9 +374,8 @@ export const AgenticChunkerStrategy$inboundSchema: z.ZodType<
|
|
|
458
374
|
> = z.object({
|
|
459
375
|
text: z.string(),
|
|
460
376
|
metadata: z.boolean().default(true),
|
|
461
|
-
return_type:
|
|
462
|
-
|
|
463
|
-
.default("chunks"),
|
|
377
|
+
return_type: ParseChunkingRequestChunkingRequestReturnType$inboundSchema
|
|
378
|
+
.default("chunks"),
|
|
464
379
|
strategy: AgenticChunker$inboundSchema,
|
|
465
380
|
model: z.string(),
|
|
466
381
|
chunk_size: z.number().int().default(1024),
|
|
@@ -495,9 +410,8 @@ export const AgenticChunkerStrategy$outboundSchema: z.ZodType<
|
|
|
495
410
|
> = z.object({
|
|
496
411
|
text: z.string(),
|
|
497
412
|
metadata: z.boolean().default(true),
|
|
498
|
-
returnType:
|
|
499
|
-
|
|
500
|
-
.default("chunks"),
|
|
413
|
+
returnType: ParseChunkingRequestChunkingRequestReturnType$outboundSchema
|
|
414
|
+
.default("chunks"),
|
|
501
415
|
strategy: AgenticChunker$outboundSchema,
|
|
502
416
|
model: z.string(),
|
|
503
417
|
chunkSize: z.number().int().default(1024),
|
|
@@ -543,232 +457,6 @@ export function agenticChunkerStrategyFromJSON(
|
|
|
543
457
|
);
|
|
544
458
|
}
|
|
545
459
|
|
|
546
|
-
/** @internal */
|
|
547
|
-
export const ParseChunkingRequestChunkingRequestReturnType$inboundSchema:
|
|
548
|
-
z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType> = z
|
|
549
|
-
.nativeEnum(ParseChunkingRequestChunkingRequestReturnType);
|
|
550
|
-
|
|
551
|
-
/** @internal */
|
|
552
|
-
export const ParseChunkingRequestChunkingRequestReturnType$outboundSchema:
|
|
553
|
-
z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType> =
|
|
554
|
-
ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* @internal
|
|
558
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
559
|
-
*/
|
|
560
|
-
export namespace ParseChunkingRequestChunkingRequestReturnType$ {
|
|
561
|
-
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$inboundSchema` instead. */
|
|
562
|
-
export const inboundSchema =
|
|
563
|
-
ParseChunkingRequestChunkingRequestReturnType$inboundSchema;
|
|
564
|
-
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$outboundSchema` instead. */
|
|
565
|
-
export const outboundSchema =
|
|
566
|
-
ParseChunkingRequestChunkingRequestReturnType$outboundSchema;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/** @internal */
|
|
570
|
-
export const SDPMChunker$inboundSchema: z.ZodNativeEnum<typeof SDPMChunker> = z
|
|
571
|
-
.nativeEnum(SDPMChunker);
|
|
572
|
-
|
|
573
|
-
/** @internal */
|
|
574
|
-
export const SDPMChunker$outboundSchema: z.ZodNativeEnum<typeof SDPMChunker> =
|
|
575
|
-
SDPMChunker$inboundSchema;
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @internal
|
|
579
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
580
|
-
*/
|
|
581
|
-
export namespace SDPMChunker$ {
|
|
582
|
-
/** @deprecated use `SDPMChunker$inboundSchema` instead. */
|
|
583
|
-
export const inboundSchema = SDPMChunker$inboundSchema;
|
|
584
|
-
/** @deprecated use `SDPMChunker$outboundSchema` instead. */
|
|
585
|
-
export const outboundSchema = SDPMChunker$outboundSchema;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/** @internal */
|
|
589
|
-
export const ParseThreshold2$inboundSchema: z.ZodNativeEnum<
|
|
590
|
-
typeof ParseThreshold2
|
|
591
|
-
> = z.nativeEnum(ParseThreshold2);
|
|
592
|
-
|
|
593
|
-
/** @internal */
|
|
594
|
-
export const ParseThreshold2$outboundSchema: z.ZodNativeEnum<
|
|
595
|
-
typeof ParseThreshold2
|
|
596
|
-
> = ParseThreshold2$inboundSchema;
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* @internal
|
|
600
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
601
|
-
*/
|
|
602
|
-
export namespace ParseThreshold2$ {
|
|
603
|
-
/** @deprecated use `ParseThreshold2$inboundSchema` instead. */
|
|
604
|
-
export const inboundSchema = ParseThreshold2$inboundSchema;
|
|
605
|
-
/** @deprecated use `ParseThreshold2$outboundSchema` instead. */
|
|
606
|
-
export const outboundSchema = ParseThreshold2$outboundSchema;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/** @internal */
|
|
610
|
-
export const ChunkingRequestThreshold$inboundSchema: z.ZodType<
|
|
611
|
-
ChunkingRequestThreshold,
|
|
612
|
-
z.ZodTypeDef,
|
|
613
|
-
unknown
|
|
614
|
-
> = z.union([z.number(), ParseThreshold2$inboundSchema]);
|
|
615
|
-
|
|
616
|
-
/** @internal */
|
|
617
|
-
export type ChunkingRequestThreshold$Outbound = number | string;
|
|
618
|
-
|
|
619
|
-
/** @internal */
|
|
620
|
-
export const ChunkingRequestThreshold$outboundSchema: z.ZodType<
|
|
621
|
-
ChunkingRequestThreshold$Outbound,
|
|
622
|
-
z.ZodTypeDef,
|
|
623
|
-
ChunkingRequestThreshold
|
|
624
|
-
> = z.union([z.number(), ParseThreshold2$outboundSchema]);
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* @internal
|
|
628
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
629
|
-
*/
|
|
630
|
-
export namespace ChunkingRequestThreshold$ {
|
|
631
|
-
/** @deprecated use `ChunkingRequestThreshold$inboundSchema` instead. */
|
|
632
|
-
export const inboundSchema = ChunkingRequestThreshold$inboundSchema;
|
|
633
|
-
/** @deprecated use `ChunkingRequestThreshold$outboundSchema` instead. */
|
|
634
|
-
export const outboundSchema = ChunkingRequestThreshold$outboundSchema;
|
|
635
|
-
/** @deprecated use `ChunkingRequestThreshold$Outbound` instead. */
|
|
636
|
-
export type Outbound = ChunkingRequestThreshold$Outbound;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export function chunkingRequestThresholdToJSON(
|
|
640
|
-
chunkingRequestThreshold: ChunkingRequestThreshold,
|
|
641
|
-
): string {
|
|
642
|
-
return JSON.stringify(
|
|
643
|
-
ChunkingRequestThreshold$outboundSchema.parse(chunkingRequestThreshold),
|
|
644
|
-
);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export function chunkingRequestThresholdFromJSON(
|
|
648
|
-
jsonString: string,
|
|
649
|
-
): SafeParseResult<ChunkingRequestThreshold, SDKValidationError> {
|
|
650
|
-
return safeParse(
|
|
651
|
-
jsonString,
|
|
652
|
-
(x) => ChunkingRequestThreshold$inboundSchema.parse(JSON.parse(x)),
|
|
653
|
-
`Failed to parse 'ChunkingRequestThreshold' from JSON`,
|
|
654
|
-
);
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
/** @internal */
|
|
658
|
-
export const ChunkingRequestMode$inboundSchema: z.ZodNativeEnum<
|
|
659
|
-
typeof ChunkingRequestMode
|
|
660
|
-
> = z.nativeEnum(ChunkingRequestMode);
|
|
661
|
-
|
|
662
|
-
/** @internal */
|
|
663
|
-
export const ChunkingRequestMode$outboundSchema: z.ZodNativeEnum<
|
|
664
|
-
typeof ChunkingRequestMode
|
|
665
|
-
> = ChunkingRequestMode$inboundSchema;
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* @internal
|
|
669
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
670
|
-
*/
|
|
671
|
-
export namespace ChunkingRequestMode$ {
|
|
672
|
-
/** @deprecated use `ChunkingRequestMode$inboundSchema` instead. */
|
|
673
|
-
export const inboundSchema = ChunkingRequestMode$inboundSchema;
|
|
674
|
-
/** @deprecated use `ChunkingRequestMode$outboundSchema` instead. */
|
|
675
|
-
export const outboundSchema = ChunkingRequestMode$outboundSchema;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
/** @internal */
|
|
679
|
-
export const SDPMChunkerStrategy$inboundSchema: z.ZodType<
|
|
680
|
-
SDPMChunkerStrategy,
|
|
681
|
-
z.ZodTypeDef,
|
|
682
|
-
unknown
|
|
683
|
-
> = z.object({
|
|
684
|
-
text: z.string(),
|
|
685
|
-
metadata: z.boolean().default(true),
|
|
686
|
-
return_type: ParseChunkingRequestChunkingRequestReturnType$inboundSchema
|
|
687
|
-
.default("chunks"),
|
|
688
|
-
strategy: SDPMChunker$inboundSchema,
|
|
689
|
-
chunk_size: z.number().int().default(512),
|
|
690
|
-
skip_window: z.number().int().default(1),
|
|
691
|
-
threshold: z.union([z.number(), ParseThreshold2$inboundSchema]).optional(),
|
|
692
|
-
embedding_model: z.string(),
|
|
693
|
-
mode: ChunkingRequestMode$inboundSchema.default("window"),
|
|
694
|
-
}).transform((v) => {
|
|
695
|
-
return remap$(v, {
|
|
696
|
-
"return_type": "returnType",
|
|
697
|
-
"chunk_size": "chunkSize",
|
|
698
|
-
"skip_window": "skipWindow",
|
|
699
|
-
"embedding_model": "embeddingModel",
|
|
700
|
-
});
|
|
701
|
-
});
|
|
702
|
-
|
|
703
|
-
/** @internal */
|
|
704
|
-
export type SDPMChunkerStrategy$Outbound = {
|
|
705
|
-
text: string;
|
|
706
|
-
metadata: boolean;
|
|
707
|
-
return_type: string;
|
|
708
|
-
strategy: string;
|
|
709
|
-
chunk_size: number;
|
|
710
|
-
skip_window: number;
|
|
711
|
-
threshold?: number | string | undefined;
|
|
712
|
-
embedding_model: string;
|
|
713
|
-
mode: string;
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
/** @internal */
|
|
717
|
-
export const SDPMChunkerStrategy$outboundSchema: z.ZodType<
|
|
718
|
-
SDPMChunkerStrategy$Outbound,
|
|
719
|
-
z.ZodTypeDef,
|
|
720
|
-
SDPMChunkerStrategy
|
|
721
|
-
> = z.object({
|
|
722
|
-
text: z.string(),
|
|
723
|
-
metadata: z.boolean().default(true),
|
|
724
|
-
returnType: ParseChunkingRequestChunkingRequestReturnType$outboundSchema
|
|
725
|
-
.default("chunks"),
|
|
726
|
-
strategy: SDPMChunker$outboundSchema,
|
|
727
|
-
chunkSize: z.number().int().default(512),
|
|
728
|
-
skipWindow: z.number().int().default(1),
|
|
729
|
-
threshold: z.union([z.number(), ParseThreshold2$outboundSchema]).optional(),
|
|
730
|
-
embeddingModel: z.string(),
|
|
731
|
-
mode: ChunkingRequestMode$outboundSchema.default("window"),
|
|
732
|
-
}).transform((v) => {
|
|
733
|
-
return remap$(v, {
|
|
734
|
-
returnType: "return_type",
|
|
735
|
-
chunkSize: "chunk_size",
|
|
736
|
-
skipWindow: "skip_window",
|
|
737
|
-
embeddingModel: "embedding_model",
|
|
738
|
-
});
|
|
739
|
-
});
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* @internal
|
|
743
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
744
|
-
*/
|
|
745
|
-
export namespace SDPMChunkerStrategy$ {
|
|
746
|
-
/** @deprecated use `SDPMChunkerStrategy$inboundSchema` instead. */
|
|
747
|
-
export const inboundSchema = SDPMChunkerStrategy$inboundSchema;
|
|
748
|
-
/** @deprecated use `SDPMChunkerStrategy$outboundSchema` instead. */
|
|
749
|
-
export const outboundSchema = SDPMChunkerStrategy$outboundSchema;
|
|
750
|
-
/** @deprecated use `SDPMChunkerStrategy$Outbound` instead. */
|
|
751
|
-
export type Outbound = SDPMChunkerStrategy$Outbound;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export function sdpmChunkerStrategyToJSON(
|
|
755
|
-
sdpmChunkerStrategy: SDPMChunkerStrategy,
|
|
756
|
-
): string {
|
|
757
|
-
return JSON.stringify(
|
|
758
|
-
SDPMChunkerStrategy$outboundSchema.parse(sdpmChunkerStrategy),
|
|
759
|
-
);
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
export function sdpmChunkerStrategyFromJSON(
|
|
763
|
-
jsonString: string,
|
|
764
|
-
): SafeParseResult<SDPMChunkerStrategy, SDKValidationError> {
|
|
765
|
-
return safeParse(
|
|
766
|
-
jsonString,
|
|
767
|
-
(x) => SDPMChunkerStrategy$inboundSchema.parse(JSON.parse(x)),
|
|
768
|
-
`Failed to parse 'SDPMChunkerStrategy' from JSON`,
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
460
|
/** @internal */
|
|
773
461
|
export const ParseChunkingRequestChunkingReturnType$inboundSchema:
|
|
774
462
|
z.ZodNativeEnum<typeof ParseChunkingRequestChunkingReturnType> = z.nativeEnum(
|
|
@@ -1373,7 +1061,6 @@ export const ParseChunkingRequest$inboundSchema: z.ZodType<
|
|
|
1373
1061
|
unknown
|
|
1374
1062
|
> = z.union([
|
|
1375
1063
|
z.lazy(() => SemanticChunkerStrategy$inboundSchema),
|
|
1376
|
-
z.lazy(() => SDPMChunkerStrategy$inboundSchema),
|
|
1377
1064
|
z.lazy(() => AgenticChunkerStrategy$inboundSchema),
|
|
1378
1065
|
z.lazy(() => TokenChunkerStrategy$inboundSchema),
|
|
1379
1066
|
z.lazy(() => SentenceChunkerStrategy$inboundSchema),
|
|
@@ -1383,7 +1070,6 @@ export const ParseChunkingRequest$inboundSchema: z.ZodType<
|
|
|
1383
1070
|
/** @internal */
|
|
1384
1071
|
export type ParseChunkingRequest$Outbound =
|
|
1385
1072
|
| SemanticChunkerStrategy$Outbound
|
|
1386
|
-
| SDPMChunkerStrategy$Outbound
|
|
1387
1073
|
| AgenticChunkerStrategy$Outbound
|
|
1388
1074
|
| TokenChunkerStrategy$Outbound
|
|
1389
1075
|
| SentenceChunkerStrategy$Outbound
|
|
@@ -1396,7 +1082,6 @@ export const ParseChunkingRequest$outboundSchema: z.ZodType<
|
|
|
1396
1082
|
ParseChunkingRequest
|
|
1397
1083
|
> = z.union([
|
|
1398
1084
|
z.lazy(() => SemanticChunkerStrategy$outboundSchema),
|
|
1399
|
-
z.lazy(() => SDPMChunkerStrategy$outboundSchema),
|
|
1400
1085
|
z.lazy(() => AgenticChunkerStrategy$outboundSchema),
|
|
1401
1086
|
z.lazy(() => TokenChunkerStrategy$outboundSchema),
|
|
1402
1087
|
z.lazy(() => SentenceChunkerStrategy$outboundSchema),
|
|
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
|
|
|
127
127
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
128
|
.optional(),
|
|
129
129
|
updated: z.string().datetime({ offset: true }).default(
|
|
130
|
-
"2025-09-
|
|
130
|
+
"2025-09-25T12:10:29.955Z",
|
|
131
131
|
).transform(v => new Date(v)),
|
|
132
132
|
}).transform((v) => {
|
|
133
133
|
return remap$(v, {
|
|
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
|
|
|
165
165
|
tags: z.array(z.string()).optional(),
|
|
166
166
|
metadata: z.record(z.any()).optional(),
|
|
167
167
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
168
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
168
|
+
updated: z.date().default(() => new Date("2025-09-25T12:10:29.955Z"))
|
|
169
169
|
.transform(v => v.toISOString()),
|
|
170
170
|
}).transform((v) => {
|
|
171
171
|
return remap$(v, {
|
|
@@ -162,13 +162,14 @@ export type RetrieveDatapointMessagesDatasetsContent =
|
|
|
162
162
|
>;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* The role of the messages author, in this case `assistant`.
|
|
165
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
166
166
|
*/
|
|
167
167
|
export const RetrieveDatapointMessagesDatasetsResponse200Role = {
|
|
168
168
|
Assistant: "assistant",
|
|
169
|
+
Exception: "exception",
|
|
169
170
|
} as const;
|
|
170
171
|
/**
|
|
171
|
-
* The role of the messages author, in this case `assistant`.
|
|
172
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
172
173
|
*/
|
|
173
174
|
export type RetrieveDatapointMessagesDatasetsResponse200Role = ClosedEnum<
|
|
174
175
|
typeof RetrieveDatapointMessagesDatasetsResponse200Role
|
|
@@ -236,7 +237,7 @@ export type RetrieveDatapointMessagesAssistantMessage = {
|
|
|
236
237
|
*/
|
|
237
238
|
refusal?: string | null | undefined;
|
|
238
239
|
/**
|
|
239
|
-
* The role of the messages author, in this case `assistant`.
|
|
240
|
+
* The role of the messages author, in this case `assistant` or `exception`.
|
|
240
241
|
*/
|
|
241
242
|
role: RetrieveDatapointMessagesDatasetsResponse200Role;
|
|
242
243
|
/**
|
|
@@ -2957,7 +2958,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2957
2958
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2958
2959
|
.optional(),
|
|
2959
2960
|
updated: z.string().datetime({ offset: true }).default(
|
|
2960
|
-
"2025-09-
|
|
2961
|
+
"2025-09-25T12:10:29.955Z",
|
|
2961
2962
|
).transform(v => new Date(v)),
|
|
2962
2963
|
}).transform((v) => {
|
|
2963
2964
|
return remap$(v, {
|
|
@@ -3015,7 +3016,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
3015
3016
|
createdById: z.string().optional(),
|
|
3016
3017
|
updatedById: z.string().optional(),
|
|
3017
3018
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3018
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
3019
|
+
updated: z.date().default(() => new Date("2025-09-25T12:10:29.955Z"))
|
|
3019
3020
|
.transform(v => v.toISOString()),
|
|
3020
3021
|
}).transform((v) => {
|
|
3021
3022
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-09-
|
|
204
|
+
"2025-09-25T12:10:29.955Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-09-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-09-25T12:10:29.955Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01K60CGQ6M39ZNWYVDGTEW4VH2"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01K60CGQ6M39ZNWYVDGTEW4VH2"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|