@distilled.cloud/typesense 0.19.2 → 0.20.1

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.
Files changed (53) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +2 -2
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/operations/createAnalyticsEvent.d.ts +4 -4
  6. package/lib/operations/createCollection.d.ts +58 -58
  7. package/lib/operations/createConversationModel.d.ts +4 -4
  8. package/lib/operations/createKey.d.ts +4 -4
  9. package/lib/operations/createNLSearchModel.d.ts +13 -13
  10. package/lib/operations/deleteAlias.d.ts +1 -1
  11. package/lib/operations/deleteAnalyticsRule.d.ts +6 -6
  12. package/lib/operations/deleteCollection.d.ts +30 -30
  13. package/lib/operations/deleteSynonymSetItem.d.ts +1 -1
  14. package/lib/operations/getAlias.d.ts +1 -1
  15. package/lib/operations/getAliases.d.ts +1 -1
  16. package/lib/operations/getAnalyticsEvents.d.ts +6 -6
  17. package/lib/operations/getAnalyticsStatus.d.ts +5 -5
  18. package/lib/operations/getCollection.d.ts +30 -30
  19. package/lib/operations/getCollections.d.ts +30 -30
  20. package/lib/operations/getKey.d.ts +2 -2
  21. package/lib/operations/getKeys.d.ts +2 -2
  22. package/lib/operations/getSchemaChanges.d.ts +1 -1
  23. package/lib/operations/getStemmingDictionary.d.ts +1 -1
  24. package/lib/operations/indexDocument.d.ts +1 -1
  25. package/lib/operations/multiSearch.d.ts +105 -105
  26. package/lib/operations/retrieveAllPresets.d.ts +1 -1
  27. package/lib/operations/retrieveAnalyticsRule.d.ts +6 -6
  28. package/lib/operations/retrieveAnalyticsRules.d.ts +6 -6
  29. package/lib/operations/retrieveCurationSet.d.ts +17 -17
  30. package/lib/operations/retrieveCurationSetItem.d.ts +16 -16
  31. package/lib/operations/retrieveCurationSetItems.d.ts +16 -16
  32. package/lib/operations/retrieveCurationSets.d.ts +17 -17
  33. package/lib/operations/retrievePreset.d.ts +1 -1
  34. package/lib/operations/retrieveStopwordsSet.d.ts +1 -1
  35. package/lib/operations/retrieveStopwordsSets.d.ts +1 -1
  36. package/lib/operations/retrieveSynonymSet.d.ts +2 -2
  37. package/lib/operations/retrieveSynonymSetItem.d.ts +3 -3
  38. package/lib/operations/retrieveSynonymSetItems.d.ts +2 -2
  39. package/lib/operations/retrieveSynonymSets.d.ts +2 -2
  40. package/lib/operations/searchCollection.d.ts +45 -45
  41. package/lib/operations/updateCollection.d.ts +44 -44
  42. package/lib/operations/updateConversationModel.d.ts +5 -5
  43. package/lib/operations/updateDocument.d.ts +1 -1
  44. package/lib/operations/upsertAlias.d.ts +1 -1
  45. package/lib/operations/upsertAnalyticsRule.d.ts +11 -11
  46. package/lib/operations/upsertCurationSet.d.ts +34 -34
  47. package/lib/operations/upsertCurationSetItem.d.ts +31 -31
  48. package/lib/operations/upsertPreset.d.ts +1 -1
  49. package/lib/operations/upsertStopwordsSet.d.ts +2 -2
  50. package/lib/operations/upsertSynonymSet.d.ts +5 -5
  51. package/lib/operations/upsertSynonymSetItem.d.ts +5 -5
  52. package/package.json +3 -3
  53. package/src/credentials.ts +2 -2
@@ -1,7 +1,7 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  import * as Context from "effect/Context";
2
3
  import * as Layer from "effect/Layer";
3
4
  import * as Redacted from "effect/Redacted";
4
- import { ConfigError } from "@distilled.cloud/core/errors";
5
5
  /**
6
6
  * Typesense has no fixed default base URL — users run their own server
7
7
  * (e.g. http://localhost:8108) or use Typesense Cloud (per-cluster URLs
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAOJ,eAAO,MAAM,kBAAkB,8CAe9B,CAAC"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAOJ,eAAO,MAAM,kBAAkB,8CAe9B,CAAC"}
@@ -1,9 +1,9 @@
1
+ import { ConfigError } from "@distilled.cloud/core/errors";
1
2
  import * as EffectConfig from "effect/Config";
2
3
  import * as Context from "effect/Context";
3
4
  import * as Effect from "effect/Effect";
4
5
  import * as Layer from "effect/Layer";
5
6
  import * as Redacted from "effect/Redacted";
6
- import { ConfigError } from "@distilled.cloud/core/errors";
7
7
  /**
8
8
  * Typesense has no fixed default base URL — users run their own server
9
9
  * (e.g. http://localhost:8108) or use Typesense Cloud (per-cluster URLs
@@ -16,7 +16,7 @@ const envConfig = EffectConfig.all({
16
16
  apiKey: EffectConfig.string("TYPESENSE_API_KEY"),
17
17
  apiBaseUrl: EffectConfig.string("TYPESENSE_API_URL"),
18
18
  });
19
- export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.asEffect().pipe(Effect.mapError(() => new ConfigError({
19
+ export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.pipe(Effect.mapError(() => new ConfigError({
20
20
  message: "TYPESENSE_API_KEY and TYPESENSE_API_URL environment variables are required",
21
21
  })), Effect.map(({ apiKey, apiBaseUrl }) => ({
22
22
  apiKey: Redacted.make(apiKey),
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAOvC,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,sBAAsB,CACvB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAChD,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,CACvB,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EACL,4EAA4E;CAC/E,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU;CACX,CAAC,CAAC,CACJ,CACF,CAAC"}
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAOvC,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,sBAAsB,CACvB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;IAChD,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,mBAAmB,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EACL,4EAA4E;CAC/E,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU;CACX,CAAC,CAAC,CACJ,CACF,CAAC"}
@@ -22,15 +22,15 @@ export type CreateAnalyticsEventOutput = typeof CreateAnalyticsEventOutput.Type;
22
22
  * Submit a single analytics event. The event must correspond to an existing analytics rule by name.
23
23
  */
24
24
  export declare const createAnalyticsEvent: import("@distilled.cloud/core/client").OperationMethod<{
25
+ readonly name: string;
26
+ readonly event_type: string;
25
27
  readonly data: {
26
- readonly analytics_tag?: string | undefined;
28
+ readonly user_id?: string | undefined;
27
29
  readonly doc_id?: string | undefined;
28
30
  readonly doc_ids?: readonly string[] | undefined;
29
31
  readonly q?: string | undefined;
30
- readonly user_id?: string | undefined;
32
+ readonly analytics_tag?: string | undefined;
31
33
  };
32
- readonly event_type: string;
33
- readonly name: string;
34
34
  }, {
35
35
  readonly ok: boolean;
36
36
  }, BadRequest, import("~/credentials.ts").Credentials>;
@@ -106,100 +106,100 @@ export type CreateCollectionOutput = typeof CreateCollectionOutput.Type;
106
106
  * When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection.
107
107
  */
108
108
  export declare const createCollection: import("@distilled.cloud/core/client").OperationMethod<{
109
- readonly default_sorting_field?: string | undefined;
110
- readonly enable_nested_fields?: boolean | undefined;
109
+ readonly name: string;
111
110
  readonly fields: readonly {
111
+ readonly name: string;
112
+ readonly type: string;
113
+ readonly optional?: boolean | undefined;
114
+ readonly facet?: boolean | undefined;
115
+ readonly index?: boolean | undefined;
116
+ readonly locale?: string | undefined;
117
+ readonly sort?: boolean | undefined;
118
+ readonly infix?: boolean | undefined;
119
+ readonly reference?: string | undefined;
112
120
  readonly async_reference?: boolean | undefined;
121
+ readonly num_dim?: number | undefined;
113
122
  readonly drop?: boolean | undefined;
123
+ readonly store?: boolean | undefined;
124
+ readonly vec_dist?: string | undefined;
125
+ readonly range_index?: boolean | undefined;
126
+ readonly stem?: boolean | undefined;
127
+ readonly stem_dictionary?: string | undefined;
128
+ readonly token_separators?: readonly string[] | undefined;
129
+ readonly symbols_to_index?: readonly string[] | undefined;
114
130
  readonly embed?: {
115
131
  readonly from: readonly string[];
116
132
  readonly model_config: {
117
- readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
133
+ readonly model_name: string;
118
134
  readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
135
+ readonly url?: string | undefined;
136
+ readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
137
+ readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
119
138
  readonly client_id?: string | undefined;
120
139
  readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
121
- readonly indexing_prefix?: string | undefined;
122
- readonly model_name: string;
123
140
  readonly project_id?: string | undefined;
141
+ readonly indexing_prefix?: string | undefined;
124
142
  readonly query_prefix?: string | undefined;
125
- readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
126
- readonly url?: string | undefined;
127
143
  };
128
144
  } | undefined;
129
- readonly facet?: boolean | undefined;
130
- readonly index?: boolean | undefined;
131
- readonly infix?: boolean | undefined;
132
- readonly locale?: string | undefined;
133
- readonly name: string;
134
- readonly num_dim?: number | undefined;
135
- readonly optional?: boolean | undefined;
136
- readonly range_index?: boolean | undefined;
137
- readonly reference?: string | undefined;
138
- readonly sort?: boolean | undefined;
139
- readonly stem?: boolean | undefined;
140
- readonly stem_dictionary?: string | undefined;
141
- readonly store?: boolean | undefined;
142
- readonly symbols_to_index?: readonly string[] | undefined;
143
- readonly token_separators?: readonly string[] | undefined;
144
- readonly type: string;
145
- readonly vec_dist?: string | undefined;
146
145
  }[];
147
- readonly metadata?: unknown;
148
- readonly name: string;
149
- readonly symbols_to_index?: readonly string[] | undefined;
150
- readonly synonym_sets?: readonly string[] | undefined;
146
+ readonly default_sorting_field?: string | undefined;
151
147
  readonly token_separators?: readonly string[] | undefined;
148
+ readonly synonym_sets?: readonly string[] | undefined;
149
+ readonly enable_nested_fields?: boolean | undefined;
150
+ readonly symbols_to_index?: readonly string[] | undefined;
152
151
  readonly voice_query_model?: {
153
152
  readonly model_name?: string | undefined;
154
153
  } | undefined;
154
+ readonly metadata?: unknown;
155
155
  }, {
156
- readonly created_at: number;
157
- readonly default_sorting_field?: string | undefined;
158
- readonly enable_nested_fields?: boolean | undefined;
156
+ readonly name: string;
159
157
  readonly fields: readonly {
158
+ readonly name: string;
159
+ readonly type: string;
160
+ readonly optional?: boolean | undefined;
161
+ readonly facet?: boolean | undefined;
162
+ readonly index?: boolean | undefined;
163
+ readonly locale?: string | undefined;
164
+ readonly sort?: boolean | undefined;
165
+ readonly infix?: boolean | undefined;
166
+ readonly reference?: string | undefined;
160
167
  readonly async_reference?: boolean | undefined;
168
+ readonly num_dim?: number | undefined;
161
169
  readonly drop?: boolean | undefined;
170
+ readonly store?: boolean | undefined;
171
+ readonly vec_dist?: string | undefined;
172
+ readonly range_index?: boolean | undefined;
173
+ readonly stem?: boolean | undefined;
174
+ readonly stem_dictionary?: string | undefined;
175
+ readonly token_separators?: readonly string[] | undefined;
176
+ readonly symbols_to_index?: readonly string[] | undefined;
162
177
  readonly embed?: {
163
178
  readonly from: readonly string[];
164
179
  readonly model_config: {
165
- readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
180
+ readonly model_name: string;
166
181
  readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
182
+ readonly url?: string | undefined;
183
+ readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
184
+ readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
167
185
  readonly client_id?: string | undefined;
168
186
  readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
169
- readonly indexing_prefix?: string | undefined;
170
- readonly model_name: string;
171
187
  readonly project_id?: string | undefined;
188
+ readonly indexing_prefix?: string | undefined;
172
189
  readonly query_prefix?: string | undefined;
173
- readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
174
- readonly url?: string | undefined;
175
190
  };
176
191
  } | undefined;
177
- readonly facet?: boolean | undefined;
178
- readonly index?: boolean | undefined;
179
- readonly infix?: boolean | undefined;
180
- readonly locale?: string | undefined;
181
- readonly name: string;
182
- readonly num_dim?: number | undefined;
183
- readonly optional?: boolean | undefined;
184
- readonly range_index?: boolean | undefined;
185
- readonly reference?: string | undefined;
186
- readonly sort?: boolean | undefined;
187
- readonly stem?: boolean | undefined;
188
- readonly stem_dictionary?: string | undefined;
189
- readonly store?: boolean | undefined;
190
- readonly symbols_to_index?: readonly string[] | undefined;
191
- readonly token_separators?: readonly string[] | undefined;
192
- readonly type: string;
193
- readonly vec_dist?: string | undefined;
194
192
  }[];
195
- readonly metadata?: unknown;
196
- readonly name: string;
197
- readonly num_documents: number;
198
- readonly symbols_to_index?: readonly string[] | undefined;
199
- readonly synonym_sets?: readonly string[] | undefined;
193
+ readonly default_sorting_field?: string | undefined;
200
194
  readonly token_separators?: readonly string[] | undefined;
195
+ readonly synonym_sets?: readonly string[] | undefined;
196
+ readonly enable_nested_fields?: boolean | undefined;
197
+ readonly symbols_to_index?: readonly string[] | undefined;
201
198
  readonly voice_query_model?: {
202
199
  readonly model_name?: string | undefined;
203
200
  } | undefined;
201
+ readonly metadata?: unknown;
202
+ readonly num_documents: number;
203
+ readonly created_at: number;
204
204
  }, BadRequest | Conflict, import("~/credentials.ts").Credentials>;
205
205
  //# sourceMappingURL=createCollection.d.ts.map
@@ -22,14 +22,14 @@ export type CreateConversationModelOutput = typeof CreateConversationModelOutput
22
22
  * Create a Conversation Model
23
23
  */
24
24
  export declare const createConversationModel: import("@distilled.cloud/core/client").OperationMethod<{
25
- readonly account_id?: string | undefined;
26
- readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
27
- readonly history_collection: string;
28
25
  readonly id?: string | undefined;
29
- readonly max_bytes: number;
30
26
  readonly model_name: string;
27
+ readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
28
+ readonly history_collection: string;
29
+ readonly account_id?: string | undefined;
31
30
  readonly system_prompt?: string | undefined;
32
31
  readonly ttl?: number | undefined;
32
+ readonly max_bytes: number;
33
33
  readonly vllm_url?: string | undefined;
34
34
  }, {
35
35
  readonly id: string;
@@ -24,18 +24,18 @@ export type CreateKeyOutput = typeof CreateKeyOutput.Type;
24
24
  * Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place.
25
25
  */
26
26
  export declare const createKey: import("@distilled.cloud/core/client").OperationMethod<{
27
+ readonly value?: string | undefined;
28
+ readonly description: string;
27
29
  readonly actions: readonly string[];
28
30
  readonly collections: readonly string[];
29
- readonly description: string;
30
31
  readonly expires_at?: number | undefined;
31
- readonly value?: string | undefined;
32
32
  }, {
33
+ readonly value?: string | undefined;
34
+ readonly description: string;
33
35
  readonly actions: readonly string[];
34
36
  readonly collections: readonly string[];
35
- readonly description: string;
36
37
  readonly expires_at?: number | undefined;
37
38
  readonly id?: number | undefined;
38
- readonly value?: string | undefined;
39
39
  readonly value_prefix?: string | undefined;
40
40
  }, BadRequest | Conflict, import("~/credentials.ts").Credentials>;
41
41
  //# sourceMappingURL=createKey.d.ts.map
@@ -32,25 +32,25 @@ export type CreateNLSearchModelOutput = typeof CreateNLSearchModelOutput.Type;
32
32
  * Create a new NL search model.
33
33
  */
34
34
  export declare const createNLSearchModel: import("@distilled.cloud/core/client").OperationMethod<{
35
- readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
36
- readonly account_id?: string | undefined;
35
+ readonly model_name?: string | undefined;
37
36
  readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
38
37
  readonly api_url?: string | undefined;
39
- readonly api_version?: string | undefined;
40
- readonly client_id?: string | undefined;
41
- readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
42
- readonly id?: string | undefined;
43
38
  readonly max_bytes?: number | undefined;
44
- readonly max_output_tokens?: number | undefined;
45
- readonly model_name?: string | undefined;
39
+ readonly temperature?: number | undefined;
40
+ readonly system_prompt?: string | undefined;
41
+ readonly top_p?: number | undefined;
42
+ readonly top_k?: number | undefined;
43
+ readonly stop_sequences?: readonly string[] | undefined;
44
+ readonly api_version?: string | undefined;
46
45
  readonly project_id?: string | undefined;
46
+ readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
47
47
  readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
48
+ readonly client_id?: string | undefined;
49
+ readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
48
50
  readonly region?: string | undefined;
49
- readonly stop_sequences?: readonly string[] | undefined;
50
- readonly system_prompt?: string | undefined;
51
- readonly temperature?: number | undefined;
52
- readonly top_k?: number | undefined;
53
- readonly top_p?: number | undefined;
51
+ readonly max_output_tokens?: number | undefined;
52
+ readonly account_id?: string | undefined;
53
+ readonly id?: string | undefined;
54
54
  }, {
55
55
  readonly id: string;
56
56
  }, BadRequest, import("~/credentials.ts").Credentials>;
@@ -17,7 +17,7 @@ export type DeleteAliasOutput = typeof DeleteAliasOutput.Type;
17
17
  export declare const deleteAlias: import("@distilled.cloud/core/client").OperationMethod<{
18
18
  readonly aliasName: string;
19
19
  }, {
20
- readonly collection_name: string;
21
20
  readonly name: string;
21
+ readonly collection_name: string;
22
22
  }, NotFound, import("~/credentials.ts").Credentials>;
23
23
  //# sourceMappingURL=deleteAlias.d.ts.map
@@ -31,19 +31,19 @@ export type DeleteAnalyticsRuleOutput = typeof DeleteAnalyticsRuleOutput.Type;
31
31
  export declare const deleteAnalyticsRule: import("@distilled.cloud/core/client").OperationMethod<{
32
32
  readonly ruleName: string;
33
33
  }, {
34
+ readonly name: string;
35
+ readonly type: "counter" | "log" | "nohits_queries" | "popular_queries";
34
36
  readonly collection: string;
35
37
  readonly event_type: string;
36
- readonly name: string;
38
+ readonly rule_tag?: string | undefined;
37
39
  readonly params?: {
38
- readonly capture_search_requests?: boolean | undefined;
39
- readonly counter_field?: string | undefined;
40
40
  readonly destination_collection?: string | undefined;
41
- readonly expand_query?: boolean | undefined;
42
41
  readonly limit?: number | undefined;
42
+ readonly capture_search_requests?: boolean | undefined;
43
43
  readonly meta_fields?: readonly string[] | undefined;
44
+ readonly expand_query?: boolean | undefined;
45
+ readonly counter_field?: string | undefined;
44
46
  readonly weight?: number | undefined;
45
47
  } | undefined;
46
- readonly rule_tag?: string | undefined;
47
- readonly type: "counter" | "log" | "nohits_queries" | "popular_queries";
48
48
  }, NotFound, import("~/credentials.ts").Credentials>;
49
49
  //# sourceMappingURL=deleteAnalyticsRule.d.ts.map
@@ -65,53 +65,53 @@ export type DeleteCollectionOutput = typeof DeleteCollectionOutput.Type;
65
65
  export declare const deleteCollection: import("@distilled.cloud/core/client").OperationMethod<{
66
66
  readonly collectionName: string;
67
67
  }, {
68
- readonly created_at: number;
69
- readonly default_sorting_field?: string | undefined;
70
- readonly enable_nested_fields?: boolean | undefined;
68
+ readonly name: string;
71
69
  readonly fields: readonly {
70
+ readonly name: string;
71
+ readonly type: string;
72
+ readonly optional?: boolean | undefined;
73
+ readonly facet?: boolean | undefined;
74
+ readonly index?: boolean | undefined;
75
+ readonly locale?: string | undefined;
76
+ readonly sort?: boolean | undefined;
77
+ readonly infix?: boolean | undefined;
78
+ readonly reference?: string | undefined;
72
79
  readonly async_reference?: boolean | undefined;
80
+ readonly num_dim?: number | undefined;
73
81
  readonly drop?: boolean | undefined;
82
+ readonly store?: boolean | undefined;
83
+ readonly vec_dist?: string | undefined;
84
+ readonly range_index?: boolean | undefined;
85
+ readonly stem?: boolean | undefined;
86
+ readonly stem_dictionary?: string | undefined;
87
+ readonly token_separators?: readonly string[] | undefined;
88
+ readonly symbols_to_index?: readonly string[] | undefined;
74
89
  readonly embed?: {
75
90
  readonly from: readonly string[];
76
91
  readonly model_config: {
77
- readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
92
+ readonly model_name: string;
78
93
  readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
94
+ readonly url?: string | undefined;
95
+ readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
96
+ readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
79
97
  readonly client_id?: string | undefined;
80
98
  readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
81
- readonly indexing_prefix?: string | undefined;
82
- readonly model_name: string;
83
99
  readonly project_id?: string | undefined;
100
+ readonly indexing_prefix?: string | undefined;
84
101
  readonly query_prefix?: string | undefined;
85
- readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
86
- readonly url?: string | undefined;
87
102
  };
88
103
  } | undefined;
89
- readonly facet?: boolean | undefined;
90
- readonly index?: boolean | undefined;
91
- readonly infix?: boolean | undefined;
92
- readonly locale?: string | undefined;
93
- readonly name: string;
94
- readonly num_dim?: number | undefined;
95
- readonly optional?: boolean | undefined;
96
- readonly range_index?: boolean | undefined;
97
- readonly reference?: string | undefined;
98
- readonly sort?: boolean | undefined;
99
- readonly stem?: boolean | undefined;
100
- readonly stem_dictionary?: string | undefined;
101
- readonly store?: boolean | undefined;
102
- readonly symbols_to_index?: readonly string[] | undefined;
103
- readonly token_separators?: readonly string[] | undefined;
104
- readonly type: string;
105
- readonly vec_dist?: string | undefined;
106
104
  }[];
107
- readonly metadata?: unknown;
108
- readonly name: string;
109
- readonly num_documents: number;
110
- readonly symbols_to_index?: readonly string[] | undefined;
111
- readonly synonym_sets?: readonly string[] | undefined;
105
+ readonly default_sorting_field?: string | undefined;
112
106
  readonly token_separators?: readonly string[] | undefined;
107
+ readonly synonym_sets?: readonly string[] | undefined;
108
+ readonly enable_nested_fields?: boolean | undefined;
109
+ readonly symbols_to_index?: readonly string[] | undefined;
113
110
  readonly voice_query_model?: {
114
111
  readonly model_name?: string | undefined;
115
112
  } | undefined;
113
+ readonly metadata?: unknown;
114
+ readonly num_documents: number;
115
+ readonly created_at: number;
116
116
  }, NotFound, import("~/credentials.ts").Credentials>;
117
117
  //# sourceMappingURL=deleteCollection.d.ts.map
@@ -18,8 +18,8 @@ export type DeleteSynonymSetItemOutput = typeof DeleteSynonymSetItemOutput.Type;
18
18
  * @param itemId - The id of the synonym item to delete
19
19
  */
20
20
  export declare const deleteSynonymSetItem: import("@distilled.cloud/core/client").OperationMethod<{
21
- readonly itemId: string;
22
21
  readonly synonymSetName: string;
22
+ readonly itemId: string;
23
23
  }, {
24
24
  readonly id: string;
25
25
  }, NotFound, import("~/credentials.ts").Credentials>;
@@ -19,7 +19,7 @@ export type GetAliasOutput = typeof GetAliasOutput.Type;
19
19
  export declare const getAlias: import("@distilled.cloud/core/client").OperationMethod<{
20
20
  readonly aliasName: string;
21
21
  }, {
22
- readonly collection_name: string;
23
22
  readonly name: string;
23
+ readonly collection_name: string;
24
24
  }, NotFound, import("~/credentials.ts").Credentials>;
25
25
  //# sourceMappingURL=getAlias.d.ts.map
@@ -15,8 +15,8 @@ export type GetAliasesOutput = typeof GetAliasesOutput.Type;
15
15
  */
16
16
  export declare const getAliases: import("@distilled.cloud/core/client").OperationMethod<{}, {
17
17
  readonly aliases: readonly {
18
- readonly collection_name: string;
19
18
  readonly name: string;
19
+ readonly collection_name: string;
20
20
  }[];
21
21
  }, never, import("~/credentials.ts").Credentials>;
22
22
  //# sourceMappingURL=getAliases.d.ts.map
@@ -28,19 +28,19 @@ export type GetAnalyticsEventsOutput = typeof GetAnalyticsEventsOutput.Type;
28
28
  * @param n - Number of events to return (max 1000)
29
29
  */
30
30
  export declare const getAnalyticsEvents: import("@distilled.cloud/core/client").OperationMethod<{
31
- readonly n: number;
32
- readonly name: string;
33
31
  readonly user_id: string;
32
+ readonly name: string;
33
+ readonly n: number;
34
34
  }, {
35
35
  readonly events: readonly {
36
+ readonly name?: string | undefined;
37
+ readonly event_type?: string | undefined;
36
38
  readonly collection?: string | undefined;
39
+ readonly timestamp?: number | undefined;
40
+ readonly user_id?: string | undefined;
37
41
  readonly doc_id?: string | undefined;
38
42
  readonly doc_ids?: readonly string[] | undefined;
39
- readonly event_type?: string | undefined;
40
- readonly name?: string | undefined;
41
43
  readonly query?: string | undefined;
42
- readonly timestamp?: number | undefined;
43
- readonly user_id?: string | undefined;
44
44
  }[];
45
45
  }, BadRequest, import("~/credentials.ts").Credentials>;
46
46
  //# sourceMappingURL=getAnalyticsEvents.d.ts.map
@@ -17,12 +17,12 @@ export type GetAnalyticsStatusOutput = typeof GetAnalyticsStatusOutput.Type;
17
17
  * Returns sizes of internal analytics buffers and queues.
18
18
  */
19
19
  export declare const getAnalyticsStatus: import("@distilled.cloud/core/client").OperationMethod<{}, {
20
- readonly doc_counter_events?: number | undefined;
21
- readonly doc_log_events?: number | undefined;
22
- readonly log_prefix_queries?: number | undefined;
23
- readonly nohits_prefix_queries?: number | undefined;
24
20
  readonly popular_prefix_queries?: number | undefined;
25
- readonly query_counter_events?: number | undefined;
21
+ readonly nohits_prefix_queries?: number | undefined;
22
+ readonly log_prefix_queries?: number | undefined;
26
23
  readonly query_log_events?: number | undefined;
24
+ readonly query_counter_events?: number | undefined;
25
+ readonly doc_log_events?: number | undefined;
26
+ readonly doc_counter_events?: number | undefined;
27
27
  }, never, import("~/credentials.ts").Credentials>;
28
28
  //# sourceMappingURL=getAnalyticsStatus.d.ts.map
@@ -65,53 +65,53 @@ export type GetCollectionOutput = typeof GetCollectionOutput.Type;
65
65
  export declare const getCollection: import("@distilled.cloud/core/client").OperationMethod<{
66
66
  readonly collectionName: string;
67
67
  }, {
68
- readonly created_at: number;
69
- readonly default_sorting_field?: string | undefined;
70
- readonly enable_nested_fields?: boolean | undefined;
68
+ readonly name: string;
71
69
  readonly fields: readonly {
70
+ readonly name: string;
71
+ readonly type: string;
72
+ readonly optional?: boolean | undefined;
73
+ readonly facet?: boolean | undefined;
74
+ readonly index?: boolean | undefined;
75
+ readonly locale?: string | undefined;
76
+ readonly sort?: boolean | undefined;
77
+ readonly infix?: boolean | undefined;
78
+ readonly reference?: string | undefined;
72
79
  readonly async_reference?: boolean | undefined;
80
+ readonly num_dim?: number | undefined;
73
81
  readonly drop?: boolean | undefined;
82
+ readonly store?: boolean | undefined;
83
+ readonly vec_dist?: string | undefined;
84
+ readonly range_index?: boolean | undefined;
85
+ readonly stem?: boolean | undefined;
86
+ readonly stem_dictionary?: string | undefined;
87
+ readonly token_separators?: readonly string[] | undefined;
88
+ readonly symbols_to_index?: readonly string[] | undefined;
74
89
  readonly embed?: {
75
90
  readonly from: readonly string[];
76
91
  readonly model_config: {
77
- readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
92
+ readonly model_name: string;
78
93
  readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
94
+ readonly url?: string | undefined;
95
+ readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
96
+ readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
79
97
  readonly client_id?: string | undefined;
80
98
  readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
81
- readonly indexing_prefix?: string | undefined;
82
- readonly model_name: string;
83
99
  readonly project_id?: string | undefined;
100
+ readonly indexing_prefix?: string | undefined;
84
101
  readonly query_prefix?: string | undefined;
85
- readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
86
- readonly url?: string | undefined;
87
102
  };
88
103
  } | undefined;
89
- readonly facet?: boolean | undefined;
90
- readonly index?: boolean | undefined;
91
- readonly infix?: boolean | undefined;
92
- readonly locale?: string | undefined;
93
- readonly name: string;
94
- readonly num_dim?: number | undefined;
95
- readonly optional?: boolean | undefined;
96
- readonly range_index?: boolean | undefined;
97
- readonly reference?: string | undefined;
98
- readonly sort?: boolean | undefined;
99
- readonly stem?: boolean | undefined;
100
- readonly stem_dictionary?: string | undefined;
101
- readonly store?: boolean | undefined;
102
- readonly symbols_to_index?: readonly string[] | undefined;
103
- readonly token_separators?: readonly string[] | undefined;
104
- readonly type: string;
105
- readonly vec_dist?: string | undefined;
106
104
  }[];
107
- readonly metadata?: unknown;
108
- readonly name: string;
109
- readonly num_documents: number;
110
- readonly symbols_to_index?: readonly string[] | undefined;
111
- readonly synonym_sets?: readonly string[] | undefined;
105
+ readonly default_sorting_field?: string | undefined;
112
106
  readonly token_separators?: readonly string[] | undefined;
107
+ readonly synonym_sets?: readonly string[] | undefined;
108
+ readonly enable_nested_fields?: boolean | undefined;
109
+ readonly symbols_to_index?: readonly string[] | undefined;
113
110
  readonly voice_query_model?: {
114
111
  readonly model_name?: string | undefined;
115
112
  } | undefined;
113
+ readonly metadata?: unknown;
114
+ readonly num_documents: number;
115
+ readonly created_at: number;
116
116
  }, NotFound, import("~/credentials.ts").Credentials>;
117
117
  //# sourceMappingURL=getCollection.d.ts.map