@mochabug/adapt-web 0.0.16 → 0.0.19
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/dist/genproto/buf/validate/validate_pb.d.ts +4041 -373
- package/dist/genproto/buf/validate/validate_pb.js.map +1 -1
- package/dist/genproto/google/api/annotations_pb.js.map +1 -1
- package/dist/genproto/google/api/client_pb.d.ts +570 -19
- package/dist/genproto/google/api/client_pb.js.map +1 -1
- package/dist/genproto/google/api/http_pb.d.ts +399 -3
- package/dist/genproto/google/api/http_pb.js.map +1 -1
- package/dist/genproto/google/api/launch_stage_pb.d.ts +8 -1
- package/dist/genproto/google/api/launch_stage_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +362 -18
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +33 -2
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +108 -1
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +29 -2
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +42 -4
- package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +39 -2
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +27 -2
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +33 -2
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts +51 -4
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +579 -15
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +174 -12
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +788 -50
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +340 -16
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.js.map +1 -1
- package/dist/index.d.ts +13 -31
- package/dist/index.js +15 -37
- package/dist/index.js.map +1 -1
- package/package.json +20 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime_pb.js","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"runtime_pb.js","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAA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C,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { Timestamp, Value } from "@bufbuild/protobuf/wkt";
|
|
2
|
+
import type { Timestamp, TimestampJson, Value, ValueJson } from "@bufbuild/protobuf/wkt";
|
|
3
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file mochabugapis/adapt/runtime/v1/store.proto.
|
|
@@ -24,11 +24,30 @@ export type PutValue = Message<"mochabugapis.adapt.runtime.v1.PutValue"> & {
|
|
|
24
24
|
*/
|
|
25
25
|
ttl: number;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Represents the data to be stored, along with its TTL
|
|
29
|
+
*
|
|
30
|
+
* @generated from message mochabugapis.adapt.runtime.v1.PutValue
|
|
31
|
+
*/
|
|
32
|
+
export type PutValueJson = {
|
|
33
|
+
/**
|
|
34
|
+
* The actual value (can be anything, even not even set)
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: google.protobuf.Value value = 1;
|
|
37
|
+
*/
|
|
38
|
+
value?: ValueJson;
|
|
39
|
+
/**
|
|
40
|
+
* Time-to-live in seconds. If zero or negative, no expiration
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: int32 ttl = 2;
|
|
43
|
+
*/
|
|
44
|
+
ttl?: number;
|
|
45
|
+
};
|
|
27
46
|
/**
|
|
28
47
|
* Describes the message mochabugapis.adapt.runtime.v1.PutValue.
|
|
29
48
|
* Use `create(PutValueSchema)` to create a new message.
|
|
30
49
|
*/
|
|
31
|
-
export declare const PutValueSchema: GenMessage<PutValue>;
|
|
50
|
+
export declare const PutValueSchema: GenMessage<PutValue, PutValueJson>;
|
|
32
51
|
/**
|
|
33
52
|
* Represents the data to be stored, along with its TTL
|
|
34
53
|
*
|
|
@@ -60,11 +79,42 @@ export type GetValue = Message<"mochabugapis.adapt.runtime.v1.GetValue"> & {
|
|
|
60
79
|
*/
|
|
61
80
|
etag: string;
|
|
62
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Represents the data to be stored, along with its TTL
|
|
84
|
+
*
|
|
85
|
+
* @generated from message mochabugapis.adapt.runtime.v1.GetValue
|
|
86
|
+
*/
|
|
87
|
+
export type GetValueJson = {
|
|
88
|
+
/**
|
|
89
|
+
* The actual value
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: google.protobuf.Value value = 1;
|
|
92
|
+
*/
|
|
93
|
+
value?: ValueJson;
|
|
94
|
+
/**
|
|
95
|
+
* Time-to-live in seconds. If zero or negative, no expiration
|
|
96
|
+
*
|
|
97
|
+
* @generated from field: int32 ttl = 2;
|
|
98
|
+
*/
|
|
99
|
+
ttl?: number;
|
|
100
|
+
/**
|
|
101
|
+
* The timestamp when the value was last modified
|
|
102
|
+
*
|
|
103
|
+
* @generated from field: google.protobuf.Timestamp last_modified = 3;
|
|
104
|
+
*/
|
|
105
|
+
lastModified?: TimestampJson;
|
|
106
|
+
/**
|
|
107
|
+
* The corresponding etag of the value
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string etag = 4;
|
|
110
|
+
*/
|
|
111
|
+
etag?: string;
|
|
112
|
+
};
|
|
63
113
|
/**
|
|
64
114
|
* Describes the message mochabugapis.adapt.runtime.v1.GetValue.
|
|
65
115
|
* Use `create(GetValueSchema)` to create a new message.
|
|
66
116
|
*/
|
|
67
|
-
export declare const GetValueSchema: GenMessage<GetValue>;
|
|
117
|
+
export declare const GetValueSchema: GenMessage<GetValue, GetValueJson>;
|
|
68
118
|
/**
|
|
69
119
|
* Ensures the last_modified timestamp is compared based on the operator
|
|
70
120
|
*
|
|
@@ -84,11 +134,30 @@ export type TimestampCondition = Message<"mochabugapis.adapt.runtime.v1.Timestam
|
|
|
84
134
|
*/
|
|
85
135
|
timestamp?: Timestamp;
|
|
86
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Ensures the last_modified timestamp is compared based on the operator
|
|
139
|
+
*
|
|
140
|
+
* @generated from message mochabugapis.adapt.runtime.v1.TimestampCondition
|
|
141
|
+
*/
|
|
142
|
+
export type TimestampConditionJson = {
|
|
143
|
+
/**
|
|
144
|
+
* The comparison operator for the timestamp
|
|
145
|
+
*
|
|
146
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Operator operator = 1;
|
|
147
|
+
*/
|
|
148
|
+
operator?: OperatorJson;
|
|
149
|
+
/**
|
|
150
|
+
* The timestamp to compare against
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 2;
|
|
153
|
+
*/
|
|
154
|
+
timestamp?: TimestampJson;
|
|
155
|
+
};
|
|
87
156
|
/**
|
|
88
157
|
* Describes the message mochabugapis.adapt.runtime.v1.TimestampCondition.
|
|
89
158
|
* Use `create(TimestampConditionSchema)` to create a new message.
|
|
90
159
|
*/
|
|
91
|
-
export declare const TimestampConditionSchema: GenMessage<TimestampCondition>;
|
|
160
|
+
export declare const TimestampConditionSchema: GenMessage<TimestampCondition, TimestampConditionJson>;
|
|
92
161
|
/**
|
|
93
162
|
* Ensures the etag is compared based on the specified operator
|
|
94
163
|
*
|
|
@@ -108,11 +177,30 @@ export type EtagCondition = Message<"mochabugapis.adapt.runtime.v1.EtagCondition
|
|
|
108
177
|
*/
|
|
109
178
|
etag: string;
|
|
110
179
|
};
|
|
180
|
+
/**
|
|
181
|
+
* Ensures the etag is compared based on the specified operator
|
|
182
|
+
*
|
|
183
|
+
* @generated from message mochabugapis.adapt.runtime.v1.EtagCondition
|
|
184
|
+
*/
|
|
185
|
+
export type EtagConditionJson = {
|
|
186
|
+
/**
|
|
187
|
+
* The comparison operator for the etag
|
|
188
|
+
*
|
|
189
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Operator operator = 1;
|
|
190
|
+
*/
|
|
191
|
+
operator?: OperatorJson;
|
|
192
|
+
/**
|
|
193
|
+
* The etag to compare against
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: string etag = 2;
|
|
196
|
+
*/
|
|
197
|
+
etag?: string;
|
|
198
|
+
};
|
|
111
199
|
/**
|
|
112
200
|
* Describes the message mochabugapis.adapt.runtime.v1.EtagCondition.
|
|
113
201
|
* Use `create(EtagConditionSchema)` to create a new message.
|
|
114
202
|
*/
|
|
115
|
-
export declare const EtagConditionSchema: GenMessage<EtagCondition>;
|
|
203
|
+
export declare const EtagConditionSchema: GenMessage<EtagCondition, EtagConditionJson>;
|
|
116
204
|
/**
|
|
117
205
|
* Represents preconditions for write operations on a value
|
|
118
206
|
*
|
|
@@ -138,11 +226,36 @@ export type Precondition = Message<"mochabugapis.adapt.runtime.v1.Precondition">
|
|
|
138
226
|
*/
|
|
139
227
|
etag?: EtagCondition;
|
|
140
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* Represents preconditions for write operations on a value
|
|
231
|
+
*
|
|
232
|
+
* @generated from message mochabugapis.adapt.runtime.v1.Precondition
|
|
233
|
+
*/
|
|
234
|
+
export type PreconditionJson = {
|
|
235
|
+
/**
|
|
236
|
+
* Specifies whether the key should exist (true) or not (false)
|
|
237
|
+
*
|
|
238
|
+
* @generated from field: optional bool exists = 1;
|
|
239
|
+
*/
|
|
240
|
+
exists?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Specifies the conditions for the last modified timestamp of the value (cannot be used for insert operations!)
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: repeated mochabugapis.adapt.runtime.v1.TimestampCondition last_modified = 2;
|
|
245
|
+
*/
|
|
246
|
+
lastModified?: TimestampConditionJson[];
|
|
247
|
+
/**
|
|
248
|
+
* Specifies the conditions for the etag of the value (cannot be used for insert operations!)
|
|
249
|
+
*
|
|
250
|
+
* @generated from field: optional mochabugapis.adapt.runtime.v1.EtagCondition etag = 3;
|
|
251
|
+
*/
|
|
252
|
+
etag?: EtagConditionJson;
|
|
253
|
+
};
|
|
141
254
|
/**
|
|
142
255
|
* Describes the message mochabugapis.adapt.runtime.v1.Precondition.
|
|
143
256
|
* Use `create(PreconditionSchema)` to create a new message.
|
|
144
257
|
*/
|
|
145
|
-
export declare const PreconditionSchema: GenMessage<Precondition>;
|
|
258
|
+
export declare const PreconditionSchema: GenMessage<Precondition, PreconditionJson>;
|
|
146
259
|
/**
|
|
147
260
|
* Operation to update a key-value pair.
|
|
148
261
|
* Outcomes:
|
|
@@ -173,11 +286,41 @@ export type UpdateOp = Message<"mochabugapis.adapt.runtime.v1.UpdateOp"> & {
|
|
|
173
286
|
*/
|
|
174
287
|
precondition?: Precondition;
|
|
175
288
|
};
|
|
289
|
+
/**
|
|
290
|
+
* Operation to update a key-value pair.
|
|
291
|
+
* Outcomes:
|
|
292
|
+
* If the key already exists, and `fail_if_exists` is true: Status is BAD_REQUEST (HTTP 400)
|
|
293
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
294
|
+
* If the key already exists, and `fail_if_exists` is false or not set: Status is OK (HTTP 200)
|
|
295
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
296
|
+
*
|
|
297
|
+
* @generated from message mochabugapis.adapt.runtime.v1.UpdateOp
|
|
298
|
+
*/
|
|
299
|
+
export type UpdateOpJson = {
|
|
300
|
+
/**
|
|
301
|
+
* The key to be inserted/updated
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: string key = 1;
|
|
304
|
+
*/
|
|
305
|
+
key?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Data to be stored
|
|
308
|
+
*
|
|
309
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
|
|
310
|
+
*/
|
|
311
|
+
value?: PutValueJson;
|
|
312
|
+
/**
|
|
313
|
+
* The precondition of the operation
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 3;
|
|
316
|
+
*/
|
|
317
|
+
precondition?: PreconditionJson;
|
|
318
|
+
};
|
|
176
319
|
/**
|
|
177
320
|
* Describes the message mochabugapis.adapt.runtime.v1.UpdateOp.
|
|
178
321
|
* Use `create(UpdateOpSchema)` to create a new message.
|
|
179
322
|
*/
|
|
180
|
-
export declare const UpdateOpSchema: GenMessage<UpdateOp>;
|
|
323
|
+
export declare const UpdateOpSchema: GenMessage<UpdateOp, UpdateOpJson>;
|
|
181
324
|
/**
|
|
182
325
|
* Operation to insert
|
|
183
326
|
* Outcomes:
|
|
@@ -208,11 +351,41 @@ export type InsertOp = Message<"mochabugapis.adapt.runtime.v1.InsertOp"> & {
|
|
|
208
351
|
*/
|
|
209
352
|
precondition?: Precondition;
|
|
210
353
|
};
|
|
354
|
+
/**
|
|
355
|
+
* Operation to insert
|
|
356
|
+
* Outcomes:
|
|
357
|
+
* If the key already exists, and `fail_if_exists` is true: Status is BAD_REQUEST (HTTP 400)
|
|
358
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
359
|
+
* If the key already exists, and `fail_if_exists` is false or not set: Status is OK (HTTP 200)
|
|
360
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
361
|
+
*
|
|
362
|
+
* @generated from message mochabugapis.adapt.runtime.v1.InsertOp
|
|
363
|
+
*/
|
|
364
|
+
export type InsertOpJson = {
|
|
365
|
+
/**
|
|
366
|
+
* The key to be inserted/updated
|
|
367
|
+
*
|
|
368
|
+
* @generated from field: string key = 1;
|
|
369
|
+
*/
|
|
370
|
+
key?: string;
|
|
371
|
+
/**
|
|
372
|
+
* Data to be stored
|
|
373
|
+
*
|
|
374
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
|
|
375
|
+
*/
|
|
376
|
+
value?: PutValueJson;
|
|
377
|
+
/**
|
|
378
|
+
* The precondition of the operation
|
|
379
|
+
*
|
|
380
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 3;
|
|
381
|
+
*/
|
|
382
|
+
precondition?: PreconditionJson;
|
|
383
|
+
};
|
|
211
384
|
/**
|
|
212
385
|
* Describes the message mochabugapis.adapt.runtime.v1.InsertOp.
|
|
213
386
|
* Use `create(InsertOpSchema)` to create a new message.
|
|
214
387
|
*/
|
|
215
|
-
export declare const InsertOpSchema: GenMessage<InsertOp>;
|
|
388
|
+
export declare const InsertOpSchema: GenMessage<InsertOp, InsertOpJson>;
|
|
216
389
|
/**
|
|
217
390
|
* Operation to retrieve the value of a given key.
|
|
218
391
|
* Outcomes:
|
|
@@ -230,11 +403,28 @@ export type GetOp = Message<"mochabugapis.adapt.runtime.v1.GetOp"> & {
|
|
|
230
403
|
*/
|
|
231
404
|
key: string;
|
|
232
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* Operation to retrieve the value of a given key.
|
|
408
|
+
* Outcomes:
|
|
409
|
+
* If the key exists and data is successfully fetched: Status is OK (HTTP 200)
|
|
410
|
+
* If the key does not exist: Status is NOT_FOUND (HTTP 404)
|
|
411
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
412
|
+
*
|
|
413
|
+
* @generated from message mochabugapis.adapt.runtime.v1.GetOp
|
|
414
|
+
*/
|
|
415
|
+
export type GetOpJson = {
|
|
416
|
+
/**
|
|
417
|
+
* The key to be fetched
|
|
418
|
+
*
|
|
419
|
+
* @generated from field: string key = 1;
|
|
420
|
+
*/
|
|
421
|
+
key?: string;
|
|
422
|
+
};
|
|
233
423
|
/**
|
|
234
424
|
* Describes the message mochabugapis.adapt.runtime.v1.GetOp.
|
|
235
425
|
* Use `create(GetOpSchema)` to create a new message.
|
|
236
426
|
*/
|
|
237
|
-
export declare const GetOpSchema: GenMessage<GetOp>;
|
|
427
|
+
export declare const GetOpSchema: GenMessage<GetOp, GetOpJson>;
|
|
238
428
|
/**
|
|
239
429
|
* Operation to delete a given key-value pair.
|
|
240
430
|
* Outcomes:
|
|
@@ -259,11 +449,35 @@ export type DeleteOp = Message<"mochabugapis.adapt.runtime.v1.DeleteOp"> & {
|
|
|
259
449
|
*/
|
|
260
450
|
precondition?: Precondition;
|
|
261
451
|
};
|
|
452
|
+
/**
|
|
453
|
+
* Operation to delete a given key-value pair.
|
|
454
|
+
* Outcomes:
|
|
455
|
+
* If the key exists and is successfully deleted: Status is NO_CONTENT (HTTP 204)
|
|
456
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
457
|
+
* If the key does not exist (treated as no-op or an error, based on design): Status is NOT_FOUND (HTTP 404) or NO_CONTENT (HTTP 204)
|
|
458
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
459
|
+
*
|
|
460
|
+
* @generated from message mochabugapis.adapt.runtime.v1.DeleteOp
|
|
461
|
+
*/
|
|
462
|
+
export type DeleteOpJson = {
|
|
463
|
+
/**
|
|
464
|
+
* The key to be deleted
|
|
465
|
+
*
|
|
466
|
+
* @generated from field: string key = 1;
|
|
467
|
+
*/
|
|
468
|
+
key?: string;
|
|
469
|
+
/**
|
|
470
|
+
* The precondition of the operation
|
|
471
|
+
*
|
|
472
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 2;
|
|
473
|
+
*/
|
|
474
|
+
precondition?: PreconditionJson;
|
|
475
|
+
};
|
|
262
476
|
/**
|
|
263
477
|
* Describes the message mochabugapis.adapt.runtime.v1.DeleteOp.
|
|
264
478
|
* Use `create(DeleteOpSchema)` to create a new message.
|
|
265
479
|
*/
|
|
266
|
-
export declare const DeleteOpSchema: GenMessage<DeleteOp>;
|
|
480
|
+
export declare const DeleteOpSchema: GenMessage<DeleteOp, DeleteOpJson>;
|
|
267
481
|
/**
|
|
268
482
|
* WriteOperation represents a single operation to be performed on the key-value store.
|
|
269
483
|
* An operation can be of type PutOp, GetOp, or DeleteOp.
|
|
@@ -309,11 +523,40 @@ export type WriteOperation = Message<"mochabugapis.adapt.runtime.v1.WriteOperati
|
|
|
309
523
|
value?: undefined;
|
|
310
524
|
};
|
|
311
525
|
};
|
|
526
|
+
/**
|
|
527
|
+
* WriteOperation represents a single operation to be performed on the key-value store.
|
|
528
|
+
* An operation can be of type PutOp, GetOp, or DeleteOp.
|
|
529
|
+
*
|
|
530
|
+
* @generated from message mochabugapis.adapt.runtime.v1.WriteOperation
|
|
531
|
+
*/
|
|
532
|
+
export type WriteOperationJson = {
|
|
533
|
+
/**
|
|
534
|
+
* `insert_op` represents an operation to insert or update a key-value pair in the store.
|
|
535
|
+
* If this is set, the service will attempt to put the given value associated with the specified key.
|
|
536
|
+
*
|
|
537
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.InsertOp insert_op = 1;
|
|
538
|
+
*/
|
|
539
|
+
insertOp?: InsertOpJson;
|
|
540
|
+
/**
|
|
541
|
+
* `update_op` represents an operation to insert or update a key-value pair in the store.
|
|
542
|
+
* If this is set, the service will attempt to put the given value associated with the specified key.
|
|
543
|
+
*
|
|
544
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.UpdateOp update_op = 2;
|
|
545
|
+
*/
|
|
546
|
+
updateOp?: UpdateOpJson;
|
|
547
|
+
/**
|
|
548
|
+
* `delete_op` represents an operation to delete a key-value pair from the store using the specified key.
|
|
549
|
+
* If this is set, the service will attempt to delete the entry associated with the given key.
|
|
550
|
+
*
|
|
551
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.DeleteOp delete_op = 3;
|
|
552
|
+
*/
|
|
553
|
+
deleteOp?: DeleteOpJson;
|
|
554
|
+
};
|
|
312
555
|
/**
|
|
313
556
|
* Describes the message mochabugapis.adapt.runtime.v1.WriteOperation.
|
|
314
557
|
* Use `create(WriteOperationSchema)` to create a new message.
|
|
315
558
|
*/
|
|
316
|
-
export declare const WriteOperationSchema: GenMessage<WriteOperation>;
|
|
559
|
+
export declare const WriteOperationSchema: GenMessage<WriteOperation, WriteOperationJson>;
|
|
317
560
|
/**
|
|
318
561
|
* ReadOperationResult encapsulates the outcome of a specific read operation performed on the key-value store.
|
|
319
562
|
*
|
|
@@ -343,11 +586,40 @@ export type ReadOperationResult = Message<"mochabugapis.adapt.runtime.v1.ReadOpe
|
|
|
343
586
|
*/
|
|
344
587
|
response?: GetValue;
|
|
345
588
|
};
|
|
589
|
+
/**
|
|
590
|
+
* ReadOperationResult encapsulates the outcome of a specific read operation performed on the key-value store.
|
|
591
|
+
*
|
|
592
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ReadOperationResult
|
|
593
|
+
*/
|
|
594
|
+
export type ReadOperationResultJson = {
|
|
595
|
+
/**
|
|
596
|
+
* `key` represents the specific key targeted by the operation in the key-value store.
|
|
597
|
+
* It provides context to the client about which key this particular result pertains to.
|
|
598
|
+
*
|
|
599
|
+
* @generated from field: string key = 1;
|
|
600
|
+
*/
|
|
601
|
+
key?: string;
|
|
602
|
+
/**
|
|
603
|
+
* `status` indicates the outcome of the operation performed on the key.
|
|
604
|
+
* This status can be used by the client to quickly understand if the operation
|
|
605
|
+
* was successful or encountered an error, and what kind of error if so.
|
|
606
|
+
*
|
|
607
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.OperationStatus status = 2;
|
|
608
|
+
*/
|
|
609
|
+
status?: OperationStatusJson;
|
|
610
|
+
/**
|
|
611
|
+
* `response` is a oneof field that provides more specific details about the result of the operation.
|
|
612
|
+
* Depending on the operation type and its outcome, the value is set or not
|
|
613
|
+
*
|
|
614
|
+
* @generated from field: optional mochabugapis.adapt.runtime.v1.GetValue response = 3;
|
|
615
|
+
*/
|
|
616
|
+
response?: GetValueJson;
|
|
617
|
+
};
|
|
346
618
|
/**
|
|
347
619
|
* Describes the message mochabugapis.adapt.runtime.v1.ReadOperationResult.
|
|
348
620
|
* Use `create(ReadOperationResultSchema)` to create a new message.
|
|
349
621
|
*/
|
|
350
|
-
export declare const ReadOperationResultSchema: GenMessage<ReadOperationResult>;
|
|
622
|
+
export declare const ReadOperationResultSchema: GenMessage<ReadOperationResult, ReadOperationResultJson>;
|
|
351
623
|
/**
|
|
352
624
|
* WriteOperationResult encapsulates the outcome of a specific write operation performed on the key-value store
|
|
353
625
|
*
|
|
@@ -382,11 +654,45 @@ export type WriteOperationResult = Message<"mochabugapis.adapt.runtime.v1.WriteO
|
|
|
382
654
|
*/
|
|
383
655
|
etag: string;
|
|
384
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* WriteOperationResult encapsulates the outcome of a specific write operation performed on the key-value store
|
|
659
|
+
*
|
|
660
|
+
* @generated from message mochabugapis.adapt.runtime.v1.WriteOperationResult
|
|
661
|
+
*/
|
|
662
|
+
export type WriteOperationResultJson = {
|
|
663
|
+
/**
|
|
664
|
+
* `key` represents the specific key targeted by the operation in the key-value store.
|
|
665
|
+
* It provides context to the client about which key this particular result pertains to.
|
|
666
|
+
*
|
|
667
|
+
* @generated from field: string key = 1;
|
|
668
|
+
*/
|
|
669
|
+
key?: string;
|
|
670
|
+
/**
|
|
671
|
+
* `status` indicates the outcome of the operation performed on the key.
|
|
672
|
+
* This status can be used by the client to quickly understand if the operation
|
|
673
|
+
* was successful or encountered an error, and what kind of error if so.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.OperationStatus status = 2;
|
|
676
|
+
*/
|
|
677
|
+
status?: OperationStatusJson;
|
|
678
|
+
/**
|
|
679
|
+
* The timestamp when the value was written
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: google.protobuf.Timestamp last_modified = 3;
|
|
682
|
+
*/
|
|
683
|
+
lastModified?: TimestampJson;
|
|
684
|
+
/**
|
|
685
|
+
* The corresponding etag of the value
|
|
686
|
+
*
|
|
687
|
+
* @generated from field: string etag = 4;
|
|
688
|
+
*/
|
|
689
|
+
etag?: string;
|
|
690
|
+
};
|
|
385
691
|
/**
|
|
386
692
|
* Describes the message mochabugapis.adapt.runtime.v1.WriteOperationResult.
|
|
387
693
|
* Use `create(WriteOperationResultSchema)` to create a new message.
|
|
388
694
|
*/
|
|
389
|
-
export declare const WriteOperationResultSchema: GenMessage<WriteOperationResult>;
|
|
695
|
+
export declare const WriteOperationResultSchema: GenMessage<WriteOperationResult, WriteOperationResultJson>;
|
|
390
696
|
/**
|
|
391
697
|
* Operators for comparison
|
|
392
698
|
*
|
|
@@ -436,10 +742,16 @@ export declare enum Operator {
|
|
|
436
742
|
*/
|
|
437
743
|
NOT_EQUAL = 6
|
|
438
744
|
}
|
|
745
|
+
/**
|
|
746
|
+
* Operators for comparison
|
|
747
|
+
*
|
|
748
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.Operator
|
|
749
|
+
*/
|
|
750
|
+
export type OperatorJson = "OPERATOR_UNSPECIFIED" | "OPERATOR_EQUAL" | "OPERATOR_GREATER_THAN" | "OPERATOR_GREATER_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_NOT_EQUAL";
|
|
439
751
|
/**
|
|
440
752
|
* Describes the enum mochabugapis.adapt.runtime.v1.Operator.
|
|
441
753
|
*/
|
|
442
|
-
export declare const OperatorSchema: GenEnum<Operator>;
|
|
754
|
+
export declare const OperatorSchema: GenEnum<Operator, OperatorJson>;
|
|
443
755
|
/**
|
|
444
756
|
* GlobalResponseStatus represents the overall status of a batch operation.
|
|
445
757
|
*
|
|
@@ -477,10 +789,16 @@ export declare enum GlobalResponseStatus {
|
|
|
477
789
|
*/
|
|
478
790
|
INTERNAL_ERROR = 4
|
|
479
791
|
}
|
|
792
|
+
/**
|
|
793
|
+
* GlobalResponseStatus represents the overall status of a batch operation.
|
|
794
|
+
*
|
|
795
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.GlobalResponseStatus
|
|
796
|
+
*/
|
|
797
|
+
export type GlobalResponseStatusJson = "GLOBAL_RESPONSE_STATUS_UNSPECIFIED" | "GLOBAL_RESPONSE_STATUS_SUCCESS" | "GLOBAL_RESPONSE_STATUS_PARTIAL_SUCCESS" | "GLOBAL_RESPONSE_STATUS_FAILED" | "GLOBAL_RESPONSE_STATUS_INTERNAL_ERROR";
|
|
480
798
|
/**
|
|
481
799
|
* Describes the enum mochabugapis.adapt.runtime.v1.GlobalResponseStatus.
|
|
482
800
|
*/
|
|
483
|
-
export declare const GlobalResponseStatusSchema: GenEnum<GlobalResponseStatus>;
|
|
801
|
+
export declare const GlobalResponseStatusSchema: GenEnum<GlobalResponseStatus, GlobalResponseStatusJson>;
|
|
484
802
|
/**
|
|
485
803
|
* OperationStatus represents the status of individual operations in a batch.
|
|
486
804
|
*
|
|
@@ -524,7 +842,13 @@ export declare enum OperationStatus {
|
|
|
524
842
|
*/
|
|
525
843
|
INTERNAL_SERVER_ERROR = 5
|
|
526
844
|
}
|
|
845
|
+
/**
|
|
846
|
+
* OperationStatus represents the status of individual operations in a batch.
|
|
847
|
+
*
|
|
848
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.OperationStatus
|
|
849
|
+
*/
|
|
850
|
+
export type OperationStatusJson = "OPERATION_STATUS_UNSPECIFIED" | "OPERATION_STATUS_OK" | "OPERATION_STATUS_BAD_REQUEST" | "OPERATION_STATUS_NOT_FOUND" | "OPERATION_STATUS_PRECONDITION_FAILED" | "OPERATION_STATUS_INTERNAL_SERVER_ERROR";
|
|
527
851
|
/**
|
|
528
852
|
* Describes the enum mochabugapis.adapt.runtime.v1.OperationStatus.
|
|
529
853
|
*/
|
|
530
|
-
export declare const OperationStatusSchema: GenEnum<OperationStatus>;
|
|
854
|
+
export declare const OperationStatusSchema: GenEnum<OperationStatus, OperationStatusJson>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store_pb.js","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/runtime/v1/store_pb.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"store_pb.js","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/runtime/v1/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AA;IAEf;;;;OAIG;IACH,qEAAW,CAAA;IAEX;;;;OAIG;IACH,qFAAmB,CAAA;IAEnB;;;;OAIG;IACH,mEAAU,CAAA;IAEV;;;;OAIG;IACH,mFAAkB,CAAA;AACpB,CAAC,EAnCW,oBAAoB,KAApB,oBAAoB,QAmC/B;AASD;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA4D,aAAa,CAC9G,QAAQ,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAN,IAAY,eA0CX;AA1CD,WAAY,eAAe;IACzB;;;;OAIG;IACH,mEAAe,CAAA;IAEf;;;;OAIG;IACH,iDAAM,CAAA;IAEN;;;;OAIG;IACH,mEAAe,CAAA;IAEf;;;;OAIG;IACH,+DAAa,CAAA;IAEb;;;;OAIG;IACH,mFAAuB,CAAA;IAEvB;;;;OAIG;IACH,uFAAyB,CAAA;AAC3B,CAAC,EA1CW,eAAe,KAAf,eAAe,QA0C1B;AASD;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAkD,aAAa,CAC/F,QAAQ,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,48 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare function startSession(opts: StartSessionOpts): Promise<StartSessionResponse>;
|
|
10
|
-
export declare function inheritSession(automation: AutomationId, sessionToken: string): Promise<InheritSessionResponse>;
|
|
11
|
-
export declare function getSession(automation: AutomationId, sessionToken: string): Promise<GetSessionResponse>;
|
|
12
|
-
export declare function readOutput(automation: AutomationId, sessionToken: string): Promise<ReadOutputResponse>;
|
|
13
|
-
export declare function readUrls(automation: AutomationId, sessionToken: string): Promise<ReadUrlsResponse>;
|
|
14
|
-
export declare function stopSession(automation: AutomationId, sessionToken: string): Promise<void>;
|
|
1
|
+
import { ValueJson } from "@bufbuild/protobuf/wkt";
|
|
2
|
+
import { AutomationIdJson, GetSessionResponseJson, InheritSessionResponseJson, ReadOutputResponseJson, ReadUrlsResponseJson, SessionJson, StartSessionRequestJson, StartSessionResponseJson, UrlJson } from "./genproto/mochabugapis/adapt/automations/v1/automations_pb";
|
|
3
|
+
export declare function startSession(req: StartSessionRequestJson, token?: string): Promise<StartSessionResponseJson>;
|
|
4
|
+
export declare function inheritSession(automation: AutomationIdJson, sessionToken: string): Promise<InheritSessionResponseJson>;
|
|
5
|
+
export declare function getSession(automation: AutomationIdJson, sessionToken: string): Promise<GetSessionResponseJson>;
|
|
6
|
+
export declare function readOutput(automation: AutomationIdJson, sessionToken: string): Promise<ReadOutputResponseJson>;
|
|
7
|
+
export declare function readUrls(automation: AutomationIdJson, sessionToken: string): Promise<ReadUrlsResponseJson>;
|
|
8
|
+
export declare function stopSession(automation: AutomationIdJson, sessionToken: string): Promise<void>;
|
|
15
9
|
export declare class RestClientError extends Error {
|
|
16
10
|
status: number;
|
|
17
11
|
statusText: string;
|
|
18
12
|
response: Response;
|
|
19
13
|
constructor(response: Response);
|
|
20
14
|
}
|
|
21
|
-
|
|
22
|
-
type GetSessionResponse = Omit<RawGetSessionResponse, keyof Message<"mochabugapis.adapt.automations.v1.GetSessionResponse">>;
|
|
23
|
-
type InheritSessionResponse = Omit<RawInheritSessionResponse, keyof Message<"mochabugapis.adapt.automations.v1.InheritSessionResponse">>;
|
|
24
|
-
type ReadUrlsResponse = Omit<RawReadUrlsResponse, keyof Message<"mochabugapis.adapt.automations.v1.ReadUrlsResponse">>;
|
|
25
|
-
type Session = Omit<RawSession, keyof Message<"mochabugapis.adapt.automations.v1.Session">>;
|
|
26
|
-
type StartSessionResponse = Omit<RawStartSessionResponse, keyof Message<"mochabugapis.adapt.automations.v1.StartSessionResponse">>;
|
|
27
|
-
type Url = Omit<RawUrl, keyof Message<"mochabugapis.adapt.automations.v1.Url">>;
|
|
28
|
-
interface ReadOutputResponse {
|
|
29
|
-
session: Session;
|
|
30
|
-
outputs: Output[];
|
|
31
|
-
}
|
|
32
|
-
interface Output {
|
|
15
|
+
export interface Output {
|
|
33
16
|
vertex: string;
|
|
34
17
|
data: {
|
|
35
|
-
[key: string]:
|
|
18
|
+
[key: string]: ValueJson;
|
|
36
19
|
};
|
|
37
20
|
created?: Date;
|
|
38
21
|
}
|
|
39
22
|
export type SubscriptionOptions = {
|
|
40
23
|
sessionToken: string;
|
|
41
24
|
session: string;
|
|
42
|
-
automation:
|
|
25
|
+
automation: AutomationIdJson;
|
|
43
26
|
onOutput?: (output: Output) => void;
|
|
44
|
-
onSession?: (session:
|
|
45
|
-
onUrl?: (url:
|
|
27
|
+
onSession?: (session: SessionJson) => void;
|
|
28
|
+
onUrl?: (url: UrlJson) => void;
|
|
46
29
|
};
|
|
47
30
|
export declare class MqttClient {
|
|
48
31
|
private readonly clientId;
|
|
@@ -51,4 +34,3 @@ export declare class MqttClient {
|
|
|
51
34
|
subscribe(opts: SubscriptionOptions): Promise<void>;
|
|
52
35
|
unsubscribe(): Promise<void>;
|
|
53
36
|
}
|
|
54
|
-
export { AutomationId, GetSessionResponse, InheritSessionResponse, Output, ReadOutputResponse, ReadUrlsResponse, Session, StartSessionResponse, Url, };
|