@distilled.cloud/typesense 1.0.0-rc.13 → 1.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +2 -2
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/typesense.d.ts +65 -9
- package/lib/services/typesense.d.ts.map +1 -1
- package/lib/services/typesense.js +221 -502
- package/lib/services/typesense.js.map +1 -1
- package/package.json +12 -9
- package/src/credentials.ts +7 -9
- package/src/errors.ts +1 -2
- package/src/index.ts +1 -5
- package/src/protocol.ts +20 -29
- package/src/retry.ts +2 -8
- package/src/services/typesense.ts +435 -783
- package/lib/response-validation.test.d.ts +0 -6
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -33
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -51
|
@@ -1,14 +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
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
type TypesenseOpError,
|
|
9
|
-
type TypesenseOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
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, type TypesenseOpError, type TypesenseOpContext } from "../protocol.ts";
|
|
11
6
|
import * as Retry from "../retry.ts";
|
|
7
|
+
import * as T from "../traits.ts";
|
|
12
8
|
|
|
13
9
|
export type { TypesenseOpError, TypesenseOpContext };
|
|
14
10
|
|
|
@@ -41,12 +37,8 @@ export class NotFound
|
|
|
41
37
|
|
|
42
38
|
export interface ClearCacheRequest {}
|
|
43
39
|
export const ClearCacheRequest = /*@__PURE__*/ S.suspend(() =>
|
|
44
|
-
S.Struct({}).pipe(
|
|
45
|
-
|
|
46
|
-
),
|
|
47
|
-
).annotate({
|
|
48
|
-
identifier: "ClearCacheRequest",
|
|
49
|
-
}) as any as S.Schema<ClearCacheRequest>;
|
|
40
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/cache/clear", code: 200 })),
|
|
41
|
+
).annotate({ identifier: "ClearCacheRequest" }) as any as S.Schema<ClearCacheRequest>;
|
|
50
42
|
|
|
51
43
|
export interface SuccessStatus {
|
|
52
44
|
success: boolean;
|
|
@@ -59,12 +51,8 @@ export const SuccessStatus = /*@__PURE__*/ S.suspend(() =>
|
|
|
59
51
|
|
|
60
52
|
export interface CompactDbRequest {}
|
|
61
53
|
export const CompactDbRequest = /*@__PURE__*/ S.suspend(() =>
|
|
62
|
-
S.Struct({}).pipe(
|
|
63
|
-
|
|
64
|
-
),
|
|
65
|
-
).annotate({
|
|
66
|
-
identifier: "CompactDbRequest",
|
|
67
|
-
}) as any as S.Schema<CompactDbRequest>;
|
|
54
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/db/compact", code: 200 })),
|
|
55
|
+
).annotate({ identifier: "CompactDbRequest" }) as any as S.Schema<CompactDbRequest>;
|
|
68
56
|
|
|
69
57
|
export type CreateAnalyticsEventRequestDataDocIdsList = Array<string>;
|
|
70
58
|
export const CreateAnalyticsEventRequestDataDocIdsList = /*@__PURE__*/ S.Array(
|
|
@@ -120,11 +108,7 @@ export const AnalyticsEventCreateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
120
108
|
identifier: "AnalyticsEventCreateResponse",
|
|
121
109
|
}) as any as S.Schema<AnalyticsEventCreateResponse>;
|
|
122
110
|
|
|
123
|
-
export type AnalyticsRuleType =
|
|
124
|
-
| "popular_queries"
|
|
125
|
-
| "nohits_queries"
|
|
126
|
-
| "counter"
|
|
127
|
-
| "log";
|
|
111
|
+
export type AnalyticsRuleType = "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
128
112
|
export const AnalyticsRuleType = S.String;
|
|
129
113
|
|
|
130
114
|
export type AnalyticsRuleCreateParamsMetaFieldsList = Array<string>;
|
|
@@ -172,12 +156,9 @@ export const AnalyticsRuleCreate = /*@__PURE__*/ S.suspend(() =>
|
|
|
172
156
|
rule_tag: S.optional(S.String),
|
|
173
157
|
params: S.optional(AnalyticsRuleCreateParams),
|
|
174
158
|
}),
|
|
175
|
-
).annotate({
|
|
176
|
-
identifier: "AnalyticsRuleCreate",
|
|
177
|
-
}) as any as S.Schema<AnalyticsRuleCreate>;
|
|
159
|
+
).annotate({ identifier: "AnalyticsRuleCreate" }) as any as S.Schema<AnalyticsRuleCreate>;
|
|
178
160
|
|
|
179
|
-
export type CreateAnalyticsRuleRequestBodyCase1List =
|
|
180
|
-
Array<AnalyticsRuleCreate>;
|
|
161
|
+
export type CreateAnalyticsRuleRequestBodyCase1List = Array<AnalyticsRuleCreate>;
|
|
181
162
|
export const CreateAnalyticsRuleRequestBodyCase1List = /*@__PURE__*/ S.Array(
|
|
182
163
|
AnalyticsRuleCreate,
|
|
183
164
|
) as any as S.Schema<CreateAnalyticsRuleRequestBodyCase1List>;
|
|
@@ -186,10 +167,7 @@ export type CreateAnalyticsRuleRequestBody =
|
|
|
186
167
|
| AnalyticsRuleCreate
|
|
187
168
|
| CreateAnalyticsRuleRequestBodyCase1List;
|
|
188
169
|
export const CreateAnalyticsRuleRequestBody = /*@__PURE__*/ S.Unknown.pipe(
|
|
189
|
-
T.UnionCases([
|
|
190
|
-
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
191
|
-
[],
|
|
192
|
-
]),
|
|
170
|
+
T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], []]),
|
|
193
171
|
);
|
|
194
172
|
|
|
195
173
|
export interface CreateAnalyticsRuleRequest {
|
|
@@ -227,9 +205,7 @@ export const AnalyticsRuleParams = /*@__PURE__*/ S.suspend(() =>
|
|
|
227
205
|
counter_field: S.optional(S.String),
|
|
228
206
|
weight: S.optional(S.Number),
|
|
229
207
|
}),
|
|
230
|
-
).annotate({
|
|
231
|
-
identifier: "AnalyticsRuleParams",
|
|
232
|
-
}) as any as S.Schema<AnalyticsRuleParams>;
|
|
208
|
+
).annotate({ identifier: "AnalyticsRuleParams" }) as any as S.Schema<AnalyticsRuleParams>;
|
|
233
209
|
|
|
234
210
|
export interface AnalyticsRule {
|
|
235
211
|
name: string;
|
|
@@ -253,25 +229,20 @@ export const AnalyticsRule = /*@__PURE__*/ S.suspend(() =>
|
|
|
253
229
|
export interface CreateAnalyticsRuleResponseBodyCase1ItemCase1 {
|
|
254
230
|
error?: string;
|
|
255
231
|
}
|
|
256
|
-
export const CreateAnalyticsRuleResponseBodyCase1ItemCase1 =
|
|
257
|
-
|
|
258
|
-
S.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}) as any as S.Schema<CreateAnalyticsRuleResponseBodyCase1ItemCase1>;
|
|
232
|
+
export const CreateAnalyticsRuleResponseBodyCase1ItemCase1 = /*@__PURE__*/ S.suspend(() =>
|
|
233
|
+
S.Struct({
|
|
234
|
+
error: S.optional(S.String),
|
|
235
|
+
}),
|
|
236
|
+
).annotate({
|
|
237
|
+
identifier: "CreateAnalyticsRuleResponseBodyCase1ItemCase1",
|
|
238
|
+
}) as any as S.Schema<CreateAnalyticsRuleResponseBodyCase1ItemCase1>;
|
|
264
239
|
|
|
265
240
|
export type CreateAnalyticsRuleResponseBodyCase1Item =
|
|
266
241
|
| AnalyticsRule
|
|
267
242
|
| CreateAnalyticsRuleResponseBodyCase1ItemCase1;
|
|
268
|
-
export const CreateAnalyticsRuleResponseBodyCase1Item =
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
272
|
-
["error"],
|
|
273
|
-
]),
|
|
274
|
-
);
|
|
243
|
+
export const CreateAnalyticsRuleResponseBodyCase1Item = /*@__PURE__*/ S.Unknown.pipe(
|
|
244
|
+
T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], ["error"]]),
|
|
245
|
+
);
|
|
275
246
|
|
|
276
247
|
export type CreateAnalyticsRuleResponseBodyCase1List =
|
|
277
248
|
Array<CreateAnalyticsRuleResponseBodyCase1Item>;
|
|
@@ -283,10 +254,7 @@ export type CreateAnalyticsRuleResponseBody =
|
|
|
283
254
|
| AnalyticsRule
|
|
284
255
|
| CreateAnalyticsRuleResponseBodyCase1List;
|
|
285
256
|
export const CreateAnalyticsRuleResponseBody = /*@__PURE__*/ S.Unknown.pipe(
|
|
286
|
-
T.UnionCases([
|
|
287
|
-
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
288
|
-
[],
|
|
289
|
-
]),
|
|
257
|
+
T.UnionCases([["name", "type", "collection", "event_type", "rule_tag", "params"], []]),
|
|
290
258
|
);
|
|
291
259
|
|
|
292
260
|
export type CreateAnalyticsRuleResponse = CreateAnalyticsRuleResponseBody;
|
|
@@ -338,9 +306,7 @@ export const FieldEmbedModelConfig = /*@__PURE__*/ S.suspend(() =>
|
|
|
338
306
|
indexing_prefix: S.optional(S.String),
|
|
339
307
|
query_prefix: S.optional(S.String),
|
|
340
308
|
}),
|
|
341
|
-
).annotate({
|
|
342
|
-
identifier: "FieldEmbedModelConfig",
|
|
343
|
-
}) as any as S.Schema<FieldEmbedModelConfig>;
|
|
309
|
+
).annotate({ identifier: "FieldEmbedModelConfig" }) as any as S.Schema<FieldEmbedModelConfig>;
|
|
344
310
|
|
|
345
311
|
export interface FieldEmbed {
|
|
346
312
|
from: FieldEmbedFromList;
|
|
@@ -476,9 +442,7 @@ export const CreateCollectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
476
442
|
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
477
443
|
metadata: S.optional(S.Unknown),
|
|
478
444
|
}).pipe(T.Http({ method: "POST", uri: "/collections", code: 200 })),
|
|
479
|
-
).annotate({
|
|
480
|
-
identifier: "CreateCollectionRequest",
|
|
481
|
-
}) as any as S.Schema<CreateCollectionRequest>;
|
|
445
|
+
).annotate({ identifier: "CreateCollectionRequest" }) as any as S.Schema<CreateCollectionRequest>;
|
|
482
446
|
|
|
483
447
|
/** A list of fields for querying, filtering and faceting */
|
|
484
448
|
export type CreateCollectionResponseFieldsList = Array<Field>;
|
|
@@ -488,10 +452,9 @@ export const CreateCollectionResponseFieldsList = /*@__PURE__*/ S.Array(
|
|
|
488
452
|
|
|
489
453
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
490
454
|
export type CreateCollectionResponseTokenSeparatorsList = Array<string>;
|
|
491
|
-
export const CreateCollectionResponseTokenSeparatorsList =
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
) as any as S.Schema<CreateCollectionResponseTokenSeparatorsList>;
|
|
455
|
+
export const CreateCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(
|
|
456
|
+
S.String,
|
|
457
|
+
) as any as S.Schema<CreateCollectionResponseTokenSeparatorsList>;
|
|
495
458
|
|
|
496
459
|
/** List of synonym set names to associate with this collection */
|
|
497
460
|
export type CreateCollectionResponseSynonymSetsList = Array<string>;
|
|
@@ -542,9 +505,7 @@ export const CreateCollectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
542
505
|
num_documents: S.Number,
|
|
543
506
|
created_at: S.Number,
|
|
544
507
|
}),
|
|
545
|
-
).annotate({
|
|
546
|
-
identifier: "CreateCollectionResponse",
|
|
547
|
-
}) as any as S.Schema<CreateCollectionResponse>;
|
|
508
|
+
).annotate({ identifier: "CreateCollectionResponse" }) as any as S.Schema<CreateCollectionResponse>;
|
|
548
509
|
|
|
549
510
|
export interface CreateConversationModelRequest {
|
|
550
511
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
@@ -643,9 +604,7 @@ export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
643
604
|
collections: CreateKeyRequestCollectionsList,
|
|
644
605
|
expires_at: S.optional(S.Number),
|
|
645
606
|
}).pipe(T.Http({ method: "POST", uri: "/keys", code: 200 })),
|
|
646
|
-
).annotate({
|
|
647
|
-
identifier: "CreateKeyRequest",
|
|
648
|
-
}) as any as S.Schema<CreateKeyRequest>;
|
|
607
|
+
).annotate({ identifier: "CreateKeyRequest" }) as any as S.Schema<CreateKeyRequest>;
|
|
649
608
|
|
|
650
609
|
export type CreateKeyResponseActionsList = Array<string>;
|
|
651
610
|
export const CreateKeyResponseActionsList = /*@__PURE__*/ S.Array(
|
|
@@ -676,16 +635,13 @@ export const CreateKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
676
635
|
id: S.optional(S.Number),
|
|
677
636
|
value_prefix: S.optional(S.String),
|
|
678
637
|
}),
|
|
679
|
-
).annotate({
|
|
680
|
-
identifier: "CreateKeyResponse",
|
|
681
|
-
}) as any as S.Schema<CreateKeyResponse>;
|
|
638
|
+
).annotate({ identifier: "CreateKeyResponse" }) as any as S.Schema<CreateKeyResponse>;
|
|
682
639
|
|
|
683
640
|
/** Stop sequences for the NL model (Google-specific) */
|
|
684
641
|
export type CreateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
685
|
-
export const CreateNLSearchModelRequestStopSequencesList =
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
) as any as S.Schema<CreateNLSearchModelRequestStopSequencesList>;
|
|
642
|
+
export const CreateNLSearchModelRequestStopSequencesList = /*@__PURE__*/ S.Array(
|
|
643
|
+
S.String,
|
|
644
|
+
) as any as S.Schema<CreateNLSearchModelRequestStopSequencesList>;
|
|
689
645
|
|
|
690
646
|
export interface CreateNLSearchModelRequest {
|
|
691
647
|
/** Name of the NL model to use */
|
|
@@ -755,10 +711,9 @@ export const CreateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
755
711
|
|
|
756
712
|
/** Stop sequences for the NL model (Google-specific) */
|
|
757
713
|
export type CreateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
758
|
-
export const CreateNLSearchModelResponseStopSequencesList =
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
) as any as S.Schema<CreateNLSearchModelResponseStopSequencesList>;
|
|
714
|
+
export const CreateNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(
|
|
715
|
+
S.String,
|
|
716
|
+
) as any as S.Schema<CreateNLSearchModelResponseStopSequencesList>;
|
|
762
717
|
|
|
763
718
|
export interface CreateNLSearchModelResponse {
|
|
764
719
|
/** Name of the NL model to use */
|
|
@@ -848,9 +803,7 @@ export const DeleteAliasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
848
803
|
S.Struct({
|
|
849
804
|
aliasName: S.String.pipe(T.Label()),
|
|
850
805
|
}).pipe(T.Http({ method: "DELETE", uri: "/aliases/{aliasName}", code: 200 })),
|
|
851
|
-
).annotate({
|
|
852
|
-
identifier: "DeleteAliasRequest",
|
|
853
|
-
}) as any as S.Schema<DeleteAliasRequest>;
|
|
806
|
+
).annotate({ identifier: "DeleteAliasRequest" }) as any as S.Schema<DeleteAliasRequest>;
|
|
854
807
|
|
|
855
808
|
export interface CollectionAlias {
|
|
856
809
|
/** Name of the collection alias */
|
|
@@ -863,9 +816,7 @@ export const CollectionAlias = /*@__PURE__*/ S.suspend(() =>
|
|
|
863
816
|
name: S.String,
|
|
864
817
|
collection_name: S.String,
|
|
865
818
|
}),
|
|
866
|
-
).annotate({
|
|
867
|
-
identifier: "CollectionAlias",
|
|
868
|
-
}) as any as S.Schema<CollectionAlias>;
|
|
819
|
+
).annotate({ identifier: "CollectionAlias" }) as any as S.Schema<CollectionAlias>;
|
|
869
820
|
|
|
870
821
|
export interface DeleteAnalyticsRuleRequest {
|
|
871
822
|
/** The name of the analytics rule to delete */
|
|
@@ -874,18 +825,15 @@ export interface DeleteAnalyticsRuleRequest {
|
|
|
874
825
|
export const DeleteAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
875
826
|
S.Struct({
|
|
876
827
|
ruleName: S.String.pipe(T.Label()),
|
|
877
|
-
}).pipe(
|
|
878
|
-
T.Http({ method: "DELETE", uri: "/analytics/rules/{ruleName}", code: 200 }),
|
|
879
|
-
),
|
|
828
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/analytics/rules/{ruleName}", code: 200 })),
|
|
880
829
|
).annotate({
|
|
881
830
|
identifier: "DeleteAnalyticsRuleRequest",
|
|
882
831
|
}) as any as S.Schema<DeleteAnalyticsRuleRequest>;
|
|
883
832
|
|
|
884
833
|
export type DeleteAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
885
|
-
export const DeleteAnalyticsRuleResponseParamsMetaFieldsList =
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
) as any as S.Schema<DeleteAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
834
|
+
export const DeleteAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(
|
|
835
|
+
S.String,
|
|
836
|
+
) as any as S.Schema<DeleteAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
889
837
|
|
|
890
838
|
export interface DeleteAnalyticsRuleResponseParams {
|
|
891
839
|
destination_collection?: string;
|
|
@@ -938,16 +886,8 @@ export interface DeleteCollectionRequest {
|
|
|
938
886
|
export const DeleteCollectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
939
887
|
S.Struct({
|
|
940
888
|
collectionName: S.String.pipe(T.Label()),
|
|
941
|
-
}).pipe(
|
|
942
|
-
|
|
943
|
-
method: "DELETE",
|
|
944
|
-
uri: "/collections/{collectionName}",
|
|
945
|
-
code: 200,
|
|
946
|
-
}),
|
|
947
|
-
),
|
|
948
|
-
).annotate({
|
|
949
|
-
identifier: "DeleteCollectionRequest",
|
|
950
|
-
}) as any as S.Schema<DeleteCollectionRequest>;
|
|
889
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/collections/{collectionName}", code: 200 })),
|
|
890
|
+
).annotate({ identifier: "DeleteCollectionRequest" }) as any as S.Schema<DeleteCollectionRequest>;
|
|
951
891
|
|
|
952
892
|
/** A list of fields for querying, filtering and faceting */
|
|
953
893
|
export type DeleteCollectionResponseFieldsList = Array<Field>;
|
|
@@ -957,10 +897,9 @@ export const DeleteCollectionResponseFieldsList = /*@__PURE__*/ S.Array(
|
|
|
957
897
|
|
|
958
898
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
959
899
|
export type DeleteCollectionResponseTokenSeparatorsList = Array<string>;
|
|
960
|
-
export const DeleteCollectionResponseTokenSeparatorsList =
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
) as any as S.Schema<DeleteCollectionResponseTokenSeparatorsList>;
|
|
900
|
+
export const DeleteCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(
|
|
901
|
+
S.String,
|
|
902
|
+
) as any as S.Schema<DeleteCollectionResponseTokenSeparatorsList>;
|
|
964
903
|
|
|
965
904
|
/** List of synonym set names to associate with this collection */
|
|
966
905
|
export type DeleteCollectionResponseSynonymSetsList = Array<string>;
|
|
@@ -1011,9 +950,7 @@ export const DeleteCollectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1011
950
|
num_documents: S.Number,
|
|
1012
951
|
created_at: S.Number,
|
|
1013
952
|
}),
|
|
1014
|
-
).annotate({
|
|
1015
|
-
identifier: "DeleteCollectionResponse",
|
|
1016
|
-
}) as any as S.Schema<DeleteCollectionResponse>;
|
|
953
|
+
).annotate({ identifier: "DeleteCollectionResponse" }) as any as S.Schema<DeleteCollectionResponse>;
|
|
1017
954
|
|
|
1018
955
|
export interface DeleteConversationModelRequest {
|
|
1019
956
|
/** The id of the conversation model to delete */
|
|
@@ -1022,13 +959,7 @@ export interface DeleteConversationModelRequest {
|
|
|
1022
959
|
export const DeleteConversationModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1023
960
|
S.Struct({
|
|
1024
961
|
modelId: S.String.pipe(T.Label()),
|
|
1025
|
-
}).pipe(
|
|
1026
|
-
T.Http({
|
|
1027
|
-
method: "DELETE",
|
|
1028
|
-
uri: "/conversations/models/{modelId}",
|
|
1029
|
-
code: 200,
|
|
1030
|
-
}),
|
|
1031
|
-
),
|
|
962
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/conversations/models/{modelId}", code: 200 })),
|
|
1032
963
|
).annotate({
|
|
1033
964
|
identifier: "DeleteConversationModelRequest",
|
|
1034
965
|
}) as any as S.Schema<DeleteConversationModelRequest>;
|
|
@@ -1076,16 +1007,8 @@ export interface DeleteCurationSetRequest {
|
|
|
1076
1007
|
export const DeleteCurationSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1077
1008
|
S.Struct({
|
|
1078
1009
|
curationSetName: S.String.pipe(T.Label()),
|
|
1079
|
-
}).pipe(
|
|
1080
|
-
|
|
1081
|
-
method: "DELETE",
|
|
1082
|
-
uri: "/curation_sets/{curationSetName}",
|
|
1083
|
-
code: 200,
|
|
1084
|
-
}),
|
|
1085
|
-
),
|
|
1086
|
-
).annotate({
|
|
1087
|
-
identifier: "DeleteCurationSetRequest",
|
|
1088
|
-
}) as any as S.Schema<DeleteCurationSetRequest>;
|
|
1010
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/curation_sets/{curationSetName}", code: 200 })),
|
|
1011
|
+
).annotate({ identifier: "DeleteCurationSetRequest" }) as any as S.Schema<DeleteCurationSetRequest>;
|
|
1089
1012
|
|
|
1090
1013
|
export interface CurationSetDeleteSchema {
|
|
1091
1014
|
/** Name of the deleted curation set */
|
|
@@ -1095,9 +1018,7 @@ export const CurationSetDeleteSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1095
1018
|
S.Struct({
|
|
1096
1019
|
name: S.String,
|
|
1097
1020
|
}),
|
|
1098
|
-
).annotate({
|
|
1099
|
-
identifier: "CurationSetDeleteSchema",
|
|
1100
|
-
}) as any as S.Schema<CurationSetDeleteSchema>;
|
|
1021
|
+
).annotate({ identifier: "CurationSetDeleteSchema" }) as any as S.Schema<CurationSetDeleteSchema>;
|
|
1101
1022
|
|
|
1102
1023
|
export interface DeleteCurationSetItemRequest {
|
|
1103
1024
|
/** The name of the curation set */
|
|
@@ -1110,11 +1031,7 @@ export const DeleteCurationSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1110
1031
|
curationSetName: S.String.pipe(T.Label()),
|
|
1111
1032
|
itemId: S.String.pipe(T.Label()),
|
|
1112
1033
|
}).pipe(
|
|
1113
|
-
T.Http({
|
|
1114
|
-
method: "DELETE",
|
|
1115
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
1116
|
-
code: 200,
|
|
1117
|
-
}),
|
|
1034
|
+
T.Http({ method: "DELETE", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }),
|
|
1118
1035
|
),
|
|
1119
1036
|
).annotate({
|
|
1120
1037
|
identifier: "DeleteCurationSetItemRequest",
|
|
@@ -1128,9 +1045,7 @@ export const CurationItemDeleteSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1128
1045
|
S.Struct({
|
|
1129
1046
|
id: S.String,
|
|
1130
1047
|
}),
|
|
1131
|
-
).annotate({
|
|
1132
|
-
identifier: "CurationItemDeleteSchema",
|
|
1133
|
-
}) as any as S.Schema<CurationItemDeleteSchema>;
|
|
1048
|
+
).annotate({ identifier: "CurationItemDeleteSchema" }) as any as S.Schema<CurationItemDeleteSchema>;
|
|
1134
1049
|
|
|
1135
1050
|
export interface DeleteDocumentRequest {
|
|
1136
1051
|
/** The name of the collection to search for the document under */
|
|
@@ -1149,16 +1064,12 @@ export const DeleteDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1149
1064
|
code: 200,
|
|
1150
1065
|
}),
|
|
1151
1066
|
),
|
|
1152
|
-
).annotate({
|
|
1153
|
-
identifier: "DeleteDocumentRequest",
|
|
1154
|
-
}) as any as S.Schema<DeleteDocumentRequest>;
|
|
1067
|
+
).annotate({ identifier: "DeleteDocumentRequest" }) as any as S.Schema<DeleteDocumentRequest>;
|
|
1155
1068
|
|
|
1156
1069
|
export type DeleteDocumentResponse = unknown;
|
|
1157
1070
|
export const DeleteDocumentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1158
1071
|
S.Unknown.pipe(T.RawResponseRoot()),
|
|
1159
|
-
).annotate({
|
|
1160
|
-
identifier: "DeleteDocumentResponse",
|
|
1161
|
-
}) as any as S.Schema<DeleteDocumentResponse>;
|
|
1072
|
+
).annotate({ identifier: "DeleteDocumentResponse" }) as any as S.Schema<DeleteDocumentResponse>;
|
|
1162
1073
|
|
|
1163
1074
|
export interface DeleteDocumentsRequestDeleteDocumentsParameters {
|
|
1164
1075
|
filter_by: string;
|
|
@@ -1168,17 +1079,16 @@ export interface DeleteDocumentsRequestDeleteDocumentsParameters {
|
|
|
1168
1079
|
/** When true, removes all documents from the collection while preserving the collection and its schema. */
|
|
1169
1080
|
truncate?: boolean;
|
|
1170
1081
|
}
|
|
1171
|
-
export const DeleteDocumentsRequestDeleteDocumentsParameters =
|
|
1172
|
-
|
|
1173
|
-
S.
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}) as any as S.Schema<DeleteDocumentsRequestDeleteDocumentsParameters>;
|
|
1082
|
+
export const DeleteDocumentsRequestDeleteDocumentsParameters = /*@__PURE__*/ S.suspend(() =>
|
|
1083
|
+
S.Struct({
|
|
1084
|
+
filter_by: S.String,
|
|
1085
|
+
batch_size: S.optional(S.Number),
|
|
1086
|
+
ignore_not_found: S.optional(S.Boolean),
|
|
1087
|
+
truncate: S.optional(S.Boolean),
|
|
1088
|
+
}),
|
|
1089
|
+
).annotate({
|
|
1090
|
+
identifier: "DeleteDocumentsRequestDeleteDocumentsParameters",
|
|
1091
|
+
}) as any as S.Schema<DeleteDocumentsRequestDeleteDocumentsParameters>;
|
|
1182
1092
|
|
|
1183
1093
|
export interface DeleteDocumentsRequest {
|
|
1184
1094
|
/** The name of the collection to delete documents from */
|
|
@@ -1191,16 +1101,8 @@ export const DeleteDocumentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1191
1101
|
deleteDocumentsParameters: S.optional(
|
|
1192
1102
|
DeleteDocumentsRequestDeleteDocumentsParameters.pipe(T.Query()),
|
|
1193
1103
|
),
|
|
1194
|
-
}).pipe(
|
|
1195
|
-
|
|
1196
|
-
method: "DELETE",
|
|
1197
|
-
uri: "/collections/{collectionName}/documents",
|
|
1198
|
-
code: 200,
|
|
1199
|
-
}),
|
|
1200
|
-
),
|
|
1201
|
-
).annotate({
|
|
1202
|
-
identifier: "DeleteDocumentsRequest",
|
|
1203
|
-
}) as any as S.Schema<DeleteDocumentsRequest>;
|
|
1104
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/collections/{collectionName}/documents", code: 200 })),
|
|
1105
|
+
).annotate({ identifier: "DeleteDocumentsRequest" }) as any as S.Schema<DeleteDocumentsRequest>;
|
|
1204
1106
|
|
|
1205
1107
|
export interface DeleteDocumentsResponse {
|
|
1206
1108
|
num_deleted: number;
|
|
@@ -1209,9 +1111,7 @@ export const DeleteDocumentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1209
1111
|
S.Struct({
|
|
1210
1112
|
num_deleted: S.Number,
|
|
1211
1113
|
}),
|
|
1212
|
-
).annotate({
|
|
1213
|
-
identifier: "DeleteDocumentsResponse",
|
|
1214
|
-
}) as any as S.Schema<DeleteDocumentsResponse>;
|
|
1114
|
+
).annotate({ identifier: "DeleteDocumentsResponse" }) as any as S.Schema<DeleteDocumentsResponse>;
|
|
1215
1115
|
|
|
1216
1116
|
export interface DeleteKeyRequest {
|
|
1217
1117
|
/** The ID of the key to delete */
|
|
@@ -1221,9 +1121,7 @@ export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1221
1121
|
S.Struct({
|
|
1222
1122
|
keyId: S.Number.pipe(T.Label()),
|
|
1223
1123
|
}).pipe(T.Http({ method: "DELETE", uri: "/keys/{keyId}", code: 200 })),
|
|
1224
|
-
).annotate({
|
|
1225
|
-
identifier: "DeleteKeyRequest",
|
|
1226
|
-
}) as any as S.Schema<DeleteKeyRequest>;
|
|
1124
|
+
).annotate({ identifier: "DeleteKeyRequest" }) as any as S.Schema<DeleteKeyRequest>;
|
|
1227
1125
|
|
|
1228
1126
|
export interface ApiKeyDeleteResponse {
|
|
1229
1127
|
/** The id of the API key that was deleted */
|
|
@@ -1233,9 +1131,7 @@ export const ApiKeyDeleteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1233
1131
|
S.Struct({
|
|
1234
1132
|
id: S.Number,
|
|
1235
1133
|
}),
|
|
1236
|
-
).annotate({
|
|
1237
|
-
identifier: "ApiKeyDeleteResponse",
|
|
1238
|
-
}) as any as S.Schema<ApiKeyDeleteResponse>;
|
|
1134
|
+
).annotate({ identifier: "ApiKeyDeleteResponse" }) as any as S.Schema<ApiKeyDeleteResponse>;
|
|
1239
1135
|
|
|
1240
1136
|
export interface DeleteNLSearchModelRequest {
|
|
1241
1137
|
/** The ID of the NL search model to delete */
|
|
@@ -1244,9 +1140,7 @@ export interface DeleteNLSearchModelRequest {
|
|
|
1244
1140
|
export const DeleteNLSearchModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1245
1141
|
S.Struct({
|
|
1246
1142
|
modelId: S.String.pipe(T.Label()),
|
|
1247
|
-
}).pipe(
|
|
1248
|
-
T.Http({ method: "DELETE", uri: "/nl_search_models/{modelId}", code: 200 }),
|
|
1249
|
-
),
|
|
1143
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/nl_search_models/{modelId}", code: 200 })),
|
|
1250
1144
|
).annotate({
|
|
1251
1145
|
identifier: "DeleteNLSearchModelRequest",
|
|
1252
1146
|
}) as any as S.Schema<DeleteNLSearchModelRequest>;
|
|
@@ -1271,9 +1165,7 @@ export const DeletePresetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1271
1165
|
S.Struct({
|
|
1272
1166
|
presetId: S.String.pipe(T.Label()),
|
|
1273
1167
|
}).pipe(T.Http({ method: "DELETE", uri: "/presets/{presetId}", code: 200 })),
|
|
1274
|
-
).annotate({
|
|
1275
|
-
identifier: "DeletePresetRequest",
|
|
1276
|
-
}) as any as S.Schema<DeletePresetRequest>;
|
|
1168
|
+
).annotate({ identifier: "DeletePresetRequest" }) as any as S.Schema<DeletePresetRequest>;
|
|
1277
1169
|
|
|
1278
1170
|
export interface PresetDeleteSchema {
|
|
1279
1171
|
name: string;
|
|
@@ -1282,9 +1174,7 @@ export const PresetDeleteSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1282
1174
|
S.Struct({
|
|
1283
1175
|
name: S.String,
|
|
1284
1176
|
}),
|
|
1285
|
-
).annotate({
|
|
1286
|
-
identifier: "PresetDeleteSchema",
|
|
1287
|
-
}) as any as S.Schema<PresetDeleteSchema>;
|
|
1177
|
+
).annotate({ identifier: "PresetDeleteSchema" }) as any as S.Schema<PresetDeleteSchema>;
|
|
1288
1178
|
|
|
1289
1179
|
export interface DeleteStopwordsSetRequest {
|
|
1290
1180
|
/** The ID of the stopwords set to delete. */
|
|
@@ -1316,16 +1206,8 @@ export interface DeleteSynonymSetRequest {
|
|
|
1316
1206
|
export const DeleteSynonymSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1317
1207
|
S.Struct({
|
|
1318
1208
|
synonymSetName: S.String.pipe(T.Label()),
|
|
1319
|
-
}).pipe(
|
|
1320
|
-
|
|
1321
|
-
method: "DELETE",
|
|
1322
|
-
uri: "/synonym_sets/{synonymSetName}",
|
|
1323
|
-
code: 200,
|
|
1324
|
-
}),
|
|
1325
|
-
),
|
|
1326
|
-
).annotate({
|
|
1327
|
-
identifier: "DeleteSynonymSetRequest",
|
|
1328
|
-
}) as any as S.Schema<DeleteSynonymSetRequest>;
|
|
1209
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/synonym_sets/{synonymSetName}", code: 200 })),
|
|
1210
|
+
).annotate({ identifier: "DeleteSynonymSetRequest" }) as any as S.Schema<DeleteSynonymSetRequest>;
|
|
1329
1211
|
|
|
1330
1212
|
export interface SynonymSetDeleteSchema {
|
|
1331
1213
|
/** Name of the deleted synonym set */
|
|
@@ -1335,9 +1217,7 @@ export const SynonymSetDeleteSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1335
1217
|
S.Struct({
|
|
1336
1218
|
name: S.String,
|
|
1337
1219
|
}),
|
|
1338
|
-
).annotate({
|
|
1339
|
-
identifier: "SynonymSetDeleteSchema",
|
|
1340
|
-
}) as any as S.Schema<SynonymSetDeleteSchema>;
|
|
1220
|
+
).annotate({ identifier: "SynonymSetDeleteSchema" }) as any as S.Schema<SynonymSetDeleteSchema>;
|
|
1341
1221
|
|
|
1342
1222
|
export interface DeleteSynonymSetItemRequest {
|
|
1343
1223
|
/** The name of the synonym set */
|
|
@@ -1350,11 +1230,7 @@ export const DeleteSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1350
1230
|
synonymSetName: S.String.pipe(T.Label()),
|
|
1351
1231
|
itemId: S.String.pipe(T.Label()),
|
|
1352
1232
|
}).pipe(
|
|
1353
|
-
T.Http({
|
|
1354
|
-
method: "DELETE",
|
|
1355
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
1356
|
-
code: 200,
|
|
1357
|
-
}),
|
|
1233
|
+
T.Http({ method: "DELETE", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }),
|
|
1358
1234
|
),
|
|
1359
1235
|
).annotate({
|
|
1360
1236
|
identifier: "DeleteSynonymSetItemRequest",
|
|
@@ -1368,9 +1244,7 @@ export const SynonymItemDeleteSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1368
1244
|
S.Struct({
|
|
1369
1245
|
id: S.String,
|
|
1370
1246
|
}),
|
|
1371
|
-
).annotate({
|
|
1372
|
-
identifier: "SynonymItemDeleteSchema",
|
|
1373
|
-
}) as any as S.Schema<SynonymItemDeleteSchema>;
|
|
1247
|
+
).annotate({ identifier: "SynonymItemDeleteSchema" }) as any as S.Schema<SynonymItemDeleteSchema>;
|
|
1374
1248
|
|
|
1375
1249
|
export interface ExportDocumentsRequestExportDocumentsParameters {
|
|
1376
1250
|
/** Filter conditions for refining your search results. Separate multiple conditions with &&. */
|
|
@@ -1380,16 +1254,15 @@ export interface ExportDocumentsRequestExportDocumentsParameters {
|
|
|
1380
1254
|
/** List of fields from the document to exclude in the search result */
|
|
1381
1255
|
exclude_fields?: string;
|
|
1382
1256
|
}
|
|
1383
|
-
export const ExportDocumentsRequestExportDocumentsParameters =
|
|
1384
|
-
|
|
1385
|
-
S.
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
}) as any as S.Schema<ExportDocumentsRequestExportDocumentsParameters>;
|
|
1257
|
+
export const ExportDocumentsRequestExportDocumentsParameters = /*@__PURE__*/ S.suspend(() =>
|
|
1258
|
+
S.Struct({
|
|
1259
|
+
filter_by: S.optional(S.String),
|
|
1260
|
+
include_fields: S.optional(S.String),
|
|
1261
|
+
exclude_fields: S.optional(S.String),
|
|
1262
|
+
}),
|
|
1263
|
+
).annotate({
|
|
1264
|
+
identifier: "ExportDocumentsRequestExportDocumentsParameters",
|
|
1265
|
+
}) as any as S.Schema<ExportDocumentsRequestExportDocumentsParameters>;
|
|
1393
1266
|
|
|
1394
1267
|
export interface ExportDocumentsRequest {
|
|
1395
1268
|
/** The name of the collection */
|
|
@@ -1403,31 +1276,19 @@ export const ExportDocumentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1403
1276
|
ExportDocumentsRequestExportDocumentsParameters.pipe(T.Query()),
|
|
1404
1277
|
),
|
|
1405
1278
|
}).pipe(
|
|
1406
|
-
T.Http({
|
|
1407
|
-
method: "GET",
|
|
1408
|
-
uri: "/collections/{collectionName}/documents/export",
|
|
1409
|
-
code: 200,
|
|
1410
|
-
}),
|
|
1279
|
+
T.Http({ method: "GET", uri: "/collections/{collectionName}/documents/export", code: 200 }),
|
|
1411
1280
|
),
|
|
1412
|
-
).annotate({
|
|
1413
|
-
identifier: "ExportDocumentsRequest",
|
|
1414
|
-
}) as any as S.Schema<ExportDocumentsRequest>;
|
|
1281
|
+
).annotate({ identifier: "ExportDocumentsRequest" }) as any as S.Schema<ExportDocumentsRequest>;
|
|
1415
1282
|
|
|
1416
1283
|
export interface ExportDocumentsResponse {}
|
|
1417
|
-
export const ExportDocumentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1418
|
-
S.Struct({}),
|
|
1419
|
-
).annotate({
|
|
1284
|
+
export const ExportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1420
1285
|
identifier: "ExportDocumentsResponse",
|
|
1421
1286
|
}) as any as S.Schema<ExportDocumentsResponse>;
|
|
1422
1287
|
|
|
1423
1288
|
export interface FlushAnalyticsRequest {}
|
|
1424
1289
|
export const FlushAnalyticsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1425
|
-
S.Struct({}).pipe(
|
|
1426
|
-
|
|
1427
|
-
),
|
|
1428
|
-
).annotate({
|
|
1429
|
-
identifier: "FlushAnalyticsRequest",
|
|
1430
|
-
}) as any as S.Schema<FlushAnalyticsRequest>;
|
|
1290
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/analytics/flush", code: 200 })),
|
|
1291
|
+
).annotate({ identifier: "FlushAnalyticsRequest" }) as any as S.Schema<FlushAnalyticsRequest>;
|
|
1431
1292
|
|
|
1432
1293
|
export interface GetAliasRequest {
|
|
1433
1294
|
/** The name of the alias to retrieve */
|
|
@@ -1437,16 +1298,12 @@ export const GetAliasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1437
1298
|
S.Struct({
|
|
1438
1299
|
aliasName: S.String.pipe(T.Label()),
|
|
1439
1300
|
}).pipe(T.Http({ method: "GET", uri: "/aliases/{aliasName}", code: 200 })),
|
|
1440
|
-
).annotate({
|
|
1441
|
-
identifier: "GetAliasRequest",
|
|
1442
|
-
}) as any as S.Schema<GetAliasRequest>;
|
|
1301
|
+
).annotate({ identifier: "GetAliasRequest" }) as any as S.Schema<GetAliasRequest>;
|
|
1443
1302
|
|
|
1444
1303
|
export interface GetAliasesRequest {}
|
|
1445
1304
|
export const GetAliasesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1446
1305
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/aliases", code: 200 })),
|
|
1447
|
-
).annotate({
|
|
1448
|
-
identifier: "GetAliasesRequest",
|
|
1449
|
-
}) as any as S.Schema<GetAliasesRequest>;
|
|
1306
|
+
).annotate({ identifier: "GetAliasesRequest" }) as any as S.Schema<GetAliasesRequest>;
|
|
1450
1307
|
|
|
1451
1308
|
export type CollectionAliasesResponseAliasesList = Array<CollectionAlias>;
|
|
1452
1309
|
export const CollectionAliasesResponseAliasesList = /*@__PURE__*/ S.Array(
|
|
@@ -1466,9 +1323,7 @@ export const CollectionAliasesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1466
1323
|
|
|
1467
1324
|
export interface GetAllConversationModelsRequest {}
|
|
1468
1325
|
export const GetAllConversationModelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1469
|
-
S.Struct({}).pipe(
|
|
1470
|
-
T.Http({ method: "GET", uri: "/conversations/models", code: 200 }),
|
|
1471
|
-
),
|
|
1326
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/conversations/models", code: 200 })),
|
|
1472
1327
|
).annotate({
|
|
1473
1328
|
identifier: "GetAllConversationModelsRequest",
|
|
1474
1329
|
}) as any as S.Schema<GetAllConversationModelsRequest>;
|
|
@@ -1505,18 +1360,14 @@ export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1505
1360
|
max_bytes: S.Number,
|
|
1506
1361
|
vllm_url: S.optional(S.String),
|
|
1507
1362
|
}),
|
|
1508
|
-
).annotate({
|
|
1509
|
-
identifier: "ConversationModelSchema",
|
|
1510
|
-
}) as any as S.Schema<ConversationModelSchema>;
|
|
1363
|
+
).annotate({ identifier: "ConversationModelSchema" }) as any as S.Schema<ConversationModelSchema>;
|
|
1511
1364
|
|
|
1512
|
-
export type GetAllConversationModelsResponseBodyList =
|
|
1513
|
-
Array<ConversationModelSchema>;
|
|
1365
|
+
export type GetAllConversationModelsResponseBodyList = Array<ConversationModelSchema>;
|
|
1514
1366
|
export const GetAllConversationModelsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1515
1367
|
ConversationModelSchema,
|
|
1516
1368
|
) as any as S.Schema<GetAllConversationModelsResponseBodyList>;
|
|
1517
1369
|
|
|
1518
|
-
export type GetAllConversationModelsResponse =
|
|
1519
|
-
GetAllConversationModelsResponseBodyList;
|
|
1370
|
+
export type GetAllConversationModelsResponse = GetAllConversationModelsResponseBodyList;
|
|
1520
1371
|
export const GetAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1521
1372
|
GetAllConversationModelsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
1522
1373
|
).annotate({
|
|
@@ -1525,9 +1376,7 @@ export const GetAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1525
1376
|
|
|
1526
1377
|
export interface GetAllNLSearchModelsRequest {}
|
|
1527
1378
|
export const GetAllNLSearchModelsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1528
|
-
S.Struct({}).pipe(
|
|
1529
|
-
T.Http({ method: "GET", uri: "/nl_search_models", code: 200 }),
|
|
1530
|
-
),
|
|
1379
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/nl_search_models", code: 200 })),
|
|
1531
1380
|
).annotate({
|
|
1532
1381
|
identifier: "GetAllNLSearchModelsRequest",
|
|
1533
1382
|
}) as any as S.Schema<GetAllNLSearchModelsRequest>;
|
|
@@ -1600,9 +1449,7 @@ export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
1600
1449
|
account_id: S.optional(S.String),
|
|
1601
1450
|
id: S.String,
|
|
1602
1451
|
}),
|
|
1603
|
-
).annotate({
|
|
1604
|
-
identifier: "NLSearchModelSchema",
|
|
1605
|
-
}) as any as S.Schema<NLSearchModelSchema>;
|
|
1452
|
+
).annotate({ identifier: "NLSearchModelSchema" }) as any as S.Schema<NLSearchModelSchema>;
|
|
1606
1453
|
|
|
1607
1454
|
export type GetAllNLSearchModelsResponseBodyList = Array<NLSearchModelSchema>;
|
|
1608
1455
|
export const GetAllNLSearchModelsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -1619,9 +1466,7 @@ export const GetAllNLSearchModelsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1619
1466
|
export interface GetAllPresetsRequest {}
|
|
1620
1467
|
export const GetAllPresetsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1621
1468
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 })),
|
|
1622
|
-
).annotate({
|
|
1623
|
-
identifier: "GetAllPresetsRequest",
|
|
1624
|
-
}) as any as S.Schema<GetAllPresetsRequest>;
|
|
1469
|
+
).annotate({ identifier: "GetAllPresetsRequest" }) as any as S.Schema<GetAllPresetsRequest>;
|
|
1625
1470
|
|
|
1626
1471
|
/** Dictates the direction in which the words in the query must be dropped when the original words in the query do not appear in any document. Values: right_to_left (default), left_to_right, both_sides:3 A note on both_sides:3 - for queries up to 3 tokens (words) in length, this mode will drop tokens from both sides and exhaustively rank all matching results. If query length is greater than 3 words, Typesense will just fallback to default behavior of right_to_left */
|
|
1627
1472
|
export type DropTokensMode = "right_to_left" | "left_to_right" | "both_sides:3";
|
|
@@ -1652,6 +1497,8 @@ export interface SearchParameters {
|
|
|
1652
1497
|
max_extra_suffix?: number;
|
|
1653
1498
|
/** Filter conditions for refining your open api validator search results. Separate multiple conditions with &&. */
|
|
1654
1499
|
filter_by?: string;
|
|
1500
|
+
/** Applies the filtering operation incrementally / lazily. Set this to true when you are potentially filtering on large values but the tokens in the query are expected to match very few documents. Default: false */
|
|
1501
|
+
enable_lazy_filter?: boolean;
|
|
1655
1502
|
/** Controls the number of similar words that Typesense considers during fuzzy search on filter_by values. Useful for controlling prefix matches like company_name:Acm*. */
|
|
1656
1503
|
max_filter_by_candidates?: number;
|
|
1657
1504
|
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
@@ -1662,6 +1509,8 @@ export interface SearchParameters {
|
|
|
1662
1509
|
max_facet_values?: number;
|
|
1663
1510
|
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
1664
1511
|
facet_query?: string;
|
|
1512
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
1513
|
+
facet_query_num_typos?: number;
|
|
1665
1514
|
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1666
1515
|
num_typos?: string;
|
|
1667
1516
|
/** Results from this specific page number would be fetched. */
|
|
@@ -1678,6 +1527,8 @@ export interface SearchParameters {
|
|
|
1678
1527
|
group_limit?: number;
|
|
1679
1528
|
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
1680
1529
|
group_missing_values?: boolean;
|
|
1530
|
+
/** Overrides the behavior of group_by queries where found value is an approximation. When group_max_candidates is passed, found will be accurate up until its value. */
|
|
1531
|
+
group_max_candidates?: number;
|
|
1681
1532
|
/** List of fields from the document to include in the search result */
|
|
1682
1533
|
include_fields?: string;
|
|
1683
1534
|
/** List of fields from the document to exclude in the search result */
|
|
@@ -1711,6 +1562,8 @@ export interface SearchParameters {
|
|
|
1711
1562
|
enable_synonyms?: boolean;
|
|
1712
1563
|
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1713
1564
|
synonym_prefix?: boolean;
|
|
1565
|
+
/** When set to true, search results that matched via synonyms will be demoted in ranking, appearing below results that have a direct match. Default: false */
|
|
1566
|
+
demote_synonym_match?: boolean;
|
|
1714
1567
|
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1715
1568
|
synonym_num_typos?: number;
|
|
1716
1569
|
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
@@ -1721,6 +1574,8 @@ export interface SearchParameters {
|
|
|
1721
1574
|
curation_tags?: string;
|
|
1722
1575
|
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1723
1576
|
highlight_fields?: string;
|
|
1577
|
+
/** When true, computes both text match and vector distance scores for all matches in hybrid search. Documents found only through keyword search will get a vector distance score, and documents found only through vector search will get a text match score. */
|
|
1578
|
+
rerank_hybrid_matches?: boolean;
|
|
1724
1579
|
/** Treat space as typo: search for q=basket ball if q=basketball is not found or vice-versa. Splitting/joining of tokens will only be attempted if the original query produces no results. To always trigger this behavior, set value to `always``. To disable, set value to `off`. Default is `fallback`. */
|
|
1725
1580
|
split_join_tokens?: string;
|
|
1726
1581
|
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
@@ -1743,6 +1598,8 @@ export interface SearchParameters {
|
|
|
1743
1598
|
exhaustive_search?: boolean;
|
|
1744
1599
|
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
1745
1600
|
search_cutoff_ms?: number;
|
|
1601
|
+
/** Maximum number of hits that can be fetched from the collection. page * per_page should be less than this number for the search request to return results. */
|
|
1602
|
+
limit_hits?: number;
|
|
1746
1603
|
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1747
1604
|
use_cache?: boolean;
|
|
1748
1605
|
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
@@ -1763,6 +1620,12 @@ export interface SearchParameters {
|
|
|
1763
1620
|
stopwords?: string;
|
|
1764
1621
|
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1765
1622
|
facet_return_parent?: string;
|
|
1623
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
1624
|
+
facet_sample_percent?: number;
|
|
1625
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
1626
|
+
facet_sample_threshold?: number;
|
|
1627
|
+
/** Controls how steeply facet_sample_percent falls as the collection grows. facet_sample_threshold should be non-zero for facet_sample_slope to be effective. Default: 0. */
|
|
1628
|
+
facet_sample_slope?: number;
|
|
1766
1629
|
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1767
1630
|
voice_query?: string;
|
|
1768
1631
|
/** Enable conversational search. */
|
|
@@ -1786,11 +1649,13 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1786
1649
|
max_extra_prefix: S.optional(S.Number),
|
|
1787
1650
|
max_extra_suffix: S.optional(S.Number),
|
|
1788
1651
|
filter_by: S.optional(S.String),
|
|
1652
|
+
enable_lazy_filter: S.optional(S.Boolean),
|
|
1789
1653
|
max_filter_by_candidates: S.optional(S.Number),
|
|
1790
1654
|
sort_by: S.optional(S.String),
|
|
1791
1655
|
facet_by: S.optional(S.String),
|
|
1792
1656
|
max_facet_values: S.optional(S.Number),
|
|
1793
1657
|
facet_query: S.optional(S.String),
|
|
1658
|
+
facet_query_num_typos: S.optional(S.Number),
|
|
1794
1659
|
num_typos: S.optional(S.String),
|
|
1795
1660
|
page: S.optional(S.Number),
|
|
1796
1661
|
per_page: S.optional(S.Number),
|
|
@@ -1799,6 +1664,7 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1799
1664
|
group_by: S.optional(S.String),
|
|
1800
1665
|
group_limit: S.optional(S.Number),
|
|
1801
1666
|
group_missing_values: S.optional(S.Boolean),
|
|
1667
|
+
group_max_candidates: S.optional(S.Number),
|
|
1802
1668
|
include_fields: S.optional(S.String),
|
|
1803
1669
|
exclude_fields: S.optional(S.String),
|
|
1804
1670
|
highlight_full_fields: S.optional(S.String),
|
|
@@ -1816,11 +1682,13 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1816
1682
|
filter_curated_hits: S.optional(S.Boolean),
|
|
1817
1683
|
enable_synonyms: S.optional(S.Boolean),
|
|
1818
1684
|
synonym_prefix: S.optional(S.Boolean),
|
|
1685
|
+
demote_synonym_match: S.optional(S.Boolean),
|
|
1819
1686
|
synonym_num_typos: S.optional(S.Number),
|
|
1820
1687
|
pinned_hits: S.optional(S.String),
|
|
1821
1688
|
hidden_hits: S.optional(S.String),
|
|
1822
1689
|
curation_tags: S.optional(S.String),
|
|
1823
1690
|
highlight_fields: S.optional(S.String),
|
|
1691
|
+
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
1824
1692
|
split_join_tokens: S.optional(S.String),
|
|
1825
1693
|
pre_segmented_query: S.optional(S.Boolean),
|
|
1826
1694
|
preset: S.optional(S.String),
|
|
@@ -1832,6 +1700,7 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1832
1700
|
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
1833
1701
|
exhaustive_search: S.optional(S.Boolean),
|
|
1834
1702
|
search_cutoff_ms: S.optional(S.Number),
|
|
1703
|
+
limit_hits: S.optional(S.Number),
|
|
1835
1704
|
use_cache: S.optional(S.Boolean),
|
|
1836
1705
|
cache_ttl: S.optional(S.Number),
|
|
1837
1706
|
min_len_1typo: S.optional(S.Number),
|
|
@@ -1842,14 +1711,15 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1842
1711
|
facet_strategy: S.optional(S.String),
|
|
1843
1712
|
stopwords: S.optional(S.String),
|
|
1844
1713
|
facet_return_parent: S.optional(S.String),
|
|
1714
|
+
facet_sample_percent: S.optional(S.Number),
|
|
1715
|
+
facet_sample_threshold: S.optional(S.Number),
|
|
1716
|
+
facet_sample_slope: S.optional(S.Number),
|
|
1845
1717
|
voice_query: S.optional(S.String),
|
|
1846
1718
|
conversation: S.optional(S.Boolean),
|
|
1847
1719
|
conversation_model_id: S.optional(S.String),
|
|
1848
1720
|
conversation_id: S.optional(S.String),
|
|
1849
1721
|
}),
|
|
1850
|
-
).annotate({
|
|
1851
|
-
identifier: "SearchParameters",
|
|
1852
|
-
}) as any as S.Schema<SearchParameters>;
|
|
1722
|
+
).annotate({ identifier: "SearchParameters" }) as any as S.Schema<SearchParameters>;
|
|
1853
1723
|
|
|
1854
1724
|
export interface MultiSearchCollectionParameters {
|
|
1855
1725
|
/** The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by. */
|
|
@@ -1870,6 +1740,10 @@ export interface MultiSearchCollectionParameters {
|
|
|
1870
1740
|
max_extra_suffix?: number;
|
|
1871
1741
|
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
1872
1742
|
filter_by?: string;
|
|
1743
|
+
/** Applies the filtering operation incrementally / lazily. Set this to true when you are potentially filtering on large values but the tokens in the query are expected to match very few documents. Default: false */
|
|
1744
|
+
enable_lazy_filter?: boolean;
|
|
1745
|
+
/** Controls the number of similar words that Typesense considers during fuzzy search on filter_by values. Useful for controlling prefix matches like company_name:Acm*. */
|
|
1746
|
+
max_filter_by_candidates?: number;
|
|
1873
1747
|
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
1874
1748
|
sort_by?: string;
|
|
1875
1749
|
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
@@ -1878,6 +1752,8 @@ export interface MultiSearchCollectionParameters {
|
|
|
1878
1752
|
max_facet_values?: number;
|
|
1879
1753
|
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
1880
1754
|
facet_query?: string;
|
|
1755
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
1756
|
+
facet_query_num_typos?: number;
|
|
1881
1757
|
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1882
1758
|
num_typos?: string;
|
|
1883
1759
|
/** Results from this specific page number would be fetched. */
|
|
@@ -1894,6 +1770,8 @@ export interface MultiSearchCollectionParameters {
|
|
|
1894
1770
|
group_limit?: number;
|
|
1895
1771
|
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
1896
1772
|
group_missing_values?: boolean;
|
|
1773
|
+
/** Overrides the behavior of group_by queries where found value is an approximation. When group_max_candidates is passed, found will be accurate up until its value. */
|
|
1774
|
+
group_max_candidates?: number;
|
|
1897
1775
|
/** List of fields from the document to include in the search result */
|
|
1898
1776
|
include_fields?: string;
|
|
1899
1777
|
/** List of fields from the document to exclude in the search result */
|
|
@@ -1923,6 +1801,8 @@ export interface MultiSearchCollectionParameters {
|
|
|
1923
1801
|
enable_analytics?: boolean;
|
|
1924
1802
|
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1925
1803
|
synonym_prefix?: boolean;
|
|
1804
|
+
/** When set to true, search results that matched via synonyms will be demoted in ranking, appearing below results that have a direct match. Default: false */
|
|
1805
|
+
demote_synonym_match?: boolean;
|
|
1926
1806
|
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1927
1807
|
synonym_num_typos?: number;
|
|
1928
1808
|
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
@@ -1933,6 +1813,8 @@ export interface MultiSearchCollectionParameters {
|
|
|
1933
1813
|
curation_tags?: string;
|
|
1934
1814
|
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1935
1815
|
highlight_fields?: string;
|
|
1816
|
+
/** When true, computes both text match and vector distance scores for all matches in hybrid search. Documents found only through keyword search will get a vector distance score, and documents found only through vector search will get a text match score. */
|
|
1817
|
+
rerank_hybrid_matches?: boolean;
|
|
1936
1818
|
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
1937
1819
|
pre_segmented_query?: boolean;
|
|
1938
1820
|
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
@@ -1951,6 +1833,8 @@ export interface MultiSearchCollectionParameters {
|
|
|
1951
1833
|
exhaustive_search?: boolean;
|
|
1952
1834
|
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
1953
1835
|
search_cutoff_ms?: number;
|
|
1836
|
+
/** Maximum number of hits that can be fetched from the collection. page * per_page should be less than this number for the search request to return results. */
|
|
1837
|
+
limit_hits?: number;
|
|
1954
1838
|
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1955
1839
|
use_cache?: boolean;
|
|
1956
1840
|
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
@@ -1971,6 +1855,12 @@ export interface MultiSearchCollectionParameters {
|
|
|
1971
1855
|
stopwords?: string;
|
|
1972
1856
|
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1973
1857
|
facet_return_parent?: string;
|
|
1858
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
1859
|
+
facet_sample_percent?: number;
|
|
1860
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
1861
|
+
facet_sample_threshold?: number;
|
|
1862
|
+
/** Controls how steeply facet_sample_percent falls as the collection grows. facet_sample_threshold should be non-zero for facet_sample_slope to be effective. Default: 0. */
|
|
1863
|
+
facet_sample_slope?: number;
|
|
1974
1864
|
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1975
1865
|
voice_query?: string;
|
|
1976
1866
|
/** Enable conversational search. */
|
|
@@ -1985,8 +1875,6 @@ export interface MultiSearchCollectionParameters {
|
|
|
1985
1875
|
collection?: string;
|
|
1986
1876
|
/** A separate search API key for each search within a multi_search request */
|
|
1987
1877
|
x_typesense_api_key?: string;
|
|
1988
|
-
/** When true, computes both text match and vector distance scores for all matches in hybrid search. Documents found only through keyword search will get a vector distance score, and documents found only through vector search will get a text match score. */
|
|
1989
|
-
rerank_hybrid_matches?: boolean;
|
|
1990
1878
|
}
|
|
1991
1879
|
export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
1992
1880
|
S.Struct({
|
|
@@ -1999,10 +1887,13 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
1999
1887
|
max_extra_prefix: S.optional(S.Number),
|
|
2000
1888
|
max_extra_suffix: S.optional(S.Number),
|
|
2001
1889
|
filter_by: S.optional(S.String),
|
|
1890
|
+
enable_lazy_filter: S.optional(S.Boolean),
|
|
1891
|
+
max_filter_by_candidates: S.optional(S.Number),
|
|
2002
1892
|
sort_by: S.optional(S.String),
|
|
2003
1893
|
facet_by: S.optional(S.String),
|
|
2004
1894
|
max_facet_values: S.optional(S.Number),
|
|
2005
1895
|
facet_query: S.optional(S.String),
|
|
1896
|
+
facet_query_num_typos: S.optional(S.Number),
|
|
2006
1897
|
num_typos: S.optional(S.String),
|
|
2007
1898
|
page: S.optional(S.Number),
|
|
2008
1899
|
per_page: S.optional(S.Number),
|
|
@@ -2011,6 +1902,7 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
2011
1902
|
group_by: S.optional(S.String),
|
|
2012
1903
|
group_limit: S.optional(S.Number),
|
|
2013
1904
|
group_missing_values: S.optional(S.Boolean),
|
|
1905
|
+
group_max_candidates: S.optional(S.Number),
|
|
2014
1906
|
include_fields: S.optional(S.String),
|
|
2015
1907
|
exclude_fields: S.optional(S.String),
|
|
2016
1908
|
highlight_full_fields: S.optional(S.String),
|
|
@@ -2026,11 +1918,13 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
2026
1918
|
enable_synonyms: S.optional(S.Boolean),
|
|
2027
1919
|
enable_analytics: S.optional(S.Boolean),
|
|
2028
1920
|
synonym_prefix: S.optional(S.Boolean),
|
|
1921
|
+
demote_synonym_match: S.optional(S.Boolean),
|
|
2029
1922
|
synonym_num_typos: S.optional(S.Number),
|
|
2030
1923
|
pinned_hits: S.optional(S.String),
|
|
2031
1924
|
hidden_hits: S.optional(S.String),
|
|
2032
1925
|
curation_tags: S.optional(S.String),
|
|
2033
1926
|
highlight_fields: S.optional(S.String),
|
|
1927
|
+
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
2034
1928
|
pre_segmented_query: S.optional(S.Boolean),
|
|
2035
1929
|
preset: S.optional(S.String),
|
|
2036
1930
|
enable_curations: S.optional(S.Boolean),
|
|
@@ -2040,6 +1934,7 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
2040
1934
|
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
2041
1935
|
exhaustive_search: S.optional(S.Boolean),
|
|
2042
1936
|
search_cutoff_ms: S.optional(S.Number),
|
|
1937
|
+
limit_hits: S.optional(S.Number),
|
|
2043
1938
|
use_cache: S.optional(S.Boolean),
|
|
2044
1939
|
cache_ttl: S.optional(S.Number),
|
|
2045
1940
|
min_len_1typo: S.optional(S.Number),
|
|
@@ -2050,23 +1945,22 @@ export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
2050
1945
|
facet_strategy: S.optional(S.String),
|
|
2051
1946
|
stopwords: S.optional(S.String),
|
|
2052
1947
|
facet_return_parent: S.optional(S.String),
|
|
1948
|
+
facet_sample_percent: S.optional(S.Number),
|
|
1949
|
+
facet_sample_threshold: S.optional(S.Number),
|
|
1950
|
+
facet_sample_slope: S.optional(S.Number),
|
|
2053
1951
|
voice_query: S.optional(S.String),
|
|
2054
1952
|
conversation: S.optional(S.Boolean),
|
|
2055
1953
|
conversation_model_id: S.optional(S.String),
|
|
2056
1954
|
conversation_id: S.optional(S.String),
|
|
2057
1955
|
validate_field_names: S.optional(S.Boolean),
|
|
2058
1956
|
collection: S.optional(S.String),
|
|
2059
|
-
x_typesense_api_key: S.optional(
|
|
2060
|
-
S.String.pipe(T.Body("x-typesense-api-key")),
|
|
2061
|
-
),
|
|
2062
|
-
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
1957
|
+
x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
|
|
2063
1958
|
}),
|
|
2064
1959
|
).annotate({
|
|
2065
1960
|
identifier: "MultiSearchCollectionParameters",
|
|
2066
1961
|
}) as any as S.Schema<MultiSearchCollectionParameters>;
|
|
2067
1962
|
|
|
2068
|
-
export type MultiSearchSearchesParameterSearchesList =
|
|
2069
|
-
Array<MultiSearchCollectionParameters>;
|
|
1963
|
+
export type MultiSearchSearchesParameterSearchesList = Array<MultiSearchCollectionParameters>;
|
|
2070
1964
|
export const MultiSearchSearchesParameterSearchesList = /*@__PURE__*/ S.Array(
|
|
2071
1965
|
MultiSearchCollectionParameters,
|
|
2072
1966
|
) as any as S.Schema<MultiSearchSearchesParameterSearchesList>;
|
|
@@ -2101,11 +1995,13 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
2101
1995
|
"max_extra_prefix",
|
|
2102
1996
|
"max_extra_suffix",
|
|
2103
1997
|
"filter_by",
|
|
1998
|
+
"enable_lazy_filter",
|
|
2104
1999
|
"max_filter_by_candidates",
|
|
2105
2000
|
"sort_by",
|
|
2106
2001
|
"facet_by",
|
|
2107
2002
|
"max_facet_values",
|
|
2108
2003
|
"facet_query",
|
|
2004
|
+
"facet_query_num_typos",
|
|
2109
2005
|
"num_typos",
|
|
2110
2006
|
"page",
|
|
2111
2007
|
"per_page",
|
|
@@ -2114,6 +2010,7 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
2114
2010
|
"group_by",
|
|
2115
2011
|
"group_limit",
|
|
2116
2012
|
"group_missing_values",
|
|
2013
|
+
"group_max_candidates",
|
|
2117
2014
|
"include_fields",
|
|
2118
2015
|
"exclude_fields",
|
|
2119
2016
|
"highlight_full_fields",
|
|
@@ -2131,11 +2028,13 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
2131
2028
|
"filter_curated_hits",
|
|
2132
2029
|
"enable_synonyms",
|
|
2133
2030
|
"synonym_prefix",
|
|
2031
|
+
"demote_synonym_match",
|
|
2134
2032
|
"synonym_num_typos",
|
|
2135
2033
|
"pinned_hits",
|
|
2136
2034
|
"hidden_hits",
|
|
2137
2035
|
"curation_tags",
|
|
2138
2036
|
"highlight_fields",
|
|
2037
|
+
"rerank_hybrid_matches",
|
|
2139
2038
|
"split_join_tokens",
|
|
2140
2039
|
"pre_segmented_query",
|
|
2141
2040
|
"preset",
|
|
@@ -2147,6 +2046,7 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
2147
2046
|
"enable_typos_for_numerical_tokens",
|
|
2148
2047
|
"exhaustive_search",
|
|
2149
2048
|
"search_cutoff_ms",
|
|
2049
|
+
"limit_hits",
|
|
2150
2050
|
"use_cache",
|
|
2151
2051
|
"cache_ttl",
|
|
2152
2052
|
"min_len_1typo",
|
|
@@ -2157,6 +2057,9 @@ export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
2157
2057
|
"facet_strategy",
|
|
2158
2058
|
"stopwords",
|
|
2159
2059
|
"facet_return_parent",
|
|
2060
|
+
"facet_sample_percent",
|
|
2061
|
+
"facet_sample_threshold",
|
|
2062
|
+
"facet_sample_slope",
|
|
2160
2063
|
"voice_query",
|
|
2161
2064
|
"conversation",
|
|
2162
2065
|
"conversation_model_id",
|
|
@@ -2189,9 +2092,7 @@ export const PresetsRetrieveSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
2189
2092
|
S.Struct({
|
|
2190
2093
|
presets: PresetsRetrieveSchemaPresetsList,
|
|
2191
2094
|
}),
|
|
2192
|
-
).annotate({
|
|
2193
|
-
identifier: "PresetsRetrieveSchema",
|
|
2194
|
-
}) as any as S.Schema<PresetsRetrieveSchema>;
|
|
2095
|
+
).annotate({ identifier: "PresetsRetrieveSchema" }) as any as S.Schema<PresetsRetrieveSchema>;
|
|
2195
2096
|
|
|
2196
2097
|
export interface GetAnalyticsEventsRequest {
|
|
2197
2098
|
user_id: string;
|
|
@@ -2211,10 +2112,9 @@ export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2211
2112
|
}) as any as S.Schema<GetAnalyticsEventsRequest>;
|
|
2212
2113
|
|
|
2213
2114
|
export type AnalyticsEventsResponseEventsItemDocIdsList = Array<string>;
|
|
2214
|
-
export const AnalyticsEventsResponseEventsItemDocIdsList =
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
) as any as S.Schema<AnalyticsEventsResponseEventsItemDocIdsList>;
|
|
2115
|
+
export const AnalyticsEventsResponseEventsItemDocIdsList = /*@__PURE__*/ S.Array(
|
|
2116
|
+
S.String,
|
|
2117
|
+
) as any as S.Schema<AnalyticsEventsResponseEventsItemDocIdsList>;
|
|
2218
2118
|
|
|
2219
2119
|
export interface AnalyticsEventsResponseEventsItem {
|
|
2220
2120
|
name?: string;
|
|
@@ -2241,8 +2141,7 @@ export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
2241
2141
|
identifier: "AnalyticsEventsResponseEventsItem",
|
|
2242
2142
|
}) as any as S.Schema<AnalyticsEventsResponseEventsItem>;
|
|
2243
2143
|
|
|
2244
|
-
export type AnalyticsEventsResponseEventsList =
|
|
2245
|
-
Array<AnalyticsEventsResponseEventsItem>;
|
|
2144
|
+
export type AnalyticsEventsResponseEventsList = Array<AnalyticsEventsResponseEventsItem>;
|
|
2246
2145
|
export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(
|
|
2247
2146
|
AnalyticsEventsResponseEventsItem,
|
|
2248
2147
|
) as any as S.Schema<AnalyticsEventsResponseEventsList>;
|
|
@@ -2254,9 +2153,7 @@ export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2254
2153
|
S.Struct({
|
|
2255
2154
|
events: AnalyticsEventsResponseEventsList,
|
|
2256
2155
|
}),
|
|
2257
|
-
).annotate({
|
|
2258
|
-
identifier: "AnalyticsEventsResponse",
|
|
2259
|
-
}) as any as S.Schema<AnalyticsEventsResponse>;
|
|
2156
|
+
).annotate({ identifier: "AnalyticsEventsResponse" }) as any as S.Schema<AnalyticsEventsResponse>;
|
|
2260
2157
|
|
|
2261
2158
|
export interface GetAnalyticsRuleRequest {
|
|
2262
2159
|
/** The name of the analytics rule to retrieve */
|
|
@@ -2265,18 +2162,13 @@ export interface GetAnalyticsRuleRequest {
|
|
|
2265
2162
|
export const GetAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2266
2163
|
S.Struct({
|
|
2267
2164
|
ruleName: S.String.pipe(T.Label()),
|
|
2268
|
-
}).pipe(
|
|
2269
|
-
|
|
2270
|
-
),
|
|
2271
|
-
).annotate({
|
|
2272
|
-
identifier: "GetAnalyticsRuleRequest",
|
|
2273
|
-
}) as any as S.Schema<GetAnalyticsRuleRequest>;
|
|
2165
|
+
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 })),
|
|
2166
|
+
).annotate({ identifier: "GetAnalyticsRuleRequest" }) as any as S.Schema<GetAnalyticsRuleRequest>;
|
|
2274
2167
|
|
|
2275
2168
|
export type GetAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
2276
|
-
export const GetAnalyticsRuleResponseParamsMetaFieldsList =
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
) as any as S.Schema<GetAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
2169
|
+
export const GetAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(
|
|
2170
|
+
S.String,
|
|
2171
|
+
) as any as S.Schema<GetAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
2280
2172
|
|
|
2281
2173
|
export interface GetAnalyticsRuleResponseParams {
|
|
2282
2174
|
destination_collection?: string;
|
|
@@ -2318,9 +2210,7 @@ export const GetAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2318
2210
|
rule_tag: S.optional(S.String),
|
|
2319
2211
|
params: S.optional(GetAnalyticsRuleResponseParams),
|
|
2320
2212
|
}),
|
|
2321
|
-
).annotate({
|
|
2322
|
-
identifier: "GetAnalyticsRuleResponse",
|
|
2323
|
-
}) as any as S.Schema<GetAnalyticsRuleResponse>;
|
|
2213
|
+
).annotate({ identifier: "GetAnalyticsRuleResponse" }) as any as S.Schema<GetAnalyticsRuleResponse>;
|
|
2324
2214
|
|
|
2325
2215
|
export interface GetAnalyticsRulesRequest {
|
|
2326
2216
|
/** Filter rules by rule_tag */
|
|
@@ -2330,9 +2220,7 @@ export const GetAnalyticsRulesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2330
2220
|
S.Struct({
|
|
2331
2221
|
rule_tag: S.optional(S.String.pipe(T.Query())),
|
|
2332
2222
|
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 })),
|
|
2333
|
-
).annotate({
|
|
2334
|
-
identifier: "GetAnalyticsRulesRequest",
|
|
2335
|
-
}) as any as S.Schema<GetAnalyticsRulesRequest>;
|
|
2223
|
+
).annotate({ identifier: "GetAnalyticsRulesRequest" }) as any as S.Schema<GetAnalyticsRulesRequest>;
|
|
2336
2224
|
|
|
2337
2225
|
export type GetAnalyticsRulesResponseBodyList = Array<AnalyticsRule>;
|
|
2338
2226
|
export const GetAnalyticsRulesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -2348,9 +2236,7 @@ export const GetAnalyticsRulesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2348
2236
|
|
|
2349
2237
|
export interface GetAnalyticsStatusRequest {}
|
|
2350
2238
|
export const GetAnalyticsStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2351
|
-
S.Struct({}).pipe(
|
|
2352
|
-
T.Http({ method: "GET", uri: "/analytics/status", code: 200 }),
|
|
2353
|
-
),
|
|
2239
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/analytics/status", code: 200 })),
|
|
2354
2240
|
).annotate({
|
|
2355
2241
|
identifier: "GetAnalyticsStatusRequest",
|
|
2356
2242
|
}) as any as S.Schema<GetAnalyticsStatusRequest>;
|
|
@@ -2374,16 +2260,12 @@ export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() =>
|
|
|
2374
2260
|
doc_log_events: S.optional(S.Number),
|
|
2375
2261
|
doc_counter_events: S.optional(S.Number),
|
|
2376
2262
|
}),
|
|
2377
|
-
).annotate({
|
|
2378
|
-
identifier: "AnalyticsStatus",
|
|
2379
|
-
}) as any as S.Schema<AnalyticsStatus>;
|
|
2263
|
+
).annotate({ identifier: "AnalyticsStatus" }) as any as S.Schema<AnalyticsStatus>;
|
|
2380
2264
|
|
|
2381
2265
|
export interface GetAPIStatsRequest {}
|
|
2382
2266
|
export const GetAPIStatsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2383
2267
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 })),
|
|
2384
|
-
).annotate({
|
|
2385
|
-
identifier: "GetAPIStatsRequest",
|
|
2386
|
-
}) as any as S.Schema<GetAPIStatsRequest>;
|
|
2268
|
+
).annotate({ identifier: "GetAPIStatsRequest" }) as any as S.Schema<GetAPIStatsRequest>;
|
|
2387
2269
|
|
|
2388
2270
|
export interface APIStatsResponse {
|
|
2389
2271
|
delete_latency_ms?: number;
|
|
@@ -2416,9 +2298,7 @@ export const APIStatsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2416
2298
|
write_latency_ms: S.optional(S.Number),
|
|
2417
2299
|
write_requests_per_second: S.optional(S.Number),
|
|
2418
2300
|
}),
|
|
2419
|
-
).annotate({
|
|
2420
|
-
identifier: "APIStatsResponse",
|
|
2421
|
-
}) as any as S.Schema<APIStatsResponse>;
|
|
2301
|
+
).annotate({ identifier: "APIStatsResponse" }) as any as S.Schema<APIStatsResponse>;
|
|
2422
2302
|
|
|
2423
2303
|
export interface GetCollectionRequest {
|
|
2424
2304
|
/** The name of the collection to retrieve */
|
|
@@ -2427,12 +2307,8 @@ export interface GetCollectionRequest {
|
|
|
2427
2307
|
export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2428
2308
|
S.Struct({
|
|
2429
2309
|
collectionName: S.String.pipe(T.Label()),
|
|
2430
|
-
}).pipe(
|
|
2431
|
-
|
|
2432
|
-
),
|
|
2433
|
-
).annotate({
|
|
2434
|
-
identifier: "GetCollectionRequest",
|
|
2435
|
-
}) as any as S.Schema<GetCollectionRequest>;
|
|
2310
|
+
}).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 })),
|
|
2311
|
+
).annotate({ identifier: "GetCollectionRequest" }) as any as S.Schema<GetCollectionRequest>;
|
|
2436
2312
|
|
|
2437
2313
|
/** A list of fields for querying, filtering and faceting */
|
|
2438
2314
|
export type GetCollectionResponseFieldsList = Array<Field>;
|
|
@@ -2495,9 +2371,7 @@ export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2495
2371
|
num_documents: S.Number,
|
|
2496
2372
|
created_at: S.Number,
|
|
2497
2373
|
}),
|
|
2498
|
-
).annotate({
|
|
2499
|
-
identifier: "GetCollectionResponse",
|
|
2500
|
-
}) as any as S.Schema<GetCollectionResponse>;
|
|
2374
|
+
).annotate({ identifier: "GetCollectionResponse" }) as any as S.Schema<GetCollectionResponse>;
|
|
2501
2375
|
|
|
2502
2376
|
export interface GetCollectionsRequestGetCollectionsParameters {
|
|
2503
2377
|
/** Comma-separated list of fields from the collection to exclude from the response */
|
|
@@ -2507,16 +2381,15 @@ export interface GetCollectionsRequestGetCollectionsParameters {
|
|
|
2507
2381
|
/** Identifies the starting point to return collections when paginating. */
|
|
2508
2382
|
offset?: number;
|
|
2509
2383
|
}
|
|
2510
|
-
export const GetCollectionsRequestGetCollectionsParameters =
|
|
2511
|
-
|
|
2512
|
-
S.
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
}) as any as S.Schema<GetCollectionsRequestGetCollectionsParameters>;
|
|
2384
|
+
export const GetCollectionsRequestGetCollectionsParameters = /*@__PURE__*/ S.suspend(() =>
|
|
2385
|
+
S.Struct({
|
|
2386
|
+
exclude_fields: S.optional(S.String),
|
|
2387
|
+
limit: S.optional(S.Number),
|
|
2388
|
+
offset: S.optional(S.Number),
|
|
2389
|
+
}),
|
|
2390
|
+
).annotate({
|
|
2391
|
+
identifier: "GetCollectionsRequestGetCollectionsParameters",
|
|
2392
|
+
}) as any as S.Schema<GetCollectionsRequestGetCollectionsParameters>;
|
|
2520
2393
|
|
|
2521
2394
|
export interface GetCollectionsRequest {
|
|
2522
2395
|
getCollectionsParameters?: GetCollectionsRequestGetCollectionsParameters;
|
|
@@ -2527,9 +2400,7 @@ export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2527
2400
|
GetCollectionsRequestGetCollectionsParameters.pipe(T.Query()),
|
|
2528
2401
|
),
|
|
2529
2402
|
}).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 })),
|
|
2530
|
-
).annotate({
|
|
2531
|
-
identifier: "GetCollectionsRequest",
|
|
2532
|
-
}) as any as S.Schema<GetCollectionsRequest>;
|
|
2403
|
+
).annotate({ identifier: "GetCollectionsRequest" }) as any as S.Schema<GetCollectionsRequest>;
|
|
2533
2404
|
|
|
2534
2405
|
/** A list of fields for querying, filtering and faceting */
|
|
2535
2406
|
export type CollectionResponseFieldsList = Array<Field>;
|
|
@@ -2592,9 +2463,7 @@ export const CollectionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2592
2463
|
num_documents: S.Number,
|
|
2593
2464
|
created_at: S.Number,
|
|
2594
2465
|
}),
|
|
2595
|
-
).annotate({
|
|
2596
|
-
identifier: "CollectionResponse",
|
|
2597
|
-
}) as any as S.Schema<CollectionResponse>;
|
|
2466
|
+
).annotate({ identifier: "CollectionResponse" }) as any as S.Schema<CollectionResponse>;
|
|
2598
2467
|
|
|
2599
2468
|
export type GetCollectionsResponseBodyList = Array<CollectionResponse>;
|
|
2600
2469
|
export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -2604,9 +2473,7 @@ export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
|
2604
2473
|
export type GetCollectionsResponse = GetCollectionsResponseBodyList;
|
|
2605
2474
|
export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2606
2475
|
GetCollectionsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
2607
|
-
).annotate({
|
|
2608
|
-
identifier: "GetCollectionsResponse",
|
|
2609
|
-
}) as any as S.Schema<GetCollectionsResponse>;
|
|
2476
|
+
).annotate({ identifier: "GetCollectionsResponse" }) as any as S.Schema<GetCollectionsResponse>;
|
|
2610
2477
|
|
|
2611
2478
|
export interface GetConversationModelRequest {
|
|
2612
2479
|
/** The id of the conversation model to retrieve */
|
|
@@ -2615,13 +2482,7 @@ export interface GetConversationModelRequest {
|
|
|
2615
2482
|
export const GetConversationModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2616
2483
|
S.Struct({
|
|
2617
2484
|
modelId: S.String.pipe(T.Label()),
|
|
2618
|
-
}).pipe(
|
|
2619
|
-
T.Http({
|
|
2620
|
-
method: "GET",
|
|
2621
|
-
uri: "/conversations/models/{modelId}",
|
|
2622
|
-
code: 200,
|
|
2623
|
-
}),
|
|
2624
|
-
),
|
|
2485
|
+
}).pipe(T.Http({ method: "GET", uri: "/conversations/models/{modelId}", code: 200 })),
|
|
2625
2486
|
).annotate({
|
|
2626
2487
|
identifier: "GetConversationModelRequest",
|
|
2627
2488
|
}) as any as S.Schema<GetConversationModelRequest>;
|
|
@@ -2669,16 +2530,8 @@ export interface GetCurationSetRequest {
|
|
|
2669
2530
|
export const GetCurationSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2670
2531
|
S.Struct({
|
|
2671
2532
|
curationSetName: S.String.pipe(T.Label()),
|
|
2672
|
-
}).pipe(
|
|
2673
|
-
|
|
2674
|
-
method: "GET",
|
|
2675
|
-
uri: "/curation_sets/{curationSetName}",
|
|
2676
|
-
code: 200,
|
|
2677
|
-
}),
|
|
2678
|
-
),
|
|
2679
|
-
).annotate({
|
|
2680
|
-
identifier: "GetCurationSetRequest",
|
|
2681
|
-
}) as any as S.Schema<GetCurationSetRequest>;
|
|
2533
|
+
}).pipe(T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}", code: 200 })),
|
|
2534
|
+
).annotate({ identifier: "GetCurationSetRequest" }) as any as S.Schema<GetCurationSetRequest>;
|
|
2682
2535
|
|
|
2683
2536
|
/** List of tag values to associate with this curation rule. */
|
|
2684
2537
|
export type CurationRuleTagsList = Array<string>;
|
|
@@ -2720,9 +2573,7 @@ export const CurationInclude = /*@__PURE__*/ S.suspend(() =>
|
|
|
2720
2573
|
id: S.String,
|
|
2721
2574
|
position: S.Number,
|
|
2722
2575
|
}),
|
|
2723
|
-
).annotate({
|
|
2724
|
-
identifier: "CurationInclude",
|
|
2725
|
-
}) as any as S.Schema<CurationInclude>;
|
|
2576
|
+
).annotate({ identifier: "CurationInclude" }) as any as S.Schema<CurationInclude>;
|
|
2726
2577
|
|
|
2727
2578
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2728
2579
|
export type CurationItemCreateSchemaIncludesList = Array<CurationInclude>;
|
|
@@ -2738,9 +2589,7 @@ export const CurationExclude = /*@__PURE__*/ S.suspend(() =>
|
|
|
2738
2589
|
S.Struct({
|
|
2739
2590
|
id: S.String,
|
|
2740
2591
|
}),
|
|
2741
|
-
).annotate({
|
|
2742
|
-
identifier: "CurationExclude",
|
|
2743
|
-
}) as any as S.Schema<CurationExclude>;
|
|
2592
|
+
).annotate({ identifier: "CurationExclude" }) as any as S.Schema<CurationExclude>;
|
|
2744
2593
|
|
|
2745
2594
|
/** List of document `id`s that should be excluded from the search results. */
|
|
2746
2595
|
export type CurationItemCreateSchemaExcludesList = Array<CurationExclude>;
|
|
@@ -2791,9 +2640,7 @@ export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
2791
2640
|
stop_processing: S.optional(S.Boolean),
|
|
2792
2641
|
id: S.optional(S.String),
|
|
2793
2642
|
}),
|
|
2794
|
-
).annotate({
|
|
2795
|
-
identifier: "CurationItemCreateSchema",
|
|
2796
|
-
}) as any as S.Schema<CurationItemCreateSchema>;
|
|
2643
|
+
).annotate({ identifier: "CurationItemCreateSchema" }) as any as S.Schema<CurationItemCreateSchema>;
|
|
2797
2644
|
|
|
2798
2645
|
/** Array of curation items */
|
|
2799
2646
|
export type GetCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
@@ -2814,9 +2661,7 @@ export const GetCurationSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2814
2661
|
description: S.optional(S.String),
|
|
2815
2662
|
name: S.String,
|
|
2816
2663
|
}),
|
|
2817
|
-
).annotate({
|
|
2818
|
-
identifier: "GetCurationSetResponse",
|
|
2819
|
-
}) as any as S.Schema<GetCurationSetResponse>;
|
|
2664
|
+
).annotate({ identifier: "GetCurationSetResponse" }) as any as S.Schema<GetCurationSetResponse>;
|
|
2820
2665
|
|
|
2821
2666
|
export interface GetCurationSetItemRequest {
|
|
2822
2667
|
/** The name of the curation set */
|
|
@@ -2829,11 +2674,7 @@ export const GetCurationSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2829
2674
|
curationSetName: S.String.pipe(T.Label()),
|
|
2830
2675
|
itemId: S.String.pipe(T.Label()),
|
|
2831
2676
|
}).pipe(
|
|
2832
|
-
T.Http({
|
|
2833
|
-
method: "GET",
|
|
2834
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
2835
|
-
code: 200,
|
|
2836
|
-
}),
|
|
2677
|
+
T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }),
|
|
2837
2678
|
),
|
|
2838
2679
|
).annotate({
|
|
2839
2680
|
identifier: "GetCurationSetItemRequest",
|
|
@@ -2905,13 +2746,7 @@ export interface GetCurationSetItemsRequest {
|
|
|
2905
2746
|
export const GetCurationSetItemsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2906
2747
|
S.Struct({
|
|
2907
2748
|
curationSetName: S.String.pipe(T.Label()),
|
|
2908
|
-
}).pipe(
|
|
2909
|
-
T.Http({
|
|
2910
|
-
method: "GET",
|
|
2911
|
-
uri: "/curation_sets/{curationSetName}/items",
|
|
2912
|
-
code: 200,
|
|
2913
|
-
}),
|
|
2914
|
-
),
|
|
2749
|
+
}).pipe(T.Http({ method: "GET", uri: "/curation_sets/{curationSetName}/items", code: 200 })),
|
|
2915
2750
|
).annotate({
|
|
2916
2751
|
identifier: "GetCurationSetItemsRequest",
|
|
2917
2752
|
}) as any as S.Schema<GetCurationSetItemsRequest>;
|
|
@@ -2971,9 +2806,7 @@ export const CurationItemSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
2971
2806
|
stop_processing: S.optional(S.Boolean),
|
|
2972
2807
|
id: S.String,
|
|
2973
2808
|
}),
|
|
2974
|
-
).annotate({
|
|
2975
|
-
identifier: "CurationItemSchema",
|
|
2976
|
-
}) as any as S.Schema<CurationItemSchema>;
|
|
2809
|
+
).annotate({ identifier: "CurationItemSchema" }) as any as S.Schema<CurationItemSchema>;
|
|
2977
2810
|
|
|
2978
2811
|
export type GetCurationSetItemsResponseBodyList = Array<CurationItemSchema>;
|
|
2979
2812
|
export const GetCurationSetItemsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -2989,12 +2822,8 @@ export const GetCurationSetItemsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2989
2822
|
|
|
2990
2823
|
export interface GetCurationSetsRequest {}
|
|
2991
2824
|
export const GetCurationSetsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2992
|
-
S.Struct({}).pipe(
|
|
2993
|
-
|
|
2994
|
-
),
|
|
2995
|
-
).annotate({
|
|
2996
|
-
identifier: "GetCurationSetsRequest",
|
|
2997
|
-
}) as any as S.Schema<GetCurationSetsRequest>;
|
|
2825
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 })),
|
|
2826
|
+
).annotate({ identifier: "GetCurationSetsRequest" }) as any as S.Schema<GetCurationSetsRequest>;
|
|
2998
2827
|
|
|
2999
2828
|
/** Array of curation items */
|
|
3000
2829
|
export type CurationSetSchemaItemsList = Array<CurationItemCreateSchema>;
|
|
@@ -3015,9 +2844,7 @@ export const CurationSetSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
3015
2844
|
description: S.optional(S.String),
|
|
3016
2845
|
name: S.String,
|
|
3017
2846
|
}),
|
|
3018
|
-
).annotate({
|
|
3019
|
-
identifier: "CurationSetSchema",
|
|
3020
|
-
}) as any as S.Schema<CurationSetSchema>;
|
|
2847
|
+
).annotate({ identifier: "CurationSetSchema" }) as any as S.Schema<CurationSetSchema>;
|
|
3021
2848
|
|
|
3022
2849
|
export type GetCurationSetsResponseBodyList = Array<CurationSetSchema>;
|
|
3023
2850
|
export const GetCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -3027,9 +2854,7 @@ export const GetCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
|
3027
2854
|
export type GetCurationSetsResponse = GetCurationSetsResponseBodyList;
|
|
3028
2855
|
export const GetCurationSetsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3029
2856
|
GetCurationSetsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3030
|
-
).annotate({
|
|
3031
|
-
identifier: "GetCurationSetsResponse",
|
|
3032
|
-
}) as any as S.Schema<GetCurationSetsResponse>;
|
|
2857
|
+
).annotate({ identifier: "GetCurationSetsResponse" }) as any as S.Schema<GetCurationSetsResponse>;
|
|
3033
2858
|
|
|
3034
2859
|
export interface GetDocumentRequest {
|
|
3035
2860
|
/** The name of the collection to search for the document under */
|
|
@@ -3048,16 +2873,12 @@ export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3048
2873
|
code: 200,
|
|
3049
2874
|
}),
|
|
3050
2875
|
),
|
|
3051
|
-
).annotate({
|
|
3052
|
-
identifier: "GetDocumentRequest",
|
|
3053
|
-
}) as any as S.Schema<GetDocumentRequest>;
|
|
2876
|
+
).annotate({ identifier: "GetDocumentRequest" }) as any as S.Schema<GetDocumentRequest>;
|
|
3054
2877
|
|
|
3055
2878
|
export type GetDocumentResponse = unknown;
|
|
3056
2879
|
export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3057
2880
|
S.Unknown.pipe(T.RawResponseRoot()),
|
|
3058
|
-
).annotate({
|
|
3059
|
-
identifier: "GetDocumentResponse",
|
|
3060
|
-
}) as any as S.Schema<GetDocumentResponse>;
|
|
2881
|
+
).annotate({ identifier: "GetDocumentResponse" }) as any as S.Schema<GetDocumentResponse>;
|
|
3061
2882
|
|
|
3062
2883
|
export interface GetKeyRequest {
|
|
3063
2884
|
/** The ID of the key to retrieve */
|
|
@@ -3148,23 +2969,17 @@ export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3148
2969
|
S.Struct({
|
|
3149
2970
|
keys: ApiKeysResponseKeysList,
|
|
3150
2971
|
}),
|
|
3151
|
-
).annotate({
|
|
3152
|
-
identifier: "ApiKeysResponse",
|
|
3153
|
-
}) as any as S.Schema<ApiKeysResponse>;
|
|
2972
|
+
).annotate({ identifier: "ApiKeysResponse" }) as any as S.Schema<ApiKeysResponse>;
|
|
3154
2973
|
|
|
3155
2974
|
export interface GetMetricsRequest {}
|
|
3156
2975
|
export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3157
2976
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 })),
|
|
3158
|
-
).annotate({
|
|
3159
|
-
identifier: "GetMetricsRequest",
|
|
3160
|
-
}) as any as S.Schema<GetMetricsRequest>;
|
|
2977
|
+
).annotate({ identifier: "GetMetricsRequest" }) as any as S.Schema<GetMetricsRequest>;
|
|
3161
2978
|
|
|
3162
2979
|
export type GetMetricsResponse = unknown;
|
|
3163
2980
|
export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3164
2981
|
S.Unknown.pipe(T.RawResponseRoot()),
|
|
3165
|
-
).annotate({
|
|
3166
|
-
identifier: "GetMetricsResponse",
|
|
3167
|
-
}) as any as S.Schema<GetMetricsResponse>;
|
|
2982
|
+
).annotate({ identifier: "GetMetricsResponse" }) as any as S.Schema<GetMetricsResponse>;
|
|
3168
2983
|
|
|
3169
2984
|
export interface GetNLSearchModelRequest {
|
|
3170
2985
|
/** The ID of the NL search model to retrieve */
|
|
@@ -3173,12 +2988,8 @@ export interface GetNLSearchModelRequest {
|
|
|
3173
2988
|
export const GetNLSearchModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3174
2989
|
S.Struct({
|
|
3175
2990
|
modelId: S.String.pipe(T.Label()),
|
|
3176
|
-
}).pipe(
|
|
3177
|
-
|
|
3178
|
-
),
|
|
3179
|
-
).annotate({
|
|
3180
|
-
identifier: "GetNLSearchModelRequest",
|
|
3181
|
-
}) as any as S.Schema<GetNLSearchModelRequest>;
|
|
2991
|
+
}).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 })),
|
|
2992
|
+
).annotate({ identifier: "GetNLSearchModelRequest" }) as any as S.Schema<GetNLSearchModelRequest>;
|
|
3182
2993
|
|
|
3183
2994
|
/** Stop sequences for the NL model (Google-specific) */
|
|
3184
2995
|
export type GetNLSearchModelResponseStopSequencesList = Array<string>;
|
|
@@ -3248,9 +3059,7 @@ export const GetNLSearchModelResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3248
3059
|
account_id: S.optional(S.String),
|
|
3249
3060
|
id: S.String,
|
|
3250
3061
|
}),
|
|
3251
|
-
).annotate({
|
|
3252
|
-
identifier: "GetNLSearchModelResponse",
|
|
3253
|
-
}) as any as S.Schema<GetNLSearchModelResponse>;
|
|
3062
|
+
).annotate({ identifier: "GetNLSearchModelResponse" }) as any as S.Schema<GetNLSearchModelResponse>;
|
|
3254
3063
|
|
|
3255
3064
|
export interface GetPresetRequest {
|
|
3256
3065
|
/** The ID of the preset to retrieve. */
|
|
@@ -3260,13 +3069,9 @@ export const GetPresetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3260
3069
|
S.Struct({
|
|
3261
3070
|
presetId: S.String.pipe(T.Label()),
|
|
3262
3071
|
}).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 })),
|
|
3263
|
-
).annotate({
|
|
3264
|
-
identifier: "GetPresetRequest",
|
|
3265
|
-
}) as any as S.Schema<GetPresetRequest>;
|
|
3072
|
+
).annotate({ identifier: "GetPresetRequest" }) as any as S.Schema<GetPresetRequest>;
|
|
3266
3073
|
|
|
3267
|
-
export type GetPresetResponseValue =
|
|
3268
|
-
| SearchParameters
|
|
3269
|
-
| MultiSearchSearchesParameter;
|
|
3074
|
+
export type GetPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
3270
3075
|
export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
3271
3076
|
T.UnionCases([
|
|
3272
3077
|
[
|
|
@@ -3282,11 +3087,13 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
3282
3087
|
"max_extra_prefix",
|
|
3283
3088
|
"max_extra_suffix",
|
|
3284
3089
|
"filter_by",
|
|
3090
|
+
"enable_lazy_filter",
|
|
3285
3091
|
"max_filter_by_candidates",
|
|
3286
3092
|
"sort_by",
|
|
3287
3093
|
"facet_by",
|
|
3288
3094
|
"max_facet_values",
|
|
3289
3095
|
"facet_query",
|
|
3096
|
+
"facet_query_num_typos",
|
|
3290
3097
|
"num_typos",
|
|
3291
3098
|
"page",
|
|
3292
3099
|
"per_page",
|
|
@@ -3295,6 +3102,7 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
3295
3102
|
"group_by",
|
|
3296
3103
|
"group_limit",
|
|
3297
3104
|
"group_missing_values",
|
|
3105
|
+
"group_max_candidates",
|
|
3298
3106
|
"include_fields",
|
|
3299
3107
|
"exclude_fields",
|
|
3300
3108
|
"highlight_full_fields",
|
|
@@ -3312,11 +3120,13 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
3312
3120
|
"filter_curated_hits",
|
|
3313
3121
|
"enable_synonyms",
|
|
3314
3122
|
"synonym_prefix",
|
|
3123
|
+
"demote_synonym_match",
|
|
3315
3124
|
"synonym_num_typos",
|
|
3316
3125
|
"pinned_hits",
|
|
3317
3126
|
"hidden_hits",
|
|
3318
3127
|
"curation_tags",
|
|
3319
3128
|
"highlight_fields",
|
|
3129
|
+
"rerank_hybrid_matches",
|
|
3320
3130
|
"split_join_tokens",
|
|
3321
3131
|
"pre_segmented_query",
|
|
3322
3132
|
"preset",
|
|
@@ -3328,6 +3138,7 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
3328
3138
|
"enable_typos_for_numerical_tokens",
|
|
3329
3139
|
"exhaustive_search",
|
|
3330
3140
|
"search_cutoff_ms",
|
|
3141
|
+
"limit_hits",
|
|
3331
3142
|
"use_cache",
|
|
3332
3143
|
"cache_ttl",
|
|
3333
3144
|
"min_len_1typo",
|
|
@@ -3338,6 +3149,9 @@ export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
3338
3149
|
"facet_strategy",
|
|
3339
3150
|
"stopwords",
|
|
3340
3151
|
"facet_return_parent",
|
|
3152
|
+
"facet_sample_percent",
|
|
3153
|
+
"facet_sample_threshold",
|
|
3154
|
+
"facet_sample_slope",
|
|
3341
3155
|
"voice_query",
|
|
3342
3156
|
"conversation",
|
|
3343
3157
|
"conversation_model_id",
|
|
@@ -3356,18 +3170,12 @@ export const GetPresetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3356
3170
|
value: GetPresetResponseValue,
|
|
3357
3171
|
name: S.String,
|
|
3358
3172
|
}),
|
|
3359
|
-
).annotate({
|
|
3360
|
-
identifier: "GetPresetResponse",
|
|
3361
|
-
}) as any as S.Schema<GetPresetResponse>;
|
|
3173
|
+
).annotate({ identifier: "GetPresetResponse" }) as any as S.Schema<GetPresetResponse>;
|
|
3362
3174
|
|
|
3363
3175
|
export interface GetSchemaChangesRequest {}
|
|
3364
3176
|
export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3365
|
-
S.Struct({}).pipe(
|
|
3366
|
-
|
|
3367
|
-
),
|
|
3368
|
-
).annotate({
|
|
3369
|
-
identifier: "GetSchemaChangesRequest",
|
|
3370
|
-
}) as any as S.Schema<GetSchemaChangesRequest>;
|
|
3177
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 })),
|
|
3178
|
+
).annotate({ identifier: "GetSchemaChangesRequest" }) as any as S.Schema<GetSchemaChangesRequest>;
|
|
3371
3179
|
|
|
3372
3180
|
export interface SchemaChangeStatus {
|
|
3373
3181
|
/** Name of the collection being modified */
|
|
@@ -3383,9 +3191,7 @@ export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() =>
|
|
|
3383
3191
|
validated_docs: S.optional(S.Number),
|
|
3384
3192
|
altered_docs: S.optional(S.Number),
|
|
3385
3193
|
}),
|
|
3386
|
-
).annotate({
|
|
3387
|
-
identifier: "SchemaChangeStatus",
|
|
3388
|
-
}) as any as S.Schema<SchemaChangeStatus>;
|
|
3194
|
+
).annotate({ identifier: "SchemaChangeStatus" }) as any as S.Schema<SchemaChangeStatus>;
|
|
3389
3195
|
|
|
3390
3196
|
export type GetSchemaChangesResponseBodyList = Array<SchemaChangeStatus>;
|
|
3391
3197
|
export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -3395,9 +3201,7 @@ export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
|
3395
3201
|
export type GetSchemaChangesResponse = GetSchemaChangesResponseBodyList;
|
|
3396
3202
|
export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3397
3203
|
GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3398
|
-
).annotate({
|
|
3399
|
-
identifier: "GetSchemaChangesResponse",
|
|
3400
|
-
}) as any as S.Schema<GetSchemaChangesResponse>;
|
|
3204
|
+
).annotate({ identifier: "GetSchemaChangesResponse" }) as any as S.Schema<GetSchemaChangesResponse>;
|
|
3401
3205
|
|
|
3402
3206
|
export interface GetStemmingDictionaryRequest {
|
|
3403
3207
|
/** The ID of the dictionary to retrieve */
|
|
@@ -3406,13 +3210,7 @@ export interface GetStemmingDictionaryRequest {
|
|
|
3406
3210
|
export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3407
3211
|
S.Struct({
|
|
3408
3212
|
dictionaryId: S.String.pipe(T.Label()),
|
|
3409
|
-
}).pipe(
|
|
3410
|
-
T.Http({
|
|
3411
|
-
method: "GET",
|
|
3412
|
-
uri: "/stemming/dictionaries/{dictionaryId}",
|
|
3413
|
-
code: 200,
|
|
3414
|
-
}),
|
|
3415
|
-
),
|
|
3213
|
+
}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries/{dictionaryId}", code: 200 })),
|
|
3416
3214
|
).annotate({
|
|
3417
3215
|
identifier: "GetStemmingDictionaryRequest",
|
|
3418
3216
|
}) as any as S.Schema<GetStemmingDictionaryRequest>;
|
|
@@ -3449,9 +3247,7 @@ export const StemmingDictionary = /*@__PURE__*/ S.suspend(() =>
|
|
|
3449
3247
|
id: S.String,
|
|
3450
3248
|
words: StemmingDictionaryWordsList,
|
|
3451
3249
|
}),
|
|
3452
|
-
).annotate({
|
|
3453
|
-
identifier: "StemmingDictionary",
|
|
3454
|
-
}) as any as S.Schema<StemmingDictionary>;
|
|
3250
|
+
).annotate({ identifier: "StemmingDictionary" }) as any as S.Schema<StemmingDictionary>;
|
|
3455
3251
|
|
|
3456
3252
|
export interface GetStopwordsSetRequest {
|
|
3457
3253
|
/** The ID of the stopwords set to retrieve. */
|
|
@@ -3461,9 +3257,7 @@ export const GetStopwordsSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3461
3257
|
S.Struct({
|
|
3462
3258
|
setId: S.String.pipe(T.Label()),
|
|
3463
3259
|
}).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 })),
|
|
3464
|
-
).annotate({
|
|
3465
|
-
identifier: "GetStopwordsSetRequest",
|
|
3466
|
-
}) as any as S.Schema<GetStopwordsSetRequest>;
|
|
3260
|
+
).annotate({ identifier: "GetStopwordsSetRequest" }) as any as S.Schema<GetStopwordsSetRequest>;
|
|
3467
3261
|
|
|
3468
3262
|
export type StopwordsSetSchemaStopwordsList = Array<string>;
|
|
3469
3263
|
export const StopwordsSetSchemaStopwordsList = /*@__PURE__*/ S.Array(
|
|
@@ -3481,9 +3275,7 @@ export const StopwordsSetSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
3481
3275
|
stopwords: StopwordsSetSchemaStopwordsList,
|
|
3482
3276
|
locale: S.optional(S.String),
|
|
3483
3277
|
}),
|
|
3484
|
-
).annotate({
|
|
3485
|
-
identifier: "StopwordsSetSchema",
|
|
3486
|
-
}) as any as S.Schema<StopwordsSetSchema>;
|
|
3278
|
+
).annotate({ identifier: "StopwordsSetSchema" }) as any as S.Schema<StopwordsSetSchema>;
|
|
3487
3279
|
|
|
3488
3280
|
export interface StopwordsSetRetrieveSchema {
|
|
3489
3281
|
stopwords: StopwordsSetSchema;
|
|
@@ -3499,16 +3291,12 @@ export const StopwordsSetRetrieveSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
3499
3291
|
export interface GetStopwordsSetsRequest {}
|
|
3500
3292
|
export const GetStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3501
3293
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 })),
|
|
3502
|
-
).annotate({
|
|
3503
|
-
identifier: "GetStopwordsSetsRequest",
|
|
3504
|
-
}) as any as S.Schema<GetStopwordsSetsRequest>;
|
|
3294
|
+
).annotate({ identifier: "GetStopwordsSetsRequest" }) as any as S.Schema<GetStopwordsSetsRequest>;
|
|
3505
3295
|
|
|
3506
|
-
export type StopwordsSetsRetrieveAllSchemaStopwordsList =
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
StopwordsSetSchema,
|
|
3511
|
-
) as any as S.Schema<StopwordsSetsRetrieveAllSchemaStopwordsList>;
|
|
3296
|
+
export type StopwordsSetsRetrieveAllSchemaStopwordsList = Array<StopwordsSetSchema>;
|
|
3297
|
+
export const StopwordsSetsRetrieveAllSchemaStopwordsList = /*@__PURE__*/ S.Array(
|
|
3298
|
+
StopwordsSetSchema,
|
|
3299
|
+
) as any as S.Schema<StopwordsSetsRetrieveAllSchemaStopwordsList>;
|
|
3512
3300
|
|
|
3513
3301
|
export interface StopwordsSetsRetrieveAllSchema {
|
|
3514
3302
|
stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList;
|
|
@@ -3528,12 +3316,8 @@ export interface GetSynonymSetRequest {
|
|
|
3528
3316
|
export const GetSynonymSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3529
3317
|
S.Struct({
|
|
3530
3318
|
synonymSetName: S.String.pipe(T.Label()),
|
|
3531
|
-
}).pipe(
|
|
3532
|
-
|
|
3533
|
-
),
|
|
3534
|
-
).annotate({
|
|
3535
|
-
identifier: "GetSynonymSetRequest",
|
|
3536
|
-
}) as any as S.Schema<GetSynonymSetRequest>;
|
|
3319
|
+
}).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 })),
|
|
3320
|
+
).annotate({ identifier: "GetSynonymSetRequest" }) as any as S.Schema<GetSynonymSetRequest>;
|
|
3537
3321
|
|
|
3538
3322
|
/** Array of words that should be considered as synonyms */
|
|
3539
3323
|
export type SynonymItemSchemaSynonymsList = Array<string>;
|
|
@@ -3567,9 +3351,7 @@ export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
3567
3351
|
locale: S.optional(S.String),
|
|
3568
3352
|
symbols_to_index: S.optional(SynonymItemSchemaSymbolsToIndexList),
|
|
3569
3353
|
}),
|
|
3570
|
-
).annotate({
|
|
3571
|
-
identifier: "SynonymItemSchema",
|
|
3572
|
-
}) as any as S.Schema<SynonymItemSchema>;
|
|
3354
|
+
).annotate({ identifier: "SynonymItemSchema" }) as any as S.Schema<SynonymItemSchema>;
|
|
3573
3355
|
|
|
3574
3356
|
/** Array of synonym items */
|
|
3575
3357
|
export type GetSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
@@ -3588,9 +3370,7 @@ export const GetSynonymSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3588
3370
|
items: GetSynonymSetResponseItemsList,
|
|
3589
3371
|
name: S.String,
|
|
3590
3372
|
}),
|
|
3591
|
-
).annotate({
|
|
3592
|
-
identifier: "GetSynonymSetResponse",
|
|
3593
|
-
}) as any as S.Schema<GetSynonymSetResponse>;
|
|
3373
|
+
).annotate({ identifier: "GetSynonymSetResponse" }) as any as S.Schema<GetSynonymSetResponse>;
|
|
3594
3374
|
|
|
3595
3375
|
export interface GetSynonymSetItemRequest {
|
|
3596
3376
|
/** The name of the synonym set */
|
|
@@ -3603,15 +3383,9 @@ export const GetSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3603
3383
|
synonymSetName: S.String.pipe(T.Label()),
|
|
3604
3384
|
itemId: S.String.pipe(T.Label()),
|
|
3605
3385
|
}).pipe(
|
|
3606
|
-
T.Http({
|
|
3607
|
-
method: "GET",
|
|
3608
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
3609
|
-
code: 200,
|
|
3610
|
-
}),
|
|
3386
|
+
T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }),
|
|
3611
3387
|
),
|
|
3612
|
-
).annotate({
|
|
3613
|
-
identifier: "GetSynonymSetItemRequest",
|
|
3614
|
-
}) as any as S.Schema<GetSynonymSetItemRequest>;
|
|
3388
|
+
).annotate({ identifier: "GetSynonymSetItemRequest" }) as any as S.Schema<GetSynonymSetItemRequest>;
|
|
3615
3389
|
|
|
3616
3390
|
/** Array of words that should be considered as synonyms */
|
|
3617
3391
|
export type GetSynonymSetItemResponseSynonymsList = Array<string>;
|
|
@@ -3621,10 +3395,9 @@ export const GetSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(
|
|
|
3621
3395
|
|
|
3622
3396
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
3623
3397
|
export type GetSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
3624
|
-
export const GetSynonymSetItemResponseSymbolsToIndexList =
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
) as any as S.Schema<GetSynonymSetItemResponseSymbolsToIndexList>;
|
|
3398
|
+
export const GetSynonymSetItemResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(
|
|
3399
|
+
S.String,
|
|
3400
|
+
) as any as S.Schema<GetSynonymSetItemResponseSymbolsToIndexList>;
|
|
3628
3401
|
|
|
3629
3402
|
export interface GetSynonymSetItemResponse {
|
|
3630
3403
|
/** Unique identifier for the synonym item */
|
|
@@ -3657,13 +3430,7 @@ export interface GetSynonymSetItemsRequest {
|
|
|
3657
3430
|
export const GetSynonymSetItemsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3658
3431
|
S.Struct({
|
|
3659
3432
|
synonymSetName: S.String.pipe(T.Label()),
|
|
3660
|
-
}).pipe(
|
|
3661
|
-
T.Http({
|
|
3662
|
-
method: "GET",
|
|
3663
|
-
uri: "/synonym_sets/{synonymSetName}/items",
|
|
3664
|
-
code: 200,
|
|
3665
|
-
}),
|
|
3666
|
-
),
|
|
3433
|
+
}).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}/items", code: 200 })),
|
|
3667
3434
|
).annotate({
|
|
3668
3435
|
identifier: "GetSynonymSetItemsRequest",
|
|
3669
3436
|
}) as any as S.Schema<GetSynonymSetItemsRequest>;
|
|
@@ -3683,9 +3450,7 @@ export const GetSynonymSetItemsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3683
3450
|
export interface GetSynonymSetsRequest {}
|
|
3684
3451
|
export const GetSynonymSetsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3685
3452
|
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 })),
|
|
3686
|
-
).annotate({
|
|
3687
|
-
identifier: "GetSynonymSetsRequest",
|
|
3688
|
-
}) as any as S.Schema<GetSynonymSetsRequest>;
|
|
3453
|
+
).annotate({ identifier: "GetSynonymSetsRequest" }) as any as S.Schema<GetSynonymSetsRequest>;
|
|
3689
3454
|
|
|
3690
3455
|
/** Array of synonym items */
|
|
3691
3456
|
export type SynonymSetSchemaItemsList = Array<SynonymItemSchema>;
|
|
@@ -3704,9 +3469,7 @@ export const SynonymSetSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
3704
3469
|
items: SynonymSetSchemaItemsList,
|
|
3705
3470
|
name: S.String,
|
|
3706
3471
|
}),
|
|
3707
|
-
).annotate({
|
|
3708
|
-
identifier: "SynonymSetSchema",
|
|
3709
|
-
}) as any as S.Schema<SynonymSetSchema>;
|
|
3472
|
+
).annotate({ identifier: "SynonymSetSchema" }) as any as S.Schema<SynonymSetSchema>;
|
|
3710
3473
|
|
|
3711
3474
|
export type GetSynonymSetsResponseBodyList = Array<SynonymSetSchema>;
|
|
3712
3475
|
export const GetSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -3716,9 +3479,7 @@ export const GetSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
|
3716
3479
|
export type GetSynonymSetsResponse = GetSynonymSetsResponseBodyList;
|
|
3717
3480
|
export const GetSynonymSetsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3718
3481
|
GetSynonymSetsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
3719
|
-
).annotate({
|
|
3720
|
-
identifier: "GetSynonymSetsResponse",
|
|
3721
|
-
}) as any as S.Schema<GetSynonymSetsResponse>;
|
|
3482
|
+
).annotate({ identifier: "GetSynonymSetsResponse" }) as any as S.Schema<GetSynonymSetsResponse>;
|
|
3722
3483
|
|
|
3723
3484
|
export interface HealthRequest {}
|
|
3724
3485
|
export const HealthRequest = /*@__PURE__*/ S.suspend(() =>
|
|
@@ -3737,11 +3498,7 @@ export const HealthStatus = /*@__PURE__*/ S.suspend(() =>
|
|
|
3737
3498
|
export type IndexAction = "create" | "update" | "upsert" | "emplace";
|
|
3738
3499
|
export const IndexAction = S.String;
|
|
3739
3500
|
|
|
3740
|
-
export type DirtyValues =
|
|
3741
|
-
| "coerce_or_reject"
|
|
3742
|
-
| "coerce_or_drop"
|
|
3743
|
-
| "drop"
|
|
3744
|
-
| "reject";
|
|
3501
|
+
export type DirtyValues = "coerce_or_reject" | "coerce_or_drop" | "drop" | "reject";
|
|
3745
3502
|
export const DirtyValues = S.String;
|
|
3746
3503
|
|
|
3747
3504
|
export interface ImportDocumentsRequestImportDocumentsParameters {
|
|
@@ -3753,19 +3510,18 @@ export interface ImportDocumentsRequestImportDocumentsParameters {
|
|
|
3753
3510
|
action?: IndexAction | (string & {});
|
|
3754
3511
|
dirty_values?: DirtyValues | (string & {});
|
|
3755
3512
|
}
|
|
3756
|
-
export const ImportDocumentsRequestImportDocumentsParameters =
|
|
3757
|
-
|
|
3758
|
-
S.
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
}) as any as S.Schema<ImportDocumentsRequestImportDocumentsParameters>;
|
|
3513
|
+
export const ImportDocumentsRequestImportDocumentsParameters = /*@__PURE__*/ S.suspend(() =>
|
|
3514
|
+
S.Struct({
|
|
3515
|
+
batch_size: S.optional(S.Number),
|
|
3516
|
+
return_id: S.optional(S.Boolean),
|
|
3517
|
+
remote_embedding_batch_size: S.optional(S.Number),
|
|
3518
|
+
return_doc: S.optional(S.Boolean),
|
|
3519
|
+
action: S.optional(IndexAction),
|
|
3520
|
+
dirty_values: S.optional(DirtyValues),
|
|
3521
|
+
}),
|
|
3522
|
+
).annotate({
|
|
3523
|
+
identifier: "ImportDocumentsRequestImportDocumentsParameters",
|
|
3524
|
+
}) as any as S.Schema<ImportDocumentsRequestImportDocumentsParameters>;
|
|
3769
3525
|
|
|
3770
3526
|
export interface ImportDocumentsRequest {
|
|
3771
3527
|
/** The name of the collection */
|
|
@@ -3779,20 +3535,12 @@ export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3779
3535
|
ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query()),
|
|
3780
3536
|
),
|
|
3781
3537
|
}).pipe(
|
|
3782
|
-
T.Http({
|
|
3783
|
-
method: "POST",
|
|
3784
|
-
uri: "/collections/{collectionName}/documents/import",
|
|
3785
|
-
code: 200,
|
|
3786
|
-
}),
|
|
3538
|
+
T.Http({ method: "POST", uri: "/collections/{collectionName}/documents/import", code: 200 }),
|
|
3787
3539
|
),
|
|
3788
|
-
).annotate({
|
|
3789
|
-
identifier: "ImportDocumentsRequest",
|
|
3790
|
-
}) as any as S.Schema<ImportDocumentsRequest>;
|
|
3540
|
+
).annotate({ identifier: "ImportDocumentsRequest" }) as any as S.Schema<ImportDocumentsRequest>;
|
|
3791
3541
|
|
|
3792
3542
|
export interface ImportDocumentsResponse {}
|
|
3793
|
-
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3794
|
-
S.Struct({}),
|
|
3795
|
-
).annotate({
|
|
3543
|
+
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
3796
3544
|
identifier: "ImportDocumentsResponse",
|
|
3797
3545
|
}) as any as S.Schema<ImportDocumentsResponse>;
|
|
3798
3546
|
|
|
@@ -3805,9 +3553,7 @@ export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3805
3553
|
S.Struct({
|
|
3806
3554
|
id: S.String.pipe(T.Query()),
|
|
3807
3555
|
body: S.String.pipe(T.HttpBody()),
|
|
3808
|
-
}).pipe(
|
|
3809
|
-
T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 }),
|
|
3810
|
-
),
|
|
3556
|
+
}).pipe(T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 })),
|
|
3811
3557
|
).annotate({
|
|
3812
3558
|
identifier: "ImportStemmingDictionaryRequest",
|
|
3813
3559
|
}) as any as S.Schema<ImportStemmingDictionaryRequest>;
|
|
@@ -3819,7 +3565,7 @@ export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3819
3565
|
identifier: "ImportStemmingDictionaryResponse",
|
|
3820
3566
|
}) as any as S.Schema<ImportStemmingDictionaryResponse>;
|
|
3821
3567
|
|
|
3822
|
-
export interface
|
|
3568
|
+
export interface IndexDocumentRequest {
|
|
3823
3569
|
/** The name of the collection to add the document to */
|
|
3824
3570
|
collectionName: string;
|
|
3825
3571
|
/** Additional action to perform */
|
|
@@ -3827,43 +3573,30 @@ export interface ListDocumentRequest {
|
|
|
3827
3573
|
/** Dealing with Dirty Data */
|
|
3828
3574
|
dirty_values?: DirtyValues | (string & {});
|
|
3829
3575
|
}
|
|
3830
|
-
export const
|
|
3576
|
+
export const IndexDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3831
3577
|
S.Struct({
|
|
3832
3578
|
collectionName: S.String.pipe(T.Label()),
|
|
3833
3579
|
action: S.optional(IndexAction.pipe(T.Query())),
|
|
3834
3580
|
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
3835
|
-
}).pipe(
|
|
3836
|
-
|
|
3837
|
-
method: "POST",
|
|
3838
|
-
uri: "/collections/{collectionName}/documents",
|
|
3839
|
-
code: 200,
|
|
3840
|
-
}),
|
|
3841
|
-
),
|
|
3842
|
-
).annotate({
|
|
3843
|
-
identifier: "ListDocumentRequest",
|
|
3844
|
-
}) as any as S.Schema<ListDocumentRequest>;
|
|
3581
|
+
}).pipe(T.Http({ method: "POST", uri: "/collections/{collectionName}/documents", code: 200 })),
|
|
3582
|
+
).annotate({ identifier: "IndexDocumentRequest" }) as any as S.Schema<IndexDocumentRequest>;
|
|
3845
3583
|
|
|
3846
|
-
export type
|
|
3847
|
-
export const
|
|
3584
|
+
export type IndexDocumentResponse = unknown;
|
|
3585
|
+
export const IndexDocumentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
3848
3586
|
S.Unknown.pipe(T.RawResponseRoot()),
|
|
3849
|
-
).annotate({
|
|
3850
|
-
identifier: "ListDocumentResponse",
|
|
3851
|
-
}) as any as S.Schema<ListDocumentResponse>;
|
|
3587
|
+
).annotate({ identifier: "IndexDocumentResponse" }) as any as S.Schema<IndexDocumentResponse>;
|
|
3852
3588
|
|
|
3853
3589
|
export interface ListStemmingDictionariesRequest {}
|
|
3854
3590
|
export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3855
|
-
S.Struct({}).pipe(
|
|
3856
|
-
T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }),
|
|
3857
|
-
),
|
|
3591
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 })),
|
|
3858
3592
|
).annotate({
|
|
3859
3593
|
identifier: "ListStemmingDictionariesRequest",
|
|
3860
3594
|
}) as any as S.Schema<ListStemmingDictionariesRequest>;
|
|
3861
3595
|
|
|
3862
3596
|
export type ListStemmingDictionariesResponseDictionariesList = Array<string>;
|
|
3863
|
-
export const ListStemmingDictionariesResponseDictionariesList =
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
) as any as S.Schema<ListStemmingDictionariesResponseDictionariesList>;
|
|
3597
|
+
export const ListStemmingDictionariesResponseDictionariesList = /*@__PURE__*/ S.Array(
|
|
3598
|
+
S.String,
|
|
3599
|
+
) as any as S.Schema<ListStemmingDictionariesResponseDictionariesList>;
|
|
3867
3600
|
|
|
3868
3601
|
export interface ListStemmingDictionariesResponse {
|
|
3869
3602
|
dictionaries?: ListStemmingDictionariesResponseDictionariesList;
|
|
@@ -3886,15 +3619,9 @@ export const SearchCollectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3886
3619
|
collectionName: S.String.pipe(T.Label()),
|
|
3887
3620
|
searchParameters: SearchParameters.pipe(T.Query()),
|
|
3888
3621
|
}).pipe(
|
|
3889
|
-
T.Http({
|
|
3890
|
-
method: "GET",
|
|
3891
|
-
uri: "/collections/{collectionName}/documents/search",
|
|
3892
|
-
code: 200,
|
|
3893
|
-
}),
|
|
3622
|
+
T.Http({ method: "GET", uri: "/collections/{collectionName}/documents/search", code: 200 }),
|
|
3894
3623
|
),
|
|
3895
|
-
).annotate({
|
|
3896
|
-
identifier: "SearchCollectionRequest",
|
|
3897
|
-
}) as any as S.Schema<SearchCollectionRequest>;
|
|
3624
|
+
).annotate({ identifier: "SearchCollectionRequest" }) as any as S.Schema<SearchCollectionRequest>;
|
|
3898
3625
|
|
|
3899
3626
|
export interface FacetCountsCountsItem {
|
|
3900
3627
|
count?: number;
|
|
@@ -3909,9 +3636,7 @@ export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3909
3636
|
value: S.optional(S.String),
|
|
3910
3637
|
parent: S.optional(S.Unknown),
|
|
3911
3638
|
}),
|
|
3912
|
-
).annotate({
|
|
3913
|
-
identifier: "FacetCountsCountsItem",
|
|
3914
|
-
}) as any as S.Schema<FacetCountsCountsItem>;
|
|
3639
|
+
).annotate({ identifier: "FacetCountsCountsItem" }) as any as S.Schema<FacetCountsCountsItem>;
|
|
3915
3640
|
|
|
3916
3641
|
export type FacetCountsCountsList = Array<FacetCountsCountsItem>;
|
|
3917
3642
|
export const FacetCountsCountsList = /*@__PURE__*/ S.Array(
|
|
@@ -3933,9 +3658,7 @@ export const FacetCountsStats = /*@__PURE__*/ S.suspend(() =>
|
|
|
3933
3658
|
total_values: S.optional(S.Number),
|
|
3934
3659
|
avg: S.optional(S.Number),
|
|
3935
3660
|
}),
|
|
3936
|
-
).annotate({
|
|
3937
|
-
identifier: "FacetCountsStats",
|
|
3938
|
-
}) as any as S.Schema<FacetCountsStats>;
|
|
3661
|
+
).annotate({ identifier: "FacetCountsStats" }) as any as S.Schema<FacetCountsStats>;
|
|
3939
3662
|
|
|
3940
3663
|
export interface FacetCounts {
|
|
3941
3664
|
counts?: FacetCountsCountsList;
|
|
@@ -4009,9 +3732,7 @@ export const SearchHighlight = /*@__PURE__*/ S.suspend(() =>
|
|
|
4009
3732
|
indices: S.optional(SearchHighlightIndicesList),
|
|
4010
3733
|
matched_tokens: S.optional(SearchHighlightMatchedTokensList),
|
|
4011
3734
|
}),
|
|
4012
|
-
).annotate({
|
|
4013
|
-
identifier: "SearchHighlight",
|
|
4014
|
-
}) as any as S.Schema<SearchHighlight>;
|
|
3735
|
+
).annotate({ identifier: "SearchHighlight" }) as any as S.Schema<SearchHighlight>;
|
|
4015
3736
|
|
|
4016
3737
|
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
4017
3738
|
export type SearchResultHitHighlightsList = Array<SearchHighlight>;
|
|
@@ -4020,9 +3741,7 @@ export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(
|
|
|
4020
3741
|
) as any as S.Schema<SearchResultHitHighlightsList>;
|
|
4021
3742
|
|
|
4022
3743
|
/** Highlighted version of the matching document */
|
|
4023
|
-
export type SearchResultHitHighlightMap = {
|
|
4024
|
-
[key: string]: unknown | undefined;
|
|
4025
|
-
};
|
|
3744
|
+
export type SearchResultHitHighlightMap = { [key: string]: unknown | undefined };
|
|
4026
3745
|
export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(
|
|
4027
3746
|
S.String,
|
|
4028
3747
|
S.Unknown,
|
|
@@ -4059,9 +3778,7 @@ export const SearchResultHitTextMatchInfo = /*@__PURE__*/ S.suspend(() =>
|
|
|
4059
3778
|
}) as any as S.Schema<SearchResultHitTextMatchInfo>;
|
|
4060
3779
|
|
|
4061
3780
|
/** Can be any key-value pair */
|
|
4062
|
-
export type SearchResultHitGeoDistanceMetersMap = {
|
|
4063
|
-
[key: string]: number | undefined;
|
|
4064
|
-
};
|
|
3781
|
+
export type SearchResultHitGeoDistanceMetersMap = { [key: string]: number | undefined };
|
|
4065
3782
|
export const SearchResultHitGeoDistanceMetersMap = /*@__PURE__*/ S.Record(
|
|
4066
3783
|
S.String,
|
|
4067
3784
|
S.Number,
|
|
@@ -4110,9 +3827,7 @@ export const SearchResultHit = /*@__PURE__*/ S.suspend(() =>
|
|
|
4110
3827
|
hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
|
|
4111
3828
|
search_index: S.optional(S.Number),
|
|
4112
3829
|
}),
|
|
4113
|
-
).annotate({
|
|
4114
|
-
identifier: "SearchResultHit",
|
|
4115
|
-
}) as any as S.Schema<SearchResultHit>;
|
|
3830
|
+
).annotate({ identifier: "SearchResultHit" }) as any as S.Schema<SearchResultHit>;
|
|
4116
3831
|
|
|
4117
3832
|
/** The documents that matched the search query */
|
|
4118
3833
|
export type SearchGroupedHitHitsList = Array<SearchResultHit>;
|
|
@@ -4132,9 +3847,7 @@ export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() =>
|
|
|
4132
3847
|
group_key: SearchGroupedHitGroupKeyList,
|
|
4133
3848
|
hits: SearchGroupedHitHitsList,
|
|
4134
3849
|
}),
|
|
4135
|
-
).annotate({
|
|
4136
|
-
identifier: "SearchGroupedHit",
|
|
4137
|
-
}) as any as S.Schema<SearchGroupedHit>;
|
|
3850
|
+
).annotate({ identifier: "SearchGroupedHit" }) as any as S.Schema<SearchGroupedHit>;
|
|
4138
3851
|
|
|
4139
3852
|
export type SearchResultGroupedHitsList = Array<SearchGroupedHit>;
|
|
4140
3853
|
export const SearchResultGroupedHitsList = /*@__PURE__*/ S.Array(
|
|
@@ -4173,15 +3886,12 @@ export const SearchRequestParams = /*@__PURE__*/ S.suspend(() =>
|
|
|
4173
3886
|
per_page: S.Number,
|
|
4174
3887
|
voice_query: S.optional(SearchRequestParamsVoiceQuery),
|
|
4175
3888
|
}),
|
|
4176
|
-
).annotate({
|
|
4177
|
-
identifier: "SearchRequestParams",
|
|
4178
|
-
}) as any as S.Schema<SearchRequestParams>;
|
|
3889
|
+
).annotate({ identifier: "SearchRequestParams" }) as any as S.Schema<SearchRequestParams>;
|
|
4179
3890
|
|
|
4180
3891
|
export type SearchResultConversationConversationHistoryList = Array<unknown>;
|
|
4181
|
-
export const SearchResultConversationConversationHistoryList =
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
) as any as S.Schema<SearchResultConversationConversationHistoryList>;
|
|
3892
|
+
export const SearchResultConversationConversationHistoryList = /*@__PURE__*/ S.Array(
|
|
3893
|
+
S.Unknown,
|
|
3894
|
+
) as any as S.Schema<SearchResultConversationConversationHistoryList>;
|
|
4185
3895
|
|
|
4186
3896
|
export interface SearchResultConversation {
|
|
4187
3897
|
answer: string;
|
|
@@ -4196,9 +3906,7 @@ export const SearchResultConversation = /*@__PURE__*/ S.suspend(() =>
|
|
|
4196
3906
|
conversation_id: S.String,
|
|
4197
3907
|
query: S.String,
|
|
4198
3908
|
}),
|
|
4199
|
-
).annotate({
|
|
4200
|
-
identifier: "SearchResultConversation",
|
|
4201
|
-
}) as any as S.Schema<SearchResultConversation>;
|
|
3909
|
+
).annotate({ identifier: "SearchResultConversation" }) as any as S.Schema<SearchResultConversation>;
|
|
4202
3910
|
|
|
4203
3911
|
/** Returned only for union query response. */
|
|
4204
3912
|
export type SearchResultUnionRequestParamsList = Array<SearchRequestParams>;
|
|
@@ -4274,6 +3982,10 @@ export interface MultiSearchParameters {
|
|
|
4274
3982
|
max_extra_suffix?: number;
|
|
4275
3983
|
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
4276
3984
|
filter_by?: string;
|
|
3985
|
+
/** Applies the filtering operation incrementally / lazily. Set this to true when you are potentially filtering on large values but the tokens in the query are expected to match very few documents. Default: false */
|
|
3986
|
+
enable_lazy_filter?: boolean;
|
|
3987
|
+
/** Controls the number of similar words that Typesense considers during fuzzy search on filter_by values. Useful for controlling prefix matches like company_name:Acm*. */
|
|
3988
|
+
max_filter_by_candidates?: number;
|
|
4277
3989
|
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
4278
3990
|
sort_by?: string;
|
|
4279
3991
|
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
@@ -4282,6 +3994,8 @@ export interface MultiSearchParameters {
|
|
|
4282
3994
|
max_facet_values?: number;
|
|
4283
3995
|
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
4284
3996
|
facet_query?: string;
|
|
3997
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
3998
|
+
facet_query_num_typos?: number;
|
|
4285
3999
|
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
4286
4000
|
num_typos?: string;
|
|
4287
4001
|
/** Results from this specific page number would be fetched. */
|
|
@@ -4298,6 +4012,8 @@ export interface MultiSearchParameters {
|
|
|
4298
4012
|
group_limit?: number;
|
|
4299
4013
|
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
4300
4014
|
group_missing_values?: boolean;
|
|
4015
|
+
/** Overrides the behavior of group_by queries where found value is an approximation. When group_max_candidates is passed, found will be accurate up until its value. */
|
|
4016
|
+
group_max_candidates?: number;
|
|
4301
4017
|
/** List of fields from the document to include in the search result */
|
|
4302
4018
|
include_fields?: string;
|
|
4303
4019
|
/** List of fields from the document to exclude in the search result */
|
|
@@ -4327,6 +4043,8 @@ export interface MultiSearchParameters {
|
|
|
4327
4043
|
enable_analytics?: boolean;
|
|
4328
4044
|
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
4329
4045
|
synonym_prefix?: boolean;
|
|
4046
|
+
/** When set to true, search results that matched via synonyms will be demoted in ranking, appearing below results that have a direct match. Default: false */
|
|
4047
|
+
demote_synonym_match?: boolean;
|
|
4330
4048
|
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
4331
4049
|
synonym_num_typos?: number;
|
|
4332
4050
|
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
@@ -4337,6 +4055,8 @@ export interface MultiSearchParameters {
|
|
|
4337
4055
|
curation_tags?: string;
|
|
4338
4056
|
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
4339
4057
|
highlight_fields?: string;
|
|
4058
|
+
/** When true, computes both text match and vector distance scores for all matches in hybrid search. Documents found only through keyword search will get a vector distance score, and documents found only through vector search will get a text match score. */
|
|
4059
|
+
rerank_hybrid_matches?: boolean;
|
|
4340
4060
|
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
4341
4061
|
pre_segmented_query?: boolean;
|
|
4342
4062
|
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
@@ -4355,6 +4075,8 @@ export interface MultiSearchParameters {
|
|
|
4355
4075
|
exhaustive_search?: boolean;
|
|
4356
4076
|
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
4357
4077
|
search_cutoff_ms?: number;
|
|
4078
|
+
/** Maximum number of hits that can be fetched from the collection. page * per_page should be less than this number for the search request to return results. */
|
|
4079
|
+
limit_hits?: number;
|
|
4358
4080
|
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
4359
4081
|
use_cache?: boolean;
|
|
4360
4082
|
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
@@ -4375,6 +4097,12 @@ export interface MultiSearchParameters {
|
|
|
4375
4097
|
stopwords?: string;
|
|
4376
4098
|
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
4377
4099
|
facet_return_parent?: string;
|
|
4100
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
4101
|
+
facet_sample_percent?: number;
|
|
4102
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
4103
|
+
facet_sample_threshold?: number;
|
|
4104
|
+
/** Controls how steeply facet_sample_percent falls as the collection grows. facet_sample_threshold should be non-zero for facet_sample_slope to be effective. Default: 0. */
|
|
4105
|
+
facet_sample_slope?: number;
|
|
4378
4106
|
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
4379
4107
|
voice_query?: string;
|
|
4380
4108
|
/** Enable conversational search. */
|
|
@@ -4397,10 +4125,13 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
4397
4125
|
max_extra_prefix: S.optional(S.Number),
|
|
4398
4126
|
max_extra_suffix: S.optional(S.Number),
|
|
4399
4127
|
filter_by: S.optional(S.String),
|
|
4128
|
+
enable_lazy_filter: S.optional(S.Boolean),
|
|
4129
|
+
max_filter_by_candidates: S.optional(S.Number),
|
|
4400
4130
|
sort_by: S.optional(S.String),
|
|
4401
4131
|
facet_by: S.optional(S.String),
|
|
4402
4132
|
max_facet_values: S.optional(S.Number),
|
|
4403
4133
|
facet_query: S.optional(S.String),
|
|
4134
|
+
facet_query_num_typos: S.optional(S.Number),
|
|
4404
4135
|
num_typos: S.optional(S.String),
|
|
4405
4136
|
page: S.optional(S.Number),
|
|
4406
4137
|
per_page: S.optional(S.Number),
|
|
@@ -4409,6 +4140,7 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
4409
4140
|
group_by: S.optional(S.String),
|
|
4410
4141
|
group_limit: S.optional(S.Number),
|
|
4411
4142
|
group_missing_values: S.optional(S.Boolean),
|
|
4143
|
+
group_max_candidates: S.optional(S.Number),
|
|
4412
4144
|
include_fields: S.optional(S.String),
|
|
4413
4145
|
exclude_fields: S.optional(S.String),
|
|
4414
4146
|
highlight_full_fields: S.optional(S.String),
|
|
@@ -4424,11 +4156,13 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
4424
4156
|
enable_synonyms: S.optional(S.Boolean),
|
|
4425
4157
|
enable_analytics: S.optional(S.Boolean),
|
|
4426
4158
|
synonym_prefix: S.optional(S.Boolean),
|
|
4159
|
+
demote_synonym_match: S.optional(S.Boolean),
|
|
4427
4160
|
synonym_num_typos: S.optional(S.Number),
|
|
4428
4161
|
pinned_hits: S.optional(S.String),
|
|
4429
4162
|
hidden_hits: S.optional(S.String),
|
|
4430
4163
|
curation_tags: S.optional(S.String),
|
|
4431
4164
|
highlight_fields: S.optional(S.String),
|
|
4165
|
+
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
4432
4166
|
pre_segmented_query: S.optional(S.Boolean),
|
|
4433
4167
|
preset: S.optional(S.String),
|
|
4434
4168
|
enable_curations: S.optional(S.Boolean),
|
|
@@ -4438,6 +4172,7 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
4438
4172
|
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
4439
4173
|
exhaustive_search: S.optional(S.Boolean),
|
|
4440
4174
|
search_cutoff_ms: S.optional(S.Number),
|
|
4175
|
+
limit_hits: S.optional(S.Number),
|
|
4441
4176
|
use_cache: S.optional(S.Boolean),
|
|
4442
4177
|
cache_ttl: S.optional(S.Number),
|
|
4443
4178
|
min_len_1typo: S.optional(S.Number),
|
|
@@ -4448,18 +4183,18 @@ export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() =>
|
|
|
4448
4183
|
facet_strategy: S.optional(S.String),
|
|
4449
4184
|
stopwords: S.optional(S.String),
|
|
4450
4185
|
facet_return_parent: S.optional(S.String),
|
|
4186
|
+
facet_sample_percent: S.optional(S.Number),
|
|
4187
|
+
facet_sample_threshold: S.optional(S.Number),
|
|
4188
|
+
facet_sample_slope: S.optional(S.Number),
|
|
4451
4189
|
voice_query: S.optional(S.String),
|
|
4452
4190
|
conversation: S.optional(S.Boolean),
|
|
4453
4191
|
conversation_model_id: S.optional(S.String),
|
|
4454
4192
|
conversation_id: S.optional(S.String),
|
|
4455
4193
|
validate_field_names: S.optional(S.Boolean),
|
|
4456
4194
|
}),
|
|
4457
|
-
).annotate({
|
|
4458
|
-
identifier: "MultiSearchParameters",
|
|
4459
|
-
}) as any as S.Schema<MultiSearchParameters>;
|
|
4195
|
+
).annotate({ identifier: "MultiSearchParameters" }) as any as S.Schema<MultiSearchParameters>;
|
|
4460
4196
|
|
|
4461
|
-
export type SearchMultiRequestSearchesList =
|
|
4462
|
-
Array<MultiSearchCollectionParameters>;
|
|
4197
|
+
export type SearchMultiRequestSearchesList = Array<MultiSearchCollectionParameters>;
|
|
4463
4198
|
export const SearchMultiRequestSearchesList = /*@__PURE__*/ S.Array(
|
|
4464
4199
|
MultiSearchCollectionParameters,
|
|
4465
4200
|
) as any as S.Schema<SearchMultiRequestSearchesList>;
|
|
@@ -4476,9 +4211,7 @@ export const SearchMultiRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4476
4211
|
union: S.optional(S.Boolean),
|
|
4477
4212
|
searches: SearchMultiRequestSearchesList,
|
|
4478
4213
|
}).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 })),
|
|
4479
|
-
).annotate({
|
|
4480
|
-
identifier: "SearchMultiRequest",
|
|
4481
|
-
}) as any as S.Schema<SearchMultiRequest>;
|
|
4214
|
+
).annotate({ identifier: "SearchMultiRequest" }) as any as S.Schema<SearchMultiRequest>;
|
|
4482
4215
|
|
|
4483
4216
|
export type MultiSearchResultItemFacetCountsList = Array<FacetCounts>;
|
|
4484
4217
|
export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(
|
|
@@ -4497,17 +4230,13 @@ export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(
|
|
|
4497
4230
|
) as any as S.Schema<MultiSearchResultItemHitsList>;
|
|
4498
4231
|
|
|
4499
4232
|
/** Returned only for union query response. */
|
|
4500
|
-
export type MultiSearchResultItemUnionRequestParamsList =
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
SearchRequestParams,
|
|
4505
|
-
) as any as S.Schema<MultiSearchResultItemUnionRequestParamsList>;
|
|
4233
|
+
export type MultiSearchResultItemUnionRequestParamsList = Array<SearchRequestParams>;
|
|
4234
|
+
export const MultiSearchResultItemUnionRequestParamsList = /*@__PURE__*/ S.Array(
|
|
4235
|
+
SearchRequestParams,
|
|
4236
|
+
) as any as S.Schema<MultiSearchResultItemUnionRequestParamsList>;
|
|
4506
4237
|
|
|
4507
4238
|
/** Custom JSON object that can be returned in the search response */
|
|
4508
|
-
export type MultiSearchResultItemMetadataMap = {
|
|
4509
|
-
[key: string]: unknown | undefined;
|
|
4510
|
-
};
|
|
4239
|
+
export type MultiSearchResultItemMetadataMap = { [key: string]: unknown | undefined };
|
|
4511
4240
|
export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(
|
|
4512
4241
|
S.String,
|
|
4513
4242
|
S.Unknown,
|
|
@@ -4553,16 +4282,12 @@ export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
4553
4282
|
hits: S.optional(MultiSearchResultItemHitsList),
|
|
4554
4283
|
request_params: S.optional(SearchRequestParams),
|
|
4555
4284
|
conversation: S.optional(SearchResultConversation),
|
|
4556
|
-
union_request_params: S.optional(
|
|
4557
|
-
MultiSearchResultItemUnionRequestParamsList,
|
|
4558
|
-
),
|
|
4285
|
+
union_request_params: S.optional(MultiSearchResultItemUnionRequestParamsList),
|
|
4559
4286
|
metadata: S.optional(MultiSearchResultItemMetadataMap),
|
|
4560
4287
|
code: S.optional(S.Number),
|
|
4561
4288
|
error: S.optional(S.String),
|
|
4562
4289
|
}),
|
|
4563
|
-
).annotate({
|
|
4564
|
-
identifier: "MultiSearchResultItem",
|
|
4565
|
-
}) as any as S.Schema<MultiSearchResultItem>;
|
|
4290
|
+
).annotate({ identifier: "MultiSearchResultItem" }) as any as S.Schema<MultiSearchResultItem>;
|
|
4566
4291
|
|
|
4567
4292
|
export type MultiSearchResultResultsList = Array<MultiSearchResultItem>;
|
|
4568
4293
|
export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(
|
|
@@ -4578,9 +4303,7 @@ export const MultiSearchResult = /*@__PURE__*/ S.suspend(() =>
|
|
|
4578
4303
|
results: MultiSearchResultResultsList,
|
|
4579
4304
|
conversation: S.optional(SearchResultConversation),
|
|
4580
4305
|
}),
|
|
4581
|
-
).annotate({
|
|
4582
|
-
identifier: "MultiSearchResult",
|
|
4583
|
-
}) as any as S.Schema<MultiSearchResult>;
|
|
4306
|
+
).annotate({ identifier: "MultiSearchResult" }) as any as S.Schema<MultiSearchResult>;
|
|
4584
4307
|
|
|
4585
4308
|
export interface TakeSnapshotRequest {
|
|
4586
4309
|
/** The directory on the server where the snapshot should be saved. */
|
|
@@ -4590,18 +4313,14 @@ export const TakeSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4590
4313
|
S.Struct({
|
|
4591
4314
|
snapshot_path: S.String.pipe(T.Query()),
|
|
4592
4315
|
}).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 })),
|
|
4593
|
-
).annotate({
|
|
4594
|
-
identifier: "TakeSnapshotRequest",
|
|
4595
|
-
}) as any as S.Schema<TakeSnapshotRequest>;
|
|
4316
|
+
).annotate({ identifier: "TakeSnapshotRequest" }) as any as S.Schema<TakeSnapshotRequest>;
|
|
4596
4317
|
|
|
4597
4318
|
export interface ToggleSlowRequestLogRequest {
|
|
4598
4319
|
log_slow_requests_time_ms: number;
|
|
4599
4320
|
}
|
|
4600
4321
|
export const ToggleSlowRequestLogRequest = /*@__PURE__*/ S.suspend(() =>
|
|
4601
4322
|
S.Struct({
|
|
4602
|
-
log_slow_requests_time_ms: S.Number.pipe(
|
|
4603
|
-
T.Body("log-slow-requests-time-ms"),
|
|
4604
|
-
),
|
|
4323
|
+
log_slow_requests_time_ms: S.Number.pipe(T.Body("log-slow-requests-time-ms")),
|
|
4605
4324
|
}).pipe(T.Http({ method: "POST", uri: "/config", code: 200 })),
|
|
4606
4325
|
).annotate({
|
|
4607
4326
|
identifier: "ToggleSlowRequestLogRequest",
|
|
@@ -4635,16 +4354,8 @@ export const UpdateCollectionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4635
4354
|
fields: S.optional(UpdateCollectionRequestFieldsList),
|
|
4636
4355
|
synonym_sets: S.optional(UpdateCollectionRequestSynonymSetsList),
|
|
4637
4356
|
metadata: S.optional(S.Unknown),
|
|
4638
|
-
}).pipe(
|
|
4639
|
-
|
|
4640
|
-
method: "PATCH",
|
|
4641
|
-
uri: "/collections/{collectionName}",
|
|
4642
|
-
code: 200,
|
|
4643
|
-
}),
|
|
4644
|
-
),
|
|
4645
|
-
).annotate({
|
|
4646
|
-
identifier: "UpdateCollectionRequest",
|
|
4647
|
-
}) as any as S.Schema<UpdateCollectionRequest>;
|
|
4357
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/collections/{collectionName}", code: 200 })),
|
|
4358
|
+
).annotate({ identifier: "UpdateCollectionRequest" }) as any as S.Schema<UpdateCollectionRequest>;
|
|
4648
4359
|
|
|
4649
4360
|
/** A list of fields for querying, filtering and faceting */
|
|
4650
4361
|
export type CollectionUpdateSchemaFieldsList = Array<Field>;
|
|
@@ -4672,9 +4383,7 @@ export const CollectionUpdateSchema = /*@__PURE__*/ S.suspend(() =>
|
|
|
4672
4383
|
synonym_sets: S.optional(CollectionUpdateSchemaSynonymSetsList),
|
|
4673
4384
|
metadata: S.optional(S.Unknown),
|
|
4674
4385
|
}),
|
|
4675
|
-
).annotate({
|
|
4676
|
-
identifier: "CollectionUpdateSchema",
|
|
4677
|
-
}) as any as S.Schema<CollectionUpdateSchema>;
|
|
4386
|
+
).annotate({ identifier: "CollectionUpdateSchema" }) as any as S.Schema<CollectionUpdateSchema>;
|
|
4678
4387
|
|
|
4679
4388
|
export interface UpdateConversationModelRequest {
|
|
4680
4389
|
/** The id of the conversation model to update */
|
|
@@ -4710,13 +4419,7 @@ export const UpdateConversationModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4710
4419
|
ttl: S.optional(S.Number),
|
|
4711
4420
|
max_bytes: S.optional(S.Number),
|
|
4712
4421
|
vllm_url: S.optional(S.String),
|
|
4713
|
-
}).pipe(
|
|
4714
|
-
T.Http({
|
|
4715
|
-
method: "PUT",
|
|
4716
|
-
uri: "/conversations/models/{modelId}",
|
|
4717
|
-
code: 200,
|
|
4718
|
-
}),
|
|
4719
|
-
),
|
|
4422
|
+
}).pipe(T.Http({ method: "PUT", uri: "/conversations/models/{modelId}", code: 200 })),
|
|
4720
4423
|
).annotate({
|
|
4721
4424
|
identifier: "UpdateConversationModelRequest",
|
|
4722
4425
|
}) as any as S.Schema<UpdateConversationModelRequest>;
|
|
@@ -4777,28 +4480,23 @@ export const UpdateDocumentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4777
4480
|
code: 200,
|
|
4778
4481
|
}),
|
|
4779
4482
|
),
|
|
4780
|
-
).annotate({
|
|
4781
|
-
identifier: "UpdateDocumentRequest",
|
|
4782
|
-
}) as any as S.Schema<UpdateDocumentRequest>;
|
|
4483
|
+
).annotate({ identifier: "UpdateDocumentRequest" }) as any as S.Schema<UpdateDocumentRequest>;
|
|
4783
4484
|
|
|
4784
4485
|
export type UpdateDocumentResponse = unknown;
|
|
4785
4486
|
export const UpdateDocumentResponse = /*@__PURE__*/ S.suspend(() =>
|
|
4786
4487
|
S.Unknown.pipe(T.RawResponseRoot()),
|
|
4787
|
-
).annotate({
|
|
4788
|
-
identifier: "UpdateDocumentResponse",
|
|
4789
|
-
}) as any as S.Schema<UpdateDocumentResponse>;
|
|
4488
|
+
).annotate({ identifier: "UpdateDocumentResponse" }) as any as S.Schema<UpdateDocumentResponse>;
|
|
4790
4489
|
|
|
4791
4490
|
export interface UpdateDocumentsRequestUpdateDocumentsParameters {
|
|
4792
4491
|
filter_by?: string;
|
|
4793
4492
|
}
|
|
4794
|
-
export const UpdateDocumentsRequestUpdateDocumentsParameters =
|
|
4795
|
-
|
|
4796
|
-
S.
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
}) as any as S.Schema<UpdateDocumentsRequestUpdateDocumentsParameters>;
|
|
4493
|
+
export const UpdateDocumentsRequestUpdateDocumentsParameters = /*@__PURE__*/ S.suspend(() =>
|
|
4494
|
+
S.Struct({
|
|
4495
|
+
filter_by: S.optional(S.String),
|
|
4496
|
+
}),
|
|
4497
|
+
).annotate({
|
|
4498
|
+
identifier: "UpdateDocumentsRequestUpdateDocumentsParameters",
|
|
4499
|
+
}) as any as S.Schema<UpdateDocumentsRequestUpdateDocumentsParameters>;
|
|
4802
4500
|
|
|
4803
4501
|
export interface UpdateDocumentsRequest {
|
|
4804
4502
|
/** The name of the collection to update documents in */
|
|
@@ -4811,16 +4509,8 @@ export const UpdateDocumentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4811
4509
|
updateDocumentsParameters: S.optional(
|
|
4812
4510
|
UpdateDocumentsRequestUpdateDocumentsParameters.pipe(T.Query()),
|
|
4813
4511
|
),
|
|
4814
|
-
}).pipe(
|
|
4815
|
-
|
|
4816
|
-
method: "PATCH",
|
|
4817
|
-
uri: "/collections/{collectionName}/documents",
|
|
4818
|
-
code: 200,
|
|
4819
|
-
}),
|
|
4820
|
-
),
|
|
4821
|
-
).annotate({
|
|
4822
|
-
identifier: "UpdateDocumentsRequest",
|
|
4823
|
-
}) as any as S.Schema<UpdateDocumentsRequest>;
|
|
4512
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/collections/{collectionName}/documents", code: 200 })),
|
|
4513
|
+
).annotate({ identifier: "UpdateDocumentsRequest" }) as any as S.Schema<UpdateDocumentsRequest>;
|
|
4824
4514
|
|
|
4825
4515
|
export interface UpdateDocumentsResponse {
|
|
4826
4516
|
/** The number of documents that have been updated */
|
|
@@ -4830,16 +4520,13 @@ export const UpdateDocumentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4830
4520
|
S.Struct({
|
|
4831
4521
|
num_updated: S.Number,
|
|
4832
4522
|
}),
|
|
4833
|
-
).annotate({
|
|
4834
|
-
identifier: "UpdateDocumentsResponse",
|
|
4835
|
-
}) as any as S.Schema<UpdateDocumentsResponse>;
|
|
4523
|
+
).annotate({ identifier: "UpdateDocumentsResponse" }) as any as S.Schema<UpdateDocumentsResponse>;
|
|
4836
4524
|
|
|
4837
4525
|
/** Stop sequences for the NL model (Google-specific) */
|
|
4838
4526
|
export type UpdateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
4839
|
-
export const UpdateNLSearchModelRequestStopSequencesList =
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
) as any as S.Schema<UpdateNLSearchModelRequestStopSequencesList>;
|
|
4527
|
+
export const UpdateNLSearchModelRequestStopSequencesList = /*@__PURE__*/ S.Array(
|
|
4528
|
+
S.String,
|
|
4529
|
+
) as any as S.Schema<UpdateNLSearchModelRequestStopSequencesList>;
|
|
4843
4530
|
|
|
4844
4531
|
export interface UpdateNLSearchModelRequest {
|
|
4845
4532
|
/** The ID of the NL search model to update */
|
|
@@ -4905,19 +4592,16 @@ export const UpdateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4905
4592
|
max_output_tokens: S.optional(S.Number),
|
|
4906
4593
|
account_id: S.optional(S.String),
|
|
4907
4594
|
id: S.optional(S.String),
|
|
4908
|
-
}).pipe(
|
|
4909
|
-
T.Http({ method: "PUT", uri: "/nl_search_models/{modelId}", code: 200 }),
|
|
4910
|
-
),
|
|
4595
|
+
}).pipe(T.Http({ method: "PUT", uri: "/nl_search_models/{modelId}", code: 200 })),
|
|
4911
4596
|
).annotate({
|
|
4912
4597
|
identifier: "UpdateNLSearchModelRequest",
|
|
4913
4598
|
}) as any as S.Schema<UpdateNLSearchModelRequest>;
|
|
4914
4599
|
|
|
4915
4600
|
/** Stop sequences for the NL model (Google-specific) */
|
|
4916
4601
|
export type UpdateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
4917
|
-
export const UpdateNLSearchModelResponseStopSequencesList =
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
) as any as S.Schema<UpdateNLSearchModelResponseStopSequencesList>;
|
|
4602
|
+
export const UpdateNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(
|
|
4603
|
+
S.String,
|
|
4604
|
+
) as any as S.Schema<UpdateNLSearchModelResponseStopSequencesList>;
|
|
4921
4605
|
|
|
4922
4606
|
export interface UpdateNLSearchModelResponse {
|
|
4923
4607
|
/** Name of the NL model to use */
|
|
@@ -4996,15 +4680,12 @@ export const UpsertAliasRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4996
4680
|
aliasName: S.String.pipe(T.Label()),
|
|
4997
4681
|
collection_name: S.String,
|
|
4998
4682
|
}).pipe(T.Http({ method: "PUT", uri: "/aliases/{aliasName}", code: 200 })),
|
|
4999
|
-
).annotate({
|
|
5000
|
-
identifier: "UpsertAliasRequest",
|
|
5001
|
-
}) as any as S.Schema<UpsertAliasRequest>;
|
|
4683
|
+
).annotate({ identifier: "UpsertAliasRequest" }) as any as S.Schema<UpsertAliasRequest>;
|
|
5002
4684
|
|
|
5003
4685
|
export type UpsertAnalyticsRuleRequestParamsMetaFieldsList = Array<string>;
|
|
5004
|
-
export const UpsertAnalyticsRuleRequestParamsMetaFieldsList =
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
) as any as S.Schema<UpsertAnalyticsRuleRequestParamsMetaFieldsList>;
|
|
4686
|
+
export const UpsertAnalyticsRuleRequestParamsMetaFieldsList = /*@__PURE__*/ S.Array(
|
|
4687
|
+
S.String,
|
|
4688
|
+
) as any as S.Schema<UpsertAnalyticsRuleRequestParamsMetaFieldsList>;
|
|
5008
4689
|
|
|
5009
4690
|
export interface UpsertAnalyticsRuleRequestParams {
|
|
5010
4691
|
destination_collection?: string;
|
|
@@ -5042,18 +4723,15 @@ export const UpsertAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5042
4723
|
name: S.optional(S.String),
|
|
5043
4724
|
rule_tag: S.optional(S.String),
|
|
5044
4725
|
params: S.optional(UpsertAnalyticsRuleRequestParams),
|
|
5045
|
-
}).pipe(
|
|
5046
|
-
T.Http({ method: "PUT", uri: "/analytics/rules/{ruleName}", code: 200 }),
|
|
5047
|
-
),
|
|
4726
|
+
}).pipe(T.Http({ method: "PUT", uri: "/analytics/rules/{ruleName}", code: 200 })),
|
|
5048
4727
|
).annotate({
|
|
5049
4728
|
identifier: "UpsertAnalyticsRuleRequest",
|
|
5050
4729
|
}) as any as S.Schema<UpsertAnalyticsRuleRequest>;
|
|
5051
4730
|
|
|
5052
4731
|
export type UpsertAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
5053
|
-
export const UpsertAnalyticsRuleResponseParamsMetaFieldsList =
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
) as any as S.Schema<UpsertAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
4732
|
+
export const UpsertAnalyticsRuleResponseParamsMetaFieldsList = /*@__PURE__*/ S.Array(
|
|
4733
|
+
S.String,
|
|
4734
|
+
) as any as S.Schema<UpsertAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
5057
4735
|
|
|
5058
4736
|
export interface UpsertAnalyticsRuleResponseParams {
|
|
5059
4737
|
destination_collection?: string;
|
|
@@ -5118,20 +4796,11 @@ export const UpsertCurationSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5118
4796
|
curationSetName: S.String.pipe(T.Label()),
|
|
5119
4797
|
items: UpsertCurationSetRequestItemsList,
|
|
5120
4798
|
description: S.optional(S.String),
|
|
5121
|
-
}).pipe(
|
|
5122
|
-
|
|
5123
|
-
method: "PUT",
|
|
5124
|
-
uri: "/curation_sets/{curationSetName}",
|
|
5125
|
-
code: 200,
|
|
5126
|
-
}),
|
|
5127
|
-
),
|
|
5128
|
-
).annotate({
|
|
5129
|
-
identifier: "UpsertCurationSetRequest",
|
|
5130
|
-
}) as any as S.Schema<UpsertCurationSetRequest>;
|
|
4799
|
+
}).pipe(T.Http({ method: "PUT", uri: "/curation_sets/{curationSetName}", code: 200 })),
|
|
4800
|
+
).annotate({ identifier: "UpsertCurationSetRequest" }) as any as S.Schema<UpsertCurationSetRequest>;
|
|
5131
4801
|
|
|
5132
4802
|
/** Array of curation items */
|
|
5133
|
-
export type UpsertCurationSetResponseItemsList =
|
|
5134
|
-
Array<CurationItemCreateSchema>;
|
|
4803
|
+
export type UpsertCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
5135
4804
|
export const UpsertCurationSetResponseItemsList = /*@__PURE__*/ S.Array(
|
|
5136
4805
|
CurationItemCreateSchema,
|
|
5137
4806
|
) as any as S.Schema<UpsertCurationSetResponseItemsList>;
|
|
@@ -5214,11 +4883,7 @@ export const UpsertCurationSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5214
4883
|
stop_processing: S.optional(S.Boolean),
|
|
5215
4884
|
id: S.optional(S.String),
|
|
5216
4885
|
}).pipe(
|
|
5217
|
-
T.Http({
|
|
5218
|
-
method: "PUT",
|
|
5219
|
-
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
5220
|
-
code: 200,
|
|
5221
|
-
}),
|
|
4886
|
+
T.Http({ method: "PUT", uri: "/curation_sets/{curationSetName}/items/{itemId}", code: 200 }),
|
|
5222
4887
|
),
|
|
5223
4888
|
).annotate({
|
|
5224
4889
|
identifier: "UpsertCurationSetItemRequest",
|
|
@@ -5283,9 +4948,7 @@ export const UpsertCurationSetItemResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
5283
4948
|
identifier: "UpsertCurationSetItemResponse",
|
|
5284
4949
|
}) as any as S.Schema<UpsertCurationSetItemResponse>;
|
|
5285
4950
|
|
|
5286
|
-
export type UpsertPresetRequestValue =
|
|
5287
|
-
| SearchParameters
|
|
5288
|
-
| MultiSearchSearchesParameter;
|
|
4951
|
+
export type UpsertPresetRequestValue = SearchParameters | MultiSearchSearchesParameter;
|
|
5289
4952
|
export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
5290
4953
|
T.UnionCases([
|
|
5291
4954
|
[
|
|
@@ -5301,11 +4964,13 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5301
4964
|
"max_extra_prefix",
|
|
5302
4965
|
"max_extra_suffix",
|
|
5303
4966
|
"filter_by",
|
|
4967
|
+
"enable_lazy_filter",
|
|
5304
4968
|
"max_filter_by_candidates",
|
|
5305
4969
|
"sort_by",
|
|
5306
4970
|
"facet_by",
|
|
5307
4971
|
"max_facet_values",
|
|
5308
4972
|
"facet_query",
|
|
4973
|
+
"facet_query_num_typos",
|
|
5309
4974
|
"num_typos",
|
|
5310
4975
|
"page",
|
|
5311
4976
|
"per_page",
|
|
@@ -5314,6 +4979,7 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5314
4979
|
"group_by",
|
|
5315
4980
|
"group_limit",
|
|
5316
4981
|
"group_missing_values",
|
|
4982
|
+
"group_max_candidates",
|
|
5317
4983
|
"include_fields",
|
|
5318
4984
|
"exclude_fields",
|
|
5319
4985
|
"highlight_full_fields",
|
|
@@ -5331,11 +4997,13 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5331
4997
|
"filter_curated_hits",
|
|
5332
4998
|
"enable_synonyms",
|
|
5333
4999
|
"synonym_prefix",
|
|
5000
|
+
"demote_synonym_match",
|
|
5334
5001
|
"synonym_num_typos",
|
|
5335
5002
|
"pinned_hits",
|
|
5336
5003
|
"hidden_hits",
|
|
5337
5004
|
"curation_tags",
|
|
5338
5005
|
"highlight_fields",
|
|
5006
|
+
"rerank_hybrid_matches",
|
|
5339
5007
|
"split_join_tokens",
|
|
5340
5008
|
"pre_segmented_query",
|
|
5341
5009
|
"preset",
|
|
@@ -5347,6 +5015,7 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5347
5015
|
"enable_typos_for_numerical_tokens",
|
|
5348
5016
|
"exhaustive_search",
|
|
5349
5017
|
"search_cutoff_ms",
|
|
5018
|
+
"limit_hits",
|
|
5350
5019
|
"use_cache",
|
|
5351
5020
|
"cache_ttl",
|
|
5352
5021
|
"min_len_1typo",
|
|
@@ -5357,6 +5026,9 @@ export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5357
5026
|
"facet_strategy",
|
|
5358
5027
|
"stopwords",
|
|
5359
5028
|
"facet_return_parent",
|
|
5029
|
+
"facet_sample_percent",
|
|
5030
|
+
"facet_sample_threshold",
|
|
5031
|
+
"facet_sample_slope",
|
|
5360
5032
|
"voice_query",
|
|
5361
5033
|
"conversation",
|
|
5362
5034
|
"conversation_model_id",
|
|
@@ -5376,13 +5048,9 @@ export const UpsertPresetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5376
5048
|
presetId: S.String.pipe(T.Label()),
|
|
5377
5049
|
value: UpsertPresetRequestValue,
|
|
5378
5050
|
}).pipe(T.Http({ method: "PUT", uri: "/presets/{presetId}", code: 200 })),
|
|
5379
|
-
).annotate({
|
|
5380
|
-
identifier: "UpsertPresetRequest",
|
|
5381
|
-
}) as any as S.Schema<UpsertPresetRequest>;
|
|
5051
|
+
).annotate({ identifier: "UpsertPresetRequest" }) as any as S.Schema<UpsertPresetRequest>;
|
|
5382
5052
|
|
|
5383
|
-
export type UpsertPresetResponseValue =
|
|
5384
|
-
| SearchParameters
|
|
5385
|
-
| MultiSearchSearchesParameter;
|
|
5053
|
+
export type UpsertPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
5386
5054
|
export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
5387
5055
|
T.UnionCases([
|
|
5388
5056
|
[
|
|
@@ -5398,11 +5066,13 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5398
5066
|
"max_extra_prefix",
|
|
5399
5067
|
"max_extra_suffix",
|
|
5400
5068
|
"filter_by",
|
|
5069
|
+
"enable_lazy_filter",
|
|
5401
5070
|
"max_filter_by_candidates",
|
|
5402
5071
|
"sort_by",
|
|
5403
5072
|
"facet_by",
|
|
5404
5073
|
"max_facet_values",
|
|
5405
5074
|
"facet_query",
|
|
5075
|
+
"facet_query_num_typos",
|
|
5406
5076
|
"num_typos",
|
|
5407
5077
|
"page",
|
|
5408
5078
|
"per_page",
|
|
@@ -5411,6 +5081,7 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5411
5081
|
"group_by",
|
|
5412
5082
|
"group_limit",
|
|
5413
5083
|
"group_missing_values",
|
|
5084
|
+
"group_max_candidates",
|
|
5414
5085
|
"include_fields",
|
|
5415
5086
|
"exclude_fields",
|
|
5416
5087
|
"highlight_full_fields",
|
|
@@ -5428,11 +5099,13 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5428
5099
|
"filter_curated_hits",
|
|
5429
5100
|
"enable_synonyms",
|
|
5430
5101
|
"synonym_prefix",
|
|
5102
|
+
"demote_synonym_match",
|
|
5431
5103
|
"synonym_num_typos",
|
|
5432
5104
|
"pinned_hits",
|
|
5433
5105
|
"hidden_hits",
|
|
5434
5106
|
"curation_tags",
|
|
5435
5107
|
"highlight_fields",
|
|
5108
|
+
"rerank_hybrid_matches",
|
|
5436
5109
|
"split_join_tokens",
|
|
5437
5110
|
"pre_segmented_query",
|
|
5438
5111
|
"preset",
|
|
@@ -5444,6 +5117,7 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5444
5117
|
"enable_typos_for_numerical_tokens",
|
|
5445
5118
|
"exhaustive_search",
|
|
5446
5119
|
"search_cutoff_ms",
|
|
5120
|
+
"limit_hits",
|
|
5447
5121
|
"use_cache",
|
|
5448
5122
|
"cache_ttl",
|
|
5449
5123
|
"min_len_1typo",
|
|
@@ -5454,6 +5128,9 @@ export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(
|
|
|
5454
5128
|
"facet_strategy",
|
|
5455
5129
|
"stopwords",
|
|
5456
5130
|
"facet_return_parent",
|
|
5131
|
+
"facet_sample_percent",
|
|
5132
|
+
"facet_sample_threshold",
|
|
5133
|
+
"facet_sample_slope",
|
|
5457
5134
|
"voice_query",
|
|
5458
5135
|
"conversation",
|
|
5459
5136
|
"conversation_model_id",
|
|
@@ -5472,9 +5149,7 @@ export const UpsertPresetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
5472
5149
|
value: UpsertPresetResponseValue,
|
|
5473
5150
|
name: S.String,
|
|
5474
5151
|
}),
|
|
5475
|
-
).annotate({
|
|
5476
|
-
identifier: "UpsertPresetResponse",
|
|
5477
|
-
}) as any as S.Schema<UpsertPresetResponse>;
|
|
5152
|
+
).annotate({ identifier: "UpsertPresetResponse" }) as any as S.Schema<UpsertPresetResponse>;
|
|
5478
5153
|
|
|
5479
5154
|
export type UpsertStopwordsSetRequestStopwordsList = Array<string>;
|
|
5480
5155
|
export const UpsertStopwordsSetRequestStopwordsList = /*@__PURE__*/ S.Array(
|
|
@@ -5513,12 +5188,8 @@ export const UpsertSynonymSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5513
5188
|
S.Struct({
|
|
5514
5189
|
synonymSetName: S.String.pipe(T.Label()),
|
|
5515
5190
|
items: UpsertSynonymSetRequestItemsList,
|
|
5516
|
-
}).pipe(
|
|
5517
|
-
|
|
5518
|
-
),
|
|
5519
|
-
).annotate({
|
|
5520
|
-
identifier: "UpsertSynonymSetRequest",
|
|
5521
|
-
}) as any as S.Schema<UpsertSynonymSetRequest>;
|
|
5191
|
+
}).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}", code: 200 })),
|
|
5192
|
+
).annotate({ identifier: "UpsertSynonymSetRequest" }) as any as S.Schema<UpsertSynonymSetRequest>;
|
|
5522
5193
|
|
|
5523
5194
|
/** Array of synonym items */
|
|
5524
5195
|
export type UpsertSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
@@ -5537,9 +5208,7 @@ export const UpsertSynonymSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
5537
5208
|
items: UpsertSynonymSetResponseItemsList,
|
|
5538
5209
|
name: S.String,
|
|
5539
5210
|
}),
|
|
5540
|
-
).annotate({
|
|
5541
|
-
identifier: "UpsertSynonymSetResponse",
|
|
5542
|
-
}) as any as S.Schema<UpsertSynonymSetResponse>;
|
|
5211
|
+
).annotate({ identifier: "UpsertSynonymSetResponse" }) as any as S.Schema<UpsertSynonymSetResponse>;
|
|
5543
5212
|
|
|
5544
5213
|
/** Array of words that should be considered as synonyms */
|
|
5545
5214
|
export type UpsertSynonymSetItemRequestSynonymsList = Array<string>;
|
|
@@ -5549,10 +5218,9 @@ export const UpsertSynonymSetItemRequestSynonymsList = /*@__PURE__*/ S.Array(
|
|
|
5549
5218
|
|
|
5550
5219
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
5551
5220
|
export type UpsertSynonymSetItemRequestSymbolsToIndexList = Array<string>;
|
|
5552
|
-
export const UpsertSynonymSetItemRequestSymbolsToIndexList =
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
) as any as S.Schema<UpsertSynonymSetItemRequestSymbolsToIndexList>;
|
|
5221
|
+
export const UpsertSynonymSetItemRequestSymbolsToIndexList = /*@__PURE__*/ S.Array(
|
|
5222
|
+
S.String,
|
|
5223
|
+
) as any as S.Schema<UpsertSynonymSetItemRequestSymbolsToIndexList>;
|
|
5556
5224
|
|
|
5557
5225
|
export interface UpsertSynonymSetItemRequest {
|
|
5558
5226
|
/** The name of the synonym set */
|
|
@@ -5577,11 +5245,7 @@ export const UpsertSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
5577
5245
|
locale: S.optional(S.String),
|
|
5578
5246
|
symbols_to_index: S.optional(UpsertSynonymSetItemRequestSymbolsToIndexList),
|
|
5579
5247
|
}).pipe(
|
|
5580
|
-
T.Http({
|
|
5581
|
-
method: "PUT",
|
|
5582
|
-
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
5583
|
-
code: 200,
|
|
5584
|
-
}),
|
|
5248
|
+
T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}/items/{itemId}", code: 200 }),
|
|
5585
5249
|
),
|
|
5586
5250
|
).annotate({
|
|
5587
5251
|
identifier: "UpsertSynonymSetItemRequest",
|
|
@@ -5595,10 +5259,9 @@ export const UpsertSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(
|
|
|
5595
5259
|
|
|
5596
5260
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
5597
5261
|
export type UpsertSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
5598
|
-
export const UpsertSynonymSetItemResponseSymbolsToIndexList =
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
) as any as S.Schema<UpsertSynonymSetItemResponseSymbolsToIndexList>;
|
|
5262
|
+
export const UpsertSynonymSetItemResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(
|
|
5263
|
+
S.String,
|
|
5264
|
+
) as any as S.Schema<UpsertSynonymSetItemResponseSymbolsToIndexList>;
|
|
5602
5265
|
|
|
5603
5266
|
export interface UpsertSynonymSetItemResponse {
|
|
5604
5267
|
/** Unique identifier for the synonym item */
|
|
@@ -5618,9 +5281,7 @@ export const UpsertSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
5618
5281
|
synonyms: UpsertSynonymSetItemResponseSynonymsList,
|
|
5619
5282
|
root: S.optional(S.String),
|
|
5620
5283
|
locale: S.optional(S.String),
|
|
5621
|
-
symbols_to_index: S.optional(
|
|
5622
|
-
UpsertSynonymSetItemResponseSymbolsToIndexList,
|
|
5623
|
-
),
|
|
5284
|
+
symbols_to_index: S.optional(UpsertSynonymSetItemResponseSymbolsToIndexList),
|
|
5624
5285
|
}),
|
|
5625
5286
|
).annotate({
|
|
5626
5287
|
identifier: "UpsertSynonymSetItemResponse",
|
|
@@ -5628,9 +5289,7 @@ export const UpsertSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
5628
5289
|
|
|
5629
5290
|
export interface VoteRequest {}
|
|
5630
5291
|
export const VoteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
5631
|
-
S.Struct({}).pipe(
|
|
5632
|
-
T.Http({ method: "POST", uri: "/operations/vote", code: 200 }),
|
|
5633
|
-
),
|
|
5292
|
+
S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/vote", code: 200 })),
|
|
5634
5293
|
).annotate({ identifier: "VoteRequest" }) as any as S.Schema<VoteRequest>;
|
|
5635
5294
|
|
|
5636
5295
|
export type ClearCacheError = TypesenseOpError;
|
|
@@ -6518,16 +6177,16 @@ export const importStemmingDictionary: API.OperationMethod<
|
|
|
6518
6177
|
retry: Retry.Retry,
|
|
6519
6178
|
}));
|
|
6520
6179
|
|
|
6521
|
-
export type
|
|
6180
|
+
export type IndexDocumentError = NotFound | TypesenseOpError;
|
|
6522
6181
|
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
6523
|
-
export const
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6182
|
+
export const indexDocument: API.OperationMethod<
|
|
6183
|
+
IndexDocumentRequest,
|
|
6184
|
+
IndexDocumentResponse,
|
|
6185
|
+
IndexDocumentError,
|
|
6527
6186
|
TypesenseOpContext
|
|
6528
6187
|
> = /*@__PURE__*/ API.make(() => ({
|
|
6529
|
-
input:
|
|
6530
|
-
output:
|
|
6188
|
+
input: IndexDocumentRequest,
|
|
6189
|
+
output: IndexDocumentResponse,
|
|
6531
6190
|
errors: [NotFound],
|
|
6532
6191
|
protocol: TypesenseProtocol,
|
|
6533
6192
|
retry: Retry.Retry,
|
|
@@ -6623,10 +6282,7 @@ export const updateCollection: API.OperationMethod<
|
|
|
6623
6282
|
retry: Retry.Retry,
|
|
6624
6283
|
}));
|
|
6625
6284
|
|
|
6626
|
-
export type UpdateConversationModelError =
|
|
6627
|
-
| BadRequest
|
|
6628
|
-
| NotFound
|
|
6629
|
-
| TypesenseOpError;
|
|
6285
|
+
export type UpdateConversationModelError = BadRequest | NotFound | TypesenseOpError;
|
|
6630
6286
|
/** Update a conversation model Update a conversation model */
|
|
6631
6287
|
export const updateConversationModel: API.OperationMethod<
|
|
6632
6288
|
UpdateConversationModelRequest,
|
|
@@ -6808,15 +6464,11 @@ export const upsertSynonymSetItem: API.OperationMethod<
|
|
|
6808
6464
|
|
|
6809
6465
|
export type VoteError = TypesenseOpError;
|
|
6810
6466
|
/** 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. */
|
|
6811
|
-
export const vote: API.OperationMethod<
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
errors: [],
|
|
6820
|
-
protocol: TypesenseProtocol,
|
|
6821
|
-
retry: Retry.Retry,
|
|
6822
|
-
}));
|
|
6467
|
+
export const vote: API.OperationMethod<VoteRequest, SuccessStatus, VoteError, TypesenseOpContext> =
|
|
6468
|
+
/*@__PURE__*/ API.make(() => ({
|
|
6469
|
+
input: VoteRequest,
|
|
6470
|
+
output: SuccessStatus,
|
|
6471
|
+
errors: [],
|
|
6472
|
+
protocol: TypesenseProtocol,
|
|
6473
|
+
retry: Retry.Retry,
|
|
6474
|
+
}));
|