@valkey/valkey-glide-darwin-x64 1.3.4 → 255.255.255

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 (45) hide show
  1. package/package.json +31 -95
  2. package/README.md +0 -106
  3. package/build-ts/index.d.ts +0 -14
  4. package/build-ts/index.js +0 -34
  5. package/build-ts/index.js.map +0 -1
  6. package/build-ts/src/BaseClient.d.ts +0 -5254
  7. package/build-ts/src/BaseClient.js +0 -6391
  8. package/build-ts/src/BaseClient.js.map +0 -1
  9. package/build-ts/src/Commands.d.ts +0 -1034
  10. package/build-ts/src/Commands.js +0 -2710
  11. package/build-ts/src/Commands.js.map +0 -1
  12. package/build-ts/src/Errors.d.ts +0 -21
  13. package/build-ts/src/Errors.js +0 -43
  14. package/build-ts/src/Errors.js.map +0 -1
  15. package/build-ts/src/GlideClient.d.ts +0 -832
  16. package/build-ts/src/GlideClient.js +0 -940
  17. package/build-ts/src/GlideClient.js.map +0 -1
  18. package/build-ts/src/GlideClusterClient.d.ts +0 -1323
  19. package/build-ts/src/GlideClusterClient.js +0 -1276
  20. package/build-ts/src/GlideClusterClient.js.map +0 -1
  21. package/build-ts/src/Logger.d.ts +0 -32
  22. package/build-ts/src/Logger.js +0 -68
  23. package/build-ts/src/Logger.js.map +0 -1
  24. package/build-ts/src/ProtobufMessage.d.ts +0 -2889
  25. package/build-ts/src/ProtobufMessage.js +0 -8785
  26. package/build-ts/src/ProtobufMessage.js.map +0 -1
  27. package/build-ts/src/Transaction.d.ts +0 -2963
  28. package/build-ts/src/Transaction.js +0 -3388
  29. package/build-ts/src/Transaction.js.map +0 -1
  30. package/build-ts/src/server-modules/GlideFt.d.ts +0 -412
  31. package/build-ts/src/server-modules/GlideFt.js +0 -664
  32. package/build-ts/src/server-modules/GlideFt.js.map +0 -1
  33. package/build-ts/src/server-modules/GlideFtOptions.d.ts +0 -244
  34. package/build-ts/src/server-modules/GlideFtOptions.js +0 -6
  35. package/build-ts/src/server-modules/GlideFtOptions.js.map +0 -1
  36. package/build-ts/src/server-modules/GlideJson.d.ts +0 -1335
  37. package/build-ts/src/server-modules/GlideJson.js +0 -1628
  38. package/build-ts/src/server-modules/GlideJson.js.map +0 -1
  39. package/index.ts +0 -15
  40. package/node_modules/glide-rs/glide-rs.darwin-x64.node +0 -0
  41. package/node_modules/glide-rs/index.d.ts +0 -71
  42. package/node_modules/glide-rs/index.js +0 -317
  43. package/node_modules/glide-rs/package.json +0 -65
  44. package/npm/glide/index.ts +0 -391
  45. package/npm/glide/package.json +0 -67
@@ -1,244 +0,0 @@
1
- /**
2
- * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
3
- */
4
- import { GlideRecord, GlideString } from "../BaseClient";
5
- import { SortOrder } from "../Commands";
6
- interface BaseField {
7
- /** The name of the field. */
8
- name: GlideString;
9
- /** An alias for field. */
10
- alias?: GlideString;
11
- }
12
- /**
13
- * Field contains any blob of data.
14
- */
15
- export type TextField = BaseField & {
16
- /** Field identifier */
17
- type: "TEXT";
18
- };
19
- /**
20
- * Tag fields are similar to full-text fields, but they interpret the text as a simple list of
21
- * tags delimited by a separator character.
22
- *
23
- * For HASH fields, separator default is a comma (`,`). For JSON fields, there is no default
24
- * separator; you must declare one explicitly if needed.
25
- */
26
- export type TagField = BaseField & {
27
- /** Field identifier */
28
- type: "TAG";
29
- /** Specify how text in the attribute is split into individual tags. Must be a single character. */
30
- separator?: GlideString;
31
- /** Preserve the original letter cases of tags. If set to `false`, characters are converted to lowercase by default. */
32
- caseSensitive?: boolean;
33
- };
34
- /**
35
- * Field contains a number.
36
- */
37
- export type NumericField = BaseField & {
38
- /** Field identifier */
39
- type: "NUMERIC";
40
- };
41
- /**
42
- * Superclass for vector field implementations, contains common logic.
43
- */
44
- export type VectorField = BaseField & {
45
- /** Field identifier */
46
- type: "VECTOR";
47
- /** Additional attributes to be passed with the vector field after the algorithm name. */
48
- attributes: VectorFieldAttributesFlat | VectorFieldAttributesHnsw;
49
- };
50
- /**
51
- * Base class for defining vector field attributes to be used after the vector algorithm name.
52
- */
53
- export interface VectorFieldAttributes {
54
- /** Number of dimensions in the vector. Equivalent to `DIM` in the module API. */
55
- dimensions: number;
56
- /**
57
- * The distance metric used in vector type field. Can be one of `[L2 | IP | COSINE]`. Equivalent to `DISTANCE_METRIC` in the module API.
58
- */
59
- distanceMetric: "L2" | "IP" | "COSINE";
60
- /** Vector type. The only supported type is FLOAT32. */
61
- type?: "FLOAT32";
62
- /**
63
- * Initial vector capacity in the index affecting memory allocation size of the index. Defaults to `1024`. Equivalent to `INITIAL_CAP` in the module API.
64
- */
65
- initialCap?: number;
66
- }
67
- /**
68
- * Vector field that supports vector search by FLAT (brute force) algorithm.
69
- *
70
- * The algorithm is a brute force linear processing of each vector in the index, yielding exact
71
- * answers within the bounds of the precision of the distance computations.
72
- */
73
- export type VectorFieldAttributesFlat = VectorFieldAttributes & {
74
- algorithm: "FLAT";
75
- };
76
- /**
77
- * Vector field that supports vector search by HNSM (Hierarchical Navigable Small World) algorithm.
78
- *
79
- * The algorithm provides an approximation of the correct answer in exchange for substantially
80
- * lower execution times.
81
- */
82
- export type VectorFieldAttributesHnsw = VectorFieldAttributes & {
83
- algorithm: "HNSW";
84
- /**
85
- * Number of maximum allowed outgoing edges for each node in the graph in each layer. Default is `16`, maximum is `512`.
86
- * Equivalent to `M` in the module API.
87
- */
88
- numberOfEdges?: number;
89
- /**
90
- * Controls the number of vectors examined during index construction. Default value is `200`, Maximum value is `4096`.
91
- * Equivalent to `EF_CONSTRUCTION` in the module API.
92
- */
93
- vectorsExaminedOnConstruction?: number;
94
- /**
95
- * Controls the number of vectors examined during query operations. Default value is `10`, Maximum value is `4096`.
96
- * Equivalent to `EF_RUNTIME` in the module API.
97
- */
98
- vectorsExaminedOnRuntime?: number;
99
- };
100
- export type Field = TextField | TagField | NumericField | VectorField;
101
- /**
102
- * Represents the input options to be used in the {@link GlideFt.create | FT.CREATE} command.
103
- * All fields in this class are optional inputs for FT.CREATE.
104
- */
105
- export interface FtCreateOptions {
106
- /** The type of data to be indexed using FT.CREATE. */
107
- dataType: "JSON" | "HASH";
108
- /** The prefix of the key to be indexed. */
109
- prefixes?: GlideString[];
110
- }
111
- /** Additional parameters for {@link GlideFt.aggregate | FT.AGGREGATE} command. */
112
- export type FtAggregateOptions = {
113
- /** Query timeout in milliseconds. */
114
- timeout?: number;
115
- /**
116
- * {@link FtAggregateFilter | FILTER}, {@link FtAggregateLimit | LIMIT}, {@link FtAggregateGroupBy | GROUPBY},
117
- * {@link FtAggregateSortBy | SORTBY} and {@link FtAggregateApply | APPLY} clauses, that can be repeated
118
- * multiple times in any order and be freely intermixed. They are applied in the order specified,
119
- * with the output of one clause feeding the input of the next clause.
120
- */
121
- clauses?: (FtAggregateLimit | FtAggregateFilter | FtAggregateGroupBy | FtAggregateSortBy | FtAggregateApply)[];
122
- /**
123
- * Query parameters, which could be referenced in the query by `$` sign, followed by
124
- * the parameter name.
125
- */
126
- params?: GlideRecord<GlideString>;
127
- } & ({
128
- /** List of fields to load from the index. */
129
- loadFields?: GlideString[];
130
- /** `loadAll` and `loadFields` are mutually exclusive. */
131
- loadAll?: never;
132
- } | {
133
- /** Option to load all fields declared in the index */
134
- loadAll?: boolean;
135
- /** `loadAll` and `loadFields` are mutually exclusive. */
136
- loadFields?: never;
137
- });
138
- /** A clause for limiting the number of retained records. */
139
- export interface FtAggregateLimit {
140
- type: "LIMIT";
141
- /** Starting point from which the records have to be retained. */
142
- offset: number;
143
- /** The total number of records to be retained. */
144
- count: number;
145
- }
146
- /**
147
- * A clause for filtering the results using predicate expression relating to values in each result.
148
- * It is applied post query and relate to the current state of the pipeline.
149
- */
150
- export interface FtAggregateFilter {
151
- type: "FILTER";
152
- /** The expression to filter the results. */
153
- expression: GlideString;
154
- }
155
- /** A clause for grouping the results in the pipeline based on one or more properties. */
156
- export interface FtAggregateGroupBy {
157
- type: "GROUPBY";
158
- /** The list of properties to be used for grouping the results in the pipeline. */
159
- properties: GlideString[];
160
- /** The list of functions that handles the group entries by performing multiple aggregate operations. */
161
- reducers: FtAggregateReducer[];
162
- }
163
- /**
164
- * A clause for reducing the matching results in each group using a reduction function.
165
- * The matching results are reduced into a single record.
166
- */
167
- export interface FtAggregateReducer {
168
- /** The reduction function name for the respective group. */
169
- function: string;
170
- /** The list of arguments for the reducer. */
171
- args: GlideString[];
172
- /** User defined property name for the reducer. */
173
- name?: GlideString;
174
- }
175
- /** A clause for sorting the pipeline up until the point of SORTBY, using a list of properties. */
176
- export interface FtAggregateSortBy {
177
- type: "SORTBY";
178
- /** A list of sorting parameters for the sort operation. */
179
- properties: FtAggregateSortProperty[];
180
- /** The MAX value for optimizing the sorting, by sorting only for the n-largest elements. */
181
- max?: number;
182
- }
183
- /** A single property for the {@link FtAggregateSortBy | SORTBY} clause. */
184
- export interface FtAggregateSortProperty {
185
- /** The sorting parameter. */
186
- property: GlideString;
187
- /** The order for the sorting. */
188
- order: SortOrder;
189
- }
190
- /**
191
- * A clause for applying a 1-to-1 transformation on one or more properties and stores the result
192
- * as a new property down the pipeline or replaces any property using this transformation.
193
- */
194
- export interface FtAggregateApply {
195
- type: "APPLY";
196
- /** The transformation expression. */
197
- expression: GlideString;
198
- /** The new property name to store the result of apply. This name can be referenced by further operations down the pipeline. */
199
- name: GlideString;
200
- }
201
- /**
202
- * Represents the input options to be used in the FT.SEARCH command.
203
- * All fields in this class are optional inputs for FT.SEARCH.
204
- */
205
- export type FtSearchOptions = {
206
- /** Query timeout in milliseconds. */
207
- timeout?: number;
208
- /**
209
- * Add a field to be returned.
210
- * @param fieldIdentifier field name to return.
211
- * @param alias optional alias for the field name to return.
212
- */
213
- returnFields?: {
214
- fieldIdentifier: GlideString;
215
- alias?: GlideString;
216
- }[];
217
- /**
218
- * Query parameters, which could be referenced in the query by `$` sign, followed by
219
- * the parameter name.
220
- */
221
- params?: GlideRecord<GlideString>;
222
- } & ({
223
- /**
224
- * Configure query pagination. By default only first 10 documents are returned.
225
- *
226
- * @param offset Zero-based offset.
227
- * @param count Number of elements to return.
228
- */
229
- limit?: {
230
- offset: number;
231
- count: number;
232
- };
233
- /** `limit` and `count` are mutually exclusive. */
234
- count?: never;
235
- } | {
236
- /**
237
- * Once set, the query will return only the number of documents in the result set without actually
238
- * returning them.
239
- */
240
- count?: boolean;
241
- /** `limit` and `count` are mutually exclusive. */
242
- limit?: never;
243
- });
244
- export {};
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=GlideFtOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlideFtOptions.js","sourceRoot":"","sources":["../../../src/server-modules/GlideFtOptions.ts"],"names":[],"mappings":";AAAA;;GAEG"}