@distilled.cloud/typesense 1.0.0-rc.12 → 1.0.0-rc.14

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.
@@ -1,10 +1,10 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
2
- import * as S from "@distilled.cloud/core/schema";
3
1
  import * as API from "@distilled.cloud/core/api";
4
2
  import * as C from "@distilled.cloud/core/category";
5
- import * as T from "../traits.js";
6
- import { TypesenseProtocol, } from "../protocol.js";
3
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
4
+ import * as S from "@distilled.cloud/core/schema";
5
+ import { TypesenseProtocol } from "../protocol.js";
7
6
  import * as Retry from "../retry.js";
7
+ import * as T from "../traits.js";
8
8
  export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
9
9
  /*@__PURE__*/ S.TaggedError()("BadRequest", {
10
10
  code: S.Number,
@@ -23,15 +23,11 @@ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
23
23
  message: S.String,
24
24
  }).pipe(C.withBadRequestError), [{ status: 404 }]) {
25
25
  }
26
- export const ClearCacheRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/cache/clear", code: 200 }))).annotate({
27
- identifier: "ClearCacheRequest",
28
- });
26
+ export const ClearCacheRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/cache/clear", code: 200 }))).annotate({ identifier: "ClearCacheRequest" });
29
27
  export const SuccessStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
30
28
  success: S.Boolean,
31
29
  })).annotate({ identifier: "SuccessStatus" });
32
- export const CompactDbRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/db/compact", code: 200 }))).annotate({
33
- identifier: "CompactDbRequest",
34
- });
30
+ export const CompactDbRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/db/compact", code: 200 }))).annotate({ identifier: "CompactDbRequest" });
35
31
  export const CreateAnalyticsEventRequestDataDocIdsList = /*@__PURE__*/ S.Array(S.String);
36
32
  export const CreateAnalyticsEventRequestData = /*@__PURE__*/ S.suspend(() => S.Struct({
37
33
  user_id: S.optional(S.String),
@@ -74,14 +70,9 @@ export const AnalyticsRuleCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
74
70
  event_type: S.String,
75
71
  rule_tag: S.optional(S.String),
76
72
  params: S.optional(AnalyticsRuleCreateParams),
77
- })).annotate({
78
- identifier: "AnalyticsRuleCreate",
79
- });
73
+ })).annotate({ identifier: "AnalyticsRuleCreate" });
80
74
  export const CreateAnalyticsRuleRequestBodyCase1List = /*@__PURE__*/ S.Array(AnalyticsRuleCreate);
81
- export const CreateAnalyticsRuleRequestBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
82
- ["name", "type", "collection", "event_type", "rule_tag", "params"],
83
- [],
84
- ]));
75
+ export const CreateAnalyticsRuleRequestBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], []]));
85
76
  export const CreateAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
86
77
  body: CreateAnalyticsRuleRequestBody.pipe(T.HttpBody()),
87
78
  }).pipe(T.Http({ method: "POST", uri: "/analytics/rules", code: 200 }))).annotate({
@@ -96,9 +87,7 @@ export const AnalyticsRuleParams = /*@__PURE__*/ S.suspend(() => S.Struct({
96
87
  expand_query: S.optional(S.Boolean),
97
88
  counter_field: S.optional(S.String),
98
89
  weight: S.optional(S.Number),
99
- })).annotate({
100
- identifier: "AnalyticsRuleParams",
101
- });
90
+ })).annotate({ identifier: "AnalyticsRuleParams" });
102
91
  export const AnalyticsRule = /*@__PURE__*/ S.suspend(() => S.Struct({
103
92
  name: S.String,
104
93
  type: AnalyticsRuleType,
@@ -107,22 +96,14 @@ export const AnalyticsRule = /*@__PURE__*/ S.suspend(() => S.Struct({
107
96
  rule_tag: S.optional(S.String),
108
97
  params: S.optional(AnalyticsRuleParams),
109
98
  })).annotate({ identifier: "AnalyticsRule" });
110
- export const CreateAnalyticsRuleResponseBodyCase1ItemCase1 =
111
- /*@__PURE__*/ S.suspend(() => S.Struct({
99
+ export const CreateAnalyticsRuleResponseBodyCase1ItemCase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
112
100
  error: S.optional(S.String),
113
101
  })).annotate({
114
102
  identifier: "CreateAnalyticsRuleResponseBodyCase1ItemCase1",
115
103
  });
116
- export const CreateAnalyticsRuleResponseBodyCase1Item =
117
- /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
118
- ["name", "type", "collection", "event_type", "rule_tag", "params"],
119
- ["error"],
120
- ]));
104
+ export const CreateAnalyticsRuleResponseBodyCase1Item = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], ["error"]]));
121
105
  export const CreateAnalyticsRuleResponseBodyCase1List = /*@__PURE__*/ S.Array(CreateAnalyticsRuleResponseBodyCase1Item);
122
- export const CreateAnalyticsRuleResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
123
- ["name", "type", "collection", "event_type", "rule_tag", "params"],
124
- [],
125
- ]));
106
+ export const CreateAnalyticsRuleResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], []]));
126
107
  export const CreateAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => CreateAnalyticsRuleResponseBody.pipe(T.RawResponseRoot())).annotate({
127
108
  identifier: "CreateAnalyticsRuleResponse",
128
109
  });
@@ -140,9 +121,7 @@ export const FieldEmbedModelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
140
121
  project_id: S.optional(S.String),
141
122
  indexing_prefix: S.optional(S.String),
142
123
  query_prefix: S.optional(S.String),
143
- })).annotate({
144
- identifier: "FieldEmbedModelConfig",
145
- });
124
+ })).annotate({ identifier: "FieldEmbedModelConfig" });
146
125
  export const FieldEmbed = /*@__PURE__*/ S.suspend(() => S.Struct({
147
126
  from: FieldEmbedFromList,
148
127
  model_config: FieldEmbedModelConfig,
@@ -188,12 +167,9 @@ export const CreateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
188
167
  symbols_to_index: S.optional(CreateCollectionRequestSymbolsToIndexList),
189
168
  voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
190
169
  metadata: S.optional(S.Unknown),
191
- }).pipe(T.Http({ method: "POST", uri: "/collections", code: 200 }))).annotate({
192
- identifier: "CreateCollectionRequest",
193
- });
170
+ }).pipe(T.Http({ method: "POST", uri: "/collections", code: 200 }))).annotate({ identifier: "CreateCollectionRequest" });
194
171
  export const CreateCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
195
- export const CreateCollectionResponseTokenSeparatorsList =
196
- /*@__PURE__*/ S.Array(S.String);
172
+ export const CreateCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
197
173
  export const CreateCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
198
174
  export const CreateCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
199
175
  export const CreateCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -208,9 +184,7 @@ export const CreateCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
208
184
  metadata: S.optional(S.Unknown),
209
185
  num_documents: S.Number,
210
186
  created_at: S.Number,
211
- })).annotate({
212
- identifier: "CreateCollectionResponse",
213
- });
187
+ })).annotate({ identifier: "CreateCollectionResponse" });
214
188
  export const CreateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
215
189
  id: S.optional(S.String),
216
190
  model_name: S.String,
@@ -245,9 +219,7 @@ export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
245
219
  actions: CreateKeyRequestActionsList,
246
220
  collections: CreateKeyRequestCollectionsList,
247
221
  expires_at: S.optional(S.Number),
248
- }).pipe(T.Http({ method: "POST", uri: "/keys", code: 200 }))).annotate({
249
- identifier: "CreateKeyRequest",
250
- });
222
+ }).pipe(T.Http({ method: "POST", uri: "/keys", code: 200 }))).annotate({ identifier: "CreateKeyRequest" });
251
223
  export const CreateKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
252
224
  export const CreateKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
253
225
  export const CreateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -258,11 +230,8 @@ export const CreateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
258
230
  expires_at: S.optional(S.Number),
259
231
  id: S.optional(S.Number),
260
232
  value_prefix: S.optional(S.String),
261
- })).annotate({
262
- identifier: "CreateKeyResponse",
263
- });
264
- export const CreateNLSearchModelRequestStopSequencesList =
265
- /*@__PURE__*/ S.Array(S.String);
233
+ })).annotate({ identifier: "CreateKeyResponse" });
234
+ export const CreateNLSearchModelRequestStopSequencesList = /*@__PURE__*/ S.Array(S.String);
266
235
  export const CreateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
267
236
  model_name: S.optional(S.String),
268
237
  api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
@@ -286,8 +255,7 @@ export const CreateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct
286
255
  }).pipe(T.Http({ method: "POST", uri: "/nl_search_models", code: 200 }))).annotate({
287
256
  identifier: "CreateNLSearchModelRequest",
288
257
  });
289
- export const CreateNLSearchModelResponseStopSequencesList =
290
- /*@__PURE__*/ S.Array(S.String);
258
+ export const CreateNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(S.String);
291
259
  export const CreateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
292
260
  model_name: S.optional(S.String),
293
261
  api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
@@ -317,22 +285,17 @@ export const DebugResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
317
285
  })).annotate({ identifier: "DebugResponse" });
318
286
  export const DeleteAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
319
287
  aliasName: S.String.pipe(T.Label()),
320
- }).pipe(T.Http({ method: "DELETE", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
321
- identifier: "DeleteAliasRequest",
322
- });
288
+ }).pipe(T.Http({ method: "DELETE", uri: "/aliases/{aliasName}", code: 200 }))).annotate({ identifier: "DeleteAliasRequest" });
323
289
  export const CollectionAlias = /*@__PURE__*/ S.suspend(() => S.Struct({
324
290
  name: S.String,
325
291
  collection_name: S.String,
326
- })).annotate({
327
- identifier: "CollectionAlias",
328
- });
292
+ })).annotate({ identifier: "CollectionAlias" });
329
293
  export const DeleteAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
330
294
  ruleName: S.String.pipe(T.Label()),
331
295
  }).pipe(T.Http({ method: "DELETE", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
332
296
  identifier: "DeleteAnalyticsRuleRequest",
333
297
  });
334
- export const DeleteAnalyticsRuleResponseParamsMetaFieldsList =
335
- /*@__PURE__*/ S.Array(S.String);
298
+ export const DeleteAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
336
299
  export const DeleteAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
337
300
  destination_collection: S.optional(S.String),
338
301
  limit: S.optional(S.Number),
@@ -356,16 +319,9 @@ export const DeleteAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struc
356
319
  });
357
320
  export const DeleteCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
358
321
  collectionName: S.String.pipe(T.Label()),
359
- }).pipe(T.Http({
360
- method: "DELETE",
361
- uri: "/collections/{collectionName}",
362
- code: 200,
363
- }))).annotate({
364
- identifier: "DeleteCollectionRequest",
365
- });
322
+ }).pipe(T.Http({ method: "DELETE", uri: "/collections/{collectionName}", code: 200 }))).annotate({ identifier: "DeleteCollectionRequest" });
366
323
  export const DeleteCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
367
- export const DeleteCollectionResponseTokenSeparatorsList =
368
- /*@__PURE__*/ S.Array(S.String);
324
+ export const DeleteCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
369
325
  export const DeleteCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
370
326
  export const DeleteCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
371
327
  export const DeleteCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -380,16 +336,10 @@ export const DeleteCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
380
336
  metadata: S.optional(S.Unknown),
381
337
  num_documents: S.Number,
382
338
  created_at: S.Number,
383
- })).annotate({
384
- identifier: "DeleteCollectionResponse",
385
- });
339
+ })).annotate({ identifier: "DeleteCollectionResponse" });
386
340
  export const DeleteConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
387
341
  modelId: S.String.pipe(T.Label()),
388
- }).pipe(T.Http({
389
- method: "DELETE",
390
- uri: "/conversations/models/{modelId}",
391
- code: 200,
392
- }))).annotate({
342
+ }).pipe(T.Http({ method: "DELETE", uri: "/conversations/models/{modelId}", code: 200 }))).annotate({
393
343
  identifier: "DeleteConversationModelRequest",
394
344
  });
395
345
  export const DeleteConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -407,33 +357,19 @@ export const DeleteConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.S
407
357
  });
408
358
  export const DeleteCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
409
359
  curationSetName: S.String.pipe(T.Label()),
410
- }).pipe(T.Http({
411
- method: "DELETE",
412
- uri: "/curation_sets/{curationSetName}",
413
- code: 200,
414
- }))).annotate({
415
- identifier: "DeleteCurationSetRequest",
416
- });
360
+ }).pipe(T.Http({ method: "DELETE", uri: "/curation_sets/{curationSetName}", code: 200 }))).annotate({ identifier: "DeleteCurationSetRequest" });
417
361
  export const CurationSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
418
362
  name: S.String,
419
- })).annotate({
420
- identifier: "CurationSetDeleteSchema",
421
- });
363
+ })).annotate({ identifier: "CurationSetDeleteSchema" });
422
364
  export const DeleteCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
423
365
  curationSetName: S.String.pipe(T.Label()),
424
366
  itemId: S.String.pipe(T.Label()),
425
- }).pipe(T.Http({
426
- method: "DELETE",
427
- uri: "/curation_sets/{curationSetName}/items/{itemId}",
428
- code: 200,
429
- }))).annotate({
367
+ }).pipe(T.Http({ method: "DELETE", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }))).annotate({
430
368
  identifier: "DeleteCurationSetItemRequest",
431
369
  });
432
370
  export const CurationItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
433
371
  id: S.String,
434
- })).annotate({
435
- identifier: "CurationItemDeleteSchema",
436
- });
372
+ })).annotate({ identifier: "CurationItemDeleteSchema" });
437
373
  export const DeleteDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
438
374
  collectionName: S.String.pipe(T.Label()),
439
375
  documentId: S.String.pipe(T.Label()),
@@ -441,14 +377,9 @@ export const DeleteDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
441
377
  method: "DELETE",
442
378
  uri: "/collections/{collectionName}/documents/{documentId}",
443
379
  code: 200,
444
- }))).annotate({
445
- identifier: "DeleteDocumentRequest",
446
- });
447
- export const DeleteDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
448
- identifier: "DeleteDocumentResponse",
449
- });
450
- export const DeleteDocumentsRequestDeleteDocumentsParameters =
451
- /*@__PURE__*/ S.suspend(() => S.Struct({
380
+ }))).annotate({ identifier: "DeleteDocumentRequest" });
381
+ export const DeleteDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "DeleteDocumentResponse" });
382
+ export const DeleteDocumentsRequestDeleteDocumentsParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
452
383
  filter_by: S.String,
453
384
  batch_size: S.optional(S.Number),
454
385
  ignore_not_found: S.optional(S.Boolean),
@@ -459,28 +390,16 @@ export const DeleteDocumentsRequestDeleteDocumentsParameters =
459
390
  export const DeleteDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
460
391
  collectionName: S.String.pipe(T.Label()),
461
392
  deleteDocumentsParameters: S.optional(DeleteDocumentsRequestDeleteDocumentsParameters.pipe(T.Query())),
462
- }).pipe(T.Http({
463
- method: "DELETE",
464
- uri: "/collections/{collectionName}/documents",
465
- code: 200,
466
- }))).annotate({
467
- identifier: "DeleteDocumentsRequest",
468
- });
393
+ }).pipe(T.Http({ method: "DELETE", uri: "/collections/{collectionName}/documents", code: 200 }))).annotate({ identifier: "DeleteDocumentsRequest" });
469
394
  export const DeleteDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
470
395
  num_deleted: S.Number,
471
- })).annotate({
472
- identifier: "DeleteDocumentsResponse",
473
- });
396
+ })).annotate({ identifier: "DeleteDocumentsResponse" });
474
397
  export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
475
398
  keyId: S.Number.pipe(T.Label()),
476
- }).pipe(T.Http({ method: "DELETE", uri: "/keys/{keyId}", code: 200 }))).annotate({
477
- identifier: "DeleteKeyRequest",
478
- });
399
+ }).pipe(T.Http({ method: "DELETE", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "DeleteKeyRequest" });
479
400
  export const ApiKeyDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
480
401
  id: S.Number,
481
- })).annotate({
482
- identifier: "ApiKeyDeleteResponse",
483
- });
402
+ })).annotate({ identifier: "ApiKeyDeleteResponse" });
484
403
  export const DeleteNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
485
404
  modelId: S.String.pipe(T.Label()),
486
405
  }).pipe(T.Http({ method: "DELETE", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
@@ -493,14 +412,10 @@ export const NLSearchModelDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct(
493
412
  });
494
413
  export const DeletePresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
495
414
  presetId: S.String.pipe(T.Label()),
496
- }).pipe(T.Http({ method: "DELETE", uri: "/presets/{presetId}", code: 200 }))).annotate({
497
- identifier: "DeletePresetRequest",
498
- });
415
+ }).pipe(T.Http({ method: "DELETE", uri: "/presets/{presetId}", code: 200 }))).annotate({ identifier: "DeletePresetRequest" });
499
416
  export const PresetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
500
417
  name: S.String,
501
- })).annotate({
502
- identifier: "PresetDeleteSchema",
503
- });
418
+ })).annotate({ identifier: "PresetDeleteSchema" });
504
419
  export const DeleteStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
505
420
  setId: S.String.pipe(T.Label()),
506
421
  }).pipe(T.Http({ method: "DELETE", uri: "/stopwords/{setId}", code: 200 }))).annotate({
@@ -513,35 +428,20 @@ export const DeleteStopwordsSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct
513
428
  });
514
429
  export const DeleteSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
515
430
  synonymSetName: S.String.pipe(T.Label()),
516
- }).pipe(T.Http({
517
- method: "DELETE",
518
- uri: "/synonym_sets/{synonymSetName}",
519
- code: 200,
520
- }))).annotate({
521
- identifier: "DeleteSynonymSetRequest",
522
- });
431
+ }).pipe(T.Http({ method: "DELETE", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({ identifier: "DeleteSynonymSetRequest" });
523
432
  export const SynonymSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
524
433
  name: S.String,
525
- })).annotate({
526
- identifier: "SynonymSetDeleteSchema",
527
- });
434
+ })).annotate({ identifier: "SynonymSetDeleteSchema" });
528
435
  export const DeleteSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
529
436
  synonymSetName: S.String.pipe(T.Label()),
530
437
  itemId: S.String.pipe(T.Label()),
531
- }).pipe(T.Http({
532
- method: "DELETE",
533
- uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
534
- code: 200,
535
- }))).annotate({
438
+ }).pipe(T.Http({ method: "DELETE", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }))).annotate({
536
439
  identifier: "DeleteSynonymSetItemRequest",
537
440
  });
538
441
  export const SynonymItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
539
442
  id: S.String,
540
- })).annotate({
541
- identifier: "SynonymItemDeleteSchema",
542
- });
543
- export const ExportDocumentsRequestExportDocumentsParameters =
544
- /*@__PURE__*/ S.suspend(() => S.Struct({
443
+ })).annotate({ identifier: "SynonymItemDeleteSchema" });
444
+ export const ExportDocumentsRequestExportDocumentsParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
545
445
  filter_by: S.optional(S.String),
546
446
  include_fields: S.optional(S.String),
547
447
  exclude_fields: S.optional(S.String),
@@ -551,27 +451,15 @@ export const ExportDocumentsRequestExportDocumentsParameters =
551
451
  export const ExportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
552
452
  collectionName: S.String.pipe(T.Label()),
553
453
  exportDocumentsParameters: S.optional(ExportDocumentsRequestExportDocumentsParameters.pipe(T.Query())),
554
- }).pipe(T.Http({
555
- method: "GET",
556
- uri: "/collections/{collectionName}/documents/export",
557
- code: 200,
558
- }))).annotate({
559
- identifier: "ExportDocumentsRequest",
560
- });
454
+ }).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}/documents/export", code: 200 }))).annotate({ identifier: "ExportDocumentsRequest" });
561
455
  export const ExportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
562
456
  identifier: "ExportDocumentsResponse",
563
457
  });
564
- export const FlushAnalyticsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/analytics/flush", code: 200 }))).annotate({
565
- identifier: "FlushAnalyticsRequest",
566
- });
458
+ export const FlushAnalyticsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/analytics/flush", code: 200 }))).annotate({ identifier: "FlushAnalyticsRequest" });
567
459
  export const GetAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
568
460
  aliasName: S.String.pipe(T.Label()),
569
- }).pipe(T.Http({ method: "GET", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
570
- identifier: "GetAliasRequest",
571
- });
572
- export const GetAliasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/aliases", code: 200 }))).annotate({
573
- identifier: "GetAliasesRequest",
574
- });
461
+ }).pipe(T.Http({ method: "GET", uri: "/aliases/{aliasName}", code: 200 }))).annotate({ identifier: "GetAliasRequest" });
462
+ export const GetAliasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/aliases", code: 200 }))).annotate({ identifier: "GetAliasesRequest" });
575
463
  export const CollectionAliasesResponseAliasesList = /*@__PURE__*/ S.Array(CollectionAlias);
576
464
  export const CollectionAliasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
577
465
  aliases: CollectionAliasesResponseAliasesList,
@@ -591,9 +479,7 @@ export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
591
479
  ttl: S.optional(S.Number),
592
480
  max_bytes: S.Number,
593
481
  vllm_url: S.optional(S.String),
594
- })).annotate({
595
- identifier: "ConversationModelSchema",
596
- });
482
+ })).annotate({ identifier: "ConversationModelSchema" });
597
483
  export const GetAllConversationModelsResponseBodyList = /*@__PURE__*/ S.Array(ConversationModelSchema);
598
484
  export const GetAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() => GetAllConversationModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
599
485
  identifier: "GetAllConversationModelsResponse",
@@ -622,16 +508,12 @@ export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
622
508
  max_output_tokens: S.optional(S.Number),
623
509
  account_id: S.optional(S.String),
624
510
  id: S.String,
625
- })).annotate({
626
- identifier: "NLSearchModelSchema",
627
- });
511
+ })).annotate({ identifier: "NLSearchModelSchema" });
628
512
  export const GetAllNLSearchModelsResponseBodyList = /*@__PURE__*/ S.Array(NLSearchModelSchema);
629
513
  export const GetAllNLSearchModelsResponse = /*@__PURE__*/ S.suspend(() => GetAllNLSearchModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
630
514
  identifier: "GetAllNLSearchModelsResponse",
631
515
  });
632
- export const GetAllPresetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 }))).annotate({
633
- identifier: "GetAllPresetsRequest",
634
- });
516
+ export const GetAllPresetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 }))).annotate({ identifier: "GetAllPresetsRequest" });
635
517
  export const DropTokensMode = S.String;
636
518
  export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
637
519
  q: S.optional(S.String),
@@ -646,11 +528,13 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
646
528
  max_extra_prefix: S.optional(S.Number),
647
529
  max_extra_suffix: S.optional(S.Number),
648
530
  filter_by: S.optional(S.String),
531
+ enable_lazy_filter: S.optional(S.Boolean),
649
532
  max_filter_by_candidates: S.optional(S.Number),
650
533
  sort_by: S.optional(S.String),
651
534
  facet_by: S.optional(S.String),
652
535
  max_facet_values: S.optional(S.Number),
653
536
  facet_query: S.optional(S.String),
537
+ facet_query_num_typos: S.optional(S.Number),
654
538
  num_typos: S.optional(S.String),
655
539
  page: S.optional(S.Number),
656
540
  per_page: S.optional(S.Number),
@@ -659,6 +543,7 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
659
543
  group_by: S.optional(S.String),
660
544
  group_limit: S.optional(S.Number),
661
545
  group_missing_values: S.optional(S.Boolean),
546
+ group_max_candidates: S.optional(S.Number),
662
547
  include_fields: S.optional(S.String),
663
548
  exclude_fields: S.optional(S.String),
664
549
  highlight_full_fields: S.optional(S.String),
@@ -676,11 +561,13 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
676
561
  filter_curated_hits: S.optional(S.Boolean),
677
562
  enable_synonyms: S.optional(S.Boolean),
678
563
  synonym_prefix: S.optional(S.Boolean),
564
+ demote_synonym_match: S.optional(S.Boolean),
679
565
  synonym_num_typos: S.optional(S.Number),
680
566
  pinned_hits: S.optional(S.String),
681
567
  hidden_hits: S.optional(S.String),
682
568
  curation_tags: S.optional(S.String),
683
569
  highlight_fields: S.optional(S.String),
570
+ rerank_hybrid_matches: S.optional(S.Boolean),
684
571
  split_join_tokens: S.optional(S.String),
685
572
  pre_segmented_query: S.optional(S.Boolean),
686
573
  preset: S.optional(S.String),
@@ -692,6 +579,7 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
692
579
  enable_typos_for_numerical_tokens: S.optional(S.Boolean),
693
580
  exhaustive_search: S.optional(S.Boolean),
694
581
  search_cutoff_ms: S.optional(S.Number),
582
+ limit_hits: S.optional(S.Number),
695
583
  use_cache: S.optional(S.Boolean),
696
584
  cache_ttl: S.optional(S.Number),
697
585
  min_len_1typo: S.optional(S.Number),
@@ -702,13 +590,14 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
702
590
  facet_strategy: S.optional(S.String),
703
591
  stopwords: S.optional(S.String),
704
592
  facet_return_parent: S.optional(S.String),
593
+ facet_sample_percent: S.optional(S.Number),
594
+ facet_sample_threshold: S.optional(S.Number),
595
+ facet_sample_slope: S.optional(S.Number),
705
596
  voice_query: S.optional(S.String),
706
597
  conversation: S.optional(S.Boolean),
707
598
  conversation_model_id: S.optional(S.String),
708
599
  conversation_id: S.optional(S.String),
709
- })).annotate({
710
- identifier: "SearchParameters",
711
- });
600
+ })).annotate({ identifier: "SearchParameters" });
712
601
  export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
713
602
  q: S.optional(S.String),
714
603
  query_by: S.optional(S.String),
@@ -719,10 +608,13 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
719
608
  max_extra_prefix: S.optional(S.Number),
720
609
  max_extra_suffix: S.optional(S.Number),
721
610
  filter_by: S.optional(S.String),
611
+ enable_lazy_filter: S.optional(S.Boolean),
612
+ max_filter_by_candidates: S.optional(S.Number),
722
613
  sort_by: S.optional(S.String),
723
614
  facet_by: S.optional(S.String),
724
615
  max_facet_values: S.optional(S.Number),
725
616
  facet_query: S.optional(S.String),
617
+ facet_query_num_typos: S.optional(S.Number),
726
618
  num_typos: S.optional(S.String),
727
619
  page: S.optional(S.Number),
728
620
  per_page: S.optional(S.Number),
@@ -731,6 +623,7 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
731
623
  group_by: S.optional(S.String),
732
624
  group_limit: S.optional(S.Number),
733
625
  group_missing_values: S.optional(S.Boolean),
626
+ group_max_candidates: S.optional(S.Number),
734
627
  include_fields: S.optional(S.String),
735
628
  exclude_fields: S.optional(S.String),
736
629
  highlight_full_fields: S.optional(S.String),
@@ -746,11 +639,13 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
746
639
  enable_synonyms: S.optional(S.Boolean),
747
640
  enable_analytics: S.optional(S.Boolean),
748
641
  synonym_prefix: S.optional(S.Boolean),
642
+ demote_synonym_match: S.optional(S.Boolean),
749
643
  synonym_num_typos: S.optional(S.Number),
750
644
  pinned_hits: S.optional(S.String),
751
645
  hidden_hits: S.optional(S.String),
752
646
  curation_tags: S.optional(S.String),
753
647
  highlight_fields: S.optional(S.String),
648
+ rerank_hybrid_matches: S.optional(S.Boolean),
754
649
  pre_segmented_query: S.optional(S.Boolean),
755
650
  preset: S.optional(S.String),
756
651
  enable_curations: S.optional(S.Boolean),
@@ -760,6 +655,7 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
760
655
  enable_typos_for_numerical_tokens: S.optional(S.Boolean),
761
656
  exhaustive_search: S.optional(S.Boolean),
762
657
  search_cutoff_ms: S.optional(S.Number),
658
+ limit_hits: S.optional(S.Number),
763
659
  use_cache: S.optional(S.Boolean),
764
660
  cache_ttl: S.optional(S.Number),
765
661
  min_len_1typo: S.optional(S.Number),
@@ -770,6 +666,9 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
770
666
  facet_strategy: S.optional(S.String),
771
667
  stopwords: S.optional(S.String),
772
668
  facet_return_parent: S.optional(S.String),
669
+ facet_sample_percent: S.optional(S.Number),
670
+ facet_sample_threshold: S.optional(S.Number),
671
+ facet_sample_slope: S.optional(S.Number),
773
672
  voice_query: S.optional(S.String),
774
673
  conversation: S.optional(S.Boolean),
775
674
  conversation_model_id: S.optional(S.String),
@@ -777,7 +676,6 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.S
777
676
  validate_field_names: S.optional(S.Boolean),
778
677
  collection: S.optional(S.String),
779
678
  x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
780
- rerank_hybrid_matches: S.optional(S.Boolean),
781
679
  })).annotate({
782
680
  identifier: "MultiSearchCollectionParameters",
783
681
  });
@@ -802,11 +700,13 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
802
700
  "max_extra_prefix",
803
701
  "max_extra_suffix",
804
702
  "filter_by",
703
+ "enable_lazy_filter",
805
704
  "max_filter_by_candidates",
806
705
  "sort_by",
807
706
  "facet_by",
808
707
  "max_facet_values",
809
708
  "facet_query",
709
+ "facet_query_num_typos",
810
710
  "num_typos",
811
711
  "page",
812
712
  "per_page",
@@ -815,6 +715,7 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
815
715
  "group_by",
816
716
  "group_limit",
817
717
  "group_missing_values",
718
+ "group_max_candidates",
818
719
  "include_fields",
819
720
  "exclude_fields",
820
721
  "highlight_full_fields",
@@ -832,11 +733,13 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
832
733
  "filter_curated_hits",
833
734
  "enable_synonyms",
834
735
  "synonym_prefix",
736
+ "demote_synonym_match",
835
737
  "synonym_num_typos",
836
738
  "pinned_hits",
837
739
  "hidden_hits",
838
740
  "curation_tags",
839
741
  "highlight_fields",
742
+ "rerank_hybrid_matches",
840
743
  "split_join_tokens",
841
744
  "pre_segmented_query",
842
745
  "preset",
@@ -848,6 +751,7 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
848
751
  "enable_typos_for_numerical_tokens",
849
752
  "exhaustive_search",
850
753
  "search_cutoff_ms",
754
+ "limit_hits",
851
755
  "use_cache",
852
756
  "cache_ttl",
853
757
  "min_len_1typo",
@@ -858,6 +762,9 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
858
762
  "facet_strategy",
859
763
  "stopwords",
860
764
  "facet_return_parent",
765
+ "facet_sample_percent",
766
+ "facet_sample_threshold",
767
+ "facet_sample_slope",
861
768
  "voice_query",
862
769
  "conversation",
863
770
  "conversation_model_id",
@@ -872,9 +779,7 @@ export const PresetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
872
779
  export const PresetsRetrieveSchemaPresetsList = /*@__PURE__*/ S.Array(PresetSchema);
873
780
  export const PresetsRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
874
781
  presets: PresetsRetrieveSchemaPresetsList,
875
- })).annotate({
876
- identifier: "PresetsRetrieveSchema",
877
- });
782
+ })).annotate({ identifier: "PresetsRetrieveSchema" });
878
783
  export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
879
784
  user_id: S.String.pipe(T.Query()),
880
785
  name: S.String.pipe(T.Query()),
@@ -882,8 +787,7 @@ export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
882
787
  }).pipe(T.Http({ method: "GET", uri: "/analytics/events", code: 200 }))).annotate({
883
788
  identifier: "GetAnalyticsEventsRequest",
884
789
  });
885
- export const AnalyticsEventsResponseEventsItemDocIdsList =
886
- /*@__PURE__*/ S.Array(S.String);
790
+ export const AnalyticsEventsResponseEventsItemDocIdsList = /*@__PURE__*/ S.Array(S.String);
887
791
  export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
888
792
  name: S.optional(S.String),
889
793
  event_type: S.optional(S.String),
@@ -899,16 +803,11 @@ export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S
899
803
  export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(AnalyticsEventsResponseEventsItem);
900
804
  export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
901
805
  events: AnalyticsEventsResponseEventsList,
902
- })).annotate({
903
- identifier: "AnalyticsEventsResponse",
904
- });
806
+ })).annotate({ identifier: "AnalyticsEventsResponse" });
905
807
  export const GetAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
906
808
  ruleName: S.String.pipe(T.Label()),
907
- }).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
908
- identifier: "GetAnalyticsRuleRequest",
909
- });
910
- export const GetAnalyticsRuleResponseParamsMetaFieldsList =
911
- /*@__PURE__*/ S.Array(S.String);
809
+ }).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({ identifier: "GetAnalyticsRuleRequest" });
810
+ export const GetAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
912
811
  export const GetAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
913
812
  destination_collection: S.optional(S.String),
914
813
  limit: S.optional(S.Number),
@@ -927,14 +826,10 @@ export const GetAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
927
826
  event_type: S.String,
928
827
  rule_tag: S.optional(S.String),
929
828
  params: S.optional(GetAnalyticsRuleResponseParams),
930
- })).annotate({
931
- identifier: "GetAnalyticsRuleResponse",
932
- });
829
+ })).annotate({ identifier: "GetAnalyticsRuleResponse" });
933
830
  export const GetAnalyticsRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
934
831
  rule_tag: S.optional(S.String.pipe(T.Query())),
935
- }).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 }))).annotate({
936
- identifier: "GetAnalyticsRulesRequest",
937
- });
832
+ }).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 }))).annotate({ identifier: "GetAnalyticsRulesRequest" });
938
833
  export const GetAnalyticsRulesResponseBodyList = /*@__PURE__*/ S.Array(AnalyticsRule);
939
834
  export const GetAnalyticsRulesResponse = /*@__PURE__*/ S.suspend(() => GetAnalyticsRulesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
940
835
  identifier: "GetAnalyticsRulesResponse",
@@ -950,12 +845,8 @@ export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
950
845
  query_counter_events: S.optional(S.Number),
951
846
  doc_log_events: S.optional(S.Number),
952
847
  doc_counter_events: S.optional(S.Number),
953
- })).annotate({
954
- identifier: "AnalyticsStatus",
955
- });
956
- export const GetAPIStatsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 }))).annotate({
957
- identifier: "GetAPIStatsRequest",
958
- });
848
+ })).annotate({ identifier: "AnalyticsStatus" });
849
+ export const GetAPIStatsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 }))).annotate({ identifier: "GetAPIStatsRequest" });
959
850
  export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
960
851
  delete_latency_ms: S.optional(S.Number),
961
852
  delete_requests_per_second: S.optional(S.Number),
@@ -970,14 +861,10 @@ export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
970
861
  total_requests_per_second: S.optional(S.Number),
971
862
  write_latency_ms: S.optional(S.Number),
972
863
  write_requests_per_second: S.optional(S.Number),
973
- })).annotate({
974
- identifier: "APIStatsResponse",
975
- });
864
+ })).annotate({ identifier: "APIStatsResponse" });
976
865
  export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
977
866
  collectionName: S.String.pipe(T.Label()),
978
- }).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({
979
- identifier: "GetCollectionRequest",
980
- });
867
+ }).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({ identifier: "GetCollectionRequest" });
981
868
  export const GetCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
982
869
  export const GetCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
983
870
  export const GetCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
@@ -994,11 +881,8 @@ export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
994
881
  metadata: S.optional(S.Unknown),
995
882
  num_documents: S.Number,
996
883
  created_at: S.Number,
997
- })).annotate({
998
- identifier: "GetCollectionResponse",
999
- });
1000
- export const GetCollectionsRequestGetCollectionsParameters =
1001
- /*@__PURE__*/ S.suspend(() => S.Struct({
884
+ })).annotate({ identifier: "GetCollectionResponse" });
885
+ export const GetCollectionsRequestGetCollectionsParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1002
886
  exclude_fields: S.optional(S.String),
1003
887
  limit: S.optional(S.Number),
1004
888
  offset: S.optional(S.Number),
@@ -1007,9 +891,7 @@ export const GetCollectionsRequestGetCollectionsParameters =
1007
891
  });
1008
892
  export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1009
893
  getCollectionsParameters: S.optional(GetCollectionsRequestGetCollectionsParameters.pipe(T.Query())),
1010
- }).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({
1011
- identifier: "GetCollectionsRequest",
1012
- });
894
+ }).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({ identifier: "GetCollectionsRequest" });
1013
895
  export const CollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
1014
896
  export const CollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
1015
897
  export const CollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
@@ -1026,20 +908,12 @@ export const CollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1026
908
  metadata: S.optional(S.Unknown),
1027
909
  num_documents: S.Number,
1028
910
  created_at: S.Number,
1029
- })).annotate({
1030
- identifier: "CollectionResponse",
1031
- });
911
+ })).annotate({ identifier: "CollectionResponse" });
1032
912
  export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(CollectionResponse);
1033
- export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1034
- identifier: "GetCollectionsResponse",
1035
- });
913
+ export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "GetCollectionsResponse" });
1036
914
  export const GetConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1037
915
  modelId: S.String.pipe(T.Label()),
1038
- }).pipe(T.Http({
1039
- method: "GET",
1040
- uri: "/conversations/models/{modelId}",
1041
- code: 200,
1042
- }))).annotate({
916
+ }).pipe(T.Http({ method: "GET", uri: "/conversations/models/{modelId}", code: 200 }))).annotate({
1043
917
  identifier: "GetConversationModelRequest",
1044
918
  });
1045
919
  export const GetConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1057,13 +931,7 @@ export const GetConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Stru
1057
931
  });
1058
932
  export const GetCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1059
933
  curationSetName: S.String.pipe(T.Label()),
1060
- }).pipe(T.Http({
1061
- method: "GET",
1062
- uri: "/curation_sets/{curationSetName}",
1063
- code: 200,
1064
- }))).annotate({
1065
- identifier: "GetCurationSetRequest",
1066
- });
934
+ }).pipe(T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}", code: 200 }))).annotate({ identifier: "GetCurationSetRequest" });
1067
935
  export const CurationRuleTagsList = /*@__PURE__*/ S.Array(S.String);
1068
936
  export const CurationRuleMatch = S.String;
1069
937
  export const CurationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1075,15 +943,11 @@ export const CurationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
1075
943
  export const CurationInclude = /*@__PURE__*/ S.suspend(() => S.Struct({
1076
944
  id: S.String,
1077
945
  position: S.Number,
1078
- })).annotate({
1079
- identifier: "CurationInclude",
1080
- });
946
+ })).annotate({ identifier: "CurationInclude" });
1081
947
  export const CurationItemCreateSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
1082
948
  export const CurationExclude = /*@__PURE__*/ S.suspend(() => S.Struct({
1083
949
  id: S.String,
1084
- })).annotate({
1085
- identifier: "CurationExclude",
1086
- });
950
+ })).annotate({ identifier: "CurationExclude" });
1087
951
  export const CurationItemCreateSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
1088
952
  export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1089
953
  rule: CurationRule,
@@ -1099,25 +963,17 @@ export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1099
963
  effective_to_ts: S.optional(S.Number),
1100
964
  stop_processing: S.optional(S.Boolean),
1101
965
  id: S.optional(S.String),
1102
- })).annotate({
1103
- identifier: "CurationItemCreateSchema",
1104
- });
966
+ })).annotate({ identifier: "CurationItemCreateSchema" });
1105
967
  export const GetCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
1106
968
  export const GetCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1107
969
  items: GetCurationSetResponseItemsList,
1108
970
  description: S.optional(S.String),
1109
971
  name: S.String,
1110
- })).annotate({
1111
- identifier: "GetCurationSetResponse",
1112
- });
972
+ })).annotate({ identifier: "GetCurationSetResponse" });
1113
973
  export const GetCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1114
974
  curationSetName: S.String.pipe(T.Label()),
1115
975
  itemId: S.String.pipe(T.Label()),
1116
- }).pipe(T.Http({
1117
- method: "GET",
1118
- uri: "/curation_sets/{curationSetName}/items/{itemId}",
1119
- code: 200,
1120
- }))).annotate({
976
+ }).pipe(T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }))).annotate({
1121
977
  identifier: "GetCurationSetItemRequest",
1122
978
  });
1123
979
  export const GetCurationSetItemResponseIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
@@ -1141,11 +997,7 @@ export const GetCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct
1141
997
  });
1142
998
  export const GetCurationSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1143
999
  curationSetName: S.String.pipe(T.Label()),
1144
- }).pipe(T.Http({
1145
- method: "GET",
1146
- uri: "/curation_sets/{curationSetName}/items",
1147
- code: 200,
1148
- }))).annotate({
1000
+ }).pipe(T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}/items", code: 200 }))).annotate({
1149
1001
  identifier: "GetCurationSetItemsRequest",
1150
1002
  });
1151
1003
  export const CurationItemSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
@@ -1164,28 +1016,20 @@ export const CurationItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1164
1016
  effective_to_ts: S.optional(S.Number),
1165
1017
  stop_processing: S.optional(S.Boolean),
1166
1018
  id: S.String,
1167
- })).annotate({
1168
- identifier: "CurationItemSchema",
1169
- });
1019
+ })).annotate({ identifier: "CurationItemSchema" });
1170
1020
  export const GetCurationSetItemsResponseBodyList = /*@__PURE__*/ S.Array(CurationItemSchema);
1171
1021
  export const GetCurationSetItemsResponse = /*@__PURE__*/ S.suspend(() => GetCurationSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1172
1022
  identifier: "GetCurationSetItemsResponse",
1173
1023
  });
1174
- export const GetCurationSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 }))).annotate({
1175
- identifier: "GetCurationSetsRequest",
1176
- });
1024
+ export const GetCurationSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 }))).annotate({ identifier: "GetCurationSetsRequest" });
1177
1025
  export const CurationSetSchemaItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
1178
1026
  export const CurationSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1179
1027
  items: CurationSetSchemaItemsList,
1180
1028
  description: S.optional(S.String),
1181
1029
  name: S.String,
1182
- })).annotate({
1183
- identifier: "CurationSetSchema",
1184
- });
1030
+ })).annotate({ identifier: "CurationSetSchema" });
1185
1031
  export const GetCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(CurationSetSchema);
1186
- export const GetCurationSetsResponse = /*@__PURE__*/ S.suspend(() => GetCurationSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1187
- identifier: "GetCurationSetsResponse",
1188
- });
1032
+ export const GetCurationSetsResponse = /*@__PURE__*/ S.suspend(() => GetCurationSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "GetCurationSetsResponse" });
1189
1033
  export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1190
1034
  collectionName: S.String.pipe(T.Label()),
1191
1035
  documentId: S.String.pipe(T.Label()),
@@ -1193,12 +1037,8 @@ export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1193
1037
  method: "GET",
1194
1038
  uri: "/collections/{collectionName}/documents/{documentId}",
1195
1039
  code: 200,
1196
- }))).annotate({
1197
- identifier: "GetDocumentRequest",
1198
- });
1199
- export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1200
- identifier: "GetDocumentResponse",
1201
- });
1040
+ }))).annotate({ identifier: "GetDocumentRequest" });
1041
+ export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "GetDocumentResponse" });
1202
1042
  export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1203
1043
  keyId: S.Number.pipe(T.Label()),
1204
1044
  }).pipe(T.Http({ method: "GET", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "GetKeyRequest" });
@@ -1228,20 +1068,12 @@ export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
1228
1068
  export const ApiKeysResponseKeysList = /*@__PURE__*/ S.Array(ApiKey);
1229
1069
  export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1230
1070
  keys: ApiKeysResponseKeysList,
1231
- })).annotate({
1232
- identifier: "ApiKeysResponse",
1233
- });
1234
- export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 }))).annotate({
1235
- identifier: "GetMetricsRequest",
1236
- });
1237
- export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1238
- identifier: "GetMetricsResponse",
1239
- });
1071
+ })).annotate({ identifier: "ApiKeysResponse" });
1072
+ export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 }))).annotate({ identifier: "GetMetricsRequest" });
1073
+ export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "GetMetricsResponse" });
1240
1074
  export const GetNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1241
1075
  modelId: S.String.pipe(T.Label()),
1242
- }).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
1243
- identifier: "GetNLSearchModelRequest",
1244
- });
1076
+ }).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({ identifier: "GetNLSearchModelRequest" });
1245
1077
  export const GetNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(S.String);
1246
1078
  export const GetNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1247
1079
  model_name: S.optional(S.String),
@@ -1263,14 +1095,10 @@ export const GetNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1263
1095
  max_output_tokens: S.optional(S.Number),
1264
1096
  account_id: S.optional(S.String),
1265
1097
  id: S.String,
1266
- })).annotate({
1267
- identifier: "GetNLSearchModelResponse",
1268
- });
1098
+ })).annotate({ identifier: "GetNLSearchModelResponse" });
1269
1099
  export const GetPresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1270
1100
  presetId: S.String.pipe(T.Label()),
1271
- }).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 }))).annotate({
1272
- identifier: "GetPresetRequest",
1273
- });
1101
+ }).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 }))).annotate({ identifier: "GetPresetRequest" });
1274
1102
  export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
1275
1103
  [
1276
1104
  "q",
@@ -1285,11 +1113,13 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1285
1113
  "max_extra_prefix",
1286
1114
  "max_extra_suffix",
1287
1115
  "filter_by",
1116
+ "enable_lazy_filter",
1288
1117
  "max_filter_by_candidates",
1289
1118
  "sort_by",
1290
1119
  "facet_by",
1291
1120
  "max_facet_values",
1292
1121
  "facet_query",
1122
+ "facet_query_num_typos",
1293
1123
  "num_typos",
1294
1124
  "page",
1295
1125
  "per_page",
@@ -1298,6 +1128,7 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1298
1128
  "group_by",
1299
1129
  "group_limit",
1300
1130
  "group_missing_values",
1131
+ "group_max_candidates",
1301
1132
  "include_fields",
1302
1133
  "exclude_fields",
1303
1134
  "highlight_full_fields",
@@ -1315,11 +1146,13 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1315
1146
  "filter_curated_hits",
1316
1147
  "enable_synonyms",
1317
1148
  "synonym_prefix",
1149
+ "demote_synonym_match",
1318
1150
  "synonym_num_typos",
1319
1151
  "pinned_hits",
1320
1152
  "hidden_hits",
1321
1153
  "curation_tags",
1322
1154
  "highlight_fields",
1155
+ "rerank_hybrid_matches",
1323
1156
  "split_join_tokens",
1324
1157
  "pre_segmented_query",
1325
1158
  "preset",
@@ -1331,6 +1164,7 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1331
1164
  "enable_typos_for_numerical_tokens",
1332
1165
  "exhaustive_search",
1333
1166
  "search_cutoff_ms",
1167
+ "limit_hits",
1334
1168
  "use_cache",
1335
1169
  "cache_ttl",
1336
1170
  "min_len_1typo",
@@ -1341,6 +1175,9 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1341
1175
  "facet_strategy",
1342
1176
  "stopwords",
1343
1177
  "facet_return_parent",
1178
+ "facet_sample_percent",
1179
+ "facet_sample_threshold",
1180
+ "facet_sample_slope",
1344
1181
  "voice_query",
1345
1182
  "conversation",
1346
1183
  "conversation_model_id",
@@ -1351,30 +1188,18 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases(
1351
1188
  export const GetPresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1352
1189
  value: GetPresetResponseValue,
1353
1190
  name: S.String,
1354
- })).annotate({
1355
- identifier: "GetPresetResponse",
1356
- });
1357
- export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({
1358
- identifier: "GetSchemaChangesRequest",
1359
- });
1191
+ })).annotate({ identifier: "GetPresetResponse" });
1192
+ export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({ identifier: "GetSchemaChangesRequest" });
1360
1193
  export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
1361
1194
  collection: S.optional(S.String),
1362
1195
  validated_docs: S.optional(S.Number),
1363
1196
  altered_docs: S.optional(S.Number),
1364
- })).annotate({
1365
- identifier: "SchemaChangeStatus",
1366
- });
1197
+ })).annotate({ identifier: "SchemaChangeStatus" });
1367
1198
  export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(SchemaChangeStatus);
1368
- export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1369
- identifier: "GetSchemaChangesResponse",
1370
- });
1199
+ export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "GetSchemaChangesResponse" });
1371
1200
  export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1372
1201
  dictionaryId: S.String.pipe(T.Label()),
1373
- }).pipe(T.Http({
1374
- method: "GET",
1375
- uri: "/stemming/dictionaries/{dictionaryId}",
1376
- code: 200,
1377
- }))).annotate({
1202
+ }).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries/{dictionaryId}", code: 200 }))).annotate({
1378
1203
  identifier: "GetStemmingDictionaryRequest",
1379
1204
  });
1380
1205
  export const StemmingDictionaryWordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1387,32 +1212,23 @@ export const StemmingDictionaryWordsList = /*@__PURE__*/ S.Array(StemmingDiction
1387
1212
  export const StemmingDictionary = /*@__PURE__*/ S.suspend(() => S.Struct({
1388
1213
  id: S.String,
1389
1214
  words: StemmingDictionaryWordsList,
1390
- })).annotate({
1391
- identifier: "StemmingDictionary",
1392
- });
1215
+ })).annotate({ identifier: "StemmingDictionary" });
1393
1216
  export const GetStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1394
1217
  setId: S.String.pipe(T.Label()),
1395
- }).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 }))).annotate({
1396
- identifier: "GetStopwordsSetRequest",
1397
- });
1218
+ }).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 }))).annotate({ identifier: "GetStopwordsSetRequest" });
1398
1219
  export const StopwordsSetSchemaStopwordsList = /*@__PURE__*/ S.Array(S.String);
1399
1220
  export const StopwordsSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1400
1221
  id: S.String,
1401
1222
  stopwords: StopwordsSetSchemaStopwordsList,
1402
1223
  locale: S.optional(S.String),
1403
- })).annotate({
1404
- identifier: "StopwordsSetSchema",
1405
- });
1224
+ })).annotate({ identifier: "StopwordsSetSchema" });
1406
1225
  export const StopwordsSetRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1407
1226
  stopwords: StopwordsSetSchema,
1408
1227
  })).annotate({
1409
1228
  identifier: "StopwordsSetRetrieveSchema",
1410
1229
  });
1411
- export const GetStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 }))).annotate({
1412
- identifier: "GetStopwordsSetsRequest",
1413
- });
1414
- export const StopwordsSetsRetrieveAllSchemaStopwordsList =
1415
- /*@__PURE__*/ S.Array(StopwordsSetSchema);
1230
+ export const GetStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 }))).annotate({ identifier: "GetStopwordsSetsRequest" });
1231
+ export const StopwordsSetsRetrieveAllSchemaStopwordsList = /*@__PURE__*/ S.Array(StopwordsSetSchema);
1416
1232
  export const StopwordsSetsRetrieveAllSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1417
1233
  stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList,
1418
1234
  })).annotate({
@@ -1420,9 +1236,7 @@ export const StopwordsSetsRetrieveAllSchema = /*@__PURE__*/ S.suspend(() => S.St
1420
1236
  });
1421
1237
  export const GetSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1422
1238
  synonymSetName: S.String.pipe(T.Label()),
1423
- }).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
1424
- identifier: "GetSynonymSetRequest",
1425
- });
1239
+ }).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({ identifier: "GetSynonymSetRequest" });
1426
1240
  export const SynonymItemSchemaSynonymsList = /*@__PURE__*/ S.Array(S.String);
1427
1241
  export const SynonymItemSchemaSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
1428
1242
  export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1431,29 +1245,18 @@ export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1431
1245
  root: S.optional(S.String),
1432
1246
  locale: S.optional(S.String),
1433
1247
  symbols_to_index: S.optional(SynonymItemSchemaSymbolsToIndexList),
1434
- })).annotate({
1435
- identifier: "SynonymItemSchema",
1436
- });
1248
+ })).annotate({ identifier: "SynonymItemSchema" });
1437
1249
  export const GetSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
1438
1250
  export const GetSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1439
1251
  items: GetSynonymSetResponseItemsList,
1440
1252
  name: S.String,
1441
- })).annotate({
1442
- identifier: "GetSynonymSetResponse",
1443
- });
1253
+ })).annotate({ identifier: "GetSynonymSetResponse" });
1444
1254
  export const GetSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1445
1255
  synonymSetName: S.String.pipe(T.Label()),
1446
1256
  itemId: S.String.pipe(T.Label()),
1447
- }).pipe(T.Http({
1448
- method: "GET",
1449
- uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
1450
- code: 200,
1451
- }))).annotate({
1452
- identifier: "GetSynonymSetItemRequest",
1453
- });
1257
+ }).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }))).annotate({ identifier: "GetSynonymSetItemRequest" });
1454
1258
  export const GetSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
1455
- export const GetSynonymSetItemResponseSymbolsToIndexList =
1456
- /*@__PURE__*/ S.Array(S.String);
1259
+ export const GetSynonymSetItemResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
1457
1260
  export const GetSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1458
1261
  id: S.String,
1459
1262
  synonyms: GetSynonymSetItemResponseSynonymsList,
@@ -1465,39 +1268,28 @@ export const GetSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
1465
1268
  });
1466
1269
  export const GetSynonymSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1467
1270
  synonymSetName: S.String.pipe(T.Label()),
1468
- }).pipe(T.Http({
1469
- method: "GET",
1470
- uri: "/synonym_sets/{synonymSetName}/items",
1471
- code: 200,
1472
- }))).annotate({
1271
+ }).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}/items", code: 200 }))).annotate({
1473
1272
  identifier: "GetSynonymSetItemsRequest",
1474
1273
  });
1475
1274
  export const GetSynonymSetItemsResponseBodyList = /*@__PURE__*/ S.Array(SynonymItemSchema);
1476
1275
  export const GetSynonymSetItemsResponse = /*@__PURE__*/ S.suspend(() => GetSynonymSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1477
1276
  identifier: "GetSynonymSetItemsResponse",
1478
1277
  });
1479
- export const GetSynonymSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 }))).annotate({
1480
- identifier: "GetSynonymSetsRequest",
1481
- });
1278
+ export const GetSynonymSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 }))).annotate({ identifier: "GetSynonymSetsRequest" });
1482
1279
  export const SynonymSetSchemaItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
1483
1280
  export const SynonymSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1484
1281
  items: SynonymSetSchemaItemsList,
1485
1282
  name: S.String,
1486
- })).annotate({
1487
- identifier: "SynonymSetSchema",
1488
- });
1283
+ })).annotate({ identifier: "SynonymSetSchema" });
1489
1284
  export const GetSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(SynonymSetSchema);
1490
- export const GetSynonymSetsResponse = /*@__PURE__*/ S.suspend(() => GetSynonymSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1491
- identifier: "GetSynonymSetsResponse",
1492
- });
1285
+ export const GetSynonymSetsResponse = /*@__PURE__*/ S.suspend(() => GetSynonymSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "GetSynonymSetsResponse" });
1493
1286
  export const HealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 }))).annotate({ identifier: "HealthRequest" });
1494
1287
  export const HealthStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
1495
1288
  ok: S.Boolean,
1496
1289
  })).annotate({ identifier: "HealthStatus" });
1497
1290
  export const IndexAction = S.String;
1498
1291
  export const DirtyValues = S.String;
1499
- export const ImportDocumentsRequestImportDocumentsParameters =
1500
- /*@__PURE__*/ S.suspend(() => S.Struct({
1292
+ export const ImportDocumentsRequestImportDocumentsParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1501
1293
  batch_size: S.optional(S.Number),
1502
1294
  return_id: S.optional(S.Boolean),
1503
1295
  remote_embedding_batch_size: S.optional(S.Number),
@@ -1510,13 +1302,7 @@ export const ImportDocumentsRequestImportDocumentsParameters =
1510
1302
  export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1511
1303
  collectionName: S.String.pipe(T.Label()),
1512
1304
  importDocumentsParameters: S.optional(ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query())),
1513
- }).pipe(T.Http({
1514
- method: "POST",
1515
- uri: "/collections/{collectionName}/documents/import",
1516
- code: 200,
1517
- }))).annotate({
1518
- identifier: "ImportDocumentsRequest",
1519
- });
1305
+ }).pipe(T.Http({ method: "POST", uri: "/collections/{collectionName}/documents/import", code: 200 }))).annotate({ identifier: "ImportDocumentsRequest" });
1520
1306
  export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1521
1307
  identifier: "ImportDocumentsResponse",
1522
1308
  });
@@ -1529,25 +1315,16 @@ export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.S
1529
1315
  export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1530
1316
  identifier: "ImportStemmingDictionaryResponse",
1531
1317
  });
1532
- export const ListDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1318
+ export const IndexDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1533
1319
  collectionName: S.String.pipe(T.Label()),
1534
1320
  action: S.optional(IndexAction.pipe(T.Query())),
1535
1321
  dirty_values: S.optional(DirtyValues.pipe(T.Query())),
1536
- }).pipe(T.Http({
1537
- method: "POST",
1538
- uri: "/collections/{collectionName}/documents",
1539
- code: 200,
1540
- }))).annotate({
1541
- identifier: "ListDocumentRequest",
1542
- });
1543
- export const ListDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1544
- identifier: "ListDocumentResponse",
1545
- });
1322
+ }).pipe(T.Http({ method: "POST", uri: "/collections/{collectionName}/documents", code: 200 }))).annotate({ identifier: "IndexDocumentRequest" });
1323
+ export const IndexDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "IndexDocumentResponse" });
1546
1324
  export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }))).annotate({
1547
1325
  identifier: "ListStemmingDictionariesRequest",
1548
1326
  });
1549
- export const ListStemmingDictionariesResponseDictionariesList =
1550
- /*@__PURE__*/ S.Array(S.String);
1327
+ export const ListStemmingDictionariesResponseDictionariesList = /*@__PURE__*/ S.Array(S.String);
1551
1328
  export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1552
1329
  dictionaries: S.optional(ListStemmingDictionariesResponseDictionariesList),
1553
1330
  })).annotate({
@@ -1556,21 +1333,13 @@ export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.
1556
1333
  export const SearchCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1557
1334
  collectionName: S.String.pipe(T.Label()),
1558
1335
  searchParameters: SearchParameters.pipe(T.Query()),
1559
- }).pipe(T.Http({
1560
- method: "GET",
1561
- uri: "/collections/{collectionName}/documents/search",
1562
- code: 200,
1563
- }))).annotate({
1564
- identifier: "SearchCollectionRequest",
1565
- });
1336
+ }).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}/documents/search", code: 200 }))).annotate({ identifier: "SearchCollectionRequest" });
1566
1337
  export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1567
1338
  count: S.optional(S.Number),
1568
1339
  highlighted: S.optional(S.String),
1569
1340
  value: S.optional(S.String),
1570
1341
  parent: S.optional(S.Unknown),
1571
- })).annotate({
1572
- identifier: "FacetCountsCountsItem",
1573
- });
1342
+ })).annotate({ identifier: "FacetCountsCountsItem" });
1574
1343
  export const FacetCountsCountsList = /*@__PURE__*/ S.Array(FacetCountsCountsItem);
1575
1344
  export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
1576
1345
  max: S.optional(S.Number),
@@ -1578,9 +1347,7 @@ export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
1578
1347
  sum: S.optional(S.Number),
1579
1348
  total_values: S.optional(S.Number),
1580
1349
  avg: S.optional(S.Number),
1581
- })).annotate({
1582
- identifier: "FacetCountsStats",
1583
- });
1350
+ })).annotate({ identifier: "FacetCountsStats" });
1584
1351
  export const FacetCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
1585
1352
  counts: S.optional(FacetCountsCountsList),
1586
1353
  field_name: S.optional(S.String),
@@ -1601,9 +1368,7 @@ export const SearchHighlight = /*@__PURE__*/ S.suspend(() => S.Struct({
1601
1368
  values: S.optional(SearchHighlightValuesList),
1602
1369
  indices: S.optional(SearchHighlightIndicesList),
1603
1370
  matched_tokens: S.optional(SearchHighlightMatchedTokensList),
1604
- })).annotate({
1605
- identifier: "SearchHighlight",
1606
- });
1371
+ })).annotate({ identifier: "SearchHighlight" });
1607
1372
  export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(SearchHighlight);
1608
1373
  export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1609
1374
  export const SearchResultHitDocumentMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
@@ -1634,17 +1399,13 @@ export const SearchResultHit = /*@__PURE__*/ S.suspend(() => S.Struct({
1634
1399
  vector_distance: S.optional(S.Number),
1635
1400
  hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
1636
1401
  search_index: S.optional(S.Number),
1637
- })).annotate({
1638
- identifier: "SearchResultHit",
1639
- });
1402
+ })).annotate({ identifier: "SearchResultHit" });
1640
1403
  export const SearchGroupedHitHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
1641
1404
  export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() => S.Struct({
1642
1405
  found: S.optional(S.Number),
1643
1406
  group_key: SearchGroupedHitGroupKeyList,
1644
1407
  hits: SearchGroupedHitHitsList,
1645
- })).annotate({
1646
- identifier: "SearchGroupedHit",
1647
- });
1408
+ })).annotate({ identifier: "SearchGroupedHit" });
1648
1409
  export const SearchResultGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
1649
1410
  export const SearchResultHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
1650
1411
  export const SearchRequestParamsVoiceQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1658,19 +1419,14 @@ export const SearchRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
1658
1419
  q: S.String,
1659
1420
  per_page: S.Number,
1660
1421
  voice_query: S.optional(SearchRequestParamsVoiceQuery),
1661
- })).annotate({
1662
- identifier: "SearchRequestParams",
1663
- });
1664
- export const SearchResultConversationConversationHistoryList =
1665
- /*@__PURE__*/ S.Array(S.Unknown);
1422
+ })).annotate({ identifier: "SearchRequestParams" });
1423
+ export const SearchResultConversationConversationHistoryList = /*@__PURE__*/ S.Array(S.Unknown);
1666
1424
  export const SearchResultConversation = /*@__PURE__*/ S.suspend(() => S.Struct({
1667
1425
  answer: S.String,
1668
1426
  conversation_history: SearchResultConversationConversationHistoryList,
1669
1427
  conversation_id: S.String,
1670
1428
  query: S.String,
1671
- })).annotate({
1672
- identifier: "SearchResultConversation",
1673
- });
1429
+ })).annotate({ identifier: "SearchResultConversation" });
1674
1430
  export const SearchResultUnionRequestParamsList = /*@__PURE__*/ S.Array(SearchRequestParams);
1675
1431
  export const SearchResultMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1676
1432
  export const SearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1698,10 +1454,13 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1698
1454
  max_extra_prefix: S.optional(S.Number),
1699
1455
  max_extra_suffix: S.optional(S.Number),
1700
1456
  filter_by: S.optional(S.String),
1457
+ enable_lazy_filter: S.optional(S.Boolean),
1458
+ max_filter_by_candidates: S.optional(S.Number),
1701
1459
  sort_by: S.optional(S.String),
1702
1460
  facet_by: S.optional(S.String),
1703
1461
  max_facet_values: S.optional(S.Number),
1704
1462
  facet_query: S.optional(S.String),
1463
+ facet_query_num_typos: S.optional(S.Number),
1705
1464
  num_typos: S.optional(S.String),
1706
1465
  page: S.optional(S.Number),
1707
1466
  per_page: S.optional(S.Number),
@@ -1710,6 +1469,7 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1710
1469
  group_by: S.optional(S.String),
1711
1470
  group_limit: S.optional(S.Number),
1712
1471
  group_missing_values: S.optional(S.Boolean),
1472
+ group_max_candidates: S.optional(S.Number),
1713
1473
  include_fields: S.optional(S.String),
1714
1474
  exclude_fields: S.optional(S.String),
1715
1475
  highlight_full_fields: S.optional(S.String),
@@ -1725,11 +1485,13 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1725
1485
  enable_synonyms: S.optional(S.Boolean),
1726
1486
  enable_analytics: S.optional(S.Boolean),
1727
1487
  synonym_prefix: S.optional(S.Boolean),
1488
+ demote_synonym_match: S.optional(S.Boolean),
1728
1489
  synonym_num_typos: S.optional(S.Number),
1729
1490
  pinned_hits: S.optional(S.String),
1730
1491
  hidden_hits: S.optional(S.String),
1731
1492
  curation_tags: S.optional(S.String),
1732
1493
  highlight_fields: S.optional(S.String),
1494
+ rerank_hybrid_matches: S.optional(S.Boolean),
1733
1495
  pre_segmented_query: S.optional(S.Boolean),
1734
1496
  preset: S.optional(S.String),
1735
1497
  enable_curations: S.optional(S.Boolean),
@@ -1739,6 +1501,7 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1739
1501
  enable_typos_for_numerical_tokens: S.optional(S.Boolean),
1740
1502
  exhaustive_search: S.optional(S.Boolean),
1741
1503
  search_cutoff_ms: S.optional(S.Number),
1504
+ limit_hits: S.optional(S.Number),
1742
1505
  use_cache: S.optional(S.Boolean),
1743
1506
  cache_ttl: S.optional(S.Number),
1744
1507
  min_len_1typo: S.optional(S.Number),
@@ -1749,27 +1512,25 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1749
1512
  facet_strategy: S.optional(S.String),
1750
1513
  stopwords: S.optional(S.String),
1751
1514
  facet_return_parent: S.optional(S.String),
1515
+ facet_sample_percent: S.optional(S.Number),
1516
+ facet_sample_threshold: S.optional(S.Number),
1517
+ facet_sample_slope: S.optional(S.Number),
1752
1518
  voice_query: S.optional(S.String),
1753
1519
  conversation: S.optional(S.Boolean),
1754
1520
  conversation_model_id: S.optional(S.String),
1755
1521
  conversation_id: S.optional(S.String),
1756
1522
  validate_field_names: S.optional(S.Boolean),
1757
- })).annotate({
1758
- identifier: "MultiSearchParameters",
1759
- });
1523
+ })).annotate({ identifier: "MultiSearchParameters" });
1760
1524
  export const SearchMultiRequestSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
1761
1525
  export const SearchMultiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1762
1526
  multiSearchParameters: MultiSearchParameters.pipe(T.Query()),
1763
1527
  union: S.optional(S.Boolean),
1764
1528
  searches: SearchMultiRequestSearchesList,
1765
- }).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({
1766
- identifier: "SearchMultiRequest",
1767
- });
1529
+ }).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({ identifier: "SearchMultiRequest" });
1768
1530
  export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
1769
1531
  export const MultiSearchResultItemGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
1770
1532
  export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
1771
- export const MultiSearchResultItemUnionRequestParamsList =
1772
- /*@__PURE__*/ S.Array(SearchRequestParams);
1533
+ export const MultiSearchResultItemUnionRequestParamsList = /*@__PURE__*/ S.Array(SearchRequestParams);
1773
1534
  export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1774
1535
  export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1775
1536
  facet_counts: S.optional(MultiSearchResultItemFacetCountsList),
@@ -1787,21 +1548,15 @@ export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1787
1548
  metadata: S.optional(MultiSearchResultItemMetadataMap),
1788
1549
  code: S.optional(S.Number),
1789
1550
  error: S.optional(S.String),
1790
- })).annotate({
1791
- identifier: "MultiSearchResultItem",
1792
- });
1551
+ })).annotate({ identifier: "MultiSearchResultItem" });
1793
1552
  export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(MultiSearchResultItem);
1794
1553
  export const MultiSearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
1795
1554
  results: MultiSearchResultResultsList,
1796
1555
  conversation: S.optional(SearchResultConversation),
1797
- })).annotate({
1798
- identifier: "MultiSearchResult",
1799
- });
1556
+ })).annotate({ identifier: "MultiSearchResult" });
1800
1557
  export const TakeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1801
1558
  snapshot_path: S.String.pipe(T.Query()),
1802
- }).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 }))).annotate({
1803
- identifier: "TakeSnapshotRequest",
1804
- });
1559
+ }).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 }))).annotate({ identifier: "TakeSnapshotRequest" });
1805
1560
  export const ToggleSlowRequestLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1806
1561
  log_slow_requests_time_ms: S.Number.pipe(T.Body("log-slow-requests-time-ms")),
1807
1562
  }).pipe(T.Http({ method: "POST", uri: "/config", code: 200 }))).annotate({
@@ -1814,22 +1569,14 @@ export const UpdateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1814
1569
  fields: S.optional(UpdateCollectionRequestFieldsList),
1815
1570
  synonym_sets: S.optional(UpdateCollectionRequestSynonymSetsList),
1816
1571
  metadata: S.optional(S.Unknown),
1817
- }).pipe(T.Http({
1818
- method: "PATCH",
1819
- uri: "/collections/{collectionName}",
1820
- code: 200,
1821
- }))).annotate({
1822
- identifier: "UpdateCollectionRequest",
1823
- });
1572
+ }).pipe(T.Http({ method: "PATCH", uri: "/collections/{collectionName}", code: 200 }))).annotate({ identifier: "UpdateCollectionRequest" });
1824
1573
  export const CollectionUpdateSchemaFieldsList = /*@__PURE__*/ S.Array(Field);
1825
1574
  export const CollectionUpdateSchemaSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
1826
1575
  export const CollectionUpdateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
1827
1576
  fields: S.optional(CollectionUpdateSchemaFieldsList),
1828
1577
  synonym_sets: S.optional(CollectionUpdateSchemaSynonymSetsList),
1829
1578
  metadata: S.optional(S.Unknown),
1830
- })).annotate({
1831
- identifier: "CollectionUpdateSchema",
1832
- });
1579
+ })).annotate({ identifier: "CollectionUpdateSchema" });
1833
1580
  export const UpdateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1834
1581
  modelId: S.String.pipe(T.Label()),
1835
1582
  id: S.optional(S.String),
@@ -1841,11 +1588,7 @@ export const UpdateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.St
1841
1588
  ttl: S.optional(S.Number),
1842
1589
  max_bytes: S.optional(S.Number),
1843
1590
  vllm_url: S.optional(S.String),
1844
- }).pipe(T.Http({
1845
- method: "PUT",
1846
- uri: "/conversations/models/{modelId}",
1847
- code: 200,
1848
- }))).annotate({
1591
+ }).pipe(T.Http({ method: "PUT", uri: "/conversations/models/{modelId}", code: 200 }))).annotate({
1849
1592
  identifier: "UpdateConversationModelRequest",
1850
1593
  });
1851
1594
  export const UpdateConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1869,14 +1612,9 @@ export const UpdateDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1869
1612
  method: "PATCH",
1870
1613
  uri: "/collections/{collectionName}/documents/{documentId}",
1871
1614
  code: 200,
1872
- }))).annotate({
1873
- identifier: "UpdateDocumentRequest",
1874
- });
1875
- export const UpdateDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1876
- identifier: "UpdateDocumentResponse",
1877
- });
1878
- export const UpdateDocumentsRequestUpdateDocumentsParameters =
1879
- /*@__PURE__*/ S.suspend(() => S.Struct({
1615
+ }))).annotate({ identifier: "UpdateDocumentRequest" });
1616
+ export const UpdateDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "UpdateDocumentResponse" });
1617
+ export const UpdateDocumentsRequestUpdateDocumentsParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
1880
1618
  filter_by: S.optional(S.String),
1881
1619
  })).annotate({
1882
1620
  identifier: "UpdateDocumentsRequestUpdateDocumentsParameters",
@@ -1884,20 +1622,11 @@ export const UpdateDocumentsRequestUpdateDocumentsParameters =
1884
1622
  export const UpdateDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1885
1623
  collectionName: S.String.pipe(T.Label()),
1886
1624
  updateDocumentsParameters: S.optional(UpdateDocumentsRequestUpdateDocumentsParameters.pipe(T.Query())),
1887
- }).pipe(T.Http({
1888
- method: "PATCH",
1889
- uri: "/collections/{collectionName}/documents",
1890
- code: 200,
1891
- }))).annotate({
1892
- identifier: "UpdateDocumentsRequest",
1893
- });
1625
+ }).pipe(T.Http({ method: "PATCH", uri: "/collections/{collectionName}/documents", code: 200 }))).annotate({ identifier: "UpdateDocumentsRequest" });
1894
1626
  export const UpdateDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1895
1627
  num_updated: S.Number,
1896
- })).annotate({
1897
- identifier: "UpdateDocumentsResponse",
1898
- });
1899
- export const UpdateNLSearchModelRequestStopSequencesList =
1900
- /*@__PURE__*/ S.Array(S.String);
1628
+ })).annotate({ identifier: "UpdateDocumentsResponse" });
1629
+ export const UpdateNLSearchModelRequestStopSequencesList = /*@__PURE__*/ S.Array(S.String);
1901
1630
  export const UpdateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1902
1631
  modelId: S.String.pipe(T.Label()),
1903
1632
  model_name: S.optional(S.String),
@@ -1922,8 +1651,7 @@ export const UpdateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1922
1651
  }).pipe(T.Http({ method: "PUT", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
1923
1652
  identifier: "UpdateNLSearchModelRequest",
1924
1653
  });
1925
- export const UpdateNLSearchModelResponseStopSequencesList =
1926
- /*@__PURE__*/ S.Array(S.String);
1654
+ export const UpdateNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(S.String);
1927
1655
  export const UpdateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1928
1656
  model_name: S.optional(S.String),
1929
1657
  api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
@@ -1950,11 +1678,8 @@ export const UpdateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struc
1950
1678
  export const UpsertAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1951
1679
  aliasName: S.String.pipe(T.Label()),
1952
1680
  collection_name: S.String,
1953
- }).pipe(T.Http({ method: "PUT", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
1954
- identifier: "UpsertAliasRequest",
1955
- });
1956
- export const UpsertAnalyticsRuleRequestParamsMetaFieldsList =
1957
- /*@__PURE__*/ S.Array(S.String);
1681
+ }).pipe(T.Http({ method: "PUT", uri: "/aliases/{aliasName}", code: 200 }))).annotate({ identifier: "UpsertAliasRequest" });
1682
+ export const UpsertAnalyticsRuleRequestParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
1958
1683
  export const UpsertAnalyticsRuleRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
1959
1684
  destination_collection: S.optional(S.String),
1960
1685
  limit: S.optional(S.Number),
@@ -1974,8 +1699,7 @@ export const UpsertAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1974
1699
  }).pipe(T.Http({ method: "PUT", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
1975
1700
  identifier: "UpsertAnalyticsRuleRequest",
1976
1701
  });
1977
- export const UpsertAnalyticsRuleResponseParamsMetaFieldsList =
1978
- /*@__PURE__*/ S.Array(S.String);
1702
+ export const UpsertAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
1979
1703
  export const UpsertAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
1980
1704
  destination_collection: S.optional(S.String),
1981
1705
  limit: S.optional(S.Number),
@@ -2002,13 +1726,7 @@ export const UpsertCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2002
1726
  curationSetName: S.String.pipe(T.Label()),
2003
1727
  items: UpsertCurationSetRequestItemsList,
2004
1728
  description: S.optional(S.String),
2005
- }).pipe(T.Http({
2006
- method: "PUT",
2007
- uri: "/curation_sets/{curationSetName}",
2008
- code: 200,
2009
- }))).annotate({
2010
- identifier: "UpsertCurationSetRequest",
2011
- });
1729
+ }).pipe(T.Http({ method: "PUT", uri: "/curation_sets/{curationSetName}", code: 200 }))).annotate({ identifier: "UpsertCurationSetRequest" });
2012
1730
  export const UpsertCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
2013
1731
  export const UpsertCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2014
1732
  items: UpsertCurationSetResponseItemsList,
@@ -2035,11 +1753,7 @@ export const UpsertCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Stru
2035
1753
  effective_to_ts: S.optional(S.Number),
2036
1754
  stop_processing: S.optional(S.Boolean),
2037
1755
  id: S.optional(S.String),
2038
- }).pipe(T.Http({
2039
- method: "PUT",
2040
- uri: "/curation_sets/{curationSetName}/items/{itemId}",
2041
- code: 200,
2042
- }))).annotate({
1756
+ }).pipe(T.Http({ method: "PUT", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }))).annotate({
2043
1757
  identifier: "UpsertCurationSetItemRequest",
2044
1758
  });
2045
1759
  export const UpsertCurationSetItemResponseIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
@@ -2075,11 +1789,13 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2075
1789
  "max_extra_prefix",
2076
1790
  "max_extra_suffix",
2077
1791
  "filter_by",
1792
+ "enable_lazy_filter",
2078
1793
  "max_filter_by_candidates",
2079
1794
  "sort_by",
2080
1795
  "facet_by",
2081
1796
  "max_facet_values",
2082
1797
  "facet_query",
1798
+ "facet_query_num_typos",
2083
1799
  "num_typos",
2084
1800
  "page",
2085
1801
  "per_page",
@@ -2088,6 +1804,7 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2088
1804
  "group_by",
2089
1805
  "group_limit",
2090
1806
  "group_missing_values",
1807
+ "group_max_candidates",
2091
1808
  "include_fields",
2092
1809
  "exclude_fields",
2093
1810
  "highlight_full_fields",
@@ -2105,11 +1822,13 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2105
1822
  "filter_curated_hits",
2106
1823
  "enable_synonyms",
2107
1824
  "synonym_prefix",
1825
+ "demote_synonym_match",
2108
1826
  "synonym_num_typos",
2109
1827
  "pinned_hits",
2110
1828
  "hidden_hits",
2111
1829
  "curation_tags",
2112
1830
  "highlight_fields",
1831
+ "rerank_hybrid_matches",
2113
1832
  "split_join_tokens",
2114
1833
  "pre_segmented_query",
2115
1834
  "preset",
@@ -2121,6 +1840,7 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2121
1840
  "enable_typos_for_numerical_tokens",
2122
1841
  "exhaustive_search",
2123
1842
  "search_cutoff_ms",
1843
+ "limit_hits",
2124
1844
  "use_cache",
2125
1845
  "cache_ttl",
2126
1846
  "min_len_1typo",
@@ -2131,6 +1851,9 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2131
1851
  "facet_strategy",
2132
1852
  "stopwords",
2133
1853
  "facet_return_parent",
1854
+ "facet_sample_percent",
1855
+ "facet_sample_threshold",
1856
+ "facet_sample_slope",
2134
1857
  "voice_query",
2135
1858
  "conversation",
2136
1859
  "conversation_model_id",
@@ -2141,9 +1864,7 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCase
2141
1864
  export const UpsertPresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2142
1865
  presetId: S.String.pipe(T.Label()),
2143
1866
  value: UpsertPresetRequestValue,
2144
- }).pipe(T.Http({ method: "PUT", uri: "/presets/{presetId}", code: 200 }))).annotate({
2145
- identifier: "UpsertPresetRequest",
2146
- });
1867
+ }).pipe(T.Http({ method: "PUT", uri: "/presets/{presetId}", code: 200 }))).annotate({ identifier: "UpsertPresetRequest" });
2147
1868
  export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
2148
1869
  [
2149
1870
  "q",
@@ -2158,11 +1879,13 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2158
1879
  "max_extra_prefix",
2159
1880
  "max_extra_suffix",
2160
1881
  "filter_by",
1882
+ "enable_lazy_filter",
2161
1883
  "max_filter_by_candidates",
2162
1884
  "sort_by",
2163
1885
  "facet_by",
2164
1886
  "max_facet_values",
2165
1887
  "facet_query",
1888
+ "facet_query_num_typos",
2166
1889
  "num_typos",
2167
1890
  "page",
2168
1891
  "per_page",
@@ -2171,6 +1894,7 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2171
1894
  "group_by",
2172
1895
  "group_limit",
2173
1896
  "group_missing_values",
1897
+ "group_max_candidates",
2174
1898
  "include_fields",
2175
1899
  "exclude_fields",
2176
1900
  "highlight_full_fields",
@@ -2188,11 +1912,13 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2188
1912
  "filter_curated_hits",
2189
1913
  "enable_synonyms",
2190
1914
  "synonym_prefix",
1915
+ "demote_synonym_match",
2191
1916
  "synonym_num_typos",
2192
1917
  "pinned_hits",
2193
1918
  "hidden_hits",
2194
1919
  "curation_tags",
2195
1920
  "highlight_fields",
1921
+ "rerank_hybrid_matches",
2196
1922
  "split_join_tokens",
2197
1923
  "pre_segmented_query",
2198
1924
  "preset",
@@ -2204,6 +1930,7 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2204
1930
  "enable_typos_for_numerical_tokens",
2205
1931
  "exhaustive_search",
2206
1932
  "search_cutoff_ms",
1933
+ "limit_hits",
2207
1934
  "use_cache",
2208
1935
  "cache_ttl",
2209
1936
  "min_len_1typo",
@@ -2214,6 +1941,9 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2214
1941
  "facet_strategy",
2215
1942
  "stopwords",
2216
1943
  "facet_return_parent",
1944
+ "facet_sample_percent",
1945
+ "facet_sample_threshold",
1946
+ "facet_sample_slope",
2217
1947
  "voice_query",
2218
1948
  "conversation",
2219
1949
  "conversation_model_id",
@@ -2224,9 +1954,7 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCas
2224
1954
  export const UpsertPresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2225
1955
  value: UpsertPresetResponseValue,
2226
1956
  name: S.String,
2227
- })).annotate({
2228
- identifier: "UpsertPresetResponse",
2229
- });
1957
+ })).annotate({ identifier: "UpsertPresetResponse" });
2230
1958
  export const UpsertStopwordsSetRequestStopwordsList = /*@__PURE__*/ S.Array(S.String);
2231
1959
  export const UpsertStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2232
1960
  setId: S.String.pipe(T.Label()),
@@ -2239,19 +1967,14 @@ export const UpsertSynonymSetRequestItemsList = /*@__PURE__*/ S.Array(SynonymIte
2239
1967
  export const UpsertSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2240
1968
  synonymSetName: S.String.pipe(T.Label()),
2241
1969
  items: UpsertSynonymSetRequestItemsList,
2242
- }).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
2243
- identifier: "UpsertSynonymSetRequest",
2244
- });
1970
+ }).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({ identifier: "UpsertSynonymSetRequest" });
2245
1971
  export const UpsertSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
2246
1972
  export const UpsertSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2247
1973
  items: UpsertSynonymSetResponseItemsList,
2248
1974
  name: S.String,
2249
- })).annotate({
2250
- identifier: "UpsertSynonymSetResponse",
2251
- });
1975
+ })).annotate({ identifier: "UpsertSynonymSetResponse" });
2252
1976
  export const UpsertSynonymSetItemRequestSynonymsList = /*@__PURE__*/ S.Array(S.String);
2253
- export const UpsertSynonymSetItemRequestSymbolsToIndexList =
2254
- /*@__PURE__*/ S.Array(S.String);
1977
+ export const UpsertSynonymSetItemRequestSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
2255
1978
  export const UpsertSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2256
1979
  synonymSetName: S.String.pipe(T.Label()),
2257
1980
  itemId: S.String.pipe(T.Label()),
@@ -2259,16 +1982,11 @@ export const UpsertSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struc
2259
1982
  root: S.optional(S.String),
2260
1983
  locale: S.optional(S.String),
2261
1984
  symbols_to_index: S.optional(UpsertSynonymSetItemRequestSymbolsToIndexList),
2262
- }).pipe(T.Http({
2263
- method: "PUT",
2264
- uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
2265
- code: 200,
2266
- }))).annotate({
1985
+ }).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }))).annotate({
2267
1986
  identifier: "UpsertSynonymSetItemRequest",
2268
1987
  });
2269
1988
  export const UpsertSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
2270
- export const UpsertSynonymSetItemResponseSymbolsToIndexList =
2271
- /*@__PURE__*/ S.Array(S.String);
1989
+ export const UpsertSynonymSetItemResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
2272
1990
  export const UpsertSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2273
1991
  id: S.String,
2274
1992
  synonyms: UpsertSynonymSetItemResponseSynonymsList,
@@ -2752,9 +2470,9 @@ export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
2752
2470
  retry: Retry.Retry,
2753
2471
  }));
2754
2472
  /** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
2755
- export const listDocument = /*@__PURE__*/ API.make(() => ({
2756
- input: ListDocumentRequest,
2757
- output: ListDocumentResponse,
2473
+ export const indexDocument = /*@__PURE__*/ API.make(() => ({
2474
+ input: IndexDocumentRequest,
2475
+ output: IndexDocumentResponse,
2758
2476
  errors: [NotFound],
2759
2477
  protocol: TypesenseProtocol,
2760
2478
  retry: Retry.Retry,
@@ -2904,7 +2622,8 @@ export const upsertSynonymSetItem = /*@__PURE__*/ API.make(() => ({
2904
2622
  retry: Retry.Retry,
2905
2623
  }));
2906
2624
  /** 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. */
2907
- export const vote = /*@__PURE__*/ API.make(() => ({
2625
+ export const vote =
2626
+ /*@__PURE__*/ API.make(() => ({
2908
2627
  input: VoteRequest,
2909
2628
  output: SuccessStatus,
2910
2629
  errors: [],