@distilled.cloud/typesense 1.0.0-rc.2 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -0
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +18 -5
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -42
- package/lib/errors.d.ts +20 -16
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -24
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -9
- package/lib/index.lazy.js +6 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/protocol.d.ts +10 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -31
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -33
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/typesense.d.ts +1319 -1574
- package/lib/services/typesense.d.ts.map +1 -1
- package/lib/services/typesense.js +112 -2916
- package/lib/services/typesense.js.map +1 -1
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/typesense.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -11
- package/package.json +40 -17
- package/src/credentials.ts +32 -27
- package/src/errors.ts +19 -16
- package/src/index.ts +5 -9
- package/src/protocol.ts +28 -33
- package/src/retry.ts +6 -10
- package/src/services/typesense.ts +4377 -5048
- package/src/traits.ts +1 -1
- package/lib/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/protocol.js.map +0 -1
- package/lib/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
|
@@ -1,46 +1,62 @@
|
|
|
1
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
3
|
import { type TypesenseOpError, type TypesenseOpContext } from "../protocol.ts";
|
|
4
4
|
export type { TypesenseOpError, TypesenseOpContext };
|
|
5
|
-
declare const BadRequest_base: S.
|
|
5
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
6
6
|
readonly code: any;
|
|
7
7
|
readonly message: any;
|
|
8
|
-
|
|
8
|
+
readonly body: any;
|
|
9
|
+
readonly headers: any;
|
|
10
|
+
}> & (new (...args: any[]) => {
|
|
11
|
+
"@distilled.cloud/error/categories": {
|
|
12
|
+
BadRequestError: true;
|
|
13
|
+
};
|
|
14
|
+
});
|
|
9
15
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
16
|
+
readonly body?: ApiResponse | string;
|
|
10
17
|
}
|
|
11
|
-
declare const Conflict_base: S.
|
|
18
|
+
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
12
19
|
readonly code: any;
|
|
13
20
|
readonly message: any;
|
|
14
|
-
|
|
21
|
+
readonly body: any;
|
|
22
|
+
readonly headers: any;
|
|
23
|
+
}> & (new (...args: any[]) => {
|
|
24
|
+
"@distilled.cloud/error/categories": {
|
|
25
|
+
ConflictError: true;
|
|
26
|
+
};
|
|
27
|
+
});
|
|
15
28
|
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
29
|
+
readonly body?: ApiResponse | string;
|
|
16
30
|
}
|
|
17
|
-
declare const NotFound_base: S.
|
|
31
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
18
32
|
readonly code: any;
|
|
19
33
|
readonly message: any;
|
|
20
|
-
|
|
34
|
+
readonly body: any;
|
|
35
|
+
readonly headers: any;
|
|
36
|
+
}> & (new (...args: any[]) => {
|
|
37
|
+
"@distilled.cloud/error/categories": {
|
|
38
|
+
BadRequestError: true;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
21
41
|
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
42
|
+
readonly body?: ApiResponse | string;
|
|
22
43
|
}
|
|
23
44
|
export interface ClearCacheRequest {
|
|
24
45
|
}
|
|
25
|
-
export declare const ClearCacheRequest: S.Schema<ClearCacheRequest>;
|
|
26
46
|
export interface SuccessStatus {
|
|
27
47
|
success: boolean;
|
|
28
48
|
}
|
|
29
|
-
export declare const SuccessStatus: S.Schema<SuccessStatus>;
|
|
30
49
|
export interface CompactDbRequest {
|
|
31
50
|
}
|
|
32
|
-
export declare const CompactDbRequest: S.Schema<CompactDbRequest>;
|
|
33
51
|
export type CreateAnalyticsEventRequestDataDocIdsList = Array<string>;
|
|
34
|
-
export declare const CreateAnalyticsEventRequestDataDocIdsList: S.Schema<CreateAnalyticsEventRequestDataDocIdsList>;
|
|
35
52
|
/** Event payload */
|
|
36
53
|
export interface CreateAnalyticsEventRequestData {
|
|
37
|
-
user_id?: string;
|
|
38
|
-
doc_id?: string;
|
|
39
|
-
doc_ids?: CreateAnalyticsEventRequestDataDocIdsList;
|
|
40
|
-
q?: string;
|
|
41
|
-
analytics_tag?: string;
|
|
54
|
+
user_id?: string | undefined;
|
|
55
|
+
doc_id?: string | undefined;
|
|
56
|
+
doc_ids?: CreateAnalyticsEventRequestDataDocIdsList | undefined;
|
|
57
|
+
q?: string | undefined;
|
|
58
|
+
analytics_tag?: string | undefined;
|
|
42
59
|
}
|
|
43
|
-
export declare const CreateAnalyticsEventRequestData: S.Schema<CreateAnalyticsEventRequestData>;
|
|
44
60
|
export interface CreateAnalyticsEventRequest {
|
|
45
61
|
/** Name of the analytics rule this event corresponds to */
|
|
46
62
|
name: string;
|
|
@@ -49,2381 +65,2128 @@ export interface CreateAnalyticsEventRequest {
|
|
|
49
65
|
/** Event payload */
|
|
50
66
|
data: CreateAnalyticsEventRequestData;
|
|
51
67
|
}
|
|
52
|
-
export declare const CreateAnalyticsEventRequest: S.Schema<CreateAnalyticsEventRequest>;
|
|
53
68
|
export interface AnalyticsEventCreateResponse {
|
|
54
69
|
ok: boolean;
|
|
55
70
|
}
|
|
56
|
-
export declare const AnalyticsEventCreateResponse: S.Schema<AnalyticsEventCreateResponse>;
|
|
57
71
|
export type AnalyticsRuleType = "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
58
|
-
export declare const AnalyticsRuleType: any;
|
|
59
72
|
export type AnalyticsRuleCreateParamsMetaFieldsList = Array<string>;
|
|
60
|
-
export declare const AnalyticsRuleCreateParamsMetaFieldsList: S.Schema<AnalyticsRuleCreateParamsMetaFieldsList>;
|
|
61
73
|
export interface AnalyticsRuleCreateParams {
|
|
62
|
-
destination_collection?: string;
|
|
63
|
-
limit?: number;
|
|
64
|
-
capture_search_requests?: boolean;
|
|
65
|
-
meta_fields?: AnalyticsRuleCreateParamsMetaFieldsList;
|
|
66
|
-
expand_query?: boolean;
|
|
67
|
-
counter_field?: string;
|
|
68
|
-
weight?: number;
|
|
69
|
-
}
|
|
70
|
-
export declare const AnalyticsRuleCreateParams: S.Schema<AnalyticsRuleCreateParams>;
|
|
74
|
+
destination_collection?: string | undefined;
|
|
75
|
+
limit?: number | undefined;
|
|
76
|
+
capture_search_requests?: boolean | undefined;
|
|
77
|
+
meta_fields?: AnalyticsRuleCreateParamsMetaFieldsList | undefined;
|
|
78
|
+
expand_query?: boolean | undefined;
|
|
79
|
+
counter_field?: string | undefined;
|
|
80
|
+
weight?: number | undefined;
|
|
81
|
+
}
|
|
71
82
|
export interface AnalyticsRuleCreate {
|
|
72
83
|
name: string;
|
|
73
84
|
type: AnalyticsRuleType | (string & {});
|
|
74
85
|
collection: string;
|
|
75
86
|
event_type: string;
|
|
76
|
-
rule_tag?: string;
|
|
77
|
-
params?: AnalyticsRuleCreateParams;
|
|
87
|
+
rule_tag?: string | undefined;
|
|
88
|
+
params?: AnalyticsRuleCreateParams | undefined;
|
|
78
89
|
}
|
|
79
|
-
export declare const AnalyticsRuleCreate: S.Schema<AnalyticsRuleCreate>;
|
|
80
90
|
export type CreateAnalyticsRuleRequestBodyCase1List = Array<AnalyticsRuleCreate>;
|
|
81
|
-
export declare const CreateAnalyticsRuleRequestBodyCase1List: S.Schema<CreateAnalyticsRuleRequestBodyCase1List>;
|
|
82
91
|
export type CreateAnalyticsRuleRequestBody = AnalyticsRuleCreate | CreateAnalyticsRuleRequestBodyCase1List;
|
|
83
|
-
export declare const CreateAnalyticsRuleRequestBody: any;
|
|
84
92
|
export interface CreateAnalyticsRuleRequest {
|
|
85
93
|
body: CreateAnalyticsRuleRequestBody;
|
|
86
94
|
}
|
|
87
|
-
export declare const CreateAnalyticsRuleRequest: S.Schema<CreateAnalyticsRuleRequest>;
|
|
88
95
|
export type AnalyticsRuleParamsMetaFieldsList = Array<string>;
|
|
89
|
-
export declare const AnalyticsRuleParamsMetaFieldsList: S.Schema<AnalyticsRuleParamsMetaFieldsList>;
|
|
90
96
|
export interface AnalyticsRuleParams {
|
|
91
|
-
destination_collection?: string;
|
|
92
|
-
limit?: number;
|
|
93
|
-
capture_search_requests?: boolean;
|
|
94
|
-
meta_fields?: AnalyticsRuleParamsMetaFieldsList;
|
|
95
|
-
expand_query?: boolean;
|
|
96
|
-
counter_field?: string;
|
|
97
|
-
weight?: number;
|
|
98
|
-
}
|
|
99
|
-
export declare const AnalyticsRuleParams: S.Schema<AnalyticsRuleParams>;
|
|
97
|
+
destination_collection?: string | undefined;
|
|
98
|
+
limit?: number | undefined;
|
|
99
|
+
capture_search_requests?: boolean | undefined;
|
|
100
|
+
meta_fields?: AnalyticsRuleParamsMetaFieldsList | undefined;
|
|
101
|
+
expand_query?: boolean | undefined;
|
|
102
|
+
counter_field?: string | undefined;
|
|
103
|
+
weight?: number | undefined;
|
|
104
|
+
}
|
|
100
105
|
export interface AnalyticsRule {
|
|
101
106
|
name: string;
|
|
102
107
|
type: AnalyticsRuleType;
|
|
103
108
|
collection: string;
|
|
104
109
|
event_type: string;
|
|
105
|
-
rule_tag?: string;
|
|
106
|
-
params?: AnalyticsRuleParams;
|
|
110
|
+
rule_tag?: string | undefined;
|
|
111
|
+
params?: AnalyticsRuleParams | undefined;
|
|
107
112
|
}
|
|
108
|
-
export declare const AnalyticsRule: S.Schema<AnalyticsRule>;
|
|
109
113
|
export interface CreateAnalyticsRuleResponseBodyCase1ItemCase1 {
|
|
110
|
-
error?: string;
|
|
114
|
+
error?: string | undefined;
|
|
111
115
|
}
|
|
112
|
-
export declare const CreateAnalyticsRuleResponseBodyCase1ItemCase1: S.Schema<CreateAnalyticsRuleResponseBodyCase1ItemCase1>;
|
|
113
116
|
export type CreateAnalyticsRuleResponseBodyCase1Item = AnalyticsRule | CreateAnalyticsRuleResponseBodyCase1ItemCase1;
|
|
114
|
-
export declare const CreateAnalyticsRuleResponseBodyCase1Item: any;
|
|
115
117
|
export type CreateAnalyticsRuleResponseBodyCase1List = Array<CreateAnalyticsRuleResponseBodyCase1Item>;
|
|
116
|
-
export declare const CreateAnalyticsRuleResponseBodyCase1List: S.Schema<CreateAnalyticsRuleResponseBodyCase1List>;
|
|
117
118
|
export type CreateAnalyticsRuleResponseBody = AnalyticsRule | CreateAnalyticsRuleResponseBodyCase1List;
|
|
118
|
-
export declare const CreateAnalyticsRuleResponseBody: any;
|
|
119
119
|
export type CreateAnalyticsRuleResponse = CreateAnalyticsRuleResponseBody;
|
|
120
|
-
export declare const CreateAnalyticsRuleResponse: S.Schema<CreateAnalyticsRuleResponse>;
|
|
121
120
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
122
121
|
export type FieldTokenSeparatorsList = Array<string>;
|
|
123
|
-
export declare const FieldTokenSeparatorsList: S.Schema<FieldTokenSeparatorsList>;
|
|
124
122
|
/** List of symbols or special characters to be indexed. */
|
|
125
123
|
export type FieldSymbolsToIndexList = Array<string>;
|
|
126
|
-
export declare const FieldSymbolsToIndexList: S.Schema<FieldSymbolsToIndexList>;
|
|
127
124
|
export type FieldEmbedFromList = Array<string>;
|
|
128
|
-
export declare const FieldEmbedFromList: S.Schema<FieldEmbedFromList>;
|
|
129
125
|
export interface FieldEmbedModelConfig {
|
|
130
126
|
model_name: string;
|
|
131
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
132
|
-
url?: string;
|
|
133
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
134
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
135
|
-
client_id?: string;
|
|
136
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
137
|
-
project_id?: string;
|
|
138
|
-
indexing_prefix?: string;
|
|
139
|
-
query_prefix?: string;
|
|
140
|
-
}
|
|
141
|
-
export declare const FieldEmbedModelConfig: S.Schema<FieldEmbedModelConfig>;
|
|
127
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
128
|
+
url?: string | undefined;
|
|
129
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
130
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
131
|
+
client_id?: string | undefined;
|
|
132
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
133
|
+
project_id?: string | undefined;
|
|
134
|
+
indexing_prefix?: string | undefined;
|
|
135
|
+
query_prefix?: string | undefined;
|
|
136
|
+
}
|
|
142
137
|
export interface FieldEmbed {
|
|
143
138
|
from: FieldEmbedFromList;
|
|
144
139
|
model_config: FieldEmbedModelConfig;
|
|
145
140
|
}
|
|
146
|
-
export declare const FieldEmbed: S.Schema<FieldEmbed>;
|
|
147
141
|
export interface Field {
|
|
148
142
|
name: string;
|
|
149
143
|
type: string;
|
|
150
|
-
optional?: boolean;
|
|
151
|
-
facet?: boolean;
|
|
152
|
-
index?: boolean;
|
|
153
|
-
locale?: string;
|
|
154
|
-
sort?: boolean;
|
|
155
|
-
infix?: boolean;
|
|
144
|
+
optional?: boolean | undefined;
|
|
145
|
+
facet?: boolean | undefined;
|
|
146
|
+
index?: boolean | undefined;
|
|
147
|
+
locale?: string | undefined;
|
|
148
|
+
sort?: boolean | undefined;
|
|
149
|
+
infix?: boolean | undefined;
|
|
156
150
|
/** Name of a field in another collection that should be linked to this collection so that it can be joined during query. */
|
|
157
|
-
reference?: string;
|
|
151
|
+
reference?: string | undefined;
|
|
158
152
|
/** Allow documents to be indexed successfully even when the referenced document doesn't exist yet. */
|
|
159
|
-
async_reference?: boolean;
|
|
160
|
-
num_dim?: number;
|
|
161
|
-
drop?: boolean;
|
|
153
|
+
async_reference?: boolean | undefined;
|
|
154
|
+
num_dim?: number | undefined;
|
|
155
|
+
drop?: boolean | undefined;
|
|
162
156
|
/** When set to false, the field value will not be stored on disk. Default: true. */
|
|
163
|
-
store?: boolean;
|
|
157
|
+
store?: boolean | undefined;
|
|
164
158
|
/** The distance metric to be used for vector search. Default: `cosine`. You can also use `ip` for inner product. */
|
|
165
|
-
vec_dist?: string;
|
|
159
|
+
vec_dist?: string | undefined;
|
|
166
160
|
/** Enables an index optimized for range filtering on numerical fields (e.g. rating:>3.5). Default: false. */
|
|
167
|
-
range_index?: boolean;
|
|
161
|
+
range_index?: boolean | undefined;
|
|
168
162
|
/** Values are stemmed before indexing in-memory. Default: false. */
|
|
169
|
-
stem?: boolean;
|
|
163
|
+
stem?: boolean | undefined;
|
|
170
164
|
/** Name of the stemming dictionary to use for this field */
|
|
171
|
-
stem_dictionary?: string;
|
|
165
|
+
stem_dictionary?: string | undefined;
|
|
172
166
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
173
|
-
token_separators?: FieldTokenSeparatorsList;
|
|
167
|
+
token_separators?: FieldTokenSeparatorsList | undefined;
|
|
174
168
|
/** List of symbols or special characters to be indexed. */
|
|
175
|
-
symbols_to_index?: FieldSymbolsToIndexList;
|
|
176
|
-
embed?: FieldEmbed;
|
|
169
|
+
symbols_to_index?: FieldSymbolsToIndexList | undefined;
|
|
170
|
+
embed?: FieldEmbed | undefined;
|
|
177
171
|
}
|
|
178
|
-
export declare const Field: S.Schema<Field>;
|
|
179
172
|
/** A list of fields for querying, filtering and faceting */
|
|
180
173
|
export type CreateCollectionRequestFieldsList = Array<Field>;
|
|
181
|
-
export declare const CreateCollectionRequestFieldsList: S.Schema<CreateCollectionRequestFieldsList>;
|
|
182
174
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
183
175
|
export type CreateCollectionRequestTokenSeparatorsList = Array<string>;
|
|
184
|
-
export declare const CreateCollectionRequestTokenSeparatorsList: S.Schema<CreateCollectionRequestTokenSeparatorsList>;
|
|
185
176
|
/** List of synonym set names to associate with this collection */
|
|
186
177
|
export type CreateCollectionRequestSynonymSetsList = Array<string>;
|
|
187
|
-
export declare const CreateCollectionRequestSynonymSetsList: S.Schema<CreateCollectionRequestSynonymSetsList>;
|
|
188
178
|
/** List of symbols or special characters to be indexed. */
|
|
189
179
|
export type CreateCollectionRequestSymbolsToIndexList = Array<string>;
|
|
190
|
-
export declare const CreateCollectionRequestSymbolsToIndexList: S.Schema<CreateCollectionRequestSymbolsToIndexList>;
|
|
191
180
|
/** Configuration for the voice query model */
|
|
192
181
|
export interface VoiceQueryModelCollectionConfig {
|
|
193
|
-
model_name?: string;
|
|
182
|
+
model_name?: string | undefined;
|
|
194
183
|
}
|
|
195
|
-
export declare const VoiceQueryModelCollectionConfig: S.Schema<VoiceQueryModelCollectionConfig>;
|
|
196
184
|
export interface CreateCollectionRequest {
|
|
197
185
|
/** Name of the collection */
|
|
198
186
|
name: string;
|
|
199
187
|
/** A list of fields for querying, filtering and faceting */
|
|
200
188
|
fields: CreateCollectionRequestFieldsList;
|
|
201
189
|
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
202
|
-
default_sorting_field?: string;
|
|
190
|
+
default_sorting_field?: string | undefined;
|
|
203
191
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
204
|
-
token_separators?: CreateCollectionRequestTokenSeparatorsList;
|
|
192
|
+
token_separators?: CreateCollectionRequestTokenSeparatorsList | undefined;
|
|
205
193
|
/** List of synonym set names to associate with this collection */
|
|
206
|
-
synonym_sets?: CreateCollectionRequestSynonymSetsList;
|
|
194
|
+
synonym_sets?: CreateCollectionRequestSynonymSetsList | undefined;
|
|
207
195
|
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
208
|
-
enable_nested_fields?: boolean;
|
|
196
|
+
enable_nested_fields?: boolean | undefined;
|
|
209
197
|
/** List of symbols or special characters to be indexed. */
|
|
210
|
-
symbols_to_index?: CreateCollectionRequestSymbolsToIndexList;
|
|
211
|
-
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
198
|
+
symbols_to_index?: CreateCollectionRequestSymbolsToIndexList | undefined;
|
|
199
|
+
voice_query_model?: VoiceQueryModelCollectionConfig | undefined;
|
|
212
200
|
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
213
|
-
metadata?: unknown;
|
|
201
|
+
metadata?: unknown | undefined;
|
|
214
202
|
}
|
|
215
|
-
export declare const CreateCollectionRequest: S.Schema<CreateCollectionRequest>;
|
|
216
203
|
/** A list of fields for querying, filtering and faceting */
|
|
217
204
|
export type CreateCollectionResponseFieldsList = Array<Field>;
|
|
218
|
-
export declare const CreateCollectionResponseFieldsList: S.Schema<CreateCollectionResponseFieldsList>;
|
|
219
205
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
220
206
|
export type CreateCollectionResponseTokenSeparatorsList = Array<string>;
|
|
221
|
-
export declare const CreateCollectionResponseTokenSeparatorsList: S.Schema<CreateCollectionResponseTokenSeparatorsList>;
|
|
222
207
|
/** List of synonym set names to associate with this collection */
|
|
223
208
|
export type CreateCollectionResponseSynonymSetsList = Array<string>;
|
|
224
|
-
export declare const CreateCollectionResponseSynonymSetsList: S.Schema<CreateCollectionResponseSynonymSetsList>;
|
|
225
209
|
/** List of symbols or special characters to be indexed. */
|
|
226
210
|
export type CreateCollectionResponseSymbolsToIndexList = Array<string>;
|
|
227
|
-
export declare const CreateCollectionResponseSymbolsToIndexList: S.Schema<CreateCollectionResponseSymbolsToIndexList>;
|
|
228
211
|
export interface CreateCollectionResponse {
|
|
229
212
|
/** Name of the collection */
|
|
230
213
|
name: string;
|
|
231
214
|
/** A list of fields for querying, filtering and faceting */
|
|
232
215
|
fields: CreateCollectionResponseFieldsList;
|
|
233
216
|
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
234
|
-
default_sorting_field?: string;
|
|
217
|
+
default_sorting_field?: string | undefined;
|
|
235
218
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
236
|
-
token_separators?: CreateCollectionResponseTokenSeparatorsList;
|
|
219
|
+
token_separators?: CreateCollectionResponseTokenSeparatorsList | undefined;
|
|
237
220
|
/** List of synonym set names to associate with this collection */
|
|
238
|
-
synonym_sets?: CreateCollectionResponseSynonymSetsList;
|
|
221
|
+
synonym_sets?: CreateCollectionResponseSynonymSetsList | undefined;
|
|
239
222
|
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
240
|
-
enable_nested_fields?: boolean;
|
|
223
|
+
enable_nested_fields?: boolean | undefined;
|
|
241
224
|
/** List of symbols or special characters to be indexed. */
|
|
242
|
-
symbols_to_index?: CreateCollectionResponseSymbolsToIndexList;
|
|
243
|
-
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
225
|
+
symbols_to_index?: CreateCollectionResponseSymbolsToIndexList | undefined;
|
|
226
|
+
voice_query_model?: VoiceQueryModelCollectionConfig | undefined;
|
|
244
227
|
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
245
|
-
metadata?: unknown;
|
|
228
|
+
metadata?: unknown | undefined;
|
|
246
229
|
/** Number of documents in the collection */
|
|
247
230
|
num_documents: number;
|
|
248
231
|
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
249
232
|
created_at: number;
|
|
250
233
|
}
|
|
251
|
-
export declare const CreateCollectionResponse: S.Schema<CreateCollectionResponse>;
|
|
252
234
|
export interface CreateConversationModelRequest {
|
|
253
235
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
254
|
-
id?: string;
|
|
236
|
+
id?: string | undefined;
|
|
255
237
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
256
238
|
model_name: string;
|
|
257
239
|
/** The LLM service's API Key */
|
|
258
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
240
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
259
241
|
/** Typesense collection that stores the historical conversations */
|
|
260
242
|
history_collection: string;
|
|
261
243
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
262
|
-
account_id?: string;
|
|
244
|
+
account_id?: string | undefined;
|
|
263
245
|
/** The system prompt that contains special instructions to the LLM */
|
|
264
|
-
system_prompt?: string;
|
|
246
|
+
system_prompt?: string | undefined;
|
|
265
247
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
266
|
-
ttl?: number;
|
|
248
|
+
ttl?: number | undefined;
|
|
267
249
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
268
250
|
max_bytes: number;
|
|
269
251
|
/** URL of vLLM service */
|
|
270
|
-
vllm_url?: string;
|
|
252
|
+
vllm_url?: string | undefined;
|
|
271
253
|
}
|
|
272
|
-
export declare const CreateConversationModelRequest: S.Schema<CreateConversationModelRequest>;
|
|
273
254
|
export interface CreateConversationModelResponse {
|
|
274
255
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
275
256
|
id: string;
|
|
276
257
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
277
258
|
model_name: string;
|
|
278
259
|
/** The LLM service's API Key */
|
|
279
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
260
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
280
261
|
/** Typesense collection that stores the historical conversations */
|
|
281
262
|
history_collection: string;
|
|
282
263
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
283
|
-
account_id?: string;
|
|
264
|
+
account_id?: string | undefined;
|
|
284
265
|
/** The system prompt that contains special instructions to the LLM */
|
|
285
|
-
system_prompt?: string;
|
|
266
|
+
system_prompt?: string | undefined;
|
|
286
267
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
287
|
-
ttl?: number;
|
|
268
|
+
ttl?: number | undefined;
|
|
288
269
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
289
270
|
max_bytes: number;
|
|
290
271
|
/** URL of vLLM service */
|
|
291
|
-
vllm_url?: string;
|
|
272
|
+
vllm_url?: string | undefined;
|
|
292
273
|
}
|
|
293
|
-
export declare const CreateConversationModelResponse: S.Schema<CreateConversationModelResponse>;
|
|
294
274
|
export type CreateKeyRequestActionsList = Array<string>;
|
|
295
|
-
export declare const CreateKeyRequestActionsList: S.Schema<CreateKeyRequestActionsList>;
|
|
296
275
|
export type CreateKeyRequestCollectionsList = Array<string>;
|
|
297
|
-
export declare const CreateKeyRequestCollectionsList: S.Schema<CreateKeyRequestCollectionsList>;
|
|
298
276
|
export interface CreateKeyRequest {
|
|
299
|
-
value?: string;
|
|
277
|
+
value?: string | undefined;
|
|
300
278
|
description: string;
|
|
301
279
|
actions: CreateKeyRequestActionsList;
|
|
302
280
|
collections: CreateKeyRequestCollectionsList;
|
|
303
|
-
expires_at?: number;
|
|
281
|
+
expires_at?: number | undefined;
|
|
304
282
|
}
|
|
305
|
-
export declare const CreateKeyRequest: S.Schema<CreateKeyRequest>;
|
|
306
283
|
export type CreateKeyResponseActionsList = Array<string>;
|
|
307
|
-
export declare const CreateKeyResponseActionsList: S.Schema<CreateKeyResponseActionsList>;
|
|
308
284
|
export type CreateKeyResponseCollectionsList = Array<string>;
|
|
309
|
-
export declare const CreateKeyResponseCollectionsList: S.Schema<CreateKeyResponseCollectionsList>;
|
|
310
285
|
export interface CreateKeyResponse {
|
|
311
|
-
value?: string;
|
|
286
|
+
value?: string | undefined;
|
|
312
287
|
description: string;
|
|
313
288
|
actions: CreateKeyResponseActionsList;
|
|
314
289
|
collections: CreateKeyResponseCollectionsList;
|
|
315
|
-
expires_at?: number;
|
|
316
|
-
id?: number;
|
|
317
|
-
value_prefix?: string;
|
|
290
|
+
expires_at?: number | undefined;
|
|
291
|
+
id?: number | undefined;
|
|
292
|
+
value_prefix?: string | undefined;
|
|
318
293
|
}
|
|
319
|
-
export declare const CreateKeyResponse: S.Schema<CreateKeyResponse>;
|
|
320
294
|
/** Stop sequences for the NL model (Google-specific) */
|
|
321
295
|
export type CreateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
322
|
-
export declare const CreateNLSearchModelRequestStopSequencesList: S.Schema<CreateNLSearchModelRequestStopSequencesList>;
|
|
323
296
|
export interface CreateNLSearchModelRequest {
|
|
324
297
|
/** Name of the NL model to use */
|
|
325
|
-
model_name?: string;
|
|
298
|
+
model_name?: string | undefined;
|
|
326
299
|
/** API key for the NL model service */
|
|
327
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
300
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
328
301
|
/** Custom API URL for the NL model service */
|
|
329
|
-
api_url?: string;
|
|
302
|
+
api_url?: string | undefined;
|
|
330
303
|
/** Maximum number of bytes to process */
|
|
331
|
-
max_bytes?: number;
|
|
304
|
+
max_bytes?: number | undefined;
|
|
332
305
|
/** Temperature parameter for the NL model */
|
|
333
|
-
temperature?: number;
|
|
306
|
+
temperature?: number | undefined;
|
|
334
307
|
/** System prompt for the NL model */
|
|
335
|
-
system_prompt?: string;
|
|
308
|
+
system_prompt?: string | undefined;
|
|
336
309
|
/** Top-p parameter for the NL model (Google-specific) */
|
|
337
|
-
top_p?: number;
|
|
310
|
+
top_p?: number | undefined;
|
|
338
311
|
/** Top-k parameter for the NL model (Google-specific) */
|
|
339
|
-
top_k?: number;
|
|
312
|
+
top_k?: number | undefined;
|
|
340
313
|
/** Stop sequences for the NL model (Google-specific) */
|
|
341
|
-
stop_sequences?: CreateNLSearchModelRequestStopSequencesList;
|
|
314
|
+
stop_sequences?: CreateNLSearchModelRequestStopSequencesList | undefined;
|
|
342
315
|
/** API version for the NL model service */
|
|
343
|
-
api_version?: string;
|
|
316
|
+
api_version?: string | undefined;
|
|
344
317
|
/** Project ID for GCP Vertex AI */
|
|
345
|
-
project_id?: string;
|
|
318
|
+
project_id?: string | undefined;
|
|
346
319
|
/** Access token for GCP Vertex AI */
|
|
347
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
320
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
348
321
|
/** Refresh token for GCP Vertex AI */
|
|
349
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
322
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
350
323
|
/** Client ID for GCP Vertex AI */
|
|
351
|
-
client_id?: string;
|
|
324
|
+
client_id?: string | undefined;
|
|
352
325
|
/** Client secret for GCP Vertex AI */
|
|
353
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
326
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
354
327
|
/** Region for GCP Vertex AI */
|
|
355
|
-
region?: string;
|
|
328
|
+
region?: string | undefined;
|
|
356
329
|
/** Maximum output tokens for GCP Vertex AI */
|
|
357
|
-
max_output_tokens?: number;
|
|
330
|
+
max_output_tokens?: number | undefined;
|
|
358
331
|
/** Account ID for Cloudflare-specific models */
|
|
359
|
-
account_id?: string;
|
|
332
|
+
account_id?: string | undefined;
|
|
360
333
|
/** Optional ID for the NL search model */
|
|
361
|
-
id?: string;
|
|
334
|
+
id?: string | undefined;
|
|
362
335
|
}
|
|
363
|
-
export declare const CreateNLSearchModelRequest: S.Schema<CreateNLSearchModelRequest>;
|
|
364
336
|
/** Stop sequences for the NL model (Google-specific) */
|
|
365
337
|
export type CreateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
366
|
-
export declare const CreateNLSearchModelResponseStopSequencesList: S.Schema<CreateNLSearchModelResponseStopSequencesList>;
|
|
367
338
|
export interface CreateNLSearchModelResponse {
|
|
368
339
|
/** Name of the NL model to use */
|
|
369
|
-
model_name?: string;
|
|
340
|
+
model_name?: string | undefined;
|
|
370
341
|
/** API key for the NL model service */
|
|
371
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
342
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
372
343
|
/** Custom API URL for the NL model service */
|
|
373
|
-
api_url?: string;
|
|
344
|
+
api_url?: string | undefined;
|
|
374
345
|
/** Maximum number of bytes to process */
|
|
375
|
-
max_bytes?: number;
|
|
346
|
+
max_bytes?: number | undefined;
|
|
376
347
|
/** Temperature parameter for the NL model */
|
|
377
|
-
temperature?: number;
|
|
348
|
+
temperature?: number | undefined;
|
|
378
349
|
/** System prompt for the NL model */
|
|
379
|
-
system_prompt?: string;
|
|
350
|
+
system_prompt?: string | undefined;
|
|
380
351
|
/** Top-p parameter for the NL model (Google-specific) */
|
|
381
|
-
top_p?: number;
|
|
352
|
+
top_p?: number | undefined;
|
|
382
353
|
/** Top-k parameter for the NL model (Google-specific) */
|
|
383
|
-
top_k?: number;
|
|
354
|
+
top_k?: number | undefined;
|
|
384
355
|
/** Stop sequences for the NL model (Google-specific) */
|
|
385
|
-
stop_sequences?: CreateNLSearchModelResponseStopSequencesList;
|
|
356
|
+
stop_sequences?: CreateNLSearchModelResponseStopSequencesList | undefined;
|
|
386
357
|
/** API version for the NL model service */
|
|
387
|
-
api_version?: string;
|
|
358
|
+
api_version?: string | undefined;
|
|
388
359
|
/** Project ID for GCP Vertex AI */
|
|
389
|
-
project_id?: string;
|
|
360
|
+
project_id?: string | undefined;
|
|
390
361
|
/** Access token for GCP Vertex AI */
|
|
391
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
362
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
392
363
|
/** Refresh token for GCP Vertex AI */
|
|
393
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
364
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
394
365
|
/** Client ID for GCP Vertex AI */
|
|
395
|
-
client_id?: string;
|
|
366
|
+
client_id?: string | undefined;
|
|
396
367
|
/** Client secret for GCP Vertex AI */
|
|
397
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
368
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
398
369
|
/** Region for GCP Vertex AI */
|
|
399
|
-
region?: string;
|
|
370
|
+
region?: string | undefined;
|
|
400
371
|
/** Maximum output tokens for GCP Vertex AI */
|
|
401
|
-
max_output_tokens?: number;
|
|
372
|
+
max_output_tokens?: number | undefined;
|
|
402
373
|
/** Account ID for Cloudflare-specific models */
|
|
403
|
-
account_id?: string;
|
|
374
|
+
account_id?: string | undefined;
|
|
404
375
|
/** Optional ID for the NL search model */
|
|
405
376
|
id: string;
|
|
406
377
|
}
|
|
407
|
-
export declare const CreateNLSearchModelResponse: S.Schema<CreateNLSearchModelResponse>;
|
|
408
378
|
export interface DebugRequest {
|
|
409
379
|
}
|
|
410
|
-
export declare const DebugRequest: S.Schema<DebugRequest>;
|
|
411
380
|
export interface DebugResponse {
|
|
412
|
-
version?: string;
|
|
381
|
+
version?: string | undefined;
|
|
413
382
|
}
|
|
414
|
-
export declare const DebugResponse: S.Schema<DebugResponse>;
|
|
415
383
|
export interface DeleteAliasRequest {
|
|
416
384
|
/** The name of the alias to delete */
|
|
417
385
|
aliasName: string;
|
|
418
386
|
}
|
|
419
|
-
export declare const DeleteAliasRequest: S.Schema<DeleteAliasRequest>;
|
|
420
387
|
export interface CollectionAlias {
|
|
421
388
|
/** Name of the collection alias */
|
|
422
389
|
name: string;
|
|
423
390
|
/** Name of the collection the alias mapped to */
|
|
424
391
|
collection_name: string;
|
|
425
392
|
}
|
|
426
|
-
export declare const CollectionAlias: S.Schema<CollectionAlias>;
|
|
427
393
|
export interface DeleteAnalyticsRuleRequest {
|
|
428
394
|
/** The name of the analytics rule to delete */
|
|
429
395
|
ruleName: string;
|
|
430
396
|
}
|
|
431
|
-
export declare const DeleteAnalyticsRuleRequest: S.Schema<DeleteAnalyticsRuleRequest>;
|
|
432
397
|
export type DeleteAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
433
|
-
export declare const DeleteAnalyticsRuleResponseParamsMetaFieldsList: S.Schema<DeleteAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
434
398
|
export interface DeleteAnalyticsRuleResponseParams {
|
|
435
|
-
destination_collection?: string;
|
|
436
|
-
limit?: number;
|
|
437
|
-
capture_search_requests?: boolean;
|
|
438
|
-
meta_fields?: DeleteAnalyticsRuleResponseParamsMetaFieldsList;
|
|
439
|
-
expand_query?: boolean;
|
|
440
|
-
counter_field?: string;
|
|
441
|
-
weight?: number;
|
|
442
|
-
}
|
|
443
|
-
export declare const DeleteAnalyticsRuleResponseParams: S.Schema<DeleteAnalyticsRuleResponseParams>;
|
|
399
|
+
destination_collection?: string | undefined;
|
|
400
|
+
limit?: number | undefined;
|
|
401
|
+
capture_search_requests?: boolean | undefined;
|
|
402
|
+
meta_fields?: DeleteAnalyticsRuleResponseParamsMetaFieldsList | undefined;
|
|
403
|
+
expand_query?: boolean | undefined;
|
|
404
|
+
counter_field?: string | undefined;
|
|
405
|
+
weight?: number | undefined;
|
|
406
|
+
}
|
|
444
407
|
export interface DeleteAnalyticsRuleResponse {
|
|
445
408
|
name: string;
|
|
446
409
|
type: AnalyticsRuleType;
|
|
447
410
|
collection: string;
|
|
448
411
|
event_type: string;
|
|
449
|
-
rule_tag?: string;
|
|
450
|
-
params?: DeleteAnalyticsRuleResponseParams;
|
|
412
|
+
rule_tag?: string | undefined;
|
|
413
|
+
params?: DeleteAnalyticsRuleResponseParams | undefined;
|
|
451
414
|
}
|
|
452
|
-
export declare const DeleteAnalyticsRuleResponse: S.Schema<DeleteAnalyticsRuleResponse>;
|
|
453
415
|
export interface DeleteCollectionRequest {
|
|
454
416
|
/** The name of the collection to delete */
|
|
455
417
|
collectionName: string;
|
|
456
418
|
}
|
|
457
|
-
export declare const DeleteCollectionRequest: S.Schema<DeleteCollectionRequest>;
|
|
458
419
|
/** A list of fields for querying, filtering and faceting */
|
|
459
420
|
export type DeleteCollectionResponseFieldsList = Array<Field>;
|
|
460
|
-
export declare const DeleteCollectionResponseFieldsList: S.Schema<DeleteCollectionResponseFieldsList>;
|
|
461
421
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
462
422
|
export type DeleteCollectionResponseTokenSeparatorsList = Array<string>;
|
|
463
|
-
export declare const DeleteCollectionResponseTokenSeparatorsList: S.Schema<DeleteCollectionResponseTokenSeparatorsList>;
|
|
464
423
|
/** List of synonym set names to associate with this collection */
|
|
465
424
|
export type DeleteCollectionResponseSynonymSetsList = Array<string>;
|
|
466
|
-
export declare const DeleteCollectionResponseSynonymSetsList: S.Schema<DeleteCollectionResponseSynonymSetsList>;
|
|
467
425
|
/** List of symbols or special characters to be indexed. */
|
|
468
426
|
export type DeleteCollectionResponseSymbolsToIndexList = Array<string>;
|
|
469
|
-
export declare const DeleteCollectionResponseSymbolsToIndexList: S.Schema<DeleteCollectionResponseSymbolsToIndexList>;
|
|
470
427
|
export interface DeleteCollectionResponse {
|
|
471
428
|
/** Name of the collection */
|
|
472
429
|
name: string;
|
|
473
430
|
/** A list of fields for querying, filtering and faceting */
|
|
474
431
|
fields: DeleteCollectionResponseFieldsList;
|
|
475
432
|
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
476
|
-
default_sorting_field?: string;
|
|
433
|
+
default_sorting_field?: string | undefined;
|
|
477
434
|
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
478
|
-
token_separators?: DeleteCollectionResponseTokenSeparatorsList;
|
|
435
|
+
token_separators?: DeleteCollectionResponseTokenSeparatorsList | undefined;
|
|
479
436
|
/** List of synonym set names to associate with this collection */
|
|
480
|
-
synonym_sets?: DeleteCollectionResponseSynonymSetsList;
|
|
437
|
+
synonym_sets?: DeleteCollectionResponseSynonymSetsList | undefined;
|
|
481
438
|
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
482
|
-
enable_nested_fields?: boolean;
|
|
439
|
+
enable_nested_fields?: boolean | undefined;
|
|
483
440
|
/** List of symbols or special characters to be indexed. */
|
|
484
|
-
symbols_to_index?: DeleteCollectionResponseSymbolsToIndexList;
|
|
485
|
-
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
441
|
+
symbols_to_index?: DeleteCollectionResponseSymbolsToIndexList | undefined;
|
|
442
|
+
voice_query_model?: VoiceQueryModelCollectionConfig | undefined;
|
|
486
443
|
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
487
|
-
metadata?: unknown;
|
|
444
|
+
metadata?: unknown | undefined;
|
|
488
445
|
/** Number of documents in the collection */
|
|
489
446
|
num_documents: number;
|
|
490
447
|
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
491
448
|
created_at: number;
|
|
492
449
|
}
|
|
493
|
-
export declare const DeleteCollectionResponse: S.Schema<DeleteCollectionResponse>;
|
|
494
450
|
export interface DeleteConversationModelRequest {
|
|
495
451
|
/** The id of the conversation model to delete */
|
|
496
452
|
modelId: string;
|
|
497
453
|
}
|
|
498
|
-
export declare const DeleteConversationModelRequest: S.Schema<DeleteConversationModelRequest>;
|
|
499
454
|
export interface DeleteConversationModelResponse {
|
|
500
455
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
501
456
|
id: string;
|
|
502
457
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
503
458
|
model_name: string;
|
|
504
459
|
/** The LLM service's API Key */
|
|
505
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
460
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
506
461
|
/** Typesense collection that stores the historical conversations */
|
|
507
462
|
history_collection: string;
|
|
508
463
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
509
|
-
account_id?: string;
|
|
464
|
+
account_id?: string | undefined;
|
|
510
465
|
/** The system prompt that contains special instructions to the LLM */
|
|
511
|
-
system_prompt?: string;
|
|
466
|
+
system_prompt?: string | undefined;
|
|
512
467
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
513
|
-
ttl?: number;
|
|
468
|
+
ttl?: number | undefined;
|
|
514
469
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
515
470
|
max_bytes: number;
|
|
516
471
|
/** URL of vLLM service */
|
|
517
|
-
vllm_url?: string;
|
|
472
|
+
vllm_url?: string | undefined;
|
|
518
473
|
}
|
|
519
|
-
export declare const DeleteConversationModelResponse: S.Schema<DeleteConversationModelResponse>;
|
|
520
474
|
export interface DeleteCurationSetRequest {
|
|
521
475
|
/** The name of the curation set to delete */
|
|
522
476
|
curationSetName: string;
|
|
523
477
|
}
|
|
524
|
-
export declare const DeleteCurationSetRequest: S.Schema<DeleteCurationSetRequest>;
|
|
525
478
|
export interface CurationSetDeleteSchema {
|
|
526
479
|
/** Name of the deleted curation set */
|
|
527
480
|
name: string;
|
|
528
481
|
}
|
|
529
|
-
export declare const CurationSetDeleteSchema: S.Schema<CurationSetDeleteSchema>;
|
|
530
482
|
export interface DeleteCurationSetItemRequest {
|
|
531
483
|
/** The name of the curation set */
|
|
532
484
|
curationSetName: string;
|
|
533
485
|
/** The id of the curation item to delete */
|
|
534
486
|
itemId: string;
|
|
535
487
|
}
|
|
536
|
-
export declare const DeleteCurationSetItemRequest: S.Schema<DeleteCurationSetItemRequest>;
|
|
537
488
|
export interface CurationItemDeleteSchema {
|
|
538
489
|
/** ID of the deleted curation item */
|
|
539
490
|
id: string;
|
|
540
491
|
}
|
|
541
|
-
export declare const CurationItemDeleteSchema: S.Schema<CurationItemDeleteSchema>;
|
|
542
492
|
export interface DeleteDocumentRequest {
|
|
543
493
|
/** The name of the collection to search for the document under */
|
|
544
494
|
collectionName: string;
|
|
545
495
|
/** The Document ID */
|
|
546
496
|
documentId: string;
|
|
547
497
|
}
|
|
548
|
-
export declare const DeleteDocumentRequest: S.Schema<DeleteDocumentRequest>;
|
|
549
498
|
export type DeleteDocumentResponse = unknown;
|
|
550
|
-
export declare const DeleteDocumentResponse: S.Schema<DeleteDocumentResponse>;
|
|
551
499
|
export interface DeleteDocumentsRequestDeleteDocumentsParameters {
|
|
552
500
|
filter_by: string;
|
|
553
501
|
/** Batch size parameter controls the number of documents that should be deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server. */
|
|
554
|
-
batch_size?: number;
|
|
555
|
-
ignore_not_found?: boolean;
|
|
502
|
+
batch_size?: number | undefined;
|
|
503
|
+
ignore_not_found?: boolean | undefined;
|
|
556
504
|
/** When true, removes all documents from the collection while preserving the collection and its schema. */
|
|
557
|
-
truncate?: boolean;
|
|
505
|
+
truncate?: boolean | undefined;
|
|
558
506
|
}
|
|
559
|
-
export declare const DeleteDocumentsRequestDeleteDocumentsParameters: S.Schema<DeleteDocumentsRequestDeleteDocumentsParameters>;
|
|
560
507
|
export interface DeleteDocumentsRequest {
|
|
561
508
|
/** The name of the collection to delete documents from */
|
|
562
509
|
collectionName: string;
|
|
563
|
-
deleteDocumentsParameters?: DeleteDocumentsRequestDeleteDocumentsParameters;
|
|
510
|
+
deleteDocumentsParameters?: DeleteDocumentsRequestDeleteDocumentsParameters | undefined;
|
|
564
511
|
}
|
|
565
|
-
export declare const DeleteDocumentsRequest: S.Schema<DeleteDocumentsRequest>;
|
|
566
512
|
export interface DeleteDocumentsResponse {
|
|
567
513
|
num_deleted: number;
|
|
568
514
|
}
|
|
569
|
-
export declare const DeleteDocumentsResponse: S.Schema<DeleteDocumentsResponse>;
|
|
570
515
|
export interface DeleteKeyRequest {
|
|
571
516
|
/** The ID of the key to delete */
|
|
572
517
|
keyId: number;
|
|
573
518
|
}
|
|
574
|
-
export declare const DeleteKeyRequest: S.Schema<DeleteKeyRequest>;
|
|
575
519
|
export interface ApiKeyDeleteResponse {
|
|
576
520
|
/** The id of the API key that was deleted */
|
|
577
521
|
id: number;
|
|
578
522
|
}
|
|
579
|
-
export declare const ApiKeyDeleteResponse: S.Schema<ApiKeyDeleteResponse>;
|
|
580
523
|
export interface DeleteNLSearchModelRequest {
|
|
581
524
|
/** The ID of the NL search model to delete */
|
|
582
525
|
modelId: string;
|
|
583
526
|
}
|
|
584
|
-
export declare const DeleteNLSearchModelRequest: S.Schema<DeleteNLSearchModelRequest>;
|
|
585
527
|
export interface NLSearchModelDeleteSchema {
|
|
586
528
|
/** ID of the deleted NL search model */
|
|
587
529
|
id: string;
|
|
588
530
|
}
|
|
589
|
-
export declare const NLSearchModelDeleteSchema: S.Schema<NLSearchModelDeleteSchema>;
|
|
590
531
|
export interface DeletePresetRequest {
|
|
591
532
|
/** The ID of the preset to delete. */
|
|
592
533
|
presetId: string;
|
|
593
534
|
}
|
|
594
|
-
export declare const DeletePresetRequest: S.Schema<DeletePresetRequest>;
|
|
595
535
|
export interface PresetDeleteSchema {
|
|
596
536
|
name: string;
|
|
597
537
|
}
|
|
598
|
-
export declare const PresetDeleteSchema: S.Schema<PresetDeleteSchema>;
|
|
599
538
|
export interface DeleteStopwordsSetRequest {
|
|
600
539
|
/** The ID of the stopwords set to delete. */
|
|
601
540
|
setId: string;
|
|
602
541
|
}
|
|
603
|
-
export declare const DeleteStopwordsSetRequest: S.Schema<DeleteStopwordsSetRequest>;
|
|
604
542
|
export interface DeleteStopwordsSetResponse {
|
|
605
543
|
id: string;
|
|
606
544
|
}
|
|
607
|
-
export declare const DeleteStopwordsSetResponse: S.Schema<DeleteStopwordsSetResponse>;
|
|
608
545
|
export interface DeleteSynonymSetRequest {
|
|
609
546
|
/** The name of the synonym set to delete */
|
|
610
547
|
synonymSetName: string;
|
|
611
548
|
}
|
|
612
|
-
export declare const DeleteSynonymSetRequest: S.Schema<DeleteSynonymSetRequest>;
|
|
613
549
|
export interface SynonymSetDeleteSchema {
|
|
614
550
|
/** Name of the deleted synonym set */
|
|
615
551
|
name: string;
|
|
616
552
|
}
|
|
617
|
-
export declare const SynonymSetDeleteSchema: S.Schema<SynonymSetDeleteSchema>;
|
|
618
553
|
export interface DeleteSynonymSetItemRequest {
|
|
619
554
|
/** The name of the synonym set */
|
|
620
555
|
synonymSetName: string;
|
|
621
556
|
/** The id of the synonym item to delete */
|
|
622
557
|
itemId: string;
|
|
623
558
|
}
|
|
624
|
-
export declare const DeleteSynonymSetItemRequest: S.Schema<DeleteSynonymSetItemRequest>;
|
|
625
559
|
export interface SynonymItemDeleteSchema {
|
|
626
560
|
/** ID of the deleted synonym item */
|
|
627
561
|
id: string;
|
|
628
562
|
}
|
|
629
|
-
export declare const SynonymItemDeleteSchema: S.Schema<SynonymItemDeleteSchema>;
|
|
630
563
|
export interface ExportDocumentsRequestExportDocumentsParameters {
|
|
631
564
|
/** Filter conditions for refining your search results. Separate multiple conditions with &&. */
|
|
632
|
-
filter_by?: string;
|
|
565
|
+
filter_by?: string | undefined;
|
|
633
566
|
/** List of fields from the document to include in the search result */
|
|
634
|
-
include_fields?: string;
|
|
567
|
+
include_fields?: string | undefined;
|
|
635
568
|
/** List of fields from the document to exclude in the search result */
|
|
636
|
-
exclude_fields?: string;
|
|
569
|
+
exclude_fields?: string | undefined;
|
|
637
570
|
}
|
|
638
|
-
export declare const ExportDocumentsRequestExportDocumentsParameters: S.Schema<ExportDocumentsRequestExportDocumentsParameters>;
|
|
639
571
|
export interface ExportDocumentsRequest {
|
|
640
572
|
/** The name of the collection */
|
|
641
573
|
collectionName: string;
|
|
642
|
-
exportDocumentsParameters?: ExportDocumentsRequestExportDocumentsParameters;
|
|
574
|
+
exportDocumentsParameters?: ExportDocumentsRequestExportDocumentsParameters | undefined;
|
|
643
575
|
}
|
|
644
|
-
export declare const ExportDocumentsRequest: S.Schema<ExportDocumentsRequest>;
|
|
645
576
|
export interface ExportDocumentsResponse {
|
|
646
577
|
}
|
|
647
|
-
export declare const ExportDocumentsResponse: S.Schema<ExportDocumentsResponse>;
|
|
648
578
|
export interface FlushAnalyticsRequest {
|
|
649
579
|
}
|
|
650
|
-
export declare const FlushAnalyticsRequest: S.Schema<FlushAnalyticsRequest>;
|
|
651
580
|
export interface GetAliasRequest {
|
|
652
581
|
/** The name of the alias to retrieve */
|
|
653
582
|
aliasName: string;
|
|
654
583
|
}
|
|
655
|
-
export declare const GetAliasRequest: S.Schema<GetAliasRequest>;
|
|
656
584
|
export interface GetAliasesRequest {
|
|
657
585
|
}
|
|
658
|
-
export declare const GetAliasesRequest: S.Schema<GetAliasesRequest>;
|
|
659
586
|
export type CollectionAliasesResponseAliasesList = Array<CollectionAlias>;
|
|
660
|
-
export declare const CollectionAliasesResponseAliasesList: S.Schema<CollectionAliasesResponseAliasesList>;
|
|
661
587
|
export interface CollectionAliasesResponse {
|
|
662
588
|
aliases: CollectionAliasesResponseAliasesList;
|
|
663
589
|
}
|
|
664
|
-
export
|
|
665
|
-
export interface GetAnalyticsEventsRequest {
|
|
666
|
-
user_id: string;
|
|
667
|
-
/** Analytics rule name */
|
|
668
|
-
name: string;
|
|
669
|
-
/** Number of events to return (max 1000) */
|
|
670
|
-
n: number;
|
|
671
|
-
}
|
|
672
|
-
export declare const GetAnalyticsEventsRequest: S.Schema<GetAnalyticsEventsRequest>;
|
|
673
|
-
export type AnalyticsEventsResponseEventsItemDocIdsList = Array<string>;
|
|
674
|
-
export declare const AnalyticsEventsResponseEventsItemDocIdsList: S.Schema<AnalyticsEventsResponseEventsItemDocIdsList>;
|
|
675
|
-
export interface AnalyticsEventsResponseEventsItem {
|
|
676
|
-
name?: string;
|
|
677
|
-
event_type?: string;
|
|
678
|
-
collection?: string;
|
|
679
|
-
timestamp?: number;
|
|
680
|
-
user_id?: string;
|
|
681
|
-
doc_id?: string;
|
|
682
|
-
doc_ids?: AnalyticsEventsResponseEventsItemDocIdsList;
|
|
683
|
-
query?: string;
|
|
684
|
-
}
|
|
685
|
-
export declare const AnalyticsEventsResponseEventsItem: S.Schema<AnalyticsEventsResponseEventsItem>;
|
|
686
|
-
export type AnalyticsEventsResponseEventsList = Array<AnalyticsEventsResponseEventsItem>;
|
|
687
|
-
export declare const AnalyticsEventsResponseEventsList: S.Schema<AnalyticsEventsResponseEventsList>;
|
|
688
|
-
export interface AnalyticsEventsResponse {
|
|
689
|
-
events: AnalyticsEventsResponseEventsList;
|
|
690
|
-
}
|
|
691
|
-
export declare const AnalyticsEventsResponse: S.Schema<AnalyticsEventsResponse>;
|
|
692
|
-
export interface GetAnalyticsStatusRequest {
|
|
693
|
-
}
|
|
694
|
-
export declare const GetAnalyticsStatusRequest: S.Schema<GetAnalyticsStatusRequest>;
|
|
695
|
-
export interface AnalyticsStatus {
|
|
696
|
-
popular_prefix_queries?: number;
|
|
697
|
-
nohits_prefix_queries?: number;
|
|
698
|
-
log_prefix_queries?: number;
|
|
699
|
-
query_log_events?: number;
|
|
700
|
-
query_counter_events?: number;
|
|
701
|
-
doc_log_events?: number;
|
|
702
|
-
doc_counter_events?: number;
|
|
703
|
-
}
|
|
704
|
-
export declare const AnalyticsStatus: S.Schema<AnalyticsStatus>;
|
|
705
|
-
export interface GetCollectionRequest {
|
|
706
|
-
/** The name of the collection to retrieve */
|
|
707
|
-
collectionName: string;
|
|
708
|
-
}
|
|
709
|
-
export declare const GetCollectionRequest: S.Schema<GetCollectionRequest>;
|
|
710
|
-
/** A list of fields for querying, filtering and faceting */
|
|
711
|
-
export type GetCollectionResponseFieldsList = Array<Field>;
|
|
712
|
-
export declare const GetCollectionResponseFieldsList: S.Schema<GetCollectionResponseFieldsList>;
|
|
713
|
-
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
714
|
-
export type GetCollectionResponseTokenSeparatorsList = Array<string>;
|
|
715
|
-
export declare const GetCollectionResponseTokenSeparatorsList: S.Schema<GetCollectionResponseTokenSeparatorsList>;
|
|
716
|
-
/** List of synonym set names to associate with this collection */
|
|
717
|
-
export type GetCollectionResponseSynonymSetsList = Array<string>;
|
|
718
|
-
export declare const GetCollectionResponseSynonymSetsList: S.Schema<GetCollectionResponseSynonymSetsList>;
|
|
719
|
-
/** List of symbols or special characters to be indexed. */
|
|
720
|
-
export type GetCollectionResponseSymbolsToIndexList = Array<string>;
|
|
721
|
-
export declare const GetCollectionResponseSymbolsToIndexList: S.Schema<GetCollectionResponseSymbolsToIndexList>;
|
|
722
|
-
export interface GetCollectionResponse {
|
|
723
|
-
/** Name of the collection */
|
|
724
|
-
name: string;
|
|
725
|
-
/** A list of fields for querying, filtering and faceting */
|
|
726
|
-
fields: GetCollectionResponseFieldsList;
|
|
727
|
-
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
728
|
-
default_sorting_field?: string;
|
|
729
|
-
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
730
|
-
token_separators?: GetCollectionResponseTokenSeparatorsList;
|
|
731
|
-
/** List of synonym set names to associate with this collection */
|
|
732
|
-
synonym_sets?: GetCollectionResponseSynonymSetsList;
|
|
733
|
-
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
734
|
-
enable_nested_fields?: boolean;
|
|
735
|
-
/** List of symbols or special characters to be indexed. */
|
|
736
|
-
symbols_to_index?: GetCollectionResponseSymbolsToIndexList;
|
|
737
|
-
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
738
|
-
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
739
|
-
metadata?: unknown;
|
|
740
|
-
/** Number of documents in the collection */
|
|
741
|
-
num_documents: number;
|
|
742
|
-
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
743
|
-
created_at: number;
|
|
744
|
-
}
|
|
745
|
-
export declare const GetCollectionResponse: S.Schema<GetCollectionResponse>;
|
|
746
|
-
export interface GetCollectionsRequestGetCollectionsParameters {
|
|
747
|
-
/** Comma-separated list of fields from the collection to exclude from the response */
|
|
748
|
-
exclude_fields?: string;
|
|
749
|
-
/** Number of collections to fetch. Default: returns all collections. */
|
|
750
|
-
limit?: number;
|
|
751
|
-
/** Identifies the starting point to return collections when paginating. */
|
|
752
|
-
offset?: number;
|
|
753
|
-
}
|
|
754
|
-
export declare const GetCollectionsRequestGetCollectionsParameters: S.Schema<GetCollectionsRequestGetCollectionsParameters>;
|
|
755
|
-
export interface GetCollectionsRequest {
|
|
756
|
-
getCollectionsParameters?: GetCollectionsRequestGetCollectionsParameters;
|
|
757
|
-
}
|
|
758
|
-
export declare const GetCollectionsRequest: S.Schema<GetCollectionsRequest>;
|
|
759
|
-
/** A list of fields for querying, filtering and faceting */
|
|
760
|
-
export type CollectionResponseFieldsList = Array<Field>;
|
|
761
|
-
export declare const CollectionResponseFieldsList: S.Schema<CollectionResponseFieldsList>;
|
|
762
|
-
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
763
|
-
export type CollectionResponseTokenSeparatorsList = Array<string>;
|
|
764
|
-
export declare const CollectionResponseTokenSeparatorsList: S.Schema<CollectionResponseTokenSeparatorsList>;
|
|
765
|
-
/** List of synonym set names to associate with this collection */
|
|
766
|
-
export type CollectionResponseSynonymSetsList = Array<string>;
|
|
767
|
-
export declare const CollectionResponseSynonymSetsList: S.Schema<CollectionResponseSynonymSetsList>;
|
|
768
|
-
/** List of symbols or special characters to be indexed. */
|
|
769
|
-
export type CollectionResponseSymbolsToIndexList = Array<string>;
|
|
770
|
-
export declare const CollectionResponseSymbolsToIndexList: S.Schema<CollectionResponseSymbolsToIndexList>;
|
|
771
|
-
export interface CollectionResponse {
|
|
772
|
-
/** Name of the collection */
|
|
773
|
-
name: string;
|
|
774
|
-
/** A list of fields for querying, filtering and faceting */
|
|
775
|
-
fields: CollectionResponseFieldsList;
|
|
776
|
-
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
777
|
-
default_sorting_field?: string;
|
|
778
|
-
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
779
|
-
token_separators?: CollectionResponseTokenSeparatorsList;
|
|
780
|
-
/** List of synonym set names to associate with this collection */
|
|
781
|
-
synonym_sets?: CollectionResponseSynonymSetsList;
|
|
782
|
-
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
783
|
-
enable_nested_fields?: boolean;
|
|
784
|
-
/** List of symbols or special characters to be indexed. */
|
|
785
|
-
symbols_to_index?: CollectionResponseSymbolsToIndexList;
|
|
786
|
-
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
787
|
-
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
788
|
-
metadata?: unknown;
|
|
789
|
-
/** Number of documents in the collection */
|
|
790
|
-
num_documents: number;
|
|
791
|
-
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
792
|
-
created_at: number;
|
|
793
|
-
}
|
|
794
|
-
export declare const CollectionResponse: S.Schema<CollectionResponse>;
|
|
795
|
-
export type GetCollectionsResponseBodyList = Array<CollectionResponse>;
|
|
796
|
-
export declare const GetCollectionsResponseBodyList: S.Schema<GetCollectionsResponseBodyList>;
|
|
797
|
-
export type GetCollectionsResponse = GetCollectionsResponseBodyList;
|
|
798
|
-
export declare const GetCollectionsResponse: S.Schema<GetCollectionsResponse>;
|
|
799
|
-
export interface GetDocumentRequest {
|
|
800
|
-
/** The name of the collection to search for the document under */
|
|
801
|
-
collectionName: string;
|
|
802
|
-
/** The Document ID */
|
|
803
|
-
documentId: string;
|
|
804
|
-
}
|
|
805
|
-
export declare const GetDocumentRequest: S.Schema<GetDocumentRequest>;
|
|
806
|
-
export type GetDocumentResponse = unknown;
|
|
807
|
-
export declare const GetDocumentResponse: S.Schema<GetDocumentResponse>;
|
|
808
|
-
export interface GetKeyRequest {
|
|
809
|
-
/** The ID of the key to retrieve */
|
|
810
|
-
keyId: number;
|
|
811
|
-
}
|
|
812
|
-
export declare const GetKeyRequest: S.Schema<GetKeyRequest>;
|
|
813
|
-
export type GetKeyResponseActionsList = Array<string>;
|
|
814
|
-
export declare const GetKeyResponseActionsList: S.Schema<GetKeyResponseActionsList>;
|
|
815
|
-
export type GetKeyResponseCollectionsList = Array<string>;
|
|
816
|
-
export declare const GetKeyResponseCollectionsList: S.Schema<GetKeyResponseCollectionsList>;
|
|
817
|
-
export interface GetKeyResponse {
|
|
818
|
-
value?: string;
|
|
819
|
-
description: string;
|
|
820
|
-
actions: GetKeyResponseActionsList;
|
|
821
|
-
collections: GetKeyResponseCollectionsList;
|
|
822
|
-
expires_at?: number;
|
|
823
|
-
id?: number;
|
|
824
|
-
value_prefix?: string;
|
|
825
|
-
}
|
|
826
|
-
export declare const GetKeyResponse: S.Schema<GetKeyResponse>;
|
|
827
|
-
export interface GetKeysRequest {
|
|
828
|
-
}
|
|
829
|
-
export declare const GetKeysRequest: S.Schema<GetKeysRequest>;
|
|
830
|
-
export type ApiKeyActionsList = Array<string>;
|
|
831
|
-
export declare const ApiKeyActionsList: S.Schema<ApiKeyActionsList>;
|
|
832
|
-
export type ApiKeyCollectionsList = Array<string>;
|
|
833
|
-
export declare const ApiKeyCollectionsList: S.Schema<ApiKeyCollectionsList>;
|
|
834
|
-
export interface ApiKey {
|
|
835
|
-
value?: string;
|
|
836
|
-
description: string;
|
|
837
|
-
actions: ApiKeyActionsList;
|
|
838
|
-
collections: ApiKeyCollectionsList;
|
|
839
|
-
expires_at?: number;
|
|
840
|
-
id?: number;
|
|
841
|
-
value_prefix?: string;
|
|
842
|
-
}
|
|
843
|
-
export declare const ApiKey: S.Schema<ApiKey>;
|
|
844
|
-
export type ApiKeysResponseKeysList = Array<ApiKey>;
|
|
845
|
-
export declare const ApiKeysResponseKeysList: S.Schema<ApiKeysResponseKeysList>;
|
|
846
|
-
export interface ApiKeysResponse {
|
|
847
|
-
keys: ApiKeysResponseKeysList;
|
|
848
|
-
}
|
|
849
|
-
export declare const ApiKeysResponse: S.Schema<ApiKeysResponse>;
|
|
850
|
-
export interface GetSchemaChangesRequest {
|
|
851
|
-
}
|
|
852
|
-
export declare const GetSchemaChangesRequest: S.Schema<GetSchemaChangesRequest>;
|
|
853
|
-
export interface SchemaChangeStatus {
|
|
854
|
-
/** Name of the collection being modified */
|
|
855
|
-
collection?: string;
|
|
856
|
-
/** Number of documents that have been validated */
|
|
857
|
-
validated_docs?: number;
|
|
858
|
-
/** Number of documents that have been altered */
|
|
859
|
-
altered_docs?: number;
|
|
860
|
-
}
|
|
861
|
-
export declare const SchemaChangeStatus: S.Schema<SchemaChangeStatus>;
|
|
862
|
-
export type GetSchemaChangesResponseBodyList = Array<SchemaChangeStatus>;
|
|
863
|
-
export declare const GetSchemaChangesResponseBodyList: S.Schema<GetSchemaChangesResponseBodyList>;
|
|
864
|
-
export type GetSchemaChangesResponse = GetSchemaChangesResponseBodyList;
|
|
865
|
-
export declare const GetSchemaChangesResponse: S.Schema<GetSchemaChangesResponse>;
|
|
866
|
-
export interface GetStemmingDictionaryRequest {
|
|
867
|
-
/** The ID of the dictionary to retrieve */
|
|
868
|
-
dictionaryId: string;
|
|
869
|
-
}
|
|
870
|
-
export declare const GetStemmingDictionaryRequest: S.Schema<GetStemmingDictionaryRequest>;
|
|
871
|
-
export interface StemmingDictionaryWordsItem {
|
|
872
|
-
/** The word form to be stemmed */
|
|
873
|
-
word: string;
|
|
874
|
-
/** The root form of the word */
|
|
875
|
-
root: string;
|
|
590
|
+
export interface GetAllConversationModelsRequest {
|
|
876
591
|
}
|
|
877
|
-
export
|
|
878
|
-
/**
|
|
879
|
-
export type StemmingDictionaryWordsList = Array<StemmingDictionaryWordsItem>;
|
|
880
|
-
export declare const StemmingDictionaryWordsList: S.Schema<StemmingDictionaryWordsList>;
|
|
881
|
-
export interface StemmingDictionary {
|
|
882
|
-
/** Unique identifier for the dictionary */
|
|
592
|
+
export interface ConversationModelSchema {
|
|
593
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
883
594
|
id: string;
|
|
884
|
-
/**
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
batch_size?: number;
|
|
901
|
-
/** Returning the id of the imported documents. If you want the import response to return the ingested document's id in the response, you can use the return_id parameter. */
|
|
902
|
-
return_id?: boolean;
|
|
903
|
-
remote_embedding_batch_size?: number;
|
|
904
|
-
return_doc?: boolean;
|
|
905
|
-
action?: IndexAction | (string & {});
|
|
906
|
-
dirty_values?: DirtyValues | (string & {});
|
|
907
|
-
}
|
|
908
|
-
export declare const ImportDocumentsRequestImportDocumentsParameters: S.Schema<ImportDocumentsRequestImportDocumentsParameters>;
|
|
909
|
-
export interface ImportDocumentsRequest {
|
|
910
|
-
/** The name of the collection */
|
|
911
|
-
collectionName: string;
|
|
912
|
-
importDocumentsParameters?: ImportDocumentsRequestImportDocumentsParameters;
|
|
595
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
596
|
+
model_name: string;
|
|
597
|
+
/** The LLM service's API Key */
|
|
598
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
599
|
+
/** Typesense collection that stores the historical conversations */
|
|
600
|
+
history_collection: string;
|
|
601
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
602
|
+
account_id?: string | undefined;
|
|
603
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
604
|
+
system_prompt?: string | undefined;
|
|
605
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
606
|
+
ttl?: number | undefined;
|
|
607
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
608
|
+
max_bytes: number;
|
|
609
|
+
/** URL of vLLM service */
|
|
610
|
+
vllm_url?: string | undefined;
|
|
913
611
|
}
|
|
914
|
-
export
|
|
915
|
-
export
|
|
612
|
+
export type GetAllConversationModelsResponseBodyList = Array<ConversationModelSchema>;
|
|
613
|
+
export type GetAllConversationModelsResponse = GetAllConversationModelsResponseBodyList;
|
|
614
|
+
export interface GetAllNLSearchModelsRequest {
|
|
916
615
|
}
|
|
917
|
-
|
|
918
|
-
export
|
|
919
|
-
|
|
616
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
617
|
+
export type NLSearchModelSchemaStopSequencesList = Array<string>;
|
|
618
|
+
export interface NLSearchModelSchema {
|
|
619
|
+
/** Name of the NL model to use */
|
|
620
|
+
model_name?: string | undefined;
|
|
621
|
+
/** API key for the NL model service */
|
|
622
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
623
|
+
/** Custom API URL for the NL model service */
|
|
624
|
+
api_url?: string | undefined;
|
|
625
|
+
/** Maximum number of bytes to process */
|
|
626
|
+
max_bytes?: number | undefined;
|
|
627
|
+
/** Temperature parameter for the NL model */
|
|
628
|
+
temperature?: number | undefined;
|
|
629
|
+
/** System prompt for the NL model */
|
|
630
|
+
system_prompt?: string | undefined;
|
|
631
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
632
|
+
top_p?: number | undefined;
|
|
633
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
634
|
+
top_k?: number | undefined;
|
|
635
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
636
|
+
stop_sequences?: NLSearchModelSchemaStopSequencesList | undefined;
|
|
637
|
+
/** API version for the NL model service */
|
|
638
|
+
api_version?: string | undefined;
|
|
639
|
+
/** Project ID for GCP Vertex AI */
|
|
640
|
+
project_id?: string | undefined;
|
|
641
|
+
/** Access token for GCP Vertex AI */
|
|
642
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
643
|
+
/** Refresh token for GCP Vertex AI */
|
|
644
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
645
|
+
/** Client ID for GCP Vertex AI */
|
|
646
|
+
client_id?: string | undefined;
|
|
647
|
+
/** Client secret for GCP Vertex AI */
|
|
648
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
649
|
+
/** Region for GCP Vertex AI */
|
|
650
|
+
region?: string | undefined;
|
|
651
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
652
|
+
max_output_tokens?: number | undefined;
|
|
653
|
+
/** Account ID for Cloudflare-specific models */
|
|
654
|
+
account_id?: string | undefined;
|
|
655
|
+
/** Optional ID for the NL search model */
|
|
920
656
|
id: string;
|
|
921
|
-
body: string;
|
|
922
|
-
}
|
|
923
|
-
export declare const ImportStemmingDictionaryRequest: S.Schema<ImportStemmingDictionaryRequest>;
|
|
924
|
-
export interface ImportStemmingDictionaryResponse {
|
|
925
|
-
}
|
|
926
|
-
export declare const ImportStemmingDictionaryResponse: S.Schema<ImportStemmingDictionaryResponse>;
|
|
927
|
-
export interface IndexDocumentRequest {
|
|
928
|
-
/** The name of the collection to add the document to */
|
|
929
|
-
collectionName: string;
|
|
930
|
-
/** Additional action to perform */
|
|
931
|
-
action?: IndexAction | (string & {});
|
|
932
|
-
/** Dealing with Dirty Data */
|
|
933
|
-
dirty_values?: DirtyValues | (string & {});
|
|
934
|
-
}
|
|
935
|
-
export declare const IndexDocumentRequest: S.Schema<IndexDocumentRequest>;
|
|
936
|
-
export type IndexDocumentResponse = unknown;
|
|
937
|
-
export declare const IndexDocumentResponse: S.Schema<IndexDocumentResponse>;
|
|
938
|
-
export interface ListStemmingDictionariesRequest {
|
|
939
657
|
}
|
|
940
|
-
export
|
|
941
|
-
export type
|
|
942
|
-
export
|
|
943
|
-
export interface ListStemmingDictionariesResponse {
|
|
944
|
-
dictionaries?: ListStemmingDictionariesResponseDictionariesList;
|
|
658
|
+
export type GetAllNLSearchModelsResponseBodyList = Array<NLSearchModelSchema>;
|
|
659
|
+
export type GetAllNLSearchModelsResponse = GetAllNLSearchModelsResponseBodyList;
|
|
660
|
+
export interface GetAllPresetsRequest {
|
|
945
661
|
}
|
|
946
|
-
export declare const ListStemmingDictionariesResponse: S.Schema<ListStemmingDictionariesResponse>;
|
|
947
662
|
/** 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 */
|
|
948
663
|
export type DropTokensMode = "right_to_left" | "left_to_right" | "both_sides:3";
|
|
949
|
-
export
|
|
950
|
-
/** Parameters for the multi search API. */
|
|
951
|
-
export interface MultiSearchParameters {
|
|
664
|
+
export interface SearchParameters {
|
|
952
665
|
/** 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. */
|
|
953
|
-
q?: string;
|
|
666
|
+
q?: string | undefined;
|
|
954
667
|
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
955
|
-
query_by?: string;
|
|
668
|
+
query_by?: string | undefined;
|
|
669
|
+
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
670
|
+
validate_field_names?: boolean | undefined;
|
|
671
|
+
/** Whether to use natural language processing to parse the query. */
|
|
672
|
+
nl_query?: boolean | undefined;
|
|
673
|
+
/** The ID of the natural language model to use. */
|
|
674
|
+
nl_model_id?: string | undefined;
|
|
956
675
|
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
957
|
-
query_by_weights?: string;
|
|
676
|
+
query_by_weights?: string | undefined;
|
|
958
677
|
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
959
|
-
text_match_type?: string;
|
|
678
|
+
text_match_type?: string | undefined;
|
|
960
679
|
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
961
|
-
prefix?: string;
|
|
680
|
+
prefix?: string | undefined;
|
|
962
681
|
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
963
|
-
infix?: string;
|
|
682
|
+
infix?: string | undefined;
|
|
964
683
|
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
965
|
-
max_extra_prefix?: number;
|
|
684
|
+
max_extra_prefix?: number | undefined;
|
|
966
685
|
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
967
|
-
max_extra_suffix?: number;
|
|
968
|
-
/** Filter conditions for refining
|
|
969
|
-
filter_by?: string;
|
|
686
|
+
max_extra_suffix?: number | undefined;
|
|
687
|
+
/** Filter conditions for refining your open api validator search results. Separate multiple conditions with &&. */
|
|
688
|
+
filter_by?: string | undefined;
|
|
689
|
+
/** 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 */
|
|
690
|
+
enable_lazy_filter?: boolean | undefined;
|
|
691
|
+
/** 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*. */
|
|
692
|
+
max_filter_by_candidates?: number | undefined;
|
|
970
693
|
/** 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` */
|
|
971
|
-
sort_by?: string;
|
|
694
|
+
sort_by?: string | undefined;
|
|
972
695
|
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
973
|
-
facet_by?: string;
|
|
696
|
+
facet_by?: string | undefined;
|
|
974
697
|
/** Maximum number of facet values to be returned. */
|
|
975
|
-
max_facet_values?: number;
|
|
698
|
+
max_facet_values?: number | undefined;
|
|
976
699
|
/** 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". */
|
|
977
|
-
facet_query?: string;
|
|
700
|
+
facet_query?: string | undefined;
|
|
701
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
702
|
+
facet_query_num_typos?: number | undefined;
|
|
978
703
|
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
979
|
-
num_typos?: string;
|
|
704
|
+
num_typos?: string | undefined;
|
|
980
705
|
/** Results from this specific page number would be fetched. */
|
|
981
|
-
page?: number;
|
|
706
|
+
page?: number | undefined;
|
|
982
707
|
/** Number of results to fetch per page. Default: 10 */
|
|
983
|
-
per_page?: number;
|
|
708
|
+
per_page?: number | undefined;
|
|
984
709
|
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
985
|
-
limit?: number;
|
|
710
|
+
limit?: number | undefined;
|
|
986
711
|
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
987
|
-
offset?: number;
|
|
712
|
+
offset?: number | undefined;
|
|
988
713
|
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
989
|
-
group_by?: string;
|
|
714
|
+
group_by?: string | undefined;
|
|
990
715
|
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
991
|
-
group_limit?: number;
|
|
716
|
+
group_limit?: number | undefined;
|
|
992
717
|
/** 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 */
|
|
993
|
-
group_missing_values?: boolean;
|
|
718
|
+
group_missing_values?: boolean | undefined;
|
|
719
|
+
/** 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. */
|
|
720
|
+
group_max_candidates?: number | undefined;
|
|
994
721
|
/** List of fields from the document to include in the search result */
|
|
995
|
-
include_fields?: string;
|
|
722
|
+
include_fields?: string | undefined;
|
|
996
723
|
/** List of fields from the document to exclude in the search result */
|
|
997
|
-
exclude_fields?: string;
|
|
724
|
+
exclude_fields?: string | undefined;
|
|
998
725
|
/** List of fields which should be highlighted fully without snippeting */
|
|
999
|
-
highlight_full_fields?: string;
|
|
726
|
+
highlight_full_fields?: string | undefined;
|
|
1000
727
|
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
1001
|
-
highlight_affix_num_tokens?: number;
|
|
728
|
+
highlight_affix_num_tokens?: number | undefined;
|
|
1002
729
|
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
1003
|
-
highlight_start_tag?: string;
|
|
730
|
+
highlight_start_tag?: string | undefined;
|
|
1004
731
|
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
1005
|
-
highlight_end_tag?: string;
|
|
732
|
+
highlight_end_tag?: string | undefined;
|
|
733
|
+
/** Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true */
|
|
734
|
+
enable_highlight_v1?: boolean | undefined;
|
|
735
|
+
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
736
|
+
enable_analytics?: boolean | undefined;
|
|
1006
737
|
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
1007
|
-
snippet_threshold?: number;
|
|
738
|
+
snippet_threshold?: number | undefined;
|
|
739
|
+
/** List of synonym set names to associate with this search query */
|
|
740
|
+
synonym_sets?: string | undefined;
|
|
1008
741
|
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
1009
|
-
drop_tokens_threshold?: number;
|
|
1010
|
-
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
742
|
+
drop_tokens_threshold?: number | undefined;
|
|
743
|
+
drop_tokens_mode?: DropTokensMode | (string & {}) | undefined;
|
|
1011
744
|
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
1012
|
-
typo_tokens_threshold?: number;
|
|
745
|
+
typo_tokens_threshold?: number | undefined;
|
|
1013
746
|
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
1014
|
-
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
747
|
+
enable_typos_for_alpha_numerical_tokens?: boolean | undefined;
|
|
1015
748
|
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
1016
|
-
filter_curated_hits?: boolean;
|
|
749
|
+
filter_curated_hits?: boolean | undefined;
|
|
1017
750
|
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
1018
|
-
enable_synonyms?: boolean;
|
|
1019
|
-
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
1020
|
-
enable_analytics?: boolean;
|
|
751
|
+
enable_synonyms?: boolean | undefined;
|
|
1021
752
|
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1022
|
-
synonym_prefix?: boolean;
|
|
753
|
+
synonym_prefix?: boolean | undefined;
|
|
754
|
+
/** 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 */
|
|
755
|
+
demote_synonym_match?: boolean | undefined;
|
|
1023
756
|
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1024
|
-
synonym_num_typos?: number;
|
|
757
|
+
synonym_num_typos?: number | undefined;
|
|
1025
758
|
/** 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`. */
|
|
1026
|
-
pinned_hits?: string;
|
|
759
|
+
pinned_hits?: string | undefined;
|
|
1027
760
|
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. 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`. */
|
|
1028
|
-
hidden_hits?: string;
|
|
761
|
+
hidden_hits?: string | undefined;
|
|
1029
762
|
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
1030
|
-
curation_tags?: string;
|
|
763
|
+
curation_tags?: string | undefined;
|
|
1031
764
|
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1032
|
-
highlight_fields?: string;
|
|
765
|
+
highlight_fields?: string | undefined;
|
|
766
|
+
/** 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. */
|
|
767
|
+
rerank_hybrid_matches?: boolean | undefined;
|
|
768
|
+
/** 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`. */
|
|
769
|
+
split_join_tokens?: string | undefined;
|
|
1033
770
|
/** 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 */
|
|
1034
|
-
pre_segmented_query?: boolean;
|
|
771
|
+
pre_segmented_query?: boolean | undefined;
|
|
1035
772
|
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
1036
|
-
preset?: string;
|
|
773
|
+
preset?: string | undefined;
|
|
1037
774
|
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
1038
|
-
enable_curations?: boolean;
|
|
775
|
+
enable_curations?: boolean | undefined;
|
|
1039
776
|
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
1040
|
-
prioritize_exact_match?: boolean;
|
|
777
|
+
prioritize_exact_match?: boolean | undefined;
|
|
778
|
+
/** Control the number of words that Typesense considers for typo and prefix searching. */
|
|
779
|
+
max_candidates?: number | undefined;
|
|
1041
780
|
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
1042
|
-
prioritize_token_position?: boolean;
|
|
781
|
+
prioritize_token_position?: boolean | undefined;
|
|
1043
782
|
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
1044
|
-
prioritize_num_matching_fields?: boolean;
|
|
783
|
+
prioritize_num_matching_fields?: boolean | undefined;
|
|
1045
784
|
/** Make Typesense disable typos for numerical tokens. */
|
|
1046
|
-
enable_typos_for_numerical_tokens?: boolean;
|
|
785
|
+
enable_typos_for_numerical_tokens?: boolean | undefined;
|
|
1047
786
|
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
1048
|
-
exhaustive_search?: boolean;
|
|
787
|
+
exhaustive_search?: boolean | undefined;
|
|
1049
788
|
/** 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. */
|
|
1050
|
-
search_cutoff_ms?: number;
|
|
789
|
+
search_cutoff_ms?: number | undefined;
|
|
790
|
+
/** 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. */
|
|
791
|
+
limit_hits?: number | undefined;
|
|
1051
792
|
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1052
|
-
use_cache?: boolean;
|
|
793
|
+
use_cache?: boolean | undefined;
|
|
1053
794
|
/** 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. */
|
|
1054
|
-
cache_ttl?: number;
|
|
795
|
+
cache_ttl?: number | undefined;
|
|
1055
796
|
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1056
|
-
min_len_1typo?: number;
|
|
797
|
+
min_len_1typo?: number | undefined;
|
|
1057
798
|
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1058
|
-
min_len_2typo?: number;
|
|
799
|
+
min_len_2typo?: number | undefined;
|
|
1059
800
|
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
1060
|
-
vector_query?: string;
|
|
801
|
+
vector_query?: string | undefined;
|
|
1061
802
|
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
1062
|
-
remote_embedding_timeout_ms?: number;
|
|
803
|
+
remote_embedding_timeout_ms?: number | undefined;
|
|
1063
804
|
/** Number of times to retry fetching remote embeddings. */
|
|
1064
|
-
remote_embedding_num_tries?: number;
|
|
805
|
+
remote_embedding_num_tries?: number | undefined;
|
|
1065
806
|
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
1066
|
-
facet_strategy?: string;
|
|
807
|
+
facet_strategy?: string | undefined;
|
|
1067
808
|
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
1068
|
-
stopwords?: string;
|
|
809
|
+
stopwords?: string | undefined;
|
|
1069
810
|
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1070
|
-
facet_return_parent?: string;
|
|
811
|
+
facet_return_parent?: string | undefined;
|
|
812
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
813
|
+
facet_sample_percent?: number | undefined;
|
|
814
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
815
|
+
facet_sample_threshold?: number | undefined;
|
|
816
|
+
/** 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. */
|
|
817
|
+
facet_sample_slope?: number | undefined;
|
|
1071
818
|
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1072
|
-
voice_query?: string;
|
|
819
|
+
voice_query?: string | undefined;
|
|
1073
820
|
/** Enable conversational search. */
|
|
1074
|
-
conversation?: boolean;
|
|
821
|
+
conversation?: boolean | undefined;
|
|
1075
822
|
/** The Id of Conversation Model to be used. */
|
|
1076
|
-
conversation_model_id?: string;
|
|
823
|
+
conversation_model_id?: string | undefined;
|
|
1077
824
|
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
1078
|
-
conversation_id?: string;
|
|
1079
|
-
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
1080
|
-
validate_field_names?: boolean;
|
|
825
|
+
conversation_id?: string | undefined;
|
|
1081
826
|
}
|
|
1082
|
-
export declare const MultiSearchParameters: S.Schema<MultiSearchParameters>;
|
|
1083
827
|
export interface MultiSearchCollectionParameters {
|
|
1084
828
|
/** 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. */
|
|
1085
|
-
q?: string;
|
|
829
|
+
q?: string | undefined;
|
|
1086
830
|
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
1087
|
-
query_by?: string;
|
|
831
|
+
query_by?: string | undefined;
|
|
1088
832
|
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
1089
|
-
query_by_weights?: string;
|
|
833
|
+
query_by_weights?: string | undefined;
|
|
1090
834
|
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
1091
|
-
text_match_type?: string;
|
|
835
|
+
text_match_type?: string | undefined;
|
|
1092
836
|
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
1093
|
-
prefix?: string;
|
|
837
|
+
prefix?: string | undefined;
|
|
1094
838
|
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
1095
|
-
infix?: string;
|
|
839
|
+
infix?: string | undefined;
|
|
1096
840
|
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1097
|
-
max_extra_prefix?: number;
|
|
841
|
+
max_extra_prefix?: number | undefined;
|
|
1098
842
|
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1099
|
-
max_extra_suffix?: number;
|
|
843
|
+
max_extra_suffix?: number | undefined;
|
|
1100
844
|
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
1101
|
-
filter_by?: string;
|
|
845
|
+
filter_by?: string | undefined;
|
|
846
|
+
/** 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 */
|
|
847
|
+
enable_lazy_filter?: boolean | undefined;
|
|
848
|
+
/** 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*. */
|
|
849
|
+
max_filter_by_candidates?: number | undefined;
|
|
1102
850
|
/** 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` */
|
|
1103
|
-
sort_by?: string;
|
|
851
|
+
sort_by?: string | undefined;
|
|
1104
852
|
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
1105
|
-
facet_by?: string;
|
|
853
|
+
facet_by?: string | undefined;
|
|
1106
854
|
/** Maximum number of facet values to be returned. */
|
|
1107
|
-
max_facet_values?: number;
|
|
855
|
+
max_facet_values?: number | undefined;
|
|
1108
856
|
/** 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". */
|
|
1109
|
-
facet_query?: string;
|
|
857
|
+
facet_query?: string | undefined;
|
|
858
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
859
|
+
facet_query_num_typos?: number | undefined;
|
|
1110
860
|
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1111
|
-
num_typos?: string;
|
|
861
|
+
num_typos?: string | undefined;
|
|
1112
862
|
/** Results from this specific page number would be fetched. */
|
|
1113
|
-
page?: number;
|
|
863
|
+
page?: number | undefined;
|
|
1114
864
|
/** Number of results to fetch per page. Default: 10 */
|
|
1115
|
-
per_page?: number;
|
|
865
|
+
per_page?: number | undefined;
|
|
1116
866
|
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
1117
|
-
limit?: number;
|
|
867
|
+
limit?: number | undefined;
|
|
1118
868
|
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
1119
|
-
offset?: number;
|
|
869
|
+
offset?: number | undefined;
|
|
1120
870
|
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
1121
|
-
group_by?: string;
|
|
871
|
+
group_by?: string | undefined;
|
|
1122
872
|
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
1123
|
-
group_limit?: number;
|
|
873
|
+
group_limit?: number | undefined;
|
|
1124
874
|
/** 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 */
|
|
1125
|
-
group_missing_values?: boolean;
|
|
875
|
+
group_missing_values?: boolean | undefined;
|
|
876
|
+
/** 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. */
|
|
877
|
+
group_max_candidates?: number | undefined;
|
|
1126
878
|
/** List of fields from the document to include in the search result */
|
|
1127
|
-
include_fields?: string;
|
|
879
|
+
include_fields?: string | undefined;
|
|
1128
880
|
/** List of fields from the document to exclude in the search result */
|
|
1129
|
-
exclude_fields?: string;
|
|
881
|
+
exclude_fields?: string | undefined;
|
|
1130
882
|
/** List of fields which should be highlighted fully without snippeting */
|
|
1131
|
-
highlight_full_fields?: string;
|
|
883
|
+
highlight_full_fields?: string | undefined;
|
|
1132
884
|
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
1133
|
-
highlight_affix_num_tokens?: number;
|
|
885
|
+
highlight_affix_num_tokens?: number | undefined;
|
|
1134
886
|
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
1135
|
-
highlight_start_tag?: string;
|
|
887
|
+
highlight_start_tag?: string | undefined;
|
|
1136
888
|
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
1137
|
-
highlight_end_tag?: string;
|
|
889
|
+
highlight_end_tag?: string | undefined;
|
|
1138
890
|
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
1139
|
-
snippet_threshold?: number;
|
|
891
|
+
snippet_threshold?: number | undefined;
|
|
1140
892
|
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
1141
|
-
drop_tokens_threshold?: number;
|
|
1142
|
-
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
893
|
+
drop_tokens_threshold?: number | undefined;
|
|
894
|
+
drop_tokens_mode?: DropTokensMode | (string & {}) | undefined;
|
|
1143
895
|
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
1144
|
-
typo_tokens_threshold?: number;
|
|
896
|
+
typo_tokens_threshold?: number | undefined;
|
|
1145
897
|
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
1146
|
-
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
898
|
+
enable_typos_for_alpha_numerical_tokens?: boolean | undefined;
|
|
1147
899
|
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
1148
|
-
filter_curated_hits?: boolean;
|
|
900
|
+
filter_curated_hits?: boolean | undefined;
|
|
1149
901
|
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
1150
|
-
enable_synonyms?: boolean;
|
|
902
|
+
enable_synonyms?: boolean | undefined;
|
|
1151
903
|
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
1152
|
-
enable_analytics?: boolean;
|
|
904
|
+
enable_analytics?: boolean | undefined;
|
|
1153
905
|
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1154
|
-
synonym_prefix?: boolean;
|
|
906
|
+
synonym_prefix?: boolean | undefined;
|
|
907
|
+
/** 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 */
|
|
908
|
+
demote_synonym_match?: boolean | undefined;
|
|
1155
909
|
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1156
|
-
synonym_num_typos?: number;
|
|
910
|
+
synonym_num_typos?: number | undefined;
|
|
1157
911
|
/** 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`. */
|
|
1158
|
-
pinned_hits?: string;
|
|
912
|
+
pinned_hits?: string | undefined;
|
|
1159
913
|
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. 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`. */
|
|
1160
|
-
hidden_hits?: string;
|
|
914
|
+
hidden_hits?: string | undefined;
|
|
1161
915
|
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
1162
|
-
curation_tags?: string;
|
|
916
|
+
curation_tags?: string | undefined;
|
|
1163
917
|
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1164
|
-
highlight_fields?: string;
|
|
918
|
+
highlight_fields?: string | undefined;
|
|
919
|
+
/** 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. */
|
|
920
|
+
rerank_hybrid_matches?: boolean | undefined;
|
|
1165
921
|
/** 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 */
|
|
1166
|
-
pre_segmented_query?: boolean;
|
|
922
|
+
pre_segmented_query?: boolean | undefined;
|
|
1167
923
|
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
1168
|
-
preset?: string;
|
|
924
|
+
preset?: string | undefined;
|
|
1169
925
|
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
1170
|
-
enable_curations?: boolean;
|
|
926
|
+
enable_curations?: boolean | undefined;
|
|
1171
927
|
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
1172
|
-
prioritize_exact_match?: boolean;
|
|
928
|
+
prioritize_exact_match?: boolean | undefined;
|
|
1173
929
|
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
1174
|
-
prioritize_token_position?: boolean;
|
|
930
|
+
prioritize_token_position?: boolean | undefined;
|
|
1175
931
|
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
1176
|
-
prioritize_num_matching_fields?: boolean;
|
|
932
|
+
prioritize_num_matching_fields?: boolean | undefined;
|
|
1177
933
|
/** Make Typesense disable typos for numerical tokens. */
|
|
1178
|
-
enable_typos_for_numerical_tokens?: boolean;
|
|
934
|
+
enable_typos_for_numerical_tokens?: boolean | undefined;
|
|
1179
935
|
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
1180
|
-
exhaustive_search?: boolean;
|
|
936
|
+
exhaustive_search?: boolean | undefined;
|
|
1181
937
|
/** 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. */
|
|
1182
|
-
search_cutoff_ms?: number;
|
|
938
|
+
search_cutoff_ms?: number | undefined;
|
|
939
|
+
/** 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. */
|
|
940
|
+
limit_hits?: number | undefined;
|
|
1183
941
|
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1184
|
-
use_cache?: boolean;
|
|
942
|
+
use_cache?: boolean | undefined;
|
|
1185
943
|
/** 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. */
|
|
1186
|
-
cache_ttl?: number;
|
|
944
|
+
cache_ttl?: number | undefined;
|
|
1187
945
|
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1188
|
-
min_len_1typo?: number;
|
|
946
|
+
min_len_1typo?: number | undefined;
|
|
1189
947
|
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1190
|
-
min_len_2typo?: number;
|
|
948
|
+
min_len_2typo?: number | undefined;
|
|
1191
949
|
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
1192
|
-
vector_query?: string;
|
|
950
|
+
vector_query?: string | undefined;
|
|
1193
951
|
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
1194
|
-
remote_embedding_timeout_ms?: number;
|
|
952
|
+
remote_embedding_timeout_ms?: number | undefined;
|
|
1195
953
|
/** Number of times to retry fetching remote embeddings. */
|
|
1196
|
-
remote_embedding_num_tries?: number;
|
|
954
|
+
remote_embedding_num_tries?: number | undefined;
|
|
1197
955
|
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
1198
|
-
facet_strategy?: string;
|
|
956
|
+
facet_strategy?: string | undefined;
|
|
1199
957
|
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
1200
|
-
stopwords?: string;
|
|
958
|
+
stopwords?: string | undefined;
|
|
1201
959
|
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1202
|
-
facet_return_parent?: string;
|
|
960
|
+
facet_return_parent?: string | undefined;
|
|
961
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
962
|
+
facet_sample_percent?: number | undefined;
|
|
963
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
964
|
+
facet_sample_threshold?: number | undefined;
|
|
965
|
+
/** 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. */
|
|
966
|
+
facet_sample_slope?: number | undefined;
|
|
1203
967
|
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1204
|
-
voice_query?: string;
|
|
968
|
+
voice_query?: string | undefined;
|
|
1205
969
|
/** Enable conversational search. */
|
|
1206
|
-
conversation?: boolean;
|
|
970
|
+
conversation?: boolean | undefined;
|
|
1207
971
|
/** The Id of Conversation Model to be used. */
|
|
1208
|
-
conversation_model_id?: string;
|
|
972
|
+
conversation_model_id?: string | undefined;
|
|
1209
973
|
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
1210
|
-
conversation_id?: string;
|
|
974
|
+
conversation_id?: string | undefined;
|
|
1211
975
|
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
1212
|
-
validate_field_names?: boolean;
|
|
976
|
+
validate_field_names?: boolean | undefined;
|
|
1213
977
|
/** The collection to search in. */
|
|
1214
|
-
collection?: string;
|
|
978
|
+
collection?: string | undefined;
|
|
1215
979
|
/** A separate search API key for each search within a multi_search request */
|
|
1216
|
-
x_typesense_api_key?: string;
|
|
1217
|
-
/** 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. */
|
|
1218
|
-
rerank_hybrid_matches?: boolean;
|
|
980
|
+
x_typesense_api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1219
981
|
}
|
|
1220
|
-
export
|
|
1221
|
-
export
|
|
1222
|
-
export declare const MultiSearchRequestSearchesList: S.Schema<MultiSearchRequestSearchesList>;
|
|
1223
|
-
export interface MultiSearchRequest {
|
|
1224
|
-
multiSearchParameters: MultiSearchParameters;
|
|
982
|
+
export type MultiSearchSearchesParameterSearchesList = Array<MultiSearchCollectionParameters>;
|
|
983
|
+
export interface MultiSearchSearchesParameter {
|
|
1225
984
|
/** When true, merges the search results from each search query into a single ordered set of hits. */
|
|
1226
|
-
union?: boolean;
|
|
1227
|
-
searches:
|
|
985
|
+
union?: boolean | undefined;
|
|
986
|
+
searches: MultiSearchSearchesParameterSearchesList;
|
|
1228
987
|
}
|
|
1229
|
-
export
|
|
1230
|
-
export interface
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
value?: string;
|
|
1234
|
-
parent?: unknown;
|
|
988
|
+
export type PresetSchemaValue = SearchParameters | MultiSearchSearchesParameter;
|
|
989
|
+
export interface PresetSchema {
|
|
990
|
+
value: PresetSchemaValue;
|
|
991
|
+
name: string;
|
|
1235
992
|
}
|
|
1236
|
-
export
|
|
1237
|
-
export
|
|
1238
|
-
|
|
1239
|
-
export interface FacetCountsStats {
|
|
1240
|
-
max?: number;
|
|
1241
|
-
min?: number;
|
|
1242
|
-
sum?: number;
|
|
1243
|
-
total_values?: number;
|
|
1244
|
-
avg?: number;
|
|
993
|
+
export type PresetsRetrieveSchemaPresetsList = Array<PresetSchema>;
|
|
994
|
+
export interface PresetsRetrieveSchema {
|
|
995
|
+
presets: PresetsRetrieveSchemaPresetsList;
|
|
1245
996
|
}
|
|
1246
|
-
export
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
997
|
+
export interface GetAnalyticsEventsRequest {
|
|
998
|
+
user_id: string;
|
|
999
|
+
/** Analytics rule name */
|
|
1000
|
+
name: string;
|
|
1001
|
+
/** Number of events to return (max 1000) */
|
|
1002
|
+
n: number;
|
|
1252
1003
|
}
|
|
1253
|
-
export
|
|
1254
|
-
export
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
export declare const SearchHighlightValuesList: S.Schema<SearchHighlightValuesList>;
|
|
1264
|
-
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1265
|
-
export type SearchHighlightIndicesList = Array<number>;
|
|
1266
|
-
export declare const SearchHighlightIndicesList: S.Schema<SearchHighlightIndicesList>;
|
|
1267
|
-
export type SearchHighlightMatchedTokensList = Array<unknown>;
|
|
1268
|
-
export declare const SearchHighlightMatchedTokensList: S.Schema<SearchHighlightMatchedTokensList>;
|
|
1269
|
-
export interface SearchHighlight {
|
|
1270
|
-
field?: string;
|
|
1271
|
-
/** Present only for (non-array) string fields */
|
|
1272
|
-
snippet?: string;
|
|
1273
|
-
/** Present only for (array) string[] fields */
|
|
1274
|
-
snippets?: SearchHighlightSnippetsList;
|
|
1275
|
-
/** Full field value with highlighting, present only for (non-array) string fields */
|
|
1276
|
-
value?: string;
|
|
1277
|
-
/** Full field value with highlighting, present only for (array) string[] fields */
|
|
1278
|
-
values?: SearchHighlightValuesList;
|
|
1279
|
-
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1280
|
-
indices?: SearchHighlightIndicesList;
|
|
1281
|
-
matched_tokens?: SearchHighlightMatchedTokensList;
|
|
1282
|
-
}
|
|
1283
|
-
export declare const SearchHighlight: S.Schema<SearchHighlight>;
|
|
1284
|
-
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1285
|
-
export type SearchResultHitHighlightsList = Array<SearchHighlight>;
|
|
1286
|
-
export declare const SearchResultHitHighlightsList: S.Schema<SearchResultHitHighlightsList>;
|
|
1287
|
-
/** Highlighted version of the matching document */
|
|
1288
|
-
export type SearchResultHitHighlightMap = {
|
|
1289
|
-
[key: string]: unknown | undefined;
|
|
1290
|
-
};
|
|
1291
|
-
export declare const SearchResultHitHighlightMap: S.Schema<SearchResultHitHighlightMap>;
|
|
1292
|
-
/** Can be any key-value pair */
|
|
1293
|
-
export type SearchResultHitDocumentMap = {
|
|
1294
|
-
[key: string]: unknown | undefined;
|
|
1295
|
-
};
|
|
1296
|
-
export declare const SearchResultHitDocumentMap: S.Schema<SearchResultHitDocumentMap>;
|
|
1297
|
-
export interface SearchResultHitTextMatchInfo {
|
|
1298
|
-
best_field_score?: string;
|
|
1299
|
-
best_field_weight?: number;
|
|
1300
|
-
fields_matched?: number;
|
|
1301
|
-
num_tokens_dropped?: number;
|
|
1302
|
-
score?: string;
|
|
1303
|
-
tokens_matched?: number;
|
|
1304
|
-
typo_prefix_score?: number;
|
|
1305
|
-
}
|
|
1306
|
-
export declare const SearchResultHitTextMatchInfo: S.Schema<SearchResultHitTextMatchInfo>;
|
|
1307
|
-
/** Can be any key-value pair */
|
|
1308
|
-
export type SearchResultHitGeoDistanceMetersMap = {
|
|
1309
|
-
[key: string]: number | undefined;
|
|
1310
|
-
};
|
|
1311
|
-
export declare const SearchResultHitGeoDistanceMetersMap: S.Schema<SearchResultHitGeoDistanceMetersMap>;
|
|
1312
|
-
/** Information about hybrid search scoring */
|
|
1313
|
-
export interface SearchResultHitHybridSearchInfo {
|
|
1314
|
-
/** Combined score from rank fusion of text and vector search */
|
|
1315
|
-
rank_fusion_score?: number;
|
|
1316
|
-
}
|
|
1317
|
-
export declare const SearchResultHitHybridSearchInfo: S.Schema<SearchResultHitHybridSearchInfo>;
|
|
1318
|
-
export interface SearchResultHit {
|
|
1319
|
-
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1320
|
-
highlights?: SearchResultHitHighlightsList;
|
|
1321
|
-
/** Highlighted version of the matching document */
|
|
1322
|
-
highlight?: SearchResultHitHighlightMap;
|
|
1323
|
-
/** Can be any key-value pair */
|
|
1324
|
-
document?: SearchResultHitDocumentMap;
|
|
1325
|
-
text_match?: number;
|
|
1326
|
-
text_match_info?: SearchResultHitTextMatchInfo;
|
|
1327
|
-
/** Can be any key-value pair */
|
|
1328
|
-
geo_distance_meters?: SearchResultHitGeoDistanceMetersMap;
|
|
1329
|
-
/** Distance between the query vector and matching document's vector value */
|
|
1330
|
-
vector_distance?: number;
|
|
1331
|
-
/** Information about hybrid search scoring */
|
|
1332
|
-
hybrid_search_info?: SearchResultHitHybridSearchInfo;
|
|
1333
|
-
/** Returned only for union query response. Indicates the index of the query which this document matched to. */
|
|
1334
|
-
search_index?: number;
|
|
1335
|
-
}
|
|
1336
|
-
export declare const SearchResultHit: S.Schema<SearchResultHit>;
|
|
1337
|
-
/** The documents that matched the search query */
|
|
1338
|
-
export type SearchGroupedHitHitsList = Array<SearchResultHit>;
|
|
1339
|
-
export declare const SearchGroupedHitHitsList: S.Schema<SearchGroupedHitHitsList>;
|
|
1340
|
-
export interface SearchGroupedHit {
|
|
1341
|
-
found?: number;
|
|
1342
|
-
group_key: SearchGroupedHitGroupKeyList;
|
|
1343
|
-
/** The documents that matched the search query */
|
|
1344
|
-
hits: SearchGroupedHitHitsList;
|
|
1345
|
-
}
|
|
1346
|
-
export declare const SearchGroupedHit: S.Schema<SearchGroupedHit>;
|
|
1347
|
-
export type MultiSearchResultItemGroupedHitsList = Array<SearchGroupedHit>;
|
|
1348
|
-
export declare const MultiSearchResultItemGroupedHitsList: S.Schema<MultiSearchResultItemGroupedHitsList>;
|
|
1349
|
-
/** The documents that matched the search query */
|
|
1350
|
-
export type MultiSearchResultItemHitsList = Array<SearchResultHit>;
|
|
1351
|
-
export declare const MultiSearchResultItemHitsList: S.Schema<MultiSearchResultItemHitsList>;
|
|
1352
|
-
export interface SearchRequestParamsVoiceQuery {
|
|
1353
|
-
transcribed_query?: string;
|
|
1354
|
-
}
|
|
1355
|
-
export declare const SearchRequestParamsVoiceQuery: S.Schema<SearchRequestParamsVoiceQuery>;
|
|
1356
|
-
export interface SearchRequestParams {
|
|
1357
|
-
collection_name: string;
|
|
1358
|
-
first_q?: string;
|
|
1359
|
-
q: string;
|
|
1360
|
-
per_page: number;
|
|
1361
|
-
voice_query?: SearchRequestParamsVoiceQuery;
|
|
1362
|
-
}
|
|
1363
|
-
export declare const SearchRequestParams: S.Schema<SearchRequestParams>;
|
|
1364
|
-
export type SearchResultConversationConversationHistoryList = Array<unknown>;
|
|
1365
|
-
export declare const SearchResultConversationConversationHistoryList: S.Schema<SearchResultConversationConversationHistoryList>;
|
|
1366
|
-
export interface SearchResultConversation {
|
|
1367
|
-
answer: string;
|
|
1368
|
-
conversation_history: SearchResultConversationConversationHistoryList;
|
|
1369
|
-
conversation_id: string;
|
|
1370
|
-
query: string;
|
|
1004
|
+
export type AnalyticsEventsResponseEventsItemDocIdsList = Array<string>;
|
|
1005
|
+
export interface AnalyticsEventsResponseEventsItem {
|
|
1006
|
+
name?: string | undefined;
|
|
1007
|
+
event_type?: string | undefined;
|
|
1008
|
+
collection?: string | undefined;
|
|
1009
|
+
timestamp?: number | undefined;
|
|
1010
|
+
user_id?: string | undefined;
|
|
1011
|
+
doc_id?: string | undefined;
|
|
1012
|
+
doc_ids?: AnalyticsEventsResponseEventsItemDocIdsList | undefined;
|
|
1013
|
+
query?: string | undefined;
|
|
1371
1014
|
}
|
|
1372
|
-
export
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
export declare const MultiSearchResultItemUnionRequestParamsList: S.Schema<MultiSearchResultItemUnionRequestParamsList>;
|
|
1376
|
-
/** Custom JSON object that can be returned in the search response */
|
|
1377
|
-
export type MultiSearchResultItemMetadataMap = {
|
|
1378
|
-
[key: string]: unknown | undefined;
|
|
1379
|
-
};
|
|
1380
|
-
export declare const MultiSearchResultItemMetadataMap: S.Schema<MultiSearchResultItemMetadataMap>;
|
|
1381
|
-
export interface MultiSearchResultItem {
|
|
1382
|
-
facet_counts?: MultiSearchResultItemFacetCountsList;
|
|
1383
|
-
/** The number of documents found */
|
|
1384
|
-
found?: number;
|
|
1385
|
-
found_docs?: number;
|
|
1386
|
-
/** The number of milliseconds the search took */
|
|
1387
|
-
search_time_ms?: number;
|
|
1388
|
-
/** The total number of documents in the collection */
|
|
1389
|
-
out_of?: number;
|
|
1390
|
-
/** Whether the search was cut off */
|
|
1391
|
-
search_cutoff?: boolean;
|
|
1392
|
-
/** The search result page number */
|
|
1393
|
-
page?: number;
|
|
1394
|
-
grouped_hits?: MultiSearchResultItemGroupedHitsList;
|
|
1395
|
-
/** The documents that matched the search query */
|
|
1396
|
-
hits?: MultiSearchResultItemHitsList;
|
|
1397
|
-
request_params?: SearchRequestParams;
|
|
1398
|
-
conversation?: SearchResultConversation;
|
|
1399
|
-
/** Returned only for union query response. */
|
|
1400
|
-
union_request_params?: MultiSearchResultItemUnionRequestParamsList;
|
|
1401
|
-
/** Custom JSON object that can be returned in the search response */
|
|
1402
|
-
metadata?: MultiSearchResultItemMetadataMap;
|
|
1403
|
-
/** HTTP error code */
|
|
1404
|
-
code?: number;
|
|
1405
|
-
/** Error description */
|
|
1406
|
-
error?: string;
|
|
1015
|
+
export type AnalyticsEventsResponseEventsList = Array<AnalyticsEventsResponseEventsItem>;
|
|
1016
|
+
export interface AnalyticsEventsResponse {
|
|
1017
|
+
events: AnalyticsEventsResponseEventsList;
|
|
1407
1018
|
}
|
|
1408
|
-
export
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
export interface MultiSearchResult {
|
|
1412
|
-
results: MultiSearchResultResultsList;
|
|
1413
|
-
conversation?: SearchResultConversation;
|
|
1019
|
+
export interface GetAnalyticsRuleRequest {
|
|
1020
|
+
/** The name of the analytics rule to retrieve */
|
|
1021
|
+
ruleName: string;
|
|
1414
1022
|
}
|
|
1415
|
-
export
|
|
1416
|
-
export interface
|
|
1023
|
+
export type GetAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
1024
|
+
export interface GetAnalyticsRuleResponseParams {
|
|
1025
|
+
destination_collection?: string | undefined;
|
|
1026
|
+
limit?: number | undefined;
|
|
1027
|
+
capture_search_requests?: boolean | undefined;
|
|
1028
|
+
meta_fields?: GetAnalyticsRuleResponseParamsMetaFieldsList | undefined;
|
|
1029
|
+
expand_query?: boolean | undefined;
|
|
1030
|
+
counter_field?: string | undefined;
|
|
1031
|
+
weight?: number | undefined;
|
|
1032
|
+
}
|
|
1033
|
+
export interface GetAnalyticsRuleResponse {
|
|
1034
|
+
name: string;
|
|
1035
|
+
type: AnalyticsRuleType;
|
|
1036
|
+
collection: string;
|
|
1037
|
+
event_type: string;
|
|
1038
|
+
rule_tag?: string | undefined;
|
|
1039
|
+
params?: GetAnalyticsRuleResponseParams | undefined;
|
|
1417
1040
|
}
|
|
1418
|
-
export
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
id: string;
|
|
1422
|
-
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
1423
|
-
model_name: string;
|
|
1424
|
-
/** The LLM service's API Key */
|
|
1425
|
-
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
1426
|
-
/** Typesense collection that stores the historical conversations */
|
|
1427
|
-
history_collection: string;
|
|
1428
|
-
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
1429
|
-
account_id?: string;
|
|
1430
|
-
/** The system prompt that contains special instructions to the LLM */
|
|
1431
|
-
system_prompt?: string;
|
|
1432
|
-
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
1433
|
-
ttl?: number;
|
|
1434
|
-
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
1435
|
-
max_bytes: number;
|
|
1436
|
-
/** URL of vLLM service */
|
|
1437
|
-
vllm_url?: string;
|
|
1041
|
+
export interface GetAnalyticsRulesRequest {
|
|
1042
|
+
/** Filter rules by rule_tag */
|
|
1043
|
+
rule_tag?: string | undefined;
|
|
1438
1044
|
}
|
|
1439
|
-
export
|
|
1440
|
-
export type
|
|
1441
|
-
export
|
|
1442
|
-
export type RetrieveAllConversationModelsResponse = RetrieveAllConversationModelsResponseBodyList;
|
|
1443
|
-
export declare const RetrieveAllConversationModelsResponse: S.Schema<RetrieveAllConversationModelsResponse>;
|
|
1444
|
-
export interface RetrieveAllNLSearchModelsRequest {
|
|
1045
|
+
export type GetAnalyticsRulesResponseBodyList = Array<AnalyticsRule>;
|
|
1046
|
+
export type GetAnalyticsRulesResponse = GetAnalyticsRulesResponseBodyList;
|
|
1047
|
+
export interface GetAnalyticsStatusRequest {
|
|
1445
1048
|
}
|
|
1446
|
-
export
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
1455
|
-
/** Custom API URL for the NL model service */
|
|
1456
|
-
api_url?: string;
|
|
1457
|
-
/** Maximum number of bytes to process */
|
|
1458
|
-
max_bytes?: number;
|
|
1459
|
-
/** Temperature parameter for the NL model */
|
|
1460
|
-
temperature?: number;
|
|
1461
|
-
/** System prompt for the NL model */
|
|
1462
|
-
system_prompt?: string;
|
|
1463
|
-
/** Top-p parameter for the NL model (Google-specific) */
|
|
1464
|
-
top_p?: number;
|
|
1465
|
-
/** Top-k parameter for the NL model (Google-specific) */
|
|
1466
|
-
top_k?: number;
|
|
1467
|
-
/** Stop sequences for the NL model (Google-specific) */
|
|
1468
|
-
stop_sequences?: NLSearchModelSchemaStopSequencesList;
|
|
1469
|
-
/** API version for the NL model service */
|
|
1470
|
-
api_version?: string;
|
|
1471
|
-
/** Project ID for GCP Vertex AI */
|
|
1472
|
-
project_id?: string;
|
|
1473
|
-
/** Access token for GCP Vertex AI */
|
|
1474
|
-
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
1475
|
-
/** Refresh token for GCP Vertex AI */
|
|
1476
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
1477
|
-
/** Client ID for GCP Vertex AI */
|
|
1478
|
-
client_id?: string;
|
|
1479
|
-
/** Client secret for GCP Vertex AI */
|
|
1480
|
-
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
1481
|
-
/** Region for GCP Vertex AI */
|
|
1482
|
-
region?: string;
|
|
1483
|
-
/** Maximum output tokens for GCP Vertex AI */
|
|
1484
|
-
max_output_tokens?: number;
|
|
1485
|
-
/** Account ID for Cloudflare-specific models */
|
|
1486
|
-
account_id?: string;
|
|
1487
|
-
/** Optional ID for the NL search model */
|
|
1488
|
-
id: string;
|
|
1049
|
+
export interface AnalyticsStatus {
|
|
1050
|
+
popular_prefix_queries?: number | undefined;
|
|
1051
|
+
nohits_prefix_queries?: number | undefined;
|
|
1052
|
+
log_prefix_queries?: number | undefined;
|
|
1053
|
+
query_log_events?: number | undefined;
|
|
1054
|
+
query_counter_events?: number | undefined;
|
|
1055
|
+
doc_log_events?: number | undefined;
|
|
1056
|
+
doc_counter_events?: number | undefined;
|
|
1489
1057
|
}
|
|
1490
|
-
export
|
|
1491
|
-
export type RetrieveAllNLSearchModelsResponseBodyList = Array<NLSearchModelSchema>;
|
|
1492
|
-
export declare const RetrieveAllNLSearchModelsResponseBodyList: S.Schema<RetrieveAllNLSearchModelsResponseBodyList>;
|
|
1493
|
-
export type RetrieveAllNLSearchModelsResponse = RetrieveAllNLSearchModelsResponseBodyList;
|
|
1494
|
-
export declare const RetrieveAllNLSearchModelsResponse: S.Schema<RetrieveAllNLSearchModelsResponse>;
|
|
1495
|
-
export interface RetrieveAllPresetsRequest {
|
|
1058
|
+
export interface GetAPIStatsRequest {
|
|
1496
1059
|
}
|
|
1497
|
-
export
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
1512
|
-
text_match_type?: string;
|
|
1513
|
-
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
1514
|
-
prefix?: string;
|
|
1515
|
-
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
1516
|
-
infix?: string;
|
|
1517
|
-
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1518
|
-
max_extra_prefix?: number;
|
|
1519
|
-
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1520
|
-
max_extra_suffix?: number;
|
|
1521
|
-
/** Filter conditions for refining your open api validator search results. Separate multiple conditions with &&. */
|
|
1522
|
-
filter_by?: string;
|
|
1523
|
-
/** 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*. */
|
|
1524
|
-
max_filter_by_candidates?: number;
|
|
1525
|
-
/** 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` */
|
|
1526
|
-
sort_by?: string;
|
|
1527
|
-
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
1528
|
-
facet_by?: string;
|
|
1529
|
-
/** Maximum number of facet values to be returned. */
|
|
1530
|
-
max_facet_values?: number;
|
|
1531
|
-
/** 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". */
|
|
1532
|
-
facet_query?: string;
|
|
1533
|
-
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1534
|
-
num_typos?: string;
|
|
1535
|
-
/** Results from this specific page number would be fetched. */
|
|
1536
|
-
page?: number;
|
|
1537
|
-
/** Number of results to fetch per page. Default: 10 */
|
|
1538
|
-
per_page?: number;
|
|
1539
|
-
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
1540
|
-
limit?: number;
|
|
1541
|
-
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
1542
|
-
offset?: number;
|
|
1543
|
-
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
1544
|
-
group_by?: string;
|
|
1545
|
-
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
1546
|
-
group_limit?: number;
|
|
1547
|
-
/** 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 */
|
|
1548
|
-
group_missing_values?: boolean;
|
|
1549
|
-
/** List of fields from the document to include in the search result */
|
|
1550
|
-
include_fields?: string;
|
|
1551
|
-
/** List of fields from the document to exclude in the search result */
|
|
1552
|
-
exclude_fields?: string;
|
|
1553
|
-
/** List of fields which should be highlighted fully without snippeting */
|
|
1554
|
-
highlight_full_fields?: string;
|
|
1555
|
-
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
1556
|
-
highlight_affix_num_tokens?: number;
|
|
1557
|
-
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
1558
|
-
highlight_start_tag?: string;
|
|
1559
|
-
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
1560
|
-
highlight_end_tag?: string;
|
|
1561
|
-
/** Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true */
|
|
1562
|
-
enable_highlight_v1?: boolean;
|
|
1563
|
-
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
1564
|
-
enable_analytics?: boolean;
|
|
1565
|
-
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
1566
|
-
snippet_threshold?: number;
|
|
1567
|
-
/** List of synonym set names to associate with this search query */
|
|
1568
|
-
synonym_sets?: string;
|
|
1569
|
-
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
1570
|
-
drop_tokens_threshold?: number;
|
|
1571
|
-
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
1572
|
-
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
1573
|
-
typo_tokens_threshold?: number;
|
|
1574
|
-
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
1575
|
-
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
1576
|
-
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
1577
|
-
filter_curated_hits?: boolean;
|
|
1578
|
-
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
1579
|
-
enable_synonyms?: boolean;
|
|
1580
|
-
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1581
|
-
synonym_prefix?: boolean;
|
|
1582
|
-
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1583
|
-
synonym_num_typos?: number;
|
|
1584
|
-
/** 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`. */
|
|
1585
|
-
pinned_hits?: string;
|
|
1586
|
-
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. 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`. */
|
|
1587
|
-
hidden_hits?: string;
|
|
1588
|
-
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
1589
|
-
curation_tags?: string;
|
|
1590
|
-
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1591
|
-
highlight_fields?: string;
|
|
1592
|
-
/** 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`. */
|
|
1593
|
-
split_join_tokens?: string;
|
|
1594
|
-
/** 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 */
|
|
1595
|
-
pre_segmented_query?: boolean;
|
|
1596
|
-
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
1597
|
-
preset?: string;
|
|
1598
|
-
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
1599
|
-
enable_curations?: boolean;
|
|
1600
|
-
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
1601
|
-
prioritize_exact_match?: boolean;
|
|
1602
|
-
/** Control the number of words that Typesense considers for typo and prefix searching. */
|
|
1603
|
-
max_candidates?: number;
|
|
1604
|
-
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
1605
|
-
prioritize_token_position?: boolean;
|
|
1606
|
-
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
1607
|
-
prioritize_num_matching_fields?: boolean;
|
|
1608
|
-
/** Make Typesense disable typos for numerical tokens. */
|
|
1609
|
-
enable_typos_for_numerical_tokens?: boolean;
|
|
1610
|
-
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
1611
|
-
exhaustive_search?: boolean;
|
|
1612
|
-
/** 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. */
|
|
1613
|
-
search_cutoff_ms?: number;
|
|
1614
|
-
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1615
|
-
use_cache?: boolean;
|
|
1616
|
-
/** 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. */
|
|
1617
|
-
cache_ttl?: number;
|
|
1618
|
-
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1619
|
-
min_len_1typo?: number;
|
|
1620
|
-
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1621
|
-
min_len_2typo?: number;
|
|
1622
|
-
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
1623
|
-
vector_query?: string;
|
|
1624
|
-
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
1625
|
-
remote_embedding_timeout_ms?: number;
|
|
1626
|
-
/** Number of times to retry fetching remote embeddings. */
|
|
1627
|
-
remote_embedding_num_tries?: number;
|
|
1628
|
-
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
1629
|
-
facet_strategy?: string;
|
|
1630
|
-
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
1631
|
-
stopwords?: string;
|
|
1632
|
-
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1633
|
-
facet_return_parent?: string;
|
|
1634
|
-
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1635
|
-
voice_query?: string;
|
|
1636
|
-
/** Enable conversational search. */
|
|
1637
|
-
conversation?: boolean;
|
|
1638
|
-
/** The Id of Conversation Model to be used. */
|
|
1639
|
-
conversation_model_id?: string;
|
|
1640
|
-
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
1641
|
-
conversation_id?: string;
|
|
1060
|
+
export interface APIStatsResponse {
|
|
1061
|
+
delete_latency_ms?: number | undefined;
|
|
1062
|
+
delete_requests_per_second?: number | undefined;
|
|
1063
|
+
import_latency_ms?: number | undefined;
|
|
1064
|
+
import_requests_per_second?: number | undefined;
|
|
1065
|
+
latency_ms?: unknown | undefined;
|
|
1066
|
+
overloaded_requests_per_second?: number | undefined;
|
|
1067
|
+
pending_write_batches?: number | undefined;
|
|
1068
|
+
requests_per_second?: unknown | undefined;
|
|
1069
|
+
search_latency_ms?: number | undefined;
|
|
1070
|
+
search_requests_per_second?: number | undefined;
|
|
1071
|
+
total_requests_per_second?: number | undefined;
|
|
1072
|
+
write_latency_ms?: number | undefined;
|
|
1073
|
+
write_requests_per_second?: number | undefined;
|
|
1642
1074
|
}
|
|
1643
|
-
export
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
export interface MultiSearchSearchesParameter {
|
|
1647
|
-
/** When true, merges the search results from each search query into a single ordered set of hits. */
|
|
1648
|
-
union?: boolean;
|
|
1649
|
-
searches: MultiSearchSearchesParameterSearchesList;
|
|
1075
|
+
export interface GetCollectionRequest {
|
|
1076
|
+
/** The name of the collection to retrieve */
|
|
1077
|
+
collectionName: string;
|
|
1650
1078
|
}
|
|
1651
|
-
|
|
1652
|
-
export type
|
|
1653
|
-
|
|
1654
|
-
export
|
|
1655
|
-
|
|
1079
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1080
|
+
export type GetCollectionResponseFieldsList = Array<Field>;
|
|
1081
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1082
|
+
export type GetCollectionResponseTokenSeparatorsList = Array<string>;
|
|
1083
|
+
/** List of synonym set names to associate with this collection */
|
|
1084
|
+
export type GetCollectionResponseSynonymSetsList = Array<string>;
|
|
1085
|
+
/** List of symbols or special characters to be indexed. */
|
|
1086
|
+
export type GetCollectionResponseSymbolsToIndexList = Array<string>;
|
|
1087
|
+
export interface GetCollectionResponse {
|
|
1088
|
+
/** Name of the collection */
|
|
1656
1089
|
name: string;
|
|
1090
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1091
|
+
fields: GetCollectionResponseFieldsList;
|
|
1092
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
1093
|
+
default_sorting_field?: string | undefined;
|
|
1094
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1095
|
+
token_separators?: GetCollectionResponseTokenSeparatorsList | undefined;
|
|
1096
|
+
/** List of synonym set names to associate with this collection */
|
|
1097
|
+
synonym_sets?: GetCollectionResponseSynonymSetsList | undefined;
|
|
1098
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
1099
|
+
enable_nested_fields?: boolean | undefined;
|
|
1100
|
+
/** List of symbols or special characters to be indexed. */
|
|
1101
|
+
symbols_to_index?: GetCollectionResponseSymbolsToIndexList | undefined;
|
|
1102
|
+
voice_query_model?: VoiceQueryModelCollectionConfig | undefined;
|
|
1103
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
1104
|
+
metadata?: unknown | undefined;
|
|
1105
|
+
/** Number of documents in the collection */
|
|
1106
|
+
num_documents: number;
|
|
1107
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
1108
|
+
created_at: number;
|
|
1657
1109
|
}
|
|
1658
|
-
export
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1110
|
+
export interface GetCollectionsRequestGetCollectionsParameters {
|
|
1111
|
+
/** Comma-separated list of fields from the collection to exclude from the response */
|
|
1112
|
+
exclude_fields?: string | undefined;
|
|
1113
|
+
/** Number of collections to fetch. Default: returns all collections. */
|
|
1114
|
+
limit?: number | undefined;
|
|
1115
|
+
/** Identifies the starting point to return collections when paginating. */
|
|
1116
|
+
offset?: number | undefined;
|
|
1663
1117
|
}
|
|
1664
|
-
export
|
|
1665
|
-
|
|
1666
|
-
/** The name of the analytics rule to retrieve */
|
|
1667
|
-
ruleName: string;
|
|
1118
|
+
export interface GetCollectionsRequest {
|
|
1119
|
+
getCollectionsParameters?: GetCollectionsRequestGetCollectionsParameters | undefined;
|
|
1668
1120
|
}
|
|
1669
|
-
|
|
1670
|
-
export type
|
|
1671
|
-
|
|
1672
|
-
export
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
weight?: number;
|
|
1680
|
-
}
|
|
1681
|
-
export declare const RetrieveAnalyticsRuleResponseParams: S.Schema<RetrieveAnalyticsRuleResponseParams>;
|
|
1682
|
-
export interface RetrieveAnalyticsRuleResponse {
|
|
1121
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1122
|
+
export type CollectionResponseFieldsList = Array<Field>;
|
|
1123
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1124
|
+
export type CollectionResponseTokenSeparatorsList = Array<string>;
|
|
1125
|
+
/** List of synonym set names to associate with this collection */
|
|
1126
|
+
export type CollectionResponseSynonymSetsList = Array<string>;
|
|
1127
|
+
/** List of symbols or special characters to be indexed. */
|
|
1128
|
+
export type CollectionResponseSymbolsToIndexList = Array<string>;
|
|
1129
|
+
export interface CollectionResponse {
|
|
1130
|
+
/** Name of the collection */
|
|
1683
1131
|
name: string;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1132
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1133
|
+
fields: CollectionResponseFieldsList;
|
|
1134
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
1135
|
+
default_sorting_field?: string | undefined;
|
|
1136
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1137
|
+
token_separators?: CollectionResponseTokenSeparatorsList | undefined;
|
|
1138
|
+
/** List of synonym set names to associate with this collection */
|
|
1139
|
+
synonym_sets?: CollectionResponseSynonymSetsList | undefined;
|
|
1140
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
1141
|
+
enable_nested_fields?: boolean | undefined;
|
|
1142
|
+
/** List of symbols or special characters to be indexed. */
|
|
1143
|
+
symbols_to_index?: CollectionResponseSymbolsToIndexList | undefined;
|
|
1144
|
+
voice_query_model?: VoiceQueryModelCollectionConfig | undefined;
|
|
1145
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
1146
|
+
metadata?: unknown | undefined;
|
|
1147
|
+
/** Number of documents in the collection */
|
|
1148
|
+
num_documents: number;
|
|
1149
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
1150
|
+
created_at: number;
|
|
1701
1151
|
}
|
|
1702
|
-
export
|
|
1703
|
-
export
|
|
1704
|
-
|
|
1705
|
-
delete_requests_per_second?: number;
|
|
1706
|
-
import_latency_ms?: number;
|
|
1707
|
-
import_requests_per_second?: number;
|
|
1708
|
-
latency_ms?: unknown;
|
|
1709
|
-
overloaded_requests_per_second?: number;
|
|
1710
|
-
pending_write_batches?: number;
|
|
1711
|
-
requests_per_second?: unknown;
|
|
1712
|
-
search_latency_ms?: number;
|
|
1713
|
-
search_requests_per_second?: number;
|
|
1714
|
-
total_requests_per_second?: number;
|
|
1715
|
-
write_latency_ms?: number;
|
|
1716
|
-
write_requests_per_second?: number;
|
|
1717
|
-
}
|
|
1718
|
-
export declare const APIStatsResponse: S.Schema<APIStatsResponse>;
|
|
1719
|
-
export interface RetrieveConversationModelRequest {
|
|
1152
|
+
export type GetCollectionsResponseBodyList = Array<CollectionResponse>;
|
|
1153
|
+
export type GetCollectionsResponse = GetCollectionsResponseBodyList;
|
|
1154
|
+
export interface GetConversationModelRequest {
|
|
1720
1155
|
/** The id of the conversation model to retrieve */
|
|
1721
1156
|
modelId: string;
|
|
1722
1157
|
}
|
|
1723
|
-
export
|
|
1724
|
-
export interface RetrieveConversationModelResponse {
|
|
1158
|
+
export interface GetConversationModelResponse {
|
|
1725
1159
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
1726
1160
|
id: string;
|
|
1727
1161
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
1728
1162
|
model_name: string;
|
|
1729
1163
|
/** The LLM service's API Key */
|
|
1730
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
1164
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1731
1165
|
/** Typesense collection that stores the historical conversations */
|
|
1732
1166
|
history_collection: string;
|
|
1733
1167
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
1734
|
-
account_id?: string;
|
|
1168
|
+
account_id?: string | undefined;
|
|
1735
1169
|
/** The system prompt that contains special instructions to the LLM */
|
|
1736
|
-
system_prompt?: string;
|
|
1170
|
+
system_prompt?: string | undefined;
|
|
1737
1171
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
1738
|
-
ttl?: number;
|
|
1172
|
+
ttl?: number | undefined;
|
|
1739
1173
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
1740
1174
|
max_bytes: number;
|
|
1741
1175
|
/** URL of vLLM service */
|
|
1742
|
-
vllm_url?: string;
|
|
1176
|
+
vllm_url?: string | undefined;
|
|
1743
1177
|
}
|
|
1744
|
-
export
|
|
1745
|
-
export interface RetrieveCurationSetRequest {
|
|
1178
|
+
export interface GetCurationSetRequest {
|
|
1746
1179
|
/** The name of the curation set to retrieve */
|
|
1747
1180
|
curationSetName: string;
|
|
1748
1181
|
}
|
|
1749
|
-
export declare const RetrieveCurationSetRequest: S.Schema<RetrieveCurationSetRequest>;
|
|
1750
1182
|
/** List of tag values to associate with this curation rule. */
|
|
1751
1183
|
export type CurationRuleTagsList = Array<string>;
|
|
1752
|
-
export declare const CurationRuleTagsList: S.Schema<CurationRuleTagsList>;
|
|
1753
1184
|
/** Indicates whether the match on the query term should be `exact` or `contains`. If we want to match all queries that contained the word `apple`, we will use the `contains` match instead. */
|
|
1754
1185
|
export type CurationRuleMatch = "exact" | "contains";
|
|
1755
|
-
export declare const CurationRuleMatch: any;
|
|
1756
1186
|
export interface CurationRule {
|
|
1757
1187
|
/** List of tag values to associate with this curation rule. */
|
|
1758
|
-
tags?: CurationRuleTagsList;
|
|
1188
|
+
tags?: CurationRuleTagsList | undefined;
|
|
1759
1189
|
/** Indicates what search queries should be curated */
|
|
1760
|
-
query?: string;
|
|
1190
|
+
query?: string | undefined;
|
|
1761
1191
|
/** Indicates whether the match on the query term should be `exact` or `contains`. If we want to match all queries that contained the word `apple`, we will use the `contains` match instead. */
|
|
1762
|
-
match?: CurationRuleMatch | (string & {});
|
|
1192
|
+
match?: CurationRuleMatch | (string & {}) | undefined;
|
|
1763
1193
|
/** Indicates that the curation should apply when the filter_by parameter in a search query exactly matches the string specified here (including backticks, spaces, brackets, etc). */
|
|
1764
|
-
filter_by?: string;
|
|
1194
|
+
filter_by?: string | undefined;
|
|
1765
1195
|
}
|
|
1766
|
-
export declare const CurationRule: S.Schema<CurationRule>;
|
|
1767
1196
|
export interface CurationInclude {
|
|
1768
1197
|
/** document id that should be included */
|
|
1769
1198
|
id: string;
|
|
1770
1199
|
/** position number where document should be included in the search results */
|
|
1771
1200
|
position: number;
|
|
1772
1201
|
}
|
|
1773
|
-
export declare const CurationInclude: S.Schema<CurationInclude>;
|
|
1774
1202
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1775
1203
|
export type CurationItemCreateSchemaIncludesList = Array<CurationInclude>;
|
|
1776
|
-
export declare const CurationItemCreateSchemaIncludesList: S.Schema<CurationItemCreateSchemaIncludesList>;
|
|
1777
1204
|
export interface CurationExclude {
|
|
1778
1205
|
/** document id that should be excluded from the search results. */
|
|
1779
1206
|
id: string;
|
|
1780
1207
|
}
|
|
1781
|
-
export declare const CurationExclude: S.Schema<CurationExclude>;
|
|
1782
1208
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1783
1209
|
export type CurationItemCreateSchemaExcludesList = Array<CurationExclude>;
|
|
1784
|
-
export declare const CurationItemCreateSchemaExcludesList: S.Schema<CurationItemCreateSchemaExcludesList>;
|
|
1785
1210
|
export interface CurationItemCreateSchema {
|
|
1786
1211
|
rule: CurationRule;
|
|
1787
1212
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1788
|
-
includes?: CurationItemCreateSchemaIncludesList;
|
|
1213
|
+
includes?: CurationItemCreateSchemaIncludesList | undefined;
|
|
1789
1214
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1790
|
-
excludes?: CurationItemCreateSchemaExcludesList;
|
|
1215
|
+
excludes?: CurationItemCreateSchemaExcludesList | undefined;
|
|
1791
1216
|
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1792
|
-
filter_by?: string;
|
|
1217
|
+
filter_by?: string | undefined;
|
|
1793
1218
|
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1794
|
-
remove_matched_tokens?: boolean;
|
|
1219
|
+
remove_matched_tokens?: boolean | undefined;
|
|
1795
1220
|
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1796
|
-
metadata?: unknown;
|
|
1221
|
+
metadata?: unknown | undefined;
|
|
1797
1222
|
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1798
|
-
sort_by?: string;
|
|
1223
|
+
sort_by?: string | undefined;
|
|
1799
1224
|
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1800
|
-
replace_query?: string;
|
|
1225
|
+
replace_query?: string | undefined;
|
|
1801
1226
|
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1802
|
-
filter_curated_hits?: boolean;
|
|
1227
|
+
filter_curated_hits?: boolean | undefined;
|
|
1803
1228
|
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1804
|
-
effective_from_ts?: number;
|
|
1229
|
+
effective_from_ts?: number | undefined;
|
|
1805
1230
|
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1806
|
-
effective_to_ts?: number;
|
|
1231
|
+
effective_to_ts?: number | undefined;
|
|
1807
1232
|
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1808
|
-
stop_processing?: boolean;
|
|
1233
|
+
stop_processing?: boolean | undefined;
|
|
1809
1234
|
/** ID of the curation item */
|
|
1810
|
-
id?: string;
|
|
1235
|
+
id?: string | undefined;
|
|
1811
1236
|
}
|
|
1812
|
-
export declare const CurationItemCreateSchema: S.Schema<CurationItemCreateSchema>;
|
|
1813
1237
|
/** Array of curation items */
|
|
1814
|
-
export type
|
|
1815
|
-
export
|
|
1816
|
-
export interface RetrieveCurationSetResponse {
|
|
1238
|
+
export type GetCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
1239
|
+
export interface GetCurationSetResponse {
|
|
1817
1240
|
/** Array of curation items */
|
|
1818
|
-
items:
|
|
1241
|
+
items: GetCurationSetResponseItemsList;
|
|
1819
1242
|
/** Optional description for the curation set */
|
|
1820
|
-
description?: string;
|
|
1243
|
+
description?: string | undefined;
|
|
1821
1244
|
name: string;
|
|
1822
1245
|
}
|
|
1823
|
-
export
|
|
1824
|
-
export interface RetrieveCurationSetItemRequest {
|
|
1246
|
+
export interface GetCurationSetItemRequest {
|
|
1825
1247
|
/** The name of the curation set */
|
|
1826
1248
|
curationSetName: string;
|
|
1827
1249
|
/** The id of the curation item to retrieve */
|
|
1828
1250
|
itemId: string;
|
|
1829
1251
|
}
|
|
1830
|
-
export declare const RetrieveCurationSetItemRequest: S.Schema<RetrieveCurationSetItemRequest>;
|
|
1831
1252
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1832
|
-
export type
|
|
1833
|
-
export declare const RetrieveCurationSetItemResponseIncludesList: S.Schema<RetrieveCurationSetItemResponseIncludesList>;
|
|
1253
|
+
export type GetCurationSetItemResponseIncludesList = Array<CurationInclude>;
|
|
1834
1254
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1835
|
-
export type
|
|
1836
|
-
export
|
|
1837
|
-
export interface RetrieveCurationSetItemResponse {
|
|
1255
|
+
export type GetCurationSetItemResponseExcludesList = Array<CurationExclude>;
|
|
1256
|
+
export interface GetCurationSetItemResponse {
|
|
1838
1257
|
rule: CurationRule;
|
|
1839
1258
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1840
|
-
includes?:
|
|
1259
|
+
includes?: GetCurationSetItemResponseIncludesList | undefined;
|
|
1841
1260
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1842
|
-
excludes?:
|
|
1261
|
+
excludes?: GetCurationSetItemResponseExcludesList | undefined;
|
|
1843
1262
|
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1844
|
-
filter_by?: string;
|
|
1263
|
+
filter_by?: string | undefined;
|
|
1845
1264
|
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1846
|
-
remove_matched_tokens?: boolean;
|
|
1265
|
+
remove_matched_tokens?: boolean | undefined;
|
|
1847
1266
|
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1848
|
-
metadata?: unknown;
|
|
1267
|
+
metadata?: unknown | undefined;
|
|
1849
1268
|
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1850
|
-
sort_by?: string;
|
|
1269
|
+
sort_by?: string | undefined;
|
|
1851
1270
|
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1852
|
-
replace_query?: string;
|
|
1271
|
+
replace_query?: string | undefined;
|
|
1853
1272
|
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1854
|
-
filter_curated_hits?: boolean;
|
|
1273
|
+
filter_curated_hits?: boolean | undefined;
|
|
1855
1274
|
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1856
|
-
effective_from_ts?: number;
|
|
1275
|
+
effective_from_ts?: number | undefined;
|
|
1857
1276
|
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1858
|
-
effective_to_ts?: number;
|
|
1277
|
+
effective_to_ts?: number | undefined;
|
|
1859
1278
|
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1860
|
-
stop_processing?: boolean;
|
|
1279
|
+
stop_processing?: boolean | undefined;
|
|
1861
1280
|
/** ID of the curation item */
|
|
1862
1281
|
id: string;
|
|
1863
1282
|
}
|
|
1864
|
-
export
|
|
1865
|
-
export interface RetrieveCurationSetItemsRequest {
|
|
1283
|
+
export interface GetCurationSetItemsRequest {
|
|
1866
1284
|
/** The name of the curation set to retrieve items for */
|
|
1867
1285
|
curationSetName: string;
|
|
1868
1286
|
}
|
|
1869
|
-
export declare const RetrieveCurationSetItemsRequest: S.Schema<RetrieveCurationSetItemsRequest>;
|
|
1870
1287
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1871
1288
|
export type CurationItemSchemaIncludesList = Array<CurationInclude>;
|
|
1872
|
-
export declare const CurationItemSchemaIncludesList: S.Schema<CurationItemSchemaIncludesList>;
|
|
1873
1289
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1874
1290
|
export type CurationItemSchemaExcludesList = Array<CurationExclude>;
|
|
1875
|
-
export declare const CurationItemSchemaExcludesList: S.Schema<CurationItemSchemaExcludesList>;
|
|
1876
1291
|
export interface CurationItemSchema {
|
|
1877
1292
|
rule: CurationRule;
|
|
1878
1293
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1879
|
-
includes?: CurationItemSchemaIncludesList;
|
|
1294
|
+
includes?: CurationItemSchemaIncludesList | undefined;
|
|
1880
1295
|
/** List of document `id`s that should be excluded from the search results. */
|
|
1881
|
-
excludes?: CurationItemSchemaExcludesList;
|
|
1296
|
+
excludes?: CurationItemSchemaExcludesList | undefined;
|
|
1882
1297
|
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1883
|
-
filter_by?: string;
|
|
1298
|
+
filter_by?: string | undefined;
|
|
1884
1299
|
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1885
|
-
remove_matched_tokens?: boolean;
|
|
1300
|
+
remove_matched_tokens?: boolean | undefined;
|
|
1886
1301
|
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1887
|
-
metadata?: unknown;
|
|
1302
|
+
metadata?: unknown | undefined;
|
|
1888
1303
|
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1889
|
-
sort_by?: string;
|
|
1304
|
+
sort_by?: string | undefined;
|
|
1890
1305
|
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1891
|
-
replace_query?: string;
|
|
1306
|
+
replace_query?: string | undefined;
|
|
1892
1307
|
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1893
|
-
filter_curated_hits?: boolean;
|
|
1308
|
+
filter_curated_hits?: boolean | undefined;
|
|
1894
1309
|
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1895
|
-
effective_from_ts?: number;
|
|
1310
|
+
effective_from_ts?: number | undefined;
|
|
1896
1311
|
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1897
|
-
effective_to_ts?: number;
|
|
1312
|
+
effective_to_ts?: number | undefined;
|
|
1898
1313
|
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1899
|
-
stop_processing?: boolean;
|
|
1314
|
+
stop_processing?: boolean | undefined;
|
|
1900
1315
|
/** ID of the curation item */
|
|
1901
1316
|
id: string;
|
|
1902
1317
|
}
|
|
1903
|
-
export
|
|
1904
|
-
export type
|
|
1905
|
-
export
|
|
1906
|
-
export type RetrieveCurationSetItemsResponse = RetrieveCurationSetItemsResponseBodyList;
|
|
1907
|
-
export declare const RetrieveCurationSetItemsResponse: S.Schema<RetrieveCurationSetItemsResponse>;
|
|
1908
|
-
export interface RetrieveCurationSetsRequest {
|
|
1318
|
+
export type GetCurationSetItemsResponseBodyList = Array<CurationItemSchema>;
|
|
1319
|
+
export type GetCurationSetItemsResponse = GetCurationSetItemsResponseBodyList;
|
|
1320
|
+
export interface GetCurationSetsRequest {
|
|
1909
1321
|
}
|
|
1910
|
-
export declare const RetrieveCurationSetsRequest: S.Schema<RetrieveCurationSetsRequest>;
|
|
1911
1322
|
/** Array of curation items */
|
|
1912
1323
|
export type CurationSetSchemaItemsList = Array<CurationItemCreateSchema>;
|
|
1913
|
-
export declare const CurationSetSchemaItemsList: S.Schema<CurationSetSchemaItemsList>;
|
|
1914
1324
|
export interface CurationSetSchema {
|
|
1915
1325
|
/** Array of curation items */
|
|
1916
1326
|
items: CurationSetSchemaItemsList;
|
|
1917
1327
|
/** Optional description for the curation set */
|
|
1918
|
-
description?: string;
|
|
1328
|
+
description?: string | undefined;
|
|
1919
1329
|
name: string;
|
|
1920
1330
|
}
|
|
1921
|
-
export
|
|
1922
|
-
export type
|
|
1923
|
-
export
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
export type
|
|
1930
|
-
export
|
|
1931
|
-
|
|
1331
|
+
export type GetCurationSetsResponseBodyList = Array<CurationSetSchema>;
|
|
1332
|
+
export type GetCurationSetsResponse = GetCurationSetsResponseBodyList;
|
|
1333
|
+
export interface GetDocumentRequest {
|
|
1334
|
+
/** The name of the collection to search for the document under */
|
|
1335
|
+
collectionName: string;
|
|
1336
|
+
/** The Document ID */
|
|
1337
|
+
documentId: string;
|
|
1338
|
+
}
|
|
1339
|
+
export type GetDocumentResponse = unknown;
|
|
1340
|
+
export interface GetKeyRequest {
|
|
1341
|
+
/** The ID of the key to retrieve */
|
|
1342
|
+
keyId: number;
|
|
1343
|
+
}
|
|
1344
|
+
export type GetKeyResponseActionsList = Array<string>;
|
|
1345
|
+
export type GetKeyResponseCollectionsList = Array<string>;
|
|
1346
|
+
export interface GetKeyResponse {
|
|
1347
|
+
value?: string | undefined;
|
|
1348
|
+
description: string;
|
|
1349
|
+
actions: GetKeyResponseActionsList;
|
|
1350
|
+
collections: GetKeyResponseCollectionsList;
|
|
1351
|
+
expires_at?: number | undefined;
|
|
1352
|
+
id?: number | undefined;
|
|
1353
|
+
value_prefix?: string | undefined;
|
|
1354
|
+
}
|
|
1355
|
+
export interface GetKeysRequest {
|
|
1356
|
+
}
|
|
1357
|
+
export type ApiKeyActionsList = Array<string>;
|
|
1358
|
+
export type ApiKeyCollectionsList = Array<string>;
|
|
1359
|
+
export interface ApiKey {
|
|
1360
|
+
value?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1361
|
+
description: string;
|
|
1362
|
+
actions: ApiKeyActionsList;
|
|
1363
|
+
collections: ApiKeyCollectionsList;
|
|
1364
|
+
expires_at?: number | undefined;
|
|
1365
|
+
id?: number | undefined;
|
|
1366
|
+
value_prefix?: string | undefined;
|
|
1367
|
+
}
|
|
1368
|
+
export type ApiKeysResponseKeysList = Array<ApiKey>;
|
|
1369
|
+
export interface ApiKeysResponse {
|
|
1370
|
+
keys: ApiKeysResponseKeysList;
|
|
1371
|
+
}
|
|
1372
|
+
export interface GetMetricsRequest {
|
|
1373
|
+
}
|
|
1374
|
+
export type GetMetricsResponse = unknown;
|
|
1375
|
+
export interface GetNLSearchModelRequest {
|
|
1932
1376
|
/** The ID of the NL search model to retrieve */
|
|
1933
1377
|
modelId: string;
|
|
1934
1378
|
}
|
|
1935
|
-
export declare const RetrieveNLSearchModelRequest: S.Schema<RetrieveNLSearchModelRequest>;
|
|
1936
1379
|
/** Stop sequences for the NL model (Google-specific) */
|
|
1937
|
-
export type
|
|
1938
|
-
export
|
|
1939
|
-
export interface RetrieveNLSearchModelResponse {
|
|
1380
|
+
export type GetNLSearchModelResponseStopSequencesList = Array<string>;
|
|
1381
|
+
export interface GetNLSearchModelResponse {
|
|
1940
1382
|
/** Name of the NL model to use */
|
|
1941
|
-
model_name?: string;
|
|
1383
|
+
model_name?: string | undefined;
|
|
1942
1384
|
/** API key for the NL model service */
|
|
1943
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
1385
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1944
1386
|
/** Custom API URL for the NL model service */
|
|
1945
|
-
api_url?: string;
|
|
1387
|
+
api_url?: string | undefined;
|
|
1946
1388
|
/** Maximum number of bytes to process */
|
|
1947
|
-
max_bytes?: number;
|
|
1389
|
+
max_bytes?: number | undefined;
|
|
1948
1390
|
/** Temperature parameter for the NL model */
|
|
1949
|
-
temperature?: number;
|
|
1391
|
+
temperature?: number | undefined;
|
|
1950
1392
|
/** System prompt for the NL model */
|
|
1951
|
-
system_prompt?: string;
|
|
1393
|
+
system_prompt?: string | undefined;
|
|
1952
1394
|
/** Top-p parameter for the NL model (Google-specific) */
|
|
1953
|
-
top_p?: number;
|
|
1395
|
+
top_p?: number | undefined;
|
|
1954
1396
|
/** Top-k parameter for the NL model (Google-specific) */
|
|
1955
|
-
top_k?: number;
|
|
1397
|
+
top_k?: number | undefined;
|
|
1956
1398
|
/** Stop sequences for the NL model (Google-specific) */
|
|
1957
|
-
stop_sequences?:
|
|
1399
|
+
stop_sequences?: GetNLSearchModelResponseStopSequencesList | undefined;
|
|
1958
1400
|
/** API version for the NL model service */
|
|
1959
|
-
api_version?: string;
|
|
1401
|
+
api_version?: string | undefined;
|
|
1960
1402
|
/** Project ID for GCP Vertex AI */
|
|
1961
|
-
project_id?: string;
|
|
1403
|
+
project_id?: string | undefined;
|
|
1962
1404
|
/** Access token for GCP Vertex AI */
|
|
1963
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
1405
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1964
1406
|
/** Refresh token for GCP Vertex AI */
|
|
1965
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
1407
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1966
1408
|
/** Client ID for GCP Vertex AI */
|
|
1967
|
-
client_id?: string;
|
|
1409
|
+
client_id?: string | undefined;
|
|
1968
1410
|
/** Client secret for GCP Vertex AI */
|
|
1969
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
1411
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
1970
1412
|
/** Region for GCP Vertex AI */
|
|
1971
|
-
region?: string;
|
|
1413
|
+
region?: string | undefined;
|
|
1972
1414
|
/** Maximum output tokens for GCP Vertex AI */
|
|
1973
|
-
max_output_tokens?: number;
|
|
1415
|
+
max_output_tokens?: number | undefined;
|
|
1974
1416
|
/** Account ID for Cloudflare-specific models */
|
|
1975
|
-
account_id?: string;
|
|
1417
|
+
account_id?: string | undefined;
|
|
1976
1418
|
/** Optional ID for the NL search model */
|
|
1977
1419
|
id: string;
|
|
1978
1420
|
}
|
|
1979
|
-
export
|
|
1980
|
-
export interface RetrievePresetRequest {
|
|
1421
|
+
export interface GetPresetRequest {
|
|
1981
1422
|
/** The ID of the preset to retrieve. */
|
|
1982
1423
|
presetId: string;
|
|
1983
1424
|
}
|
|
1984
|
-
export
|
|
1985
|
-
export
|
|
1986
|
-
|
|
1987
|
-
export interface RetrievePresetResponse {
|
|
1988
|
-
value: RetrievePresetResponseValue;
|
|
1425
|
+
export type GetPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
1426
|
+
export interface GetPresetResponse {
|
|
1427
|
+
value: GetPresetResponseValue;
|
|
1989
1428
|
name: string;
|
|
1990
1429
|
}
|
|
1991
|
-
export
|
|
1992
|
-
|
|
1430
|
+
export interface GetSchemaChangesRequest {
|
|
1431
|
+
}
|
|
1432
|
+
export interface SchemaChangeStatus {
|
|
1433
|
+
/** Name of the collection being modified */
|
|
1434
|
+
collection?: string | undefined;
|
|
1435
|
+
/** Number of documents that have been validated */
|
|
1436
|
+
validated_docs?: number | undefined;
|
|
1437
|
+
/** Number of documents that have been altered */
|
|
1438
|
+
altered_docs?: number | undefined;
|
|
1439
|
+
}
|
|
1440
|
+
export type GetSchemaChangesResponseBodyList = Array<SchemaChangeStatus>;
|
|
1441
|
+
export type GetSchemaChangesResponse = GetSchemaChangesResponseBodyList;
|
|
1442
|
+
export interface GetStemmingDictionaryRequest {
|
|
1443
|
+
/** The ID of the dictionary to retrieve */
|
|
1444
|
+
dictionaryId: string;
|
|
1445
|
+
}
|
|
1446
|
+
export interface StemmingDictionaryWordsItem {
|
|
1447
|
+
/** The word form to be stemmed */
|
|
1448
|
+
word: string;
|
|
1449
|
+
/** The root form of the word */
|
|
1450
|
+
root: string;
|
|
1451
|
+
}
|
|
1452
|
+
/** List of word mappings in the dictionary */
|
|
1453
|
+
export type StemmingDictionaryWordsList = Array<StemmingDictionaryWordsItem>;
|
|
1454
|
+
export interface StemmingDictionary {
|
|
1455
|
+
/** Unique identifier for the dictionary */
|
|
1456
|
+
id: string;
|
|
1457
|
+
/** List of word mappings in the dictionary */
|
|
1458
|
+
words: StemmingDictionaryWordsList;
|
|
1459
|
+
}
|
|
1460
|
+
export interface GetStopwordsSetRequest {
|
|
1993
1461
|
/** The ID of the stopwords set to retrieve. */
|
|
1994
1462
|
setId: string;
|
|
1995
1463
|
}
|
|
1996
|
-
export declare const RetrieveStopwordsSetRequest: S.Schema<RetrieveStopwordsSetRequest>;
|
|
1997
1464
|
export type StopwordsSetSchemaStopwordsList = Array<string>;
|
|
1998
|
-
export declare const StopwordsSetSchemaStopwordsList: S.Schema<StopwordsSetSchemaStopwordsList>;
|
|
1999
1465
|
export interface StopwordsSetSchema {
|
|
2000
1466
|
id: string;
|
|
2001
1467
|
stopwords: StopwordsSetSchemaStopwordsList;
|
|
2002
|
-
locale?: string;
|
|
1468
|
+
locale?: string | undefined;
|
|
2003
1469
|
}
|
|
2004
|
-
export declare const StopwordsSetSchema: S.Schema<StopwordsSetSchema>;
|
|
2005
1470
|
export interface StopwordsSetRetrieveSchema {
|
|
2006
1471
|
stopwords: StopwordsSetSchema;
|
|
2007
1472
|
}
|
|
2008
|
-
export
|
|
2009
|
-
export interface RetrieveStopwordsSetsRequest {
|
|
1473
|
+
export interface GetStopwordsSetsRequest {
|
|
2010
1474
|
}
|
|
2011
|
-
export declare const RetrieveStopwordsSetsRequest: S.Schema<RetrieveStopwordsSetsRequest>;
|
|
2012
1475
|
export type StopwordsSetsRetrieveAllSchemaStopwordsList = Array<StopwordsSetSchema>;
|
|
2013
|
-
export declare const StopwordsSetsRetrieveAllSchemaStopwordsList: S.Schema<StopwordsSetsRetrieveAllSchemaStopwordsList>;
|
|
2014
1476
|
export interface StopwordsSetsRetrieveAllSchema {
|
|
2015
1477
|
stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList;
|
|
2016
1478
|
}
|
|
2017
|
-
export
|
|
2018
|
-
export interface RetrieveSynonymSetRequest {
|
|
1479
|
+
export interface GetSynonymSetRequest {
|
|
2019
1480
|
/** The name of the synonym set to retrieve */
|
|
2020
1481
|
synonymSetName: string;
|
|
2021
1482
|
}
|
|
2022
|
-
export declare const RetrieveSynonymSetRequest: S.Schema<RetrieveSynonymSetRequest>;
|
|
2023
1483
|
/** Array of words that should be considered as synonyms */
|
|
2024
1484
|
export type SynonymItemSchemaSynonymsList = Array<string>;
|
|
2025
|
-
export declare const SynonymItemSchemaSynonymsList: S.Schema<SynonymItemSchemaSynonymsList>;
|
|
2026
1485
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2027
1486
|
export type SynonymItemSchemaSymbolsToIndexList = Array<string>;
|
|
2028
|
-
export declare const SynonymItemSchemaSymbolsToIndexList: S.Schema<SynonymItemSchemaSymbolsToIndexList>;
|
|
2029
1487
|
export interface SynonymItemSchema {
|
|
2030
1488
|
/** Unique identifier for the synonym item */
|
|
2031
1489
|
id: string;
|
|
2032
1490
|
/** Array of words that should be considered as synonyms */
|
|
2033
1491
|
synonyms: SynonymItemSchemaSynonymsList;
|
|
2034
1492
|
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2035
|
-
root?: string;
|
|
1493
|
+
root?: string | undefined;
|
|
2036
1494
|
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2037
|
-
locale?: string;
|
|
1495
|
+
locale?: string | undefined;
|
|
2038
1496
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2039
|
-
symbols_to_index?: SynonymItemSchemaSymbolsToIndexList;
|
|
1497
|
+
symbols_to_index?: SynonymItemSchemaSymbolsToIndexList | undefined;
|
|
2040
1498
|
}
|
|
2041
|
-
export declare const SynonymItemSchema: S.Schema<SynonymItemSchema>;
|
|
2042
1499
|
/** Array of synonym items */
|
|
2043
|
-
export type
|
|
2044
|
-
export
|
|
2045
|
-
export interface RetrieveSynonymSetResponse {
|
|
1500
|
+
export type GetSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
1501
|
+
export interface GetSynonymSetResponse {
|
|
2046
1502
|
/** Array of synonym items */
|
|
2047
|
-
items:
|
|
1503
|
+
items: GetSynonymSetResponseItemsList;
|
|
2048
1504
|
/** Name of the synonym set */
|
|
2049
1505
|
name: string;
|
|
2050
1506
|
}
|
|
2051
|
-
export
|
|
2052
|
-
export interface RetrieveSynonymSetItemRequest {
|
|
1507
|
+
export interface GetSynonymSetItemRequest {
|
|
2053
1508
|
/** The name of the synonym set */
|
|
2054
1509
|
synonymSetName: string;
|
|
2055
1510
|
/** The id of the synonym item to retrieve */
|
|
2056
1511
|
itemId: string;
|
|
2057
1512
|
}
|
|
2058
|
-
export declare const RetrieveSynonymSetItemRequest: S.Schema<RetrieveSynonymSetItemRequest>;
|
|
2059
1513
|
/** Array of words that should be considered as synonyms */
|
|
2060
|
-
export type
|
|
2061
|
-
export declare const RetrieveSynonymSetItemResponseSynonymsList: S.Schema<RetrieveSynonymSetItemResponseSynonymsList>;
|
|
1514
|
+
export type GetSynonymSetItemResponseSynonymsList = Array<string>;
|
|
2062
1515
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2063
|
-
export type
|
|
2064
|
-
export
|
|
2065
|
-
export interface RetrieveSynonymSetItemResponse {
|
|
1516
|
+
export type GetSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
1517
|
+
export interface GetSynonymSetItemResponse {
|
|
2066
1518
|
/** Unique identifier for the synonym item */
|
|
2067
1519
|
id: string;
|
|
2068
1520
|
/** Array of words that should be considered as synonyms */
|
|
2069
|
-
synonyms:
|
|
1521
|
+
synonyms: GetSynonymSetItemResponseSynonymsList;
|
|
2070
1522
|
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2071
|
-
root?: string;
|
|
1523
|
+
root?: string | undefined;
|
|
2072
1524
|
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2073
|
-
locale?: string;
|
|
1525
|
+
locale?: string | undefined;
|
|
2074
1526
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2075
|
-
symbols_to_index?:
|
|
1527
|
+
symbols_to_index?: GetSynonymSetItemResponseSymbolsToIndexList | undefined;
|
|
2076
1528
|
}
|
|
2077
|
-
export
|
|
2078
|
-
export interface RetrieveSynonymSetItemsRequest {
|
|
1529
|
+
export interface GetSynonymSetItemsRequest {
|
|
2079
1530
|
/** The name of the synonym set to retrieve items for */
|
|
2080
1531
|
synonymSetName: string;
|
|
2081
1532
|
}
|
|
2082
|
-
export
|
|
2083
|
-
export type
|
|
2084
|
-
export
|
|
2085
|
-
export type RetrieveSynonymSetItemsResponse = RetrieveSynonymSetItemsResponseBodyList;
|
|
2086
|
-
export declare const RetrieveSynonymSetItemsResponse: S.Schema<RetrieveSynonymSetItemsResponse>;
|
|
2087
|
-
export interface RetrieveSynonymSetsRequest {
|
|
1533
|
+
export type GetSynonymSetItemsResponseBodyList = Array<SynonymItemSchema>;
|
|
1534
|
+
export type GetSynonymSetItemsResponse = GetSynonymSetItemsResponseBodyList;
|
|
1535
|
+
export interface GetSynonymSetsRequest {
|
|
2088
1536
|
}
|
|
2089
|
-
export declare const RetrieveSynonymSetsRequest: S.Schema<RetrieveSynonymSetsRequest>;
|
|
2090
1537
|
/** Array of synonym items */
|
|
2091
1538
|
export type SynonymSetSchemaItemsList = Array<SynonymItemSchema>;
|
|
2092
|
-
export declare const SynonymSetSchemaItemsList: S.Schema<SynonymSetSchemaItemsList>;
|
|
2093
1539
|
export interface SynonymSetSchema {
|
|
2094
1540
|
/** Array of synonym items */
|
|
2095
1541
|
items: SynonymSetSchemaItemsList;
|
|
2096
1542
|
/** Name of the synonym set */
|
|
2097
1543
|
name: string;
|
|
2098
1544
|
}
|
|
2099
|
-
export
|
|
2100
|
-
export type
|
|
2101
|
-
export
|
|
2102
|
-
|
|
2103
|
-
export
|
|
1545
|
+
export type GetSynonymSetsResponseBodyList = Array<SynonymSetSchema>;
|
|
1546
|
+
export type GetSynonymSetsResponse = GetSynonymSetsResponseBodyList;
|
|
1547
|
+
export interface HealthRequest {
|
|
1548
|
+
}
|
|
1549
|
+
export interface HealthStatus {
|
|
1550
|
+
ok: boolean;
|
|
1551
|
+
}
|
|
1552
|
+
export type IndexAction = "create" | "update" | "upsert" | "emplace";
|
|
1553
|
+
export type DirtyValues = "coerce_or_reject" | "coerce_or_drop" | "drop" | "reject";
|
|
1554
|
+
export interface ImportDocumentsRequestImportDocumentsParameters {
|
|
1555
|
+
batch_size?: number | undefined;
|
|
1556
|
+
/** Returning the id of the imported documents. If you want the import response to return the ingested document's id in the response, you can use the return_id parameter. */
|
|
1557
|
+
return_id?: boolean | undefined;
|
|
1558
|
+
remote_embedding_batch_size?: number | undefined;
|
|
1559
|
+
return_doc?: boolean | undefined;
|
|
1560
|
+
action?: IndexAction | (string & {}) | undefined;
|
|
1561
|
+
dirty_values?: DirtyValues | (string & {}) | undefined;
|
|
1562
|
+
}
|
|
1563
|
+
export interface ImportDocumentsRequest {
|
|
1564
|
+
/** The name of the collection */
|
|
1565
|
+
collectionName: string;
|
|
1566
|
+
importDocumentsParameters?: ImportDocumentsRequestImportDocumentsParameters | undefined;
|
|
1567
|
+
}
|
|
1568
|
+
export interface ImportDocumentsResponse {
|
|
1569
|
+
}
|
|
1570
|
+
export interface ImportStemmingDictionaryRequest {
|
|
1571
|
+
/** The ID to assign to the dictionary */
|
|
1572
|
+
id: string;
|
|
1573
|
+
body: string;
|
|
1574
|
+
}
|
|
1575
|
+
export interface ImportStemmingDictionaryResponse {
|
|
1576
|
+
}
|
|
1577
|
+
export interface IndexDocumentRequest {
|
|
1578
|
+
/** The name of the collection to add the document to */
|
|
1579
|
+
collectionName: string;
|
|
1580
|
+
/** Additional action to perform */
|
|
1581
|
+
action?: IndexAction | (string & {}) | undefined;
|
|
1582
|
+
/** Dealing with Dirty Data */
|
|
1583
|
+
dirty_values?: DirtyValues | (string & {}) | undefined;
|
|
1584
|
+
}
|
|
1585
|
+
export type IndexDocumentResponse = unknown;
|
|
1586
|
+
export interface ListStemmingDictionariesRequest {
|
|
1587
|
+
}
|
|
1588
|
+
export type ListStemmingDictionariesResponseDictionariesList = Array<string>;
|
|
1589
|
+
export interface ListStemmingDictionariesResponse {
|
|
1590
|
+
dictionaries?: ListStemmingDictionariesResponseDictionariesList | undefined;
|
|
1591
|
+
}
|
|
2104
1592
|
export interface SearchCollectionRequest {
|
|
2105
1593
|
/** The name of the collection to search for the document under */
|
|
2106
1594
|
collectionName: string;
|
|
2107
1595
|
searchParameters: SearchParameters;
|
|
2108
1596
|
}
|
|
2109
|
-
export
|
|
1597
|
+
export interface FacetCountsCountsItem {
|
|
1598
|
+
count?: number | undefined;
|
|
1599
|
+
highlighted?: string | undefined;
|
|
1600
|
+
value?: string | undefined;
|
|
1601
|
+
parent?: unknown | undefined;
|
|
1602
|
+
}
|
|
1603
|
+
export type FacetCountsCountsList = Array<FacetCountsCountsItem>;
|
|
1604
|
+
export interface FacetCountsStats {
|
|
1605
|
+
max?: number | undefined;
|
|
1606
|
+
min?: number | undefined;
|
|
1607
|
+
sum?: number | undefined;
|
|
1608
|
+
total_values?: number | undefined;
|
|
1609
|
+
avg?: number | undefined;
|
|
1610
|
+
}
|
|
1611
|
+
export interface FacetCounts {
|
|
1612
|
+
counts?: FacetCountsCountsList | undefined;
|
|
1613
|
+
field_name?: string | undefined;
|
|
1614
|
+
sampled?: boolean | undefined;
|
|
1615
|
+
stats?: FacetCountsStats | undefined;
|
|
1616
|
+
}
|
|
2110
1617
|
export type SearchResultFacetCountsList = Array<FacetCounts>;
|
|
2111
|
-
export
|
|
1618
|
+
export type SearchGroupedHitGroupKeyList = Array<unknown>;
|
|
1619
|
+
/** Present only for (array) string[] fields */
|
|
1620
|
+
export type SearchHighlightSnippetsList = Array<string>;
|
|
1621
|
+
/** Full field value with highlighting, present only for (array) string[] fields */
|
|
1622
|
+
export type SearchHighlightValuesList = Array<string>;
|
|
1623
|
+
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1624
|
+
export type SearchHighlightIndicesList = Array<number>;
|
|
1625
|
+
export type SearchHighlightMatchedTokensList = Array<unknown>;
|
|
1626
|
+
export interface SearchHighlight {
|
|
1627
|
+
field?: string | undefined;
|
|
1628
|
+
/** Present only for (non-array) string fields */
|
|
1629
|
+
snippet?: string | undefined;
|
|
1630
|
+
/** Present only for (array) string[] fields */
|
|
1631
|
+
snippets?: SearchHighlightSnippetsList | undefined;
|
|
1632
|
+
/** Full field value with highlighting, present only for (non-array) string fields */
|
|
1633
|
+
value?: string | undefined;
|
|
1634
|
+
/** Full field value with highlighting, present only for (array) string[] fields */
|
|
1635
|
+
values?: SearchHighlightValuesList | undefined;
|
|
1636
|
+
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1637
|
+
indices?: SearchHighlightIndicesList | undefined;
|
|
1638
|
+
matched_tokens?: SearchHighlightMatchedTokensList | undefined;
|
|
1639
|
+
}
|
|
1640
|
+
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1641
|
+
export type SearchResultHitHighlightsList = Array<SearchHighlight>;
|
|
1642
|
+
/** Highlighted version of the matching document */
|
|
1643
|
+
export type SearchResultHitHighlightMap = {
|
|
1644
|
+
[key: string]: unknown | undefined;
|
|
1645
|
+
};
|
|
1646
|
+
/** Can be any key-value pair */
|
|
1647
|
+
export type SearchResultHitDocumentMap = {
|
|
1648
|
+
[key: string]: unknown | undefined;
|
|
1649
|
+
};
|
|
1650
|
+
export interface SearchResultHitTextMatchInfo {
|
|
1651
|
+
best_field_score?: string | undefined;
|
|
1652
|
+
best_field_weight?: number | undefined;
|
|
1653
|
+
fields_matched?: number | undefined;
|
|
1654
|
+
num_tokens_dropped?: number | undefined;
|
|
1655
|
+
score?: string | undefined;
|
|
1656
|
+
tokens_matched?: number | undefined;
|
|
1657
|
+
typo_prefix_score?: number | undefined;
|
|
1658
|
+
}
|
|
1659
|
+
/** Can be any key-value pair */
|
|
1660
|
+
export type SearchResultHitGeoDistanceMetersMap = {
|
|
1661
|
+
[key: string]: number | undefined;
|
|
1662
|
+
};
|
|
1663
|
+
/** Information about hybrid search scoring */
|
|
1664
|
+
export interface SearchResultHitHybridSearchInfo {
|
|
1665
|
+
/** Combined score from rank fusion of text and vector search */
|
|
1666
|
+
rank_fusion_score?: number | undefined;
|
|
1667
|
+
}
|
|
1668
|
+
export interface SearchResultHit {
|
|
1669
|
+
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1670
|
+
highlights?: SearchResultHitHighlightsList | undefined;
|
|
1671
|
+
/** Highlighted version of the matching document */
|
|
1672
|
+
highlight?: SearchResultHitHighlightMap | undefined;
|
|
1673
|
+
/** Can be any key-value pair */
|
|
1674
|
+
document?: SearchResultHitDocumentMap | undefined;
|
|
1675
|
+
text_match?: number | undefined;
|
|
1676
|
+
text_match_info?: SearchResultHitTextMatchInfo | undefined;
|
|
1677
|
+
/** Can be any key-value pair */
|
|
1678
|
+
geo_distance_meters?: SearchResultHitGeoDistanceMetersMap | undefined;
|
|
1679
|
+
/** Distance between the query vector and matching document's vector value */
|
|
1680
|
+
vector_distance?: number | undefined;
|
|
1681
|
+
/** Information about hybrid search scoring */
|
|
1682
|
+
hybrid_search_info?: SearchResultHitHybridSearchInfo | undefined;
|
|
1683
|
+
/** Returned only for union query response. Indicates the index of the query which this document matched to. */
|
|
1684
|
+
search_index?: number | undefined;
|
|
1685
|
+
}
|
|
1686
|
+
/** The documents that matched the search query */
|
|
1687
|
+
export type SearchGroupedHitHitsList = Array<SearchResultHit>;
|
|
1688
|
+
export interface SearchGroupedHit {
|
|
1689
|
+
found?: number | undefined;
|
|
1690
|
+
group_key: SearchGroupedHitGroupKeyList;
|
|
1691
|
+
/** The documents that matched the search query */
|
|
1692
|
+
hits: SearchGroupedHitHitsList;
|
|
1693
|
+
}
|
|
2112
1694
|
export type SearchResultGroupedHitsList = Array<SearchGroupedHit>;
|
|
2113
|
-
export declare const SearchResultGroupedHitsList: S.Schema<SearchResultGroupedHitsList>;
|
|
2114
1695
|
/** The documents that matched the search query */
|
|
2115
1696
|
export type SearchResultHitsList = Array<SearchResultHit>;
|
|
2116
|
-
export
|
|
1697
|
+
export interface SearchRequestParamsVoiceQuery {
|
|
1698
|
+
transcribed_query?: string | undefined;
|
|
1699
|
+
}
|
|
1700
|
+
export interface SearchRequestParams {
|
|
1701
|
+
collection_name: string;
|
|
1702
|
+
first_q?: string | undefined;
|
|
1703
|
+
q: string;
|
|
1704
|
+
per_page: number;
|
|
1705
|
+
voice_query?: SearchRequestParamsVoiceQuery | undefined;
|
|
1706
|
+
}
|
|
1707
|
+
export type SearchResultConversationConversationHistoryList = Array<unknown>;
|
|
1708
|
+
export interface SearchResultConversation {
|
|
1709
|
+
answer: string;
|
|
1710
|
+
conversation_history: SearchResultConversationConversationHistoryList;
|
|
1711
|
+
conversation_id: string;
|
|
1712
|
+
query: string;
|
|
1713
|
+
}
|
|
2117
1714
|
/** Returned only for union query response. */
|
|
2118
1715
|
export type SearchResultUnionRequestParamsList = Array<SearchRequestParams>;
|
|
2119
|
-
export declare const SearchResultUnionRequestParamsList: S.Schema<SearchResultUnionRequestParamsList>;
|
|
2120
1716
|
/** Custom JSON object that can be returned in the search response */
|
|
2121
1717
|
export type SearchResultMetadataMap = {
|
|
2122
1718
|
[key: string]: unknown | undefined;
|
|
2123
1719
|
};
|
|
2124
|
-
export declare const SearchResultMetadataMap: S.Schema<SearchResultMetadataMap>;
|
|
2125
1720
|
export interface SearchResult {
|
|
2126
|
-
facet_counts?: SearchResultFacetCountsList;
|
|
1721
|
+
facet_counts?: SearchResultFacetCountsList | undefined;
|
|
1722
|
+
/** The number of documents found */
|
|
1723
|
+
found?: number | undefined;
|
|
1724
|
+
found_docs?: number | undefined;
|
|
1725
|
+
/** The number of milliseconds the search took */
|
|
1726
|
+
search_time_ms?: number | undefined;
|
|
1727
|
+
/** The total number of documents in the collection */
|
|
1728
|
+
out_of?: number | undefined;
|
|
1729
|
+
/** Whether the search was cut off */
|
|
1730
|
+
search_cutoff?: boolean | undefined;
|
|
1731
|
+
/** The search result page number */
|
|
1732
|
+
page?: number | undefined;
|
|
1733
|
+
grouped_hits?: SearchResultGroupedHitsList | undefined;
|
|
1734
|
+
/** The documents that matched the search query */
|
|
1735
|
+
hits?: SearchResultHitsList | undefined;
|
|
1736
|
+
request_params?: SearchRequestParams | undefined;
|
|
1737
|
+
conversation?: SearchResultConversation | undefined;
|
|
1738
|
+
/** Returned only for union query response. */
|
|
1739
|
+
union_request_params?: SearchResultUnionRequestParamsList | undefined;
|
|
1740
|
+
/** Custom JSON object that can be returned in the search response */
|
|
1741
|
+
metadata?: SearchResultMetadataMap | undefined;
|
|
1742
|
+
}
|
|
1743
|
+
/** Parameters for the multi search API. */
|
|
1744
|
+
export interface MultiSearchParameters {
|
|
1745
|
+
/** 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. */
|
|
1746
|
+
q?: string | undefined;
|
|
1747
|
+
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
1748
|
+
query_by?: string | undefined;
|
|
1749
|
+
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
1750
|
+
query_by_weights?: string | undefined;
|
|
1751
|
+
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
1752
|
+
text_match_type?: string | undefined;
|
|
1753
|
+
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
1754
|
+
prefix?: string | undefined;
|
|
1755
|
+
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
1756
|
+
infix?: string | undefined;
|
|
1757
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1758
|
+
max_extra_prefix?: number | undefined;
|
|
1759
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1760
|
+
max_extra_suffix?: number | undefined;
|
|
1761
|
+
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
1762
|
+
filter_by?: string | undefined;
|
|
1763
|
+
/** 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 */
|
|
1764
|
+
enable_lazy_filter?: boolean | undefined;
|
|
1765
|
+
/** 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*. */
|
|
1766
|
+
max_filter_by_candidates?: number | undefined;
|
|
1767
|
+
/** 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` */
|
|
1768
|
+
sort_by?: string | undefined;
|
|
1769
|
+
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
1770
|
+
facet_by?: string | undefined;
|
|
1771
|
+
/** Maximum number of facet values to be returned. */
|
|
1772
|
+
max_facet_values?: number | undefined;
|
|
1773
|
+
/** 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". */
|
|
1774
|
+
facet_query?: string | undefined;
|
|
1775
|
+
/** Controls the fuzziness of the facet query filter. Default: 2. */
|
|
1776
|
+
facet_query_num_typos?: number | undefined;
|
|
1777
|
+
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1778
|
+
num_typos?: string | undefined;
|
|
1779
|
+
/** Results from this specific page number would be fetched. */
|
|
1780
|
+
page?: number | undefined;
|
|
1781
|
+
/** Number of results to fetch per page. Default: 10 */
|
|
1782
|
+
per_page?: number | undefined;
|
|
1783
|
+
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
1784
|
+
limit?: number | undefined;
|
|
1785
|
+
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
1786
|
+
offset?: number | undefined;
|
|
1787
|
+
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
1788
|
+
group_by?: string | undefined;
|
|
1789
|
+
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
1790
|
+
group_limit?: number | undefined;
|
|
1791
|
+
/** 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 */
|
|
1792
|
+
group_missing_values?: boolean | undefined;
|
|
1793
|
+
/** 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. */
|
|
1794
|
+
group_max_candidates?: number | undefined;
|
|
1795
|
+
/** List of fields from the document to include in the search result */
|
|
1796
|
+
include_fields?: string | undefined;
|
|
1797
|
+
/** List of fields from the document to exclude in the search result */
|
|
1798
|
+
exclude_fields?: string | undefined;
|
|
1799
|
+
/** List of fields which should be highlighted fully without snippeting */
|
|
1800
|
+
highlight_full_fields?: string | undefined;
|
|
1801
|
+
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
1802
|
+
highlight_affix_num_tokens?: number | undefined;
|
|
1803
|
+
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
1804
|
+
highlight_start_tag?: string | undefined;
|
|
1805
|
+
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
1806
|
+
highlight_end_tag?: string | undefined;
|
|
1807
|
+
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
1808
|
+
snippet_threshold?: number | undefined;
|
|
1809
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
1810
|
+
drop_tokens_threshold?: number | undefined;
|
|
1811
|
+
drop_tokens_mode?: DropTokensMode | (string & {}) | undefined;
|
|
1812
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
1813
|
+
typo_tokens_threshold?: number | undefined;
|
|
1814
|
+
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
1815
|
+
enable_typos_for_alpha_numerical_tokens?: boolean | undefined;
|
|
1816
|
+
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
1817
|
+
filter_curated_hits?: boolean | undefined;
|
|
1818
|
+
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
1819
|
+
enable_synonyms?: boolean | undefined;
|
|
1820
|
+
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
1821
|
+
enable_analytics?: boolean | undefined;
|
|
1822
|
+
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
1823
|
+
synonym_prefix?: boolean | undefined;
|
|
1824
|
+
/** 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 */
|
|
1825
|
+
demote_synonym_match?: boolean | undefined;
|
|
1826
|
+
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
1827
|
+
synonym_num_typos?: number | undefined;
|
|
1828
|
+
/** 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`. */
|
|
1829
|
+
pinned_hits?: string | undefined;
|
|
1830
|
+
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. 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`. */
|
|
1831
|
+
hidden_hits?: string | undefined;
|
|
1832
|
+
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
1833
|
+
curation_tags?: string | undefined;
|
|
1834
|
+
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
1835
|
+
highlight_fields?: string | undefined;
|
|
1836
|
+
/** 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. */
|
|
1837
|
+
rerank_hybrid_matches?: boolean | undefined;
|
|
1838
|
+
/** 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 */
|
|
1839
|
+
pre_segmented_query?: boolean | undefined;
|
|
1840
|
+
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
1841
|
+
preset?: string | undefined;
|
|
1842
|
+
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
1843
|
+
enable_curations?: boolean | undefined;
|
|
1844
|
+
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
1845
|
+
prioritize_exact_match?: boolean | undefined;
|
|
1846
|
+
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
1847
|
+
prioritize_token_position?: boolean | undefined;
|
|
1848
|
+
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
1849
|
+
prioritize_num_matching_fields?: boolean | undefined;
|
|
1850
|
+
/** Make Typesense disable typos for numerical tokens. */
|
|
1851
|
+
enable_typos_for_numerical_tokens?: boolean | undefined;
|
|
1852
|
+
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
1853
|
+
exhaustive_search?: boolean | undefined;
|
|
1854
|
+
/** 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. */
|
|
1855
|
+
search_cutoff_ms?: number | undefined;
|
|
1856
|
+
/** 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. */
|
|
1857
|
+
limit_hits?: number | undefined;
|
|
1858
|
+
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1859
|
+
use_cache?: boolean | undefined;
|
|
1860
|
+
/** 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. */
|
|
1861
|
+
cache_ttl?: number | undefined;
|
|
1862
|
+
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1863
|
+
min_len_1typo?: number | undefined;
|
|
1864
|
+
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1865
|
+
min_len_2typo?: number | undefined;
|
|
1866
|
+
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
1867
|
+
vector_query?: string | undefined;
|
|
1868
|
+
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
1869
|
+
remote_embedding_timeout_ms?: number | undefined;
|
|
1870
|
+
/** Number of times to retry fetching remote embeddings. */
|
|
1871
|
+
remote_embedding_num_tries?: number | undefined;
|
|
1872
|
+
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
1873
|
+
facet_strategy?: string | undefined;
|
|
1874
|
+
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
1875
|
+
stopwords?: string | undefined;
|
|
1876
|
+
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1877
|
+
facet_return_parent?: string | undefined;
|
|
1878
|
+
/** Percentage of hits that will be used to estimate facet counts. Default: 100. */
|
|
1879
|
+
facet_sample_percent?: number | undefined;
|
|
1880
|
+
/** Minimum number of hits above which the facet counts are sampled. Default: 0. */
|
|
1881
|
+
facet_sample_threshold?: number | undefined;
|
|
1882
|
+
/** 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. */
|
|
1883
|
+
facet_sample_slope?: number | undefined;
|
|
1884
|
+
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1885
|
+
voice_query?: string | undefined;
|
|
1886
|
+
/** Enable conversational search. */
|
|
1887
|
+
conversation?: boolean | undefined;
|
|
1888
|
+
/** The Id of Conversation Model to be used. */
|
|
1889
|
+
conversation_model_id?: string | undefined;
|
|
1890
|
+
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
1891
|
+
conversation_id?: string | undefined;
|
|
1892
|
+
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
1893
|
+
validate_field_names?: boolean | undefined;
|
|
1894
|
+
}
|
|
1895
|
+
export type SearchMultiRequestSearchesList = Array<MultiSearchCollectionParameters>;
|
|
1896
|
+
export interface SearchMultiRequest {
|
|
1897
|
+
multiSearchParameters: MultiSearchParameters;
|
|
1898
|
+
/** When true, merges the search results from each search query into a single ordered set of hits. */
|
|
1899
|
+
union?: boolean | undefined;
|
|
1900
|
+
searches: SearchMultiRequestSearchesList;
|
|
1901
|
+
}
|
|
1902
|
+
export type MultiSearchResultItemFacetCountsList = Array<FacetCounts>;
|
|
1903
|
+
export type MultiSearchResultItemGroupedHitsList = Array<SearchGroupedHit>;
|
|
1904
|
+
/** The documents that matched the search query */
|
|
1905
|
+
export type MultiSearchResultItemHitsList = Array<SearchResultHit>;
|
|
1906
|
+
/** Returned only for union query response. */
|
|
1907
|
+
export type MultiSearchResultItemUnionRequestParamsList = Array<SearchRequestParams>;
|
|
1908
|
+
/** Custom JSON object that can be returned in the search response */
|
|
1909
|
+
export type MultiSearchResultItemMetadataMap = {
|
|
1910
|
+
[key: string]: unknown | undefined;
|
|
1911
|
+
};
|
|
1912
|
+
export interface MultiSearchResultItem {
|
|
1913
|
+
facet_counts?: MultiSearchResultItemFacetCountsList | undefined;
|
|
2127
1914
|
/** The number of documents found */
|
|
2128
|
-
found?: number;
|
|
2129
|
-
found_docs?: number;
|
|
1915
|
+
found?: number | undefined;
|
|
1916
|
+
found_docs?: number | undefined;
|
|
2130
1917
|
/** The number of milliseconds the search took */
|
|
2131
|
-
search_time_ms?: number;
|
|
1918
|
+
search_time_ms?: number | undefined;
|
|
2132
1919
|
/** The total number of documents in the collection */
|
|
2133
|
-
out_of?: number;
|
|
1920
|
+
out_of?: number | undefined;
|
|
2134
1921
|
/** Whether the search was cut off */
|
|
2135
|
-
search_cutoff?: boolean;
|
|
1922
|
+
search_cutoff?: boolean | undefined;
|
|
2136
1923
|
/** The search result page number */
|
|
2137
|
-
page?: number;
|
|
2138
|
-
grouped_hits?:
|
|
1924
|
+
page?: number | undefined;
|
|
1925
|
+
grouped_hits?: MultiSearchResultItemGroupedHitsList | undefined;
|
|
2139
1926
|
/** The documents that matched the search query */
|
|
2140
|
-
hits?:
|
|
2141
|
-
request_params?: SearchRequestParams;
|
|
2142
|
-
conversation?: SearchResultConversation;
|
|
1927
|
+
hits?: MultiSearchResultItemHitsList | undefined;
|
|
1928
|
+
request_params?: SearchRequestParams | undefined;
|
|
1929
|
+
conversation?: SearchResultConversation | undefined;
|
|
2143
1930
|
/** Returned only for union query response. */
|
|
2144
|
-
union_request_params?:
|
|
1931
|
+
union_request_params?: MultiSearchResultItemUnionRequestParamsList | undefined;
|
|
2145
1932
|
/** Custom JSON object that can be returned in the search response */
|
|
2146
|
-
metadata?:
|
|
1933
|
+
metadata?: MultiSearchResultItemMetadataMap | undefined;
|
|
1934
|
+
/** HTTP error code */
|
|
1935
|
+
code?: number | undefined;
|
|
1936
|
+
/** Error description */
|
|
1937
|
+
error?: string | undefined;
|
|
1938
|
+
}
|
|
1939
|
+
export type MultiSearchResultResultsList = Array<MultiSearchResultItem>;
|
|
1940
|
+
export interface MultiSearchResult {
|
|
1941
|
+
results: MultiSearchResultResultsList;
|
|
1942
|
+
conversation?: SearchResultConversation | undefined;
|
|
2147
1943
|
}
|
|
2148
|
-
export declare const SearchResult: S.Schema<SearchResult>;
|
|
2149
1944
|
export interface TakeSnapshotRequest {
|
|
2150
1945
|
/** The directory on the server where the snapshot should be saved. */
|
|
2151
1946
|
snapshot_path: string;
|
|
2152
1947
|
}
|
|
2153
|
-
export declare const TakeSnapshotRequest: S.Schema<TakeSnapshotRequest>;
|
|
2154
1948
|
export interface ToggleSlowRequestLogRequest {
|
|
2155
1949
|
log_slow_requests_time_ms: number;
|
|
2156
1950
|
}
|
|
2157
|
-
export declare const ToggleSlowRequestLogRequest: S.Schema<ToggleSlowRequestLogRequest>;
|
|
2158
1951
|
/** A list of fields for querying, filtering and faceting */
|
|
2159
1952
|
export type UpdateCollectionRequestFieldsList = Array<Field>;
|
|
2160
|
-
export declare const UpdateCollectionRequestFieldsList: S.Schema<UpdateCollectionRequestFieldsList>;
|
|
2161
1953
|
/** List of synonym set names to associate with this collection */
|
|
2162
1954
|
export type UpdateCollectionRequestSynonymSetsList = Array<string>;
|
|
2163
|
-
export declare const UpdateCollectionRequestSynonymSetsList: S.Schema<UpdateCollectionRequestSynonymSetsList>;
|
|
2164
1955
|
export interface UpdateCollectionRequest {
|
|
2165
1956
|
/** The name of the collection to update */
|
|
2166
1957
|
collectionName: string;
|
|
2167
1958
|
/** A list of fields for querying, filtering and faceting */
|
|
2168
|
-
fields?: UpdateCollectionRequestFieldsList;
|
|
1959
|
+
fields?: UpdateCollectionRequestFieldsList | undefined;
|
|
2169
1960
|
/** List of synonym set names to associate with this collection */
|
|
2170
|
-
synonym_sets?: UpdateCollectionRequestSynonymSetsList;
|
|
1961
|
+
synonym_sets?: UpdateCollectionRequestSynonymSetsList | undefined;
|
|
2171
1962
|
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
2172
|
-
metadata?: unknown;
|
|
1963
|
+
metadata?: unknown | undefined;
|
|
2173
1964
|
}
|
|
2174
|
-
export declare const UpdateCollectionRequest: S.Schema<UpdateCollectionRequest>;
|
|
2175
1965
|
/** A list of fields for querying, filtering and faceting */
|
|
2176
1966
|
export type CollectionUpdateSchemaFieldsList = Array<Field>;
|
|
2177
|
-
export declare const CollectionUpdateSchemaFieldsList: S.Schema<CollectionUpdateSchemaFieldsList>;
|
|
2178
1967
|
/** List of synonym set names to associate with this collection */
|
|
2179
1968
|
export type CollectionUpdateSchemaSynonymSetsList = Array<string>;
|
|
2180
|
-
export declare const CollectionUpdateSchemaSynonymSetsList: S.Schema<CollectionUpdateSchemaSynonymSetsList>;
|
|
2181
1969
|
export interface CollectionUpdateSchema {
|
|
2182
1970
|
/** A list of fields for querying, filtering and faceting */
|
|
2183
|
-
fields?: CollectionUpdateSchemaFieldsList;
|
|
1971
|
+
fields?: CollectionUpdateSchemaFieldsList | undefined;
|
|
2184
1972
|
/** List of synonym set names to associate with this collection */
|
|
2185
|
-
synonym_sets?: CollectionUpdateSchemaSynonymSetsList;
|
|
1973
|
+
synonym_sets?: CollectionUpdateSchemaSynonymSetsList | undefined;
|
|
2186
1974
|
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
2187
|
-
metadata?: unknown;
|
|
1975
|
+
metadata?: unknown | undefined;
|
|
2188
1976
|
}
|
|
2189
|
-
export declare const CollectionUpdateSchema: S.Schema<CollectionUpdateSchema>;
|
|
2190
1977
|
export interface UpdateConversationModelRequest {
|
|
2191
1978
|
/** The id of the conversation model to update */
|
|
2192
1979
|
modelId: string;
|
|
2193
1980
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
2194
|
-
id?: string;
|
|
1981
|
+
id?: string | undefined;
|
|
2195
1982
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
2196
|
-
model_name?: string;
|
|
1983
|
+
model_name?: string | undefined;
|
|
2197
1984
|
/** The LLM service's API Key */
|
|
2198
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
1985
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2199
1986
|
/** Typesense collection that stores the historical conversations */
|
|
2200
|
-
history_collection?: string;
|
|
1987
|
+
history_collection?: string | undefined;
|
|
2201
1988
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
2202
|
-
account_id?: string;
|
|
1989
|
+
account_id?: string | undefined;
|
|
2203
1990
|
/** The system prompt that contains special instructions to the LLM */
|
|
2204
|
-
system_prompt?: string;
|
|
1991
|
+
system_prompt?: string | undefined;
|
|
2205
1992
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
2206
|
-
ttl?: number;
|
|
1993
|
+
ttl?: number | undefined;
|
|
2207
1994
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
2208
|
-
max_bytes?: number;
|
|
1995
|
+
max_bytes?: number | undefined;
|
|
2209
1996
|
/** URL of vLLM service */
|
|
2210
|
-
vllm_url?: string;
|
|
1997
|
+
vllm_url?: string | undefined;
|
|
2211
1998
|
}
|
|
2212
|
-
export declare const UpdateConversationModelRequest: S.Schema<UpdateConversationModelRequest>;
|
|
2213
1999
|
export interface UpdateConversationModelResponse {
|
|
2214
2000
|
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
2215
2001
|
id: string;
|
|
2216
2002
|
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
2217
2003
|
model_name: string;
|
|
2218
2004
|
/** The LLM service's API Key */
|
|
2219
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
2005
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2220
2006
|
/** Typesense collection that stores the historical conversations */
|
|
2221
2007
|
history_collection: string;
|
|
2222
2008
|
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
2223
|
-
account_id?: string;
|
|
2009
|
+
account_id?: string | undefined;
|
|
2224
2010
|
/** The system prompt that contains special instructions to the LLM */
|
|
2225
|
-
system_prompt?: string;
|
|
2011
|
+
system_prompt?: string | undefined;
|
|
2226
2012
|
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
2227
|
-
ttl?: number;
|
|
2013
|
+
ttl?: number | undefined;
|
|
2228
2014
|
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
2229
2015
|
max_bytes: number;
|
|
2230
2016
|
/** URL of vLLM service */
|
|
2231
|
-
vllm_url?: string;
|
|
2017
|
+
vllm_url?: string | undefined;
|
|
2232
2018
|
}
|
|
2233
|
-
export declare const UpdateConversationModelResponse: S.Schema<UpdateConversationModelResponse>;
|
|
2234
2019
|
export interface UpdateDocumentRequest {
|
|
2235
2020
|
/** The name of the collection to search for the document under */
|
|
2236
2021
|
collectionName: string;
|
|
2237
2022
|
/** The Document ID */
|
|
2238
2023
|
documentId: string;
|
|
2239
2024
|
/** Dealing with Dirty Data */
|
|
2240
|
-
dirty_values?: DirtyValues | (string & {});
|
|
2025
|
+
dirty_values?: DirtyValues | (string & {}) | undefined;
|
|
2241
2026
|
}
|
|
2242
|
-
export declare const UpdateDocumentRequest: S.Schema<UpdateDocumentRequest>;
|
|
2243
2027
|
export type UpdateDocumentResponse = unknown;
|
|
2244
|
-
export declare const UpdateDocumentResponse: S.Schema<UpdateDocumentResponse>;
|
|
2245
2028
|
export interface UpdateDocumentsRequestUpdateDocumentsParameters {
|
|
2246
|
-
filter_by?: string;
|
|
2029
|
+
filter_by?: string | undefined;
|
|
2247
2030
|
}
|
|
2248
|
-
export declare const UpdateDocumentsRequestUpdateDocumentsParameters: S.Schema<UpdateDocumentsRequestUpdateDocumentsParameters>;
|
|
2249
2031
|
export interface UpdateDocumentsRequest {
|
|
2250
2032
|
/** The name of the collection to update documents in */
|
|
2251
2033
|
collectionName: string;
|
|
2252
|
-
updateDocumentsParameters?: UpdateDocumentsRequestUpdateDocumentsParameters;
|
|
2034
|
+
updateDocumentsParameters?: UpdateDocumentsRequestUpdateDocumentsParameters | undefined;
|
|
2253
2035
|
}
|
|
2254
|
-
export declare const UpdateDocumentsRequest: S.Schema<UpdateDocumentsRequest>;
|
|
2255
2036
|
export interface UpdateDocumentsResponse {
|
|
2256
2037
|
/** The number of documents that have been updated */
|
|
2257
2038
|
num_updated: number;
|
|
2258
2039
|
}
|
|
2259
|
-
export declare const UpdateDocumentsResponse: S.Schema<UpdateDocumentsResponse>;
|
|
2260
2040
|
/** Stop sequences for the NL model (Google-specific) */
|
|
2261
2041
|
export type UpdateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
2262
|
-
export declare const UpdateNLSearchModelRequestStopSequencesList: S.Schema<UpdateNLSearchModelRequestStopSequencesList>;
|
|
2263
2042
|
export interface UpdateNLSearchModelRequest {
|
|
2264
2043
|
/** The ID of the NL search model to update */
|
|
2265
2044
|
modelId: string;
|
|
2266
2045
|
/** Name of the NL model to use */
|
|
2267
|
-
model_name?: string;
|
|
2046
|
+
model_name?: string | undefined;
|
|
2268
2047
|
/** API key for the NL model service */
|
|
2269
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
2048
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2270
2049
|
/** Custom API URL for the NL model service */
|
|
2271
|
-
api_url?: string;
|
|
2050
|
+
api_url?: string | undefined;
|
|
2272
2051
|
/** Maximum number of bytes to process */
|
|
2273
|
-
max_bytes?: number;
|
|
2052
|
+
max_bytes?: number | undefined;
|
|
2274
2053
|
/** Temperature parameter for the NL model */
|
|
2275
|
-
temperature?: number;
|
|
2054
|
+
temperature?: number | undefined;
|
|
2276
2055
|
/** System prompt for the NL model */
|
|
2277
|
-
system_prompt?: string;
|
|
2056
|
+
system_prompt?: string | undefined;
|
|
2278
2057
|
/** Top-p parameter for the NL model (Google-specific) */
|
|
2279
|
-
top_p?: number;
|
|
2058
|
+
top_p?: number | undefined;
|
|
2280
2059
|
/** Top-k parameter for the NL model (Google-specific) */
|
|
2281
|
-
top_k?: number;
|
|
2060
|
+
top_k?: number | undefined;
|
|
2282
2061
|
/** Stop sequences for the NL model (Google-specific) */
|
|
2283
|
-
stop_sequences?: UpdateNLSearchModelRequestStopSequencesList;
|
|
2062
|
+
stop_sequences?: UpdateNLSearchModelRequestStopSequencesList | undefined;
|
|
2284
2063
|
/** API version for the NL model service */
|
|
2285
|
-
api_version?: string;
|
|
2064
|
+
api_version?: string | undefined;
|
|
2286
2065
|
/** Project ID for GCP Vertex AI */
|
|
2287
|
-
project_id?: string;
|
|
2066
|
+
project_id?: string | undefined;
|
|
2288
2067
|
/** Access token for GCP Vertex AI */
|
|
2289
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
2068
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2290
2069
|
/** Refresh token for GCP Vertex AI */
|
|
2291
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
2070
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2292
2071
|
/** Client ID for GCP Vertex AI */
|
|
2293
|
-
client_id?: string;
|
|
2072
|
+
client_id?: string | undefined;
|
|
2294
2073
|
/** Client secret for GCP Vertex AI */
|
|
2295
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
2074
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2296
2075
|
/** Region for GCP Vertex AI */
|
|
2297
|
-
region?: string;
|
|
2076
|
+
region?: string | undefined;
|
|
2298
2077
|
/** Maximum output tokens for GCP Vertex AI */
|
|
2299
|
-
max_output_tokens?: number;
|
|
2078
|
+
max_output_tokens?: number | undefined;
|
|
2300
2079
|
/** Account ID for Cloudflare-specific models */
|
|
2301
|
-
account_id?: string;
|
|
2080
|
+
account_id?: string | undefined;
|
|
2302
2081
|
/** Optional ID for the NL search model */
|
|
2303
|
-
id?: string;
|
|
2082
|
+
id?: string | undefined;
|
|
2304
2083
|
}
|
|
2305
|
-
export declare const UpdateNLSearchModelRequest: S.Schema<UpdateNLSearchModelRequest>;
|
|
2306
2084
|
/** Stop sequences for the NL model (Google-specific) */
|
|
2307
2085
|
export type UpdateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
2308
|
-
export declare const UpdateNLSearchModelResponseStopSequencesList: S.Schema<UpdateNLSearchModelResponseStopSequencesList>;
|
|
2309
2086
|
export interface UpdateNLSearchModelResponse {
|
|
2310
2087
|
/** Name of the NL model to use */
|
|
2311
|
-
model_name?: string;
|
|
2088
|
+
model_name?: string | undefined;
|
|
2312
2089
|
/** API key for the NL model service */
|
|
2313
|
-
api_key?: string | import("effect/Redacted").Redacted<string
|
|
2090
|
+
api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2314
2091
|
/** Custom API URL for the NL model service */
|
|
2315
|
-
api_url?: string;
|
|
2092
|
+
api_url?: string | undefined;
|
|
2316
2093
|
/** Maximum number of bytes to process */
|
|
2317
|
-
max_bytes?: number;
|
|
2094
|
+
max_bytes?: number | undefined;
|
|
2318
2095
|
/** Temperature parameter for the NL model */
|
|
2319
|
-
temperature?: number;
|
|
2096
|
+
temperature?: number | undefined;
|
|
2320
2097
|
/** System prompt for the NL model */
|
|
2321
|
-
system_prompt?: string;
|
|
2098
|
+
system_prompt?: string | undefined;
|
|
2322
2099
|
/** Top-p parameter for the NL model (Google-specific) */
|
|
2323
|
-
top_p?: number;
|
|
2100
|
+
top_p?: number | undefined;
|
|
2324
2101
|
/** Top-k parameter for the NL model (Google-specific) */
|
|
2325
|
-
top_k?: number;
|
|
2102
|
+
top_k?: number | undefined;
|
|
2326
2103
|
/** Stop sequences for the NL model (Google-specific) */
|
|
2327
|
-
stop_sequences?: UpdateNLSearchModelResponseStopSequencesList;
|
|
2104
|
+
stop_sequences?: UpdateNLSearchModelResponseStopSequencesList | undefined;
|
|
2328
2105
|
/** API version for the NL model service */
|
|
2329
|
-
api_version?: string;
|
|
2106
|
+
api_version?: string | undefined;
|
|
2330
2107
|
/** Project ID for GCP Vertex AI */
|
|
2331
|
-
project_id?: string;
|
|
2108
|
+
project_id?: string | undefined;
|
|
2332
2109
|
/** Access token for GCP Vertex AI */
|
|
2333
|
-
access_token?: string | import("effect/Redacted").Redacted<string
|
|
2110
|
+
access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2334
2111
|
/** Refresh token for GCP Vertex AI */
|
|
2335
|
-
refresh_token?: string | import("effect/Redacted").Redacted<string
|
|
2112
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2336
2113
|
/** Client ID for GCP Vertex AI */
|
|
2337
|
-
client_id?: string;
|
|
2114
|
+
client_id?: string | undefined;
|
|
2338
2115
|
/** Client secret for GCP Vertex AI */
|
|
2339
|
-
client_secret?: string | import("effect/Redacted").Redacted<string
|
|
2116
|
+
client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
2340
2117
|
/** Region for GCP Vertex AI */
|
|
2341
|
-
region?: string;
|
|
2118
|
+
region?: string | undefined;
|
|
2342
2119
|
/** Maximum output tokens for GCP Vertex AI */
|
|
2343
|
-
max_output_tokens?: number;
|
|
2120
|
+
max_output_tokens?: number | undefined;
|
|
2344
2121
|
/** Account ID for Cloudflare-specific models */
|
|
2345
|
-
account_id?: string;
|
|
2122
|
+
account_id?: string | undefined;
|
|
2346
2123
|
/** Optional ID for the NL search model */
|
|
2347
2124
|
id: string;
|
|
2348
2125
|
}
|
|
2349
|
-
export declare const UpdateNLSearchModelResponse: S.Schema<UpdateNLSearchModelResponse>;
|
|
2350
2126
|
export interface UpsertAliasRequest {
|
|
2351
2127
|
/** The name of the alias to create/update */
|
|
2352
2128
|
aliasName: string;
|
|
2353
2129
|
/** Name of the collection you wish to map the alias to */
|
|
2354
2130
|
collection_name: string;
|
|
2355
2131
|
}
|
|
2356
|
-
export declare const UpsertAliasRequest: S.Schema<UpsertAliasRequest>;
|
|
2357
2132
|
export type UpsertAnalyticsRuleRequestParamsMetaFieldsList = Array<string>;
|
|
2358
|
-
export declare const UpsertAnalyticsRuleRequestParamsMetaFieldsList: S.Schema<UpsertAnalyticsRuleRequestParamsMetaFieldsList>;
|
|
2359
2133
|
export interface UpsertAnalyticsRuleRequestParams {
|
|
2360
|
-
destination_collection?: string;
|
|
2361
|
-
limit?: number;
|
|
2362
|
-
capture_search_requests?: boolean;
|
|
2363
|
-
meta_fields?: UpsertAnalyticsRuleRequestParamsMetaFieldsList;
|
|
2364
|
-
expand_query?: boolean;
|
|
2365
|
-
counter_field?: string;
|
|
2366
|
-
weight?: number;
|
|
2367
|
-
}
|
|
2368
|
-
export declare const UpsertAnalyticsRuleRequestParams: S.Schema<UpsertAnalyticsRuleRequestParams>;
|
|
2134
|
+
destination_collection?: string | undefined;
|
|
2135
|
+
limit?: number | undefined;
|
|
2136
|
+
capture_search_requests?: boolean | undefined;
|
|
2137
|
+
meta_fields?: UpsertAnalyticsRuleRequestParamsMetaFieldsList | undefined;
|
|
2138
|
+
expand_query?: boolean | undefined;
|
|
2139
|
+
counter_field?: string | undefined;
|
|
2140
|
+
weight?: number | undefined;
|
|
2141
|
+
}
|
|
2369
2142
|
export interface UpsertAnalyticsRuleRequest {
|
|
2370
2143
|
/** The name of the analytics rule to upsert */
|
|
2371
2144
|
ruleName: string;
|
|
2372
|
-
name?: string;
|
|
2373
|
-
rule_tag?: string;
|
|
2374
|
-
params?: UpsertAnalyticsRuleRequestParams;
|
|
2145
|
+
name?: string | undefined;
|
|
2146
|
+
rule_tag?: string | undefined;
|
|
2147
|
+
params?: UpsertAnalyticsRuleRequestParams | undefined;
|
|
2375
2148
|
}
|
|
2376
|
-
export declare const UpsertAnalyticsRuleRequest: S.Schema<UpsertAnalyticsRuleRequest>;
|
|
2377
2149
|
export type UpsertAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
2378
|
-
export declare const UpsertAnalyticsRuleResponseParamsMetaFieldsList: S.Schema<UpsertAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
2379
2150
|
export interface UpsertAnalyticsRuleResponseParams {
|
|
2380
|
-
destination_collection?: string;
|
|
2381
|
-
limit?: number;
|
|
2382
|
-
capture_search_requests?: boolean;
|
|
2383
|
-
meta_fields?: UpsertAnalyticsRuleResponseParamsMetaFieldsList;
|
|
2384
|
-
expand_query?: boolean;
|
|
2385
|
-
counter_field?: string;
|
|
2386
|
-
weight?: number;
|
|
2387
|
-
}
|
|
2388
|
-
export declare const UpsertAnalyticsRuleResponseParams: S.Schema<UpsertAnalyticsRuleResponseParams>;
|
|
2151
|
+
destination_collection?: string | undefined;
|
|
2152
|
+
limit?: number | undefined;
|
|
2153
|
+
capture_search_requests?: boolean | undefined;
|
|
2154
|
+
meta_fields?: UpsertAnalyticsRuleResponseParamsMetaFieldsList | undefined;
|
|
2155
|
+
expand_query?: boolean | undefined;
|
|
2156
|
+
counter_field?: string | undefined;
|
|
2157
|
+
weight?: number | undefined;
|
|
2158
|
+
}
|
|
2389
2159
|
export interface UpsertAnalyticsRuleResponse {
|
|
2390
2160
|
name: string;
|
|
2391
2161
|
type: AnalyticsRuleType;
|
|
2392
2162
|
collection: string;
|
|
2393
2163
|
event_type: string;
|
|
2394
|
-
rule_tag?: string;
|
|
2395
|
-
params?: UpsertAnalyticsRuleResponseParams;
|
|
2164
|
+
rule_tag?: string | undefined;
|
|
2165
|
+
params?: UpsertAnalyticsRuleResponseParams | undefined;
|
|
2396
2166
|
}
|
|
2397
|
-
export declare const UpsertAnalyticsRuleResponse: S.Schema<UpsertAnalyticsRuleResponse>;
|
|
2398
2167
|
/** Array of curation items */
|
|
2399
2168
|
export type UpsertCurationSetRequestItemsList = Array<CurationItemCreateSchema>;
|
|
2400
|
-
export declare const UpsertCurationSetRequestItemsList: S.Schema<UpsertCurationSetRequestItemsList>;
|
|
2401
2169
|
export interface UpsertCurationSetRequest {
|
|
2402
2170
|
/** The name of the curation set to create/update */
|
|
2403
2171
|
curationSetName: string;
|
|
2404
2172
|
/** Array of curation items */
|
|
2405
2173
|
items: UpsertCurationSetRequestItemsList;
|
|
2406
2174
|
/** Optional description for the curation set */
|
|
2407
|
-
description?: string;
|
|
2175
|
+
description?: string | undefined;
|
|
2408
2176
|
}
|
|
2409
|
-
export declare const UpsertCurationSetRequest: S.Schema<UpsertCurationSetRequest>;
|
|
2410
2177
|
/** Array of curation items */
|
|
2411
2178
|
export type UpsertCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
2412
|
-
export declare const UpsertCurationSetResponseItemsList: S.Schema<UpsertCurationSetResponseItemsList>;
|
|
2413
2179
|
export interface UpsertCurationSetResponse {
|
|
2414
2180
|
/** Array of curation items */
|
|
2415
2181
|
items: UpsertCurationSetResponseItemsList;
|
|
2416
2182
|
/** Optional description for the curation set */
|
|
2417
|
-
description?: string;
|
|
2183
|
+
description?: string | undefined;
|
|
2418
2184
|
name: string;
|
|
2419
2185
|
}
|
|
2420
|
-
export declare const UpsertCurationSetResponse: S.Schema<UpsertCurationSetResponse>;
|
|
2421
2186
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2422
2187
|
export type UpsertCurationSetItemRequestIncludesList = Array<CurationInclude>;
|
|
2423
|
-
export declare const UpsertCurationSetItemRequestIncludesList: S.Schema<UpsertCurationSetItemRequestIncludesList>;
|
|
2424
2188
|
/** List of document `id`s that should be excluded from the search results. */
|
|
2425
2189
|
export type UpsertCurationSetItemRequestExcludesList = Array<CurationExclude>;
|
|
2426
|
-
export declare const UpsertCurationSetItemRequestExcludesList: S.Schema<UpsertCurationSetItemRequestExcludesList>;
|
|
2427
2190
|
export interface UpsertCurationSetItemRequest {
|
|
2428
2191
|
/** The name of the curation set */
|
|
2429
2192
|
curationSetName: string;
|
|
@@ -2431,115 +2194,99 @@ export interface UpsertCurationSetItemRequest {
|
|
|
2431
2194
|
itemId: string;
|
|
2432
2195
|
rule: CurationRule;
|
|
2433
2196
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2434
|
-
includes?: UpsertCurationSetItemRequestIncludesList;
|
|
2197
|
+
includes?: UpsertCurationSetItemRequestIncludesList | undefined;
|
|
2435
2198
|
/** List of document `id`s that should be excluded from the search results. */
|
|
2436
|
-
excludes?: UpsertCurationSetItemRequestExcludesList;
|
|
2199
|
+
excludes?: UpsertCurationSetItemRequestExcludesList | undefined;
|
|
2437
2200
|
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
2438
|
-
filter_by?: string;
|
|
2201
|
+
filter_by?: string | undefined;
|
|
2439
2202
|
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
2440
|
-
remove_matched_tokens?: boolean;
|
|
2203
|
+
remove_matched_tokens?: boolean | undefined;
|
|
2441
2204
|
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
2442
|
-
metadata?: unknown;
|
|
2205
|
+
metadata?: unknown | undefined;
|
|
2443
2206
|
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
2444
|
-
sort_by?: string;
|
|
2207
|
+
sort_by?: string | undefined;
|
|
2445
2208
|
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
2446
|
-
replace_query?: string;
|
|
2209
|
+
replace_query?: string | undefined;
|
|
2447
2210
|
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
2448
|
-
filter_curated_hits?: boolean;
|
|
2211
|
+
filter_curated_hits?: boolean | undefined;
|
|
2449
2212
|
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
2450
|
-
effective_from_ts?: number;
|
|
2213
|
+
effective_from_ts?: number | undefined;
|
|
2451
2214
|
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
2452
|
-
effective_to_ts?: number;
|
|
2215
|
+
effective_to_ts?: number | undefined;
|
|
2453
2216
|
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
2454
|
-
stop_processing?: boolean;
|
|
2217
|
+
stop_processing?: boolean | undefined;
|
|
2455
2218
|
/** ID of the curation item */
|
|
2456
|
-
id?: string;
|
|
2219
|
+
id?: string | undefined;
|
|
2457
2220
|
}
|
|
2458
|
-
export declare const UpsertCurationSetItemRequest: S.Schema<UpsertCurationSetItemRequest>;
|
|
2459
2221
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2460
2222
|
export type UpsertCurationSetItemResponseIncludesList = Array<CurationInclude>;
|
|
2461
|
-
export declare const UpsertCurationSetItemResponseIncludesList: S.Schema<UpsertCurationSetItemResponseIncludesList>;
|
|
2462
2223
|
/** List of document `id`s that should be excluded from the search results. */
|
|
2463
2224
|
export type UpsertCurationSetItemResponseExcludesList = Array<CurationExclude>;
|
|
2464
|
-
export declare const UpsertCurationSetItemResponseExcludesList: S.Schema<UpsertCurationSetItemResponseExcludesList>;
|
|
2465
2225
|
export interface UpsertCurationSetItemResponse {
|
|
2466
2226
|
rule: CurationRule;
|
|
2467
2227
|
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2468
|
-
includes?: UpsertCurationSetItemResponseIncludesList;
|
|
2228
|
+
includes?: UpsertCurationSetItemResponseIncludesList | undefined;
|
|
2469
2229
|
/** List of document `id`s that should be excluded from the search results. */
|
|
2470
|
-
excludes?: UpsertCurationSetItemResponseExcludesList;
|
|
2230
|
+
excludes?: UpsertCurationSetItemResponseExcludesList | undefined;
|
|
2471
2231
|
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
2472
|
-
filter_by?: string;
|
|
2232
|
+
filter_by?: string | undefined;
|
|
2473
2233
|
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
2474
|
-
remove_matched_tokens?: boolean;
|
|
2234
|
+
remove_matched_tokens?: boolean | undefined;
|
|
2475
2235
|
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
2476
|
-
metadata?: unknown;
|
|
2236
|
+
metadata?: unknown | undefined;
|
|
2477
2237
|
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
2478
|
-
sort_by?: string;
|
|
2238
|
+
sort_by?: string | undefined;
|
|
2479
2239
|
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
2480
|
-
replace_query?: string;
|
|
2240
|
+
replace_query?: string | undefined;
|
|
2481
2241
|
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
2482
|
-
filter_curated_hits?: boolean;
|
|
2242
|
+
filter_curated_hits?: boolean | undefined;
|
|
2483
2243
|
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
2484
|
-
effective_from_ts?: number;
|
|
2244
|
+
effective_from_ts?: number | undefined;
|
|
2485
2245
|
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
2486
|
-
effective_to_ts?: number;
|
|
2246
|
+
effective_to_ts?: number | undefined;
|
|
2487
2247
|
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
2488
|
-
stop_processing?: boolean;
|
|
2248
|
+
stop_processing?: boolean | undefined;
|
|
2489
2249
|
/** ID of the curation item */
|
|
2490
2250
|
id: string;
|
|
2491
2251
|
}
|
|
2492
|
-
export declare const UpsertCurationSetItemResponse: S.Schema<UpsertCurationSetItemResponse>;
|
|
2493
2252
|
export type UpsertPresetRequestValue = SearchParameters | MultiSearchSearchesParameter;
|
|
2494
|
-
export declare const UpsertPresetRequestValue: any;
|
|
2495
2253
|
export interface UpsertPresetRequest {
|
|
2496
2254
|
/** The name of the preset set to upsert. */
|
|
2497
2255
|
presetId: string;
|
|
2498
2256
|
value: UpsertPresetRequestValue;
|
|
2499
2257
|
}
|
|
2500
|
-
export declare const UpsertPresetRequest: S.Schema<UpsertPresetRequest>;
|
|
2501
2258
|
export type UpsertPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
2502
|
-
export declare const UpsertPresetResponseValue: any;
|
|
2503
2259
|
export interface UpsertPresetResponse {
|
|
2504
2260
|
value: UpsertPresetResponseValue;
|
|
2505
2261
|
name: string;
|
|
2506
2262
|
}
|
|
2507
|
-
export declare const UpsertPresetResponse: S.Schema<UpsertPresetResponse>;
|
|
2508
2263
|
export type UpsertStopwordsSetRequestStopwordsList = Array<string>;
|
|
2509
|
-
export declare const UpsertStopwordsSetRequestStopwordsList: S.Schema<UpsertStopwordsSetRequestStopwordsList>;
|
|
2510
2264
|
export interface UpsertStopwordsSetRequest {
|
|
2511
2265
|
/** The ID of the stopwords set to upsert. */
|
|
2512
2266
|
setId: string;
|
|
2513
2267
|
stopwords: UpsertStopwordsSetRequestStopwordsList;
|
|
2514
|
-
locale?: string;
|
|
2268
|
+
locale?: string | undefined;
|
|
2515
2269
|
}
|
|
2516
|
-
export declare const UpsertStopwordsSetRequest: S.Schema<UpsertStopwordsSetRequest>;
|
|
2517
2270
|
/** Array of synonym items */
|
|
2518
2271
|
export type UpsertSynonymSetRequestItemsList = Array<SynonymItemSchema>;
|
|
2519
|
-
export declare const UpsertSynonymSetRequestItemsList: S.Schema<UpsertSynonymSetRequestItemsList>;
|
|
2520
2272
|
export interface UpsertSynonymSetRequest {
|
|
2521
2273
|
/** The name of the synonym set to create/update */
|
|
2522
2274
|
synonymSetName: string;
|
|
2523
2275
|
/** Array of synonym items */
|
|
2524
2276
|
items: UpsertSynonymSetRequestItemsList;
|
|
2525
2277
|
}
|
|
2526
|
-
export declare const UpsertSynonymSetRequest: S.Schema<UpsertSynonymSetRequest>;
|
|
2527
2278
|
/** Array of synonym items */
|
|
2528
2279
|
export type UpsertSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
2529
|
-
export declare const UpsertSynonymSetResponseItemsList: S.Schema<UpsertSynonymSetResponseItemsList>;
|
|
2530
2280
|
export interface UpsertSynonymSetResponse {
|
|
2531
2281
|
/** Array of synonym items */
|
|
2532
2282
|
items: UpsertSynonymSetResponseItemsList;
|
|
2533
2283
|
/** Name of the synonym set */
|
|
2534
2284
|
name: string;
|
|
2535
2285
|
}
|
|
2536
|
-
export declare const UpsertSynonymSetResponse: S.Schema<UpsertSynonymSetResponse>;
|
|
2537
2286
|
/** Array of words that should be considered as synonyms */
|
|
2538
2287
|
export type UpsertSynonymSetItemRequestSynonymsList = Array<string>;
|
|
2539
|
-
export declare const UpsertSynonymSetItemRequestSynonymsList: S.Schema<UpsertSynonymSetItemRequestSynonymsList>;
|
|
2540
2288
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2541
2289
|
export type UpsertSynonymSetItemRequestSymbolsToIndexList = Array<string>;
|
|
2542
|
-
export declare const UpsertSynonymSetItemRequestSymbolsToIndexList: S.Schema<UpsertSynonymSetItemRequestSymbolsToIndexList>;
|
|
2543
2290
|
export interface UpsertSynonymSetItemRequest {
|
|
2544
2291
|
/** The name of the synonym set */
|
|
2545
2292
|
synonymSetName: string;
|
|
@@ -2548,35 +2295,33 @@ export interface UpsertSynonymSetItemRequest {
|
|
|
2548
2295
|
/** Array of words that should be considered as synonyms */
|
|
2549
2296
|
synonyms: UpsertSynonymSetItemRequestSynonymsList;
|
|
2550
2297
|
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2551
|
-
root?: string;
|
|
2298
|
+
root?: string | undefined;
|
|
2552
2299
|
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2553
|
-
locale?: string;
|
|
2300
|
+
locale?: string | undefined;
|
|
2554
2301
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2555
|
-
symbols_to_index?: UpsertSynonymSetItemRequestSymbolsToIndexList;
|
|
2302
|
+
symbols_to_index?: UpsertSynonymSetItemRequestSymbolsToIndexList | undefined;
|
|
2556
2303
|
}
|
|
2557
|
-
export declare const UpsertSynonymSetItemRequest: S.Schema<UpsertSynonymSetItemRequest>;
|
|
2558
2304
|
/** Array of words that should be considered as synonyms */
|
|
2559
2305
|
export type UpsertSynonymSetItemResponseSynonymsList = Array<string>;
|
|
2560
|
-
export declare const UpsertSynonymSetItemResponseSynonymsList: S.Schema<UpsertSynonymSetItemResponseSynonymsList>;
|
|
2561
2306
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2562
2307
|
export type UpsertSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
2563
|
-
export declare const UpsertSynonymSetItemResponseSymbolsToIndexList: S.Schema<UpsertSynonymSetItemResponseSymbolsToIndexList>;
|
|
2564
2308
|
export interface UpsertSynonymSetItemResponse {
|
|
2565
2309
|
/** Unique identifier for the synonym item */
|
|
2566
2310
|
id: string;
|
|
2567
2311
|
/** Array of words that should be considered as synonyms */
|
|
2568
2312
|
synonyms: UpsertSynonymSetItemResponseSynonymsList;
|
|
2569
2313
|
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2570
|
-
root?: string;
|
|
2314
|
+
root?: string | undefined;
|
|
2571
2315
|
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2572
|
-
locale?: string;
|
|
2316
|
+
locale?: string | undefined;
|
|
2573
2317
|
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2574
|
-
symbols_to_index?: UpsertSynonymSetItemResponseSymbolsToIndexList;
|
|
2318
|
+
symbols_to_index?: UpsertSynonymSetItemResponseSymbolsToIndexList | undefined;
|
|
2575
2319
|
}
|
|
2576
|
-
export declare const UpsertSynonymSetItemResponse: S.Schema<UpsertSynonymSetItemResponse>;
|
|
2577
2320
|
export interface VoteRequest {
|
|
2578
2321
|
}
|
|
2579
|
-
export
|
|
2322
|
+
export interface ApiResponse {
|
|
2323
|
+
message: string;
|
|
2324
|
+
}
|
|
2580
2325
|
export type ClearCacheError = TypesenseOpError;
|
|
2581
2326
|
/** Clear the cached responses of search requests in the LRU cache. Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache. */
|
|
2582
2327
|
export declare const clearCache: API.OperationMethod<ClearCacheRequest, SuccessStatus, ClearCacheError, TypesenseOpContext>;
|
|
@@ -2658,18 +2403,51 @@ export declare const getAlias: API.OperationMethod<GetAliasRequest, CollectionAl
|
|
|
2658
2403
|
export type GetAliasesError = TypesenseOpError;
|
|
2659
2404
|
/** List all aliases List all aliases and the corresponding collections that they map to. */
|
|
2660
2405
|
export declare const getAliases: API.OperationMethod<GetAliasesRequest, CollectionAliasesResponse, GetAliasesError, TypesenseOpContext>;
|
|
2406
|
+
export type GetAllConversationModelsError = TypesenseOpError;
|
|
2407
|
+
/** List all conversation models Retrieve all conversation models */
|
|
2408
|
+
export declare const getAllConversationModels: API.OperationMethod<GetAllConversationModelsRequest, GetAllConversationModelsResponse, GetAllConversationModelsError, TypesenseOpContext>;
|
|
2409
|
+
export type GetAllNLSearchModelsError = TypesenseOpError;
|
|
2410
|
+
/** List all NL search models Retrieve all NL search models. */
|
|
2411
|
+
export declare const getAllNLSearchModels: API.OperationMethod<GetAllNLSearchModelsRequest, GetAllNLSearchModelsResponse, GetAllNLSearchModelsError, TypesenseOpContext>;
|
|
2412
|
+
export type GetAllPresetsError = TypesenseOpError;
|
|
2413
|
+
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2414
|
+
export declare const getAllPresets: API.OperationMethod<GetAllPresetsRequest, PresetsRetrieveSchema, GetAllPresetsError, TypesenseOpContext>;
|
|
2661
2415
|
export type GetAnalyticsEventsError = BadRequest | TypesenseOpError;
|
|
2662
2416
|
/** Retrieve analytics events Retrieve the most recent events for a user and rule. */
|
|
2663
2417
|
export declare const getAnalyticsEvents: API.OperationMethod<GetAnalyticsEventsRequest, AnalyticsEventsResponse, GetAnalyticsEventsError, TypesenseOpContext>;
|
|
2418
|
+
export type GetAnalyticsRuleError = NotFound | TypesenseOpError;
|
|
2419
|
+
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2420
|
+
export declare const getAnalyticsRule: API.OperationMethod<GetAnalyticsRuleRequest, GetAnalyticsRuleResponse, GetAnalyticsRuleError, TypesenseOpContext>;
|
|
2421
|
+
export type GetAnalyticsRulesError = TypesenseOpError;
|
|
2422
|
+
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2423
|
+
export declare const getAnalyticsRules: API.OperationMethod<GetAnalyticsRulesRequest, GetAnalyticsRulesResponse, GetAnalyticsRulesError, TypesenseOpContext>;
|
|
2664
2424
|
export type GetAnalyticsStatusError = TypesenseOpError;
|
|
2665
2425
|
/** Get analytics subsystem status Returns sizes of internal analytics buffers and queues. */
|
|
2666
2426
|
export declare const getAnalyticsStatus: API.OperationMethod<GetAnalyticsStatusRequest, AnalyticsStatus, GetAnalyticsStatusError, TypesenseOpContext>;
|
|
2427
|
+
export type GetAPIStatsError = TypesenseOpError;
|
|
2428
|
+
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2429
|
+
export declare const getAPIStats: API.OperationMethod<GetAPIStatsRequest, APIStatsResponse, GetAPIStatsError, TypesenseOpContext>;
|
|
2667
2430
|
export type GetCollectionError = NotFound | TypesenseOpError;
|
|
2668
2431
|
/** Retrieve a single collection Retrieve the details of a collection, given its name. */
|
|
2669
2432
|
export declare const getCollection: API.OperationMethod<GetCollectionRequest, GetCollectionResponse, GetCollectionError, TypesenseOpContext>;
|
|
2670
2433
|
export type GetCollectionsError = TypesenseOpError;
|
|
2671
2434
|
/** List all collections Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first. */
|
|
2672
2435
|
export declare const getCollections: API.OperationMethod<GetCollectionsRequest, GetCollectionsResponse, GetCollectionsError, TypesenseOpContext>;
|
|
2436
|
+
export type GetConversationModelError = NotFound | TypesenseOpError;
|
|
2437
|
+
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2438
|
+
export declare const getConversationModel: API.OperationMethod<GetConversationModelRequest, GetConversationModelResponse, GetConversationModelError, TypesenseOpContext>;
|
|
2439
|
+
export type GetCurationSetError = NotFound | TypesenseOpError;
|
|
2440
|
+
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2441
|
+
export declare const getCurationSet: API.OperationMethod<GetCurationSetRequest, GetCurationSetResponse, GetCurationSetError, TypesenseOpContext>;
|
|
2442
|
+
export type GetCurationSetItemError = NotFound | TypesenseOpError;
|
|
2443
|
+
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2444
|
+
export declare const getCurationSetItem: API.OperationMethod<GetCurationSetItemRequest, GetCurationSetItemResponse, GetCurationSetItemError, TypesenseOpContext>;
|
|
2445
|
+
export type GetCurationSetItemsError = NotFound | TypesenseOpError;
|
|
2446
|
+
/** List items in a curation set Retrieve all curation items in a set */
|
|
2447
|
+
export declare const getCurationSetItems: API.OperationMethod<GetCurationSetItemsRequest, GetCurationSetItemsResponse, GetCurationSetItemsError, TypesenseOpContext>;
|
|
2448
|
+
export type GetCurationSetsError = TypesenseOpError;
|
|
2449
|
+
/** List all curation sets Retrieve all curation sets */
|
|
2450
|
+
export declare const getCurationSets: API.OperationMethod<GetCurationSetsRequest, GetCurationSetsResponse, GetCurationSetsError, TypesenseOpContext>;
|
|
2673
2451
|
export type GetDocumentError = NotFound | TypesenseOpError;
|
|
2674
2452
|
/** Retrieve a document Fetch an individual document from a collection by using its ID. */
|
|
2675
2453
|
export declare const getDocument: API.OperationMethod<GetDocumentRequest, GetDocumentResponse, GetDocumentError, TypesenseOpContext>;
|
|
@@ -2679,12 +2457,39 @@ export declare const getKey: API.OperationMethod<GetKeyRequest, GetKeyResponse,
|
|
|
2679
2457
|
export type GetKeysError = TypesenseOpError;
|
|
2680
2458
|
/** Retrieve (metadata about) all keys. */
|
|
2681
2459
|
export declare const getKeys: API.OperationMethod<GetKeysRequest, ApiKeysResponse, GetKeysError, TypesenseOpContext>;
|
|
2460
|
+
export type GetMetricsError = TypesenseOpError;
|
|
2461
|
+
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2462
|
+
export declare const getMetrics: API.OperationMethod<GetMetricsRequest, GetMetricsResponse, GetMetricsError, TypesenseOpContext>;
|
|
2463
|
+
export type GetNLSearchModelError = NotFound | TypesenseOpError;
|
|
2464
|
+
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2465
|
+
export declare const getNLSearchModel: API.OperationMethod<GetNLSearchModelRequest, GetNLSearchModelResponse, GetNLSearchModelError, TypesenseOpContext>;
|
|
2466
|
+
export type GetPresetError = NotFound | TypesenseOpError;
|
|
2467
|
+
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2468
|
+
export declare const getPreset: API.OperationMethod<GetPresetRequest, GetPresetResponse, GetPresetError, TypesenseOpContext>;
|
|
2682
2469
|
export type GetSchemaChangesError = TypesenseOpError;
|
|
2683
2470
|
/** Get the status of in-progress schema change operations Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response. */
|
|
2684
2471
|
export declare const getSchemaChanges: API.OperationMethod<GetSchemaChangesRequest, GetSchemaChangesResponse, GetSchemaChangesError, TypesenseOpContext>;
|
|
2685
2472
|
export type GetStemmingDictionaryError = NotFound | TypesenseOpError;
|
|
2686
2473
|
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2687
2474
|
export declare const getStemmingDictionary: API.OperationMethod<GetStemmingDictionaryRequest, StemmingDictionary, GetStemmingDictionaryError, TypesenseOpContext>;
|
|
2475
|
+
export type GetStopwordsSetError = NotFound | TypesenseOpError;
|
|
2476
|
+
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2477
|
+
export declare const getStopwordsSet: API.OperationMethod<GetStopwordsSetRequest, StopwordsSetRetrieveSchema, GetStopwordsSetError, TypesenseOpContext>;
|
|
2478
|
+
export type GetStopwordsSetsError = TypesenseOpError;
|
|
2479
|
+
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2480
|
+
export declare const getStopwordsSets: API.OperationMethod<GetStopwordsSetsRequest, StopwordsSetsRetrieveAllSchema, GetStopwordsSetsError, TypesenseOpContext>;
|
|
2481
|
+
export type GetSynonymSetError = NotFound | TypesenseOpError;
|
|
2482
|
+
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2483
|
+
export declare const getSynonymSet: API.OperationMethod<GetSynonymSetRequest, GetSynonymSetResponse, GetSynonymSetError, TypesenseOpContext>;
|
|
2484
|
+
export type GetSynonymSetItemError = NotFound | TypesenseOpError;
|
|
2485
|
+
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2486
|
+
export declare const getSynonymSetItem: API.OperationMethod<GetSynonymSetItemRequest, GetSynonymSetItemResponse, GetSynonymSetItemError, TypesenseOpContext>;
|
|
2487
|
+
export type GetSynonymSetItemsError = NotFound | TypesenseOpError;
|
|
2488
|
+
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2489
|
+
export declare const getSynonymSetItems: API.OperationMethod<GetSynonymSetItemsRequest, GetSynonymSetItemsResponse, GetSynonymSetItemsError, TypesenseOpContext>;
|
|
2490
|
+
export type GetSynonymSetsError = TypesenseOpError;
|
|
2491
|
+
/** List all synonym sets Retrieve all synonym sets */
|
|
2492
|
+
export declare const getSynonymSets: API.OperationMethod<GetSynonymSetsRequest, GetSynonymSetsResponse, GetSynonymSetsError, TypesenseOpContext>;
|
|
2688
2493
|
export type HealthError = TypesenseOpError;
|
|
2689
2494
|
/** Checks if Typesense server is ready to accept requests. Checks if Typesense server is ready to accept requests. */
|
|
2690
2495
|
export declare const health: API.OperationMethod<HealthRequest, HealthStatus, HealthError, TypesenseOpContext>;
|
|
@@ -2700,72 +2505,12 @@ export declare const indexDocument: API.OperationMethod<IndexDocumentRequest, In
|
|
|
2700
2505
|
export type ListStemmingDictionariesError = TypesenseOpError;
|
|
2701
2506
|
/** List all stemming dictionaries Retrieve a list of all available stemming dictionaries. */
|
|
2702
2507
|
export declare const listStemmingDictionaries: API.OperationMethod<ListStemmingDictionariesRequest, ListStemmingDictionariesResponse, ListStemmingDictionariesError, TypesenseOpContext>;
|
|
2703
|
-
export type MultiSearchError = BadRequest | TypesenseOpError;
|
|
2704
|
-
/** send multiple search requests in a single HTTP request This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request. */
|
|
2705
|
-
export declare const multiSearch: API.OperationMethod<MultiSearchRequest, MultiSearchResult, MultiSearchError, TypesenseOpContext>;
|
|
2706
|
-
export type RetrieveAllConversationModelsError = TypesenseOpError;
|
|
2707
|
-
/** List all conversation models Retrieve all conversation models */
|
|
2708
|
-
export declare const retrieveAllConversationModels: API.OperationMethod<RetrieveAllConversationModelsRequest, RetrieveAllConversationModelsResponse, RetrieveAllConversationModelsError, TypesenseOpContext>;
|
|
2709
|
-
export type RetrieveAllNLSearchModelsError = TypesenseOpError;
|
|
2710
|
-
/** List all NL search models Retrieve all NL search models. */
|
|
2711
|
-
export declare const retrieveAllNLSearchModels: API.OperationMethod<RetrieveAllNLSearchModelsRequest, RetrieveAllNLSearchModelsResponse, RetrieveAllNLSearchModelsError, TypesenseOpContext>;
|
|
2712
|
-
export type RetrieveAllPresetsError = TypesenseOpError;
|
|
2713
|
-
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2714
|
-
export declare const retrieveAllPresets: API.OperationMethod<RetrieveAllPresetsRequest, PresetsRetrieveSchema, RetrieveAllPresetsError, TypesenseOpContext>;
|
|
2715
|
-
export type RetrieveAnalyticsRuleError = NotFound | TypesenseOpError;
|
|
2716
|
-
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2717
|
-
export declare const retrieveAnalyticsRule: API.OperationMethod<RetrieveAnalyticsRuleRequest, RetrieveAnalyticsRuleResponse, RetrieveAnalyticsRuleError, TypesenseOpContext>;
|
|
2718
|
-
export type RetrieveAnalyticsRulesError = TypesenseOpError;
|
|
2719
|
-
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2720
|
-
export declare const retrieveAnalyticsRules: API.OperationMethod<RetrieveAnalyticsRulesRequest, RetrieveAnalyticsRulesResponse, RetrieveAnalyticsRulesError, TypesenseOpContext>;
|
|
2721
|
-
export type RetrieveAPIStatsError = TypesenseOpError;
|
|
2722
|
-
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2723
|
-
export declare const retrieveAPIStats: API.OperationMethod<RetrieveAPIStatsRequest, APIStatsResponse, RetrieveAPIStatsError, TypesenseOpContext>;
|
|
2724
|
-
export type RetrieveConversationModelError = NotFound | TypesenseOpError;
|
|
2725
|
-
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2726
|
-
export declare const retrieveConversationModel: API.OperationMethod<RetrieveConversationModelRequest, RetrieveConversationModelResponse, RetrieveConversationModelError, TypesenseOpContext>;
|
|
2727
|
-
export type RetrieveCurationSetError = NotFound | TypesenseOpError;
|
|
2728
|
-
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2729
|
-
export declare const retrieveCurationSet: API.OperationMethod<RetrieveCurationSetRequest, RetrieveCurationSetResponse, RetrieveCurationSetError, TypesenseOpContext>;
|
|
2730
|
-
export type RetrieveCurationSetItemError = NotFound | TypesenseOpError;
|
|
2731
|
-
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2732
|
-
export declare const retrieveCurationSetItem: API.OperationMethod<RetrieveCurationSetItemRequest, RetrieveCurationSetItemResponse, RetrieveCurationSetItemError, TypesenseOpContext>;
|
|
2733
|
-
export type RetrieveCurationSetItemsError = NotFound | TypesenseOpError;
|
|
2734
|
-
/** List items in a curation set Retrieve all curation items in a set */
|
|
2735
|
-
export declare const retrieveCurationSetItems: API.OperationMethod<RetrieveCurationSetItemsRequest, RetrieveCurationSetItemsResponse, RetrieveCurationSetItemsError, TypesenseOpContext>;
|
|
2736
|
-
export type RetrieveCurationSetsError = TypesenseOpError;
|
|
2737
|
-
/** List all curation sets Retrieve all curation sets */
|
|
2738
|
-
export declare const retrieveCurationSets: API.OperationMethod<RetrieveCurationSetsRequest, RetrieveCurationSetsResponse, RetrieveCurationSetsError, TypesenseOpContext>;
|
|
2739
|
-
export type RetrieveMetricsError = TypesenseOpError;
|
|
2740
|
-
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2741
|
-
export declare const retrieveMetrics: API.OperationMethod<RetrieveMetricsRequest, RetrieveMetricsResponse, RetrieveMetricsError, TypesenseOpContext>;
|
|
2742
|
-
export type RetrieveNLSearchModelError = NotFound | TypesenseOpError;
|
|
2743
|
-
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2744
|
-
export declare const retrieveNLSearchModel: API.OperationMethod<RetrieveNLSearchModelRequest, RetrieveNLSearchModelResponse, RetrieveNLSearchModelError, TypesenseOpContext>;
|
|
2745
|
-
export type RetrievePresetError = NotFound | TypesenseOpError;
|
|
2746
|
-
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2747
|
-
export declare const retrievePreset: API.OperationMethod<RetrievePresetRequest, RetrievePresetResponse, RetrievePresetError, TypesenseOpContext>;
|
|
2748
|
-
export type RetrieveStopwordsSetError = NotFound | TypesenseOpError;
|
|
2749
|
-
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2750
|
-
export declare const retrieveStopwordsSet: API.OperationMethod<RetrieveStopwordsSetRequest, StopwordsSetRetrieveSchema, RetrieveStopwordsSetError, TypesenseOpContext>;
|
|
2751
|
-
export type RetrieveStopwordsSetsError = TypesenseOpError;
|
|
2752
|
-
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2753
|
-
export declare const retrieveStopwordsSets: API.OperationMethod<RetrieveStopwordsSetsRequest, StopwordsSetsRetrieveAllSchema, RetrieveStopwordsSetsError, TypesenseOpContext>;
|
|
2754
|
-
export type RetrieveSynonymSetError = NotFound | TypesenseOpError;
|
|
2755
|
-
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2756
|
-
export declare const retrieveSynonymSet: API.OperationMethod<RetrieveSynonymSetRequest, RetrieveSynonymSetResponse, RetrieveSynonymSetError, TypesenseOpContext>;
|
|
2757
|
-
export type RetrieveSynonymSetItemError = NotFound | TypesenseOpError;
|
|
2758
|
-
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2759
|
-
export declare const retrieveSynonymSetItem: API.OperationMethod<RetrieveSynonymSetItemRequest, RetrieveSynonymSetItemResponse, RetrieveSynonymSetItemError, TypesenseOpContext>;
|
|
2760
|
-
export type RetrieveSynonymSetItemsError = NotFound | TypesenseOpError;
|
|
2761
|
-
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2762
|
-
export declare const retrieveSynonymSetItems: API.OperationMethod<RetrieveSynonymSetItemsRequest, RetrieveSynonymSetItemsResponse, RetrieveSynonymSetItemsError, TypesenseOpContext>;
|
|
2763
|
-
export type RetrieveSynonymSetsError = TypesenseOpError;
|
|
2764
|
-
/** List all synonym sets Retrieve all synonym sets */
|
|
2765
|
-
export declare const retrieveSynonymSets: API.OperationMethod<RetrieveSynonymSetsRequest, RetrieveSynonymSetsResponse, RetrieveSynonymSetsError, TypesenseOpContext>;
|
|
2766
2508
|
export type SearchCollectionError = BadRequest | NotFound | TypesenseOpError;
|
|
2767
2509
|
/** Search for documents in a collection Search for documents in a collection that match the search criteria. */
|
|
2768
2510
|
export declare const searchCollection: API.OperationMethod<SearchCollectionRequest, SearchResult, SearchCollectionError, TypesenseOpContext>;
|
|
2511
|
+
export type SearchMultiError = BadRequest | TypesenseOpError;
|
|
2512
|
+
/** send multiple search requests in a single HTTP request This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request. */
|
|
2513
|
+
export declare const searchMulti: API.OperationMethod<SearchMultiRequest, MultiSearchResult, SearchMultiError, TypesenseOpContext>;
|
|
2769
2514
|
export type TakeSnapshotError = TypesenseOpError;
|
|
2770
2515
|
/** Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed. */
|
|
2771
2516
|
export declare const takeSnapshot: API.OperationMethod<TakeSnapshotRequest, SuccessStatus, TakeSnapshotError, TypesenseOpContext>;
|