@distilled.cloud/typesense 1.0.0-rc.2 → 1.0.0-rc.21
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/LICENSE +201 -0
- package/README.md +33 -0
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +18 -5
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -42
- package/lib/errors.d.ts +20 -16
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -24
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -9
- package/lib/index.lazy.js +6 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/protocol.d.ts +10 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -31
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -33
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/typesense.d.ts +1319 -1574
- package/lib/services/typesense.d.ts.map +1 -1
- package/lib/services/typesense.js +112 -2916
- package/lib/services/typesense.js.map +1 -1
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/typesense.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -11
- package/package.json +40 -17
- package/src/credentials.ts +32 -27
- package/src/errors.ts +19 -16
- package/src/index.ts +5 -9
- package/src/protocol.ts +28 -33
- package/src/retry.ts +6 -10
- package/src/services/typesense.ts +4377 -5048
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
|
@@ -1,2917 +1,113 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
identifier: "CreateAnalyticsRuleResponseBodyCase1ItemCase1",
|
|
114
|
-
});
|
|
115
|
-
export const CreateAnalyticsRuleResponseBodyCase1Item =
|
|
116
|
-
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
117
|
-
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
118
|
-
["error"],
|
|
119
|
-
]));
|
|
120
|
-
export const CreateAnalyticsRuleResponseBodyCase1List = /*@__PURE__*/ S.Array(CreateAnalyticsRuleResponseBodyCase1Item);
|
|
121
|
-
export const CreateAnalyticsRuleResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
122
|
-
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
123
|
-
[],
|
|
124
|
-
]));
|
|
125
|
-
export const CreateAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => CreateAnalyticsRuleResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
126
|
-
identifier: "CreateAnalyticsRuleResponse",
|
|
127
|
-
});
|
|
128
|
-
export const FieldTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
129
|
-
export const FieldSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
130
|
-
export const FieldEmbedFromList = /*@__PURE__*/ S.Array(S.String);
|
|
131
|
-
export const FieldEmbedModelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
-
model_name: S.String,
|
|
133
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
134
|
-
url: S.optional(S.String),
|
|
135
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
136
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
137
|
-
client_id: S.optional(S.String),
|
|
138
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
139
|
-
project_id: S.optional(S.String),
|
|
140
|
-
indexing_prefix: S.optional(S.String),
|
|
141
|
-
query_prefix: S.optional(S.String),
|
|
142
|
-
})).annotate({
|
|
143
|
-
identifier: "FieldEmbedModelConfig",
|
|
144
|
-
});
|
|
145
|
-
export const FieldEmbed = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
146
|
-
from: FieldEmbedFromList,
|
|
147
|
-
model_config: FieldEmbedModelConfig,
|
|
148
|
-
})).annotate({ identifier: "FieldEmbed" });
|
|
149
|
-
export const Field = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
-
name: S.String,
|
|
151
|
-
type: S.String,
|
|
152
|
-
optional: S.optional(S.Boolean),
|
|
153
|
-
facet: S.optional(S.Boolean),
|
|
154
|
-
index: S.optional(S.Boolean),
|
|
155
|
-
locale: S.optional(S.String),
|
|
156
|
-
sort: S.optional(S.Boolean),
|
|
157
|
-
infix: S.optional(S.Boolean),
|
|
158
|
-
reference: S.optional(S.String),
|
|
159
|
-
async_reference: S.optional(S.Boolean),
|
|
160
|
-
num_dim: S.optional(S.Number),
|
|
161
|
-
drop: S.optional(S.Boolean),
|
|
162
|
-
store: S.optional(S.Boolean),
|
|
163
|
-
vec_dist: S.optional(S.String),
|
|
164
|
-
range_index: S.optional(S.Boolean),
|
|
165
|
-
stem: S.optional(S.Boolean),
|
|
166
|
-
stem_dictionary: S.optional(S.String),
|
|
167
|
-
token_separators: S.optional(FieldTokenSeparatorsList),
|
|
168
|
-
symbols_to_index: S.optional(FieldSymbolsToIndexList),
|
|
169
|
-
embed: S.optional(FieldEmbed),
|
|
170
|
-
})).annotate({ identifier: "Field" });
|
|
171
|
-
export const CreateCollectionRequestFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
172
|
-
export const CreateCollectionRequestTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
173
|
-
export const CreateCollectionRequestSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
174
|
-
export const CreateCollectionRequestSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
175
|
-
export const VoiceQueryModelCollectionConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
-
model_name: S.optional(S.String),
|
|
177
|
-
})).annotate({
|
|
178
|
-
identifier: "VoiceQueryModelCollectionConfig",
|
|
179
|
-
});
|
|
180
|
-
export const CreateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
-
name: S.String,
|
|
182
|
-
fields: CreateCollectionRequestFieldsList,
|
|
183
|
-
default_sorting_field: S.optional(S.String),
|
|
184
|
-
token_separators: S.optional(CreateCollectionRequestTokenSeparatorsList),
|
|
185
|
-
synonym_sets: S.optional(CreateCollectionRequestSynonymSetsList),
|
|
186
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
187
|
-
symbols_to_index: S.optional(CreateCollectionRequestSymbolsToIndexList),
|
|
188
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
189
|
-
metadata: S.optional(S.Unknown),
|
|
190
|
-
}).pipe(T.Http({ method: "POST", uri: "/collections", code: 200 }))).annotate({
|
|
191
|
-
identifier: "CreateCollectionRequest",
|
|
192
|
-
});
|
|
193
|
-
export const CreateCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
194
|
-
export const CreateCollectionResponseTokenSeparatorsList =
|
|
195
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
196
|
-
export const CreateCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
197
|
-
export const CreateCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
198
|
-
export const CreateCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
|
-
name: S.String,
|
|
200
|
-
fields: CreateCollectionResponseFieldsList,
|
|
201
|
-
default_sorting_field: S.optional(S.String),
|
|
202
|
-
token_separators: S.optional(CreateCollectionResponseTokenSeparatorsList),
|
|
203
|
-
synonym_sets: S.optional(CreateCollectionResponseSynonymSetsList),
|
|
204
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
205
|
-
symbols_to_index: S.optional(CreateCollectionResponseSymbolsToIndexList),
|
|
206
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
207
|
-
metadata: S.optional(S.Unknown),
|
|
208
|
-
num_documents: S.Number,
|
|
209
|
-
created_at: S.Number,
|
|
210
|
-
})).annotate({
|
|
211
|
-
identifier: "CreateCollectionResponse",
|
|
212
|
-
});
|
|
213
|
-
export const CreateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
214
|
-
id: S.optional(S.String),
|
|
215
|
-
model_name: S.String,
|
|
216
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
217
|
-
history_collection: S.String,
|
|
218
|
-
account_id: S.optional(S.String),
|
|
219
|
-
system_prompt: S.optional(S.String),
|
|
220
|
-
ttl: S.optional(S.Number),
|
|
221
|
-
max_bytes: S.Number,
|
|
222
|
-
vllm_url: S.optional(S.String),
|
|
223
|
-
}).pipe(T.Http({ method: "POST", uri: "/conversations/models", code: 200 }))).annotate({
|
|
224
|
-
identifier: "CreateConversationModelRequest",
|
|
225
|
-
});
|
|
226
|
-
export const CreateConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
227
|
-
id: S.String,
|
|
228
|
-
model_name: S.String,
|
|
229
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
230
|
-
history_collection: S.String,
|
|
231
|
-
account_id: S.optional(S.String),
|
|
232
|
-
system_prompt: S.optional(S.String),
|
|
233
|
-
ttl: S.optional(S.Number),
|
|
234
|
-
max_bytes: S.Number,
|
|
235
|
-
vllm_url: S.optional(S.String),
|
|
236
|
-
})).annotate({
|
|
237
|
-
identifier: "CreateConversationModelResponse",
|
|
238
|
-
});
|
|
239
|
-
export const CreateKeyRequestActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
240
|
-
export const CreateKeyRequestCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
241
|
-
export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
-
value: S.optional(S.String),
|
|
243
|
-
description: S.String,
|
|
244
|
-
actions: CreateKeyRequestActionsList,
|
|
245
|
-
collections: CreateKeyRequestCollectionsList,
|
|
246
|
-
expires_at: S.optional(S.Number),
|
|
247
|
-
}).pipe(T.Http({ method: "POST", uri: "/keys", code: 200 }))).annotate({
|
|
248
|
-
identifier: "CreateKeyRequest",
|
|
249
|
-
});
|
|
250
|
-
export const CreateKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
251
|
-
export const CreateKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
252
|
-
export const CreateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
-
value: S.optional(S.String),
|
|
254
|
-
description: S.String,
|
|
255
|
-
actions: CreateKeyResponseActionsList,
|
|
256
|
-
collections: CreateKeyResponseCollectionsList,
|
|
257
|
-
expires_at: S.optional(S.Number),
|
|
258
|
-
id: S.optional(S.Number),
|
|
259
|
-
value_prefix: S.optional(S.String),
|
|
260
|
-
})).annotate({
|
|
261
|
-
identifier: "CreateKeyResponse",
|
|
262
|
-
});
|
|
263
|
-
export const CreateNLSearchModelRequestStopSequencesList =
|
|
264
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
265
|
-
export const CreateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
-
model_name: S.optional(S.String),
|
|
267
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
268
|
-
api_url: S.optional(S.String),
|
|
269
|
-
max_bytes: S.optional(S.Number),
|
|
270
|
-
temperature: S.optional(S.Number),
|
|
271
|
-
system_prompt: S.optional(S.String),
|
|
272
|
-
top_p: S.optional(S.Number),
|
|
273
|
-
top_k: S.optional(S.Number),
|
|
274
|
-
stop_sequences: S.optional(CreateNLSearchModelRequestStopSequencesList),
|
|
275
|
-
api_version: S.optional(S.String),
|
|
276
|
-
project_id: S.optional(S.String),
|
|
277
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
278
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
279
|
-
client_id: S.optional(S.String),
|
|
280
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
281
|
-
region: S.optional(S.String),
|
|
282
|
-
max_output_tokens: S.optional(S.Number),
|
|
283
|
-
account_id: S.optional(S.String),
|
|
284
|
-
id: S.optional(S.String),
|
|
285
|
-
}).pipe(T.Http({ method: "POST", uri: "/nl_search_models", code: 200 }))).annotate({
|
|
286
|
-
identifier: "CreateNLSearchModelRequest",
|
|
287
|
-
});
|
|
288
|
-
export const CreateNLSearchModelResponseStopSequencesList =
|
|
289
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
290
|
-
export const CreateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
291
|
-
model_name: S.optional(S.String),
|
|
292
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
293
|
-
api_url: S.optional(S.String),
|
|
294
|
-
max_bytes: S.optional(S.Number),
|
|
295
|
-
temperature: S.optional(S.Number),
|
|
296
|
-
system_prompt: S.optional(S.String),
|
|
297
|
-
top_p: S.optional(S.Number),
|
|
298
|
-
top_k: S.optional(S.Number),
|
|
299
|
-
stop_sequences: S.optional(CreateNLSearchModelResponseStopSequencesList),
|
|
300
|
-
api_version: S.optional(S.String),
|
|
301
|
-
project_id: S.optional(S.String),
|
|
302
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
303
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
304
|
-
client_id: S.optional(S.String),
|
|
305
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
306
|
-
region: S.optional(S.String),
|
|
307
|
-
max_output_tokens: S.optional(S.Number),
|
|
308
|
-
account_id: S.optional(S.String),
|
|
309
|
-
id: S.String,
|
|
310
|
-
})).annotate({
|
|
311
|
-
identifier: "CreateNLSearchModelResponse",
|
|
312
|
-
});
|
|
313
|
-
export const DebugRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/debug", code: 200 }))).annotate({ identifier: "DebugRequest" });
|
|
314
|
-
export const DebugResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
-
version: S.optional(S.String),
|
|
316
|
-
})).annotate({ identifier: "DebugResponse" });
|
|
317
|
-
export const DeleteAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
-
aliasName: S.String.pipe(T.Label()),
|
|
319
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
320
|
-
identifier: "DeleteAliasRequest",
|
|
321
|
-
});
|
|
322
|
-
export const CollectionAlias = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
name: S.String,
|
|
324
|
-
collection_name: S.String,
|
|
325
|
-
})).annotate({
|
|
326
|
-
identifier: "CollectionAlias",
|
|
327
|
-
});
|
|
328
|
-
export const DeleteAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
-
ruleName: S.String.pipe(T.Label()),
|
|
330
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
331
|
-
identifier: "DeleteAnalyticsRuleRequest",
|
|
332
|
-
});
|
|
333
|
-
export const DeleteAnalyticsRuleResponseParamsMetaFieldsList =
|
|
334
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
335
|
-
export const DeleteAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
336
|
-
destination_collection: S.optional(S.String),
|
|
337
|
-
limit: S.optional(S.Number),
|
|
338
|
-
capture_search_requests: S.optional(S.Boolean),
|
|
339
|
-
meta_fields: S.optional(DeleteAnalyticsRuleResponseParamsMetaFieldsList),
|
|
340
|
-
expand_query: S.optional(S.Boolean),
|
|
341
|
-
counter_field: S.optional(S.String),
|
|
342
|
-
weight: S.optional(S.Number),
|
|
343
|
-
})).annotate({
|
|
344
|
-
identifier: "DeleteAnalyticsRuleResponseParams",
|
|
345
|
-
});
|
|
346
|
-
export const DeleteAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
347
|
-
name: S.String,
|
|
348
|
-
type: AnalyticsRuleType,
|
|
349
|
-
collection: S.String,
|
|
350
|
-
event_type: S.String,
|
|
351
|
-
rule_tag: S.optional(S.String),
|
|
352
|
-
params: S.optional(DeleteAnalyticsRuleResponseParams),
|
|
353
|
-
})).annotate({
|
|
354
|
-
identifier: "DeleteAnalyticsRuleResponse",
|
|
355
|
-
});
|
|
356
|
-
export const DeleteCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
357
|
-
collectionName: S.String.pipe(T.Label()),
|
|
358
|
-
}).pipe(T.Http({
|
|
359
|
-
method: "DELETE",
|
|
360
|
-
uri: "/collections/{collectionName}",
|
|
361
|
-
code: 200,
|
|
362
|
-
}))).annotate({
|
|
363
|
-
identifier: "DeleteCollectionRequest",
|
|
364
|
-
});
|
|
365
|
-
export const DeleteCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
366
|
-
export const DeleteCollectionResponseTokenSeparatorsList =
|
|
367
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
368
|
-
export const DeleteCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
369
|
-
export const DeleteCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
370
|
-
export const DeleteCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
-
name: S.String,
|
|
372
|
-
fields: DeleteCollectionResponseFieldsList,
|
|
373
|
-
default_sorting_field: S.optional(S.String),
|
|
374
|
-
token_separators: S.optional(DeleteCollectionResponseTokenSeparatorsList),
|
|
375
|
-
synonym_sets: S.optional(DeleteCollectionResponseSynonymSetsList),
|
|
376
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
377
|
-
symbols_to_index: S.optional(DeleteCollectionResponseSymbolsToIndexList),
|
|
378
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
379
|
-
metadata: S.optional(S.Unknown),
|
|
380
|
-
num_documents: S.Number,
|
|
381
|
-
created_at: S.Number,
|
|
382
|
-
})).annotate({
|
|
383
|
-
identifier: "DeleteCollectionResponse",
|
|
384
|
-
});
|
|
385
|
-
export const DeleteConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
386
|
-
modelId: S.String.pipe(T.Label()),
|
|
387
|
-
}).pipe(T.Http({
|
|
388
|
-
method: "DELETE",
|
|
389
|
-
uri: "/conversations/models/{modelId}",
|
|
390
|
-
code: 200,
|
|
391
|
-
}))).annotate({
|
|
392
|
-
identifier: "DeleteConversationModelRequest",
|
|
393
|
-
});
|
|
394
|
-
export const DeleteConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
395
|
-
id: S.String,
|
|
396
|
-
model_name: S.String,
|
|
397
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
398
|
-
history_collection: S.String,
|
|
399
|
-
account_id: S.optional(S.String),
|
|
400
|
-
system_prompt: S.optional(S.String),
|
|
401
|
-
ttl: S.optional(S.Number),
|
|
402
|
-
max_bytes: S.Number,
|
|
403
|
-
vllm_url: S.optional(S.String),
|
|
404
|
-
})).annotate({
|
|
405
|
-
identifier: "DeleteConversationModelResponse",
|
|
406
|
-
});
|
|
407
|
-
export const DeleteCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
408
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
409
|
-
}).pipe(T.Http({
|
|
410
|
-
method: "DELETE",
|
|
411
|
-
uri: "/curation_sets/{curationSetName}",
|
|
412
|
-
code: 200,
|
|
413
|
-
}))).annotate({
|
|
414
|
-
identifier: "DeleteCurationSetRequest",
|
|
415
|
-
});
|
|
416
|
-
export const CurationSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
417
|
-
name: S.String,
|
|
418
|
-
})).annotate({
|
|
419
|
-
identifier: "CurationSetDeleteSchema",
|
|
420
|
-
});
|
|
421
|
-
export const DeleteCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
422
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
423
|
-
itemId: S.String.pipe(T.Label()),
|
|
424
|
-
}).pipe(T.Http({
|
|
425
|
-
method: "DELETE",
|
|
426
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
427
|
-
code: 200,
|
|
428
|
-
}))).annotate({
|
|
429
|
-
identifier: "DeleteCurationSetItemRequest",
|
|
430
|
-
});
|
|
431
|
-
export const CurationItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
-
id: S.String,
|
|
433
|
-
})).annotate({
|
|
434
|
-
identifier: "CurationItemDeleteSchema",
|
|
435
|
-
});
|
|
436
|
-
export const DeleteDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
437
|
-
collectionName: S.String.pipe(T.Label()),
|
|
438
|
-
documentId: S.String.pipe(T.Label()),
|
|
439
|
-
}).pipe(T.Http({
|
|
440
|
-
method: "DELETE",
|
|
441
|
-
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
442
|
-
code: 200,
|
|
443
|
-
}))).annotate({
|
|
444
|
-
identifier: "DeleteDocumentRequest",
|
|
445
|
-
});
|
|
446
|
-
export const DeleteDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
447
|
-
identifier: "DeleteDocumentResponse",
|
|
448
|
-
});
|
|
449
|
-
export const DeleteDocumentsRequestDeleteDocumentsParameters =
|
|
450
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
451
|
-
filter_by: S.String,
|
|
452
|
-
batch_size: S.optional(S.Number),
|
|
453
|
-
ignore_not_found: S.optional(S.Boolean),
|
|
454
|
-
truncate: S.optional(S.Boolean),
|
|
455
|
-
})).annotate({
|
|
456
|
-
identifier: "DeleteDocumentsRequestDeleteDocumentsParameters",
|
|
457
|
-
});
|
|
458
|
-
export const DeleteDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
459
|
-
collectionName: S.String.pipe(T.Label()),
|
|
460
|
-
deleteDocumentsParameters: S.optional(DeleteDocumentsRequestDeleteDocumentsParameters.pipe(T.Query())),
|
|
461
|
-
}).pipe(T.Http({
|
|
462
|
-
method: "DELETE",
|
|
463
|
-
uri: "/collections/{collectionName}/documents",
|
|
464
|
-
code: 200,
|
|
465
|
-
}))).annotate({
|
|
466
|
-
identifier: "DeleteDocumentsRequest",
|
|
467
|
-
});
|
|
468
|
-
export const DeleteDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
-
num_deleted: S.Number,
|
|
470
|
-
})).annotate({
|
|
471
|
-
identifier: "DeleteDocumentsResponse",
|
|
472
|
-
});
|
|
473
|
-
export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
474
|
-
keyId: S.Number.pipe(T.Label()),
|
|
475
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/keys/{keyId}", code: 200 }))).annotate({
|
|
476
|
-
identifier: "DeleteKeyRequest",
|
|
477
|
-
});
|
|
478
|
-
export const ApiKeyDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
|
-
id: S.Number,
|
|
480
|
-
})).annotate({
|
|
481
|
-
identifier: "ApiKeyDeleteResponse",
|
|
482
|
-
});
|
|
483
|
-
export const DeleteNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
|
-
modelId: S.String.pipe(T.Label()),
|
|
485
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
486
|
-
identifier: "DeleteNLSearchModelRequest",
|
|
487
|
-
});
|
|
488
|
-
export const NLSearchModelDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
-
id: S.String,
|
|
490
|
-
})).annotate({
|
|
491
|
-
identifier: "NLSearchModelDeleteSchema",
|
|
492
|
-
});
|
|
493
|
-
export const DeletePresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
494
|
-
presetId: S.String.pipe(T.Label()),
|
|
495
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
496
|
-
identifier: "DeletePresetRequest",
|
|
497
|
-
});
|
|
498
|
-
export const PresetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
499
|
-
name: S.String,
|
|
500
|
-
})).annotate({
|
|
501
|
-
identifier: "PresetDeleteSchema",
|
|
502
|
-
});
|
|
503
|
-
export const DeleteStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
504
|
-
setId: S.String.pipe(T.Label()),
|
|
505
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
506
|
-
identifier: "DeleteStopwordsSetRequest",
|
|
507
|
-
});
|
|
508
|
-
export const DeleteStopwordsSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
509
|
-
id: S.String,
|
|
510
|
-
})).annotate({
|
|
511
|
-
identifier: "DeleteStopwordsSetResponse",
|
|
512
|
-
});
|
|
513
|
-
export const DeleteSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
514
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
515
|
-
}).pipe(T.Http({
|
|
516
|
-
method: "DELETE",
|
|
517
|
-
uri: "/synonym_sets/{synonymSetName}",
|
|
518
|
-
code: 200,
|
|
519
|
-
}))).annotate({
|
|
520
|
-
identifier: "DeleteSynonymSetRequest",
|
|
521
|
-
});
|
|
522
|
-
export const SynonymSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
523
|
-
name: S.String,
|
|
524
|
-
})).annotate({
|
|
525
|
-
identifier: "SynonymSetDeleteSchema",
|
|
526
|
-
});
|
|
527
|
-
export const DeleteSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
528
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
529
|
-
itemId: S.String.pipe(T.Label()),
|
|
530
|
-
}).pipe(T.Http({
|
|
531
|
-
method: "DELETE",
|
|
532
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
533
|
-
code: 200,
|
|
534
|
-
}))).annotate({
|
|
535
|
-
identifier: "DeleteSynonymSetItemRequest",
|
|
536
|
-
});
|
|
537
|
-
export const SynonymItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
538
|
-
id: S.String,
|
|
539
|
-
})).annotate({
|
|
540
|
-
identifier: "SynonymItemDeleteSchema",
|
|
541
|
-
});
|
|
542
|
-
export const ExportDocumentsRequestExportDocumentsParameters =
|
|
543
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
|
-
filter_by: S.optional(S.String),
|
|
545
|
-
include_fields: S.optional(S.String),
|
|
546
|
-
exclude_fields: S.optional(S.String),
|
|
547
|
-
})).annotate({
|
|
548
|
-
identifier: "ExportDocumentsRequestExportDocumentsParameters",
|
|
549
|
-
});
|
|
550
|
-
export const ExportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
551
|
-
collectionName: S.String.pipe(T.Label()),
|
|
552
|
-
exportDocumentsParameters: S.optional(ExportDocumentsRequestExportDocumentsParameters.pipe(T.Query())),
|
|
553
|
-
}).pipe(T.Http({
|
|
554
|
-
method: "GET",
|
|
555
|
-
uri: "/collections/{collectionName}/documents/export",
|
|
556
|
-
code: 200,
|
|
557
|
-
}))).annotate({
|
|
558
|
-
identifier: "ExportDocumentsRequest",
|
|
559
|
-
});
|
|
560
|
-
export const ExportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
561
|
-
identifier: "ExportDocumentsResponse",
|
|
562
|
-
});
|
|
563
|
-
export const FlushAnalyticsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/analytics/flush", code: 200 }))).annotate({
|
|
564
|
-
identifier: "FlushAnalyticsRequest",
|
|
565
|
-
});
|
|
566
|
-
export const GetAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
567
|
-
aliasName: S.String.pipe(T.Label()),
|
|
568
|
-
}).pipe(T.Http({ method: "GET", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
569
|
-
identifier: "GetAliasRequest",
|
|
570
|
-
});
|
|
571
|
-
export const GetAliasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/aliases", code: 200 }))).annotate({
|
|
572
|
-
identifier: "GetAliasesRequest",
|
|
573
|
-
});
|
|
574
|
-
export const CollectionAliasesResponseAliasesList = /*@__PURE__*/ S.Array(CollectionAlias);
|
|
575
|
-
export const CollectionAliasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
576
|
-
aliases: CollectionAliasesResponseAliasesList,
|
|
577
|
-
})).annotate({
|
|
578
|
-
identifier: "CollectionAliasesResponse",
|
|
579
|
-
});
|
|
580
|
-
export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
581
|
-
user_id: S.String.pipe(T.Query()),
|
|
582
|
-
name: S.String.pipe(T.Query()),
|
|
583
|
-
n: S.Number.pipe(T.Query()),
|
|
584
|
-
}).pipe(T.Http({ method: "GET", uri: "/analytics/events", code: 200 }))).annotate({
|
|
585
|
-
identifier: "GetAnalyticsEventsRequest",
|
|
586
|
-
});
|
|
587
|
-
export const AnalyticsEventsResponseEventsItemDocIdsList =
|
|
588
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
589
|
-
export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
590
|
-
name: S.optional(S.String),
|
|
591
|
-
event_type: S.optional(S.String),
|
|
592
|
-
collection: S.optional(S.String),
|
|
593
|
-
timestamp: S.optional(S.Number),
|
|
594
|
-
user_id: S.optional(S.String),
|
|
595
|
-
doc_id: S.optional(S.String),
|
|
596
|
-
doc_ids: S.optional(AnalyticsEventsResponseEventsItemDocIdsList),
|
|
597
|
-
query: S.optional(S.String),
|
|
598
|
-
})).annotate({
|
|
599
|
-
identifier: "AnalyticsEventsResponseEventsItem",
|
|
600
|
-
});
|
|
601
|
-
export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(AnalyticsEventsResponseEventsItem);
|
|
602
|
-
export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
603
|
-
events: AnalyticsEventsResponseEventsList,
|
|
604
|
-
})).annotate({
|
|
605
|
-
identifier: "AnalyticsEventsResponse",
|
|
606
|
-
});
|
|
607
|
-
export const GetAnalyticsStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/analytics/status", code: 200 }))).annotate({
|
|
608
|
-
identifier: "GetAnalyticsStatusRequest",
|
|
609
|
-
});
|
|
610
|
-
export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
611
|
-
popular_prefix_queries: S.optional(S.Number),
|
|
612
|
-
nohits_prefix_queries: S.optional(S.Number),
|
|
613
|
-
log_prefix_queries: S.optional(S.Number),
|
|
614
|
-
query_log_events: S.optional(S.Number),
|
|
615
|
-
query_counter_events: S.optional(S.Number),
|
|
616
|
-
doc_log_events: S.optional(S.Number),
|
|
617
|
-
doc_counter_events: S.optional(S.Number),
|
|
618
|
-
})).annotate({
|
|
619
|
-
identifier: "AnalyticsStatus",
|
|
620
|
-
});
|
|
621
|
-
export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
622
|
-
collectionName: S.String.pipe(T.Label()),
|
|
623
|
-
}).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({
|
|
624
|
-
identifier: "GetCollectionRequest",
|
|
625
|
-
});
|
|
626
|
-
export const GetCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
627
|
-
export const GetCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
628
|
-
export const GetCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
629
|
-
export const GetCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
630
|
-
export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
631
|
-
name: S.String,
|
|
632
|
-
fields: GetCollectionResponseFieldsList,
|
|
633
|
-
default_sorting_field: S.optional(S.String),
|
|
634
|
-
token_separators: S.optional(GetCollectionResponseTokenSeparatorsList),
|
|
635
|
-
synonym_sets: S.optional(GetCollectionResponseSynonymSetsList),
|
|
636
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
637
|
-
symbols_to_index: S.optional(GetCollectionResponseSymbolsToIndexList),
|
|
638
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
639
|
-
metadata: S.optional(S.Unknown),
|
|
640
|
-
num_documents: S.Number,
|
|
641
|
-
created_at: S.Number,
|
|
642
|
-
})).annotate({
|
|
643
|
-
identifier: "GetCollectionResponse",
|
|
644
|
-
});
|
|
645
|
-
export const GetCollectionsRequestGetCollectionsParameters =
|
|
646
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
647
|
-
exclude_fields: S.optional(S.String),
|
|
648
|
-
limit: S.optional(S.Number),
|
|
649
|
-
offset: S.optional(S.Number),
|
|
650
|
-
})).annotate({
|
|
651
|
-
identifier: "GetCollectionsRequestGetCollectionsParameters",
|
|
652
|
-
});
|
|
653
|
-
export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
654
|
-
getCollectionsParameters: S.optional(GetCollectionsRequestGetCollectionsParameters.pipe(T.Query())),
|
|
655
|
-
}).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({
|
|
656
|
-
identifier: "GetCollectionsRequest",
|
|
657
|
-
});
|
|
658
|
-
export const CollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
659
|
-
export const CollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
660
|
-
export const CollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
661
|
-
export const CollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
662
|
-
export const CollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
663
|
-
name: S.String,
|
|
664
|
-
fields: CollectionResponseFieldsList,
|
|
665
|
-
default_sorting_field: S.optional(S.String),
|
|
666
|
-
token_separators: S.optional(CollectionResponseTokenSeparatorsList),
|
|
667
|
-
synonym_sets: S.optional(CollectionResponseSynonymSetsList),
|
|
668
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
669
|
-
symbols_to_index: S.optional(CollectionResponseSymbolsToIndexList),
|
|
670
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
671
|
-
metadata: S.optional(S.Unknown),
|
|
672
|
-
num_documents: S.Number,
|
|
673
|
-
created_at: S.Number,
|
|
674
|
-
})).annotate({
|
|
675
|
-
identifier: "CollectionResponse",
|
|
676
|
-
});
|
|
677
|
-
export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(CollectionResponse);
|
|
678
|
-
export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
679
|
-
identifier: "GetCollectionsResponse",
|
|
680
|
-
});
|
|
681
|
-
export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
682
|
-
collectionName: S.String.pipe(T.Label()),
|
|
683
|
-
documentId: S.String.pipe(T.Label()),
|
|
684
|
-
}).pipe(T.Http({
|
|
685
|
-
method: "GET",
|
|
686
|
-
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
687
|
-
code: 200,
|
|
688
|
-
}))).annotate({
|
|
689
|
-
identifier: "GetDocumentRequest",
|
|
690
|
-
});
|
|
691
|
-
export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
692
|
-
identifier: "GetDocumentResponse",
|
|
693
|
-
});
|
|
694
|
-
export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
-
keyId: S.Number.pipe(T.Label()),
|
|
696
|
-
}).pipe(T.Http({ method: "GET", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "GetKeyRequest" });
|
|
697
|
-
export const GetKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
698
|
-
export const GetKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
699
|
-
export const GetKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
700
|
-
value: S.optional(S.String),
|
|
701
|
-
description: S.String,
|
|
702
|
-
actions: GetKeyResponseActionsList,
|
|
703
|
-
collections: GetKeyResponseCollectionsList,
|
|
704
|
-
expires_at: S.optional(S.Number),
|
|
705
|
-
id: S.optional(S.Number),
|
|
706
|
-
value_prefix: S.optional(S.String),
|
|
707
|
-
})).annotate({ identifier: "GetKeyResponse" });
|
|
708
|
-
export const GetKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/keys", code: 200 }))).annotate({ identifier: "GetKeysRequest" });
|
|
709
|
-
export const ApiKeyActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
710
|
-
export const ApiKeyCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
711
|
-
export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
712
|
-
value: S.optional(S.String),
|
|
713
|
-
description: S.String,
|
|
714
|
-
actions: ApiKeyActionsList,
|
|
715
|
-
collections: ApiKeyCollectionsList,
|
|
716
|
-
expires_at: S.optional(S.Number),
|
|
717
|
-
id: S.optional(S.Number),
|
|
718
|
-
value_prefix: S.optional(S.String),
|
|
719
|
-
})).annotate({ identifier: "ApiKey" });
|
|
720
|
-
export const ApiKeysResponseKeysList = /*@__PURE__*/ S.Array(ApiKey);
|
|
721
|
-
export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
722
|
-
keys: ApiKeysResponseKeysList,
|
|
723
|
-
})).annotate({
|
|
724
|
-
identifier: "ApiKeysResponse",
|
|
725
|
-
});
|
|
726
|
-
export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({
|
|
727
|
-
identifier: "GetSchemaChangesRequest",
|
|
728
|
-
});
|
|
729
|
-
export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
730
|
-
collection: S.optional(S.String),
|
|
731
|
-
validated_docs: S.optional(S.Number),
|
|
732
|
-
altered_docs: S.optional(S.Number),
|
|
733
|
-
})).annotate({
|
|
734
|
-
identifier: "SchemaChangeStatus",
|
|
735
|
-
});
|
|
736
|
-
export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(SchemaChangeStatus);
|
|
737
|
-
export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
738
|
-
identifier: "GetSchemaChangesResponse",
|
|
739
|
-
});
|
|
740
|
-
export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
741
|
-
dictionaryId: S.String.pipe(T.Label()),
|
|
742
|
-
}).pipe(T.Http({
|
|
743
|
-
method: "GET",
|
|
744
|
-
uri: "/stemming/dictionaries/{dictionaryId}",
|
|
745
|
-
code: 200,
|
|
746
|
-
}))).annotate({
|
|
747
|
-
identifier: "GetStemmingDictionaryRequest",
|
|
748
|
-
});
|
|
749
|
-
export const StemmingDictionaryWordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
750
|
-
word: S.String,
|
|
751
|
-
root: S.String,
|
|
752
|
-
})).annotate({
|
|
753
|
-
identifier: "StemmingDictionaryWordsItem",
|
|
754
|
-
});
|
|
755
|
-
export const StemmingDictionaryWordsList = /*@__PURE__*/ S.Array(StemmingDictionaryWordsItem);
|
|
756
|
-
export const StemmingDictionary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
757
|
-
id: S.String,
|
|
758
|
-
words: StemmingDictionaryWordsList,
|
|
759
|
-
})).annotate({
|
|
760
|
-
identifier: "StemmingDictionary",
|
|
761
|
-
});
|
|
762
|
-
export const HealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 }))).annotate({ identifier: "HealthRequest" });
|
|
763
|
-
export const HealthStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
764
|
-
ok: S.Boolean,
|
|
765
|
-
})).annotate({ identifier: "HealthStatus" });
|
|
766
|
-
export const IndexAction = /*@__PURE__*/ S.String;
|
|
767
|
-
export const DirtyValues = /*@__PURE__*/ S.String;
|
|
768
|
-
export const ImportDocumentsRequestImportDocumentsParameters =
|
|
769
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
770
|
-
batch_size: S.optional(S.Number),
|
|
771
|
-
return_id: S.optional(S.Boolean),
|
|
772
|
-
remote_embedding_batch_size: S.optional(S.Number),
|
|
773
|
-
return_doc: S.optional(S.Boolean),
|
|
774
|
-
action: S.optional(IndexAction),
|
|
775
|
-
dirty_values: S.optional(DirtyValues),
|
|
776
|
-
})).annotate({
|
|
777
|
-
identifier: "ImportDocumentsRequestImportDocumentsParameters",
|
|
778
|
-
});
|
|
779
|
-
export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
780
|
-
collectionName: S.String.pipe(T.Label()),
|
|
781
|
-
importDocumentsParameters: S.optional(ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query())),
|
|
782
|
-
}).pipe(T.Http({
|
|
783
|
-
method: "POST",
|
|
784
|
-
uri: "/collections/{collectionName}/documents/import",
|
|
785
|
-
code: 200,
|
|
786
|
-
}))).annotate({
|
|
787
|
-
identifier: "ImportDocumentsRequest",
|
|
788
|
-
});
|
|
789
|
-
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
790
|
-
identifier: "ImportDocumentsResponse",
|
|
791
|
-
});
|
|
792
|
-
export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
793
|
-
id: S.String.pipe(T.Query()),
|
|
794
|
-
body: S.String.pipe(T.HttpBody()),
|
|
795
|
-
}).pipe(T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 }))).annotate({
|
|
796
|
-
identifier: "ImportStemmingDictionaryRequest",
|
|
797
|
-
});
|
|
798
|
-
export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
799
|
-
identifier: "ImportStemmingDictionaryResponse",
|
|
800
|
-
});
|
|
801
|
-
export const IndexDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
802
|
-
collectionName: S.String.pipe(T.Label()),
|
|
803
|
-
action: S.optional(IndexAction.pipe(T.Query())),
|
|
804
|
-
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
805
|
-
}).pipe(T.Http({
|
|
806
|
-
method: "POST",
|
|
807
|
-
uri: "/collections/{collectionName}/documents",
|
|
808
|
-
code: 200,
|
|
809
|
-
}))).annotate({
|
|
810
|
-
identifier: "IndexDocumentRequest",
|
|
811
|
-
});
|
|
812
|
-
export const IndexDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
813
|
-
identifier: "IndexDocumentResponse",
|
|
814
|
-
});
|
|
815
|
-
export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }))).annotate({
|
|
816
|
-
identifier: "ListStemmingDictionariesRequest",
|
|
817
|
-
});
|
|
818
|
-
export const ListStemmingDictionariesResponseDictionariesList =
|
|
819
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
820
|
-
export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
821
|
-
dictionaries: S.optional(ListStemmingDictionariesResponseDictionariesList),
|
|
822
|
-
})).annotate({
|
|
823
|
-
identifier: "ListStemmingDictionariesResponse",
|
|
824
|
-
});
|
|
825
|
-
export const DropTokensMode = /*@__PURE__*/ S.String;
|
|
826
|
-
export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
827
|
-
q: S.optional(S.String),
|
|
828
|
-
query_by: S.optional(S.String),
|
|
829
|
-
query_by_weights: S.optional(S.String),
|
|
830
|
-
text_match_type: S.optional(S.String),
|
|
831
|
-
prefix: S.optional(S.String),
|
|
832
|
-
infix: S.optional(S.String),
|
|
833
|
-
max_extra_prefix: S.optional(S.Number),
|
|
834
|
-
max_extra_suffix: S.optional(S.Number),
|
|
835
|
-
filter_by: S.optional(S.String),
|
|
836
|
-
sort_by: S.optional(S.String),
|
|
837
|
-
facet_by: S.optional(S.String),
|
|
838
|
-
max_facet_values: S.optional(S.Number),
|
|
839
|
-
facet_query: S.optional(S.String),
|
|
840
|
-
num_typos: S.optional(S.String),
|
|
841
|
-
page: S.optional(S.Number),
|
|
842
|
-
per_page: S.optional(S.Number),
|
|
843
|
-
limit: S.optional(S.Number),
|
|
844
|
-
offset: S.optional(S.Number),
|
|
845
|
-
group_by: S.optional(S.String),
|
|
846
|
-
group_limit: S.optional(S.Number),
|
|
847
|
-
group_missing_values: S.optional(S.Boolean),
|
|
848
|
-
include_fields: S.optional(S.String),
|
|
849
|
-
exclude_fields: S.optional(S.String),
|
|
850
|
-
highlight_full_fields: S.optional(S.String),
|
|
851
|
-
highlight_affix_num_tokens: S.optional(S.Number),
|
|
852
|
-
highlight_start_tag: S.optional(S.String),
|
|
853
|
-
highlight_end_tag: S.optional(S.String),
|
|
854
|
-
snippet_threshold: S.optional(S.Number),
|
|
855
|
-
drop_tokens_threshold: S.optional(S.Number),
|
|
856
|
-
drop_tokens_mode: S.optional(DropTokensMode),
|
|
857
|
-
typo_tokens_threshold: S.optional(S.Number),
|
|
858
|
-
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
859
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
860
|
-
enable_synonyms: S.optional(S.Boolean),
|
|
861
|
-
enable_analytics: S.optional(S.Boolean),
|
|
862
|
-
synonym_prefix: S.optional(S.Boolean),
|
|
863
|
-
synonym_num_typos: S.optional(S.Number),
|
|
864
|
-
pinned_hits: S.optional(S.String),
|
|
865
|
-
hidden_hits: S.optional(S.String),
|
|
866
|
-
curation_tags: S.optional(S.String),
|
|
867
|
-
highlight_fields: S.optional(S.String),
|
|
868
|
-
pre_segmented_query: S.optional(S.Boolean),
|
|
869
|
-
preset: S.optional(S.String),
|
|
870
|
-
enable_curations: S.optional(S.Boolean),
|
|
871
|
-
prioritize_exact_match: S.optional(S.Boolean),
|
|
872
|
-
prioritize_token_position: S.optional(S.Boolean),
|
|
873
|
-
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
874
|
-
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
875
|
-
exhaustive_search: S.optional(S.Boolean),
|
|
876
|
-
search_cutoff_ms: S.optional(S.Number),
|
|
877
|
-
use_cache: S.optional(S.Boolean),
|
|
878
|
-
cache_ttl: S.optional(S.Number),
|
|
879
|
-
min_len_1typo: S.optional(S.Number),
|
|
880
|
-
min_len_2typo: S.optional(S.Number),
|
|
881
|
-
vector_query: S.optional(S.String),
|
|
882
|
-
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
883
|
-
remote_embedding_num_tries: S.optional(S.Number),
|
|
884
|
-
facet_strategy: S.optional(S.String),
|
|
885
|
-
stopwords: S.optional(S.String),
|
|
886
|
-
facet_return_parent: S.optional(S.String),
|
|
887
|
-
voice_query: S.optional(S.String),
|
|
888
|
-
conversation: S.optional(S.Boolean),
|
|
889
|
-
conversation_model_id: S.optional(S.String),
|
|
890
|
-
conversation_id: S.optional(S.String),
|
|
891
|
-
validate_field_names: S.optional(S.Boolean),
|
|
892
|
-
})).annotate({
|
|
893
|
-
identifier: "MultiSearchParameters",
|
|
894
|
-
});
|
|
895
|
-
export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
896
|
-
q: S.optional(S.String),
|
|
897
|
-
query_by: S.optional(S.String),
|
|
898
|
-
query_by_weights: S.optional(S.String),
|
|
899
|
-
text_match_type: S.optional(S.String),
|
|
900
|
-
prefix: S.optional(S.String),
|
|
901
|
-
infix: S.optional(S.String),
|
|
902
|
-
max_extra_prefix: S.optional(S.Number),
|
|
903
|
-
max_extra_suffix: S.optional(S.Number),
|
|
904
|
-
filter_by: S.optional(S.String),
|
|
905
|
-
sort_by: S.optional(S.String),
|
|
906
|
-
facet_by: S.optional(S.String),
|
|
907
|
-
max_facet_values: S.optional(S.Number),
|
|
908
|
-
facet_query: S.optional(S.String),
|
|
909
|
-
num_typos: S.optional(S.String),
|
|
910
|
-
page: S.optional(S.Number),
|
|
911
|
-
per_page: S.optional(S.Number),
|
|
912
|
-
limit: S.optional(S.Number),
|
|
913
|
-
offset: S.optional(S.Number),
|
|
914
|
-
group_by: S.optional(S.String),
|
|
915
|
-
group_limit: S.optional(S.Number),
|
|
916
|
-
group_missing_values: S.optional(S.Boolean),
|
|
917
|
-
include_fields: S.optional(S.String),
|
|
918
|
-
exclude_fields: S.optional(S.String),
|
|
919
|
-
highlight_full_fields: S.optional(S.String),
|
|
920
|
-
highlight_affix_num_tokens: S.optional(S.Number),
|
|
921
|
-
highlight_start_tag: S.optional(S.String),
|
|
922
|
-
highlight_end_tag: S.optional(S.String),
|
|
923
|
-
snippet_threshold: S.optional(S.Number),
|
|
924
|
-
drop_tokens_threshold: S.optional(S.Number),
|
|
925
|
-
drop_tokens_mode: S.optional(DropTokensMode),
|
|
926
|
-
typo_tokens_threshold: S.optional(S.Number),
|
|
927
|
-
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
928
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
929
|
-
enable_synonyms: S.optional(S.Boolean),
|
|
930
|
-
enable_analytics: S.optional(S.Boolean),
|
|
931
|
-
synonym_prefix: S.optional(S.Boolean),
|
|
932
|
-
synonym_num_typos: S.optional(S.Number),
|
|
933
|
-
pinned_hits: S.optional(S.String),
|
|
934
|
-
hidden_hits: S.optional(S.String),
|
|
935
|
-
curation_tags: S.optional(S.String),
|
|
936
|
-
highlight_fields: S.optional(S.String),
|
|
937
|
-
pre_segmented_query: S.optional(S.Boolean),
|
|
938
|
-
preset: S.optional(S.String),
|
|
939
|
-
enable_curations: S.optional(S.Boolean),
|
|
940
|
-
prioritize_exact_match: S.optional(S.Boolean),
|
|
941
|
-
prioritize_token_position: S.optional(S.Boolean),
|
|
942
|
-
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
943
|
-
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
944
|
-
exhaustive_search: S.optional(S.Boolean),
|
|
945
|
-
search_cutoff_ms: S.optional(S.Number),
|
|
946
|
-
use_cache: S.optional(S.Boolean),
|
|
947
|
-
cache_ttl: S.optional(S.Number),
|
|
948
|
-
min_len_1typo: S.optional(S.Number),
|
|
949
|
-
min_len_2typo: S.optional(S.Number),
|
|
950
|
-
vector_query: S.optional(S.String),
|
|
951
|
-
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
952
|
-
remote_embedding_num_tries: S.optional(S.Number),
|
|
953
|
-
facet_strategy: S.optional(S.String),
|
|
954
|
-
stopwords: S.optional(S.String),
|
|
955
|
-
facet_return_parent: S.optional(S.String),
|
|
956
|
-
voice_query: S.optional(S.String),
|
|
957
|
-
conversation: S.optional(S.Boolean),
|
|
958
|
-
conversation_model_id: S.optional(S.String),
|
|
959
|
-
conversation_id: S.optional(S.String),
|
|
960
|
-
validate_field_names: S.optional(S.Boolean),
|
|
961
|
-
collection: S.optional(S.String),
|
|
962
|
-
x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
|
|
963
|
-
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
964
|
-
})).annotate({
|
|
965
|
-
identifier: "MultiSearchCollectionParameters",
|
|
966
|
-
});
|
|
967
|
-
export const MultiSearchRequestSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
968
|
-
export const MultiSearchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
969
|
-
multiSearchParameters: MultiSearchParameters.pipe(T.Query()),
|
|
970
|
-
union: S.optional(S.Boolean),
|
|
971
|
-
searches: MultiSearchRequestSearchesList,
|
|
972
|
-
}).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({
|
|
973
|
-
identifier: "MultiSearchRequest",
|
|
974
|
-
});
|
|
975
|
-
export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
976
|
-
count: S.optional(S.Number),
|
|
977
|
-
highlighted: S.optional(S.String),
|
|
978
|
-
value: S.optional(S.String),
|
|
979
|
-
parent: S.optional(S.Unknown),
|
|
980
|
-
})).annotate({
|
|
981
|
-
identifier: "FacetCountsCountsItem",
|
|
982
|
-
});
|
|
983
|
-
export const FacetCountsCountsList = /*@__PURE__*/ S.Array(FacetCountsCountsItem);
|
|
984
|
-
export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
985
|
-
max: S.optional(S.Number),
|
|
986
|
-
min: S.optional(S.Number),
|
|
987
|
-
sum: S.optional(S.Number),
|
|
988
|
-
total_values: S.optional(S.Number),
|
|
989
|
-
avg: S.optional(S.Number),
|
|
990
|
-
})).annotate({
|
|
991
|
-
identifier: "FacetCountsStats",
|
|
992
|
-
});
|
|
993
|
-
export const FacetCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
994
|
-
counts: S.optional(FacetCountsCountsList),
|
|
995
|
-
field_name: S.optional(S.String),
|
|
996
|
-
sampled: S.optional(S.Boolean),
|
|
997
|
-
stats: S.optional(FacetCountsStats),
|
|
998
|
-
})).annotate({ identifier: "FacetCounts" });
|
|
999
|
-
export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1000
|
-
export const SearchGroupedHitGroupKeyList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1001
|
-
export const SearchHighlightSnippetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1002
|
-
export const SearchHighlightValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
1003
|
-
export const SearchHighlightIndicesList = /*@__PURE__*/ S.Array(S.Number);
|
|
1004
|
-
export const SearchHighlightMatchedTokensList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1005
|
-
export const SearchHighlight = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1006
|
-
field: S.optional(S.String),
|
|
1007
|
-
snippet: S.optional(S.String),
|
|
1008
|
-
snippets: S.optional(SearchHighlightSnippetsList),
|
|
1009
|
-
value: S.optional(S.String),
|
|
1010
|
-
values: S.optional(SearchHighlightValuesList),
|
|
1011
|
-
indices: S.optional(SearchHighlightIndicesList),
|
|
1012
|
-
matched_tokens: S.optional(SearchHighlightMatchedTokensList),
|
|
1013
|
-
})).annotate({
|
|
1014
|
-
identifier: "SearchHighlight",
|
|
1015
|
-
});
|
|
1016
|
-
export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(SearchHighlight);
|
|
1017
|
-
export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1018
|
-
export const SearchResultHitDocumentMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1019
|
-
export const SearchResultHitTextMatchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1020
|
-
best_field_score: S.optional(S.String),
|
|
1021
|
-
best_field_weight: S.optional(S.Number),
|
|
1022
|
-
fields_matched: S.optional(S.Number),
|
|
1023
|
-
num_tokens_dropped: S.optional(S.Number),
|
|
1024
|
-
score: S.optional(S.String),
|
|
1025
|
-
tokens_matched: S.optional(S.Number),
|
|
1026
|
-
typo_prefix_score: S.optional(S.Number),
|
|
1027
|
-
})).annotate({
|
|
1028
|
-
identifier: "SearchResultHitTextMatchInfo",
|
|
1029
|
-
});
|
|
1030
|
-
export const SearchResultHitGeoDistanceMetersMap = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1031
|
-
export const SearchResultHitHybridSearchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
-
rank_fusion_score: S.optional(S.Number),
|
|
1033
|
-
})).annotate({
|
|
1034
|
-
identifier: "SearchResultHitHybridSearchInfo",
|
|
1035
|
-
});
|
|
1036
|
-
export const SearchResultHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1037
|
-
highlights: S.optional(SearchResultHitHighlightsList),
|
|
1038
|
-
highlight: S.optional(SearchResultHitHighlightMap),
|
|
1039
|
-
document: S.optional(SearchResultHitDocumentMap),
|
|
1040
|
-
text_match: S.optional(S.Number),
|
|
1041
|
-
text_match_info: S.optional(SearchResultHitTextMatchInfo),
|
|
1042
|
-
geo_distance_meters: S.optional(SearchResultHitGeoDistanceMetersMap),
|
|
1043
|
-
vector_distance: S.optional(S.Number),
|
|
1044
|
-
hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
|
|
1045
|
-
search_index: S.optional(S.Number),
|
|
1046
|
-
})).annotate({
|
|
1047
|
-
identifier: "SearchResultHit",
|
|
1048
|
-
});
|
|
1049
|
-
export const SearchGroupedHitHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1050
|
-
export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1051
|
-
found: S.optional(S.Number),
|
|
1052
|
-
group_key: SearchGroupedHitGroupKeyList,
|
|
1053
|
-
hits: SearchGroupedHitHitsList,
|
|
1054
|
-
})).annotate({
|
|
1055
|
-
identifier: "SearchGroupedHit",
|
|
1056
|
-
});
|
|
1057
|
-
export const MultiSearchResultItemGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1058
|
-
export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1059
|
-
export const SearchRequestParamsVoiceQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1060
|
-
transcribed_query: S.optional(S.String),
|
|
1061
|
-
})).annotate({
|
|
1062
|
-
identifier: "SearchRequestParamsVoiceQuery",
|
|
1063
|
-
});
|
|
1064
|
-
export const SearchRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1065
|
-
collection_name: S.String,
|
|
1066
|
-
first_q: S.optional(S.String),
|
|
1067
|
-
q: S.String,
|
|
1068
|
-
per_page: S.Number,
|
|
1069
|
-
voice_query: S.optional(SearchRequestParamsVoiceQuery),
|
|
1070
|
-
})).annotate({
|
|
1071
|
-
identifier: "SearchRequestParams",
|
|
1072
|
-
});
|
|
1073
|
-
export const SearchResultConversationConversationHistoryList =
|
|
1074
|
-
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1075
|
-
export const SearchResultConversation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1076
|
-
answer: S.String,
|
|
1077
|
-
conversation_history: SearchResultConversationConversationHistoryList,
|
|
1078
|
-
conversation_id: S.String,
|
|
1079
|
-
query: S.String,
|
|
1080
|
-
})).annotate({
|
|
1081
|
-
identifier: "SearchResultConversation",
|
|
1082
|
-
});
|
|
1083
|
-
export const MultiSearchResultItemUnionRequestParamsList =
|
|
1084
|
-
/*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1085
|
-
export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1086
|
-
export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1087
|
-
facet_counts: S.optional(MultiSearchResultItemFacetCountsList),
|
|
1088
|
-
found: S.optional(S.Number),
|
|
1089
|
-
found_docs: S.optional(S.Number),
|
|
1090
|
-
search_time_ms: S.optional(S.Number),
|
|
1091
|
-
out_of: S.optional(S.Number),
|
|
1092
|
-
search_cutoff: S.optional(S.Boolean),
|
|
1093
|
-
page: S.optional(S.Number),
|
|
1094
|
-
grouped_hits: S.optional(MultiSearchResultItemGroupedHitsList),
|
|
1095
|
-
hits: S.optional(MultiSearchResultItemHitsList),
|
|
1096
|
-
request_params: S.optional(SearchRequestParams),
|
|
1097
|
-
conversation: S.optional(SearchResultConversation),
|
|
1098
|
-
union_request_params: S.optional(MultiSearchResultItemUnionRequestParamsList),
|
|
1099
|
-
metadata: S.optional(MultiSearchResultItemMetadataMap),
|
|
1100
|
-
code: S.optional(S.Number),
|
|
1101
|
-
error: S.optional(S.String),
|
|
1102
|
-
})).annotate({
|
|
1103
|
-
identifier: "MultiSearchResultItem",
|
|
1104
|
-
});
|
|
1105
|
-
export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(MultiSearchResultItem);
|
|
1106
|
-
export const MultiSearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1107
|
-
results: MultiSearchResultResultsList,
|
|
1108
|
-
conversation: S.optional(SearchResultConversation),
|
|
1109
|
-
})).annotate({
|
|
1110
|
-
identifier: "MultiSearchResult",
|
|
1111
|
-
});
|
|
1112
|
-
export const RetrieveAllConversationModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/conversations/models", code: 200 }))).annotate({
|
|
1113
|
-
identifier: "RetrieveAllConversationModelsRequest",
|
|
1114
|
-
});
|
|
1115
|
-
export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1116
|
-
id: S.String,
|
|
1117
|
-
model_name: S.String,
|
|
1118
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1119
|
-
history_collection: S.String,
|
|
1120
|
-
account_id: S.optional(S.String),
|
|
1121
|
-
system_prompt: S.optional(S.String),
|
|
1122
|
-
ttl: S.optional(S.Number),
|
|
1123
|
-
max_bytes: S.Number,
|
|
1124
|
-
vllm_url: S.optional(S.String),
|
|
1125
|
-
})).annotate({
|
|
1126
|
-
identifier: "ConversationModelSchema",
|
|
1127
|
-
});
|
|
1128
|
-
export const RetrieveAllConversationModelsResponseBodyList =
|
|
1129
|
-
/*@__PURE__*/ S.Array(ConversationModelSchema);
|
|
1130
|
-
export const RetrieveAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() => RetrieveAllConversationModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1131
|
-
identifier: "RetrieveAllConversationModelsResponse",
|
|
1132
|
-
});
|
|
1133
|
-
export const RetrieveAllNLSearchModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/nl_search_models", code: 200 }))).annotate({
|
|
1134
|
-
identifier: "RetrieveAllNLSearchModelsRequest",
|
|
1135
|
-
});
|
|
1136
|
-
export const NLSearchModelSchemaStopSequencesList = /*@__PURE__*/ S.Array(S.String);
|
|
1137
|
-
export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1138
|
-
model_name: S.optional(S.String),
|
|
1139
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1140
|
-
api_url: S.optional(S.String),
|
|
1141
|
-
max_bytes: S.optional(S.Number),
|
|
1142
|
-
temperature: S.optional(S.Number),
|
|
1143
|
-
system_prompt: S.optional(S.String),
|
|
1144
|
-
top_p: S.optional(S.Number),
|
|
1145
|
-
top_k: S.optional(S.Number),
|
|
1146
|
-
stop_sequences: S.optional(NLSearchModelSchemaStopSequencesList),
|
|
1147
|
-
api_version: S.optional(S.String),
|
|
1148
|
-
project_id: S.optional(S.String),
|
|
1149
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1150
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1151
|
-
client_id: S.optional(S.String),
|
|
1152
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1153
|
-
region: S.optional(S.String),
|
|
1154
|
-
max_output_tokens: S.optional(S.Number),
|
|
1155
|
-
account_id: S.optional(S.String),
|
|
1156
|
-
id: S.String,
|
|
1157
|
-
})).annotate({
|
|
1158
|
-
identifier: "NLSearchModelSchema",
|
|
1159
|
-
});
|
|
1160
|
-
export const RetrieveAllNLSearchModelsResponseBodyList = /*@__PURE__*/ S.Array(NLSearchModelSchema);
|
|
1161
|
-
export const RetrieveAllNLSearchModelsResponse = /*@__PURE__*/ S.suspend(() => RetrieveAllNLSearchModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1162
|
-
identifier: "RetrieveAllNLSearchModelsResponse",
|
|
1163
|
-
});
|
|
1164
|
-
export const RetrieveAllPresetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 }))).annotate({
|
|
1165
|
-
identifier: "RetrieveAllPresetsRequest",
|
|
1166
|
-
});
|
|
1167
|
-
export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1168
|
-
q: S.optional(S.String),
|
|
1169
|
-
query_by: S.optional(S.String),
|
|
1170
|
-
validate_field_names: S.optional(S.Boolean),
|
|
1171
|
-
nl_query: S.optional(S.Boolean),
|
|
1172
|
-
nl_model_id: S.optional(S.String),
|
|
1173
|
-
query_by_weights: S.optional(S.String),
|
|
1174
|
-
text_match_type: S.optional(S.String),
|
|
1175
|
-
prefix: S.optional(S.String),
|
|
1176
|
-
infix: S.optional(S.String),
|
|
1177
|
-
max_extra_prefix: S.optional(S.Number),
|
|
1178
|
-
max_extra_suffix: S.optional(S.Number),
|
|
1179
|
-
filter_by: S.optional(S.String),
|
|
1180
|
-
max_filter_by_candidates: S.optional(S.Number),
|
|
1181
|
-
sort_by: S.optional(S.String),
|
|
1182
|
-
facet_by: S.optional(S.String),
|
|
1183
|
-
max_facet_values: S.optional(S.Number),
|
|
1184
|
-
facet_query: S.optional(S.String),
|
|
1185
|
-
num_typos: S.optional(S.String),
|
|
1186
|
-
page: S.optional(S.Number),
|
|
1187
|
-
per_page: S.optional(S.Number),
|
|
1188
|
-
limit: S.optional(S.Number),
|
|
1189
|
-
offset: S.optional(S.Number),
|
|
1190
|
-
group_by: S.optional(S.String),
|
|
1191
|
-
group_limit: S.optional(S.Number),
|
|
1192
|
-
group_missing_values: S.optional(S.Boolean),
|
|
1193
|
-
include_fields: S.optional(S.String),
|
|
1194
|
-
exclude_fields: S.optional(S.String),
|
|
1195
|
-
highlight_full_fields: S.optional(S.String),
|
|
1196
|
-
highlight_affix_num_tokens: S.optional(S.Number),
|
|
1197
|
-
highlight_start_tag: S.optional(S.String),
|
|
1198
|
-
highlight_end_tag: S.optional(S.String),
|
|
1199
|
-
enable_highlight_v1: S.optional(S.Boolean),
|
|
1200
|
-
enable_analytics: S.optional(S.Boolean),
|
|
1201
|
-
snippet_threshold: S.optional(S.Number),
|
|
1202
|
-
synonym_sets: S.optional(S.String),
|
|
1203
|
-
drop_tokens_threshold: S.optional(S.Number),
|
|
1204
|
-
drop_tokens_mode: S.optional(DropTokensMode),
|
|
1205
|
-
typo_tokens_threshold: S.optional(S.Number),
|
|
1206
|
-
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
1207
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
1208
|
-
enable_synonyms: S.optional(S.Boolean),
|
|
1209
|
-
synonym_prefix: S.optional(S.Boolean),
|
|
1210
|
-
synonym_num_typos: S.optional(S.Number),
|
|
1211
|
-
pinned_hits: S.optional(S.String),
|
|
1212
|
-
hidden_hits: S.optional(S.String),
|
|
1213
|
-
curation_tags: S.optional(S.String),
|
|
1214
|
-
highlight_fields: S.optional(S.String),
|
|
1215
|
-
split_join_tokens: S.optional(S.String),
|
|
1216
|
-
pre_segmented_query: S.optional(S.Boolean),
|
|
1217
|
-
preset: S.optional(S.String),
|
|
1218
|
-
enable_curations: S.optional(S.Boolean),
|
|
1219
|
-
prioritize_exact_match: S.optional(S.Boolean),
|
|
1220
|
-
max_candidates: S.optional(S.Number),
|
|
1221
|
-
prioritize_token_position: S.optional(S.Boolean),
|
|
1222
|
-
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
1223
|
-
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
1224
|
-
exhaustive_search: S.optional(S.Boolean),
|
|
1225
|
-
search_cutoff_ms: S.optional(S.Number),
|
|
1226
|
-
use_cache: S.optional(S.Boolean),
|
|
1227
|
-
cache_ttl: S.optional(S.Number),
|
|
1228
|
-
min_len_1typo: S.optional(S.Number),
|
|
1229
|
-
min_len_2typo: S.optional(S.Number),
|
|
1230
|
-
vector_query: S.optional(S.String),
|
|
1231
|
-
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
1232
|
-
remote_embedding_num_tries: S.optional(S.Number),
|
|
1233
|
-
facet_strategy: S.optional(S.String),
|
|
1234
|
-
stopwords: S.optional(S.String),
|
|
1235
|
-
facet_return_parent: S.optional(S.String),
|
|
1236
|
-
voice_query: S.optional(S.String),
|
|
1237
|
-
conversation: S.optional(S.Boolean),
|
|
1238
|
-
conversation_model_id: S.optional(S.String),
|
|
1239
|
-
conversation_id: S.optional(S.String),
|
|
1240
|
-
})).annotate({
|
|
1241
|
-
identifier: "SearchParameters",
|
|
1242
|
-
});
|
|
1243
|
-
export const MultiSearchSearchesParameterSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
1244
|
-
export const MultiSearchSearchesParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1245
|
-
union: S.optional(S.Boolean),
|
|
1246
|
-
searches: MultiSearchSearchesParameterSearchesList,
|
|
1247
|
-
})).annotate({
|
|
1248
|
-
identifier: "MultiSearchSearchesParameter",
|
|
1249
|
-
});
|
|
1250
|
-
export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
1251
|
-
[
|
|
1252
|
-
"q",
|
|
1253
|
-
"query_by",
|
|
1254
|
-
"validate_field_names",
|
|
1255
|
-
"nl_query",
|
|
1256
|
-
"nl_model_id",
|
|
1257
|
-
"query_by_weights",
|
|
1258
|
-
"text_match_type",
|
|
1259
|
-
"prefix",
|
|
1260
|
-
"infix",
|
|
1261
|
-
"max_extra_prefix",
|
|
1262
|
-
"max_extra_suffix",
|
|
1263
|
-
"filter_by",
|
|
1264
|
-
"max_filter_by_candidates",
|
|
1265
|
-
"sort_by",
|
|
1266
|
-
"facet_by",
|
|
1267
|
-
"max_facet_values",
|
|
1268
|
-
"facet_query",
|
|
1269
|
-
"num_typos",
|
|
1270
|
-
"page",
|
|
1271
|
-
"per_page",
|
|
1272
|
-
"limit",
|
|
1273
|
-
"offset",
|
|
1274
|
-
"group_by",
|
|
1275
|
-
"group_limit",
|
|
1276
|
-
"group_missing_values",
|
|
1277
|
-
"include_fields",
|
|
1278
|
-
"exclude_fields",
|
|
1279
|
-
"highlight_full_fields",
|
|
1280
|
-
"highlight_affix_num_tokens",
|
|
1281
|
-
"highlight_start_tag",
|
|
1282
|
-
"highlight_end_tag",
|
|
1283
|
-
"enable_highlight_v1",
|
|
1284
|
-
"enable_analytics",
|
|
1285
|
-
"snippet_threshold",
|
|
1286
|
-
"synonym_sets",
|
|
1287
|
-
"drop_tokens_threshold",
|
|
1288
|
-
"drop_tokens_mode",
|
|
1289
|
-
"typo_tokens_threshold",
|
|
1290
|
-
"enable_typos_for_alpha_numerical_tokens",
|
|
1291
|
-
"filter_curated_hits",
|
|
1292
|
-
"enable_synonyms",
|
|
1293
|
-
"synonym_prefix",
|
|
1294
|
-
"synonym_num_typos",
|
|
1295
|
-
"pinned_hits",
|
|
1296
|
-
"hidden_hits",
|
|
1297
|
-
"curation_tags",
|
|
1298
|
-
"highlight_fields",
|
|
1299
|
-
"split_join_tokens",
|
|
1300
|
-
"pre_segmented_query",
|
|
1301
|
-
"preset",
|
|
1302
|
-
"enable_curations",
|
|
1303
|
-
"prioritize_exact_match",
|
|
1304
|
-
"max_candidates",
|
|
1305
|
-
"prioritize_token_position",
|
|
1306
|
-
"prioritize_num_matching_fields",
|
|
1307
|
-
"enable_typos_for_numerical_tokens",
|
|
1308
|
-
"exhaustive_search",
|
|
1309
|
-
"search_cutoff_ms",
|
|
1310
|
-
"use_cache",
|
|
1311
|
-
"cache_ttl",
|
|
1312
|
-
"min_len_1typo",
|
|
1313
|
-
"min_len_2typo",
|
|
1314
|
-
"vector_query",
|
|
1315
|
-
"remote_embedding_timeout_ms",
|
|
1316
|
-
"remote_embedding_num_tries",
|
|
1317
|
-
"facet_strategy",
|
|
1318
|
-
"stopwords",
|
|
1319
|
-
"facet_return_parent",
|
|
1320
|
-
"voice_query",
|
|
1321
|
-
"conversation",
|
|
1322
|
-
"conversation_model_id",
|
|
1323
|
-
"conversation_id",
|
|
1324
|
-
],
|
|
1325
|
-
["union", "searches"],
|
|
1326
|
-
]));
|
|
1327
|
-
export const PresetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1328
|
-
value: PresetSchemaValue,
|
|
1329
|
-
name: S.String,
|
|
1330
|
-
})).annotate({ identifier: "PresetSchema" });
|
|
1331
|
-
export const PresetsRetrieveSchemaPresetsList = /*@__PURE__*/ S.Array(PresetSchema);
|
|
1332
|
-
export const PresetsRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
|
-
presets: PresetsRetrieveSchemaPresetsList,
|
|
1334
|
-
})).annotate({
|
|
1335
|
-
identifier: "PresetsRetrieveSchema",
|
|
1336
|
-
});
|
|
1337
|
-
export const RetrieveAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1338
|
-
ruleName: S.String.pipe(T.Label()),
|
|
1339
|
-
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
1340
|
-
identifier: "RetrieveAnalyticsRuleRequest",
|
|
1341
|
-
});
|
|
1342
|
-
export const RetrieveAnalyticsRuleResponseParamsMetaFieldsList =
|
|
1343
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1344
|
-
export const RetrieveAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1345
|
-
destination_collection: S.optional(S.String),
|
|
1346
|
-
limit: S.optional(S.Number),
|
|
1347
|
-
capture_search_requests: S.optional(S.Boolean),
|
|
1348
|
-
meta_fields: S.optional(RetrieveAnalyticsRuleResponseParamsMetaFieldsList),
|
|
1349
|
-
expand_query: S.optional(S.Boolean),
|
|
1350
|
-
counter_field: S.optional(S.String),
|
|
1351
|
-
weight: S.optional(S.Number),
|
|
1352
|
-
})).annotate({
|
|
1353
|
-
identifier: "RetrieveAnalyticsRuleResponseParams",
|
|
1354
|
-
});
|
|
1355
|
-
export const RetrieveAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1356
|
-
name: S.String,
|
|
1357
|
-
type: AnalyticsRuleType,
|
|
1358
|
-
collection: S.String,
|
|
1359
|
-
event_type: S.String,
|
|
1360
|
-
rule_tag: S.optional(S.String),
|
|
1361
|
-
params: S.optional(RetrieveAnalyticsRuleResponseParams),
|
|
1362
|
-
})).annotate({
|
|
1363
|
-
identifier: "RetrieveAnalyticsRuleResponse",
|
|
1364
|
-
});
|
|
1365
|
-
export const RetrieveAnalyticsRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1366
|
-
rule_tag: S.optional(S.String.pipe(T.Query())),
|
|
1367
|
-
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 }))).annotate({
|
|
1368
|
-
identifier: "RetrieveAnalyticsRulesRequest",
|
|
1369
|
-
});
|
|
1370
|
-
export const RetrieveAnalyticsRulesResponseBodyList = /*@__PURE__*/ S.Array(AnalyticsRule);
|
|
1371
|
-
export const RetrieveAnalyticsRulesResponse = /*@__PURE__*/ S.suspend(() => RetrieveAnalyticsRulesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1372
|
-
identifier: "RetrieveAnalyticsRulesResponse",
|
|
1373
|
-
});
|
|
1374
|
-
export const RetrieveAPIStatsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 }))).annotate({
|
|
1375
|
-
identifier: "RetrieveAPIStatsRequest",
|
|
1376
|
-
});
|
|
1377
|
-
export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1378
|
-
delete_latency_ms: S.optional(S.Number),
|
|
1379
|
-
delete_requests_per_second: S.optional(S.Number),
|
|
1380
|
-
import_latency_ms: S.optional(S.Number),
|
|
1381
|
-
import_requests_per_second: S.optional(S.Number),
|
|
1382
|
-
latency_ms: S.optional(S.Unknown),
|
|
1383
|
-
overloaded_requests_per_second: S.optional(S.Number),
|
|
1384
|
-
pending_write_batches: S.optional(S.Number),
|
|
1385
|
-
requests_per_second: S.optional(S.Unknown),
|
|
1386
|
-
search_latency_ms: S.optional(S.Number),
|
|
1387
|
-
search_requests_per_second: S.optional(S.Number),
|
|
1388
|
-
total_requests_per_second: S.optional(S.Number),
|
|
1389
|
-
write_latency_ms: S.optional(S.Number),
|
|
1390
|
-
write_requests_per_second: S.optional(S.Number),
|
|
1391
|
-
})).annotate({
|
|
1392
|
-
identifier: "APIStatsResponse",
|
|
1393
|
-
});
|
|
1394
|
-
export const RetrieveConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1395
|
-
modelId: S.String.pipe(T.Label()),
|
|
1396
|
-
}).pipe(T.Http({
|
|
1397
|
-
method: "GET",
|
|
1398
|
-
uri: "/conversations/models/{modelId}",
|
|
1399
|
-
code: 200,
|
|
1400
|
-
}))).annotate({
|
|
1401
|
-
identifier: "RetrieveConversationModelRequest",
|
|
1402
|
-
});
|
|
1403
|
-
export const RetrieveConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1404
|
-
id: S.String,
|
|
1405
|
-
model_name: S.String,
|
|
1406
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1407
|
-
history_collection: S.String,
|
|
1408
|
-
account_id: S.optional(S.String),
|
|
1409
|
-
system_prompt: S.optional(S.String),
|
|
1410
|
-
ttl: S.optional(S.Number),
|
|
1411
|
-
max_bytes: S.Number,
|
|
1412
|
-
vllm_url: S.optional(S.String),
|
|
1413
|
-
})).annotate({
|
|
1414
|
-
identifier: "RetrieveConversationModelResponse",
|
|
1415
|
-
});
|
|
1416
|
-
export const RetrieveCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1417
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
1418
|
-
}).pipe(T.Http({
|
|
1419
|
-
method: "GET",
|
|
1420
|
-
uri: "/curation_sets/{curationSetName}",
|
|
1421
|
-
code: 200,
|
|
1422
|
-
}))).annotate({
|
|
1423
|
-
identifier: "RetrieveCurationSetRequest",
|
|
1424
|
-
});
|
|
1425
|
-
export const CurationRuleTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1426
|
-
export const CurationRuleMatch = /*@__PURE__*/ S.String;
|
|
1427
|
-
export const CurationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1428
|
-
tags: S.optional(CurationRuleTagsList),
|
|
1429
|
-
query: S.optional(S.String),
|
|
1430
|
-
match: S.optional(CurationRuleMatch),
|
|
1431
|
-
filter_by: S.optional(S.String),
|
|
1432
|
-
})).annotate({ identifier: "CurationRule" });
|
|
1433
|
-
export const CurationInclude = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1434
|
-
id: S.String,
|
|
1435
|
-
position: S.Number,
|
|
1436
|
-
})).annotate({
|
|
1437
|
-
identifier: "CurationInclude",
|
|
1438
|
-
});
|
|
1439
|
-
export const CurationItemCreateSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1440
|
-
export const CurationExclude = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1441
|
-
id: S.String,
|
|
1442
|
-
})).annotate({
|
|
1443
|
-
identifier: "CurationExclude",
|
|
1444
|
-
});
|
|
1445
|
-
export const CurationItemCreateSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
1446
|
-
export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1447
|
-
rule: CurationRule,
|
|
1448
|
-
includes: S.optional(CurationItemCreateSchemaIncludesList),
|
|
1449
|
-
excludes: S.optional(CurationItemCreateSchemaExcludesList),
|
|
1450
|
-
filter_by: S.optional(S.String),
|
|
1451
|
-
remove_matched_tokens: S.optional(S.Boolean),
|
|
1452
|
-
metadata: S.optional(S.Unknown),
|
|
1453
|
-
sort_by: S.optional(S.String),
|
|
1454
|
-
replace_query: S.optional(S.String),
|
|
1455
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
1456
|
-
effective_from_ts: S.optional(S.Number),
|
|
1457
|
-
effective_to_ts: S.optional(S.Number),
|
|
1458
|
-
stop_processing: S.optional(S.Boolean),
|
|
1459
|
-
id: S.optional(S.String),
|
|
1460
|
-
})).annotate({
|
|
1461
|
-
identifier: "CurationItemCreateSchema",
|
|
1462
|
-
});
|
|
1463
|
-
export const RetrieveCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1464
|
-
export const RetrieveCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1465
|
-
items: RetrieveCurationSetResponseItemsList,
|
|
1466
|
-
description: S.optional(S.String),
|
|
1467
|
-
name: S.String,
|
|
1468
|
-
})).annotate({
|
|
1469
|
-
identifier: "RetrieveCurationSetResponse",
|
|
1470
|
-
});
|
|
1471
|
-
export const RetrieveCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1472
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
1473
|
-
itemId: S.String.pipe(T.Label()),
|
|
1474
|
-
}).pipe(T.Http({
|
|
1475
|
-
method: "GET",
|
|
1476
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
1477
|
-
code: 200,
|
|
1478
|
-
}))).annotate({
|
|
1479
|
-
identifier: "RetrieveCurationSetItemRequest",
|
|
1480
|
-
});
|
|
1481
|
-
export const RetrieveCurationSetItemResponseIncludesList =
|
|
1482
|
-
/*@__PURE__*/ S.Array(CurationInclude);
|
|
1483
|
-
export const RetrieveCurationSetItemResponseExcludesList =
|
|
1484
|
-
/*@__PURE__*/ S.Array(CurationExclude);
|
|
1485
|
-
export const RetrieveCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1486
|
-
rule: CurationRule,
|
|
1487
|
-
includes: S.optional(RetrieveCurationSetItemResponseIncludesList),
|
|
1488
|
-
excludes: S.optional(RetrieveCurationSetItemResponseExcludesList),
|
|
1489
|
-
filter_by: S.optional(S.String),
|
|
1490
|
-
remove_matched_tokens: S.optional(S.Boolean),
|
|
1491
|
-
metadata: S.optional(S.Unknown),
|
|
1492
|
-
sort_by: S.optional(S.String),
|
|
1493
|
-
replace_query: S.optional(S.String),
|
|
1494
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
1495
|
-
effective_from_ts: S.optional(S.Number),
|
|
1496
|
-
effective_to_ts: S.optional(S.Number),
|
|
1497
|
-
stop_processing: S.optional(S.Boolean),
|
|
1498
|
-
id: S.String,
|
|
1499
|
-
})).annotate({
|
|
1500
|
-
identifier: "RetrieveCurationSetItemResponse",
|
|
1501
|
-
});
|
|
1502
|
-
export const RetrieveCurationSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1503
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
1504
|
-
}).pipe(T.Http({
|
|
1505
|
-
method: "GET",
|
|
1506
|
-
uri: "/curation_sets/{curationSetName}/items",
|
|
1507
|
-
code: 200,
|
|
1508
|
-
}))).annotate({
|
|
1509
|
-
identifier: "RetrieveCurationSetItemsRequest",
|
|
1510
|
-
});
|
|
1511
|
-
export const CurationItemSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1512
|
-
export const CurationItemSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
1513
|
-
export const CurationItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
|
-
rule: CurationRule,
|
|
1515
|
-
includes: S.optional(CurationItemSchemaIncludesList),
|
|
1516
|
-
excludes: S.optional(CurationItemSchemaExcludesList),
|
|
1517
|
-
filter_by: S.optional(S.String),
|
|
1518
|
-
remove_matched_tokens: S.optional(S.Boolean),
|
|
1519
|
-
metadata: S.optional(S.Unknown),
|
|
1520
|
-
sort_by: S.optional(S.String),
|
|
1521
|
-
replace_query: S.optional(S.String),
|
|
1522
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
1523
|
-
effective_from_ts: S.optional(S.Number),
|
|
1524
|
-
effective_to_ts: S.optional(S.Number),
|
|
1525
|
-
stop_processing: S.optional(S.Boolean),
|
|
1526
|
-
id: S.String,
|
|
1527
|
-
})).annotate({
|
|
1528
|
-
identifier: "CurationItemSchema",
|
|
1529
|
-
});
|
|
1530
|
-
export const RetrieveCurationSetItemsResponseBodyList = /*@__PURE__*/ S.Array(CurationItemSchema);
|
|
1531
|
-
export const RetrieveCurationSetItemsResponse = /*@__PURE__*/ S.suspend(() => RetrieveCurationSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1532
|
-
identifier: "RetrieveCurationSetItemsResponse",
|
|
1533
|
-
});
|
|
1534
|
-
export const RetrieveCurationSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 }))).annotate({
|
|
1535
|
-
identifier: "RetrieveCurationSetsRequest",
|
|
1536
|
-
});
|
|
1537
|
-
export const CurationSetSchemaItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1538
|
-
export const CurationSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1539
|
-
items: CurationSetSchemaItemsList,
|
|
1540
|
-
description: S.optional(S.String),
|
|
1541
|
-
name: S.String,
|
|
1542
|
-
})).annotate({
|
|
1543
|
-
identifier: "CurationSetSchema",
|
|
1544
|
-
});
|
|
1545
|
-
export const RetrieveCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(CurationSetSchema);
|
|
1546
|
-
export const RetrieveCurationSetsResponse = /*@__PURE__*/ S.suspend(() => RetrieveCurationSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1547
|
-
identifier: "RetrieveCurationSetsResponse",
|
|
1548
|
-
});
|
|
1549
|
-
export const RetrieveMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 }))).annotate({
|
|
1550
|
-
identifier: "RetrieveMetricsRequest",
|
|
1551
|
-
});
|
|
1552
|
-
export const RetrieveMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1553
|
-
identifier: "RetrieveMetricsResponse",
|
|
1554
|
-
});
|
|
1555
|
-
export const RetrieveNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1556
|
-
modelId: S.String.pipe(T.Label()),
|
|
1557
|
-
}).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
1558
|
-
identifier: "RetrieveNLSearchModelRequest",
|
|
1559
|
-
});
|
|
1560
|
-
export const RetrieveNLSearchModelResponseStopSequencesList =
|
|
1561
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1562
|
-
export const RetrieveNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1563
|
-
model_name: S.optional(S.String),
|
|
1564
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1565
|
-
api_url: S.optional(S.String),
|
|
1566
|
-
max_bytes: S.optional(S.Number),
|
|
1567
|
-
temperature: S.optional(S.Number),
|
|
1568
|
-
system_prompt: S.optional(S.String),
|
|
1569
|
-
top_p: S.optional(S.Number),
|
|
1570
|
-
top_k: S.optional(S.Number),
|
|
1571
|
-
stop_sequences: S.optional(RetrieveNLSearchModelResponseStopSequencesList),
|
|
1572
|
-
api_version: S.optional(S.String),
|
|
1573
|
-
project_id: S.optional(S.String),
|
|
1574
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1575
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1576
|
-
client_id: S.optional(S.String),
|
|
1577
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1578
|
-
region: S.optional(S.String),
|
|
1579
|
-
max_output_tokens: S.optional(S.Number),
|
|
1580
|
-
account_id: S.optional(S.String),
|
|
1581
|
-
id: S.String,
|
|
1582
|
-
})).annotate({
|
|
1583
|
-
identifier: "RetrieveNLSearchModelResponse",
|
|
1584
|
-
});
|
|
1585
|
-
export const RetrievePresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1586
|
-
presetId: S.String.pipe(T.Label()),
|
|
1587
|
-
}).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
1588
|
-
identifier: "RetrievePresetRequest",
|
|
1589
|
-
});
|
|
1590
|
-
export const RetrievePresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
1591
|
-
[
|
|
1592
|
-
"q",
|
|
1593
|
-
"query_by",
|
|
1594
|
-
"validate_field_names",
|
|
1595
|
-
"nl_query",
|
|
1596
|
-
"nl_model_id",
|
|
1597
|
-
"query_by_weights",
|
|
1598
|
-
"text_match_type",
|
|
1599
|
-
"prefix",
|
|
1600
|
-
"infix",
|
|
1601
|
-
"max_extra_prefix",
|
|
1602
|
-
"max_extra_suffix",
|
|
1603
|
-
"filter_by",
|
|
1604
|
-
"max_filter_by_candidates",
|
|
1605
|
-
"sort_by",
|
|
1606
|
-
"facet_by",
|
|
1607
|
-
"max_facet_values",
|
|
1608
|
-
"facet_query",
|
|
1609
|
-
"num_typos",
|
|
1610
|
-
"page",
|
|
1611
|
-
"per_page",
|
|
1612
|
-
"limit",
|
|
1613
|
-
"offset",
|
|
1614
|
-
"group_by",
|
|
1615
|
-
"group_limit",
|
|
1616
|
-
"group_missing_values",
|
|
1617
|
-
"include_fields",
|
|
1618
|
-
"exclude_fields",
|
|
1619
|
-
"highlight_full_fields",
|
|
1620
|
-
"highlight_affix_num_tokens",
|
|
1621
|
-
"highlight_start_tag",
|
|
1622
|
-
"highlight_end_tag",
|
|
1623
|
-
"enable_highlight_v1",
|
|
1624
|
-
"enable_analytics",
|
|
1625
|
-
"snippet_threshold",
|
|
1626
|
-
"synonym_sets",
|
|
1627
|
-
"drop_tokens_threshold",
|
|
1628
|
-
"drop_tokens_mode",
|
|
1629
|
-
"typo_tokens_threshold",
|
|
1630
|
-
"enable_typos_for_alpha_numerical_tokens",
|
|
1631
|
-
"filter_curated_hits",
|
|
1632
|
-
"enable_synonyms",
|
|
1633
|
-
"synonym_prefix",
|
|
1634
|
-
"synonym_num_typos",
|
|
1635
|
-
"pinned_hits",
|
|
1636
|
-
"hidden_hits",
|
|
1637
|
-
"curation_tags",
|
|
1638
|
-
"highlight_fields",
|
|
1639
|
-
"split_join_tokens",
|
|
1640
|
-
"pre_segmented_query",
|
|
1641
|
-
"preset",
|
|
1642
|
-
"enable_curations",
|
|
1643
|
-
"prioritize_exact_match",
|
|
1644
|
-
"max_candidates",
|
|
1645
|
-
"prioritize_token_position",
|
|
1646
|
-
"prioritize_num_matching_fields",
|
|
1647
|
-
"enable_typos_for_numerical_tokens",
|
|
1648
|
-
"exhaustive_search",
|
|
1649
|
-
"search_cutoff_ms",
|
|
1650
|
-
"use_cache",
|
|
1651
|
-
"cache_ttl",
|
|
1652
|
-
"min_len_1typo",
|
|
1653
|
-
"min_len_2typo",
|
|
1654
|
-
"vector_query",
|
|
1655
|
-
"remote_embedding_timeout_ms",
|
|
1656
|
-
"remote_embedding_num_tries",
|
|
1657
|
-
"facet_strategy",
|
|
1658
|
-
"stopwords",
|
|
1659
|
-
"facet_return_parent",
|
|
1660
|
-
"voice_query",
|
|
1661
|
-
"conversation",
|
|
1662
|
-
"conversation_model_id",
|
|
1663
|
-
"conversation_id",
|
|
1664
|
-
],
|
|
1665
|
-
["union", "searches"],
|
|
1666
|
-
]));
|
|
1667
|
-
export const RetrievePresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1668
|
-
value: RetrievePresetResponseValue,
|
|
1669
|
-
name: S.String,
|
|
1670
|
-
})).annotate({
|
|
1671
|
-
identifier: "RetrievePresetResponse",
|
|
1672
|
-
});
|
|
1673
|
-
export const RetrieveStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1674
|
-
setId: S.String.pipe(T.Label()),
|
|
1675
|
-
}).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
1676
|
-
identifier: "RetrieveStopwordsSetRequest",
|
|
1677
|
-
});
|
|
1678
|
-
export const StopwordsSetSchemaStopwordsList = /*@__PURE__*/ S.Array(S.String);
|
|
1679
|
-
export const StopwordsSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1680
|
-
id: S.String,
|
|
1681
|
-
stopwords: StopwordsSetSchemaStopwordsList,
|
|
1682
|
-
locale: S.optional(S.String),
|
|
1683
|
-
})).annotate({
|
|
1684
|
-
identifier: "StopwordsSetSchema",
|
|
1685
|
-
});
|
|
1686
|
-
export const StopwordsSetRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1687
|
-
stopwords: StopwordsSetSchema,
|
|
1688
|
-
})).annotate({
|
|
1689
|
-
identifier: "StopwordsSetRetrieveSchema",
|
|
1690
|
-
});
|
|
1691
|
-
export const RetrieveStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 }))).annotate({
|
|
1692
|
-
identifier: "RetrieveStopwordsSetsRequest",
|
|
1693
|
-
});
|
|
1694
|
-
export const StopwordsSetsRetrieveAllSchemaStopwordsList =
|
|
1695
|
-
/*@__PURE__*/ S.Array(StopwordsSetSchema);
|
|
1696
|
-
export const StopwordsSetsRetrieveAllSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1697
|
-
stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList,
|
|
1698
|
-
})).annotate({
|
|
1699
|
-
identifier: "StopwordsSetsRetrieveAllSchema",
|
|
1700
|
-
});
|
|
1701
|
-
export const RetrieveSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1702
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
1703
|
-
}).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
|
|
1704
|
-
identifier: "RetrieveSynonymSetRequest",
|
|
1705
|
-
});
|
|
1706
|
-
export const SynonymItemSchemaSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1707
|
-
export const SynonymItemSchemaSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
1708
|
-
export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1709
|
-
id: S.String,
|
|
1710
|
-
synonyms: SynonymItemSchemaSynonymsList,
|
|
1711
|
-
root: S.optional(S.String),
|
|
1712
|
-
locale: S.optional(S.String),
|
|
1713
|
-
symbols_to_index: S.optional(SynonymItemSchemaSymbolsToIndexList),
|
|
1714
|
-
})).annotate({
|
|
1715
|
-
identifier: "SynonymItemSchema",
|
|
1716
|
-
});
|
|
1717
|
-
export const RetrieveSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1718
|
-
export const RetrieveSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1719
|
-
items: RetrieveSynonymSetResponseItemsList,
|
|
1720
|
-
name: S.String,
|
|
1721
|
-
})).annotate({
|
|
1722
|
-
identifier: "RetrieveSynonymSetResponse",
|
|
1723
|
-
});
|
|
1724
|
-
export const RetrieveSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1725
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
1726
|
-
itemId: S.String.pipe(T.Label()),
|
|
1727
|
-
}).pipe(T.Http({
|
|
1728
|
-
method: "GET",
|
|
1729
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
1730
|
-
code: 200,
|
|
1731
|
-
}))).annotate({
|
|
1732
|
-
identifier: "RetrieveSynonymSetItemRequest",
|
|
1733
|
-
});
|
|
1734
|
-
export const RetrieveSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1735
|
-
export const RetrieveSynonymSetItemResponseSymbolsToIndexList =
|
|
1736
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1737
|
-
export const RetrieveSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1738
|
-
id: S.String,
|
|
1739
|
-
synonyms: RetrieveSynonymSetItemResponseSynonymsList,
|
|
1740
|
-
root: S.optional(S.String),
|
|
1741
|
-
locale: S.optional(S.String),
|
|
1742
|
-
symbols_to_index: S.optional(RetrieveSynonymSetItemResponseSymbolsToIndexList),
|
|
1743
|
-
})).annotate({
|
|
1744
|
-
identifier: "RetrieveSynonymSetItemResponse",
|
|
1745
|
-
});
|
|
1746
|
-
export const RetrieveSynonymSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1747
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
1748
|
-
}).pipe(T.Http({
|
|
1749
|
-
method: "GET",
|
|
1750
|
-
uri: "/synonym_sets/{synonymSetName}/items",
|
|
1751
|
-
code: 200,
|
|
1752
|
-
}))).annotate({
|
|
1753
|
-
identifier: "RetrieveSynonymSetItemsRequest",
|
|
1754
|
-
});
|
|
1755
|
-
export const RetrieveSynonymSetItemsResponseBodyList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1756
|
-
export const RetrieveSynonymSetItemsResponse = /*@__PURE__*/ S.suspend(() => RetrieveSynonymSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1757
|
-
identifier: "RetrieveSynonymSetItemsResponse",
|
|
1758
|
-
});
|
|
1759
|
-
export const RetrieveSynonymSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 }))).annotate({
|
|
1760
|
-
identifier: "RetrieveSynonymSetsRequest",
|
|
1761
|
-
});
|
|
1762
|
-
export const SynonymSetSchemaItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1763
|
-
export const SynonymSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1764
|
-
items: SynonymSetSchemaItemsList,
|
|
1765
|
-
name: S.String,
|
|
1766
|
-
})).annotate({
|
|
1767
|
-
identifier: "SynonymSetSchema",
|
|
1768
|
-
});
|
|
1769
|
-
export const RetrieveSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(SynonymSetSchema);
|
|
1770
|
-
export const RetrieveSynonymSetsResponse = /*@__PURE__*/ S.suspend(() => RetrieveSynonymSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1771
|
-
identifier: "RetrieveSynonymSetsResponse",
|
|
1772
|
-
});
|
|
1773
|
-
export const SearchCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1774
|
-
collectionName: S.String.pipe(T.Label()),
|
|
1775
|
-
searchParameters: SearchParameters.pipe(T.Query()),
|
|
1776
|
-
}).pipe(T.Http({
|
|
1777
|
-
method: "GET",
|
|
1778
|
-
uri: "/collections/{collectionName}/documents/search",
|
|
1779
|
-
code: 200,
|
|
1780
|
-
}))).annotate({
|
|
1781
|
-
identifier: "SearchCollectionRequest",
|
|
1782
|
-
});
|
|
1783
|
-
export const SearchResultFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1784
|
-
export const SearchResultGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1785
|
-
export const SearchResultHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1786
|
-
export const SearchResultUnionRequestParamsList = /*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1787
|
-
export const SearchResultMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1788
|
-
export const SearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1789
|
-
facet_counts: S.optional(SearchResultFacetCountsList),
|
|
1790
|
-
found: S.optional(S.Number),
|
|
1791
|
-
found_docs: S.optional(S.Number),
|
|
1792
|
-
search_time_ms: S.optional(S.Number),
|
|
1793
|
-
out_of: S.optional(S.Number),
|
|
1794
|
-
search_cutoff: S.optional(S.Boolean),
|
|
1795
|
-
page: S.optional(S.Number),
|
|
1796
|
-
grouped_hits: S.optional(SearchResultGroupedHitsList),
|
|
1797
|
-
hits: S.optional(SearchResultHitsList),
|
|
1798
|
-
request_params: S.optional(SearchRequestParams),
|
|
1799
|
-
conversation: S.optional(SearchResultConversation),
|
|
1800
|
-
union_request_params: S.optional(SearchResultUnionRequestParamsList),
|
|
1801
|
-
metadata: S.optional(SearchResultMetadataMap),
|
|
1802
|
-
})).annotate({ identifier: "SearchResult" });
|
|
1803
|
-
export const TakeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1804
|
-
snapshot_path: S.String.pipe(T.Query()),
|
|
1805
|
-
}).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 }))).annotate({
|
|
1806
|
-
identifier: "TakeSnapshotRequest",
|
|
1807
|
-
});
|
|
1808
|
-
export const ToggleSlowRequestLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1809
|
-
log_slow_requests_time_ms: S.Number.pipe(T.Body("log-slow-requests-time-ms")),
|
|
1810
|
-
}).pipe(T.Http({ method: "POST", uri: "/config", code: 200 }))).annotate({
|
|
1811
|
-
identifier: "ToggleSlowRequestLogRequest",
|
|
1812
|
-
});
|
|
1813
|
-
export const UpdateCollectionRequestFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
1814
|
-
export const UpdateCollectionRequestSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1815
|
-
export const UpdateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1816
|
-
collectionName: S.String.pipe(T.Label()),
|
|
1817
|
-
fields: S.optional(UpdateCollectionRequestFieldsList),
|
|
1818
|
-
synonym_sets: S.optional(UpdateCollectionRequestSynonymSetsList),
|
|
1819
|
-
metadata: S.optional(S.Unknown),
|
|
1820
|
-
}).pipe(T.Http({
|
|
1821
|
-
method: "PATCH",
|
|
1822
|
-
uri: "/collections/{collectionName}",
|
|
1823
|
-
code: 200,
|
|
1824
|
-
}))).annotate({
|
|
1825
|
-
identifier: "UpdateCollectionRequest",
|
|
1826
|
-
});
|
|
1827
|
-
export const CollectionUpdateSchemaFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
1828
|
-
export const CollectionUpdateSchemaSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1829
|
-
export const CollectionUpdateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1830
|
-
fields: S.optional(CollectionUpdateSchemaFieldsList),
|
|
1831
|
-
synonym_sets: S.optional(CollectionUpdateSchemaSynonymSetsList),
|
|
1832
|
-
metadata: S.optional(S.Unknown),
|
|
1833
|
-
})).annotate({
|
|
1834
|
-
identifier: "CollectionUpdateSchema",
|
|
1835
|
-
});
|
|
1836
|
-
export const UpdateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1837
|
-
modelId: S.String.pipe(T.Label()),
|
|
1838
|
-
id: S.optional(S.String),
|
|
1839
|
-
model_name: S.optional(S.String),
|
|
1840
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1841
|
-
history_collection: S.optional(S.String),
|
|
1842
|
-
account_id: S.optional(S.String),
|
|
1843
|
-
system_prompt: S.optional(S.String),
|
|
1844
|
-
ttl: S.optional(S.Number),
|
|
1845
|
-
max_bytes: S.optional(S.Number),
|
|
1846
|
-
vllm_url: S.optional(S.String),
|
|
1847
|
-
}).pipe(T.Http({
|
|
1848
|
-
method: "PUT",
|
|
1849
|
-
uri: "/conversations/models/{modelId}",
|
|
1850
|
-
code: 200,
|
|
1851
|
-
}))).annotate({
|
|
1852
|
-
identifier: "UpdateConversationModelRequest",
|
|
1853
|
-
});
|
|
1854
|
-
export const UpdateConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1855
|
-
id: S.String,
|
|
1856
|
-
model_name: S.String,
|
|
1857
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1858
|
-
history_collection: S.String,
|
|
1859
|
-
account_id: S.optional(S.String),
|
|
1860
|
-
system_prompt: S.optional(S.String),
|
|
1861
|
-
ttl: S.optional(S.Number),
|
|
1862
|
-
max_bytes: S.Number,
|
|
1863
|
-
vllm_url: S.optional(S.String),
|
|
1864
|
-
})).annotate({
|
|
1865
|
-
identifier: "UpdateConversationModelResponse",
|
|
1866
|
-
});
|
|
1867
|
-
export const UpdateDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1868
|
-
collectionName: S.String.pipe(T.Label()),
|
|
1869
|
-
documentId: S.String.pipe(T.Label()),
|
|
1870
|
-
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
1871
|
-
}).pipe(T.Http({
|
|
1872
|
-
method: "PATCH",
|
|
1873
|
-
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
1874
|
-
code: 200,
|
|
1875
|
-
}))).annotate({
|
|
1876
|
-
identifier: "UpdateDocumentRequest",
|
|
1877
|
-
});
|
|
1878
|
-
export const UpdateDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1879
|
-
identifier: "UpdateDocumentResponse",
|
|
1880
|
-
});
|
|
1881
|
-
export const UpdateDocumentsRequestUpdateDocumentsParameters =
|
|
1882
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1883
|
-
filter_by: S.optional(S.String),
|
|
1884
|
-
})).annotate({
|
|
1885
|
-
identifier: "UpdateDocumentsRequestUpdateDocumentsParameters",
|
|
1886
|
-
});
|
|
1887
|
-
export const UpdateDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1888
|
-
collectionName: S.String.pipe(T.Label()),
|
|
1889
|
-
updateDocumentsParameters: S.optional(UpdateDocumentsRequestUpdateDocumentsParameters.pipe(T.Query())),
|
|
1890
|
-
}).pipe(T.Http({
|
|
1891
|
-
method: "PATCH",
|
|
1892
|
-
uri: "/collections/{collectionName}/documents",
|
|
1893
|
-
code: 200,
|
|
1894
|
-
}))).annotate({
|
|
1895
|
-
identifier: "UpdateDocumentsRequest",
|
|
1896
|
-
});
|
|
1897
|
-
export const UpdateDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1898
|
-
num_updated: S.Number,
|
|
1899
|
-
})).annotate({
|
|
1900
|
-
identifier: "UpdateDocumentsResponse",
|
|
1901
|
-
});
|
|
1902
|
-
export const UpdateNLSearchModelRequestStopSequencesList =
|
|
1903
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1904
|
-
export const UpdateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1905
|
-
modelId: S.String.pipe(T.Label()),
|
|
1906
|
-
model_name: S.optional(S.String),
|
|
1907
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1908
|
-
api_url: S.optional(S.String),
|
|
1909
|
-
max_bytes: S.optional(S.Number),
|
|
1910
|
-
temperature: S.optional(S.Number),
|
|
1911
|
-
system_prompt: S.optional(S.String),
|
|
1912
|
-
top_p: S.optional(S.Number),
|
|
1913
|
-
top_k: S.optional(S.Number),
|
|
1914
|
-
stop_sequences: S.optional(UpdateNLSearchModelRequestStopSequencesList),
|
|
1915
|
-
api_version: S.optional(S.String),
|
|
1916
|
-
project_id: S.optional(S.String),
|
|
1917
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1918
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1919
|
-
client_id: S.optional(S.String),
|
|
1920
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1921
|
-
region: S.optional(S.String),
|
|
1922
|
-
max_output_tokens: S.optional(S.Number),
|
|
1923
|
-
account_id: S.optional(S.String),
|
|
1924
|
-
id: S.optional(S.String),
|
|
1925
|
-
}).pipe(T.Http({ method: "PUT", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
1926
|
-
identifier: "UpdateNLSearchModelRequest",
|
|
1927
|
-
});
|
|
1928
|
-
export const UpdateNLSearchModelResponseStopSequencesList =
|
|
1929
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1930
|
-
export const UpdateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1931
|
-
model_name: S.optional(S.String),
|
|
1932
|
-
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1933
|
-
api_url: S.optional(S.String),
|
|
1934
|
-
max_bytes: S.optional(S.Number),
|
|
1935
|
-
temperature: S.optional(S.Number),
|
|
1936
|
-
system_prompt: S.optional(S.String),
|
|
1937
|
-
top_p: S.optional(S.Number),
|
|
1938
|
-
top_k: S.optional(S.Number),
|
|
1939
|
-
stop_sequences: S.optional(UpdateNLSearchModelResponseStopSequencesList),
|
|
1940
|
-
api_version: S.optional(S.String),
|
|
1941
|
-
project_id: S.optional(S.String),
|
|
1942
|
-
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1943
|
-
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1944
|
-
client_id: S.optional(S.String),
|
|
1945
|
-
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1946
|
-
region: S.optional(S.String),
|
|
1947
|
-
max_output_tokens: S.optional(S.Number),
|
|
1948
|
-
account_id: S.optional(S.String),
|
|
1949
|
-
id: S.String,
|
|
1950
|
-
})).annotate({
|
|
1951
|
-
identifier: "UpdateNLSearchModelResponse",
|
|
1952
|
-
});
|
|
1953
|
-
export const UpsertAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1954
|
-
aliasName: S.String.pipe(T.Label()),
|
|
1955
|
-
collection_name: S.String,
|
|
1956
|
-
}).pipe(T.Http({ method: "PUT", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
1957
|
-
identifier: "UpsertAliasRequest",
|
|
1958
|
-
});
|
|
1959
|
-
export const UpsertAnalyticsRuleRequestParamsMetaFieldsList =
|
|
1960
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1961
|
-
export const UpsertAnalyticsRuleRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1962
|
-
destination_collection: S.optional(S.String),
|
|
1963
|
-
limit: S.optional(S.Number),
|
|
1964
|
-
capture_search_requests: S.optional(S.Boolean),
|
|
1965
|
-
meta_fields: S.optional(UpsertAnalyticsRuleRequestParamsMetaFieldsList),
|
|
1966
|
-
expand_query: S.optional(S.Boolean),
|
|
1967
|
-
counter_field: S.optional(S.String),
|
|
1968
|
-
weight: S.optional(S.Number),
|
|
1969
|
-
})).annotate({
|
|
1970
|
-
identifier: "UpsertAnalyticsRuleRequestParams",
|
|
1971
|
-
});
|
|
1972
|
-
export const UpsertAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1973
|
-
ruleName: S.String.pipe(T.Label()),
|
|
1974
|
-
name: S.optional(S.String),
|
|
1975
|
-
rule_tag: S.optional(S.String),
|
|
1976
|
-
params: S.optional(UpsertAnalyticsRuleRequestParams),
|
|
1977
|
-
}).pipe(T.Http({ method: "PUT", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
1978
|
-
identifier: "UpsertAnalyticsRuleRequest",
|
|
1979
|
-
});
|
|
1980
|
-
export const UpsertAnalyticsRuleResponseParamsMetaFieldsList =
|
|
1981
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
1982
|
-
export const UpsertAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1983
|
-
destination_collection: S.optional(S.String),
|
|
1984
|
-
limit: S.optional(S.Number),
|
|
1985
|
-
capture_search_requests: S.optional(S.Boolean),
|
|
1986
|
-
meta_fields: S.optional(UpsertAnalyticsRuleResponseParamsMetaFieldsList),
|
|
1987
|
-
expand_query: S.optional(S.Boolean),
|
|
1988
|
-
counter_field: S.optional(S.String),
|
|
1989
|
-
weight: S.optional(S.Number),
|
|
1990
|
-
})).annotate({
|
|
1991
|
-
identifier: "UpsertAnalyticsRuleResponseParams",
|
|
1992
|
-
});
|
|
1993
|
-
export const UpsertAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1994
|
-
name: S.String,
|
|
1995
|
-
type: AnalyticsRuleType,
|
|
1996
|
-
collection: S.String,
|
|
1997
|
-
event_type: S.String,
|
|
1998
|
-
rule_tag: S.optional(S.String),
|
|
1999
|
-
params: S.optional(UpsertAnalyticsRuleResponseParams),
|
|
2000
|
-
})).annotate({
|
|
2001
|
-
identifier: "UpsertAnalyticsRuleResponse",
|
|
2002
|
-
});
|
|
2003
|
-
export const UpsertCurationSetRequestItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
2004
|
-
export const UpsertCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2005
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
2006
|
-
items: UpsertCurationSetRequestItemsList,
|
|
2007
|
-
description: S.optional(S.String),
|
|
2008
|
-
}).pipe(T.Http({
|
|
2009
|
-
method: "PUT",
|
|
2010
|
-
uri: "/curation_sets/{curationSetName}",
|
|
2011
|
-
code: 200,
|
|
2012
|
-
}))).annotate({
|
|
2013
|
-
identifier: "UpsertCurationSetRequest",
|
|
2014
|
-
});
|
|
2015
|
-
export const UpsertCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
2016
|
-
export const UpsertCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2017
|
-
items: UpsertCurationSetResponseItemsList,
|
|
2018
|
-
description: S.optional(S.String),
|
|
2019
|
-
name: S.String,
|
|
2020
|
-
})).annotate({
|
|
2021
|
-
identifier: "UpsertCurationSetResponse",
|
|
2022
|
-
});
|
|
2023
|
-
export const UpsertCurationSetItemRequestIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
2024
|
-
export const UpsertCurationSetItemRequestExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
2025
|
-
export const UpsertCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2026
|
-
curationSetName: S.String.pipe(T.Label()),
|
|
2027
|
-
itemId: S.String.pipe(T.Label()),
|
|
2028
|
-
rule: CurationRule,
|
|
2029
|
-
includes: S.optional(UpsertCurationSetItemRequestIncludesList),
|
|
2030
|
-
excludes: S.optional(UpsertCurationSetItemRequestExcludesList),
|
|
2031
|
-
filter_by: S.optional(S.String),
|
|
2032
|
-
remove_matched_tokens: S.optional(S.Boolean),
|
|
2033
|
-
metadata: S.optional(S.Unknown),
|
|
2034
|
-
sort_by: S.optional(S.String),
|
|
2035
|
-
replace_query: S.optional(S.String),
|
|
2036
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
2037
|
-
effective_from_ts: S.optional(S.Number),
|
|
2038
|
-
effective_to_ts: S.optional(S.Number),
|
|
2039
|
-
stop_processing: S.optional(S.Boolean),
|
|
2040
|
-
id: S.optional(S.String),
|
|
2041
|
-
}).pipe(T.Http({
|
|
2042
|
-
method: "PUT",
|
|
2043
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
2044
|
-
code: 200,
|
|
2045
|
-
}))).annotate({
|
|
2046
|
-
identifier: "UpsertCurationSetItemRequest",
|
|
2047
|
-
});
|
|
2048
|
-
export const UpsertCurationSetItemResponseIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
2049
|
-
export const UpsertCurationSetItemResponseExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
2050
|
-
export const UpsertCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2051
|
-
rule: CurationRule,
|
|
2052
|
-
includes: S.optional(UpsertCurationSetItemResponseIncludesList),
|
|
2053
|
-
excludes: S.optional(UpsertCurationSetItemResponseExcludesList),
|
|
2054
|
-
filter_by: S.optional(S.String),
|
|
2055
|
-
remove_matched_tokens: S.optional(S.Boolean),
|
|
2056
|
-
metadata: S.optional(S.Unknown),
|
|
2057
|
-
sort_by: S.optional(S.String),
|
|
2058
|
-
replace_query: S.optional(S.String),
|
|
2059
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
2060
|
-
effective_from_ts: S.optional(S.Number),
|
|
2061
|
-
effective_to_ts: S.optional(S.Number),
|
|
2062
|
-
stop_processing: S.optional(S.Boolean),
|
|
2063
|
-
id: S.String,
|
|
2064
|
-
})).annotate({
|
|
2065
|
-
identifier: "UpsertCurationSetItemResponse",
|
|
2066
|
-
});
|
|
2067
|
-
export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
2068
|
-
[
|
|
2069
|
-
"q",
|
|
2070
|
-
"query_by",
|
|
2071
|
-
"validate_field_names",
|
|
2072
|
-
"nl_query",
|
|
2073
|
-
"nl_model_id",
|
|
2074
|
-
"query_by_weights",
|
|
2075
|
-
"text_match_type",
|
|
2076
|
-
"prefix",
|
|
2077
|
-
"infix",
|
|
2078
|
-
"max_extra_prefix",
|
|
2079
|
-
"max_extra_suffix",
|
|
2080
|
-
"filter_by",
|
|
2081
|
-
"max_filter_by_candidates",
|
|
2082
|
-
"sort_by",
|
|
2083
|
-
"facet_by",
|
|
2084
|
-
"max_facet_values",
|
|
2085
|
-
"facet_query",
|
|
2086
|
-
"num_typos",
|
|
2087
|
-
"page",
|
|
2088
|
-
"per_page",
|
|
2089
|
-
"limit",
|
|
2090
|
-
"offset",
|
|
2091
|
-
"group_by",
|
|
2092
|
-
"group_limit",
|
|
2093
|
-
"group_missing_values",
|
|
2094
|
-
"include_fields",
|
|
2095
|
-
"exclude_fields",
|
|
2096
|
-
"highlight_full_fields",
|
|
2097
|
-
"highlight_affix_num_tokens",
|
|
2098
|
-
"highlight_start_tag",
|
|
2099
|
-
"highlight_end_tag",
|
|
2100
|
-
"enable_highlight_v1",
|
|
2101
|
-
"enable_analytics",
|
|
2102
|
-
"snippet_threshold",
|
|
2103
|
-
"synonym_sets",
|
|
2104
|
-
"drop_tokens_threshold",
|
|
2105
|
-
"drop_tokens_mode",
|
|
2106
|
-
"typo_tokens_threshold",
|
|
2107
|
-
"enable_typos_for_alpha_numerical_tokens",
|
|
2108
|
-
"filter_curated_hits",
|
|
2109
|
-
"enable_synonyms",
|
|
2110
|
-
"synonym_prefix",
|
|
2111
|
-
"synonym_num_typos",
|
|
2112
|
-
"pinned_hits",
|
|
2113
|
-
"hidden_hits",
|
|
2114
|
-
"curation_tags",
|
|
2115
|
-
"highlight_fields",
|
|
2116
|
-
"split_join_tokens",
|
|
2117
|
-
"pre_segmented_query",
|
|
2118
|
-
"preset",
|
|
2119
|
-
"enable_curations",
|
|
2120
|
-
"prioritize_exact_match",
|
|
2121
|
-
"max_candidates",
|
|
2122
|
-
"prioritize_token_position",
|
|
2123
|
-
"prioritize_num_matching_fields",
|
|
2124
|
-
"enable_typos_for_numerical_tokens",
|
|
2125
|
-
"exhaustive_search",
|
|
2126
|
-
"search_cutoff_ms",
|
|
2127
|
-
"use_cache",
|
|
2128
|
-
"cache_ttl",
|
|
2129
|
-
"min_len_1typo",
|
|
2130
|
-
"min_len_2typo",
|
|
2131
|
-
"vector_query",
|
|
2132
|
-
"remote_embedding_timeout_ms",
|
|
2133
|
-
"remote_embedding_num_tries",
|
|
2134
|
-
"facet_strategy",
|
|
2135
|
-
"stopwords",
|
|
2136
|
-
"facet_return_parent",
|
|
2137
|
-
"voice_query",
|
|
2138
|
-
"conversation",
|
|
2139
|
-
"conversation_model_id",
|
|
2140
|
-
"conversation_id",
|
|
2141
|
-
],
|
|
2142
|
-
["union", "searches"],
|
|
2143
|
-
]));
|
|
2144
|
-
export const UpsertPresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2145
|
-
presetId: S.String.pipe(T.Label()),
|
|
2146
|
-
value: UpsertPresetRequestValue,
|
|
2147
|
-
}).pipe(T.Http({ method: "PUT", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
2148
|
-
identifier: "UpsertPresetRequest",
|
|
2149
|
-
});
|
|
2150
|
-
export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
2151
|
-
[
|
|
2152
|
-
"q",
|
|
2153
|
-
"query_by",
|
|
2154
|
-
"validate_field_names",
|
|
2155
|
-
"nl_query",
|
|
2156
|
-
"nl_model_id",
|
|
2157
|
-
"query_by_weights",
|
|
2158
|
-
"text_match_type",
|
|
2159
|
-
"prefix",
|
|
2160
|
-
"infix",
|
|
2161
|
-
"max_extra_prefix",
|
|
2162
|
-
"max_extra_suffix",
|
|
2163
|
-
"filter_by",
|
|
2164
|
-
"max_filter_by_candidates",
|
|
2165
|
-
"sort_by",
|
|
2166
|
-
"facet_by",
|
|
2167
|
-
"max_facet_values",
|
|
2168
|
-
"facet_query",
|
|
2169
|
-
"num_typos",
|
|
2170
|
-
"page",
|
|
2171
|
-
"per_page",
|
|
2172
|
-
"limit",
|
|
2173
|
-
"offset",
|
|
2174
|
-
"group_by",
|
|
2175
|
-
"group_limit",
|
|
2176
|
-
"group_missing_values",
|
|
2177
|
-
"include_fields",
|
|
2178
|
-
"exclude_fields",
|
|
2179
|
-
"highlight_full_fields",
|
|
2180
|
-
"highlight_affix_num_tokens",
|
|
2181
|
-
"highlight_start_tag",
|
|
2182
|
-
"highlight_end_tag",
|
|
2183
|
-
"enable_highlight_v1",
|
|
2184
|
-
"enable_analytics",
|
|
2185
|
-
"snippet_threshold",
|
|
2186
|
-
"synonym_sets",
|
|
2187
|
-
"drop_tokens_threshold",
|
|
2188
|
-
"drop_tokens_mode",
|
|
2189
|
-
"typo_tokens_threshold",
|
|
2190
|
-
"enable_typos_for_alpha_numerical_tokens",
|
|
2191
|
-
"filter_curated_hits",
|
|
2192
|
-
"enable_synonyms",
|
|
2193
|
-
"synonym_prefix",
|
|
2194
|
-
"synonym_num_typos",
|
|
2195
|
-
"pinned_hits",
|
|
2196
|
-
"hidden_hits",
|
|
2197
|
-
"curation_tags",
|
|
2198
|
-
"highlight_fields",
|
|
2199
|
-
"split_join_tokens",
|
|
2200
|
-
"pre_segmented_query",
|
|
2201
|
-
"preset",
|
|
2202
|
-
"enable_curations",
|
|
2203
|
-
"prioritize_exact_match",
|
|
2204
|
-
"max_candidates",
|
|
2205
|
-
"prioritize_token_position",
|
|
2206
|
-
"prioritize_num_matching_fields",
|
|
2207
|
-
"enable_typos_for_numerical_tokens",
|
|
2208
|
-
"exhaustive_search",
|
|
2209
|
-
"search_cutoff_ms",
|
|
2210
|
-
"use_cache",
|
|
2211
|
-
"cache_ttl",
|
|
2212
|
-
"min_len_1typo",
|
|
2213
|
-
"min_len_2typo",
|
|
2214
|
-
"vector_query",
|
|
2215
|
-
"remote_embedding_timeout_ms",
|
|
2216
|
-
"remote_embedding_num_tries",
|
|
2217
|
-
"facet_strategy",
|
|
2218
|
-
"stopwords",
|
|
2219
|
-
"facet_return_parent",
|
|
2220
|
-
"voice_query",
|
|
2221
|
-
"conversation",
|
|
2222
|
-
"conversation_model_id",
|
|
2223
|
-
"conversation_id",
|
|
2224
|
-
],
|
|
2225
|
-
["union", "searches"],
|
|
2226
|
-
]));
|
|
2227
|
-
export const UpsertPresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2228
|
-
value: UpsertPresetResponseValue,
|
|
2229
|
-
name: S.String,
|
|
2230
|
-
})).annotate({
|
|
2231
|
-
identifier: "UpsertPresetResponse",
|
|
2232
|
-
});
|
|
2233
|
-
export const UpsertStopwordsSetRequestStopwordsList = /*@__PURE__*/ S.Array(S.String);
|
|
2234
|
-
export const UpsertStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2235
|
-
setId: S.String.pipe(T.Label()),
|
|
2236
|
-
stopwords: UpsertStopwordsSetRequestStopwordsList,
|
|
2237
|
-
locale: S.optional(S.String),
|
|
2238
|
-
}).pipe(T.Http({ method: "PUT", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
2239
|
-
identifier: "UpsertStopwordsSetRequest",
|
|
2240
|
-
});
|
|
2241
|
-
export const UpsertSynonymSetRequestItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
2242
|
-
export const UpsertSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2243
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
2244
|
-
items: UpsertSynonymSetRequestItemsList,
|
|
2245
|
-
}).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
|
|
2246
|
-
identifier: "UpsertSynonymSetRequest",
|
|
2247
|
-
});
|
|
2248
|
-
export const UpsertSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
2249
|
-
export const UpsertSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2250
|
-
items: UpsertSynonymSetResponseItemsList,
|
|
2251
|
-
name: S.String,
|
|
2252
|
-
})).annotate({
|
|
2253
|
-
identifier: "UpsertSynonymSetResponse",
|
|
2254
|
-
});
|
|
2255
|
-
export const UpsertSynonymSetItemRequestSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
2256
|
-
export const UpsertSynonymSetItemRequestSymbolsToIndexList =
|
|
2257
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
2258
|
-
export const UpsertSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2259
|
-
synonymSetName: S.String.pipe(T.Label()),
|
|
2260
|
-
itemId: S.String.pipe(T.Label()),
|
|
2261
|
-
synonyms: UpsertSynonymSetItemRequestSynonymsList,
|
|
2262
|
-
root: S.optional(S.String),
|
|
2263
|
-
locale: S.optional(S.String),
|
|
2264
|
-
symbols_to_index: S.optional(UpsertSynonymSetItemRequestSymbolsToIndexList),
|
|
2265
|
-
}).pipe(T.Http({
|
|
2266
|
-
method: "PUT",
|
|
2267
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
2268
|
-
code: 200,
|
|
2269
|
-
}))).annotate({
|
|
2270
|
-
identifier: "UpsertSynonymSetItemRequest",
|
|
2271
|
-
});
|
|
2272
|
-
export const UpsertSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
2273
|
-
export const UpsertSynonymSetItemResponseSymbolsToIndexList =
|
|
2274
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
2275
|
-
export const UpsertSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2276
|
-
id: S.String,
|
|
2277
|
-
synonyms: UpsertSynonymSetItemResponseSynonymsList,
|
|
2278
|
-
root: S.optional(S.String),
|
|
2279
|
-
locale: S.optional(S.String),
|
|
2280
|
-
symbols_to_index: S.optional(UpsertSynonymSetItemResponseSymbolsToIndexList),
|
|
2281
|
-
})).annotate({
|
|
2282
|
-
identifier: "UpsertSynonymSetItemResponse",
|
|
2283
|
-
});
|
|
2284
|
-
export const VoteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/vote", code: 200 }))).annotate({ identifier: "VoteRequest" });
|
|
2285
|
-
/** Clear the cached responses of search requests in the LRU cache. Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache. */
|
|
2286
|
-
export const clearCache = /*@__PURE__*/ API.make(() => ({
|
|
2287
|
-
input: ClearCacheRequest,
|
|
2288
|
-
output: SuccessStatus,
|
|
2289
|
-
errors: [],
|
|
2290
|
-
protocol: TypesenseProtocol,
|
|
2291
|
-
retry: Retry.Retry,
|
|
2292
|
-
}));
|
|
2293
|
-
/** Compacting the on-disk database Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours. */
|
|
2294
|
-
export const compactDb = /*@__PURE__*/ API.make(() => ({
|
|
2295
|
-
input: CompactDbRequest,
|
|
2296
|
-
output: SuccessStatus,
|
|
2297
|
-
errors: [],
|
|
2298
|
-
protocol: TypesenseProtocol,
|
|
2299
|
-
retry: Retry.Retry,
|
|
2300
|
-
}));
|
|
2301
|
-
/** Create an analytics event Submit a single analytics event. The event must correspond to an existing analytics rule by name. */
|
|
2302
|
-
export const createAnalyticsEvent = /*@__PURE__*/ API.make(() => ({
|
|
2303
|
-
input: CreateAnalyticsEventRequest,
|
|
2304
|
-
output: AnalyticsEventCreateResponse,
|
|
2305
|
-
errors: [BadRequest],
|
|
2306
|
-
protocol: TypesenseProtocol,
|
|
2307
|
-
retry: Retry.Retry,
|
|
2308
|
-
}));
|
|
2309
|
-
/** Create analytics rule(s) Create one or more analytics rules. You can send a single rule object or an array of rule objects. */
|
|
2310
|
-
export const createAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2311
|
-
input: CreateAnalyticsRuleRequest,
|
|
2312
|
-
output: CreateAnalyticsRuleResponse,
|
|
2313
|
-
errors: [BadRequest],
|
|
2314
|
-
protocol: TypesenseProtocol,
|
|
2315
|
-
retry: Retry.Retry,
|
|
2316
|
-
}));
|
|
2317
|
-
/** Create a new collection When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection. */
|
|
2318
|
-
export const createCollection = /*@__PURE__*/ API.make(() => ({
|
|
2319
|
-
input: CreateCollectionRequest,
|
|
2320
|
-
output: CreateCollectionResponse,
|
|
2321
|
-
errors: [BadRequest, Conflict],
|
|
2322
|
-
protocol: TypesenseProtocol,
|
|
2323
|
-
retry: Retry.Retry,
|
|
2324
|
-
}));
|
|
2325
|
-
/** Create a conversation model Create a Conversation Model */
|
|
2326
|
-
export const createConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2327
|
-
input: CreateConversationModelRequest,
|
|
2328
|
-
output: CreateConversationModelResponse,
|
|
2329
|
-
errors: [BadRequest],
|
|
2330
|
-
protocol: TypesenseProtocol,
|
|
2331
|
-
retry: Retry.Retry,
|
|
2332
|
-
}));
|
|
2333
|
-
/** Create an API Key Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place. */
|
|
2334
|
-
export const createKey = /*@__PURE__*/ API.make(() => ({
|
|
2335
|
-
input: CreateKeyRequest,
|
|
2336
|
-
output: CreateKeyResponse,
|
|
2337
|
-
errors: [BadRequest, Conflict],
|
|
2338
|
-
protocol: TypesenseProtocol,
|
|
2339
|
-
retry: Retry.Retry,
|
|
2340
|
-
}));
|
|
2341
|
-
/** Create a NL search model Create a new NL search model. */
|
|
2342
|
-
export const createNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2343
|
-
input: CreateNLSearchModelRequest,
|
|
2344
|
-
output: CreateNLSearchModelResponse,
|
|
2345
|
-
errors: [BadRequest],
|
|
2346
|
-
protocol: TypesenseProtocol,
|
|
2347
|
-
retry: Retry.Retry,
|
|
2348
|
-
}));
|
|
2349
|
-
/** Print debugging information Print debugging information */
|
|
2350
|
-
export const debug = /*@__PURE__*/ API.make(() => ({
|
|
2351
|
-
input: DebugRequest,
|
|
2352
|
-
output: DebugResponse,
|
|
2353
|
-
errors: [],
|
|
2354
|
-
protocol: TypesenseProtocol,
|
|
2355
|
-
retry: Retry.Retry,
|
|
2356
|
-
}));
|
|
2357
|
-
/** Delete an alias */
|
|
2358
|
-
export const deleteAlias = /*@__PURE__*/ API.make(() => ({
|
|
2359
|
-
input: DeleteAliasRequest,
|
|
2360
|
-
output: CollectionAlias,
|
|
2361
|
-
errors: [NotFound],
|
|
2362
|
-
protocol: TypesenseProtocol,
|
|
2363
|
-
retry: Retry.Retry,
|
|
2364
|
-
}));
|
|
2365
|
-
/** Delete an analytics rule Permanently deletes an analytics rule, given it's name */
|
|
2366
|
-
export const deleteAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2367
|
-
input: DeleteAnalyticsRuleRequest,
|
|
2368
|
-
output: DeleteAnalyticsRuleResponse,
|
|
2369
|
-
errors: [NotFound],
|
|
2370
|
-
protocol: TypesenseProtocol,
|
|
2371
|
-
retry: Retry.Retry,
|
|
2372
|
-
}));
|
|
2373
|
-
/** Delete a collection Permanently drops a collection. This action cannot be undone. For large collections, this might have an impact on read latencies. */
|
|
2374
|
-
export const deleteCollection = /*@__PURE__*/ API.make(() => ({
|
|
2375
|
-
input: DeleteCollectionRequest,
|
|
2376
|
-
output: DeleteCollectionResponse,
|
|
2377
|
-
errors: [NotFound],
|
|
2378
|
-
protocol: TypesenseProtocol,
|
|
2379
|
-
retry: Retry.Retry,
|
|
2380
|
-
}));
|
|
2381
|
-
/** Delete a conversation model Delete a conversation model */
|
|
2382
|
-
export const deleteConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2383
|
-
input: DeleteConversationModelRequest,
|
|
2384
|
-
output: DeleteConversationModelResponse,
|
|
2385
|
-
errors: [NotFound],
|
|
2386
|
-
protocol: TypesenseProtocol,
|
|
2387
|
-
retry: Retry.Retry,
|
|
2388
|
-
}));
|
|
2389
|
-
/** Delete a curation set Delete a specific curation set by its name */
|
|
2390
|
-
export const deleteCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2391
|
-
input: DeleteCurationSetRequest,
|
|
2392
|
-
output: CurationSetDeleteSchema,
|
|
2393
|
-
errors: [NotFound],
|
|
2394
|
-
protocol: TypesenseProtocol,
|
|
2395
|
-
retry: Retry.Retry,
|
|
2396
|
-
}));
|
|
2397
|
-
/** Delete a curation set item Delete a specific curation item by its id */
|
|
2398
|
-
export const deleteCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2399
|
-
input: DeleteCurationSetItemRequest,
|
|
2400
|
-
output: CurationItemDeleteSchema,
|
|
2401
|
-
errors: [NotFound],
|
|
2402
|
-
protocol: TypesenseProtocol,
|
|
2403
|
-
retry: Retry.Retry,
|
|
2404
|
-
}));
|
|
2405
|
-
/** Delete a document Delete an individual document from a collection by using its ID. */
|
|
2406
|
-
export const deleteDocument = /*@__PURE__*/ API.make(() => ({
|
|
2407
|
-
input: DeleteDocumentRequest,
|
|
2408
|
-
output: DeleteDocumentResponse,
|
|
2409
|
-
errors: [NotFound],
|
|
2410
|
-
protocol: TypesenseProtocol,
|
|
2411
|
-
retry: Retry.Retry,
|
|
2412
|
-
}));
|
|
2413
|
-
/** Delete a bunch of documents Delete a bunch of documents that match a specific filter condition. Use the `batch_size` parameter to control the number of documents that should deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server. */
|
|
2414
|
-
export const deleteDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2415
|
-
input: DeleteDocumentsRequest,
|
|
2416
|
-
output: DeleteDocumentsResponse,
|
|
2417
|
-
errors: [NotFound],
|
|
2418
|
-
protocol: TypesenseProtocol,
|
|
2419
|
-
retry: Retry.Retry,
|
|
2420
|
-
}));
|
|
2421
|
-
/** Delete an API key given its ID. */
|
|
2422
|
-
export const deleteKey = /*@__PURE__*/ API.make(() => ({
|
|
2423
|
-
input: DeleteKeyRequest,
|
|
2424
|
-
output: ApiKeyDeleteResponse,
|
|
2425
|
-
errors: [BadRequest, NotFound],
|
|
2426
|
-
protocol: TypesenseProtocol,
|
|
2427
|
-
retry: Retry.Retry,
|
|
2428
|
-
}));
|
|
2429
|
-
/** Delete a NL search model Delete a specific NL search model by its ID. */
|
|
2430
|
-
export const deleteNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2431
|
-
input: DeleteNLSearchModelRequest,
|
|
2432
|
-
output: NLSearchModelDeleteSchema,
|
|
2433
|
-
errors: [NotFound],
|
|
2434
|
-
protocol: TypesenseProtocol,
|
|
2435
|
-
retry: Retry.Retry,
|
|
2436
|
-
}));
|
|
2437
|
-
/** Delete a preset. Permanently deletes a preset, given it's name. */
|
|
2438
|
-
export const deletePreset = /*@__PURE__*/ API.make(() => ({
|
|
2439
|
-
input: DeletePresetRequest,
|
|
2440
|
-
output: PresetDeleteSchema,
|
|
2441
|
-
errors: [NotFound],
|
|
2442
|
-
protocol: TypesenseProtocol,
|
|
2443
|
-
retry: Retry.Retry,
|
|
2444
|
-
}));
|
|
2445
|
-
/** Delete a stopwords set. Permanently deletes a stopwords set, given it's name. */
|
|
2446
|
-
export const deleteStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2447
|
-
input: DeleteStopwordsSetRequest,
|
|
2448
|
-
output: DeleteStopwordsSetResponse,
|
|
2449
|
-
errors: [NotFound],
|
|
2450
|
-
protocol: TypesenseProtocol,
|
|
2451
|
-
retry: Retry.Retry,
|
|
2452
|
-
}));
|
|
2453
|
-
/** Delete a synonym set Delete a specific synonym set by its name */
|
|
2454
|
-
export const deleteSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2455
|
-
input: DeleteSynonymSetRequest,
|
|
2456
|
-
output: SynonymSetDeleteSchema,
|
|
2457
|
-
errors: [NotFound],
|
|
2458
|
-
protocol: TypesenseProtocol,
|
|
2459
|
-
retry: Retry.Retry,
|
|
2460
|
-
}));
|
|
2461
|
-
/** Delete a synonym set item Delete a specific synonym item by its id */
|
|
2462
|
-
export const deleteSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2463
|
-
input: DeleteSynonymSetItemRequest,
|
|
2464
|
-
output: SynonymItemDeleteSchema,
|
|
2465
|
-
errors: [NotFound],
|
|
2466
|
-
protocol: TypesenseProtocol,
|
|
2467
|
-
retry: Retry.Retry,
|
|
2468
|
-
}));
|
|
2469
|
-
/** Export all documents in a collection Export all documents in a collection in JSON lines format. */
|
|
2470
|
-
export const exportDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2471
|
-
input: ExportDocumentsRequest,
|
|
2472
|
-
output: ExportDocumentsResponse,
|
|
2473
|
-
errors: [NotFound],
|
|
2474
|
-
protocol: TypesenseProtocol,
|
|
2475
|
-
retry: Retry.Retry,
|
|
2476
|
-
}));
|
|
2477
|
-
/** Flush in-memory analytics to disk Triggers a flush of analytics data to persistent storage. */
|
|
2478
|
-
export const flushAnalytics = /*@__PURE__*/ API.make(() => ({
|
|
2479
|
-
input: FlushAnalyticsRequest,
|
|
2480
|
-
output: AnalyticsEventCreateResponse,
|
|
2481
|
-
errors: [],
|
|
2482
|
-
protocol: TypesenseProtocol,
|
|
2483
|
-
retry: Retry.Retry,
|
|
2484
|
-
}));
|
|
2485
|
-
/** Retrieve an alias Find out which collection an alias points to by fetching it */
|
|
2486
|
-
export const getAlias = /*@__PURE__*/ API.make(() => ({
|
|
2487
|
-
input: GetAliasRequest,
|
|
2488
|
-
output: CollectionAlias,
|
|
2489
|
-
errors: [NotFound],
|
|
2490
|
-
protocol: TypesenseProtocol,
|
|
2491
|
-
retry: Retry.Retry,
|
|
2492
|
-
}));
|
|
2493
|
-
/** List all aliases List all aliases and the corresponding collections that they map to. */
|
|
2494
|
-
export const getAliases = /*@__PURE__*/ API.make(() => ({
|
|
2495
|
-
input: GetAliasesRequest,
|
|
2496
|
-
output: CollectionAliasesResponse,
|
|
2497
|
-
errors: [],
|
|
2498
|
-
protocol: TypesenseProtocol,
|
|
2499
|
-
retry: Retry.Retry,
|
|
2500
|
-
}));
|
|
2501
|
-
/** Retrieve analytics events Retrieve the most recent events for a user and rule. */
|
|
2502
|
-
export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
2503
|
-
input: GetAnalyticsEventsRequest,
|
|
2504
|
-
output: AnalyticsEventsResponse,
|
|
2505
|
-
errors: [BadRequest],
|
|
2506
|
-
protocol: TypesenseProtocol,
|
|
2507
|
-
retry: Retry.Retry,
|
|
2508
|
-
}));
|
|
2509
|
-
/** Get analytics subsystem status Returns sizes of internal analytics buffers and queues. */
|
|
2510
|
-
export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
2511
|
-
input: GetAnalyticsStatusRequest,
|
|
2512
|
-
output: AnalyticsStatus,
|
|
2513
|
-
errors: [],
|
|
2514
|
-
protocol: TypesenseProtocol,
|
|
2515
|
-
retry: Retry.Retry,
|
|
2516
|
-
}));
|
|
2517
|
-
/** Retrieve a single collection Retrieve the details of a collection, given its name. */
|
|
2518
|
-
export const getCollection = /*@__PURE__*/ API.make(() => ({
|
|
2519
|
-
input: GetCollectionRequest,
|
|
2520
|
-
output: GetCollectionResponse,
|
|
2521
|
-
errors: [NotFound],
|
|
2522
|
-
protocol: TypesenseProtocol,
|
|
2523
|
-
retry: Retry.Retry,
|
|
2524
|
-
}));
|
|
2525
|
-
/** List all collections Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first. */
|
|
2526
|
-
export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
2527
|
-
input: GetCollectionsRequest,
|
|
2528
|
-
output: GetCollectionsResponse,
|
|
2529
|
-
errors: [],
|
|
2530
|
-
protocol: TypesenseProtocol,
|
|
2531
|
-
retry: Retry.Retry,
|
|
2532
|
-
}));
|
|
2533
|
-
/** Retrieve a document Fetch an individual document from a collection by using its ID. */
|
|
2534
|
-
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
2535
|
-
input: GetDocumentRequest,
|
|
2536
|
-
output: GetDocumentResponse,
|
|
2537
|
-
errors: [NotFound],
|
|
2538
|
-
protocol: TypesenseProtocol,
|
|
2539
|
-
retry: Retry.Retry,
|
|
2540
|
-
}));
|
|
2541
|
-
/** Retrieve (metadata about) a key Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key. */
|
|
2542
|
-
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
2543
|
-
input: GetKeyRequest,
|
|
2544
|
-
output: GetKeyResponse,
|
|
2545
|
-
errors: [NotFound],
|
|
2546
|
-
protocol: TypesenseProtocol,
|
|
2547
|
-
retry: Retry.Retry,
|
|
2548
|
-
}));
|
|
2549
|
-
/** Retrieve (metadata about) all keys. */
|
|
2550
|
-
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
2551
|
-
input: GetKeysRequest,
|
|
2552
|
-
output: ApiKeysResponse,
|
|
2553
|
-
errors: [],
|
|
2554
|
-
protocol: TypesenseProtocol,
|
|
2555
|
-
retry: Retry.Retry,
|
|
2556
|
-
}));
|
|
2557
|
-
/** Get the status of in-progress schema change operations Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response. */
|
|
2558
|
-
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
2559
|
-
input: GetSchemaChangesRequest,
|
|
2560
|
-
output: GetSchemaChangesResponse,
|
|
2561
|
-
errors: [],
|
|
2562
|
-
protocol: TypesenseProtocol,
|
|
2563
|
-
retry: Retry.Retry,
|
|
2564
|
-
}));
|
|
2565
|
-
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2566
|
-
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2567
|
-
input: GetStemmingDictionaryRequest,
|
|
2568
|
-
output: StemmingDictionary,
|
|
2569
|
-
errors: [NotFound],
|
|
2570
|
-
protocol: TypesenseProtocol,
|
|
2571
|
-
retry: Retry.Retry,
|
|
2572
|
-
}));
|
|
2573
|
-
/** Checks if Typesense server is ready to accept requests. Checks if Typesense server is ready to accept requests. */
|
|
2574
|
-
export const health = /*@__PURE__*/ API.make(() => ({
|
|
2575
|
-
input: HealthRequest,
|
|
2576
|
-
output: HealthStatus,
|
|
2577
|
-
errors: [],
|
|
2578
|
-
protocol: TypesenseProtocol,
|
|
2579
|
-
retry: Retry.Retry,
|
|
2580
|
-
}));
|
|
2581
|
-
/** Import documents into a collection The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import. */
|
|
2582
|
-
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2583
|
-
input: ImportDocumentsRequest,
|
|
2584
|
-
output: ImportDocumentsResponse,
|
|
2585
|
-
errors: [BadRequest, NotFound],
|
|
2586
|
-
protocol: TypesenseProtocol,
|
|
2587
|
-
retry: Retry.Retry,
|
|
2588
|
-
}));
|
|
2589
|
-
/** Import a stemming dictionary Upload a JSONL file containing word mappings to create or update a stemming dictionary. */
|
|
2590
|
-
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2591
|
-
input: ImportStemmingDictionaryRequest,
|
|
2592
|
-
output: ImportStemmingDictionaryResponse,
|
|
2593
|
-
errors: [BadRequest],
|
|
2594
|
-
protocol: TypesenseProtocol,
|
|
2595
|
-
retry: Retry.Retry,
|
|
2596
|
-
}));
|
|
2597
|
-
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
2598
|
-
export const indexDocument = /*@__PURE__*/ API.make(() => ({
|
|
2599
|
-
input: IndexDocumentRequest,
|
|
2600
|
-
output: IndexDocumentResponse,
|
|
2601
|
-
errors: [NotFound],
|
|
2602
|
-
protocol: TypesenseProtocol,
|
|
2603
|
-
retry: Retry.Retry,
|
|
2604
|
-
}));
|
|
2605
|
-
/** List all stemming dictionaries Retrieve a list of all available stemming dictionaries. */
|
|
2606
|
-
export const listStemmingDictionaries = /*@__PURE__*/ API.make(() => ({
|
|
2607
|
-
input: ListStemmingDictionariesRequest,
|
|
2608
|
-
output: ListStemmingDictionariesResponse,
|
|
2609
|
-
errors: [],
|
|
2610
|
-
protocol: TypesenseProtocol,
|
|
2611
|
-
retry: Retry.Retry,
|
|
2612
|
-
}));
|
|
2613
|
-
/** send multiple search requests in a single HTTP request This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request. */
|
|
2614
|
-
export const multiSearch = /*@__PURE__*/ API.make(() => ({
|
|
2615
|
-
input: MultiSearchRequest,
|
|
2616
|
-
output: MultiSearchResult,
|
|
2617
|
-
errors: [BadRequest],
|
|
2618
|
-
protocol: TypesenseProtocol,
|
|
2619
|
-
retry: Retry.Retry,
|
|
2620
|
-
}));
|
|
2621
|
-
/** List all conversation models Retrieve all conversation models */
|
|
2622
|
-
export const retrieveAllConversationModels = /*@__PURE__*/ API.make(() => ({
|
|
2623
|
-
input: RetrieveAllConversationModelsRequest,
|
|
2624
|
-
output: RetrieveAllConversationModelsResponse,
|
|
2625
|
-
errors: [],
|
|
2626
|
-
protocol: TypesenseProtocol,
|
|
2627
|
-
retry: Retry.Retry,
|
|
2628
|
-
}));
|
|
2629
|
-
/** List all NL search models Retrieve all NL search models. */
|
|
2630
|
-
export const retrieveAllNLSearchModels = /*@__PURE__*/ API.make(() => ({
|
|
2631
|
-
input: RetrieveAllNLSearchModelsRequest,
|
|
2632
|
-
output: RetrieveAllNLSearchModelsResponse,
|
|
2633
|
-
errors: [],
|
|
2634
|
-
protocol: TypesenseProtocol,
|
|
2635
|
-
retry: Retry.Retry,
|
|
2636
|
-
}));
|
|
2637
|
-
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2638
|
-
export const retrieveAllPresets = /*@__PURE__*/ API.make(() => ({
|
|
2639
|
-
input: RetrieveAllPresetsRequest,
|
|
2640
|
-
output: PresetsRetrieveSchema,
|
|
2641
|
-
errors: [],
|
|
2642
|
-
protocol: TypesenseProtocol,
|
|
2643
|
-
retry: Retry.Retry,
|
|
2644
|
-
}));
|
|
2645
|
-
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2646
|
-
export const retrieveAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2647
|
-
input: RetrieveAnalyticsRuleRequest,
|
|
2648
|
-
output: RetrieveAnalyticsRuleResponse,
|
|
2649
|
-
errors: [NotFound],
|
|
2650
|
-
protocol: TypesenseProtocol,
|
|
2651
|
-
retry: Retry.Retry,
|
|
2652
|
-
}));
|
|
2653
|
-
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2654
|
-
export const retrieveAnalyticsRules = /*@__PURE__*/ API.make(() => ({
|
|
2655
|
-
input: RetrieveAnalyticsRulesRequest,
|
|
2656
|
-
output: RetrieveAnalyticsRulesResponse,
|
|
2657
|
-
errors: [],
|
|
2658
|
-
protocol: TypesenseProtocol,
|
|
2659
|
-
retry: Retry.Retry,
|
|
2660
|
-
}));
|
|
2661
|
-
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2662
|
-
export const retrieveAPIStats = /*@__PURE__*/ API.make(() => ({
|
|
2663
|
-
input: RetrieveAPIStatsRequest,
|
|
2664
|
-
output: APIStatsResponse,
|
|
2665
|
-
errors: [],
|
|
2666
|
-
protocol: TypesenseProtocol,
|
|
2667
|
-
retry: Retry.Retry,
|
|
2668
|
-
}));
|
|
2669
|
-
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2670
|
-
export const retrieveConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2671
|
-
input: RetrieveConversationModelRequest,
|
|
2672
|
-
output: RetrieveConversationModelResponse,
|
|
2673
|
-
errors: [NotFound],
|
|
2674
|
-
protocol: TypesenseProtocol,
|
|
2675
|
-
retry: Retry.Retry,
|
|
2676
|
-
}));
|
|
2677
|
-
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2678
|
-
export const retrieveCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2679
|
-
input: RetrieveCurationSetRequest,
|
|
2680
|
-
output: RetrieveCurationSetResponse,
|
|
2681
|
-
errors: [NotFound],
|
|
2682
|
-
protocol: TypesenseProtocol,
|
|
2683
|
-
retry: Retry.Retry,
|
|
2684
|
-
}));
|
|
2685
|
-
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2686
|
-
export const retrieveCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2687
|
-
input: RetrieveCurationSetItemRequest,
|
|
2688
|
-
output: RetrieveCurationSetItemResponse,
|
|
2689
|
-
errors: [NotFound],
|
|
2690
|
-
protocol: TypesenseProtocol,
|
|
2691
|
-
retry: Retry.Retry,
|
|
2692
|
-
}));
|
|
2693
|
-
/** List items in a curation set Retrieve all curation items in a set */
|
|
2694
|
-
export const retrieveCurationSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2695
|
-
input: RetrieveCurationSetItemsRequest,
|
|
2696
|
-
output: RetrieveCurationSetItemsResponse,
|
|
2697
|
-
errors: [NotFound],
|
|
2698
|
-
protocol: TypesenseProtocol,
|
|
2699
|
-
retry: Retry.Retry,
|
|
2700
|
-
}));
|
|
2701
|
-
/** List all curation sets Retrieve all curation sets */
|
|
2702
|
-
export const retrieveCurationSets = /*@__PURE__*/ API.make(() => ({
|
|
2703
|
-
input: RetrieveCurationSetsRequest,
|
|
2704
|
-
output: RetrieveCurationSetsResponse,
|
|
2705
|
-
errors: [],
|
|
2706
|
-
protocol: TypesenseProtocol,
|
|
2707
|
-
retry: Retry.Retry,
|
|
2708
|
-
}));
|
|
2709
|
-
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2710
|
-
export const retrieveMetrics = /*@__PURE__*/ API.make(() => ({
|
|
2711
|
-
input: RetrieveMetricsRequest,
|
|
2712
|
-
output: RetrieveMetricsResponse,
|
|
2713
|
-
errors: [],
|
|
2714
|
-
protocol: TypesenseProtocol,
|
|
2715
|
-
retry: Retry.Retry,
|
|
2716
|
-
}));
|
|
2717
|
-
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2718
|
-
export const retrieveNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2719
|
-
input: RetrieveNLSearchModelRequest,
|
|
2720
|
-
output: RetrieveNLSearchModelResponse,
|
|
2721
|
-
errors: [NotFound],
|
|
2722
|
-
protocol: TypesenseProtocol,
|
|
2723
|
-
retry: Retry.Retry,
|
|
2724
|
-
}));
|
|
2725
|
-
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2726
|
-
export const retrievePreset = /*@__PURE__*/ API.make(() => ({
|
|
2727
|
-
input: RetrievePresetRequest,
|
|
2728
|
-
output: RetrievePresetResponse,
|
|
2729
|
-
errors: [NotFound],
|
|
2730
|
-
protocol: TypesenseProtocol,
|
|
2731
|
-
retry: Retry.Retry,
|
|
2732
|
-
}));
|
|
2733
|
-
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2734
|
-
export const retrieveStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2735
|
-
input: RetrieveStopwordsSetRequest,
|
|
2736
|
-
output: StopwordsSetRetrieveSchema,
|
|
2737
|
-
errors: [NotFound],
|
|
2738
|
-
protocol: TypesenseProtocol,
|
|
2739
|
-
retry: Retry.Retry,
|
|
2740
|
-
}));
|
|
2741
|
-
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2742
|
-
export const retrieveStopwordsSets = /*@__PURE__*/ API.make(() => ({
|
|
2743
|
-
input: RetrieveStopwordsSetsRequest,
|
|
2744
|
-
output: StopwordsSetsRetrieveAllSchema,
|
|
2745
|
-
errors: [],
|
|
2746
|
-
protocol: TypesenseProtocol,
|
|
2747
|
-
retry: Retry.Retry,
|
|
2748
|
-
}));
|
|
2749
|
-
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2750
|
-
export const retrieveSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2751
|
-
input: RetrieveSynonymSetRequest,
|
|
2752
|
-
output: RetrieveSynonymSetResponse,
|
|
2753
|
-
errors: [NotFound],
|
|
2754
|
-
protocol: TypesenseProtocol,
|
|
2755
|
-
retry: Retry.Retry,
|
|
2756
|
-
}));
|
|
2757
|
-
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2758
|
-
export const retrieveSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2759
|
-
input: RetrieveSynonymSetItemRequest,
|
|
2760
|
-
output: RetrieveSynonymSetItemResponse,
|
|
2761
|
-
errors: [NotFound],
|
|
2762
|
-
protocol: TypesenseProtocol,
|
|
2763
|
-
retry: Retry.Retry,
|
|
2764
|
-
}));
|
|
2765
|
-
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2766
|
-
export const retrieveSynonymSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2767
|
-
input: RetrieveSynonymSetItemsRequest,
|
|
2768
|
-
output: RetrieveSynonymSetItemsResponse,
|
|
2769
|
-
errors: [NotFound],
|
|
2770
|
-
protocol: TypesenseProtocol,
|
|
2771
|
-
retry: Retry.Retry,
|
|
2772
|
-
}));
|
|
2773
|
-
/** List all synonym sets Retrieve all synonym sets */
|
|
2774
|
-
export const retrieveSynonymSets = /*@__PURE__*/ API.make(() => ({
|
|
2775
|
-
input: RetrieveSynonymSetsRequest,
|
|
2776
|
-
output: RetrieveSynonymSetsResponse,
|
|
2777
|
-
errors: [],
|
|
2778
|
-
protocol: TypesenseProtocol,
|
|
2779
|
-
retry: Retry.Retry,
|
|
2780
|
-
}));
|
|
2781
|
-
/** Search for documents in a collection Search for documents in a collection that match the search criteria. */
|
|
2782
|
-
export const searchCollection = /*@__PURE__*/ API.make(() => ({
|
|
2783
|
-
input: SearchCollectionRequest,
|
|
2784
|
-
output: SearchResult,
|
|
2785
|
-
errors: [BadRequest, NotFound],
|
|
2786
|
-
protocol: TypesenseProtocol,
|
|
2787
|
-
retry: Retry.Retry,
|
|
2788
|
-
}));
|
|
2789
|
-
/** Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed. */
|
|
2790
|
-
export const takeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2791
|
-
input: TakeSnapshotRequest,
|
|
2792
|
-
output: SuccessStatus,
|
|
2793
|
-
errors: [],
|
|
2794
|
-
protocol: TypesenseProtocol,
|
|
2795
|
-
retry: Retry.Retry,
|
|
2796
|
-
}));
|
|
2797
|
-
/** Toggle Slow Request Log Enable logging of requests that take over a defined threshold of time. Default is `-1` which disables slow request logging. Slow requests are logged to the primary log file, with the prefix SLOW REQUEST. */
|
|
2798
|
-
export const toggleSlowRequestLog = /*@__PURE__*/ API.make(() => ({
|
|
2799
|
-
input: ToggleSlowRequestLogRequest,
|
|
2800
|
-
output: SuccessStatus,
|
|
2801
|
-
errors: [],
|
|
2802
|
-
protocol: TypesenseProtocol,
|
|
2803
|
-
retry: Retry.Retry,
|
|
2804
|
-
}));
|
|
2805
|
-
/** Update a collection Update a collection's schema to modify the fields and their types. */
|
|
2806
|
-
export const updateCollection = /*@__PURE__*/ API.make(() => ({
|
|
2807
|
-
input: UpdateCollectionRequest,
|
|
2808
|
-
output: CollectionUpdateSchema,
|
|
2809
|
-
errors: [BadRequest, NotFound],
|
|
2810
|
-
protocol: TypesenseProtocol,
|
|
2811
|
-
retry: Retry.Retry,
|
|
2812
|
-
}));
|
|
2813
|
-
/** Update a conversation model Update a conversation model */
|
|
2814
|
-
export const updateConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2815
|
-
input: UpdateConversationModelRequest,
|
|
2816
|
-
output: UpdateConversationModelResponse,
|
|
2817
|
-
errors: [BadRequest, NotFound],
|
|
2818
|
-
protocol: TypesenseProtocol,
|
|
2819
|
-
retry: Retry.Retry,
|
|
2820
|
-
}));
|
|
2821
|
-
/** Update a document Update an individual document from a collection by using its ID. The update can be partial. */
|
|
2822
|
-
export const updateDocument = /*@__PURE__*/ API.make(() => ({
|
|
2823
|
-
input: UpdateDocumentRequest,
|
|
2824
|
-
output: UpdateDocumentResponse,
|
|
2825
|
-
errors: [NotFound],
|
|
2826
|
-
protocol: TypesenseProtocol,
|
|
2827
|
-
retry: Retry.Retry,
|
|
2828
|
-
}));
|
|
2829
|
-
/** Update documents with conditional query The filter_by query parameter is used to filter to specify a condition against which the documents are matched. The request body contains the fields that should be updated for any documents that match the filter condition. This endpoint is only available if the Typesense server is version `0.25.0.rc12` or later. */
|
|
2830
|
-
export const updateDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2831
|
-
input: UpdateDocumentsRequest,
|
|
2832
|
-
output: UpdateDocumentsResponse,
|
|
2833
|
-
errors: [BadRequest, NotFound],
|
|
2834
|
-
protocol: TypesenseProtocol,
|
|
2835
|
-
retry: Retry.Retry,
|
|
2836
|
-
}));
|
|
2837
|
-
/** Update a NL search model Update an existing NL search model. */
|
|
2838
|
-
export const updateNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2839
|
-
input: UpdateNLSearchModelRequest,
|
|
2840
|
-
output: UpdateNLSearchModelResponse,
|
|
2841
|
-
errors: [BadRequest, NotFound],
|
|
2842
|
-
protocol: TypesenseProtocol,
|
|
2843
|
-
retry: Retry.Retry,
|
|
2844
|
-
}));
|
|
2845
|
-
/** Create or update a collection alias Create or update a collection alias. An alias is a virtual collection name that points to a real collection. If you're familiar with symbolic links on Linux, it's very similar to that. Aliases are useful when you want to reindex your data in the background on a new collection and switch your application to it without any changes to your code. */
|
|
2846
|
-
export const upsertAlias = /*@__PURE__*/ API.make(() => ({
|
|
2847
|
-
input: UpsertAliasRequest,
|
|
2848
|
-
output: CollectionAlias,
|
|
2849
|
-
errors: [BadRequest, NotFound],
|
|
2850
|
-
protocol: TypesenseProtocol,
|
|
2851
|
-
retry: Retry.Retry,
|
|
2852
|
-
}));
|
|
2853
|
-
/** Upserts an analytics rule Upserts an analytics rule with the given name. */
|
|
2854
|
-
export const upsertAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2855
|
-
input: UpsertAnalyticsRuleRequest,
|
|
2856
|
-
output: UpsertAnalyticsRuleResponse,
|
|
2857
|
-
errors: [BadRequest],
|
|
2858
|
-
protocol: TypesenseProtocol,
|
|
2859
|
-
retry: Retry.Retry,
|
|
2860
|
-
}));
|
|
2861
|
-
/** Create or update a curation set Create or update a curation set with the given name */
|
|
2862
|
-
export const upsertCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2863
|
-
input: UpsertCurationSetRequest,
|
|
2864
|
-
output: UpsertCurationSetResponse,
|
|
2865
|
-
errors: [BadRequest],
|
|
2866
|
-
protocol: TypesenseProtocol,
|
|
2867
|
-
retry: Retry.Retry,
|
|
2868
|
-
}));
|
|
2869
|
-
/** Create or update a curation set item Create or update a curation set item with the given id */
|
|
2870
|
-
export const upsertCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2871
|
-
input: UpsertCurationSetItemRequest,
|
|
2872
|
-
output: UpsertCurationSetItemResponse,
|
|
2873
|
-
errors: [BadRequest],
|
|
2874
|
-
protocol: TypesenseProtocol,
|
|
2875
|
-
retry: Retry.Retry,
|
|
2876
|
-
}));
|
|
2877
|
-
/** Upserts a preset. Create or update an existing preset. */
|
|
2878
|
-
export const upsertPreset = /*@__PURE__*/ API.make(() => ({
|
|
2879
|
-
input: UpsertPresetRequest,
|
|
2880
|
-
output: UpsertPresetResponse,
|
|
2881
|
-
errors: [BadRequest],
|
|
2882
|
-
protocol: TypesenseProtocol,
|
|
2883
|
-
retry: Retry.Retry,
|
|
2884
|
-
}));
|
|
2885
|
-
/** Upserts a stopwords set. When an analytics rule is created, we give it a name and describe the type, the source collections and the destination collection. */
|
|
2886
|
-
export const upsertStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2887
|
-
input: UpsertStopwordsSetRequest,
|
|
2888
|
-
output: StopwordsSetSchema,
|
|
2889
|
-
errors: [BadRequest],
|
|
2890
|
-
protocol: TypesenseProtocol,
|
|
2891
|
-
retry: Retry.Retry,
|
|
2892
|
-
}));
|
|
2893
|
-
/** Create or update a synonym set Create or update a synonym set with the given name */
|
|
2894
|
-
export const upsertSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2895
|
-
input: UpsertSynonymSetRequest,
|
|
2896
|
-
output: UpsertSynonymSetResponse,
|
|
2897
|
-
errors: [BadRequest],
|
|
2898
|
-
protocol: TypesenseProtocol,
|
|
2899
|
-
retry: Retry.Retry,
|
|
2900
|
-
}));
|
|
2901
|
-
/** Create or update a synonym set item Create or update a synonym set item with the given id */
|
|
2902
|
-
export const upsertSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2903
|
-
input: UpsertSynonymSetItemRequest,
|
|
2904
|
-
output: UpsertSynonymSetItemResponse,
|
|
2905
|
-
errors: [BadRequest],
|
|
2906
|
-
protocol: TypesenseProtocol,
|
|
2907
|
-
retry: Retry.Retry,
|
|
2908
|
-
}));
|
|
2909
|
-
/** Triggers a follower node to initiate the raft voting process, which triggers leader re-election. Triggers a follower node to initiate the raft voting process, which triggers leader re-election. The follower node that you run this operation against will become the new leader, once this command succeeds. */
|
|
2910
|
-
export const vote = /*@__PURE__*/ API.make(() => ({
|
|
2911
|
-
input: VoteRequest,
|
|
2912
|
-
output: SuccessStatus,
|
|
2913
|
-
errors: [],
|
|
2914
|
-
protocol: TypesenseProtocol,
|
|
2915
|
-
retry: Retry.Retry,
|
|
2916
|
-
}));
|
|
1
|
+
import{Bc as e,Ca as t,Gc as n,Hc as r,a as i,b as a,errors$TypesenseServiceErrors as o,f as s,gc as c,hc as l,l as u,m as d,n as f,protocol$TypesenseProtocol as p,qc as m,rc as h,retry$Retry as g,tc as _,traits$Body as v,traits$Http as y,traits$HttpBody as ee,traits$Label as b,traits$Query as x,traits$RawResponseRoot as S,traits$SensitiveValue as C,traits$UnionCases as w,traits$applyErrorMatchers as T,uc as E,wc as D,yc as O,za as te,zc as k}from"../_bundle/sdk.js";const A={system:`typesense-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`}],prefix:`Typesense`,service:`Typesense`,labels:`typesense`,propagate:`w3c`};const j=/*@__PURE__*/ s(function BadRequest(t){return d(t,new.target,[`$10($9()("BadRequest",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:400}]);#4:0`,[e,te,m,_,__d0,r,O,n,h,D,T]])});const M=/*@__PURE__*/ s(function Conflict(i){return d(i,new.target,[`$10($9()("Conflict",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:409}]);#4:0`,[e,t,m,_,__d0,r,O,n,h,D,T]])});const N=/*@__PURE__*/ s(function NotFound(t){return d(t,new.target,[`$10($9()("NotFound",{code:$2,message:$3,body:$7($6([$5(>1),$3])),headers:$7($8($3,$3))}).pipe($1),[{status:404}]);#4:0`,[e,te,m,_,__d0,r,O,n,h,D,T]])});const P=/*@__PURE__*/ f(t=>t===i?u(`ClearCache`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"POST",uri:"/operations/cache/clear",code:200}))`,[e,y,E,r,__d8,o,p,g,A]):a(P,t));const F=/*@__PURE__*/ f(t=>t===i?u(`CompactDb`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"POST",uri:"/operations/db/compact",code:200}))`,[e,y,E,r,__d8,o,p,g,A]):a(F,t));const I=/*@__PURE__*/ f(t=>t===i?u(`CreateAnalyticsEvent`,`{input:#2,output:#7:0,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>3)@"%RequestData";$5(>4)@"%Request";$4({user_id:$2($1),doc_id:$2($1),doc_ids:$2(#3:0),q:$2($1),analytics_tag:$2($1)});$4({name:$1,event_type:$1,data:#1}).pipe($6({method:"POST",uri:"/analytics/events",code:200}))`,[e,_,n,__d13,E,r,y,__d12,j,o,p,g,A]):a(I,t));const L=/*@__PURE__*/ f(t=>t===i?u(`CreateAnalyticsRule`,`{input:#2,output:#4,errors:[$6],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};~5;$4(>6)@"%Request";~5;$4(>7)@"%Response";$12.pipe($11([["name","type","collection","event_type","rule_tag","params"],[]]));$3({body:#1.pipe($2())}).pipe($1({method:"POST",uri:"/analytics/rules",code:200}));#3.pipe($5())`,[e,y,ee,E,r,S,j,o,p,g,A,w,k]):a(L,t));const R=/*@__PURE__*/ f(t=>t===i?u(`CreateCollection`,`{input:#1,output:#7:1,errors:[$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$10(>2)@"%Request";$9({name:$2,fields:#3:3,default_sorting_field:$4($2),token_separators:$4(#5:0),synonym_sets:$4(#5:0),enable_nested_fields:$4($6),symbols_to_index:$4(#5:0),voice_query_model:$4(#7:0),metadata:$4($8)}).pipe($1({method:"POST",uri:"/collections",code:200}))`,[e,y,_,__d20,n,__d13,l,__d19,k,E,r,j,M,o,p,g,A]):a(R,t));const z=/*@__PURE__*/ f(t=>t===i?u(`CreateConversationModel`,`{input:#1,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({id:$3($2),model_name:$2,api_key:$3($2.pipe($4({}))),history_collection:$2,account_id:$3($2),system_prompt:$3($2),ttl:$3($5),max_bytes:$5,vllm_url:$3($2)}).pipe($1({method:"POST",uri:"/conversations/models",code:200}))`,[e,y,_,n,C,m,E,r,__d21,j,o,p,g,A]):a(z,t));const B=/*@__PURE__*/ f(t=>t===i?u(`CreateKey`,`{input:#1,output:#8:0,errors:[$9,$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$7(>2)@"%Request";$6({value:$3($2),description:$2,actions:#4:0,collections:#4:0,expires_at:$3($5)}).pipe($1({method:"POST",uri:"/keys",code:200}))`,[e,y,_,n,__d13,m,E,r,__d22,j,M,o,p,g,A]):a(B,t));const V=/*@__PURE__*/ f(t=>t===i?u(`CreateNLSearchModel`,`{input:#1,output:#9:0,errors:[$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$8(>2)@"%Request";$7({model_name:$3($2),api_key:$3($2.pipe($4({}))),api_url:$3($2),max_bytes:$3($5),temperature:$3($5),system_prompt:$3($2),top_p:$3($5),top_k:$3($5),stop_sequences:$3(#6:0),api_version:$3($2),project_id:$3($2),access_token:$3($2.pipe($4({}))),refresh_token:$3($2.pipe($4({}))),client_id:$3($2),client_secret:$3($2.pipe($4({}))),region:$3($2),max_output_tokens:$3($5),account_id:$3($2),id:$3($2)}).pipe($1({method:"POST",uri:"/nl_search_models",code:200}))`,[e,y,_,n,C,m,__d13,E,r,__d1,j,o,p,g,A]):a(V,t));const H=/*@__PURE__*/ f(t=>t===i?u(`Debug`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>3)@"%Request";$3(>4)@"%Response";$2({}).pipe($1({method:"GET",uri:"/debug",code:200}));$2({version:$5($4)})`,[e,y,E,r,_,n,o,p,g,A]):a(H,t));const U=/*@__PURE__*/ f(t=>t===i?u(`DeleteAlias`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({aliasName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/aliases/{aliasName}",code:200}))`,[e,y,b,_,E,r,__d2,N,o,p,g,A]):a(U,t));const W=/*@__PURE__*/ f(t=>t===i?u(`DeleteAnalyticsRule`,`{input:#1,output:#6:1,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({ruleName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/analytics/rules/{ruleName}",code:200}))`,[e,y,b,_,E,r,__d3,N,o,p,g,A]):a(W,t));const G=/*@__PURE__*/ f(t=>t===i?u(`DeleteCollection`,`{input:#1,output:#6:1,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({collectionName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/collections/{collectionName}",code:200}))`,[e,y,b,_,E,r,__d19,N,o,p,g,A]):a(G,t));const K=/*@__PURE__*/ f(t=>t===i?u(`DeleteConversationModel`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({modelId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/conversations/models/{modelId}",code:200}))`,[e,y,b,_,E,r,__d21,N,o,p,g,A]):a(K,t));const q=/*@__PURE__*/ f(t=>t===i?u(`DeleteCurationSet`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({curationSetName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/curation_sets/{curationSetName}",code:200}))`,[e,y,b,_,E,r,__d4,N,o,p,g,A]):a(q,t));const J=/*@__PURE__*/ f(t=>t===i?u(`DeleteCurationSetItem`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({curationSetName:$3.pipe($2()),itemId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/curation_sets/{curationSetName}/items/{itemId}",code:200}))`,[e,y,b,_,E,r,__d5,N,o,p,g,A]):a(J,t));const Y=/*@__PURE__*/ f(t=>t===i?u(`DeleteDocument`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({collectionName:$3.pipe($2()),documentId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/collections/{collectionName}/documents/{documentId}",code:200}))`,[e,y,b,_,E,r,__d6,N,o,p,g,A]):a(Y,t));const X=/*@__PURE__*/ f(t=>t===i?u(`DeleteDocuments`,`{input:#2,output:#3,errors:[$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$6(>4)@"%Request%Parameters";$6(>5)@"%Request";$6(>6)@"%Response";$5({filter_by:$1,batch_size:$3($2),ignore_not_found:$3($4),truncate:$3($4)});$5({collectionName:$1.pipe($8()),deleteDocumentsParameters:$3(#1.pipe($9()))}).pipe($7({method:"DELETE",uri:"/collections/{collectionName}/documents",code:200}));$5({num_deleted:$2})`,[e,_,m,n,l,E,r,y,b,x,N,o,p,g,A]):a(X,t));const Z=/*@__PURE__*/ f(t=>t===i?u(`DeleteKey`,`{input:#1,output:#2,errors:[$6,$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"ApiKeyDeleteResponse";$4({keyId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/keys/{keyId}",code:200}));$4({id:$3})`,[e,y,b,m,E,r,j,N,o,p,g,A]):a(Z,t));const Q=/*@__PURE__*/ f(t=>t===i?u(`DeleteNLSearchModel`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({modelId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/nl_search_models/{modelId}",code:200}))`,[e,y,b,_,E,r,__d5,N,o,p,g,A]):a(Q,t));const ne=/*@__PURE__*/ f(t=>t===i?u(`DeletePreset`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({presetId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/presets/{presetId}",code:200}))`,[e,y,b,_,E,r,__d4,N,o,p,g,A]):a(ne,t));const re=/*@__PURE__*/ f(t=>t===i?u(`DeleteStopwordsSet`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({setId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/stopwords/{setId}",code:200}))`,[e,y,b,_,E,r,__d5,N,o,p,g,A]):a(re,t));const ie=/*@__PURE__*/ f(t=>t===i?u(`DeleteSynonymSet`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({synonymSetName:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/synonym_sets/{synonymSetName}",code:200}))`,[e,y,b,_,E,r,__d4,N,o,p,g,A]):a(ie,t));const ae=/*@__PURE__*/ f(t=>t===i?u(`DeleteSynonymSetItem`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({synonymSetName:$3.pipe($2()),itemId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/synonym_sets/{synonymSetName}/items/{itemId}",code:200}))`,[e,y,b,_,E,r,__d5,N,o,p,g,A]):a(ae,t));const oe=/*@__PURE__*/ f(t=>t===i?u(`ExportDocuments`,`{input:#2,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$4(>3)@"%Request%Parameters";$4(>4)@"%Request";$3({filter_by:$2($1),include_fields:$2($1),exclude_fields:$2($1)});$3({collectionName:$1.pipe($6()),exportDocumentsParameters:$2(#1.pipe($7()))}).pipe($5({method:"GET",uri:"/collections/{collectionName}/documents/export",code:200}))`,[e,_,n,E,r,y,b,x,__d7,N,o,p,g,A]):a(oe,t));const se=/*@__PURE__*/ f(t=>t===i?u(`FlushAnalytics`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"POST",uri:"/analytics/flush",code:200}))`,[e,y,E,r,__d12,o,p,g,A]):a(se,t));const ce=/*@__PURE__*/ f(t=>t===i?u(`GetAlias`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({aliasName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/aliases/{aliasName}",code:200}))`,[e,y,b,_,E,r,__d2,N,o,p,g,A]):a(ce,t));const le=/*@__PURE__*/ f(t=>t===i?u(`GetAliases`,`{input:#1,output:#3,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"CollectionAliasesResponse";$2({}).pipe($1({method:"GET",uri:"/aliases",code:200}));$2({aliases:#2})`,[e,y,E,r,__d2,c,o,p,g,A]):a(le,t));const ue=/*@__PURE__*/ f(t=>t===i?u(`GetAllConversationModels`,`{input:#1,output:#3,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"%Response";$2({}).pipe($1({method:"GET",uri:"/conversations/models",code:200}));#2.pipe($6())`,[e,y,E,r,__d21,c,S,o,p,g,A]):a(ue,t));const de=/*@__PURE__*/ f(t=>t===i?u(`GetAllNLSearchModels`,`{input:#1,output:#3,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"%Response";$2({}).pipe($1({method:"GET",uri:"/nl_search_models",code:200}));#2.pipe($6())`,[e,y,E,r,__d1,c,S,o,p,g,A]):a(de,t));const fe=/*@__PURE__*/ f(t=>t===i?u(`conversation`,`{input:#1,output:#5,errors:[],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"GetAllPresets"};$3(>6)@"GetAllPresetsRequest";$5.pipe($4([["q","query_by","validate_field_names","nl_query","nl_model_id","query_by_weights","text_match_type","prefix","infix","max_extra_prefix","max_extra_suffix","filter_by","enable_lazy_filter","max_filter_by_candidates","sort_by","facet_by","max_facet_values","facet_query","facet_query_num_typos","num_typos","page","per_page","limit","offset","group_by","group_limit","group_missing_values","group_max_candidates","include_fields","exclude_fields","highlight_full_fields","highlight_affix_num_tokens","highlight_start_tag","highlight_end_tag","enable_highlight_v1","enable_analytics","snippet_threshold","synonym_sets","drop_tokens_threshold","drop_tokens_mode","typo_tokens_threshold","enable_typos_for_alpha_numerical_tokens","filter_curated_hits","enable_synonyms","synonym_prefix","demote_synonym_match","synonym_num_typos","pinned_hits","hidden_hits","curation_tags","highlight_fields","rerank_hybrid_matches","split_join_tokens","pre_segmented_query","preset","enable_curations","prioritize_exact_match","max_candidates","prioritize_token_position","prioritize_num_matching_fields","enable_typos_for_numerical_tokens","exhaustive_search","search_cutoff_ms","limit_hits","use_cache","cache_ttl","min_len_1typo","min_len_2typo","vector_query","remote_embedding_timeout_ms","remote_embedding_num_tries","facet_strategy","stopwords","facet_return_parent","facet_sample_percent","facet_sample_threshold","facet_sample_slope","voice_query","%","%_model_id","%_id"],["union","searches"]]));$3(>7)@"PresetSchema";$7(#3);$3(>8)@"PresetsRetrieveSchema";$2({}).pipe($1({method:"GET",uri:"/presets",code:200}));$2({value:#2,name:$6});$2({presets:#4})`,[e,y,E,r,w,k,_,c,o,p,g,A]):a(fe,t));const pe=/*@__PURE__*/ f(t=>t===i?u(`AnalyticsEventsResponse`,`{input:#1,output:#4,errors:[$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"GetAnalyticsEvents"};$6(>5)@"GetAnalyticsEventsRequest";$6(>6)@"%EventsItem";$9(#2);$6(>7)@"%";$5({user_id:$3.pipe($2()),name:$3.pipe($2()),n:$4.pipe($2())}).pipe($1({method:"GET",uri:"/analytics/events",code:200}));$5({name:$7($3),event_type:$7($3),collection:$7($3),timestamp:$7($4),user_id:$7($3),doc_id:$7($3),doc_ids:$7(#8:0),query:$7($3)});$5({events:#3})`,[e,y,x,_,m,E,r,n,__d13,c,j,o,p,g,A]):a(pe,t));const me=/*@__PURE__*/ f(t=>t===i?u(`GetAnalyticsRule`,`{input:#1,output:#6:1,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({ruleName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/analytics/rules/{ruleName}",code:200}))`,[e,y,b,_,E,r,__d3,N,o,p,g,A]):a(me,t));const he=/*@__PURE__*/ f(t=>t===i?u(`GetAnalyticsRules`,`{input:#2,output:#3,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$2(#1:1);$8(>4)@"%Request";$8(>5)@"%Response";$7({rule_tag:$6($5.pipe($4()))}).pipe($3({method:"GET",uri:"/analytics/rules",code:200}));#1.pipe($9())`,[e,__d3,c,y,x,_,n,E,r,S,o,p,g,A]):a(he,t));const ge=/*@__PURE__*/ f(t=>t===i?u(`AnalyticsStatus`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"Get%"};$3(>3)@"Get%Request";$3(>4)@"%";$2({}).pipe($1({method:"GET",uri:"/analytics/status",code:200}));$2({popular_prefix_queries:$5($4),nohits_prefix_queries:$5($4),log_prefix_queries:$5($4),query_log_events:$5($4),query_counter_events:$5($4),doc_log_events:$5($4),doc_counter_events:$5($4)})`,[e,y,E,r,m,n,o,p,g,A]):a(ge,t));const _e=/*@__PURE__*/ f(t=>t===i?u(`GetAPIStats`,`{input:#1,output:#2,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$3(>3)@"%Request";$3(>4)@"APIStatsResponse";$2({}).pipe($1({method:"GET",uri:"/stats.json",code:200}));$2({delete_latency_ms:$5($4),delete_requests_per_second:$5($4),import_latency_ms:$5($4),import_requests_per_second:$5($4),latency_ms:$5($6),overloaded_requests_per_second:$5($4),pending_write_batches:$5($4),requests_per_second:$5($6),search_latency_ms:$5($4),search_requests_per_second:$5($4),total_requests_per_second:$5($4),write_latency_ms:$5($4),write_requests_per_second:$5($4)})`,[e,y,E,r,m,n,k,o,p,g,A]):a(_e,t));const ve=/*@__PURE__*/ f(t=>t===i?u(`GetCollection`,`{input:#1,output:#6:1,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({collectionName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/collections/{collectionName}",code:200}))`,[e,y,b,_,E,r,__d19,N,o,p,g,A]):a(ve,t));const ye=/*@__PURE__*/ f(t=>t===i?u(`GetCollections`,`{input:#2,output:#4,errors:[],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$5(>5)@"%Request%Parameters";$5(>6)@"%Request";$9(#8:1);$5(>7)@"%Response";$4({exclude_fields:$2($1),limit:$2($3),offset:$2($3)});$4({getCollectionsParameters:$2(#1.pipe($7()))}).pipe($6({method:"GET",uri:"/collections",code:200}));#3.pipe($10())`,[e,_,n,m,E,r,y,x,__d19,c,S,o,p,g,A]):a(ye,t));const be=/*@__PURE__*/ f(t=>t===i?u(`GetConversationModel`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({modelId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/conversations/models/{modelId}",code:200}))`,[e,y,b,_,E,r,__d21,N,o,p,g,A]):a(be,t));const xe=/*@__PURE__*/ f(t=>t===i?u(`GetCurationSet`,`{input:#1,output:#6:2,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({curationSetName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/curation_sets/{curationSetName}",code:200}))`,[e,y,b,_,E,r,__d10,N,o,p,g,A]):a(xe,t));const Se=/*@__PURE__*/ f(t=>t===i?u(`GetCurationSetItem`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({curationSetName:$3.pipe($2()),itemId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/curation_sets/{curationSetName}/items/{itemId}",code:200}))`,[e,y,b,_,E,r,__d11,N,o,p,g,A]):a(Se,t));const Ce=/*@__PURE__*/ f(t=>t===i?u(`GetCurationSetItems`,`{input:#1,output:#3,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$5(>4)@"%Request";$7(#6:0);$5(>5)@"%Response";$4({curationSetName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/curation_sets/{curationSetName}/items",code:200}));#2.pipe($8())`,[e,y,b,_,E,r,__d11,c,S,N,o,p,g,A]):a(Ce,t));const we=/*@__PURE__*/ f(t=>t===i?u(`GetCurationSets`,`{input:#1,output:#3,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$3(>4)@"%Request";$5(#4:2);$3(>5)@"%Response";$2({}).pipe($1({method:"GET",uri:"/curation_sets",code:200}));#2.pipe($6())`,[e,y,E,r,__d10,c,S,o,p,g,A]):a(we,t));const Te=/*@__PURE__*/ f(t=>t===i?u(`GetDocument`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({collectionName:$3.pipe($2()),documentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/collections/{collectionName}/documents/{documentId}",code:200}))`,[e,y,b,_,E,r,__d6,N,o,p,g,A]):a(Te,t));const Ee=/*@__PURE__*/ f(t=>t===i?[`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"GetKey"};$5(>2)@"GetKeyRequest";$4({keyId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/keys/{keyId}",code:200}))`,[e,y,b,m,E,r,__d22,N,o,p,g,A]]:a(Ee,t));const De=/*@__PURE__*/ f(t=>t===i?u(`GetKeys`,`{input:#1,output:#4,errors:[],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$3(>5)@"%Request";$3(>6)@"ApiKey";$9(#2);$3(>7)@"ApiKeysResponse";$2({}).pipe($1({method:"GET",uri:"/keys",code:200}));$2({value:$6($5.pipe($4({}))),description:$5,actions:#7:0,collections:#7:0,expires_at:$6($8),id:$6($8),value_prefix:$6($5)});$2({keys:#3})`,[e,y,E,r,C,_,n,__d13,m,c,o,p,g,A]):a(De,t));const Oe=/*@__PURE__*/ f(t=>t===i?u(`GetMetrics`,`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"%"};$3(>2)@"%Request";$2({}).pipe($1({method:"GET",uri:"/metrics.json",code:200}))`,[e,y,E,r,__d6,o,p,g,A]):a(Oe,t));const ke=/*@__PURE__*/ f(t=>t===i?u(`GetNLSearchModel`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({modelId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/nl_search_models/{modelId}",code:200}))`,[e,y,b,_,E,r,__d1,N,o,p,g,A]):a(ke,t));const Ae=/*@__PURE__*/ f(t=>t===i?u(`conversation`,`{input:#1,output:#3,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"GetPreset"};$5(>4)@"GetPresetRequest";$7.pipe($6([["q","query_by","validate_field_names","nl_query","nl_model_id","query_by_weights","text_match_type","prefix","infix","max_extra_prefix","max_extra_suffix","filter_by","enable_lazy_filter","max_filter_by_candidates","sort_by","facet_by","max_facet_values","facet_query","facet_query_num_typos","num_typos","page","per_page","limit","offset","group_by","group_limit","group_missing_values","group_max_candidates","include_fields","exclude_fields","highlight_full_fields","highlight_affix_num_tokens","highlight_start_tag","highlight_end_tag","enable_highlight_v1","enable_analytics","snippet_threshold","synonym_sets","drop_tokens_threshold","drop_tokens_mode","typo_tokens_threshold","enable_typos_for_alpha_numerical_tokens","filter_curated_hits","enable_synonyms","synonym_prefix","demote_synonym_match","synonym_num_typos","pinned_hits","hidden_hits","curation_tags","highlight_fields","rerank_hybrid_matches","split_join_tokens","pre_segmented_query","preset","enable_curations","prioritize_exact_match","max_candidates","prioritize_token_position","prioritize_num_matching_fields","enable_typos_for_numerical_tokens","exhaustive_search","search_cutoff_ms","limit_hits","use_cache","cache_ttl","min_len_1typo","min_len_2typo","vector_query","remote_embedding_timeout_ms","remote_embedding_num_tries","facet_strategy","stopwords","facet_return_parent","facet_sample_percent","facet_sample_threshold","facet_sample_slope","voice_query","%","%_model_id","%_id"],["union","searches"]]));$5(>5)@"GetPresetResponse";$4({presetId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/presets/{presetId}",code:200}));$4({value:#2,name:$3})`,[e,y,b,_,E,r,w,k,N,o,p,g,A]):a(Ae,t));const je=/*@__PURE__*/ f(t=>t===i?u(`GetSchemaChanges`,`{input:#1,output:#4,errors:[],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$3(>5)@"%Request";$3(>6)@"SchemaChangeStatus";$7(#2);$3(>7)@"%Response";$2({}).pipe($1({method:"GET",uri:"/operations/schema_changes",code:200}));$2({collection:$5($4),validated_docs:$5($6),altered_docs:$5($6)});#3.pipe($8())`,[e,y,E,r,_,n,m,c,S,o,p,g,A]):a(je,t));const Me=/*@__PURE__*/ f(t=>t===i?u(`StemmingDictionary`,`{input:#1,output:#4,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"Get%"};$5(>5)@"Get%Request";$5(>6)@"%WordsItem";$6(#2);$5(>7)@"%";$4({dictionaryId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/stemming/dictionaries/{dictionaryId}",code:200}));$4({word:$3,root:$3});$4({id:$3,words:#3})`,[e,y,b,_,E,r,c,N,o,p,g,A]):a(Me,t));const Ne=/*@__PURE__*/ f(t=>t===i?u(`GetStopwordsSet`,`{input:#1,output:#2,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>3)@"%Request";$5(>4)@"StopwordsSetRetrieveSchema";$4({setId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/stopwords/{setId}",code:200}));$4({stopwords:#6:0})`,[e,y,b,_,E,r,__d14,N,o,p,g,A]):a(Ne,t));const Pe=/*@__PURE__*/ f(t=>t===i?u(`GetStopwordsSets`,`{input:#1,output:#3,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"StopwordsSetsRetrieveAllSchema";$2({}).pipe($1({method:"GET",uri:"/stopwords",code:200}));$2({stopwords:#2})`,[e,y,E,r,__d14,c,o,p,g,A]):a(Pe,t));const Fe=/*@__PURE__*/ f(t=>t===i?u(`GetSynonymSet`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({synonymSetName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/synonym_sets/{synonymSetName}",code:200}))`,[e,y,b,_,E,r,__d17,N,o,p,g,A]):a(Fe,t));const Ie=/*@__PURE__*/ f(t=>t===i?u(`GetSynonymSetItem`,`{input:#1,output:#6:0,errors:[$7],serviceErrors:$8,protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({synonymSetName:$3.pipe($2()),itemId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/synonym_sets/{synonymSetName}/items/{itemId}",code:200}))`,[e,y,b,_,E,r,__d15,N,o,p,g,A]):a(Ie,t));const Le=/*@__PURE__*/ f(t=>t===i?u(`GetSynonymSetItems`,`{input:#1,output:#2,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>3)@"%Request";$5(>4)@"%Response";$4({synonymSetName:$3.pipe($2())}).pipe($1({method:"GET",uri:"/synonym_sets/{synonymSetName}/items",code:200}));#7:0.pipe($6())`,[e,y,b,_,E,r,S,__d16,N,o,p,g,A]):a(Le,t));const Re=/*@__PURE__*/ f(t=>t===i?u(`GetSynonymSets`,`{input:#1,output:#3,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$3(>4)@"%Request";$5(#4:0);$3(>5)@"%Response";$2({}).pipe($1({method:"GET",uri:"/synonym_sets",code:200}));#2.pipe($6())`,[e,y,E,r,__d17,c,S,o,p,g,A]):a(Re,t));const ze=/*@__PURE__*/ f(t=>t===i?[`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"Health"};$3(>2)@"HealthRequest";$2({}).pipe($1({method:"GET",uri:"/health",code:200}))`,[e,y,E,r,__d12,o,p,g,A]]:a(ze,t));const Be=/*@__PURE__*/ f(t=>t===i?u(`ImportDocuments`,`{input:#2,output:#10:0,errors:[$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$6(>3)@"%Request%Parameters";$6(>4)@"%Request";$5({batch_size:$2($1),return_id:$2($3),remote_embedding_batch_size:$2($1),return_doc:$2($3),action:$2($4),dirty_values:$2($4)});$5({collectionName:$4.pipe($8()),importDocumentsParameters:$2(#1.pipe($9()))}).pipe($7({method:"POST",uri:"/collections/{collectionName}/documents/import",code:200}))`,[e,m,n,l,_,E,r,y,b,x,__d7,j,N,o,p,g,A]):a(Be,t));const Ve=/*@__PURE__*/ f(t=>t===i?u(`ImportStemmingDictionary`,`{input:#1,output:#7:0,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({id:$3.pipe($2()),body:$3.pipe($4())}).pipe($1({method:"POST",uri:"/stemming/dictionaries/import",code:200}))`,[e,y,x,_,ee,E,r,__d7,j,o,p,g,A]):a(Ve,t));const He=/*@__PURE__*/ f(t=>t===i?u(`IndexDocument`,`{input:#1,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({collectionName:$3.pipe($2()),action:$5($3.pipe($4())),dirty_values:$5($3.pipe($4()))}).pipe($1({method:"POST",uri:"/collections/{collectionName}/documents",code:200}))`,[e,y,b,_,x,n,E,r,__d6,N,o,p,g,A]):a(He,t));const Ue=/*@__PURE__*/ f(t=>t===i?u(`ListStemmingDictionaries`,`{input:#1,output:#2,errors:[],serviceErrors:$6,protocol:$7,retry:$8,telemetry:$9,span:"%"};$3(>3)@"%Request";$3(>4)@"%Response";$2({}).pipe($1({method:"GET",uri:"/stemming/dictionaries",code:200}));$2({dictionaries:$5(#4:0)})`,[e,y,E,r,__d13,n,o,p,g,A]):a(Ue,t));const We=/*@__PURE__*/ f(t=>t===i?u(`SearchCollection`,`{input:#2,output:#3,errors:[$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$6(>4)@"SearchParameters";$6(>5)@"%Request";$6(>6)@"SearchResult";$5({q:$2($1),query_by:$2($1),validate_field_names:$2($3),nl_query:$2($3),nl_model_id:$2($1),query_by_weights:$2($1),text_match_type:$2($1),prefix:$2($1),infix:$2($1),max_extra_prefix:$2($4),max_extra_suffix:$2($4),filter_by:$2($1),enable_lazy_filter:$2($3),max_filter_by_candidates:$2($4),sort_by:$2($1),facet_by:$2($1),max_facet_values:$2($4),facet_query:$2($1),facet_query_num_typos:$2($4),num_typos:$2($1),page:$2($4),per_page:$2($4),limit:$2($4),offset:$2($4),group_by:$2($1),group_limit:$2($4),group_missing_values:$2($3),group_max_candidates:$2($4),include_fields:$2($1),exclude_fields:$2($1),highlight_full_fields:$2($1),highlight_affix_num_tokens:$2($4),highlight_start_tag:$2($1),highlight_end_tag:$2($1),enable_highlight_v1:$2($3),enable_analytics:$2($3),snippet_threshold:$2($4),synonym_sets:$2($1),drop_tokens_threshold:$2($4),drop_tokens_mode:$2($1),typo_tokens_threshold:$2($4),enable_typos_for_alpha_numerical_tokens:$2($3),filter_curated_hits:$2($3),enable_synonyms:$2($3),synonym_prefix:$2($3),demote_synonym_match:$2($3),synonym_num_typos:$2($4),pinned_hits:$2($1),hidden_hits:$2($1),curation_tags:$2($1),highlight_fields:$2($1),rerank_hybrid_matches:$2($3),split_join_tokens:$2($1),pre_segmented_query:$2($3),preset:$2($1),enable_curations:$2($3),prioritize_exact_match:$2($3),max_candidates:$2($4),prioritize_token_position:$2($3),prioritize_num_matching_fields:$2($3),enable_typos_for_numerical_tokens:$2($3),exhaustive_search:$2($3),search_cutoff_ms:$2($4),limit_hits:$2($4),use_cache:$2($3),cache_ttl:$2($4),min_len_1typo:$2($4),min_len_2typo:$2($4),vector_query:$2($1),remote_embedding_timeout_ms:$2($4),remote_embedding_num_tries:$2($4),facet_strategy:$2($1),stopwords:$2($1),facet_return_parent:$2($1),facet_sample_percent:$2($4),facet_sample_threshold:$2($4),facet_sample_slope:$2($4),voice_query:$2($1),conversation:$2($3),conversation_model_id:$2($1),conversation_id:$2($1)});$5({collectionName:$1.pipe($8()),searchParameters:#1.pipe($9())}).pipe($7({method:"GET",uri:"/collections/{collectionName}/documents/search",code:200}));$5({facet_counts:$2(#10:4),found:$2($4),found_docs:$2($4),search_time_ms:$2($4),out_of:$2($4),search_cutoff:$2($3),page:$2($4),grouped_hits:$2(#10:16),hits:$2(#10:14),request_params:$2(#10:18),conversation:$2(#10:19),union_request_params:$2(#10:20),metadata:$2(#10:9)})`,[e,_,n,l,m,E,r,y,b,x,__d18,j,N,o,p,g,A]):a(We,t));const Ge=/*@__PURE__*/ f(t=>t===i?u(`MultiSearchResult`,`{input:#4,output:#7,errors:[$13],serviceErrors:$14,protocol:$15,retry:$16,telemetry:$17,span:"SearchMulti"};$8(>8)@"MultiSearchCollectionParameters";$9(#1);$8(>9)@"MultiSearchParameters";$8(>10)@"SearchMultiRequest";$8(>11)@"%Item";$9(#5);$8(>12)@"%";$7({q:$2($1),query_by:$2($1),query_by_weights:$2($1),text_match_type:$2($1),prefix:$2($1),infix:$2($1),max_extra_prefix:$2($3),max_extra_suffix:$2($3),filter_by:$2($1),enable_lazy_filter:$2($4),max_filter_by_candidates:$2($3),sort_by:$2($1),facet_by:$2($1),max_facet_values:$2($3),facet_query:$2($1),facet_query_num_typos:$2($3),num_typos:$2($1),page:$2($3),per_page:$2($3),limit:$2($3),offset:$2($3),group_by:$2($1),group_limit:$2($3),group_missing_values:$2($4),group_max_candidates:$2($3),include_fields:$2($1),exclude_fields:$2($1),highlight_full_fields:$2($1),highlight_affix_num_tokens:$2($3),highlight_start_tag:$2($1),highlight_end_tag:$2($1),snippet_threshold:$2($3),drop_tokens_threshold:$2($3),drop_tokens_mode:$2($1),typo_tokens_threshold:$2($3),enable_typos_for_alpha_numerical_tokens:$2($4),filter_curated_hits:$2($4),enable_synonyms:$2($4),enable_analytics:$2($4),synonym_prefix:$2($4),demote_synonym_match:$2($4),synonym_num_typos:$2($3),pinned_hits:$2($1),hidden_hits:$2($1),curation_tags:$2($1),highlight_fields:$2($1),rerank_hybrid_matches:$2($4),pre_segmented_query:$2($4),preset:$2($1),enable_curations:$2($4),prioritize_exact_match:$2($4),prioritize_token_position:$2($4),prioritize_num_matching_fields:$2($4),enable_typos_for_numerical_tokens:$2($4),exhaustive_search:$2($4),search_cutoff_ms:$2($3),limit_hits:$2($3),use_cache:$2($4),cache_ttl:$2($3),min_len_1typo:$2($3),min_len_2typo:$2($3),vector_query:$2($1),remote_embedding_timeout_ms:$2($3),remote_embedding_num_tries:$2($3),facet_strategy:$2($1),stopwords:$2($1),facet_return_parent:$2($1),facet_sample_percent:$2($3),facet_sample_threshold:$2($3),facet_sample_slope:$2($3),voice_query:$2($1),conversation:$2($4),conversation_model_id:$2($1),conversation_id:$2($1),validate_field_names:$2($4),collection:$2($1),x_typesense_api_key:$2($1.pipe($5("x-typesense-api-key"),$6({})))});$7({q:$2($1),query_by:$2($1),query_by_weights:$2($1),text_match_type:$2($1),prefix:$2($1),infix:$2($1),max_extra_prefix:$2($3),max_extra_suffix:$2($3),filter_by:$2($1),enable_lazy_filter:$2($4),max_filter_by_candidates:$2($3),sort_by:$2($1),facet_by:$2($1),max_facet_values:$2($3),facet_query:$2($1),facet_query_num_typos:$2($3),num_typos:$2($1),page:$2($3),per_page:$2($3),limit:$2($3),offset:$2($3),group_by:$2($1),group_limit:$2($3),group_missing_values:$2($4),group_max_candidates:$2($3),include_fields:$2($1),exclude_fields:$2($1),highlight_full_fields:$2($1),highlight_affix_num_tokens:$2($3),highlight_start_tag:$2($1),highlight_end_tag:$2($1),snippet_threshold:$2($3),drop_tokens_threshold:$2($3),drop_tokens_mode:$2($1),typo_tokens_threshold:$2($3),enable_typos_for_alpha_numerical_tokens:$2($4),filter_curated_hits:$2($4),enable_synonyms:$2($4),enable_analytics:$2($4),synonym_prefix:$2($4),demote_synonym_match:$2($4),synonym_num_typos:$2($3),pinned_hits:$2($1),hidden_hits:$2($1),curation_tags:$2($1),highlight_fields:$2($1),rerank_hybrid_matches:$2($4),pre_segmented_query:$2($4),preset:$2($1),enable_curations:$2($4),prioritize_exact_match:$2($4),prioritize_token_position:$2($4),prioritize_num_matching_fields:$2($4),enable_typos_for_numerical_tokens:$2($4),exhaustive_search:$2($4),search_cutoff_ms:$2($3),limit_hits:$2($3),use_cache:$2($4),cache_ttl:$2($3),min_len_1typo:$2($3),min_len_2typo:$2($3),vector_query:$2($1),remote_embedding_timeout_ms:$2($3),remote_embedding_num_tries:$2($3),facet_strategy:$2($1),stopwords:$2($1),facet_return_parent:$2($1),facet_sample_percent:$2($3),facet_sample_threshold:$2($3),facet_sample_slope:$2($3),voice_query:$2($1),conversation:$2($4),conversation_model_id:$2($1),conversation_id:$2($1),validate_field_names:$2($4)});$7({multiSearchParameters:#3.pipe($11()),union:$2($4),searches:#2}).pipe($10({method:"POST",uri:"/multi_search",code:200}));$7({facet_counts:$2(#12:4),found:$2($3),found_docs:$2($3),search_time_ms:$2($3),out_of:$2($3),search_cutoff:$2($4),page:$2($3),grouped_hits:$2(#12:16),hits:$2(#12:14),request_params:$2(#12:18),conversation:$2(#12:19),union_request_params:$2(#12:20),metadata:$2(#12:9),code:$2($3),error:$2($1)});$7({results:#6,conversation:$2(#12:19)})`,[e,_,n,m,l,v,C,E,r,c,y,x,__d18,j,o,p,g,A]):a(Ge,t));const Ke=/*@__PURE__*/ f(t=>t===i?u(`TakeSnapshot`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({snapshot_path:$3.pipe($2())}).pipe($1({method:"POST",uri:"/operations/snapshot",code:200}))`,[e,y,x,_,E,r,__d8,o,p,g,A]):a(Ke,t));const qe=/*@__PURE__*/ f(t=>t===i?u(`ToggleSlowRequestLog`,`{input:#1,output:#6:0,errors:[],serviceErrors:$7,protocol:$8,retry:$9,telemetry:$10,span:"%"};$5(>2)@"%Request";$4({log_slow_requests_time_ms:$3.pipe($2("log-slow-requests-time-ms"))}).pipe($1({method:"POST",uri:"/config",code:200}))`,[e,y,v,m,E,r,__d8,o,p,g,A]):a(qe,t));const Je=/*@__PURE__*/ f(t=>t===i?u(`UpdateCollection`,`{input:#1,output:#2,errors:[$10,$11],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$9(>3)@"%Request";$9(>4)@"CollectionUpdateSchema";$8({collectionName:$3.pipe($2()),fields:$5(#4:3),synonym_sets:$5(#6:0),metadata:$5($7)}).pipe($1({method:"PATCH",uri:"/collections/{collectionName}",code:200}));$8({fields:$5(#4:3),synonym_sets:$5(#6:0),metadata:$5($7)})`,[e,y,b,_,__d20,n,__d13,k,E,r,j,N,o,p,g,A]):a(Je,t));const $=/*@__PURE__*/ f(t=>t===i?u(`UpdateConversationModel`,`{input:#1,output:#9:0,errors:[$10,$11],serviceErrors:$12,protocol:$13,retry:$14,telemetry:$15,span:"%"};$8(>2)@"%Request";$7({modelId:$3.pipe($2()),id:$4($3),model_name:$4($3),api_key:$4($3.pipe($5({}))),history_collection:$4($3),account_id:$4($3),system_prompt:$4($3),ttl:$4($6),max_bytes:$4($6),vllm_url:$4($3)}).pipe($1({method:"PUT",uri:"/conversations/models/{modelId}",code:200}))`,[e,y,b,_,n,C,m,E,r,__d21,j,N,o,p,g,A]):a($,t));const Ye=/*@__PURE__*/ f(t=>t===i?u(`UpdateDocument`,`{input:#1,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({collectionName:$3.pipe($2()),documentId:$3.pipe($2()),dirty_values:$5($3.pipe($4()))}).pipe($1({method:"PATCH",uri:"/collections/{collectionName}/documents/{documentId}",code:200}))`,[e,y,b,_,x,n,E,r,__d6,N,o,p,g,A]):a(Ye,t));const Xe=/*@__PURE__*/ f(t=>t===i?u(`UpdateDocuments`,`{input:#2,output:#3,errors:[$9,$10],serviceErrors:$11,protocol:$12,retry:$13,telemetry:$14,span:"%"};$4(>4)@"%Request%Parameters";$4(>5)@"%Request";$4(>6)@"%Response";$3({filter_by:$2($1)});$3({collectionName:$1.pipe($6()),updateDocumentsParameters:$2(#1.pipe($7()))}).pipe($5({method:"PATCH",uri:"/collections/{collectionName}/documents",code:200}));$3({num_updated:$8})`,[e,_,n,E,r,y,b,x,m,j,N,o,p,g,A]):a(Xe,t));const Ze=/*@__PURE__*/ f(t=>t===i?u(`UpdateNLSearchModel`,`{input:#1,output:#10:0,errors:[$11,$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$9(>2)@"%Request";$8({modelId:$3.pipe($2()),model_name:$4($3),api_key:$4($3.pipe($5({}))),api_url:$4($3),max_bytes:$4($6),temperature:$4($6),system_prompt:$4($3),top_p:$4($6),top_k:$4($6),stop_sequences:$4(#7:0),api_version:$4($3),project_id:$4($3),access_token:$4($3.pipe($5({}))),refresh_token:$4($3.pipe($5({}))),client_id:$4($3),client_secret:$4($3.pipe($5({}))),region:$4($3),max_output_tokens:$4($6),account_id:$4($3),id:$4($3)}).pipe($1({method:"PUT",uri:"/nl_search_models/{modelId}",code:200}))`,[e,y,b,_,n,C,m,__d13,E,r,__d1,j,N,o,p,g,A]):a(Ze,t));const Qe=/*@__PURE__*/ f(t=>t===i?u(`UpsertAlias`,`{input:#1,output:#6:0,errors:[$7,$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$5(>2)@"%Request";$4({aliasName:$3.pipe($2()),collection_name:$3}).pipe($1({method:"PUT",uri:"/aliases/{aliasName}",code:200}))`,[e,y,b,_,E,r,__d2,j,N,o,p,g,A]):a(Qe,t));const $e=/*@__PURE__*/ f(t=>t===i?u(`UpsertAnalyticsRule`,`{input:#1,output:#5:1,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({ruleName:$3.pipe($2()),name:$4($3),rule_tag:$4($3),params:$4(#5:0)}).pipe($1({method:"PUT",uri:"/analytics/rules/{ruleName}",code:200}))`,[e,y,b,_,n,__d3,E,r,j,o,p,g,A]):a($e,t));const et=/*@__PURE__*/ f(t=>t===i?u(`UpsertCurationSet`,`{input:#1,output:#4:2,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$7(>2)@"%Request";$6({curationSetName:$3.pipe($2()),items:#4:1,description:$5($3)}).pipe($1({method:"PUT",uri:"/curation_sets/{curationSetName}",code:200}))`,[e,y,b,_,__d10,n,E,r,j,o,p,g,A]):a(et,t));const tt=/*@__PURE__*/ f(t=>t===i?u(`UpsertCurationSetItem`,`{input:#1,output:#11:0,errors:[$12],serviceErrors:$13,protocol:$14,retry:$15,telemetry:$16,span:"%"};$10(>2)@"%Request";$9({curationSetName:$3.pipe($2()),itemId:$3.pipe($2()),rule:#4:0,includes:$5(#4:2),excludes:$5(#4:3),filter_by:$5($3),remove_matched_tokens:$5($6),metadata:$5($7),sort_by:$5($3),replace_query:$5($3),filter_curated_hits:$5($6),effective_from_ts:$5($8),effective_to_ts:$5($8),stop_processing:$5($6),id:$5($3)}).pipe($1({method:"PUT",uri:"/curation_sets/{curationSetName}/items/{itemId}",code:200}))`,[e,y,b,_,__d9,n,l,k,m,E,r,__d11,j,o,p,g,A]):a(tt,t));const nt=/*@__PURE__*/ f(t=>t===i?u(`conversation`,`{input:#2,output:#4,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"UpsertPreset"};$2.pipe($1([["q","query_by","validate_field_names","nl_query","nl_model_id","query_by_weights","text_match_type","prefix","infix","max_extra_prefix","max_extra_suffix","filter_by","enable_lazy_filter","max_filter_by_candidates","sort_by","facet_by","max_facet_values","facet_query","facet_query_num_typos","num_typos","page","per_page","limit","offset","group_by","group_limit","group_missing_values","group_max_candidates","include_fields","exclude_fields","highlight_full_fields","highlight_affix_num_tokens","highlight_start_tag","highlight_end_tag","enable_highlight_v1","enable_analytics","snippet_threshold","synonym_sets","drop_tokens_threshold","drop_tokens_mode","typo_tokens_threshold","enable_typos_for_alpha_numerical_tokens","filter_curated_hits","enable_synonyms","synonym_prefix","demote_synonym_match","synonym_num_typos","pinned_hits","hidden_hits","curation_tags","highlight_fields","rerank_hybrid_matches","split_join_tokens","pre_segmented_query","preset","enable_curations","prioritize_exact_match","max_candidates","prioritize_token_position","prioritize_num_matching_fields","enable_typos_for_numerical_tokens","exhaustive_search","search_cutoff_ms","limit_hits","use_cache","cache_ttl","min_len_1typo","min_len_2typo","vector_query","remote_embedding_timeout_ms","remote_embedding_num_tries","facet_strategy","stopwords","facet_return_parent","facet_sample_percent","facet_sample_threshold","facet_sample_slope","voice_query","%","%_model_id","%_id"],["union","searches"]]));$7(>5)@"UpsertPresetRequest";$2.pipe($1([["q","query_by","validate_field_names","nl_query","nl_model_id","query_by_weights","text_match_type","prefix","infix","max_extra_prefix","max_extra_suffix","filter_by","enable_lazy_filter","max_filter_by_candidates","sort_by","facet_by","max_facet_values","facet_query","facet_query_num_typos","num_typos","page","per_page","limit","offset","group_by","group_limit","group_missing_values","group_max_candidates","include_fields","exclude_fields","highlight_full_fields","highlight_affix_num_tokens","highlight_start_tag","highlight_end_tag","enable_highlight_v1","enable_analytics","snippet_threshold","synonym_sets","drop_tokens_threshold","drop_tokens_mode","typo_tokens_threshold","enable_typos_for_alpha_numerical_tokens","filter_curated_hits","enable_synonyms","synonym_prefix","demote_synonym_match","synonym_num_typos","pinned_hits","hidden_hits","curation_tags","highlight_fields","rerank_hybrid_matches","split_join_tokens","pre_segmented_query","preset","enable_curations","prioritize_exact_match","max_candidates","prioritize_token_position","prioritize_num_matching_fields","enable_typos_for_numerical_tokens","exhaustive_search","search_cutoff_ms","limit_hits","use_cache","cache_ttl","min_len_1typo","min_len_2typo","vector_query","remote_embedding_timeout_ms","remote_embedding_num_tries","facet_strategy","stopwords","facet_return_parent","facet_sample_percent","facet_sample_threshold","facet_sample_slope","voice_query","%","%_model_id","%_id"],["union","searches"]]));$7(>6)@"UpsertPresetResponse";$6({presetId:$5.pipe($4()),value:#1}).pipe($3({method:"PUT",uri:"/presets/{presetId}",code:200}));$6({value:#3,name:$5})`,[e,w,k,y,b,_,E,r,j,o,p,g,A]):a(nt,t));const rt=/*@__PURE__*/ f(t=>t===i?u(`UpsertStopwordsSet`,`{input:#1,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({setId:$3.pipe($2()),stopwords:#4:0,locale:$5($3)}).pipe($1({method:"PUT",uri:"/stopwords/{setId}",code:200}))`,[e,y,b,_,__d13,n,E,r,__d14,j,o,p,g,A]):a(rt,t));const it=/*@__PURE__*/ f(t=>t===i?u(`UpsertSynonymSet`,`{input:#1,output:#7:0,errors:[$8],serviceErrors:$9,protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({synonymSetName:$3.pipe($2()),items:#4:0}).pipe($1({method:"PUT",uri:"/synonym_sets/{synonymSetName}",code:200}))`,[e,y,b,_,__d16,E,r,__d17,j,o,p,g,A]):a(it,t));const at=/*@__PURE__*/ f(t=>t===i?u(`UpsertSynonymSetItem`,`{input:#1,output:#8:0,errors:[$9],serviceErrors:$10,protocol:$11,retry:$12,telemetry:$13,span:"%"};$7(>2)@"%Request";$6({synonymSetName:$3.pipe($2()),itemId:$3.pipe($2()),synonyms:#4:0,root:$5($3),locale:$5($3),symbols_to_index:$5(#4:0)}).pipe($1({method:"PUT",uri:"/synonym_sets/{synonymSetName}/items/{itemId}",code:200}))`,[e,y,b,_,__d13,n,E,r,__d15,j,o,p,g,A]):a(at,t));const ot=/*@__PURE__*/ f(t=>t===i?[`{input:#1,output:#4:0,errors:[],serviceErrors:$5,protocol:$6,retry:$7,telemetry:$8,span:"Vote"};$3(>2)@"VoteRequest";$2({}).pipe($1({method:"POST",uri:"/operations/vote",code:200}))`,[e,y,E,r,__d8,o,p,g,A]]:a(ot,t));function __d0(){return[`$3(>1)@"ApiResponse";$2({message:$1})`,[e,_,E,r]]}function __d1(){return[`$7(>1)@"CreateNLSearchModelResponse";$6({model_name:$2($1),api_key:$2($1.pipe($3({}))),api_url:$2($1),max_bytes:$2($4),temperature:$2($4),system_prompt:$2($1),top_p:$2($4),top_k:$2($4),stop_sequences:$2(#5:0),api_version:$2($1),project_id:$2($1),access_token:$2($1.pipe($3({}))),refresh_token:$2($1.pipe($3({}))),client_id:$2($1),client_secret:$2($1.pipe($3({}))),region:$2($1),max_output_tokens:$2($4),account_id:$2($1),id:$1})`,[e,_,n,C,m,__d13,E,r]]}function __d2(){return[`$3(>1)@"CollectionAlias";$2({name:$1,collection_name:$1})`,[e,_,E,r]]}function __d3(){return[`$7(>2)@"AnalyticsRuleCreateParams";$7(>3)@"AnalyticsRuleCreate";$6({destination_collection:$2($1),limit:$2($3),capture_search_requests:$2($4),meta_fields:$2(#5:0),expand_query:$2($4),counter_field:$2($1),weight:$2($3)});$6({name:$1,type:$1,collection:$1,event_type:$1,rule_tag:$2($1),params:$2(#0)})`,[e,_,n,m,l,__d13,E,r]]}function __d4(){return[`$3(>1)@"CurationSetDeleteSchema";$2({name:$1})`,[e,_,E,r]]}function __d5(){return[`$3(>1)@"CurationItemDeleteSchema";$2({id:$1})`,[e,_,E,r]]}function __d6(){return[`$3(>1)@"DeleteDocumentResponse";$2.pipe($1())`,[e,S,k,r]]}function __d7(){return[`$2(>1)@"ExportDocumentsResponse";$1({})`,[e,E,r]]}function __d8(){return[`$3(>1)@"SuccessStatus";$2({success:$1})`,[e,l,E,r]]}function __d9(){return[`$5(>4)@"CurationRule";$5(>5)@"CurationInclude";$7(#1);$7(#8:0);$4({tags:$2(#1:0),query:$2($3),match:$2($3),filter_by:$2($3)});$4({id:$3,position:$6})`,[e,__d13,n,_,E,r,m,c,__d5]]}function __d10(){return[`$8(>3)@"CurationItemCreateSchema";$9(#0);$8(>4)@"GetCurationSetResponse";$7({rule:#1:0,includes:$2(#1:2),excludes:$2(#1:3),filter_by:$2($3),remove_matched_tokens:$2($4),metadata:$2($5),sort_by:$2($3),replace_query:$2($3),filter_curated_hits:$2($4),effective_from_ts:$2($6),effective_to_ts:$2($6),stop_processing:$2($4),id:$2($3)});$7({items:#1,description:$2($3),name:$3})`,[e,__d9,n,_,l,k,m,E,r,c]]}function __d11(){return[`$8(>1)@"GetCurationSetItemResponse";$7({rule:#1:0,includes:$2(#1:2),excludes:$2(#1:3),filter_by:$2($3),remove_matched_tokens:$2($4),metadata:$2($5),sort_by:$2($3),replace_query:$2($3),filter_curated_hits:$2($4),effective_from_ts:$2($6),effective_to_ts:$2($6),stop_processing:$2($4),id:$3})`,[e,__d9,n,_,l,k,m,E,r]]}function __d12(){return[`$3(>1)@"AnalyticsEventCreateResponse";$2({ok:$1})`,[e,l,E,r]]}function __d13(){return[`$2($1)`,[e,_,c]]}function __d14(){return[`$5(>1)@"StopwordsSetSchema";$4({id:$1,stopwords:#2:0,locale:$3($1)})`,[e,_,__d13,n,E,r]]}function __d15(){return[`$5(>1)@"SynonymItemSchema";$4({id:$1,synonyms:#2:0,root:$3($1),locale:$3($1),symbols_to_index:$3(#2:0)})`,[e,_,__d13,n,E,r]]}function __d16(){return[`$2(#1:0)`,[e,__d15,c]]}function __d17(){return[`$4(>1)@"GetSynonymSetResponse";$3({items:#1:0,name:$2})`,[e,__d16,_,E,r]]}function __d18(){return[`$6(>21)@"FacetCountsCountsItem";$7(#0);$6(>22)@"FacetCountsStats";$6(>23)@"FacetCounts";$7(#3);$7($4);$7($1);$6(>24)@"SearchHighlight";$7(#7);$10($3,$4);$6(>25)@"SearchResultHitTextMatchInfo";$10($3,$1);$6(>26)@"SearchResultHitHybridSearchInfo";$6(>27)@"SearchResultHit";$7(#13);$6(>28)@"SearchGroupedHit";$7(#15);$6(>29)@"SearchRequestParamsVoiceQuery";$6(>30)@"SearchRequestParams";$6(>31)@"SearchResultConversation";$7(#18);$5({count:$2($1),highlighted:$2($3),value:$2($3),parent:$2($4)});$5({max:$2($1),min:$2($1),sum:$2($1),total_values:$2($1),avg:$2($1)});$5({counts:$2(#1),field_name:$2($3),sampled:$2($8),stats:$2(#2)});$5({field:$2($3),snippet:$2($3),snippets:$2(#9:0),value:$2($3),values:$2(#9:0),indices:$2(#6),matched_tokens:$2(#5)});$5({best_field_score:$2($3),best_field_weight:$2($1),fields_matched:$2($1),num_tokens_dropped:$2($1),score:$2($3),tokens_matched:$2($1),typo_prefix_score:$2($1)});$5({rank_fusion_score:$2($1)});$5({highlights:$2(#8),highlight:$2(#9),document:$2(#9),text_match:$2($1),text_match_info:$2(#10),geo_distance_meters:$2(#11),vector_distance:$2($1),hybrid_search_info:$2(#12),search_index:$2($1)});$5({found:$2($1),group_key:#5,hits:#14});$5({transcribed_query:$2($3)});$5({collection_name:$3,first_q:$2($3),q:$3,per_page:$1,voice_query:$2(#17)});$5({answer:$3,conversation_history:#5,conversation_id:$3,query:$3})`,[e,m,n,_,k,E,r,c,l,__d13,h]]}function __d19(){return[`$4(>2)@"VoiceQueryModelCollectionConfig";$4(>3)@"CreateCollectionResponse";$3({model_name:$2($1)});$3({name:$1,fields:#5:3,default_sorting_field:$2($1),token_separators:$2(#6:0),synonym_sets:$2(#6:0),enable_nested_fields:$2($7),symbols_to_index:$2(#6:0),voice_query_model:$2(#0),metadata:$2($8),num_documents:$9,created_at:$9})`,[e,_,n,E,r,__d20,__d13,l,k,m]]}function __d20(){return[`$5(>4)@"FieldEmbedModelConfig";$5(>5)@"FieldEmbed";$5(>6)@"Field";$9(#2);$4({model_name:$1,api_key:$3($1.pipe($2({}))),url:$3($1),access_token:$3($1.pipe($2({}))),refresh_token:$3($1.pipe($2({}))),client_id:$3($1),client_secret:$3($1.pipe($2({}))),project_id:$3($1),indexing_prefix:$3($1),query_prefix:$3($1)});$4({from:#6:0,model_config:#0});$4({name:$1,type:$1,optional:$3($7),facet:$3($7),index:$3($7),locale:$3($1),sort:$3($7),infix:$3($7),reference:$3($1),async_reference:$3($7),num_dim:$3($8),drop:$3($7),store:$3($7),vec_dist:$3($1),range_index:$3($7),stem:$3($7),stem_dictionary:$3($1),token_separators:$3(#6:0),symbols_to_index:$3(#6:0),embed:$3(#1)})`,[e,_,C,n,E,r,__d13,l,m,c]]}function __d21(){return[`$6(>1)@"CreateConversationModelResponse";$5({id:$1,model_name:$1,api_key:$3($1.pipe($2({}))),history_collection:$1,account_id:$3($1),system_prompt:$3($1),ttl:$3($4),max_bytes:$4,vllm_url:$3($1)})`,[e,_,C,n,m,E,r]]}function __d22(){return[`$6(>1)@"CreateKeyResponse";$5({value:$2($1),description:$1,actions:#3:0,collections:#3:0,expires_at:$2($4),id:$2($4),value_prefix:$2($1)})`,[e,_,n,__d13,m,E,r]]}export{j as BadRequest,M as Conflict,N as NotFound,P as clearCache,F as compactDb,I as createAnalyticsEvent,L as createAnalyticsRule,R as createCollection,z as createConversationModel,B as createKey,V as createNLSearchModel,H as debug,U as deleteAlias,W as deleteAnalyticsRule,G as deleteCollection,K as deleteConversationModel,q as deleteCurationSet,J as deleteCurationSetItem,Y as deleteDocument,X as deleteDocuments,Z as deleteKey,Q as deleteNLSearchModel,ne as deletePreset,re as deleteStopwordsSet,ie as deleteSynonymSet,ae as deleteSynonymSetItem,oe as exportDocuments,se as flushAnalytics,_e as getAPIStats,ce as getAlias,le as getAliases,ue as getAllConversationModels,de as getAllNLSearchModels,fe as getAllPresets,pe as getAnalyticsEvents,me as getAnalyticsRule,he as getAnalyticsRules,ge as getAnalyticsStatus,ve as getCollection,ye as getCollections,be as getConversationModel,xe as getCurationSet,Se as getCurationSetItem,Ce as getCurationSetItems,we as getCurationSets,Te as getDocument,Ee as getKey,De as getKeys,Oe as getMetrics,ke as getNLSearchModel,Ae as getPreset,je as getSchemaChanges,Me as getStemmingDictionary,Ne as getStopwordsSet,Pe as getStopwordsSets,Fe as getSynonymSet,Ie as getSynonymSetItem,Le as getSynonymSetItems,Re as getSynonymSets,ze as health,Be as importDocuments,Ve as importStemmingDictionary,He as indexDocument,Ue as listStemmingDictionaries,We as searchCollection,Ge as searchMulti,Ke as takeSnapshot,qe as toggleSlowRequestLog,Je as updateCollection,$ as updateConversationModel,Ye as updateDocument,Xe as updateDocuments,Ze as updateNLSearchModel,Qe as upsertAlias,$e as upsertAnalyticsRule,et as upsertCurationSet,tt as upsertCurationSetItem,nt as upsertPreset,rt as upsertStopwordsSet,it as upsertSynonymSet,at as upsertSynonymSetItem,ot as vote};
|
|
2
|
+
/*
|
|
3
|
+
32 106
|
|
4
|
+
e:0:Bc t:0:Ca n:0:Gc r:0:Hc i:0:a a:0:b o:0:errors$TypesenseServiceErrors s:0:f c:0:gc l:0:hc u:0:l d:0:m f:0:n p:0:protocol$TypesenseProtocol m:0:qc h:0:rc g:0:retry$Retry _:0:tc v:0:traits$Body y:0:traits$Http ee:0:traits$HttpBody b:0:traits$Label x:0:traits$Query S:0:traits$RawResponseRoot C:0:traits$SensitiveValue w:0:traits$UnionCases T:0:traits$applyErrorMatchers E:0:uc D:0:wc O:0:yc te:0:za k:0:zc
|
|
5
|
+
000000001g0002v0004v0006s0008y000b2000cw000ez000gb000hz000jv000lo000no000pi000rg000t7000v4000wq000ym0010c0012800142001600017x0019i001b4001cn001em001gh001i5001kc001m6001o4001pr001rc001t3001v0001wy001yq0020m0022n0024d002620027g00294002al002cf002e6002g0002hv002jo002ld002n4002oz002qx002sm002tt002vx002y1002zw0031t0033y003650037s0039n003br003e0003fw003hv003k4003lw003nv003ps003s2003tt003vu003xr003zu00411004260043b0044i0044u0045r0046x0047u004900049x004au004br004cm004dj004es004g3004hc004ia004j6004k9004lc004m9004na004op004q5004rk004ss004u1
|
|
6
|
+
2 146 1at P|=ClearCache;14v 19x;0,j,r,3,3f,6,d,g,36
|
|
7
|
+
2 1bj 1i4 F|=CompactDb;1c7 1h8;0,j,r,3,3f,6,d,g,36
|
|
8
|
+
2 1iu 1ts I|=CreateAnalyticsEvent;1jt 1sj;0,h,2,3k,r,3,j,3j,33,6,d,g,36
|
|
9
|
+
2 1ui 259 L|=CreateAnalyticsRule;1vg 247;0,j,k,r,3,n,33,6,d,g,36,p,v
|
|
10
|
+
2 25z 2iv R|=CreateCollection;26u 2ha;0,j,h,3r,2,3k,9,3q,v,r,3,33,34,6,d,g,36
|
|
11
|
+
2 2jl 2v8 z|=CreateConversationModel;2kn 2u1;0,j,h,2,o,e,r,3,3s,33,6,d,g,36
|
|
12
|
+
2 2vy 34w B|=CreateKey;2wm 33j;0,j,h,2,3k,e,r,3,3t,33,34,6,d,g,36
|
|
13
|
+
2 35m 3ns V|=CreateNLSearchModel;36k 3mg;0,j,h,2,o,e,3k,r,3,38,33,6,d,g,36
|
|
14
|
+
2 3oi 3vj H|=Debug;3p2 3uo;0,j,r,3,h,2,6,d,g,36
|
|
15
|
+
2 3w9 43t U|=DeleteAlias;3wz 42r;0,j,l,h,r,3,39,35,6,d,g,36
|
|
16
|
+
2 44j 4ch W|=DeleteAnalyticsRule;45h 4bf;0,j,l,h,r,3,3a,35,6,d,g,36
|
|
17
|
+
2 4d7 4lb G|=DeleteCollection;4e2 4k8;0,j,l,h,r,3,3q,35,6,d,g,36
|
|
18
|
+
2 4m1 4u7 K|=DeleteConversationModel;4n3 4t4;0,j,l,h,r,3,3s,35,6,d,g,36
|
|
19
|
+
2 4ux 535 q|=DeleteCurationSet;4vt 523;0,j,l,h,r,3,3b,35,6,d,g,36
|
|
20
|
+
2 53v 5d7 J|=DeleteCurationSetItem;54v 5c5;0,j,l,h,r,3,3c,35,6,d,g,36
|
|
21
|
+
2 5dx 5na Y|=DeleteDocument;5eq 5m8;0,j,l,h,r,3,3d,35,6,d,g,36
|
|
22
|
+
2 5o0 61q X|=DeleteDocuments;5ou 60l;0,h,e,2,9,r,3,j,l,m,35,6,d,g,36
|
|
23
|
+
2 62g 6ar Z|=DeleteKey;634 69s;0,j,l,e,r,3,33,35,6,d,g,36
|
|
24
|
+
2 6bh 6je Q|=DeleteNLSearchModel;6cf 6ic;0,j,l,h,r,3,3c,35,6,d,g,36
|
|
25
|
+
2 6k5 6rp ne|=DeletePreset;6kw 6qm;0,j,l,h,r,3,3b,35,6,d,g,36
|
|
26
|
+
2 6sg 702 re|=DeleteStopwordsSet;6td 6yz;0,j,l,h,r,3,3c,35,6,d,g,36
|
|
27
|
+
2 70t 78y ie|=DeleteSynonymSet;71o 77v;0,j,l,h,r,3,3b,35,6,d,g,36
|
|
28
|
+
2 79p 7iy ae|=DeleteSynonymSetItem;7ao 7hv;0,j,l,h,r,3,3c,35,6,d,g,36
|
|
29
|
+
2 7jp 7w8 oe|=ExportDocuments;7kj 7v1;0,h,2,r,3,j,l,m,3e,35,6,d,g,36
|
|
30
|
+
2 7wz 83l se|=FlushAnalytics;7xs 82n;0,j,r,3,3j,6,d,g,36
|
|
31
|
+
2 84c 8br ce|=GetAlias;84z 8ao;0,j,l,h,r,3,39,35,6,d,g,36
|
|
32
|
+
2 8ci 8kf le|=GetAliases;8d7 8jg;0,j,r,3,39,8,6,d,g,36
|
|
33
|
+
2 8l6 8tf ue|=GetAllConversationModels;8m9 8sd;0,j,r,3,3s,8,n,6,d,g,36
|
|
34
|
+
2 8u6 926 de|=GetAllNLSearchModels;8v5 915;0,j,r,3,38,8,n,6,d,g,36
|
|
35
|
+
2 92x aid fe|=conversation;93o ahd;0,j,r,3,p,v,h,8,6,d,g,36
|
|
36
|
+
2 aj4 ay3 pe|=AnalyticsEventsResponse;ak6 awt;0,j,m,h,e,r,3,2,3k,8,33,6,d,g,36
|
|
37
|
+
2 ayu b6n me|=GetAnalyticsRule;azp b5k;0,j,l,h,r,3,3a,35,6,d,g,36
|
|
38
|
+
2 b7e bg9 he|=GetAnalyticsRules;b8a bf2;0,3a,8,j,m,h,2,r,3,n,6,d,g,36
|
|
39
|
+
2 bh0 btb ge|=AnalyticsStatus;bhu bsf;0,j,r,3,e,2,6,d,g,36
|
|
40
|
+
2 bu2 cbt _e|=GetAPIStats;bus cav;0,j,r,3,e,2,v,6,d,g,36
|
|
41
|
+
2 cck ckj ve|=GetCollection;cdc cjf;0,j,l,h,r,3,3q,35,6,d,g,36
|
|
42
|
+
2 cla cwu ye|=GetCollections;cm3 cvk;0,h,2,e,r,3,j,m,3q,8,n,6,d,g,36
|
|
43
|
+
2 cxl d5m be|=GetConversationModel;cyk d4i;0,j,l,h,r,3,3s,35,6,d,g,36
|
|
44
|
+
2 d6d deh xe|=GetCurationSet;d76 ddd;0,j,l,h,r,3,3h,35,6,d,g,36
|
|
45
|
+
2 df8 dog Se|=GetCurationSetItem;dg5 dnc;0,j,l,h,r,3,3i,35,6,d,g,36
|
|
46
|
+
2 dp7 dyw Ce|=GetCurationSetItems;dq5 dxo;0,j,l,h,r,3,3i,8,n,35,6,d,g,36
|
|
47
|
+
2 dzn e7g we|=GetCurationSets;e0h e6e;0,j,r,3,3h,8,n,6,d,g,36
|
|
48
|
+
2 e87 ehf Te|=GetDocument;e8x egc;0,j,l,h,r,3,3d,35,6,d,g,36
|
|
49
|
+
2 ei6 ep9 Ee|=;eih eo5;0,j,l,e,r,3,3t,35,6,d,g,36
|
|
50
|
+
2 eq0 f1m De|=GetKeys;eqm f0e;0,j,r,3,o,h,2,3k,e,8,6,d,g,36
|
|
51
|
+
2 f2d f8q Oe|=GetMetrics;f32 f7t;0,j,r,3,3d,6,d,g,36
|
|
52
|
+
2 f9h fh9 ke|=GetNLSearchModel;fac fg6;0,j,l,h,r,3,38,35,6,d,g,36
|
|
53
|
+
2 fi0 gww Ae|=conversation;fir gvu;0,j,l,h,r,3,p,v,35,6,d,g,36
|
|
54
|
+
2 gxn h8f je|=GetSchemaChanges;gyi h7d;0,j,r,3,h,2,e,8,n,6,d,g,36
|
|
55
|
+
2 h96 hjp Me|=StemmingDictionary;ha3 hip;0,j,l,h,r,3,8,35,6,d,g,36
|
|
56
|
+
2 hkg htg Ne|=GetStopwordsSet;hla hsc;0,j,l,h,r,3,3l,35,6,d,g,36
|
|
57
|
+
2 hu7 i2k Pe|=GetStopwordsSets;hv2 i1k;0,j,r,3,3l,8,6,d,g,36
|
|
58
|
+
2 i3b ibb Fe|=GetSynonymSet;i43 ia7;0,j,l,h,r,3,3o,35,6,d,g,36
|
|
59
|
+
2 ic2 il6 Ie|=GetSynonymSetItem;icy ik2;0,j,l,h,r,3,3m,35,6,d,g,36
|
|
60
|
+
2 ilx iv8 Le|=GetSynonymSetItems;imu iu2;0,j,l,h,r,3,n,3n,35,6,d,g,36
|
|
61
|
+
2 ivz j3q Re|=GetSynonymSets;iws j2o;0,j,r,3,3o,8,n,6,d,g,36
|
|
62
|
+
2 j4h jal ze|=;j4s j9n;0,j,r,3,3j,6,d,g,36
|
|
63
|
+
2 jbc jpx Be|=ImportDocuments;jc6 jok;0,e,2,9,h,r,3,j,l,m,3e,33,35,6,d,g,36
|
|
64
|
+
2 jqo jz9 Ve|=ImportStemmingDictionary;jrr jy3;0,j,m,h,k,r,3,3e,33,6,d,g,36
|
|
65
|
+
2 k00 k9z He|=IndexDocument;k0s k8s;0,j,l,h,m,2,r,3,3d,35,6,d,g,36
|
|
66
|
+
2 kaq kj2 Ue|=ListStemmingDictionaries;kbt ki2;0,j,r,3,3k,2,6,d,g,36
|
|
67
|
+
2 kjt mjd We|=SearchCollection;kko mhz;0,h,2,9,e,r,3,j,l,m,3p,33,35,6,d,g,36
|
|
68
|
+
2 mk4 pz6 Ge|=MultiSearchResult;ml0 pxq;0,h,2,e,9,i,o,r,3,8,j,m,3p,33,6,d,g,36
|
|
69
|
+
2 pzx q7g Ke|=TakeSnapshot;q0o q6f;0,j,m,h,r,3,3f,6,d,g,36
|
|
70
|
+
2 q87 qgo qe|=ToggleSlowRequestLog;q96 qfn;0,j,i,e,r,3,3f,6,d,g,36
|
|
71
|
+
2 qhf qu2 Je|=UpdateCollection;qia qsm;0,j,l,h,3r,2,3k,v,r,3,33,35,6,d,g,36
|
|
72
|
+
2 qus r7v $|=UpdateConversationModel;qvu r6k;0,j,l,h,2,o,e,r,3,3s,33,35,6,d,g,36
|
|
73
|
+
2 r8m rj0 Ye|=UpdateDocument;r9f rht;0,j,l,h,m,2,r,3,3d,35,6,d,g,36
|
|
74
|
+
2 rjr rw2 Xe|=UpdateDocuments;rkl ruw;0,h,2,r,3,j,l,m,e,33,35,6,d,g,36
|
|
75
|
+
2 rwt sg4 Ze|=UpdateNLSearchModel;rxr sen;0,j,l,h,2,o,e,3k,r,3,38,33,35,6,d,g,36
|
|
76
|
+
2 sgv sp2 Qe|=UpsertAlias;shl snx;0,j,l,h,r,3,39,33,35,6,d,g,36
|
|
77
|
+
2 spt sz0 $e|=UpsertAnalyticsRule;sqr sxv;0,j,l,h,2,3a,r,3,33,6,d,g,36
|
|
78
|
+
2 szr t8v et|=UpsertCurationSet;t0n t7p;0,j,l,h,3h,2,r,3,33,6,d,g,36
|
|
79
|
+
2 t9m tqf tt|=UpsertCurationSetItem;tam toy;0,j,l,h,3g,2,9,v,e,r,3,3i,33,6,d,g,36
|
|
80
|
+
2 tr6 wc7 nt|=conversation;trx wb5;0,p,v,j,l,h,r,3,33,6,d,g,36
|
|
81
|
+
2 wcy wll rt|=UpsertStopwordsSet;wdv wk9;0,j,l,h,3k,2,r,3,3l,33,6,d,g,36
|
|
82
|
+
2 wmc wux it|=UpsertSynonymSet;wn7 wtn;0,j,l,h,3n,r,3,3o,33,6,d,g,36
|
|
83
|
+
2 wvo x6z at|=UpsertSynonymSetItem;wwn x5n;0,j,l,h,3k,2,r,3,3m,33,6,d,g,36
|
|
84
|
+
2 x7q xdz ot|=;x81 xd2;0,j,r,3,3f,6,d,g,36
|
|
85
|
+
3 lo r7 j|=;mz qb;0,u,e,h,37,3,t,2,f,s,q
|
|
86
|
+
3 rx xb M|=;t6 wg;0,1,e,h,37,3,t,2,f,s,q
|
|
87
|
+
3 y1 13g N|=;za 12k;0,u,e,h,37,3,t,2,f,s,q
|
|
88
|
+
0 db kz A||
|
|
89
|
+
1 xe1 xg3 __d0|=;xep xfq;0,h,r,3
|
|
90
|
+
1 xg3 xtc __d1|=;xgr xsn;0,h,2,o,e,3k,r,3
|
|
91
|
+
1 xtc xvy __d2|=;xu0 xvl;0,h,r,3
|
|
92
|
+
1 xvy y5m __d3|=;xwm y4x;0,h,2,e,9,3k,r,3
|
|
93
|
+
1 y5m y7x __d4|=;y6a y7k;0,h,r,3
|
|
94
|
+
1 y7x ya7 __d5|=;y8l y9u;0,h,r,3
|
|
95
|
+
1 ya7 ych __d6|=;yav yc4;0,n,v,3
|
|
96
|
+
1 ych yej __d7|=;yd5 ye8;0,r,3
|
|
97
|
+
1 yej ygn __d8|=;yf7 yga;0,9,r,3
|
|
98
|
+
1 ygn yma __d9|=;yhb ylg;0,3k,2,h,r,3,e,8,3c
|
|
99
|
+
1 yma yy3 __d10|=;ymz yxb;0,3g,2,h,9,v,e,r,3,8
|
|
100
|
+
1 yy3 z7j __d11|=;yys z6t;0,3g,2,h,9,v,e,r,3
|
|
101
|
+
1 z7j z9y __d12|=;z88 z9l;0,9,r,3
|
|
102
|
+
1 z9y zb4 __d13|=;zan zat;0,h,8
|
|
103
|
+
1 zb4 zea __d14|=;zbt zdp;0,h,3k,2,r,3
|
|
104
|
+
1 zea zig __d15|=;zez zhv;0,h,3k,2,r,3
|
|
105
|
+
1 zig zjs __d16|=;zj5 zjd;0,3m,8
|
|
106
|
+
1 zjs zmj __d17|=;zkh zm0;0,3n,h,r,3
|
|
107
|
+
1 zmj 10po __d18|=;zn8 10ot;0,e,2,h,v,r,3,8,9,3k,f
|
|
108
|
+
1 10po 110d __d19|=;10qd 10zg;0,h,2,r,3,3r,3k,9,v,e
|
|
109
|
+
1 110d 11k7 __d20|=;1112 11je;0,h,o,2,r,3,3k,9,e,8
|
|
110
|
+
1 11k7 11qu __d21|=;11kw 11qb;0,h,o,2,e,r,3
|
|
111
|
+
1 11qu 11w0 __d22|=;11rj 11vd;0,h,2,3k,e,r,3
|
|
112
|
+
*/
|
|
2917
113
|
//# sourceMappingURL=typesense.js.map
|