@superblocksteam/types 0.1977.0 → 0.1978.0

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.
@@ -0,0 +1,393 @@
1
+ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
2
+ // @generated from file worker/v1/sandbox_variable_store.proto (package worker.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * Variable operations
11
+ *
12
+ * @generated from message worker.v1.GetVariableRequest
13
+ */
14
+ export class GetVariableRequest extends Message<GetVariableRequest> {
15
+ /**
16
+ * @generated from field: string execution_id = 1;
17
+ */
18
+ executionId = "";
19
+
20
+ /**
21
+ * @generated from field: string key = 2;
22
+ */
23
+ key = "";
24
+
25
+ constructor(data?: PartialMessage<GetVariableRequest>) {
26
+ super();
27
+ proto3.util.initPartial(data, this);
28
+ }
29
+
30
+ static readonly runtime: typeof proto3 = proto3;
31
+ static readonly typeName = "worker.v1.GetVariableRequest";
32
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
33
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
34
+ { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
35
+ ]);
36
+
37
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariableRequest {
38
+ return new GetVariableRequest().fromBinary(bytes, options);
39
+ }
40
+
41
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariableRequest {
42
+ return new GetVariableRequest().fromJson(jsonValue, options);
43
+ }
44
+
45
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariableRequest {
46
+ return new GetVariableRequest().fromJsonString(jsonString, options);
47
+ }
48
+
49
+ static equals(a: GetVariableRequest | PlainMessage<GetVariableRequest> | undefined, b: GetVariableRequest | PlainMessage<GetVariableRequest> | undefined): boolean {
50
+ return proto3.util.equals(GetVariableRequest, a, b);
51
+ }
52
+ }
53
+
54
+ /**
55
+ * @generated from message worker.v1.GetVariableResponse
56
+ */
57
+ export class GetVariableResponse extends Message<GetVariableResponse> {
58
+ /**
59
+ * JSON-encoded value
60
+ *
61
+ * @generated from field: string value = 1;
62
+ */
63
+ value = "";
64
+
65
+ /**
66
+ * @generated from field: bool found = 2;
67
+ */
68
+ found = false;
69
+
70
+ constructor(data?: PartialMessage<GetVariableResponse>) {
71
+ super();
72
+ proto3.util.initPartial(data, this);
73
+ }
74
+
75
+ static readonly runtime: typeof proto3 = proto3;
76
+ static readonly typeName = "worker.v1.GetVariableResponse";
77
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
78
+ { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
79
+ { no: 2, name: "found", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
80
+ ]);
81
+
82
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariableResponse {
83
+ return new GetVariableResponse().fromBinary(bytes, options);
84
+ }
85
+
86
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariableResponse {
87
+ return new GetVariableResponse().fromJson(jsonValue, options);
88
+ }
89
+
90
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariableResponse {
91
+ return new GetVariableResponse().fromJsonString(jsonString, options);
92
+ }
93
+
94
+ static equals(a: GetVariableResponse | PlainMessage<GetVariableResponse> | undefined, b: GetVariableResponse | PlainMessage<GetVariableResponse> | undefined): boolean {
95
+ return proto3.util.equals(GetVariableResponse, a, b);
96
+ }
97
+ }
98
+
99
+ /**
100
+ * @generated from message worker.v1.SetVariableRequest
101
+ */
102
+ export class SetVariableRequest extends Message<SetVariableRequest> {
103
+ /**
104
+ * @generated from field: string execution_id = 1;
105
+ */
106
+ executionId = "";
107
+
108
+ /**
109
+ * @generated from field: string key = 2;
110
+ */
111
+ key = "";
112
+
113
+ /**
114
+ * JSON-encoded value
115
+ *
116
+ * @generated from field: string value = 3;
117
+ */
118
+ value = "";
119
+
120
+ constructor(data?: PartialMessage<SetVariableRequest>) {
121
+ super();
122
+ proto3.util.initPartial(data, this);
123
+ }
124
+
125
+ static readonly runtime: typeof proto3 = proto3;
126
+ static readonly typeName = "worker.v1.SetVariableRequest";
127
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
128
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
130
+ { no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
131
+ ]);
132
+
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariableRequest {
134
+ return new SetVariableRequest().fromBinary(bytes, options);
135
+ }
136
+
137
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariableRequest {
138
+ return new SetVariableRequest().fromJson(jsonValue, options);
139
+ }
140
+
141
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariableRequest {
142
+ return new SetVariableRequest().fromJsonString(jsonString, options);
143
+ }
144
+
145
+ static equals(a: SetVariableRequest | PlainMessage<SetVariableRequest> | undefined, b: SetVariableRequest | PlainMessage<SetVariableRequest> | undefined): boolean {
146
+ return proto3.util.equals(SetVariableRequest, a, b);
147
+ }
148
+ }
149
+
150
+ /**
151
+ * @generated from message worker.v1.SetVariableResponse
152
+ */
153
+ export class SetVariableResponse extends Message<SetVariableResponse> {
154
+ /**
155
+ * @generated from field: bool success = 1;
156
+ */
157
+ success = false;
158
+
159
+ constructor(data?: PartialMessage<SetVariableResponse>) {
160
+ super();
161
+ proto3.util.initPartial(data, this);
162
+ }
163
+
164
+ static readonly runtime: typeof proto3 = proto3;
165
+ static readonly typeName = "worker.v1.SetVariableResponse";
166
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
167
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
168
+ ]);
169
+
170
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariableResponse {
171
+ return new SetVariableResponse().fromBinary(bytes, options);
172
+ }
173
+
174
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariableResponse {
175
+ return new SetVariableResponse().fromJson(jsonValue, options);
176
+ }
177
+
178
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariableResponse {
179
+ return new SetVariableResponse().fromJsonString(jsonString, options);
180
+ }
181
+
182
+ static equals(a: SetVariableResponse | PlainMessage<SetVariableResponse> | undefined, b: SetVariableResponse | PlainMessage<SetVariableResponse> | undefined): boolean {
183
+ return proto3.util.equals(SetVariableResponse, a, b);
184
+ }
185
+ }
186
+
187
+ /**
188
+ * @generated from message worker.v1.GetVariablesRequest
189
+ */
190
+ export class GetVariablesRequest extends Message<GetVariablesRequest> {
191
+ /**
192
+ * @generated from field: string execution_id = 1;
193
+ */
194
+ executionId = "";
195
+
196
+ /**
197
+ * @generated from field: repeated string keys = 2;
198
+ */
199
+ keys: string[] = [];
200
+
201
+ constructor(data?: PartialMessage<GetVariablesRequest>) {
202
+ super();
203
+ proto3.util.initPartial(data, this);
204
+ }
205
+
206
+ static readonly runtime: typeof proto3 = proto3;
207
+ static readonly typeName = "worker.v1.GetVariablesRequest";
208
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
209
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
210
+ { no: 2, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
211
+ ]);
212
+
213
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariablesRequest {
214
+ return new GetVariablesRequest().fromBinary(bytes, options);
215
+ }
216
+
217
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariablesRequest {
218
+ return new GetVariablesRequest().fromJson(jsonValue, options);
219
+ }
220
+
221
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariablesRequest {
222
+ return new GetVariablesRequest().fromJsonString(jsonString, options);
223
+ }
224
+
225
+ static equals(a: GetVariablesRequest | PlainMessage<GetVariablesRequest> | undefined, b: GetVariablesRequest | PlainMessage<GetVariablesRequest> | undefined): boolean {
226
+ return proto3.util.equals(GetVariablesRequest, a, b);
227
+ }
228
+ }
229
+
230
+ /**
231
+ * @generated from message worker.v1.GetVariablesResponse
232
+ */
233
+ export class GetVariablesResponse extends Message<GetVariablesResponse> {
234
+ /**
235
+ * JSON-encoded values (same order as keys)
236
+ *
237
+ * @generated from field: repeated string values = 1;
238
+ */
239
+ values: string[] = [];
240
+
241
+ constructor(data?: PartialMessage<GetVariablesResponse>) {
242
+ super();
243
+ proto3.util.initPartial(data, this);
244
+ }
245
+
246
+ static readonly runtime: typeof proto3 = proto3;
247
+ static readonly typeName = "worker.v1.GetVariablesResponse";
248
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
249
+ { no: 1, name: "values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
250
+ ]);
251
+
252
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariablesResponse {
253
+ return new GetVariablesResponse().fromBinary(bytes, options);
254
+ }
255
+
256
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariablesResponse {
257
+ return new GetVariablesResponse().fromJson(jsonValue, options);
258
+ }
259
+
260
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariablesResponse {
261
+ return new GetVariablesResponse().fromJsonString(jsonString, options);
262
+ }
263
+
264
+ static equals(a: GetVariablesResponse | PlainMessage<GetVariablesResponse> | undefined, b: GetVariablesResponse | PlainMessage<GetVariablesResponse> | undefined): boolean {
265
+ return proto3.util.equals(GetVariablesResponse, a, b);
266
+ }
267
+ }
268
+
269
+ /**
270
+ * @generated from message worker.v1.SetVariablesRequest
271
+ */
272
+ export class SetVariablesRequest extends Message<SetVariablesRequest> {
273
+ /**
274
+ * @generated from field: string execution_id = 1;
275
+ */
276
+ executionId = "";
277
+
278
+ /**
279
+ * @generated from field: repeated worker.v1.KeyValue kvs = 2;
280
+ */
281
+ kvs: KeyValue[] = [];
282
+
283
+ constructor(data?: PartialMessage<SetVariablesRequest>) {
284
+ super();
285
+ proto3.util.initPartial(data, this);
286
+ }
287
+
288
+ static readonly runtime: typeof proto3 = proto3;
289
+ static readonly typeName = "worker.v1.SetVariablesRequest";
290
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
291
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
292
+ { no: 2, name: "kvs", kind: "message", T: KeyValue, repeated: true },
293
+ ]);
294
+
295
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariablesRequest {
296
+ return new SetVariablesRequest().fromBinary(bytes, options);
297
+ }
298
+
299
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariablesRequest {
300
+ return new SetVariablesRequest().fromJson(jsonValue, options);
301
+ }
302
+
303
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariablesRequest {
304
+ return new SetVariablesRequest().fromJsonString(jsonString, options);
305
+ }
306
+
307
+ static equals(a: SetVariablesRequest | PlainMessage<SetVariablesRequest> | undefined, b: SetVariablesRequest | PlainMessage<SetVariablesRequest> | undefined): boolean {
308
+ return proto3.util.equals(SetVariablesRequest, a, b);
309
+ }
310
+ }
311
+
312
+ /**
313
+ * @generated from message worker.v1.KeyValue
314
+ */
315
+ export class KeyValue extends Message<KeyValue> {
316
+ /**
317
+ * @generated from field: string key = 1;
318
+ */
319
+ key = "";
320
+
321
+ /**
322
+ * JSON-encoded value
323
+ *
324
+ * @generated from field: string value = 2;
325
+ */
326
+ value = "";
327
+
328
+ constructor(data?: PartialMessage<KeyValue>) {
329
+ super();
330
+ proto3.util.initPartial(data, this);
331
+ }
332
+
333
+ static readonly runtime: typeof proto3 = proto3;
334
+ static readonly typeName = "worker.v1.KeyValue";
335
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
336
+ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
337
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
338
+ ]);
339
+
340
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyValue {
341
+ return new KeyValue().fromBinary(bytes, options);
342
+ }
343
+
344
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyValue {
345
+ return new KeyValue().fromJson(jsonValue, options);
346
+ }
347
+
348
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyValue {
349
+ return new KeyValue().fromJsonString(jsonString, options);
350
+ }
351
+
352
+ static equals(a: KeyValue | PlainMessage<KeyValue> | undefined, b: KeyValue | PlainMessage<KeyValue> | undefined): boolean {
353
+ return proto3.util.equals(KeyValue, a, b);
354
+ }
355
+ }
356
+
357
+ /**
358
+ * @generated from message worker.v1.SetVariablesResponse
359
+ */
360
+ export class SetVariablesResponse extends Message<SetVariablesResponse> {
361
+ /**
362
+ * @generated from field: bool success = 1;
363
+ */
364
+ success = false;
365
+
366
+ constructor(data?: PartialMessage<SetVariablesResponse>) {
367
+ super();
368
+ proto3.util.initPartial(data, this);
369
+ }
370
+
371
+ static readonly runtime: typeof proto3 = proto3;
372
+ static readonly typeName = "worker.v1.SetVariablesResponse";
373
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
374
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
375
+ ]);
376
+
377
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariablesResponse {
378
+ return new SetVariablesResponse().fromBinary(bytes, options);
379
+ }
380
+
381
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariablesResponse {
382
+ return new SetVariablesResponse().fromJson(jsonValue, options);
383
+ }
384
+
385
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariablesResponse {
386
+ return new SetVariablesResponse().fromJsonString(jsonString, options);
387
+ }
388
+
389
+ static equals(a: SetVariablesResponse | PlainMessage<SetVariablesResponse> | undefined, b: SetVariablesResponse | PlainMessage<SetVariablesResponse> | undefined): boolean {
390
+ return proto3.util.equals(SetVariablesResponse, a, b);
391
+ }
392
+ }
393
+