@valon-technologies/gestalt 0.0.1-alpha.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.
- package/README.md +160 -0
- package/gen/v1/auth_pb.ts +212 -0
- package/gen/v1/cache_pb.ts +357 -0
- package/gen/v1/datastore_pb.ts +922 -0
- package/gen/v1/plugin_pb.ts +772 -0
- package/gen/v1/runtime_pb.ts +216 -0
- package/gen/v1/s3_pb.ts +640 -0
- package/gen/v1/secrets_pb.ts +63 -0
- package/package.json +55 -0
- package/src/api.ts +98 -0
- package/src/auth.ts +103 -0
- package/src/build.ts +181 -0
- package/src/cache.ts +304 -0
- package/src/catalog.ts +188 -0
- package/src/index.ts +182 -0
- package/src/indexeddb.ts +740 -0
- package/src/plugin.ts +402 -0
- package/src/provider.ts +133 -0
- package/src/runtime.ts +871 -0
- package/src/s3.ts +1128 -0
- package/src/schema.ts +219 -0
- package/src/secrets.ts +36 -0
- package/src/target.ts +192 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,922 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file v1/datastore.proto (package gestalt.provider.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { EmptySchema, NullValue, Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Describes the file v1/datastore.proto.
|
|
13
|
+
*/
|
|
14
|
+
export const file_v1_datastore: GenFile = /*@__P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dGFsdC5wcm92aWRlci52MS5SZWNvcmRSZXNwb25zZRJXCgtJbmRleEdldEtleRImLmdlc3RhbHQucHJvdmlkZXIudjEuSW5kZXhRdWVyeVJlcXVlc3QaIC5nZXN0YWx0LnByb3ZpZGVyLnYxLktleVJlc3BvbnNlElsKC0luZGV4R2V0QWxsEiYuZ2VzdGFsdC5wcm92aWRlci52MS5JbmRleFF1ZXJ5UmVxdWVzdBokLmdlc3RhbHQucHJvdmlkZXIudjEuUmVjb3Jkc1Jlc3BvbnNlElwKD0luZGV4R2V0QWxsS2V5cxImLmdlc3RhbHQucHJvdmlkZXIudjEuSW5kZXhRdWVyeVJlcXVlc3QaIS5nZXN0YWx0LnByb3ZpZGVyLnYxLktleXNSZXNwb25zZRJYCgpJbmRleENvdW50EiYuZ2VzdGFsdC5wcm92aWRlci52MS5JbmRleFF1ZXJ5UmVxdWVzdBoiLmdlc3RhbHQucHJvdmlkZXIudjEuQ291bnRSZXNwb25zZRJaCgtJbmRleERlbGV0ZRImLmdlc3RhbHQucHJvdmlkZXIudjEuSW5kZXhRdWVyeVJlcXVlc3QaIy5nZXN0YWx0LnByb3ZpZGVyLnYxLkRlbGV0ZVJlc3BvbnNlEl8KCk9wZW5DdXJzb3ISKC5nZXN0YWx0LnByb3ZpZGVyLnYxLkN1cnNvckNsaWVudE1lc3NhZ2UaIy5nZXN0YWx0LnByb3ZpZGVyLnYxLkN1cnNvclJlc3BvbnNlKAEwAUI7WjlnaXRodWIuY29tL3ZhbG9uLXRlY2hub2xvZ2llcy9nZXN0YWx0L3Nkay9nby9nZW4vdjE7cHJvdG9iBnByb3RvMw", [file_google_protobuf_empty, file_google_protobuf_struct, file_google_protobuf_timestamp]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message gestalt.provider.v1.TypedValue
|
|
19
|
+
*/
|
|
20
|
+
export type TypedValue = Message<"gestalt.provider.v1.TypedValue"> & {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from oneof gestalt.provider.v1.TypedValue.kind
|
|
23
|
+
*/
|
|
24
|
+
kind: {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: google.protobuf.NullValue null_value = 1;
|
|
27
|
+
*/
|
|
28
|
+
value: NullValue;
|
|
29
|
+
case: "nullValue";
|
|
30
|
+
} | {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string string_value = 2;
|
|
33
|
+
*/
|
|
34
|
+
value: string;
|
|
35
|
+
case: "stringValue";
|
|
36
|
+
} | {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: int64 int_value = 3;
|
|
39
|
+
*/
|
|
40
|
+
value: bigint;
|
|
41
|
+
case: "intValue";
|
|
42
|
+
} | {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: double float_value = 4;
|
|
45
|
+
*/
|
|
46
|
+
value: number;
|
|
47
|
+
case: "floatValue";
|
|
48
|
+
} | {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bool bool_value = 5;
|
|
51
|
+
*/
|
|
52
|
+
value: boolean;
|
|
53
|
+
case: "boolValue";
|
|
54
|
+
} | {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: google.protobuf.Timestamp time_value = 6;
|
|
57
|
+
*/
|
|
58
|
+
value: Timestamp;
|
|
59
|
+
case: "timeValue";
|
|
60
|
+
} | {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: bytes bytes_value = 7;
|
|
63
|
+
*/
|
|
64
|
+
value: Uint8Array;
|
|
65
|
+
case: "bytesValue";
|
|
66
|
+
} | {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: google.protobuf.Value json_value = 8;
|
|
69
|
+
*/
|
|
70
|
+
value: Value;
|
|
71
|
+
case: "jsonValue";
|
|
72
|
+
} | { case: undefined; value?: undefined };
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message gestalt.provider.v1.TypedValue.
|
|
77
|
+
* Use `create(TypedValueSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export const TypedValueSchema: GenMessage<TypedValue> = /*@__PURE__*/
|
|
80
|
+
messageDesc(file_v1_datastore, 0);
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message gestalt.provider.v1.Record
|
|
84
|
+
*/
|
|
85
|
+
export type Record = Message<"gestalt.provider.v1.Record"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: map<string, gestalt.provider.v1.TypedValue> fields = 1;
|
|
88
|
+
*/
|
|
89
|
+
fields: { [key: string]: TypedValue };
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message gestalt.provider.v1.Record.
|
|
94
|
+
* Use `create(RecordSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const RecordSchema: GenMessage<Record> = /*@__PURE__*/
|
|
97
|
+
messageDesc(file_v1_datastore, 1);
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from message gestalt.provider.v1.ObjectStoreSchema
|
|
101
|
+
*/
|
|
102
|
+
export type ObjectStoreSchema = Message<"gestalt.provider.v1.ObjectStoreSchema"> & {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: repeated gestalt.provider.v1.IndexSchema indexes = 1;
|
|
105
|
+
*/
|
|
106
|
+
indexes: IndexSchema[];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: repeated gestalt.provider.v1.ColumnDef columns = 2;
|
|
110
|
+
*/
|
|
111
|
+
columns: ColumnDef[];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message gestalt.provider.v1.ObjectStoreSchema.
|
|
116
|
+
* Use `create(ObjectStoreSchemaSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export const ObjectStoreSchemaSchema: GenMessage<ObjectStoreSchema> = /*@__PURE__*/
|
|
119
|
+
messageDesc(file_v1_datastore, 2);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message gestalt.provider.v1.IndexSchema
|
|
123
|
+
*/
|
|
124
|
+
export type IndexSchema = Message<"gestalt.provider.v1.IndexSchema"> & {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string name = 1;
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: repeated string key_path = 2;
|
|
132
|
+
*/
|
|
133
|
+
keyPath: string[];
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: bool unique = 3;
|
|
137
|
+
*/
|
|
138
|
+
unique: boolean;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Describes the message gestalt.provider.v1.IndexSchema.
|
|
143
|
+
* Use `create(IndexSchemaSchema)` to create a new message.
|
|
144
|
+
*/
|
|
145
|
+
export const IndexSchemaSchema: GenMessage<IndexSchema> = /*@__PURE__*/
|
|
146
|
+
messageDesc(file_v1_datastore, 3);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message gestalt.provider.v1.ColumnDef
|
|
150
|
+
*/
|
|
151
|
+
export type ColumnDef = Message<"gestalt.provider.v1.ColumnDef"> & {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string name = 1;
|
|
154
|
+
*/
|
|
155
|
+
name: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @generated from field: int32 type = 2;
|
|
159
|
+
*/
|
|
160
|
+
type: number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: bool primary_key = 3;
|
|
164
|
+
*/
|
|
165
|
+
primaryKey: boolean;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: bool not_null = 4;
|
|
169
|
+
*/
|
|
170
|
+
notNull: boolean;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: bool unique = 5;
|
|
174
|
+
*/
|
|
175
|
+
unique: boolean;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Describes the message gestalt.provider.v1.ColumnDef.
|
|
180
|
+
* Use `create(ColumnDefSchema)` to create a new message.
|
|
181
|
+
*/
|
|
182
|
+
export const ColumnDefSchema: GenMessage<ColumnDef> = /*@__PURE__*/
|
|
183
|
+
messageDesc(file_v1_datastore, 4);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @generated from message gestalt.provider.v1.KeyRange
|
|
187
|
+
*/
|
|
188
|
+
export type KeyRange = Message<"gestalt.provider.v1.KeyRange"> & {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: gestalt.provider.v1.TypedValue lower = 1;
|
|
191
|
+
*/
|
|
192
|
+
lower?: TypedValue;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: gestalt.provider.v1.TypedValue upper = 2;
|
|
196
|
+
*/
|
|
197
|
+
upper?: TypedValue;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: bool lower_open = 3;
|
|
201
|
+
*/
|
|
202
|
+
lowerOpen: boolean;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: bool upper_open = 4;
|
|
206
|
+
*/
|
|
207
|
+
upperOpen: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Describes the message gestalt.provider.v1.KeyRange.
|
|
212
|
+
* Use `create(KeyRangeSchema)` to create a new message.
|
|
213
|
+
*/
|
|
214
|
+
export const KeyRangeSchema: GenMessage<KeyRange> = /*@__PURE__*/
|
|
215
|
+
messageDesc(file_v1_datastore, 5);
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from message gestalt.provider.v1.RecordRequest
|
|
219
|
+
*/
|
|
220
|
+
export type RecordRequest = Message<"gestalt.provider.v1.RecordRequest"> & {
|
|
221
|
+
/**
|
|
222
|
+
* @generated from field: string store = 1;
|
|
223
|
+
*/
|
|
224
|
+
store: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: gestalt.provider.v1.Record record = 2;
|
|
228
|
+
*/
|
|
229
|
+
record?: Record;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Describes the message gestalt.provider.v1.RecordRequest.
|
|
234
|
+
* Use `create(RecordRequestSchema)` to create a new message.
|
|
235
|
+
*/
|
|
236
|
+
export const RecordRequestSchema: GenMessage<RecordRequest> = /*@__PURE__*/
|
|
237
|
+
messageDesc(file_v1_datastore, 6);
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @generated from message gestalt.provider.v1.RecordResponse
|
|
241
|
+
*/
|
|
242
|
+
export type RecordResponse = Message<"gestalt.provider.v1.RecordResponse"> & {
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: gestalt.provider.v1.Record record = 1;
|
|
245
|
+
*/
|
|
246
|
+
record?: Record;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Describes the message gestalt.provider.v1.RecordResponse.
|
|
251
|
+
* Use `create(RecordResponseSchema)` to create a new message.
|
|
252
|
+
*/
|
|
253
|
+
export const RecordResponseSchema: GenMessage<RecordResponse> = /*@__PURE__*/
|
|
254
|
+
messageDesc(file_v1_datastore, 7);
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message gestalt.provider.v1.RecordsResponse
|
|
258
|
+
*/
|
|
259
|
+
export type RecordsResponse = Message<"gestalt.provider.v1.RecordsResponse"> & {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: repeated gestalt.provider.v1.Record records = 1;
|
|
262
|
+
*/
|
|
263
|
+
records: Record[];
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Describes the message gestalt.provider.v1.RecordsResponse.
|
|
268
|
+
* Use `create(RecordsResponseSchema)` to create a new message.
|
|
269
|
+
*/
|
|
270
|
+
export const RecordsResponseSchema: GenMessage<RecordsResponse> = /*@__PURE__*/
|
|
271
|
+
messageDesc(file_v1_datastore, 8);
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @generated from message gestalt.provider.v1.KeysResponse
|
|
275
|
+
*/
|
|
276
|
+
export type KeysResponse = Message<"gestalt.provider.v1.KeysResponse"> & {
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: repeated string keys = 1;
|
|
279
|
+
*/
|
|
280
|
+
keys: string[];
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Describes the message gestalt.provider.v1.KeysResponse.
|
|
285
|
+
* Use `create(KeysResponseSchema)` to create a new message.
|
|
286
|
+
*/
|
|
287
|
+
export const KeysResponseSchema: GenMessage<KeysResponse> = /*@__PURE__*/
|
|
288
|
+
messageDesc(file_v1_datastore, 9);
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @generated from message gestalt.provider.v1.ObjectStoreRequest
|
|
292
|
+
*/
|
|
293
|
+
export type ObjectStoreRequest = Message<"gestalt.provider.v1.ObjectStoreRequest"> & {
|
|
294
|
+
/**
|
|
295
|
+
* @generated from field: string store = 1;
|
|
296
|
+
*/
|
|
297
|
+
store: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @generated from field: string id = 2;
|
|
301
|
+
*/
|
|
302
|
+
id: string;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Describes the message gestalt.provider.v1.ObjectStoreRequest.
|
|
307
|
+
* Use `create(ObjectStoreRequestSchema)` to create a new message.
|
|
308
|
+
*/
|
|
309
|
+
export const ObjectStoreRequestSchema: GenMessage<ObjectStoreRequest> = /*@__PURE__*/
|
|
310
|
+
messageDesc(file_v1_datastore, 10);
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @generated from message gestalt.provider.v1.ObjectStoreNameRequest
|
|
314
|
+
*/
|
|
315
|
+
export type ObjectStoreNameRequest = Message<"gestalt.provider.v1.ObjectStoreNameRequest"> & {
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: string store = 1;
|
|
318
|
+
*/
|
|
319
|
+
store: string;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Describes the message gestalt.provider.v1.ObjectStoreNameRequest.
|
|
324
|
+
* Use `create(ObjectStoreNameRequestSchema)` to create a new message.
|
|
325
|
+
*/
|
|
326
|
+
export const ObjectStoreNameRequestSchema: GenMessage<ObjectStoreNameRequest> = /*@__PURE__*/
|
|
327
|
+
messageDesc(file_v1_datastore, 11);
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @generated from message gestalt.provider.v1.ObjectStoreRangeRequest
|
|
331
|
+
*/
|
|
332
|
+
export type ObjectStoreRangeRequest = Message<"gestalt.provider.v1.ObjectStoreRangeRequest"> & {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string store = 1;
|
|
335
|
+
*/
|
|
336
|
+
store: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: optional gestalt.provider.v1.KeyRange range = 2;
|
|
340
|
+
*/
|
|
341
|
+
range?: KeyRange;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Describes the message gestalt.provider.v1.ObjectStoreRangeRequest.
|
|
346
|
+
* Use `create(ObjectStoreRangeRequestSchema)` to create a new message.
|
|
347
|
+
*/
|
|
348
|
+
export const ObjectStoreRangeRequestSchema: GenMessage<ObjectStoreRangeRequest> = /*@__PURE__*/
|
|
349
|
+
messageDesc(file_v1_datastore, 12);
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @generated from message gestalt.provider.v1.CreateObjectStoreRequest
|
|
353
|
+
*/
|
|
354
|
+
export type CreateObjectStoreRequest = Message<"gestalt.provider.v1.CreateObjectStoreRequest"> & {
|
|
355
|
+
/**
|
|
356
|
+
* @generated from field: string name = 1;
|
|
357
|
+
*/
|
|
358
|
+
name: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: gestalt.provider.v1.ObjectStoreSchema schema = 2;
|
|
362
|
+
*/
|
|
363
|
+
schema?: ObjectStoreSchema;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Describes the message gestalt.provider.v1.CreateObjectStoreRequest.
|
|
368
|
+
* Use `create(CreateObjectStoreRequestSchema)` to create a new message.
|
|
369
|
+
*/
|
|
370
|
+
export const CreateObjectStoreRequestSchema: GenMessage<CreateObjectStoreRequest> = /*@__PURE__*/
|
|
371
|
+
messageDesc(file_v1_datastore, 13);
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @generated from message gestalt.provider.v1.DeleteObjectStoreRequest
|
|
375
|
+
*/
|
|
376
|
+
export type DeleteObjectStoreRequest = Message<"gestalt.provider.v1.DeleteObjectStoreRequest"> & {
|
|
377
|
+
/**
|
|
378
|
+
* @generated from field: string name = 1;
|
|
379
|
+
*/
|
|
380
|
+
name: string;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Describes the message gestalt.provider.v1.DeleteObjectStoreRequest.
|
|
385
|
+
* Use `create(DeleteObjectStoreRequestSchema)` to create a new message.
|
|
386
|
+
*/
|
|
387
|
+
export const DeleteObjectStoreRequestSchema: GenMessage<DeleteObjectStoreRequest> = /*@__PURE__*/
|
|
388
|
+
messageDesc(file_v1_datastore, 14);
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @generated from message gestalt.provider.v1.IndexQueryRequest
|
|
392
|
+
*/
|
|
393
|
+
export type IndexQueryRequest = Message<"gestalt.provider.v1.IndexQueryRequest"> & {
|
|
394
|
+
/**
|
|
395
|
+
* @generated from field: string store = 1;
|
|
396
|
+
*/
|
|
397
|
+
store: string;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: string index = 2;
|
|
401
|
+
*/
|
|
402
|
+
index: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @generated from field: repeated gestalt.provider.v1.TypedValue values = 3;
|
|
406
|
+
*/
|
|
407
|
+
values: TypedValue[];
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: optional gestalt.provider.v1.KeyRange range = 4;
|
|
411
|
+
*/
|
|
412
|
+
range?: KeyRange;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Describes the message gestalt.provider.v1.IndexQueryRequest.
|
|
417
|
+
* Use `create(IndexQueryRequestSchema)` to create a new message.
|
|
418
|
+
*/
|
|
419
|
+
export const IndexQueryRequestSchema: GenMessage<IndexQueryRequest> = /*@__PURE__*/
|
|
420
|
+
messageDesc(file_v1_datastore, 15);
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @generated from message gestalt.provider.v1.CountResponse
|
|
424
|
+
*/
|
|
425
|
+
export type CountResponse = Message<"gestalt.provider.v1.CountResponse"> & {
|
|
426
|
+
/**
|
|
427
|
+
* @generated from field: int64 count = 1;
|
|
428
|
+
*/
|
|
429
|
+
count: bigint;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Describes the message gestalt.provider.v1.CountResponse.
|
|
434
|
+
* Use `create(CountResponseSchema)` to create a new message.
|
|
435
|
+
*/
|
|
436
|
+
export const CountResponseSchema: GenMessage<CountResponse> = /*@__PURE__*/
|
|
437
|
+
messageDesc(file_v1_datastore, 16);
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @generated from message gestalt.provider.v1.OpenCursorRequest
|
|
441
|
+
*/
|
|
442
|
+
export type OpenCursorRequest = Message<"gestalt.provider.v1.OpenCursorRequest"> & {
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: string store = 1;
|
|
445
|
+
*/
|
|
446
|
+
store: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: optional gestalt.provider.v1.KeyRange range = 2;
|
|
450
|
+
*/
|
|
451
|
+
range?: KeyRange;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: gestalt.provider.v1.CursorDirection direction = 3;
|
|
455
|
+
*/
|
|
456
|
+
direction: CursorDirection;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: bool keys_only = 4;
|
|
460
|
+
*/
|
|
461
|
+
keysOnly: boolean;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @generated from field: string index = 5;
|
|
465
|
+
*/
|
|
466
|
+
index: string;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @generated from field: repeated gestalt.provider.v1.TypedValue values = 6;
|
|
470
|
+
*/
|
|
471
|
+
values: TypedValue[];
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Describes the message gestalt.provider.v1.OpenCursorRequest.
|
|
476
|
+
* Use `create(OpenCursorRequestSchema)` to create a new message.
|
|
477
|
+
*/
|
|
478
|
+
export const OpenCursorRequestSchema: GenMessage<OpenCursorRequest> = /*@__PURE__*/
|
|
479
|
+
messageDesc(file_v1_datastore, 17);
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* KeyValue represents a single IndexedDB key, which can be a scalar
|
|
483
|
+
* (string, number, date, binary) or a nested array of keys per the W3C spec.
|
|
484
|
+
*
|
|
485
|
+
* @generated from message gestalt.provider.v1.KeyValue
|
|
486
|
+
*/
|
|
487
|
+
export type KeyValue = Message<"gestalt.provider.v1.KeyValue"> & {
|
|
488
|
+
/**
|
|
489
|
+
* @generated from oneof gestalt.provider.v1.KeyValue.kind
|
|
490
|
+
*/
|
|
491
|
+
kind: {
|
|
492
|
+
/**
|
|
493
|
+
* @generated from field: gestalt.provider.v1.TypedValue scalar = 1;
|
|
494
|
+
*/
|
|
495
|
+
value: TypedValue;
|
|
496
|
+
case: "scalar";
|
|
497
|
+
} | {
|
|
498
|
+
/**
|
|
499
|
+
* @generated from field: gestalt.provider.v1.KeyValueArray array = 2;
|
|
500
|
+
*/
|
|
501
|
+
value: KeyValueArray;
|
|
502
|
+
case: "array";
|
|
503
|
+
} | { case: undefined; value?: undefined };
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Describes the message gestalt.provider.v1.KeyValue.
|
|
508
|
+
* Use `create(KeyValueSchema)` to create a new message.
|
|
509
|
+
*/
|
|
510
|
+
export const KeyValueSchema: GenMessage<KeyValue> = /*@__PURE__*/
|
|
511
|
+
messageDesc(file_v1_datastore, 18);
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @generated from message gestalt.provider.v1.KeyValueArray
|
|
515
|
+
*/
|
|
516
|
+
export type KeyValueArray = Message<"gestalt.provider.v1.KeyValueArray"> & {
|
|
517
|
+
/**
|
|
518
|
+
* @generated from field: repeated gestalt.provider.v1.KeyValue elements = 1;
|
|
519
|
+
*/
|
|
520
|
+
elements: KeyValue[];
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Describes the message gestalt.provider.v1.KeyValueArray.
|
|
525
|
+
* Use `create(KeyValueArraySchema)` to create a new message.
|
|
526
|
+
*/
|
|
527
|
+
export const KeyValueArraySchema: GenMessage<KeyValueArray> = /*@__PURE__*/
|
|
528
|
+
messageDesc(file_v1_datastore, 19);
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @generated from message gestalt.provider.v1.CursorKeyTarget
|
|
532
|
+
*/
|
|
533
|
+
export type CursorKeyTarget = Message<"gestalt.provider.v1.CursorKeyTarget"> & {
|
|
534
|
+
/**
|
|
535
|
+
* @generated from field: repeated gestalt.provider.v1.KeyValue key = 1;
|
|
536
|
+
*/
|
|
537
|
+
key: KeyValue[];
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Describes the message gestalt.provider.v1.CursorKeyTarget.
|
|
542
|
+
* Use `create(CursorKeyTargetSchema)` to create a new message.
|
|
543
|
+
*/
|
|
544
|
+
export const CursorKeyTargetSchema: GenMessage<CursorKeyTarget> = /*@__PURE__*/
|
|
545
|
+
messageDesc(file_v1_datastore, 20);
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @generated from message gestalt.provider.v1.CursorCommand
|
|
549
|
+
*/
|
|
550
|
+
export type CursorCommand = Message<"gestalt.provider.v1.CursorCommand"> & {
|
|
551
|
+
/**
|
|
552
|
+
* @generated from oneof gestalt.provider.v1.CursorCommand.command
|
|
553
|
+
*/
|
|
554
|
+
command: {
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: bool next = 1;
|
|
557
|
+
*/
|
|
558
|
+
value: boolean;
|
|
559
|
+
case: "next";
|
|
560
|
+
} | {
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: gestalt.provider.v1.CursorKeyTarget continue_to_key = 2;
|
|
563
|
+
*/
|
|
564
|
+
value: CursorKeyTarget;
|
|
565
|
+
case: "continueToKey";
|
|
566
|
+
} | {
|
|
567
|
+
/**
|
|
568
|
+
* @generated from field: int32 advance = 3;
|
|
569
|
+
*/
|
|
570
|
+
value: number;
|
|
571
|
+
case: "advance";
|
|
572
|
+
} | {
|
|
573
|
+
/**
|
|
574
|
+
* @generated from field: gestalt.provider.v1.Record update = 4;
|
|
575
|
+
*/
|
|
576
|
+
value: Record;
|
|
577
|
+
case: "update";
|
|
578
|
+
} | {
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: bool delete = 5;
|
|
581
|
+
*/
|
|
582
|
+
value: boolean;
|
|
583
|
+
case: "delete";
|
|
584
|
+
} | {
|
|
585
|
+
/**
|
|
586
|
+
* @generated from field: bool close = 6;
|
|
587
|
+
*/
|
|
588
|
+
value: boolean;
|
|
589
|
+
case: "close";
|
|
590
|
+
} | { case: undefined; value?: undefined };
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Describes the message gestalt.provider.v1.CursorCommand.
|
|
595
|
+
* Use `create(CursorCommandSchema)` to create a new message.
|
|
596
|
+
*/
|
|
597
|
+
export const CursorCommandSchema: GenMessage<CursorCommand> = /*@__PURE__*/
|
|
598
|
+
messageDesc(file_v1_datastore, 21);
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @generated from message gestalt.provider.v1.CursorClientMessage
|
|
602
|
+
*/
|
|
603
|
+
export type CursorClientMessage = Message<"gestalt.provider.v1.CursorClientMessage"> & {
|
|
604
|
+
/**
|
|
605
|
+
* @generated from oneof gestalt.provider.v1.CursorClientMessage.msg
|
|
606
|
+
*/
|
|
607
|
+
msg: {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: gestalt.provider.v1.OpenCursorRequest open = 1;
|
|
610
|
+
*/
|
|
611
|
+
value: OpenCursorRequest;
|
|
612
|
+
case: "open";
|
|
613
|
+
} | {
|
|
614
|
+
/**
|
|
615
|
+
* @generated from field: gestalt.provider.v1.CursorCommand command = 2;
|
|
616
|
+
*/
|
|
617
|
+
value: CursorCommand;
|
|
618
|
+
case: "command";
|
|
619
|
+
} | { case: undefined; value?: undefined };
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Describes the message gestalt.provider.v1.CursorClientMessage.
|
|
624
|
+
* Use `create(CursorClientMessageSchema)` to create a new message.
|
|
625
|
+
*/
|
|
626
|
+
export const CursorClientMessageSchema: GenMessage<CursorClientMessage> = /*@__PURE__*/
|
|
627
|
+
messageDesc(file_v1_datastore, 22);
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @generated from message gestalt.provider.v1.CursorEntry
|
|
631
|
+
*/
|
|
632
|
+
export type CursorEntry = Message<"gestalt.provider.v1.CursorEntry"> & {
|
|
633
|
+
/**
|
|
634
|
+
* Key components per index KeyPath field. Each component is a KeyValue
|
|
635
|
+
* that can be a scalar or a nested array, preserving the full W3C IndexedDB
|
|
636
|
+
* key structure including array-valued keys.
|
|
637
|
+
*
|
|
638
|
+
* @generated from field: repeated gestalt.provider.v1.KeyValue key = 1;
|
|
639
|
+
*/
|
|
640
|
+
key: KeyValue[];
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* @generated from field: string primary_key = 2;
|
|
644
|
+
*/
|
|
645
|
+
primaryKey: string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @generated from field: gestalt.provider.v1.Record record = 3;
|
|
649
|
+
*/
|
|
650
|
+
record?: Record;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Describes the message gestalt.provider.v1.CursorEntry.
|
|
655
|
+
* Use `create(CursorEntrySchema)` to create a new message.
|
|
656
|
+
*/
|
|
657
|
+
export const CursorEntrySchema: GenMessage<CursorEntry> = /*@__PURE__*/
|
|
658
|
+
messageDesc(file_v1_datastore, 23);
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* @generated from message gestalt.provider.v1.CursorResponse
|
|
662
|
+
*/
|
|
663
|
+
export type CursorResponse = Message<"gestalt.provider.v1.CursorResponse"> & {
|
|
664
|
+
/**
|
|
665
|
+
* @generated from oneof gestalt.provider.v1.CursorResponse.result
|
|
666
|
+
*/
|
|
667
|
+
result: {
|
|
668
|
+
/**
|
|
669
|
+
* @generated from field: gestalt.provider.v1.CursorEntry entry = 1;
|
|
670
|
+
*/
|
|
671
|
+
value: CursorEntry;
|
|
672
|
+
case: "entry";
|
|
673
|
+
} | {
|
|
674
|
+
/**
|
|
675
|
+
* @generated from field: bool done = 2;
|
|
676
|
+
*/
|
|
677
|
+
value: boolean;
|
|
678
|
+
case: "done";
|
|
679
|
+
} | { case: undefined; value?: undefined };
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Describes the message gestalt.provider.v1.CursorResponse.
|
|
684
|
+
* Use `create(CursorResponseSchema)` to create a new message.
|
|
685
|
+
*/
|
|
686
|
+
export const CursorResponseSchema: GenMessage<CursorResponse> = /*@__PURE__*/
|
|
687
|
+
messageDesc(file_v1_datastore, 24);
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @generated from message gestalt.provider.v1.DeleteResponse
|
|
691
|
+
*/
|
|
692
|
+
export type DeleteResponse = Message<"gestalt.provider.v1.DeleteResponse"> & {
|
|
693
|
+
/**
|
|
694
|
+
* @generated from field: int64 deleted = 1;
|
|
695
|
+
*/
|
|
696
|
+
deleted: bigint;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Describes the message gestalt.provider.v1.DeleteResponse.
|
|
701
|
+
* Use `create(DeleteResponseSchema)` to create a new message.
|
|
702
|
+
*/
|
|
703
|
+
export const DeleteResponseSchema: GenMessage<DeleteResponse> = /*@__PURE__*/
|
|
704
|
+
messageDesc(file_v1_datastore, 25);
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* @generated from message gestalt.provider.v1.KeyResponse
|
|
708
|
+
*/
|
|
709
|
+
export type KeyResponse = Message<"gestalt.provider.v1.KeyResponse"> & {
|
|
710
|
+
/**
|
|
711
|
+
* @generated from field: string key = 1;
|
|
712
|
+
*/
|
|
713
|
+
key: string;
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Describes the message gestalt.provider.v1.KeyResponse.
|
|
718
|
+
* Use `create(KeyResponseSchema)` to create a new message.
|
|
719
|
+
*/
|
|
720
|
+
export const KeyResponseSchema: GenMessage<KeyResponse> = /*@__PURE__*/
|
|
721
|
+
messageDesc(file_v1_datastore, 26);
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* @generated from enum gestalt.provider.v1.CursorDirection
|
|
725
|
+
*/
|
|
726
|
+
export enum CursorDirection {
|
|
727
|
+
/**
|
|
728
|
+
* @generated from enum value: CURSOR_NEXT = 0;
|
|
729
|
+
*/
|
|
730
|
+
CURSOR_NEXT = 0,
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* @generated from enum value: CURSOR_NEXT_UNIQUE = 1;
|
|
734
|
+
*/
|
|
735
|
+
CURSOR_NEXT_UNIQUE = 1,
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* @generated from enum value: CURSOR_PREV = 2;
|
|
739
|
+
*/
|
|
740
|
+
CURSOR_PREV = 2,
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* @generated from enum value: CURSOR_PREV_UNIQUE = 3;
|
|
744
|
+
*/
|
|
745
|
+
CURSOR_PREV_UNIQUE = 3,
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Describes the enum gestalt.provider.v1.CursorDirection.
|
|
750
|
+
*/
|
|
751
|
+
export const CursorDirectionSchema: GenEnum<CursorDirection> = /*@__PURE__*/
|
|
752
|
+
enumDesc(file_v1_datastore, 0);
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* @generated from service gestalt.provider.v1.IndexedDB
|
|
756
|
+
*/
|
|
757
|
+
export const IndexedDB: GenService<{
|
|
758
|
+
/**
|
|
759
|
+
* Lifecycle
|
|
760
|
+
*
|
|
761
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.CreateObjectStore
|
|
762
|
+
*/
|
|
763
|
+
createObjectStore: {
|
|
764
|
+
methodKind: "unary";
|
|
765
|
+
input: typeof CreateObjectStoreRequestSchema;
|
|
766
|
+
output: typeof EmptySchema;
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.DeleteObjectStore
|
|
770
|
+
*/
|
|
771
|
+
deleteObjectStore: {
|
|
772
|
+
methodKind: "unary";
|
|
773
|
+
input: typeof DeleteObjectStoreRequestSchema;
|
|
774
|
+
output: typeof EmptySchema;
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* Primary key CRUD
|
|
778
|
+
*
|
|
779
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Get
|
|
780
|
+
*/
|
|
781
|
+
get: {
|
|
782
|
+
methodKind: "unary";
|
|
783
|
+
input: typeof ObjectStoreRequestSchema;
|
|
784
|
+
output: typeof RecordResponseSchema;
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.GetKey
|
|
788
|
+
*/
|
|
789
|
+
getKey: {
|
|
790
|
+
methodKind: "unary";
|
|
791
|
+
input: typeof ObjectStoreRequestSchema;
|
|
792
|
+
output: typeof KeyResponseSchema;
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Add
|
|
796
|
+
*/
|
|
797
|
+
add: {
|
|
798
|
+
methodKind: "unary";
|
|
799
|
+
input: typeof RecordRequestSchema;
|
|
800
|
+
output: typeof EmptySchema;
|
|
801
|
+
},
|
|
802
|
+
/**
|
|
803
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Put
|
|
804
|
+
*/
|
|
805
|
+
put: {
|
|
806
|
+
methodKind: "unary";
|
|
807
|
+
input: typeof RecordRequestSchema;
|
|
808
|
+
output: typeof EmptySchema;
|
|
809
|
+
},
|
|
810
|
+
/**
|
|
811
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Delete
|
|
812
|
+
*/
|
|
813
|
+
delete: {
|
|
814
|
+
methodKind: "unary";
|
|
815
|
+
input: typeof ObjectStoreRequestSchema;
|
|
816
|
+
output: typeof EmptySchema;
|
|
817
|
+
},
|
|
818
|
+
/**
|
|
819
|
+
* Bulk operations (with optional key range)
|
|
820
|
+
*
|
|
821
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Clear
|
|
822
|
+
*/
|
|
823
|
+
clear: {
|
|
824
|
+
methodKind: "unary";
|
|
825
|
+
input: typeof ObjectStoreNameRequestSchema;
|
|
826
|
+
output: typeof EmptySchema;
|
|
827
|
+
},
|
|
828
|
+
/**
|
|
829
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.GetAll
|
|
830
|
+
*/
|
|
831
|
+
getAll: {
|
|
832
|
+
methodKind: "unary";
|
|
833
|
+
input: typeof ObjectStoreRangeRequestSchema;
|
|
834
|
+
output: typeof RecordsResponseSchema;
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.GetAllKeys
|
|
838
|
+
*/
|
|
839
|
+
getAllKeys: {
|
|
840
|
+
methodKind: "unary";
|
|
841
|
+
input: typeof ObjectStoreRangeRequestSchema;
|
|
842
|
+
output: typeof KeysResponseSchema;
|
|
843
|
+
},
|
|
844
|
+
/**
|
|
845
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.Count
|
|
846
|
+
*/
|
|
847
|
+
count: {
|
|
848
|
+
methodKind: "unary";
|
|
849
|
+
input: typeof ObjectStoreRangeRequestSchema;
|
|
850
|
+
output: typeof CountResponseSchema;
|
|
851
|
+
},
|
|
852
|
+
/**
|
|
853
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.DeleteRange
|
|
854
|
+
*/
|
|
855
|
+
deleteRange: {
|
|
856
|
+
methodKind: "unary";
|
|
857
|
+
input: typeof ObjectStoreRangeRequestSchema;
|
|
858
|
+
output: typeof DeleteResponseSchema;
|
|
859
|
+
},
|
|
860
|
+
/**
|
|
861
|
+
* Index queries
|
|
862
|
+
*
|
|
863
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexGet
|
|
864
|
+
*/
|
|
865
|
+
indexGet: {
|
|
866
|
+
methodKind: "unary";
|
|
867
|
+
input: typeof IndexQueryRequestSchema;
|
|
868
|
+
output: typeof RecordResponseSchema;
|
|
869
|
+
},
|
|
870
|
+
/**
|
|
871
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexGetKey
|
|
872
|
+
*/
|
|
873
|
+
indexGetKey: {
|
|
874
|
+
methodKind: "unary";
|
|
875
|
+
input: typeof IndexQueryRequestSchema;
|
|
876
|
+
output: typeof KeyResponseSchema;
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexGetAll
|
|
880
|
+
*/
|
|
881
|
+
indexGetAll: {
|
|
882
|
+
methodKind: "unary";
|
|
883
|
+
input: typeof IndexQueryRequestSchema;
|
|
884
|
+
output: typeof RecordsResponseSchema;
|
|
885
|
+
},
|
|
886
|
+
/**
|
|
887
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexGetAllKeys
|
|
888
|
+
*/
|
|
889
|
+
indexGetAllKeys: {
|
|
890
|
+
methodKind: "unary";
|
|
891
|
+
input: typeof IndexQueryRequestSchema;
|
|
892
|
+
output: typeof KeysResponseSchema;
|
|
893
|
+
},
|
|
894
|
+
/**
|
|
895
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexCount
|
|
896
|
+
*/
|
|
897
|
+
indexCount: {
|
|
898
|
+
methodKind: "unary";
|
|
899
|
+
input: typeof IndexQueryRequestSchema;
|
|
900
|
+
output: typeof CountResponseSchema;
|
|
901
|
+
},
|
|
902
|
+
/**
|
|
903
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.IndexDelete
|
|
904
|
+
*/
|
|
905
|
+
indexDelete: {
|
|
906
|
+
methodKind: "unary";
|
|
907
|
+
input: typeof IndexQueryRequestSchema;
|
|
908
|
+
output: typeof DeleteResponseSchema;
|
|
909
|
+
},
|
|
910
|
+
/**
|
|
911
|
+
* Cursor iteration (bidirectional stream)
|
|
912
|
+
*
|
|
913
|
+
* @generated from rpc gestalt.provider.v1.IndexedDB.OpenCursor
|
|
914
|
+
*/
|
|
915
|
+
openCursor: {
|
|
916
|
+
methodKind: "bidi_streaming";
|
|
917
|
+
input: typeof CursorClientMessageSchema;
|
|
918
|
+
output: typeof CursorResponseSchema;
|
|
919
|
+
},
|
|
920
|
+
}> = /*@__PURE__*/
|
|
921
|
+
serviceDesc(file_v1_datastore, 0);
|
|
922
|
+
|