@mochabug/adapt-web 0.0.1-beta
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 +4504 -0
- package/dist/genproto/buf/validate/validate_pb.js +422 -0
- package/dist/genproto/buf/validate/validate_pb.js.map +1 -0
- package/dist/genproto/google/api/annotations_pb.d.ts +13 -0
- package/dist/genproto/google/api/annotations_pb.js +27 -0
- package/dist/genproto/google/api/annotations_pb.js.map +1 -0
- package/dist/genproto/google/api/client_pb.d.ts +795 -0
- package/dist/genproto/google/api/client_pb.js +287 -0
- package/dist/genproto/google/api/client_pb.js.map +1 -0
- package/dist/genproto/google/api/http_pb.d.ts +440 -0
- package/dist/genproto/google/api/http_pb.js +34 -0
- package/dist/genproto/google/api/http_pb.js.map +1 -0
- package/dist/genproto/google/api/launch_stage_pb.d.ts +86 -0
- package/dist/genproto/google/api/launch_stage_pb.js +101 -0
- package/dist/genproto/google/api/launch_stage_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +542 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.js +157 -0
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +43 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.js +26 -0
- package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +117 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.js +25 -0
- package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +39 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.js +26 -0
- package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +43 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js +26 -0
- package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +37 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.js +26 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +43 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.js +26 -0
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts +62 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.js +28 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +815 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js +284 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +224 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js +75 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +1295 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +346 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +530 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.js +225 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +175 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Timestamp, Value } 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
|
+
* Represents the data to be stored, along with its TTL
|
|
10
|
+
*
|
|
11
|
+
* @generated from message mochabugapis.adapt.runtime.v1.PutValue
|
|
12
|
+
*/
|
|
13
|
+
export type PutValue = Message<"mochabugapis.adapt.runtime.v1.PutValue"> & {
|
|
14
|
+
/**
|
|
15
|
+
* The actual value (can be anything, even not even set)
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: google.protobuf.Value value = 1;
|
|
18
|
+
*/
|
|
19
|
+
value?: Value;
|
|
20
|
+
/**
|
|
21
|
+
* Time-to-live in seconds. If zero or negative, no expiration
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: int32 ttl = 2;
|
|
24
|
+
*/
|
|
25
|
+
ttl: number;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message mochabugapis.adapt.runtime.v1.PutValue.
|
|
29
|
+
* Use `create(PutValueSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export declare const PutValueSchema: GenMessage<PutValue>;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the data to be stored, along with its TTL
|
|
34
|
+
*
|
|
35
|
+
* @generated from message mochabugapis.adapt.runtime.v1.GetValue
|
|
36
|
+
*/
|
|
37
|
+
export type GetValue = Message<"mochabugapis.adapt.runtime.v1.GetValue"> & {
|
|
38
|
+
/**
|
|
39
|
+
* The actual value
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: google.protobuf.Value value = 1;
|
|
42
|
+
*/
|
|
43
|
+
value?: Value;
|
|
44
|
+
/**
|
|
45
|
+
* Time-to-live in seconds. If zero or negative, no expiration
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: int32 ttl = 2;
|
|
48
|
+
*/
|
|
49
|
+
ttl: number;
|
|
50
|
+
/**
|
|
51
|
+
* The timestamp when the value was last modified
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: google.protobuf.Timestamp last_modified = 3;
|
|
54
|
+
*/
|
|
55
|
+
lastModified?: Timestamp;
|
|
56
|
+
/**
|
|
57
|
+
* The corresponding etag of the value
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string etag = 4;
|
|
60
|
+
*/
|
|
61
|
+
etag: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message mochabugapis.adapt.runtime.v1.GetValue.
|
|
65
|
+
* Use `create(GetValueSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export declare const GetValueSchema: GenMessage<GetValue>;
|
|
68
|
+
/**
|
|
69
|
+
* Ensures the last_modified timestamp is compared based on the operator
|
|
70
|
+
*
|
|
71
|
+
* @generated from message mochabugapis.adapt.runtime.v1.TimestampCondition
|
|
72
|
+
*/
|
|
73
|
+
export type TimestampCondition = Message<"mochabugapis.adapt.runtime.v1.TimestampCondition"> & {
|
|
74
|
+
/**
|
|
75
|
+
* The comparison operator for the timestamp
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Operator operator = 1;
|
|
78
|
+
*/
|
|
79
|
+
operator: Operator;
|
|
80
|
+
/**
|
|
81
|
+
* The timestamp to compare against
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: google.protobuf.Timestamp timestamp = 2;
|
|
84
|
+
*/
|
|
85
|
+
timestamp?: Timestamp;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message mochabugapis.adapt.runtime.v1.TimestampCondition.
|
|
89
|
+
* Use `create(TimestampConditionSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export declare const TimestampConditionSchema: GenMessage<TimestampCondition>;
|
|
92
|
+
/**
|
|
93
|
+
* Ensures the etag is compared based on the specified operator
|
|
94
|
+
*
|
|
95
|
+
* @generated from message mochabugapis.adapt.runtime.v1.EtagCondition
|
|
96
|
+
*/
|
|
97
|
+
export type EtagCondition = Message<"mochabugapis.adapt.runtime.v1.EtagCondition"> & {
|
|
98
|
+
/**
|
|
99
|
+
* The comparison operator for the etag
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Operator operator = 1;
|
|
102
|
+
*/
|
|
103
|
+
operator: Operator;
|
|
104
|
+
/**
|
|
105
|
+
* The etag to compare against
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: string etag = 2;
|
|
108
|
+
*/
|
|
109
|
+
etag: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Describes the message mochabugapis.adapt.runtime.v1.EtagCondition.
|
|
113
|
+
* Use `create(EtagConditionSchema)` to create a new message.
|
|
114
|
+
*/
|
|
115
|
+
export declare const EtagConditionSchema: GenMessage<EtagCondition>;
|
|
116
|
+
/**
|
|
117
|
+
* Represents preconditions for write operations on a value
|
|
118
|
+
*
|
|
119
|
+
* @generated from message mochabugapis.adapt.runtime.v1.Precondition
|
|
120
|
+
*/
|
|
121
|
+
export type Precondition = Message<"mochabugapis.adapt.runtime.v1.Precondition"> & {
|
|
122
|
+
/**
|
|
123
|
+
* Specifies whether the key should exist (true) or not (false)
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: optional bool exists = 1;
|
|
126
|
+
*/
|
|
127
|
+
exists?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the conditions for the last modified timestamp of the value (cannot be used for insert operations!)
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: repeated mochabugapis.adapt.runtime.v1.TimestampCondition last_modified = 2;
|
|
132
|
+
*/
|
|
133
|
+
lastModified: TimestampCondition[];
|
|
134
|
+
/**
|
|
135
|
+
* Specifies the conditions for the etag of the value (cannot be used for insert operations!)
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: optional mochabugapis.adapt.runtime.v1.EtagCondition etag = 3;
|
|
138
|
+
*/
|
|
139
|
+
etag?: EtagCondition;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Describes the message mochabugapis.adapt.runtime.v1.Precondition.
|
|
143
|
+
* Use `create(PreconditionSchema)` to create a new message.
|
|
144
|
+
*/
|
|
145
|
+
export declare const PreconditionSchema: GenMessage<Precondition>;
|
|
146
|
+
/**
|
|
147
|
+
* Operation to update a key-value pair.
|
|
148
|
+
* Outcomes:
|
|
149
|
+
* If the key already exists, and `fail_if_exists` is true: Status is BAD_REQUEST (HTTP 400)
|
|
150
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
151
|
+
* If the key already exists, and `fail_if_exists` is false or not set: Status is OK (HTTP 200)
|
|
152
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
153
|
+
*
|
|
154
|
+
* @generated from message mochabugapis.adapt.runtime.v1.UpdateOp
|
|
155
|
+
*/
|
|
156
|
+
export type UpdateOp = Message<"mochabugapis.adapt.runtime.v1.UpdateOp"> & {
|
|
157
|
+
/**
|
|
158
|
+
* The key to be inserted/updated
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: string key = 1;
|
|
161
|
+
*/
|
|
162
|
+
key: string;
|
|
163
|
+
/**
|
|
164
|
+
* Data to be stored
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
|
|
167
|
+
*/
|
|
168
|
+
value?: PutValue;
|
|
169
|
+
/**
|
|
170
|
+
* The precondition of the operation
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 3;
|
|
173
|
+
*/
|
|
174
|
+
precondition?: Precondition;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Describes the message mochabugapis.adapt.runtime.v1.UpdateOp.
|
|
178
|
+
* Use `create(UpdateOpSchema)` to create a new message.
|
|
179
|
+
*/
|
|
180
|
+
export declare const UpdateOpSchema: GenMessage<UpdateOp>;
|
|
181
|
+
/**
|
|
182
|
+
* Operation to insert
|
|
183
|
+
* Outcomes:
|
|
184
|
+
* If the key already exists, and `fail_if_exists` is true: Status is BAD_REQUEST (HTTP 400)
|
|
185
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
186
|
+
* If the key already exists, and `fail_if_exists` is false or not set: Status is OK (HTTP 200)
|
|
187
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
188
|
+
*
|
|
189
|
+
* @generated from message mochabugapis.adapt.runtime.v1.InsertOp
|
|
190
|
+
*/
|
|
191
|
+
export type InsertOp = Message<"mochabugapis.adapt.runtime.v1.InsertOp"> & {
|
|
192
|
+
/**
|
|
193
|
+
* The key to be inserted/updated
|
|
194
|
+
*
|
|
195
|
+
* @generated from field: string key = 1;
|
|
196
|
+
*/
|
|
197
|
+
key: string;
|
|
198
|
+
/**
|
|
199
|
+
* Data to be stored
|
|
200
|
+
*
|
|
201
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.PutValue value = 2;
|
|
202
|
+
*/
|
|
203
|
+
value?: PutValue;
|
|
204
|
+
/**
|
|
205
|
+
* The precondition of the operation
|
|
206
|
+
*
|
|
207
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 3;
|
|
208
|
+
*/
|
|
209
|
+
precondition?: Precondition;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Describes the message mochabugapis.adapt.runtime.v1.InsertOp.
|
|
213
|
+
* Use `create(InsertOpSchema)` to create a new message.
|
|
214
|
+
*/
|
|
215
|
+
export declare const InsertOpSchema: GenMessage<InsertOp>;
|
|
216
|
+
/**
|
|
217
|
+
* Operation to retrieve the value of a given key.
|
|
218
|
+
* Outcomes:
|
|
219
|
+
* If the key exists and data is successfully fetched: Status is OK (HTTP 200)
|
|
220
|
+
* If the key does not exist: Status is NOT_FOUND (HTTP 404)
|
|
221
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
222
|
+
*
|
|
223
|
+
* @generated from message mochabugapis.adapt.runtime.v1.GetOp
|
|
224
|
+
*/
|
|
225
|
+
export type GetOp = Message<"mochabugapis.adapt.runtime.v1.GetOp"> & {
|
|
226
|
+
/**
|
|
227
|
+
* The key to be fetched
|
|
228
|
+
*
|
|
229
|
+
* @generated from field: string key = 1;
|
|
230
|
+
*/
|
|
231
|
+
key: string;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Describes the message mochabugapis.adapt.runtime.v1.GetOp.
|
|
235
|
+
* Use `create(GetOpSchema)` to create a new message.
|
|
236
|
+
*/
|
|
237
|
+
export declare const GetOpSchema: GenMessage<GetOp>;
|
|
238
|
+
/**
|
|
239
|
+
* Operation to delete a given key-value pair.
|
|
240
|
+
* Outcomes:
|
|
241
|
+
* If the key exists and is successfully deleted: Status is NO_CONTENT (HTTP 204)
|
|
242
|
+
* If the precondition has failed: Status is PRECONDITION_FAILED (HTTP 412)
|
|
243
|
+
* 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)
|
|
244
|
+
* If there's any internal server error: Status is INTERNAL_SERVER_ERROR (HTTP 500)
|
|
245
|
+
*
|
|
246
|
+
* @generated from message mochabugapis.adapt.runtime.v1.DeleteOp
|
|
247
|
+
*/
|
|
248
|
+
export type DeleteOp = Message<"mochabugapis.adapt.runtime.v1.DeleteOp"> & {
|
|
249
|
+
/**
|
|
250
|
+
* The key to be deleted
|
|
251
|
+
*
|
|
252
|
+
* @generated from field: string key = 1;
|
|
253
|
+
*/
|
|
254
|
+
key: string;
|
|
255
|
+
/**
|
|
256
|
+
* The precondition of the operation
|
|
257
|
+
*
|
|
258
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.Precondition precondition = 2;
|
|
259
|
+
*/
|
|
260
|
+
precondition?: Precondition;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Describes the message mochabugapis.adapt.runtime.v1.DeleteOp.
|
|
264
|
+
* Use `create(DeleteOpSchema)` to create a new message.
|
|
265
|
+
*/
|
|
266
|
+
export declare const DeleteOpSchema: GenMessage<DeleteOp>;
|
|
267
|
+
/**
|
|
268
|
+
* WriteOperation represents a single operation to be performed on the key-value store.
|
|
269
|
+
* An operation can be of type PutOp, GetOp, or DeleteOp.
|
|
270
|
+
*
|
|
271
|
+
* @generated from message mochabugapis.adapt.runtime.v1.WriteOperation
|
|
272
|
+
*/
|
|
273
|
+
export type WriteOperation = Message<"mochabugapis.adapt.runtime.v1.WriteOperation"> & {
|
|
274
|
+
/**
|
|
275
|
+
* `operation` is a oneof field that specifies the type and details of the operation to be performed.
|
|
276
|
+
* Only one of these fields should be set.
|
|
277
|
+
*
|
|
278
|
+
* @generated from oneof mochabugapis.adapt.runtime.v1.WriteOperation.operation
|
|
279
|
+
*/
|
|
280
|
+
operation: {
|
|
281
|
+
/**
|
|
282
|
+
* `insert_op` represents an operation to insert or update a key-value pair in the store.
|
|
283
|
+
* If this is set, the service will attempt to put the given value associated with the specified key.
|
|
284
|
+
*
|
|
285
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.InsertOp insert_op = 1;
|
|
286
|
+
*/
|
|
287
|
+
value: InsertOp;
|
|
288
|
+
case: "insertOp";
|
|
289
|
+
} | {
|
|
290
|
+
/**
|
|
291
|
+
* `update_op` represents an operation to insert or update a key-value pair in the store.
|
|
292
|
+
* If this is set, the service will attempt to put the given value associated with the specified key.
|
|
293
|
+
*
|
|
294
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.UpdateOp update_op = 2;
|
|
295
|
+
*/
|
|
296
|
+
value: UpdateOp;
|
|
297
|
+
case: "updateOp";
|
|
298
|
+
} | {
|
|
299
|
+
/**
|
|
300
|
+
* `delete_op` represents an operation to delete a key-value pair from the store using the specified key.
|
|
301
|
+
* If this is set, the service will attempt to delete the entry associated with the given key.
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.DeleteOp delete_op = 3;
|
|
304
|
+
*/
|
|
305
|
+
value: DeleteOp;
|
|
306
|
+
case: "deleteOp";
|
|
307
|
+
} | {
|
|
308
|
+
case: undefined;
|
|
309
|
+
value?: undefined;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Describes the message mochabugapis.adapt.runtime.v1.WriteOperation.
|
|
314
|
+
* Use `create(WriteOperationSchema)` to create a new message.
|
|
315
|
+
*/
|
|
316
|
+
export declare const WriteOperationSchema: GenMessage<WriteOperation>;
|
|
317
|
+
/**
|
|
318
|
+
* ReadOperationResult encapsulates the outcome of a specific read operation performed on the key-value store.
|
|
319
|
+
*
|
|
320
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ReadOperationResult
|
|
321
|
+
*/
|
|
322
|
+
export type ReadOperationResult = Message<"mochabugapis.adapt.runtime.v1.ReadOperationResult"> & {
|
|
323
|
+
/**
|
|
324
|
+
* `key` represents the specific key targeted by the operation in the key-value store.
|
|
325
|
+
* It provides context to the client about which key this particular result pertains to.
|
|
326
|
+
*
|
|
327
|
+
* @generated from field: string key = 1;
|
|
328
|
+
*/
|
|
329
|
+
key: string;
|
|
330
|
+
/**
|
|
331
|
+
* `status` indicates the outcome of the operation performed on the key.
|
|
332
|
+
* This status can be used by the client to quickly understand if the operation
|
|
333
|
+
* was successful or encountered an error, and what kind of error if so.
|
|
334
|
+
*
|
|
335
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.OperationStatus status = 2;
|
|
336
|
+
*/
|
|
337
|
+
status: OperationStatus;
|
|
338
|
+
/**
|
|
339
|
+
* `response` is a oneof field that provides more specific details about the result of the operation.
|
|
340
|
+
* Depending on the operation type and its outcome, the value is set or not
|
|
341
|
+
*
|
|
342
|
+
* @generated from field: optional mochabugapis.adapt.runtime.v1.GetValue response = 3;
|
|
343
|
+
*/
|
|
344
|
+
response?: GetValue;
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Describes the message mochabugapis.adapt.runtime.v1.ReadOperationResult.
|
|
348
|
+
* Use `create(ReadOperationResultSchema)` to create a new message.
|
|
349
|
+
*/
|
|
350
|
+
export declare const ReadOperationResultSchema: GenMessage<ReadOperationResult>;
|
|
351
|
+
/**
|
|
352
|
+
* WriteOperationResult encapsulates the outcome of a specific write operation performed on the key-value store
|
|
353
|
+
*
|
|
354
|
+
* @generated from message mochabugapis.adapt.runtime.v1.WriteOperationResult
|
|
355
|
+
*/
|
|
356
|
+
export type WriteOperationResult = Message<"mochabugapis.adapt.runtime.v1.WriteOperationResult"> & {
|
|
357
|
+
/**
|
|
358
|
+
* `key` represents the specific key targeted by the operation in the key-value store.
|
|
359
|
+
* It provides context to the client about which key this particular result pertains to.
|
|
360
|
+
*
|
|
361
|
+
* @generated from field: string key = 1;
|
|
362
|
+
*/
|
|
363
|
+
key: string;
|
|
364
|
+
/**
|
|
365
|
+
* `status` indicates the outcome of the operation performed on the key.
|
|
366
|
+
* This status can be used by the client to quickly understand if the operation
|
|
367
|
+
* was successful or encountered an error, and what kind of error if so.
|
|
368
|
+
*
|
|
369
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.OperationStatus status = 2;
|
|
370
|
+
*/
|
|
371
|
+
status: OperationStatus;
|
|
372
|
+
/**
|
|
373
|
+
* The timestamp when the value was written
|
|
374
|
+
*
|
|
375
|
+
* @generated from field: google.protobuf.Timestamp last_modified = 3;
|
|
376
|
+
*/
|
|
377
|
+
lastModified?: Timestamp;
|
|
378
|
+
/**
|
|
379
|
+
* The corresponding etag of the value
|
|
380
|
+
*
|
|
381
|
+
* @generated from field: string etag = 4;
|
|
382
|
+
*/
|
|
383
|
+
etag: string;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Describes the message mochabugapis.adapt.runtime.v1.WriteOperationResult.
|
|
387
|
+
* Use `create(WriteOperationResultSchema)` to create a new message.
|
|
388
|
+
*/
|
|
389
|
+
export declare const WriteOperationResultSchema: GenMessage<WriteOperationResult>;
|
|
390
|
+
/**
|
|
391
|
+
* Operators for comparison
|
|
392
|
+
*
|
|
393
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.Operator
|
|
394
|
+
*/
|
|
395
|
+
export declare enum Operator {
|
|
396
|
+
/**
|
|
397
|
+
* Default value that should never be used.
|
|
398
|
+
*
|
|
399
|
+
* @generated from enum value: OPERATOR_UNSPECIFIED = 0;
|
|
400
|
+
*/
|
|
401
|
+
UNSPECIFIED = 0,
|
|
402
|
+
/**
|
|
403
|
+
* Equal to
|
|
404
|
+
*
|
|
405
|
+
* @generated from enum value: OPERATOR_EQUAL = 1;
|
|
406
|
+
*/
|
|
407
|
+
EQUAL = 1,
|
|
408
|
+
/**
|
|
409
|
+
* Greater than
|
|
410
|
+
*
|
|
411
|
+
* @generated from enum value: OPERATOR_GREATER_THAN = 2;
|
|
412
|
+
*/
|
|
413
|
+
GREATER_THAN = 2,
|
|
414
|
+
/**
|
|
415
|
+
* Greater than or equal to
|
|
416
|
+
*
|
|
417
|
+
* @generated from enum value: OPERATOR_GREATER_THAN_OR_EQUAL = 3;
|
|
418
|
+
*/
|
|
419
|
+
GREATER_THAN_OR_EQUAL = 3,
|
|
420
|
+
/**
|
|
421
|
+
* Less than
|
|
422
|
+
*
|
|
423
|
+
* @generated from enum value: OPERATOR_LESS_THAN = 4;
|
|
424
|
+
*/
|
|
425
|
+
LESS_THAN = 4,
|
|
426
|
+
/**
|
|
427
|
+
* Less than or equal to
|
|
428
|
+
*
|
|
429
|
+
* @generated from enum value: OPERATOR_LESS_THAN_OR_EQUAL = 5;
|
|
430
|
+
*/
|
|
431
|
+
LESS_THAN_OR_EQUAL = 5,
|
|
432
|
+
/**
|
|
433
|
+
* Not equal to
|
|
434
|
+
*
|
|
435
|
+
* @generated from enum value: OPERATOR_NOT_EQUAL = 6;
|
|
436
|
+
*/
|
|
437
|
+
NOT_EQUAL = 6
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Describes the enum mochabugapis.adapt.runtime.v1.Operator.
|
|
441
|
+
*/
|
|
442
|
+
export declare const OperatorSchema: GenEnum<Operator>;
|
|
443
|
+
/**
|
|
444
|
+
* GlobalResponseStatus represents the overall status of a batch operation.
|
|
445
|
+
*
|
|
446
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.GlobalResponseStatus
|
|
447
|
+
*/
|
|
448
|
+
export declare enum GlobalResponseStatus {
|
|
449
|
+
/**
|
|
450
|
+
* Default value that should never be used.
|
|
451
|
+
*
|
|
452
|
+
* @generated from enum value: GLOBAL_RESPONSE_STATUS_UNSPECIFIED = 0;
|
|
453
|
+
*/
|
|
454
|
+
UNSPECIFIED = 0,
|
|
455
|
+
/**
|
|
456
|
+
* 200 OK: All operations succeeded
|
|
457
|
+
*
|
|
458
|
+
* @generated from enum value: GLOBAL_RESPONSE_STATUS_SUCCESS = 1;
|
|
459
|
+
*/
|
|
460
|
+
SUCCESS = 1,
|
|
461
|
+
/**
|
|
462
|
+
* 206 Partial Content: Some operations succeeded
|
|
463
|
+
*
|
|
464
|
+
* @generated from enum value: GLOBAL_RESPONSE_STATUS_PARTIAL_SUCCESS = 2;
|
|
465
|
+
*/
|
|
466
|
+
PARTIAL_SUCCESS = 2,
|
|
467
|
+
/**
|
|
468
|
+
* 400 Bad Request: All operations failed
|
|
469
|
+
*
|
|
470
|
+
* @generated from enum value: GLOBAL_RESPONSE_STATUS_FAILED = 3;
|
|
471
|
+
*/
|
|
472
|
+
FAILED = 3,
|
|
473
|
+
/**
|
|
474
|
+
* 500 Internal Server Error: System error
|
|
475
|
+
*
|
|
476
|
+
* @generated from enum value: GLOBAL_RESPONSE_STATUS_INTERNAL_ERROR = 4;
|
|
477
|
+
*/
|
|
478
|
+
INTERNAL_ERROR = 4
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Describes the enum mochabugapis.adapt.runtime.v1.GlobalResponseStatus.
|
|
482
|
+
*/
|
|
483
|
+
export declare const GlobalResponseStatusSchema: GenEnum<GlobalResponseStatus>;
|
|
484
|
+
/**
|
|
485
|
+
* OperationStatus represents the status of individual operations in a batch.
|
|
486
|
+
*
|
|
487
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.OperationStatus
|
|
488
|
+
*/
|
|
489
|
+
export declare enum OperationStatus {
|
|
490
|
+
/**
|
|
491
|
+
* Default value that should never be used.
|
|
492
|
+
*
|
|
493
|
+
* @generated from enum value: OPERATION_STATUS_UNSPECIFIED = 0;
|
|
494
|
+
*/
|
|
495
|
+
UNSPECIFIED = 0,
|
|
496
|
+
/**
|
|
497
|
+
* 200 OK
|
|
498
|
+
*
|
|
499
|
+
* @generated from enum value: OPERATION_STATUS_OK = 1;
|
|
500
|
+
*/
|
|
501
|
+
OK = 1,
|
|
502
|
+
/**
|
|
503
|
+
* 400 Bad Request
|
|
504
|
+
*
|
|
505
|
+
* @generated from enum value: OPERATION_STATUS_BAD_REQUEST = 2;
|
|
506
|
+
*/
|
|
507
|
+
BAD_REQUEST = 2,
|
|
508
|
+
/**
|
|
509
|
+
* 404 Not Found
|
|
510
|
+
*
|
|
511
|
+
* @generated from enum value: OPERATION_STATUS_NOT_FOUND = 3;
|
|
512
|
+
*/
|
|
513
|
+
NOT_FOUND = 3,
|
|
514
|
+
/**
|
|
515
|
+
* 412 Precondition Failed
|
|
516
|
+
*
|
|
517
|
+
* @generated from enum value: OPERATION_STATUS_PRECONDITION_FAILED = 4;
|
|
518
|
+
*/
|
|
519
|
+
PRECONDITION_FAILED = 4,
|
|
520
|
+
/**
|
|
521
|
+
* 500 Internal Server Error
|
|
522
|
+
*
|
|
523
|
+
* @generated from enum value: OPERATION_STATUS_INTERNAL_SERVER_ERROR = 5;
|
|
524
|
+
*/
|
|
525
|
+
INTERNAL_SERVER_ERROR = 5
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Describes the enum mochabugapis.adapt.runtime.v1.OperationStatus.
|
|
529
|
+
*/
|
|
530
|
+
export declare const OperationStatusSchema: GenEnum<OperationStatus>;
|