@mochabug/adapt-sdk 0.1.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 (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +873 -0
  3. package/dist/api.d.ts +1605 -0
  4. package/dist/api.d.ts.map +1 -0
  5. package/dist/api.spec.d.ts +2 -0
  6. package/dist/api.spec.d.ts.map +1 -0
  7. package/dist/cjs/api.cjs +2 -0
  8. package/dist/cjs/api.cjs.map +7 -0
  9. package/dist/cjs/frontend.cjs +2 -0
  10. package/dist/cjs/frontend.cjs.map +7 -0
  11. package/dist/cjs/mime.cjs +2 -0
  12. package/dist/cjs/mime.cjs.map +7 -0
  13. package/dist/cjs/router.cjs +2 -0
  14. package/dist/cjs/router.cjs.map +7 -0
  15. package/dist/cjs/types.cjs +2 -0
  16. package/dist/cjs/types.cjs.map +7 -0
  17. package/dist/esm/api.mjs +2 -0
  18. package/dist/esm/api.mjs.map +7 -0
  19. package/dist/esm/frontend.mjs +2 -0
  20. package/dist/esm/frontend.mjs.map +7 -0
  21. package/dist/esm/mime.mjs +2 -0
  22. package/dist/esm/mime.mjs.map +7 -0
  23. package/dist/esm/router.mjs +2 -0
  24. package/dist/esm/router.mjs.map +7 -0
  25. package/dist/esm/types.mjs +1 -0
  26. package/dist/esm/types.mjs.map +7 -0
  27. package/dist/frontend.d.ts +10 -0
  28. package/dist/frontend.d.ts.map +1 -0
  29. package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
  30. package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
  31. package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
  32. package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
  33. package/dist/genproto/google/api/client_pb.d.ts +1432 -0
  34. package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
  35. package/dist/genproto/google/api/http_pb.d.ts +843 -0
  36. package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
  37. package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
  38. package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
  39. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
  40. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
  41. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
  42. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
  43. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
  44. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
  45. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
  46. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
  47. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
  48. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
  49. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
  50. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
  51. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
  52. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
  53. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
  54. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
  55. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
  56. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
  57. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
  58. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
  59. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
  60. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  61. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
  62. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  63. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
  64. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
  65. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  66. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  67. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
  68. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
  69. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
  70. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
  71. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
  72. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
  73. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
  74. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
  75. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  76. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  77. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
  78. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
  79. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
  80. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
  81. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
  82. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
  83. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
  84. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
  85. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
  86. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
  87. package/dist/grpcweb.d.ts +8 -0
  88. package/dist/grpcweb.d.ts.map +1 -0
  89. package/dist/mime.d.ts +11 -0
  90. package/dist/mime.d.ts.map +1 -0
  91. package/dist/router.d.ts +503 -0
  92. package/dist/router.d.ts.map +1 -0
  93. package/dist/router.spec.d.ts +2 -0
  94. package/dist/router.spec.d.ts.map +1 -0
  95. package/dist/signal-api.spec.d.ts +17 -0
  96. package/dist/signal-api.spec.d.ts.map +1 -0
  97. package/dist/types.d.ts +149 -0
  98. package/dist/types.d.ts.map +1 -0
  99. package/package.json +80 -0
@@ -0,0 +1,872 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file mochabugapis/adapt/runtime/v1/store.proto.
6
+ */
7
+ export declare const file_mochabugapis_adapt_runtime_v1_store: GenFile;
8
+ /**
9
+ * This represents a value to be stored
10
+ *
11
+ * @generated from message mochabugapis.adapt.runtime.v1.PutValue
12
+ */
13
+ export type PutValue = Message<"mochabugapis.adapt.runtime.v1.PutValue"> & {
14
+ /**
15
+ * Data
16
+ *
17
+ * @generated from field: bytes value = 1;
18
+ */
19
+ value: Uint8Array;
20
+ /**
21
+ * TTL seconds (0 = no expiration)
22
+ *
23
+ * @generated from field: int32 ttl = 2;
24
+ */
25
+ ttl: number;
26
+ };
27
+ /**
28
+ * This represents a value to be stored
29
+ *
30
+ * @generated from message mochabugapis.adapt.runtime.v1.PutValue
31
+ */
32
+ export type PutValueJson = {
33
+ /**
34
+ * Data
35
+ *
36
+ * @generated from field: bytes value = 1;
37
+ */
38
+ value?: string;
39
+ /**
40
+ * TTL seconds (0 = no expiration)
41
+ *
42
+ * @generated from field: int32 ttl = 2;
43
+ */
44
+ ttl?: number;
45
+ };
46
+ /**
47
+ * Describes the message mochabugapis.adapt.runtime.v1.PutValue.
48
+ * Use `create(PutValueSchema)` to create a new message.
49
+ */
50
+ export declare const PutValueSchema: GenMessage<PutValue, {
51
+ jsonType: PutValueJson;
52
+ }>;
53
+ /**
54
+ * Retrieved value
55
+ *
56
+ * @generated from message mochabugapis.adapt.runtime.v1.GetValue
57
+ */
58
+ export type GetValue = Message<"mochabugapis.adapt.runtime.v1.GetValue"> & {
59
+ /**
60
+ * Data
61
+ *
62
+ * @generated from field: bytes value = 1;
63
+ */
64
+ value: Uint8Array;
65
+ /**
66
+ * The metadata for the written value
67
+ *
68
+ * @generated from field: mochabugapis.adapt.runtime.v1.ValueMetadata metadata = 2;
69
+ */
70
+ metadata?: ValueMetadata;
71
+ };
72
+ /**
73
+ * Retrieved value
74
+ *
75
+ * @generated from message mochabugapis.adapt.runtime.v1.GetValue
76
+ */
77
+ export type GetValueJson = {
78
+ /**
79
+ * Data
80
+ *
81
+ * @generated from field: bytes value = 1;
82
+ */
83
+ value?: string;
84
+ /**
85
+ * The metadata for the written value
86
+ *
87
+ * @generated from field: mochabugapis.adapt.runtime.v1.ValueMetadata metadata = 2;
88
+ */
89
+ metadata?: ValueMetadataJson;
90
+ };
91
+ /**
92
+ * Describes the message mochabugapis.adapt.runtime.v1.GetValue.
93
+ * Use `create(GetValueSchema)` to create a new message.
94
+ */
95
+ export declare const GetValueSchema: GenMessage<GetValue, {
96
+ jsonType: GetValueJson;
97
+ }>;
98
+ /**
99
+ * Write metadata
100
+ *
101
+ * @generated from message mochabugapis.adapt.runtime.v1.ValueMetadata
102
+ */
103
+ export type ValueMetadata = Message<"mochabugapis.adapt.runtime.v1.ValueMetadata"> & {
104
+ /**
105
+ * Remaining TTL seconds (0 = no expiration)
106
+ *
107
+ * @generated from field: int32 ttl = 1;
108
+ */
109
+ ttl: number;
110
+ /**
111
+ * Last modified
112
+ *
113
+ * @generated from field: google.protobuf.Timestamp last_modified = 2;
114
+ */
115
+ lastModified?: Timestamp;
116
+ /**
117
+ * ETag
118
+ *
119
+ * @generated from field: string etag = 3;
120
+ */
121
+ etag: string;
122
+ };
123
+ /**
124
+ * Write metadata
125
+ *
126
+ * @generated from message mochabugapis.adapt.runtime.v1.ValueMetadata
127
+ */
128
+ export type ValueMetadataJson = {
129
+ /**
130
+ * Remaining TTL seconds (0 = no expiration)
131
+ *
132
+ * @generated from field: int32 ttl = 1;
133
+ */
134
+ ttl?: number;
135
+ /**
136
+ * Last modified
137
+ *
138
+ * @generated from field: google.protobuf.Timestamp last_modified = 2;
139
+ */
140
+ lastModified?: TimestampJson;
141
+ /**
142
+ * ETag
143
+ *
144
+ * @generated from field: string etag = 3;
145
+ */
146
+ etag?: string;
147
+ };
148
+ /**
149
+ * Describes the message mochabugapis.adapt.runtime.v1.ValueMetadata.
150
+ * Use `create(ValueMetadataSchema)` to create a new message.
151
+ */
152
+ export declare const ValueMetadataSchema: GenMessage<ValueMetadata, {
153
+ jsonType: ValueMetadataJson;
154
+ }>;
155
+ /**
156
+ * Timestamp range
157
+ *
158
+ * @generated from message mochabugapis.adapt.runtime.v1.TimestampRange
159
+ */
160
+ export type TimestampRange = Message<"mochabugapis.adapt.runtime.v1.TimestampRange"> & {
161
+ /**
162
+ * Start
163
+ *
164
+ * @generated from field: google.protobuf.Timestamp start = 1;
165
+ */
166
+ start?: Timestamp;
167
+ /**
168
+ * End
169
+ *
170
+ * @generated from field: google.protobuf.Timestamp end = 2;
171
+ */
172
+ end?: Timestamp;
173
+ /**
174
+ * Include start (>= vs >)
175
+ *
176
+ * @generated from field: bool start_inclusive = 3;
177
+ */
178
+ startInclusive: boolean;
179
+ /**
180
+ * Include end (<= vs <)
181
+ *
182
+ * @generated from field: bool end_inclusive = 4;
183
+ */
184
+ endInclusive: boolean;
185
+ };
186
+ /**
187
+ * Timestamp range
188
+ *
189
+ * @generated from message mochabugapis.adapt.runtime.v1.TimestampRange
190
+ */
191
+ export type TimestampRangeJson = {
192
+ /**
193
+ * Start
194
+ *
195
+ * @generated from field: google.protobuf.Timestamp start = 1;
196
+ */
197
+ start?: TimestampJson;
198
+ /**
199
+ * End
200
+ *
201
+ * @generated from field: google.protobuf.Timestamp end = 2;
202
+ */
203
+ end?: TimestampJson;
204
+ /**
205
+ * Include start (>= vs >)
206
+ *
207
+ * @generated from field: bool start_inclusive = 3;
208
+ */
209
+ startInclusive?: boolean;
210
+ /**
211
+ * Include end (<= vs <)
212
+ *
213
+ * @generated from field: bool end_inclusive = 4;
214
+ */
215
+ endInclusive?: boolean;
216
+ };
217
+ /**
218
+ * Describes the message mochabugapis.adapt.runtime.v1.TimestampRange.
219
+ * Use `create(TimestampRangeSchema)` to create a new message.
220
+ */
221
+ export declare const TimestampRangeSchema: GenMessage<TimestampRange, {
222
+ jsonType: TimestampRangeJson;
223
+ }>;
224
+ /**
225
+ * Range query on keys (lexicographic comparison)
226
+ * Examples: "user/" to "user/~", "logs/2024-01/" to "logs/2024-02/"
227
+ * not setting any start or end will scan the entire store
228
+ * Results are always returned in ascending order by key
229
+ *
230
+ * @generated from message mochabugapis.adapt.runtime.v1.SelectOp
231
+ */
232
+ export type SelectOp = Message<"mochabugapis.adapt.runtime.v1.SelectOp"> & {
233
+ /**
234
+ * Not setting the start will be equivalent of fetching from the the empty key
235
+ *
236
+ * @generated from field: optional string start = 1;
237
+ */
238
+ start?: string;
239
+ /**
240
+ * This is required to avoid unbounded queries
241
+ *
242
+ * @generated from field: optional string end = 2;
243
+ */
244
+ end?: string;
245
+ /**
246
+ * Include start (>= vs >)
247
+ *
248
+ * @generated from field: optional bool start_inclusive = 3;
249
+ */
250
+ startInclusive?: boolean;
251
+ /**
252
+ * Include end (<= vs <)
253
+ *
254
+ * @generated from field: optional bool end_inclusive = 4;
255
+ */
256
+ endInclusive?: boolean;
257
+ /**
258
+ * Max results (1-1000), defaults to 100
259
+ *
260
+ * @generated from field: optional int32 limit = 5;
261
+ */
262
+ limit?: number;
263
+ /**
264
+ * An optional page_token to continue the query
265
+ *
266
+ * @generated from field: optional string page_token = 6;
267
+ */
268
+ pageToken?: string;
269
+ };
270
+ /**
271
+ * Range query on keys (lexicographic comparison)
272
+ * Examples: "user/" to "user/~", "logs/2024-01/" to "logs/2024-02/"
273
+ * not setting any start or end will scan the entire store
274
+ * Results are always returned in ascending order by key
275
+ *
276
+ * @generated from message mochabugapis.adapt.runtime.v1.SelectOp
277
+ */
278
+ export type SelectOpJson = {
279
+ /**
280
+ * Not setting the start will be equivalent of fetching from the the empty key
281
+ *
282
+ * @generated from field: optional string start = 1;
283
+ */
284
+ start?: string;
285
+ /**
286
+ * This is required to avoid unbounded queries
287
+ *
288
+ * @generated from field: optional string end = 2;
289
+ */
290
+ end?: string;
291
+ /**
292
+ * Include start (>= vs >)
293
+ *
294
+ * @generated from field: optional bool start_inclusive = 3;
295
+ */
296
+ startInclusive?: boolean;
297
+ /**
298
+ * Include end (<= vs <)
299
+ *
300
+ * @generated from field: optional bool end_inclusive = 4;
301
+ */
302
+ endInclusive?: boolean;
303
+ /**
304
+ * Max results (1-1000), defaults to 100
305
+ *
306
+ * @generated from field: optional int32 limit = 5;
307
+ */
308
+ limit?: number;
309
+ /**
310
+ * An optional page_token to continue the query
311
+ *
312
+ * @generated from field: optional string page_token = 6;
313
+ */
314
+ pageToken?: string;
315
+ };
316
+ /**
317
+ * Describes the message mochabugapis.adapt.runtime.v1.SelectOp.
318
+ * Use `create(SelectOpSchema)` to create a new message.
319
+ */
320
+ export declare const SelectOpSchema: GenMessage<SelectOp, {
321
+ jsonType: SelectOpJson;
322
+ }>;
323
+ /**
324
+ * Batch write (no preconditions)
325
+ * All operations in a batch share the same timestamp.
326
+ * Interfering operations on the same key have undefined order.
327
+ *
328
+ * @generated from message mochabugapis.adapt.runtime.v1.WriteOperation
329
+ */
330
+ export type WriteOperation = Message<"mochabugapis.adapt.runtime.v1.WriteOperation"> & {
331
+ /**
332
+ * Operation
333
+ *
334
+ * @generated from oneof mochabugapis.adapt.runtime.v1.WriteOperation.operation
335
+ */
336
+ operation: {
337
+ /**
338
+ * Insert
339
+ *
340
+ * @generated from field: mochabugapis.adapt.runtime.v1.InsertOp insert = 1;
341
+ */
342
+ value: InsertOp;
343
+ case: "insert";
344
+ } | {
345
+ /**
346
+ * Delete
347
+ *
348
+ * @generated from field: mochabugapis.adapt.runtime.v1.DeleteOp delete = 2;
349
+ */
350
+ value: DeleteOp;
351
+ case: "delete";
352
+ } | {
353
+ /**
354
+ * Range delete
355
+ *
356
+ * @generated from field: mochabugapis.adapt.runtime.v1.RangeDeleteOp range_delete = 3;
357
+ */
358
+ value: RangeDeleteOp;
359
+ case: "rangeDelete";
360
+ } | {
361
+ case: undefined;
362
+ value?: undefined;
363
+ };
364
+ };
365
+ /**
366
+ * Batch write (no preconditions)
367
+ * All operations in a batch share the same timestamp.
368
+ * Interfering operations on the same key have undefined order.
369
+ *
370
+ * @generated from message mochabugapis.adapt.runtime.v1.WriteOperation
371
+ */
372
+ export type WriteOperationJson = {
373
+ /**
374
+ * Insert
375
+ *
376
+ * @generated from field: mochabugapis.adapt.runtime.v1.InsertOp insert = 1;
377
+ */
378
+ insert?: InsertOpJson;
379
+ /**
380
+ * Delete
381
+ *
382
+ * @generated from field: mochabugapis.adapt.runtime.v1.DeleteOp delete = 2;
383
+ */
384
+ delete?: DeleteOpJson;
385
+ /**
386
+ * Range delete
387
+ *
388
+ * @generated from field: mochabugapis.adapt.runtime.v1.RangeDeleteOp range_delete = 3;
389
+ */
390
+ rangeDelete?: RangeDeleteOpJson;
391
+ };
392
+ /**
393
+ * Describes the message mochabugapis.adapt.runtime.v1.WriteOperation.
394
+ * Use `create(WriteOperationSchema)` to create a new message.
395
+ */
396
+ export declare const WriteOperationSchema: GenMessage<WriteOperation, {
397
+ jsonType: WriteOperationJson;
398
+ }>;
399
+ /**
400
+ * Single write (supports preconditions)
401
+ *
402
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalWriteOperation
403
+ */
404
+ export type ConditionalWriteOperation = Message<"mochabugapis.adapt.runtime.v1.ConditionalWriteOperation"> & {
405
+ /**
406
+ * Operation
407
+ *
408
+ * @generated from oneof mochabugapis.adapt.runtime.v1.ConditionalWriteOperation.operation
409
+ */
410
+ operation: {
411
+ /**
412
+ * Insert
413
+ *
414
+ * @generated from field: mochabugapis.adapt.runtime.v1.ConditionalInsertOp insert = 1;
415
+ */
416
+ value: ConditionalInsertOp;
417
+ case: "insert";
418
+ } | {
419
+ /**
420
+ * Delete
421
+ *
422
+ * @generated from field: mochabugapis.adapt.runtime.v1.ConditionalDeleteOp delete = 2;
423
+ */
424
+ value: ConditionalDeleteOp;
425
+ case: "delete";
426
+ } | {
427
+ case: undefined;
428
+ value?: undefined;
429
+ };
430
+ };
431
+ /**
432
+ * Single write (supports preconditions)
433
+ *
434
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalWriteOperation
435
+ */
436
+ export type ConditionalWriteOperationJson = {
437
+ /**
438
+ * Insert
439
+ *
440
+ * @generated from field: mochabugapis.adapt.runtime.v1.ConditionalInsertOp insert = 1;
441
+ */
442
+ insert?: ConditionalInsertOpJson;
443
+ /**
444
+ * Delete
445
+ *
446
+ * @generated from field: mochabugapis.adapt.runtime.v1.ConditionalDeleteOp delete = 2;
447
+ */
448
+ delete?: ConditionalDeleteOpJson;
449
+ };
450
+ /**
451
+ * Describes the message mochabugapis.adapt.runtime.v1.ConditionalWriteOperation.
452
+ * Use `create(ConditionalWriteOperationSchema)` to create a new message.
453
+ */
454
+ export declare const ConditionalWriteOperationSchema: GenMessage<ConditionalWriteOperation, {
455
+ jsonType: ConditionalWriteOperationJson;
456
+ }>;
457
+ /**
458
+ * Range delete, works like SelectOp for defining the range
459
+ * For example, to delete all keys with prefix "user/", set start="user/" and end="user/~"
460
+ *
461
+ * @generated from message mochabugapis.adapt.runtime.v1.RangeDeleteOp
462
+ */
463
+ export type RangeDeleteOp = Message<"mochabugapis.adapt.runtime.v1.RangeDeleteOp"> & {
464
+ /**
465
+ * Not setting the start will be equivalent of deleting from the the empty key
466
+ *
467
+ * @generated from field: optional string start = 1;
468
+ */
469
+ start?: string;
470
+ /**
471
+ * This is required to avoid unbounded deletes
472
+ *
473
+ * @generated from field: optional string end = 2;
474
+ */
475
+ end?: string;
476
+ /**
477
+ * Include start (>= vs >)
478
+ *
479
+ * @generated from field: optional bool start_inclusive = 3;
480
+ */
481
+ startInclusive?: boolean;
482
+ /**
483
+ * Include end (<= vs <)
484
+ *
485
+ * @generated from field: optional bool end_inclusive = 4;
486
+ */
487
+ endInclusive?: boolean;
488
+ };
489
+ /**
490
+ * Range delete, works like SelectOp for defining the range
491
+ * For example, to delete all keys with prefix "user/", set start="user/" and end="user/~"
492
+ *
493
+ * @generated from message mochabugapis.adapt.runtime.v1.RangeDeleteOp
494
+ */
495
+ export type RangeDeleteOpJson = {
496
+ /**
497
+ * Not setting the start will be equivalent of deleting from the the empty key
498
+ *
499
+ * @generated from field: optional string start = 1;
500
+ */
501
+ start?: string;
502
+ /**
503
+ * This is required to avoid unbounded deletes
504
+ *
505
+ * @generated from field: optional string end = 2;
506
+ */
507
+ end?: string;
508
+ /**
509
+ * Include start (>= vs >)
510
+ *
511
+ * @generated from field: optional bool start_inclusive = 3;
512
+ */
513
+ startInclusive?: boolean;
514
+ /**
515
+ * Include end (<= vs <)
516
+ *
517
+ * @generated from field: optional bool end_inclusive = 4;
518
+ */
519
+ endInclusive?: boolean;
520
+ };
521
+ /**
522
+ * Describes the message mochabugapis.adapt.runtime.v1.RangeDeleteOp.
523
+ * Use `create(RangeDeleteOpSchema)` to create a new message.
524
+ */
525
+ export declare const RangeDeleteOpSchema: GenMessage<RangeDeleteOp, {
526
+ jsonType: RangeDeleteOpJson;
527
+ }>;
528
+ /**
529
+ * Insert
530
+ *
531
+ * @generated from message mochabugapis.adapt.runtime.v1.InsertOp
532
+ */
533
+ export type InsertOp = Message<"mochabugapis.adapt.runtime.v1.InsertOp"> & {
534
+ /**
535
+ * Key
536
+ *
537
+ * @generated from field: string key = 1;
538
+ */
539
+ key: string;
540
+ /**
541
+ * Value
542
+ *
543
+ * @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
544
+ */
545
+ value?: PutValue;
546
+ };
547
+ /**
548
+ * Insert
549
+ *
550
+ * @generated from message mochabugapis.adapt.runtime.v1.InsertOp
551
+ */
552
+ export type InsertOpJson = {
553
+ /**
554
+ * Key
555
+ *
556
+ * @generated from field: string key = 1;
557
+ */
558
+ key?: string;
559
+ /**
560
+ * Value
561
+ *
562
+ * @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
563
+ */
564
+ value?: PutValueJson;
565
+ };
566
+ /**
567
+ * Describes the message mochabugapis.adapt.runtime.v1.InsertOp.
568
+ * Use `create(InsertOpSchema)` to create a new message.
569
+ */
570
+ export declare const InsertOpSchema: GenMessage<InsertOp, {
571
+ jsonType: InsertOpJson;
572
+ }>;
573
+ /**
574
+ * Delete
575
+ *
576
+ * @generated from message mochabugapis.adapt.runtime.v1.DeleteOp
577
+ */
578
+ export type DeleteOp = Message<"mochabugapis.adapt.runtime.v1.DeleteOp"> & {
579
+ /**
580
+ * Key
581
+ *
582
+ * @generated from field: string key = 1;
583
+ */
584
+ key: string;
585
+ };
586
+ /**
587
+ * Delete
588
+ *
589
+ * @generated from message mochabugapis.adapt.runtime.v1.DeleteOp
590
+ */
591
+ export type DeleteOpJson = {
592
+ /**
593
+ * Key
594
+ *
595
+ * @generated from field: string key = 1;
596
+ */
597
+ key?: string;
598
+ };
599
+ /**
600
+ * Describes the message mochabugapis.adapt.runtime.v1.DeleteOp.
601
+ * Use `create(DeleteOpSchema)` to create a new message.
602
+ */
603
+ export declare const DeleteOpSchema: GenMessage<DeleteOp, {
604
+ jsonType: DeleteOpJson;
605
+ }>;
606
+ /**
607
+ * Conditional insert
608
+ *
609
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalInsertOp
610
+ */
611
+ export type ConditionalInsertOp = Message<"mochabugapis.adapt.runtime.v1.ConditionalInsertOp"> & {
612
+ /**
613
+ * Key
614
+ *
615
+ * @generated from field: string key = 1;
616
+ */
617
+ key: string;
618
+ /**
619
+ * Value
620
+ *
621
+ * @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
622
+ */
623
+ value?: PutValue;
624
+ /**
625
+ * Precondition
626
+ *
627
+ * @generated from field: optional mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition precondition = 3;
628
+ */
629
+ precondition?: ConditionalInsertOp_Precondition;
630
+ };
631
+ /**
632
+ * Conditional insert
633
+ *
634
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalInsertOp
635
+ */
636
+ export type ConditionalInsertOpJson = {
637
+ /**
638
+ * Key
639
+ *
640
+ * @generated from field: string key = 1;
641
+ */
642
+ key?: string;
643
+ /**
644
+ * Value
645
+ *
646
+ * @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
647
+ */
648
+ value?: PutValueJson;
649
+ /**
650
+ * Precondition
651
+ *
652
+ * @generated from field: optional mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition precondition = 3;
653
+ */
654
+ precondition?: ConditionalInsertOp_PreconditionJson;
655
+ };
656
+ /**
657
+ * Describes the message mochabugapis.adapt.runtime.v1.ConditionalInsertOp.
658
+ * Use `create(ConditionalInsertOpSchema)` to create a new message.
659
+ */
660
+ export declare const ConditionalInsertOpSchema: GenMessage<ConditionalInsertOp, {
661
+ jsonType: ConditionalInsertOpJson;
662
+ }>;
663
+ /**
664
+ * Precondition
665
+ *
666
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition
667
+ */
668
+ export type ConditionalInsertOp_Precondition = Message<"mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition"> & {
669
+ /**
670
+ * Timestamp
671
+ *
672
+ * @generated from oneof mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition.timestamp_condition
673
+ */
674
+ timestampCondition: {
675
+ /**
676
+ * Exact match
677
+ *
678
+ * @generated from field: google.protobuf.Timestamp last_modified_equals = 1;
679
+ */
680
+ value: Timestamp;
681
+ case: "lastModifiedEquals";
682
+ } | {
683
+ /**
684
+ * Range
685
+ *
686
+ * @generated from field: mochabugapis.adapt.runtime.v1.TimestampRange last_modified_range = 2;
687
+ */
688
+ value: TimestampRange;
689
+ case: "lastModifiedRange";
690
+ } | {
691
+ case: undefined;
692
+ value?: undefined;
693
+ };
694
+ /**
695
+ * ETag
696
+ *
697
+ * @generated from field: optional string etag = 4;
698
+ */
699
+ etag?: string;
700
+ /**
701
+ * Fail if exists
702
+ *
703
+ * @generated from field: optional bool fail_if_exists = 5;
704
+ */
705
+ failIfExists?: boolean;
706
+ };
707
+ /**
708
+ * Precondition
709
+ *
710
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition
711
+ */
712
+ export type ConditionalInsertOp_PreconditionJson = {
713
+ /**
714
+ * Exact match
715
+ *
716
+ * @generated from field: google.protobuf.Timestamp last_modified_equals = 1;
717
+ */
718
+ lastModifiedEquals?: TimestampJson;
719
+ /**
720
+ * Range
721
+ *
722
+ * @generated from field: mochabugapis.adapt.runtime.v1.TimestampRange last_modified_range = 2;
723
+ */
724
+ lastModifiedRange?: TimestampRangeJson;
725
+ /**
726
+ * ETag
727
+ *
728
+ * @generated from field: optional string etag = 4;
729
+ */
730
+ etag?: string;
731
+ /**
732
+ * Fail if exists
733
+ *
734
+ * @generated from field: optional bool fail_if_exists = 5;
735
+ */
736
+ failIfExists?: boolean;
737
+ };
738
+ /**
739
+ * Describes the message mochabugapis.adapt.runtime.v1.ConditionalInsertOp.Precondition.
740
+ * Use `create(ConditionalInsertOp_PreconditionSchema)` to create a new message.
741
+ */
742
+ export declare const ConditionalInsertOp_PreconditionSchema: GenMessage<ConditionalInsertOp_Precondition, {
743
+ jsonType: ConditionalInsertOp_PreconditionJson;
744
+ }>;
745
+ /**
746
+ * Conditional delete
747
+ *
748
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp
749
+ */
750
+ export type ConditionalDeleteOp = Message<"mochabugapis.adapt.runtime.v1.ConditionalDeleteOp"> & {
751
+ /**
752
+ * Key
753
+ *
754
+ * @generated from field: string key = 1;
755
+ */
756
+ key: string;
757
+ /**
758
+ * Precondition
759
+ *
760
+ * @generated from field: optional mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition precondition = 2;
761
+ */
762
+ precondition?: ConditionalDeleteOp_Precondition;
763
+ };
764
+ /**
765
+ * Conditional delete
766
+ *
767
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp
768
+ */
769
+ export type ConditionalDeleteOpJson = {
770
+ /**
771
+ * Key
772
+ *
773
+ * @generated from field: string key = 1;
774
+ */
775
+ key?: string;
776
+ /**
777
+ * Precondition
778
+ *
779
+ * @generated from field: optional mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition precondition = 2;
780
+ */
781
+ precondition?: ConditionalDeleteOp_PreconditionJson;
782
+ };
783
+ /**
784
+ * Describes the message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.
785
+ * Use `create(ConditionalDeleteOpSchema)` to create a new message.
786
+ */
787
+ export declare const ConditionalDeleteOpSchema: GenMessage<ConditionalDeleteOp, {
788
+ jsonType: ConditionalDeleteOpJson;
789
+ }>;
790
+ /**
791
+ * Precondition
792
+ *
793
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition
794
+ */
795
+ export type ConditionalDeleteOp_Precondition = Message<"mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition"> & {
796
+ /**
797
+ * Must exist
798
+ *
799
+ * @generated from field: optional bool must_exists = 1;
800
+ */
801
+ mustExists?: boolean;
802
+ /**
803
+ * Timestamp
804
+ *
805
+ * @generated from oneof mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition.timestamp_condition
806
+ */
807
+ timestampCondition: {
808
+ /**
809
+ * Exact match
810
+ *
811
+ * @generated from field: google.protobuf.Timestamp last_modified_equals = 2;
812
+ */
813
+ value: Timestamp;
814
+ case: "lastModifiedEquals";
815
+ } | {
816
+ /**
817
+ * Range
818
+ *
819
+ * @generated from field: mochabugapis.adapt.runtime.v1.TimestampRange last_modified_range = 3;
820
+ */
821
+ value: TimestampRange;
822
+ case: "lastModifiedRange";
823
+ } | {
824
+ case: undefined;
825
+ value?: undefined;
826
+ };
827
+ /**
828
+ * ETag
829
+ *
830
+ * @generated from field: optional string etag = 4;
831
+ */
832
+ etag?: string;
833
+ };
834
+ /**
835
+ * Precondition
836
+ *
837
+ * @generated from message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition
838
+ */
839
+ export type ConditionalDeleteOp_PreconditionJson = {
840
+ /**
841
+ * Must exist
842
+ *
843
+ * @generated from field: optional bool must_exists = 1;
844
+ */
845
+ mustExists?: boolean;
846
+ /**
847
+ * Exact match
848
+ *
849
+ * @generated from field: google.protobuf.Timestamp last_modified_equals = 2;
850
+ */
851
+ lastModifiedEquals?: TimestampJson;
852
+ /**
853
+ * Range
854
+ *
855
+ * @generated from field: mochabugapis.adapt.runtime.v1.TimestampRange last_modified_range = 3;
856
+ */
857
+ lastModifiedRange?: TimestampRangeJson;
858
+ /**
859
+ * ETag
860
+ *
861
+ * @generated from field: optional string etag = 4;
862
+ */
863
+ etag?: string;
864
+ };
865
+ /**
866
+ * Describes the message mochabugapis.adapt.runtime.v1.ConditionalDeleteOp.Precondition.
867
+ * Use `create(ConditionalDeleteOp_PreconditionSchema)` to create a new message.
868
+ */
869
+ export declare const ConditionalDeleteOp_PreconditionSchema: GenMessage<ConditionalDeleteOp_Precondition, {
870
+ jsonType: ConditionalDeleteOp_PreconditionJson;
871
+ }>;
872
+ //# sourceMappingURL=store_pb.d.ts.map