@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
@@ -69,59 +69,59 @@ export type UpsertCurationSetOutput = typeof UpsertCurationSetOutput.Type;
69
69
  */
70
70
  export declare const upsertCurationSet: import("@distilled.cloud/core/client").OperationMethod<{
71
71
  readonly curationSetName: string;
72
- readonly description?: string | undefined;
73
72
  readonly items: readonly {
74
- readonly effective_from_ts?: number | undefined;
75
- readonly effective_to_ts?: number | undefined;
76
- readonly excludes?: readonly {
77
- readonly id: string;
78
- }[] | undefined;
79
- readonly filter_by?: string | undefined;
80
- readonly filter_curated_hits?: boolean | undefined;
81
- readonly id?: string | undefined;
73
+ readonly rule: {
74
+ readonly tags?: readonly string[] | undefined;
75
+ readonly query?: string | undefined;
76
+ readonly match?: "contains" | "exact" | undefined;
77
+ readonly filter_by?: string | undefined;
78
+ };
82
79
  readonly includes?: readonly {
83
80
  readonly id: string;
84
81
  readonly position: number;
85
82
  }[] | undefined;
86
- readonly metadata?: unknown;
87
- readonly remove_matched_tokens?: boolean | undefined;
88
- readonly replace_query?: string | undefined;
89
- readonly rule: {
90
- readonly filter_by?: string | undefined;
91
- readonly match?: "contains" | "exact" | undefined;
92
- readonly query?: string | undefined;
93
- readonly tags?: readonly string[] | undefined;
94
- };
95
- readonly sort_by?: string | undefined;
96
- readonly stop_processing?: boolean | undefined;
97
- }[];
98
- }, {
99
- readonly description?: string | undefined;
100
- readonly items: readonly {
101
- readonly effective_from_ts?: number | undefined;
102
- readonly effective_to_ts?: number | undefined;
103
83
  readonly excludes?: readonly {
104
84
  readonly id: string;
105
85
  }[] | undefined;
106
86
  readonly filter_by?: string | undefined;
87
+ readonly remove_matched_tokens?: boolean | undefined;
88
+ readonly metadata?: unknown;
89
+ readonly sort_by?: string | undefined;
90
+ readonly replace_query?: string | undefined;
107
91
  readonly filter_curated_hits?: boolean | undefined;
92
+ readonly effective_from_ts?: number | undefined;
93
+ readonly effective_to_ts?: number | undefined;
94
+ readonly stop_processing?: boolean | undefined;
108
95
  readonly id?: string | undefined;
96
+ }[];
97
+ readonly description?: string | undefined;
98
+ }, {
99
+ readonly items: readonly {
100
+ readonly rule: {
101
+ readonly tags?: readonly string[] | undefined;
102
+ readonly query?: string | undefined;
103
+ readonly match?: "contains" | "exact" | undefined;
104
+ readonly filter_by?: string | undefined;
105
+ };
109
106
  readonly includes?: readonly {
110
107
  readonly id: string;
111
108
  readonly position: number;
112
109
  }[] | undefined;
113
- readonly metadata?: unknown;
110
+ readonly excludes?: readonly {
111
+ readonly id: string;
112
+ }[] | undefined;
113
+ readonly filter_by?: string | undefined;
114
114
  readonly remove_matched_tokens?: boolean | undefined;
115
- readonly replace_query?: string | undefined;
116
- readonly rule: {
117
- readonly filter_by?: string | undefined;
118
- readonly match?: "contains" | "exact" | undefined;
119
- readonly query?: string | undefined;
120
- readonly tags?: readonly string[] | undefined;
121
- };
115
+ readonly metadata?: unknown;
122
116
  readonly sort_by?: string | undefined;
117
+ readonly replace_query?: string | undefined;
118
+ readonly filter_curated_hits?: boolean | undefined;
119
+ readonly effective_from_ts?: number | undefined;
120
+ readonly effective_to_ts?: number | undefined;
123
121
  readonly stop_processing?: boolean | undefined;
122
+ readonly id?: string | undefined;
124
123
  }[];
124
+ readonly description?: string | undefined;
125
125
  readonly name: string;
126
126
  }, BadRequest, import("~/credentials.ts").Credentials>;
127
127
  //# sourceMappingURL=upsertCurationSet.d.ts.map
@@ -64,53 +64,53 @@ export type UpsertCurationSetItemOutput = typeof UpsertCurationSetItemOutput.Typ
64
64
  */
65
65
  export declare const upsertCurationSetItem: import("@distilled.cloud/core/client").OperationMethod<{
66
66
  readonly curationSetName: string;
67
- readonly effective_from_ts?: number | undefined;
68
- readonly effective_to_ts?: number | undefined;
67
+ readonly itemId: string;
68
+ readonly rule: {
69
+ readonly tags?: readonly string[] | undefined;
70
+ readonly query?: string | undefined;
71
+ readonly match?: "contains" | "exact" | undefined;
72
+ readonly filter_by?: string | undefined;
73
+ };
74
+ readonly includes?: readonly {
75
+ readonly id: string;
76
+ readonly position: number;
77
+ }[] | undefined;
69
78
  readonly excludes?: readonly {
70
79
  readonly id: string;
71
80
  }[] | undefined;
72
81
  readonly filter_by?: string | undefined;
82
+ readonly remove_matched_tokens?: boolean | undefined;
83
+ readonly metadata?: unknown;
84
+ readonly sort_by?: string | undefined;
85
+ readonly replace_query?: string | undefined;
73
86
  readonly filter_curated_hits?: boolean | undefined;
87
+ readonly effective_from_ts?: number | undefined;
88
+ readonly effective_to_ts?: number | undefined;
89
+ readonly stop_processing?: boolean | undefined;
74
90
  readonly id?: string | undefined;
91
+ }, {
92
+ readonly rule: {
93
+ readonly tags?: readonly string[] | undefined;
94
+ readonly query?: string | undefined;
95
+ readonly match?: "contains" | "exact" | undefined;
96
+ readonly filter_by?: string | undefined;
97
+ };
75
98
  readonly includes?: readonly {
76
99
  readonly id: string;
77
100
  readonly position: number;
78
101
  }[] | undefined;
79
- readonly itemId: string;
80
- readonly metadata?: unknown;
81
- readonly remove_matched_tokens?: boolean | undefined;
82
- readonly replace_query?: string | undefined;
83
- readonly rule: {
84
- readonly filter_by?: string | undefined;
85
- readonly match?: "contains" | "exact" | undefined;
86
- readonly query?: string | undefined;
87
- readonly tags?: readonly string[] | undefined;
88
- };
89
- readonly sort_by?: string | undefined;
90
- readonly stop_processing?: boolean | undefined;
91
- }, {
92
- readonly effective_from_ts?: number | undefined;
93
- readonly effective_to_ts?: number | undefined;
94
102
  readonly excludes?: readonly {
95
103
  readonly id: string;
96
104
  }[] | undefined;
97
105
  readonly filter_by?: string | undefined;
98
- readonly filter_curated_hits?: boolean | undefined;
99
- readonly id: string;
100
- readonly includes?: readonly {
101
- readonly id: string;
102
- readonly position: number;
103
- }[] | undefined;
104
- readonly metadata?: unknown;
105
106
  readonly remove_matched_tokens?: boolean | undefined;
106
- readonly replace_query?: string | undefined;
107
- readonly rule: {
108
- readonly filter_by?: string | undefined;
109
- readonly match?: "contains" | "exact" | undefined;
110
- readonly query?: string | undefined;
111
- readonly tags?: readonly string[] | undefined;
112
- };
107
+ readonly metadata?: unknown;
113
108
  readonly sort_by?: string | undefined;
109
+ readonly replace_query?: string | undefined;
110
+ readonly filter_curated_hits?: boolean | undefined;
111
+ readonly effective_from_ts?: number | undefined;
112
+ readonly effective_to_ts?: number | undefined;
114
113
  readonly stop_processing?: boolean | undefined;
114
+ readonly id: string;
115
115
  }, BadRequest, import("~/credentials.ts").Credentials>;
116
116
  //# sourceMappingURL=upsertCurationSetItem.d.ts.map
@@ -21,7 +21,7 @@ export declare const upsertPreset: import("@distilled.cloud/core/client").Operat
21
21
  readonly presetId: string;
22
22
  readonly value: unknown;
23
23
  }, {
24
- readonly name: string;
25
24
  readonly value: unknown;
25
+ readonly name: string;
26
26
  }, BadRequest, import("~/credentials.ts").Credentials>;
27
27
  //# sourceMappingURL=upsertPreset.d.ts.map
@@ -20,12 +20,12 @@ export type UpsertStopwordsSetOutput = typeof UpsertStopwordsSetOutput.Type;
20
20
  * @param setId - The ID of the stopwords set to upsert.
21
21
  */
22
22
  export declare const upsertStopwordsSet: import("@distilled.cloud/core/client").OperationMethod<{
23
- readonly locale?: string | undefined;
24
23
  readonly setId: string;
25
24
  readonly stopwords: readonly string[];
25
+ readonly locale?: string | undefined;
26
26
  }, {
27
27
  readonly id: string;
28
- readonly locale?: string | undefined;
29
28
  readonly stopwords: readonly string[];
29
+ readonly locale?: string | undefined;
30
30
  }, BadRequest, import("~/credentials.ts").Credentials>;
31
31
  //# sourceMappingURL=upsertStopwordsSet.d.ts.map
@@ -30,21 +30,21 @@ export type UpsertSynonymSetOutput = typeof UpsertSynonymSetOutput.Type;
30
30
  * @param synonymSetName - The name of the synonym set to create/update
31
31
  */
32
32
  export declare const upsertSynonymSet: import("@distilled.cloud/core/client").OperationMethod<{
33
+ readonly synonymSetName: string;
33
34
  readonly items: readonly {
34
35
  readonly id: string;
35
- readonly locale?: string | undefined;
36
+ readonly synonyms: readonly string[];
36
37
  readonly root?: string | undefined;
38
+ readonly locale?: string | undefined;
37
39
  readonly symbols_to_index?: readonly string[] | undefined;
38
- readonly synonyms: readonly string[];
39
40
  }[];
40
- readonly synonymSetName: string;
41
41
  }, {
42
42
  readonly items: readonly {
43
43
  readonly id: string;
44
- readonly locale?: string | undefined;
44
+ readonly synonyms: readonly string[];
45
45
  readonly root?: string | undefined;
46
+ readonly locale?: string | undefined;
46
47
  readonly symbols_to_index?: readonly string[] | undefined;
47
- readonly synonyms: readonly string[];
48
48
  }[];
49
49
  readonly name: string;
50
50
  }, BadRequest, import("~/credentials.ts").Credentials>;
@@ -26,17 +26,17 @@ export type UpsertSynonymSetItemOutput = typeof UpsertSynonymSetItemOutput.Type;
26
26
  * @param itemId - The id of the synonym item to upsert
27
27
  */
28
28
  export declare const upsertSynonymSetItem: import("@distilled.cloud/core/client").OperationMethod<{
29
+ readonly synonymSetName: string;
29
30
  readonly itemId: string;
30
- readonly locale?: string | undefined;
31
+ readonly synonyms: readonly string[];
31
32
  readonly root?: string | undefined;
33
+ readonly locale?: string | undefined;
32
34
  readonly symbols_to_index?: readonly string[] | undefined;
33
- readonly synonymSetName: string;
34
- readonly synonyms: readonly string[];
35
35
  }, {
36
36
  readonly id: string;
37
- readonly locale?: string | undefined;
37
+ readonly synonyms: readonly string[];
38
38
  readonly root?: string | undefined;
39
+ readonly locale?: string | undefined;
39
40
  readonly symbols_to_index?: readonly string[] | undefined;
40
- readonly synonyms: readonly string[];
41
41
  }, BadRequest, import("~/credentials.ts").Credentials>;
42
42
  //# sourceMappingURL=upsertSynonymSetItem.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/typesense",
3
- "version": "0.19.2",
3
+ "version": "0.20.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -73,7 +73,7 @@
73
73
  "specs:update": "git -C specs/typesense-api-spec fetch && git -C specs/typesense-api-spec checkout master && git -C specs/typesense-api-spec pull"
74
74
  },
75
75
  "dependencies": {
76
- "@distilled.cloud/core": "0.19.2"
76
+ "@distilled.cloud/core": "0.20.1"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@types/bun": "^1.3.0",
@@ -83,6 +83,6 @@
83
83
  "yaml": "^2.7.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "effect": ">=4.0.0-beta.60 || >=4.0.0"
86
+ "effect": ">=4.0.0-beta.66 || >=4.0.0"
87
87
  }
88
88
  }
@@ -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
  /**
9
9
  * Typesense has no fixed default base URL — users run their own server
@@ -28,7 +28,7 @@ const envConfig = EffectConfig.all({
28
28
 
29
29
  export const CredentialsFromEnv = Layer.effect(
30
30
  Credentials,
31
- envConfig.asEffect().pipe(
31
+ envConfig.pipe(
32
32
  Effect.mapError(
33
33
  () =>
34
34
  new ConfigError({