@orq-ai/node 3.9.4 → 3.9.5
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/README.md +2 -5
- package/bin/mcp-server.js +560 -866
- package/bin/mcp-server.js.map +36 -36
- package/docs/sdks/knowledge/README.md +77 -0
- package/examples/README.md +26 -0
- package/examples/contactsCreate.example.ts +40 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/funcs/deploymentsStream.js +7 -7
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/{knowledgeBasesChunkText.d.ts → knowledgeCreate.d.ts} +3 -6
- package/funcs/knowledgeCreate.d.ts.map +1 -0
- package/funcs/{knowledgeBasesChunkText.js → knowledgeCreate.js} +7 -10
- package/funcs/knowledgeCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/event-streams.d.ts +4 -10
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +110 -194
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +1 -4
- package/lib/matchers.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +3 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/knowledgeCreate.d.ts +8 -0
- package/mcp-server/tools/knowledgeCreate.d.ts.map +1 -0
- package/mcp-server/tools/{knowledgeBasesChunkText.js → knowledgeCreate.js} +8 -10
- package/mcp-server/tools/knowledgeCreate.js.map +1 -0
- 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/createknowledge.d.ts +426 -0
- package/models/operations/createknowledge.d.ts.map +1 -0
- package/models/operations/createknowledge.js +431 -0
- package/models/operations/createknowledge.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- 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/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/models/operations/updateknowledge.d.ts +106 -106
- package/models/operations/updateknowledge.d.ts.map +1 -1
- package/models/operations/updateknowledge.js +125 -129
- package/models/operations/updateknowledge.js.map +1 -1
- package/package.json +1 -1
- package/packages/orq-rc/examples/README.md +26 -0
- package/packages/orq-rc/examples/contactsCreate.example.ts +40 -0
- package/packages/orq-rc/examples/package-lock.json +626 -0
- package/packages/orq-rc/examples/package.json +18 -0
- 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/deploymentsStream.ts +7 -8
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +114 -231
- package/packages/orq-rc/src/lib/matchers.ts +1 -4
- 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/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/createeval.ts +16 -16
- 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/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.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/retrievecontact.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/updatecontact.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/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/sdk/knowledge.d.ts +4 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +7 -0
- package/sdk/knowledge.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deploymentsStream.ts +7 -8
- package/src/funcs/{knowledgeBasesChunkText.ts → knowledgeCreate.ts} +11 -13
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +114 -231
- package/src/lib/matchers.ts +1 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/knowledgeCreate.ts +35 -0
- 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/createknowledge.ts +846 -0
- 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/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -1
- 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/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
- package/src/models/operations/updateknowledge.ts +266 -206
- package/src/sdk/knowledge.ts +15 -0
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/knowledgebases/README.md +0 -94
- package/funcs/knowledgeBasesChunkText.d.ts.map +0 -1
- package/funcs/knowledgeBasesChunkText.js.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts +0 -8
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts.map +0 -1
- package/mcp-server/tools/knowledgeBasesChunkText.js.map +0 -1
- package/models/operations/chunktext.d.ts +0 -961
- package/models/operations/chunktext.d.ts.map +0 -1
- package/models/operations/chunktext.js +0 -883
- package/models/operations/chunktext.js.map +0 -1
- package/sdk/knowledgebases.d.ts +0 -12
- package/sdk/knowledgebases.d.ts.map +0 -1
- package/sdk/knowledgebases.js +0 -22
- package/sdk/knowledgebases.js.map +0 -1
- package/src/mcp-server/tools/knowledgeBasesChunkText.ts +0 -37
- package/src/models/operations/chunktext.ts +0 -1629
- package/src/sdk/knowledgebases.ts +0 -27
|
@@ -1,961 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
7
|
-
*/
|
|
8
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType: {
|
|
9
|
-
readonly Chunks: "chunks";
|
|
10
|
-
readonly Texts: "texts";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
14
|
-
*/
|
|
15
|
-
export type ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType = ClosedEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType>;
|
|
16
|
-
export declare const AgenticChunker: {
|
|
17
|
-
readonly Agentic: "agentic";
|
|
18
|
-
};
|
|
19
|
-
export type AgenticChunker = ClosedEnum<typeof AgenticChunker>;
|
|
20
|
-
/**
|
|
21
|
-
* Agentic LLM-powered chunker that uses AI to determine optimal split points. Best for complex documents requiring intelligent segmentation.
|
|
22
|
-
*/
|
|
23
|
-
export type AgenticChunkerStrategy = {
|
|
24
|
-
/**
|
|
25
|
-
* The text content to be chunked
|
|
26
|
-
*/
|
|
27
|
-
text: string;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to include metadata for each chunk
|
|
30
|
-
*/
|
|
31
|
-
metadata?: boolean | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
34
|
-
*/
|
|
35
|
-
returnType?: ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType | undefined;
|
|
36
|
-
strategy: AgenticChunker;
|
|
37
|
-
/**
|
|
38
|
-
* Chat model to use for chunking. (Available models)[https://docs.orq.ai/docs/proxy#chat-models]
|
|
39
|
-
*/
|
|
40
|
-
model: string;
|
|
41
|
-
/**
|
|
42
|
-
* Maximum tokens per chunk
|
|
43
|
-
*/
|
|
44
|
-
chunkSize?: number | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Size of candidate splits for LLM evaluation
|
|
47
|
-
*/
|
|
48
|
-
candidateSize?: number | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Minimum characters allowed per chunk
|
|
51
|
-
*/
|
|
52
|
-
minCharactersPerChunk?: number | undefined;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
56
|
-
*/
|
|
57
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestReturnType: {
|
|
58
|
-
readonly Chunks: "chunks";
|
|
59
|
-
readonly Texts: "texts";
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
63
|
-
*/
|
|
64
|
-
export type ChunkTextChunkingRequestKnowledgeBasesRequestReturnType = ClosedEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestReturnType>;
|
|
65
|
-
export declare const SDPMChunker: {
|
|
66
|
-
readonly Sdpm: "sdpm";
|
|
67
|
-
};
|
|
68
|
-
export type SDPMChunker = ClosedEnum<typeof SDPMChunker>;
|
|
69
|
-
export declare const ChunkTextThreshold2: {
|
|
70
|
-
readonly Auto: "auto";
|
|
71
|
-
};
|
|
72
|
-
export type ChunkTextThreshold2 = ClosedEnum<typeof ChunkTextThreshold2>;
|
|
73
|
-
/**
|
|
74
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
75
|
-
*/
|
|
76
|
-
export type ChunkingRequestThreshold = number | ChunkTextThreshold2;
|
|
77
|
-
/**
|
|
78
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
79
|
-
*/
|
|
80
|
-
export declare const ChunkingRequestMode: {
|
|
81
|
-
readonly Window: "window";
|
|
82
|
-
readonly Sentence: "sentence";
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
86
|
-
*/
|
|
87
|
-
export type ChunkingRequestMode = ClosedEnum<typeof ChunkingRequestMode>;
|
|
88
|
-
/**
|
|
89
|
-
* Sub-Document Prose Model chunker that uses skip-gram patterns to identify optimal split points. Good for technical documents with structured content.
|
|
90
|
-
*/
|
|
91
|
-
export type SDPMChunkerStrategy = {
|
|
92
|
-
/**
|
|
93
|
-
* The text content to be chunked
|
|
94
|
-
*/
|
|
95
|
-
text: string;
|
|
96
|
-
/**
|
|
97
|
-
* Whether to include metadata for each chunk
|
|
98
|
-
*/
|
|
99
|
-
metadata?: boolean | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
102
|
-
*/
|
|
103
|
-
returnType?: ChunkTextChunkingRequestKnowledgeBasesRequestReturnType | undefined;
|
|
104
|
-
strategy: SDPMChunker;
|
|
105
|
-
/**
|
|
106
|
-
* Maximum tokens per chunk
|
|
107
|
-
*/
|
|
108
|
-
chunkSize?: number | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* Window size for skip-gram patterns
|
|
111
|
-
*/
|
|
112
|
-
skipWindow?: number | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
115
|
-
*/
|
|
116
|
-
threshold?: number | ChunkTextThreshold2 | undefined;
|
|
117
|
-
/**
|
|
118
|
-
* Embedding model to use for semantic similarity. (Available embedding models)[https://docs.orq.ai/docs/proxy#embedding-models]
|
|
119
|
-
*/
|
|
120
|
-
embeddingModel: string;
|
|
121
|
-
/**
|
|
122
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
123
|
-
*/
|
|
124
|
-
mode?: ChunkingRequestMode | undefined;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
128
|
-
*/
|
|
129
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesReturnType: {
|
|
130
|
-
readonly Chunks: "chunks";
|
|
131
|
-
readonly Texts: "texts";
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
135
|
-
*/
|
|
136
|
-
export type ChunkTextChunkingRequestKnowledgeBasesReturnType = ClosedEnum<typeof ChunkTextChunkingRequestKnowledgeBasesReturnType>;
|
|
137
|
-
export declare const SemanticChunker: {
|
|
138
|
-
readonly Semantic: "semantic";
|
|
139
|
-
};
|
|
140
|
-
export type SemanticChunker = ClosedEnum<typeof SemanticChunker>;
|
|
141
|
-
export declare const Threshold2: {
|
|
142
|
-
readonly Auto: "auto";
|
|
143
|
-
};
|
|
144
|
-
export type Threshold2 = ClosedEnum<typeof Threshold2>;
|
|
145
|
-
/**
|
|
146
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
147
|
-
*/
|
|
148
|
-
export type Threshold = number | Threshold2;
|
|
149
|
-
/**
|
|
150
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
151
|
-
*/
|
|
152
|
-
export declare const Mode: {
|
|
153
|
-
readonly Window: "window";
|
|
154
|
-
readonly Sentence: "sentence";
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
158
|
-
*/
|
|
159
|
-
export type Mode = ClosedEnum<typeof Mode>;
|
|
160
|
-
/**
|
|
161
|
-
* Groups semantically similar sentences using embeddings. Excellent for maintaining topic coherence and context within chunks.
|
|
162
|
-
*/
|
|
163
|
-
export type SemanticChunkerStrategy = {
|
|
164
|
-
/**
|
|
165
|
-
* The text content to be chunked
|
|
166
|
-
*/
|
|
167
|
-
text: string;
|
|
168
|
-
/**
|
|
169
|
-
* Whether to include metadata for each chunk
|
|
170
|
-
*/
|
|
171
|
-
metadata?: boolean | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
174
|
-
*/
|
|
175
|
-
returnType?: ChunkTextChunkingRequestKnowledgeBasesReturnType | undefined;
|
|
176
|
-
strategy: SemanticChunker;
|
|
177
|
-
/**
|
|
178
|
-
* Maximum tokens per chunk
|
|
179
|
-
*/
|
|
180
|
-
chunkSize?: number | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
183
|
-
*/
|
|
184
|
-
threshold?: number | Threshold2 | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* Embedding model to use for semantic similarity. (Available embedding models)[https://docs.orq.ai/docs/proxy#embedding-models]
|
|
187
|
-
*/
|
|
188
|
-
embeddingModel: string;
|
|
189
|
-
/**
|
|
190
|
-
* Chunking mode: window-based or sentence-based similarity
|
|
191
|
-
*/
|
|
192
|
-
mode?: Mode | undefined;
|
|
193
|
-
/**
|
|
194
|
-
* Window size for similarity comparison
|
|
195
|
-
*/
|
|
196
|
-
similarityWindow?: number | undefined;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
200
|
-
*/
|
|
201
|
-
export declare const ChunkTextChunkingRequestReturnType: {
|
|
202
|
-
readonly Chunks: "chunks";
|
|
203
|
-
readonly Texts: "texts";
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
207
|
-
*/
|
|
208
|
-
export type ChunkTextChunkingRequestReturnType = ClosedEnum<typeof ChunkTextChunkingRequestReturnType>;
|
|
209
|
-
export declare const RecursiveChunker: {
|
|
210
|
-
readonly Recursive: "recursive";
|
|
211
|
-
};
|
|
212
|
-
export type RecursiveChunker = ClosedEnum<typeof RecursiveChunker>;
|
|
213
|
-
/**
|
|
214
|
-
* Recursively splits text using a hierarchy of separators (paragraphs, sentences, words). Versatile general-purpose chunker that preserves document structure.
|
|
215
|
-
*/
|
|
216
|
-
export type RecursiveChunkerStrategy = {
|
|
217
|
-
/**
|
|
218
|
-
* The text content to be chunked
|
|
219
|
-
*/
|
|
220
|
-
text: string;
|
|
221
|
-
/**
|
|
222
|
-
* Whether to include metadata for each chunk
|
|
223
|
-
*/
|
|
224
|
-
metadata?: boolean | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
227
|
-
*/
|
|
228
|
-
returnType?: ChunkTextChunkingRequestReturnType | undefined;
|
|
229
|
-
strategy: RecursiveChunker;
|
|
230
|
-
/**
|
|
231
|
-
* Maximum tokens per chunk
|
|
232
|
-
*/
|
|
233
|
-
chunkSize?: number | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Hierarchy of separators to use for splitting
|
|
236
|
-
*/
|
|
237
|
-
separators?: Array<string> | undefined;
|
|
238
|
-
/**
|
|
239
|
-
* Minimum characters allowed per chunk
|
|
240
|
-
*/
|
|
241
|
-
minCharactersPerChunk?: number | undefined;
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
245
|
-
*/
|
|
246
|
-
export declare const ChunkingRequestReturnType: {
|
|
247
|
-
readonly Chunks: "chunks";
|
|
248
|
-
readonly Texts: "texts";
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
252
|
-
*/
|
|
253
|
-
export type ChunkingRequestReturnType = ClosedEnum<typeof ChunkingRequestReturnType>;
|
|
254
|
-
export declare const SentenceChunker: {
|
|
255
|
-
readonly Sentence: "sentence";
|
|
256
|
-
};
|
|
257
|
-
export type SentenceChunker = ClosedEnum<typeof SentenceChunker>;
|
|
258
|
-
/**
|
|
259
|
-
* Splits text at sentence boundaries while respecting token limits. Ideal for maintaining semantic coherence and readability.
|
|
260
|
-
*/
|
|
261
|
-
export type SentenceChunkerStrategy = {
|
|
262
|
-
/**
|
|
263
|
-
* The text content to be chunked
|
|
264
|
-
*/
|
|
265
|
-
text: string;
|
|
266
|
-
/**
|
|
267
|
-
* Whether to include metadata for each chunk
|
|
268
|
-
*/
|
|
269
|
-
metadata?: boolean | undefined;
|
|
270
|
-
/**
|
|
271
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
272
|
-
*/
|
|
273
|
-
returnType?: ChunkingRequestReturnType | undefined;
|
|
274
|
-
strategy: SentenceChunker;
|
|
275
|
-
/**
|
|
276
|
-
* Maximum tokens per chunk
|
|
277
|
-
*/
|
|
278
|
-
chunkSize?: number | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* Number of overlapping tokens between chunks
|
|
281
|
-
*/
|
|
282
|
-
chunkOverlap?: number | undefined;
|
|
283
|
-
/**
|
|
284
|
-
* Minimum number of sentences per chunk
|
|
285
|
-
*/
|
|
286
|
-
minSentencesPerChunk?: number | undefined;
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
290
|
-
*/
|
|
291
|
-
export declare const ReturnTypeT: {
|
|
292
|
-
readonly Chunks: "chunks";
|
|
293
|
-
readonly Texts: "texts";
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
297
|
-
*/
|
|
298
|
-
export type ReturnTypeT = ClosedEnum<typeof ReturnTypeT>;
|
|
299
|
-
export declare const TokenChunker: {
|
|
300
|
-
readonly Token: "token";
|
|
301
|
-
};
|
|
302
|
-
export type TokenChunker = ClosedEnum<typeof TokenChunker>;
|
|
303
|
-
/**
|
|
304
|
-
* Splits text based on token count. Best for ensuring chunks fit within LLM context windows and maintaining consistent chunk sizes for embedding models.
|
|
305
|
-
*/
|
|
306
|
-
export type TokenChunkerStrategy = {
|
|
307
|
-
/**
|
|
308
|
-
* The text content to be chunked
|
|
309
|
-
*/
|
|
310
|
-
text: string;
|
|
311
|
-
/**
|
|
312
|
-
* Whether to include metadata for each chunk
|
|
313
|
-
*/
|
|
314
|
-
metadata?: boolean | undefined;
|
|
315
|
-
/**
|
|
316
|
-
* Return format: chunks (with metadata) or texts (plain strings)
|
|
317
|
-
*/
|
|
318
|
-
returnType?: ReturnTypeT | undefined;
|
|
319
|
-
strategy: TokenChunker;
|
|
320
|
-
/**
|
|
321
|
-
* Maximum tokens per chunk
|
|
322
|
-
*/
|
|
323
|
-
chunkSize?: number | undefined;
|
|
324
|
-
/**
|
|
325
|
-
* Number of tokens to overlap between chunks
|
|
326
|
-
*/
|
|
327
|
-
chunkOverlap?: number | undefined;
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* Request payload for text chunking with strategy-specific configuration
|
|
331
|
-
*/
|
|
332
|
-
export type ChunkTextChunkingRequest = SemanticChunkerStrategy | SDPMChunkerStrategy | AgenticChunkerStrategy | TokenChunkerStrategy | SentenceChunkerStrategy | RecursiveChunkerStrategy;
|
|
333
|
-
export type ChunkTextMetadata = {
|
|
334
|
-
startIndex: number | null;
|
|
335
|
-
endIndex: number | null;
|
|
336
|
-
tokenCount: number | null;
|
|
337
|
-
};
|
|
338
|
-
export type Chunks = {
|
|
339
|
-
/**
|
|
340
|
-
* The text content of the chunk
|
|
341
|
-
*/
|
|
342
|
-
text: string;
|
|
343
|
-
/**
|
|
344
|
-
* The position index of this chunk in the sequence
|
|
345
|
-
*/
|
|
346
|
-
index: number;
|
|
347
|
-
metadata?: ChunkTextMetadata | undefined;
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Text successfully chunked
|
|
351
|
-
*/
|
|
352
|
-
export type ChunkTextResponseBody = {
|
|
353
|
-
chunks: Array<Chunks>;
|
|
354
|
-
};
|
|
355
|
-
/** @internal */
|
|
356
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType>;
|
|
357
|
-
/** @internal */
|
|
358
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType>;
|
|
359
|
-
/**
|
|
360
|
-
* @internal
|
|
361
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
362
|
-
*/
|
|
363
|
-
export declare namespace ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$ {
|
|
364
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$inboundSchema` instead. */
|
|
365
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
366
|
-
readonly Chunks: "chunks";
|
|
367
|
-
readonly Texts: "texts";
|
|
368
|
-
}>;
|
|
369
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesRequestRequestBodyReturnType$outboundSchema` instead. */
|
|
370
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
371
|
-
readonly Chunks: "chunks";
|
|
372
|
-
readonly Texts: "texts";
|
|
373
|
-
}>;
|
|
374
|
-
}
|
|
375
|
-
/** @internal */
|
|
376
|
-
export declare const AgenticChunker$inboundSchema: z.ZodNativeEnum<typeof AgenticChunker>;
|
|
377
|
-
/** @internal */
|
|
378
|
-
export declare const AgenticChunker$outboundSchema: z.ZodNativeEnum<typeof AgenticChunker>;
|
|
379
|
-
/**
|
|
380
|
-
* @internal
|
|
381
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
382
|
-
*/
|
|
383
|
-
export declare namespace AgenticChunker$ {
|
|
384
|
-
/** @deprecated use `AgenticChunker$inboundSchema` instead. */
|
|
385
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
386
|
-
readonly Agentic: "agentic";
|
|
387
|
-
}>;
|
|
388
|
-
/** @deprecated use `AgenticChunker$outboundSchema` instead. */
|
|
389
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
390
|
-
readonly Agentic: "agentic";
|
|
391
|
-
}>;
|
|
392
|
-
}
|
|
393
|
-
/** @internal */
|
|
394
|
-
export declare const AgenticChunkerStrategy$inboundSchema: z.ZodType<AgenticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
395
|
-
/** @internal */
|
|
396
|
-
export type AgenticChunkerStrategy$Outbound = {
|
|
397
|
-
text: string;
|
|
398
|
-
metadata: boolean;
|
|
399
|
-
return_type: string;
|
|
400
|
-
strategy: string;
|
|
401
|
-
model: string;
|
|
402
|
-
chunk_size: number;
|
|
403
|
-
candidate_size: number;
|
|
404
|
-
min_characters_per_chunk: number;
|
|
405
|
-
};
|
|
406
|
-
/** @internal */
|
|
407
|
-
export declare const AgenticChunkerStrategy$outboundSchema: z.ZodType<AgenticChunkerStrategy$Outbound, z.ZodTypeDef, AgenticChunkerStrategy>;
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
411
|
-
*/
|
|
412
|
-
export declare namespace AgenticChunkerStrategy$ {
|
|
413
|
-
/** @deprecated use `AgenticChunkerStrategy$inboundSchema` instead. */
|
|
414
|
-
const inboundSchema: z.ZodType<AgenticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
415
|
-
/** @deprecated use `AgenticChunkerStrategy$outboundSchema` instead. */
|
|
416
|
-
const outboundSchema: z.ZodType<AgenticChunkerStrategy$Outbound, z.ZodTypeDef, AgenticChunkerStrategy>;
|
|
417
|
-
/** @deprecated use `AgenticChunkerStrategy$Outbound` instead. */
|
|
418
|
-
type Outbound = AgenticChunkerStrategy$Outbound;
|
|
419
|
-
}
|
|
420
|
-
export declare function agenticChunkerStrategyToJSON(agenticChunkerStrategy: AgenticChunkerStrategy): string;
|
|
421
|
-
export declare function agenticChunkerStrategyFromJSON(jsonString: string): SafeParseResult<AgenticChunkerStrategy, SDKValidationError>;
|
|
422
|
-
/** @internal */
|
|
423
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestReturnType>;
|
|
424
|
-
/** @internal */
|
|
425
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesRequestReturnType>;
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
-
*/
|
|
430
|
-
export declare namespace ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$ {
|
|
431
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$inboundSchema` instead. */
|
|
432
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
433
|
-
readonly Chunks: "chunks";
|
|
434
|
-
readonly Texts: "texts";
|
|
435
|
-
}>;
|
|
436
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesRequestReturnType$outboundSchema` instead. */
|
|
437
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
438
|
-
readonly Chunks: "chunks";
|
|
439
|
-
readonly Texts: "texts";
|
|
440
|
-
}>;
|
|
441
|
-
}
|
|
442
|
-
/** @internal */
|
|
443
|
-
export declare const SDPMChunker$inboundSchema: z.ZodNativeEnum<typeof SDPMChunker>;
|
|
444
|
-
/** @internal */
|
|
445
|
-
export declare const SDPMChunker$outboundSchema: z.ZodNativeEnum<typeof SDPMChunker>;
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
-
*/
|
|
450
|
-
export declare namespace SDPMChunker$ {
|
|
451
|
-
/** @deprecated use `SDPMChunker$inboundSchema` instead. */
|
|
452
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
453
|
-
readonly Sdpm: "sdpm";
|
|
454
|
-
}>;
|
|
455
|
-
/** @deprecated use `SDPMChunker$outboundSchema` instead. */
|
|
456
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
457
|
-
readonly Sdpm: "sdpm";
|
|
458
|
-
}>;
|
|
459
|
-
}
|
|
460
|
-
/** @internal */
|
|
461
|
-
export declare const ChunkTextThreshold2$inboundSchema: z.ZodNativeEnum<typeof ChunkTextThreshold2>;
|
|
462
|
-
/** @internal */
|
|
463
|
-
export declare const ChunkTextThreshold2$outboundSchema: z.ZodNativeEnum<typeof ChunkTextThreshold2>;
|
|
464
|
-
/**
|
|
465
|
-
* @internal
|
|
466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
-
*/
|
|
468
|
-
export declare namespace ChunkTextThreshold2$ {
|
|
469
|
-
/** @deprecated use `ChunkTextThreshold2$inboundSchema` instead. */
|
|
470
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
471
|
-
readonly Auto: "auto";
|
|
472
|
-
}>;
|
|
473
|
-
/** @deprecated use `ChunkTextThreshold2$outboundSchema` instead. */
|
|
474
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
475
|
-
readonly Auto: "auto";
|
|
476
|
-
}>;
|
|
477
|
-
}
|
|
478
|
-
/** @internal */
|
|
479
|
-
export declare const ChunkingRequestThreshold$inboundSchema: z.ZodType<ChunkingRequestThreshold, z.ZodTypeDef, unknown>;
|
|
480
|
-
/** @internal */
|
|
481
|
-
export type ChunkingRequestThreshold$Outbound = number | string;
|
|
482
|
-
/** @internal */
|
|
483
|
-
export declare const ChunkingRequestThreshold$outboundSchema: z.ZodType<ChunkingRequestThreshold$Outbound, z.ZodTypeDef, ChunkingRequestThreshold>;
|
|
484
|
-
/**
|
|
485
|
-
* @internal
|
|
486
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
487
|
-
*/
|
|
488
|
-
export declare namespace ChunkingRequestThreshold$ {
|
|
489
|
-
/** @deprecated use `ChunkingRequestThreshold$inboundSchema` instead. */
|
|
490
|
-
const inboundSchema: z.ZodType<ChunkingRequestThreshold, z.ZodTypeDef, unknown>;
|
|
491
|
-
/** @deprecated use `ChunkingRequestThreshold$outboundSchema` instead. */
|
|
492
|
-
const outboundSchema: z.ZodType<ChunkingRequestThreshold$Outbound, z.ZodTypeDef, ChunkingRequestThreshold>;
|
|
493
|
-
/** @deprecated use `ChunkingRequestThreshold$Outbound` instead. */
|
|
494
|
-
type Outbound = ChunkingRequestThreshold$Outbound;
|
|
495
|
-
}
|
|
496
|
-
export declare function chunkingRequestThresholdToJSON(chunkingRequestThreshold: ChunkingRequestThreshold): string;
|
|
497
|
-
export declare function chunkingRequestThresholdFromJSON(jsonString: string): SafeParseResult<ChunkingRequestThreshold, SDKValidationError>;
|
|
498
|
-
/** @internal */
|
|
499
|
-
export declare const ChunkingRequestMode$inboundSchema: z.ZodNativeEnum<typeof ChunkingRequestMode>;
|
|
500
|
-
/** @internal */
|
|
501
|
-
export declare const ChunkingRequestMode$outboundSchema: z.ZodNativeEnum<typeof ChunkingRequestMode>;
|
|
502
|
-
/**
|
|
503
|
-
* @internal
|
|
504
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
505
|
-
*/
|
|
506
|
-
export declare namespace ChunkingRequestMode$ {
|
|
507
|
-
/** @deprecated use `ChunkingRequestMode$inboundSchema` instead. */
|
|
508
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
509
|
-
readonly Window: "window";
|
|
510
|
-
readonly Sentence: "sentence";
|
|
511
|
-
}>;
|
|
512
|
-
/** @deprecated use `ChunkingRequestMode$outboundSchema` instead. */
|
|
513
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
514
|
-
readonly Window: "window";
|
|
515
|
-
readonly Sentence: "sentence";
|
|
516
|
-
}>;
|
|
517
|
-
}
|
|
518
|
-
/** @internal */
|
|
519
|
-
export declare const SDPMChunkerStrategy$inboundSchema: z.ZodType<SDPMChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
520
|
-
/** @internal */
|
|
521
|
-
export type SDPMChunkerStrategy$Outbound = {
|
|
522
|
-
text: string;
|
|
523
|
-
metadata: boolean;
|
|
524
|
-
return_type: string;
|
|
525
|
-
strategy: string;
|
|
526
|
-
chunk_size: number;
|
|
527
|
-
skip_window: number;
|
|
528
|
-
threshold?: number | string | undefined;
|
|
529
|
-
embedding_model: string;
|
|
530
|
-
mode: string;
|
|
531
|
-
};
|
|
532
|
-
/** @internal */
|
|
533
|
-
export declare const SDPMChunkerStrategy$outboundSchema: z.ZodType<SDPMChunkerStrategy$Outbound, z.ZodTypeDef, SDPMChunkerStrategy>;
|
|
534
|
-
/**
|
|
535
|
-
* @internal
|
|
536
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
537
|
-
*/
|
|
538
|
-
export declare namespace SDPMChunkerStrategy$ {
|
|
539
|
-
/** @deprecated use `SDPMChunkerStrategy$inboundSchema` instead. */
|
|
540
|
-
const inboundSchema: z.ZodType<SDPMChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
541
|
-
/** @deprecated use `SDPMChunkerStrategy$outboundSchema` instead. */
|
|
542
|
-
const outboundSchema: z.ZodType<SDPMChunkerStrategy$Outbound, z.ZodTypeDef, SDPMChunkerStrategy>;
|
|
543
|
-
/** @deprecated use `SDPMChunkerStrategy$Outbound` instead. */
|
|
544
|
-
type Outbound = SDPMChunkerStrategy$Outbound;
|
|
545
|
-
}
|
|
546
|
-
export declare function sdpmChunkerStrategyToJSON(sdpmChunkerStrategy: SDPMChunkerStrategy): string;
|
|
547
|
-
export declare function sdpmChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SDPMChunkerStrategy, SDKValidationError>;
|
|
548
|
-
/** @internal */
|
|
549
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesReturnType>;
|
|
550
|
-
/** @internal */
|
|
551
|
-
export declare const ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestKnowledgeBasesReturnType>;
|
|
552
|
-
/**
|
|
553
|
-
* @internal
|
|
554
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
555
|
-
*/
|
|
556
|
-
export declare namespace ChunkTextChunkingRequestKnowledgeBasesReturnType$ {
|
|
557
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesReturnType$inboundSchema` instead. */
|
|
558
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
559
|
-
readonly Chunks: "chunks";
|
|
560
|
-
readonly Texts: "texts";
|
|
561
|
-
}>;
|
|
562
|
-
/** @deprecated use `ChunkTextChunkingRequestKnowledgeBasesReturnType$outboundSchema` instead. */
|
|
563
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
564
|
-
readonly Chunks: "chunks";
|
|
565
|
-
readonly Texts: "texts";
|
|
566
|
-
}>;
|
|
567
|
-
}
|
|
568
|
-
/** @internal */
|
|
569
|
-
export declare const SemanticChunker$inboundSchema: z.ZodNativeEnum<typeof SemanticChunker>;
|
|
570
|
-
/** @internal */
|
|
571
|
-
export declare const SemanticChunker$outboundSchema: z.ZodNativeEnum<typeof SemanticChunker>;
|
|
572
|
-
/**
|
|
573
|
-
* @internal
|
|
574
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
575
|
-
*/
|
|
576
|
-
export declare namespace SemanticChunker$ {
|
|
577
|
-
/** @deprecated use `SemanticChunker$inboundSchema` instead. */
|
|
578
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
579
|
-
readonly Semantic: "semantic";
|
|
580
|
-
}>;
|
|
581
|
-
/** @deprecated use `SemanticChunker$outboundSchema` instead. */
|
|
582
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
583
|
-
readonly Semantic: "semantic";
|
|
584
|
-
}>;
|
|
585
|
-
}
|
|
586
|
-
/** @internal */
|
|
587
|
-
export declare const Threshold2$inboundSchema: z.ZodNativeEnum<typeof Threshold2>;
|
|
588
|
-
/** @internal */
|
|
589
|
-
export declare const Threshold2$outboundSchema: z.ZodNativeEnum<typeof Threshold2>;
|
|
590
|
-
/**
|
|
591
|
-
* @internal
|
|
592
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
593
|
-
*/
|
|
594
|
-
export declare namespace Threshold2$ {
|
|
595
|
-
/** @deprecated use `Threshold2$inboundSchema` instead. */
|
|
596
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
597
|
-
readonly Auto: "auto";
|
|
598
|
-
}>;
|
|
599
|
-
/** @deprecated use `Threshold2$outboundSchema` instead. */
|
|
600
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
601
|
-
readonly Auto: "auto";
|
|
602
|
-
}>;
|
|
603
|
-
}
|
|
604
|
-
/** @internal */
|
|
605
|
-
export declare const Threshold$inboundSchema: z.ZodType<Threshold, z.ZodTypeDef, unknown>;
|
|
606
|
-
/** @internal */
|
|
607
|
-
export type Threshold$Outbound = number | string;
|
|
608
|
-
/** @internal */
|
|
609
|
-
export declare const Threshold$outboundSchema: z.ZodType<Threshold$Outbound, z.ZodTypeDef, Threshold>;
|
|
610
|
-
/**
|
|
611
|
-
* @internal
|
|
612
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
613
|
-
*/
|
|
614
|
-
export declare namespace Threshold$ {
|
|
615
|
-
/** @deprecated use `Threshold$inboundSchema` instead. */
|
|
616
|
-
const inboundSchema: z.ZodType<Threshold, z.ZodTypeDef, unknown>;
|
|
617
|
-
/** @deprecated use `Threshold$outboundSchema` instead. */
|
|
618
|
-
const outboundSchema: z.ZodType<Threshold$Outbound, z.ZodTypeDef, Threshold>;
|
|
619
|
-
/** @deprecated use `Threshold$Outbound` instead. */
|
|
620
|
-
type Outbound = Threshold$Outbound;
|
|
621
|
-
}
|
|
622
|
-
export declare function thresholdToJSON(threshold: Threshold): string;
|
|
623
|
-
export declare function thresholdFromJSON(jsonString: string): SafeParseResult<Threshold, SDKValidationError>;
|
|
624
|
-
/** @internal */
|
|
625
|
-
export declare const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
626
|
-
/** @internal */
|
|
627
|
-
export declare const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
628
|
-
/**
|
|
629
|
-
* @internal
|
|
630
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
631
|
-
*/
|
|
632
|
-
export declare namespace Mode$ {
|
|
633
|
-
/** @deprecated use `Mode$inboundSchema` instead. */
|
|
634
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
635
|
-
readonly Window: "window";
|
|
636
|
-
readonly Sentence: "sentence";
|
|
637
|
-
}>;
|
|
638
|
-
/** @deprecated use `Mode$outboundSchema` instead. */
|
|
639
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
640
|
-
readonly Window: "window";
|
|
641
|
-
readonly Sentence: "sentence";
|
|
642
|
-
}>;
|
|
643
|
-
}
|
|
644
|
-
/** @internal */
|
|
645
|
-
export declare const SemanticChunkerStrategy$inboundSchema: z.ZodType<SemanticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
646
|
-
/** @internal */
|
|
647
|
-
export type SemanticChunkerStrategy$Outbound = {
|
|
648
|
-
text: string;
|
|
649
|
-
metadata: boolean;
|
|
650
|
-
return_type: string;
|
|
651
|
-
strategy: string;
|
|
652
|
-
chunk_size: number;
|
|
653
|
-
threshold?: number | string | undefined;
|
|
654
|
-
embedding_model: string;
|
|
655
|
-
mode: string;
|
|
656
|
-
similarity_window: number;
|
|
657
|
-
};
|
|
658
|
-
/** @internal */
|
|
659
|
-
export declare const SemanticChunkerStrategy$outboundSchema: z.ZodType<SemanticChunkerStrategy$Outbound, z.ZodTypeDef, SemanticChunkerStrategy>;
|
|
660
|
-
/**
|
|
661
|
-
* @internal
|
|
662
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
663
|
-
*/
|
|
664
|
-
export declare namespace SemanticChunkerStrategy$ {
|
|
665
|
-
/** @deprecated use `SemanticChunkerStrategy$inboundSchema` instead. */
|
|
666
|
-
const inboundSchema: z.ZodType<SemanticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
667
|
-
/** @deprecated use `SemanticChunkerStrategy$outboundSchema` instead. */
|
|
668
|
-
const outboundSchema: z.ZodType<SemanticChunkerStrategy$Outbound, z.ZodTypeDef, SemanticChunkerStrategy>;
|
|
669
|
-
/** @deprecated use `SemanticChunkerStrategy$Outbound` instead. */
|
|
670
|
-
type Outbound = SemanticChunkerStrategy$Outbound;
|
|
671
|
-
}
|
|
672
|
-
export declare function semanticChunkerStrategyToJSON(semanticChunkerStrategy: SemanticChunkerStrategy): string;
|
|
673
|
-
export declare function semanticChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SemanticChunkerStrategy, SDKValidationError>;
|
|
674
|
-
/** @internal */
|
|
675
|
-
export declare const ChunkTextChunkingRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestReturnType>;
|
|
676
|
-
/** @internal */
|
|
677
|
-
export declare const ChunkTextChunkingRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkTextChunkingRequestReturnType>;
|
|
678
|
-
/**
|
|
679
|
-
* @internal
|
|
680
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
681
|
-
*/
|
|
682
|
-
export declare namespace ChunkTextChunkingRequestReturnType$ {
|
|
683
|
-
/** @deprecated use `ChunkTextChunkingRequestReturnType$inboundSchema` instead. */
|
|
684
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
685
|
-
readonly Chunks: "chunks";
|
|
686
|
-
readonly Texts: "texts";
|
|
687
|
-
}>;
|
|
688
|
-
/** @deprecated use `ChunkTextChunkingRequestReturnType$outboundSchema` instead. */
|
|
689
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
690
|
-
readonly Chunks: "chunks";
|
|
691
|
-
readonly Texts: "texts";
|
|
692
|
-
}>;
|
|
693
|
-
}
|
|
694
|
-
/** @internal */
|
|
695
|
-
export declare const RecursiveChunker$inboundSchema: z.ZodNativeEnum<typeof RecursiveChunker>;
|
|
696
|
-
/** @internal */
|
|
697
|
-
export declare const RecursiveChunker$outboundSchema: z.ZodNativeEnum<typeof RecursiveChunker>;
|
|
698
|
-
/**
|
|
699
|
-
* @internal
|
|
700
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
701
|
-
*/
|
|
702
|
-
export declare namespace RecursiveChunker$ {
|
|
703
|
-
/** @deprecated use `RecursiveChunker$inboundSchema` instead. */
|
|
704
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
705
|
-
readonly Recursive: "recursive";
|
|
706
|
-
}>;
|
|
707
|
-
/** @deprecated use `RecursiveChunker$outboundSchema` instead. */
|
|
708
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
709
|
-
readonly Recursive: "recursive";
|
|
710
|
-
}>;
|
|
711
|
-
}
|
|
712
|
-
/** @internal */
|
|
713
|
-
export declare const RecursiveChunkerStrategy$inboundSchema: z.ZodType<RecursiveChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
714
|
-
/** @internal */
|
|
715
|
-
export type RecursiveChunkerStrategy$Outbound = {
|
|
716
|
-
text: string;
|
|
717
|
-
metadata: boolean;
|
|
718
|
-
return_type: string;
|
|
719
|
-
strategy: string;
|
|
720
|
-
chunk_size: number;
|
|
721
|
-
separators?: Array<string> | undefined;
|
|
722
|
-
min_characters_per_chunk: number;
|
|
723
|
-
};
|
|
724
|
-
/** @internal */
|
|
725
|
-
export declare const RecursiveChunkerStrategy$outboundSchema: z.ZodType<RecursiveChunkerStrategy$Outbound, z.ZodTypeDef, RecursiveChunkerStrategy>;
|
|
726
|
-
/**
|
|
727
|
-
* @internal
|
|
728
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
729
|
-
*/
|
|
730
|
-
export declare namespace RecursiveChunkerStrategy$ {
|
|
731
|
-
/** @deprecated use `RecursiveChunkerStrategy$inboundSchema` instead. */
|
|
732
|
-
const inboundSchema: z.ZodType<RecursiveChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
733
|
-
/** @deprecated use `RecursiveChunkerStrategy$outboundSchema` instead. */
|
|
734
|
-
const outboundSchema: z.ZodType<RecursiveChunkerStrategy$Outbound, z.ZodTypeDef, RecursiveChunkerStrategy>;
|
|
735
|
-
/** @deprecated use `RecursiveChunkerStrategy$Outbound` instead. */
|
|
736
|
-
type Outbound = RecursiveChunkerStrategy$Outbound;
|
|
737
|
-
}
|
|
738
|
-
export declare function recursiveChunkerStrategyToJSON(recursiveChunkerStrategy: RecursiveChunkerStrategy): string;
|
|
739
|
-
export declare function recursiveChunkerStrategyFromJSON(jsonString: string): SafeParseResult<RecursiveChunkerStrategy, SDKValidationError>;
|
|
740
|
-
/** @internal */
|
|
741
|
-
export declare const ChunkingRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkingRequestReturnType>;
|
|
742
|
-
/** @internal */
|
|
743
|
-
export declare const ChunkingRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkingRequestReturnType>;
|
|
744
|
-
/**
|
|
745
|
-
* @internal
|
|
746
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
747
|
-
*/
|
|
748
|
-
export declare namespace ChunkingRequestReturnType$ {
|
|
749
|
-
/** @deprecated use `ChunkingRequestReturnType$inboundSchema` instead. */
|
|
750
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
751
|
-
readonly Chunks: "chunks";
|
|
752
|
-
readonly Texts: "texts";
|
|
753
|
-
}>;
|
|
754
|
-
/** @deprecated use `ChunkingRequestReturnType$outboundSchema` instead. */
|
|
755
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
756
|
-
readonly Chunks: "chunks";
|
|
757
|
-
readonly Texts: "texts";
|
|
758
|
-
}>;
|
|
759
|
-
}
|
|
760
|
-
/** @internal */
|
|
761
|
-
export declare const SentenceChunker$inboundSchema: z.ZodNativeEnum<typeof SentenceChunker>;
|
|
762
|
-
/** @internal */
|
|
763
|
-
export declare const SentenceChunker$outboundSchema: z.ZodNativeEnum<typeof SentenceChunker>;
|
|
764
|
-
/**
|
|
765
|
-
* @internal
|
|
766
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
767
|
-
*/
|
|
768
|
-
export declare namespace SentenceChunker$ {
|
|
769
|
-
/** @deprecated use `SentenceChunker$inboundSchema` instead. */
|
|
770
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
771
|
-
readonly Sentence: "sentence";
|
|
772
|
-
}>;
|
|
773
|
-
/** @deprecated use `SentenceChunker$outboundSchema` instead. */
|
|
774
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
775
|
-
readonly Sentence: "sentence";
|
|
776
|
-
}>;
|
|
777
|
-
}
|
|
778
|
-
/** @internal */
|
|
779
|
-
export declare const SentenceChunkerStrategy$inboundSchema: z.ZodType<SentenceChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
780
|
-
/** @internal */
|
|
781
|
-
export type SentenceChunkerStrategy$Outbound = {
|
|
782
|
-
text: string;
|
|
783
|
-
metadata: boolean;
|
|
784
|
-
return_type: string;
|
|
785
|
-
strategy: string;
|
|
786
|
-
chunk_size: number;
|
|
787
|
-
chunk_overlap: number;
|
|
788
|
-
min_sentences_per_chunk: number;
|
|
789
|
-
};
|
|
790
|
-
/** @internal */
|
|
791
|
-
export declare const SentenceChunkerStrategy$outboundSchema: z.ZodType<SentenceChunkerStrategy$Outbound, z.ZodTypeDef, SentenceChunkerStrategy>;
|
|
792
|
-
/**
|
|
793
|
-
* @internal
|
|
794
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
795
|
-
*/
|
|
796
|
-
export declare namespace SentenceChunkerStrategy$ {
|
|
797
|
-
/** @deprecated use `SentenceChunkerStrategy$inboundSchema` instead. */
|
|
798
|
-
const inboundSchema: z.ZodType<SentenceChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
799
|
-
/** @deprecated use `SentenceChunkerStrategy$outboundSchema` instead. */
|
|
800
|
-
const outboundSchema: z.ZodType<SentenceChunkerStrategy$Outbound, z.ZodTypeDef, SentenceChunkerStrategy>;
|
|
801
|
-
/** @deprecated use `SentenceChunkerStrategy$Outbound` instead. */
|
|
802
|
-
type Outbound = SentenceChunkerStrategy$Outbound;
|
|
803
|
-
}
|
|
804
|
-
export declare function sentenceChunkerStrategyToJSON(sentenceChunkerStrategy: SentenceChunkerStrategy): string;
|
|
805
|
-
export declare function sentenceChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SentenceChunkerStrategy, SDKValidationError>;
|
|
806
|
-
/** @internal */
|
|
807
|
-
export declare const ReturnTypeT$inboundSchema: z.ZodNativeEnum<typeof ReturnTypeT>;
|
|
808
|
-
/** @internal */
|
|
809
|
-
export declare const ReturnTypeT$outboundSchema: z.ZodNativeEnum<typeof ReturnTypeT>;
|
|
810
|
-
/**
|
|
811
|
-
* @internal
|
|
812
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
813
|
-
*/
|
|
814
|
-
export declare namespace ReturnTypeT$ {
|
|
815
|
-
/** @deprecated use `ReturnTypeT$inboundSchema` instead. */
|
|
816
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
817
|
-
readonly Chunks: "chunks";
|
|
818
|
-
readonly Texts: "texts";
|
|
819
|
-
}>;
|
|
820
|
-
/** @deprecated use `ReturnTypeT$outboundSchema` instead. */
|
|
821
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
822
|
-
readonly Chunks: "chunks";
|
|
823
|
-
readonly Texts: "texts";
|
|
824
|
-
}>;
|
|
825
|
-
}
|
|
826
|
-
/** @internal */
|
|
827
|
-
export declare const TokenChunker$inboundSchema: z.ZodNativeEnum<typeof TokenChunker>;
|
|
828
|
-
/** @internal */
|
|
829
|
-
export declare const TokenChunker$outboundSchema: z.ZodNativeEnum<typeof TokenChunker>;
|
|
830
|
-
/**
|
|
831
|
-
* @internal
|
|
832
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
833
|
-
*/
|
|
834
|
-
export declare namespace TokenChunker$ {
|
|
835
|
-
/** @deprecated use `TokenChunker$inboundSchema` instead. */
|
|
836
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
837
|
-
readonly Token: "token";
|
|
838
|
-
}>;
|
|
839
|
-
/** @deprecated use `TokenChunker$outboundSchema` instead. */
|
|
840
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
841
|
-
readonly Token: "token";
|
|
842
|
-
}>;
|
|
843
|
-
}
|
|
844
|
-
/** @internal */
|
|
845
|
-
export declare const TokenChunkerStrategy$inboundSchema: z.ZodType<TokenChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
846
|
-
/** @internal */
|
|
847
|
-
export type TokenChunkerStrategy$Outbound = {
|
|
848
|
-
text: string;
|
|
849
|
-
metadata: boolean;
|
|
850
|
-
return_type: string;
|
|
851
|
-
strategy: string;
|
|
852
|
-
chunk_size: number;
|
|
853
|
-
chunk_overlap: number;
|
|
854
|
-
};
|
|
855
|
-
/** @internal */
|
|
856
|
-
export declare const TokenChunkerStrategy$outboundSchema: z.ZodType<TokenChunkerStrategy$Outbound, z.ZodTypeDef, TokenChunkerStrategy>;
|
|
857
|
-
/**
|
|
858
|
-
* @internal
|
|
859
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
860
|
-
*/
|
|
861
|
-
export declare namespace TokenChunkerStrategy$ {
|
|
862
|
-
/** @deprecated use `TokenChunkerStrategy$inboundSchema` instead. */
|
|
863
|
-
const inboundSchema: z.ZodType<TokenChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
864
|
-
/** @deprecated use `TokenChunkerStrategy$outboundSchema` instead. */
|
|
865
|
-
const outboundSchema: z.ZodType<TokenChunkerStrategy$Outbound, z.ZodTypeDef, TokenChunkerStrategy>;
|
|
866
|
-
/** @deprecated use `TokenChunkerStrategy$Outbound` instead. */
|
|
867
|
-
type Outbound = TokenChunkerStrategy$Outbound;
|
|
868
|
-
}
|
|
869
|
-
export declare function tokenChunkerStrategyToJSON(tokenChunkerStrategy: TokenChunkerStrategy): string;
|
|
870
|
-
export declare function tokenChunkerStrategyFromJSON(jsonString: string): SafeParseResult<TokenChunkerStrategy, SDKValidationError>;
|
|
871
|
-
/** @internal */
|
|
872
|
-
export declare const ChunkTextChunkingRequest$inboundSchema: z.ZodType<ChunkTextChunkingRequest, z.ZodTypeDef, unknown>;
|
|
873
|
-
/** @internal */
|
|
874
|
-
export type ChunkTextChunkingRequest$Outbound = SemanticChunkerStrategy$Outbound | SDPMChunkerStrategy$Outbound | AgenticChunkerStrategy$Outbound | TokenChunkerStrategy$Outbound | SentenceChunkerStrategy$Outbound | RecursiveChunkerStrategy$Outbound;
|
|
875
|
-
/** @internal */
|
|
876
|
-
export declare const ChunkTextChunkingRequest$outboundSchema: z.ZodType<ChunkTextChunkingRequest$Outbound, z.ZodTypeDef, ChunkTextChunkingRequest>;
|
|
877
|
-
/**
|
|
878
|
-
* @internal
|
|
879
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
880
|
-
*/
|
|
881
|
-
export declare namespace ChunkTextChunkingRequest$ {
|
|
882
|
-
/** @deprecated use `ChunkTextChunkingRequest$inboundSchema` instead. */
|
|
883
|
-
const inboundSchema: z.ZodType<ChunkTextChunkingRequest, z.ZodTypeDef, unknown>;
|
|
884
|
-
/** @deprecated use `ChunkTextChunkingRequest$outboundSchema` instead. */
|
|
885
|
-
const outboundSchema: z.ZodType<ChunkTextChunkingRequest$Outbound, z.ZodTypeDef, ChunkTextChunkingRequest>;
|
|
886
|
-
/** @deprecated use `ChunkTextChunkingRequest$Outbound` instead. */
|
|
887
|
-
type Outbound = ChunkTextChunkingRequest$Outbound;
|
|
888
|
-
}
|
|
889
|
-
export declare function chunkTextChunkingRequestToJSON(chunkTextChunkingRequest: ChunkTextChunkingRequest): string;
|
|
890
|
-
export declare function chunkTextChunkingRequestFromJSON(jsonString: string): SafeParseResult<ChunkTextChunkingRequest, SDKValidationError>;
|
|
891
|
-
/** @internal */
|
|
892
|
-
export declare const ChunkTextMetadata$inboundSchema: z.ZodType<ChunkTextMetadata, z.ZodTypeDef, unknown>;
|
|
893
|
-
/** @internal */
|
|
894
|
-
export type ChunkTextMetadata$Outbound = {
|
|
895
|
-
start_index: number | null;
|
|
896
|
-
end_index: number | null;
|
|
897
|
-
token_count: number | null;
|
|
898
|
-
};
|
|
899
|
-
/** @internal */
|
|
900
|
-
export declare const ChunkTextMetadata$outboundSchema: z.ZodType<ChunkTextMetadata$Outbound, z.ZodTypeDef, ChunkTextMetadata>;
|
|
901
|
-
/**
|
|
902
|
-
* @internal
|
|
903
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
904
|
-
*/
|
|
905
|
-
export declare namespace ChunkTextMetadata$ {
|
|
906
|
-
/** @deprecated use `ChunkTextMetadata$inboundSchema` instead. */
|
|
907
|
-
const inboundSchema: z.ZodType<ChunkTextMetadata, z.ZodTypeDef, unknown>;
|
|
908
|
-
/** @deprecated use `ChunkTextMetadata$outboundSchema` instead. */
|
|
909
|
-
const outboundSchema: z.ZodType<ChunkTextMetadata$Outbound, z.ZodTypeDef, ChunkTextMetadata>;
|
|
910
|
-
/** @deprecated use `ChunkTextMetadata$Outbound` instead. */
|
|
911
|
-
type Outbound = ChunkTextMetadata$Outbound;
|
|
912
|
-
}
|
|
913
|
-
export declare function chunkTextMetadataToJSON(chunkTextMetadata: ChunkTextMetadata): string;
|
|
914
|
-
export declare function chunkTextMetadataFromJSON(jsonString: string): SafeParseResult<ChunkTextMetadata, SDKValidationError>;
|
|
915
|
-
/** @internal */
|
|
916
|
-
export declare const Chunks$inboundSchema: z.ZodType<Chunks, z.ZodTypeDef, unknown>;
|
|
917
|
-
/** @internal */
|
|
918
|
-
export type Chunks$Outbound = {
|
|
919
|
-
text: string;
|
|
920
|
-
index: number;
|
|
921
|
-
metadata?: ChunkTextMetadata$Outbound | undefined;
|
|
922
|
-
};
|
|
923
|
-
/** @internal */
|
|
924
|
-
export declare const Chunks$outboundSchema: z.ZodType<Chunks$Outbound, z.ZodTypeDef, Chunks>;
|
|
925
|
-
/**
|
|
926
|
-
* @internal
|
|
927
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
928
|
-
*/
|
|
929
|
-
export declare namespace Chunks$ {
|
|
930
|
-
/** @deprecated use `Chunks$inboundSchema` instead. */
|
|
931
|
-
const inboundSchema: z.ZodType<Chunks, z.ZodTypeDef, unknown>;
|
|
932
|
-
/** @deprecated use `Chunks$outboundSchema` instead. */
|
|
933
|
-
const outboundSchema: z.ZodType<Chunks$Outbound, z.ZodTypeDef, Chunks>;
|
|
934
|
-
/** @deprecated use `Chunks$Outbound` instead. */
|
|
935
|
-
type Outbound = Chunks$Outbound;
|
|
936
|
-
}
|
|
937
|
-
export declare function chunksToJSON(chunks: Chunks): string;
|
|
938
|
-
export declare function chunksFromJSON(jsonString: string): SafeParseResult<Chunks, SDKValidationError>;
|
|
939
|
-
/** @internal */
|
|
940
|
-
export declare const ChunkTextResponseBody$inboundSchema: z.ZodType<ChunkTextResponseBody, z.ZodTypeDef, unknown>;
|
|
941
|
-
/** @internal */
|
|
942
|
-
export type ChunkTextResponseBody$Outbound = {
|
|
943
|
-
chunks: Array<Chunks$Outbound>;
|
|
944
|
-
};
|
|
945
|
-
/** @internal */
|
|
946
|
-
export declare const ChunkTextResponseBody$outboundSchema: z.ZodType<ChunkTextResponseBody$Outbound, z.ZodTypeDef, ChunkTextResponseBody>;
|
|
947
|
-
/**
|
|
948
|
-
* @internal
|
|
949
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
950
|
-
*/
|
|
951
|
-
export declare namespace ChunkTextResponseBody$ {
|
|
952
|
-
/** @deprecated use `ChunkTextResponseBody$inboundSchema` instead. */
|
|
953
|
-
const inboundSchema: z.ZodType<ChunkTextResponseBody, z.ZodTypeDef, unknown>;
|
|
954
|
-
/** @deprecated use `ChunkTextResponseBody$outboundSchema` instead. */
|
|
955
|
-
const outboundSchema: z.ZodType<ChunkTextResponseBody$Outbound, z.ZodTypeDef, ChunkTextResponseBody>;
|
|
956
|
-
/** @deprecated use `ChunkTextResponseBody$Outbound` instead. */
|
|
957
|
-
type Outbound = ChunkTextResponseBody$Outbound;
|
|
958
|
-
}
|
|
959
|
-
export declare function chunkTextResponseBodyToJSON(chunkTextResponseBody: ChunkTextResponseBody): string;
|
|
960
|
-
export declare function chunkTextResponseBodyFromJSON(jsonString: string): SafeParseResult<ChunkTextResponseBody, SDKValidationError>;
|
|
961
|
-
//# sourceMappingURL=chunktext.d.ts.map
|