@superblocksteam/types 0.1971.0 → 0.1973.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,545 @@
1
+ // @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
2
+ // @generated from file worker/v1/sandbox_executor_transport.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
+ * Execute request sent to workers
11
+ *
12
+ * @generated from message worker.v1.ExecuteRequest
13
+ */
14
+ export class ExecuteRequest extends Message<ExecuteRequest> {
15
+ /**
16
+ * The code to execute
17
+ *
18
+ * @generated from field: string script = 1;
19
+ */
20
+ script = "";
21
+
22
+ /**
23
+ * JSON-encoded context variables (accessible as globals in the script)
24
+ *
25
+ * @generated from field: string context_json = 2;
26
+ */
27
+ contextJson = "";
28
+
29
+ /**
30
+ * Timeout in milliseconds
31
+ *
32
+ * @generated from field: int32 timeout_ms = 3;
33
+ */
34
+ timeoutMs = 0;
35
+
36
+ /**
37
+ * Execution ID for correlation
38
+ *
39
+ * @generated from field: string execution_id = 4;
40
+ */
41
+ executionId = "";
42
+
43
+ /**
44
+ * Address of the variable store (orchestrator) for callbacks
45
+ *
46
+ * @generated from field: string variable_store_address = 5;
47
+ */
48
+ variableStoreAddress = "";
49
+
50
+ /**
51
+ * Variable specifications (JSON)
52
+ *
53
+ * @generated from field: string variables_json = 6;
54
+ */
55
+ variablesJson = "";
56
+
57
+ constructor(data?: PartialMessage<ExecuteRequest>) {
58
+ super();
59
+ proto3.util.initPartial(data, this);
60
+ }
61
+
62
+ static readonly runtime: typeof proto3 = proto3;
63
+ static readonly typeName = "worker.v1.ExecuteRequest";
64
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
65
+ { no: 1, name: "script", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 2, name: "context_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
67
+ { no: 3, name: "timeout_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
68
+ { no: 4, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
69
+ { no: 5, name: "variable_store_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
70
+ { no: 6, name: "variables_json", kind: "scalar", T: 9 /* ScalarType.STRING */ },
71
+ ]);
72
+
73
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteRequest {
74
+ return new ExecuteRequest().fromBinary(bytes, options);
75
+ }
76
+
77
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteRequest {
78
+ return new ExecuteRequest().fromJson(jsonValue, options);
79
+ }
80
+
81
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteRequest {
82
+ return new ExecuteRequest().fromJsonString(jsonString, options);
83
+ }
84
+
85
+ static equals(a: ExecuteRequest | PlainMessage<ExecuteRequest> | undefined, b: ExecuteRequest | PlainMessage<ExecuteRequest> | undefined): boolean {
86
+ return proto3.util.equals(ExecuteRequest, a, b);
87
+ }
88
+ }
89
+
90
+ /**
91
+ * @generated from message worker.v1.ExecuteResponse
92
+ */
93
+ export class ExecuteResponse extends Message<ExecuteResponse> {
94
+ /**
95
+ * JSON-encoded result from the script
96
+ *
97
+ * @generated from field: string result = 1;
98
+ */
99
+ result = "";
100
+
101
+ /**
102
+ * Standard output lines
103
+ *
104
+ * @generated from field: repeated string stdout = 2;
105
+ */
106
+ stdout: string[] = [];
107
+
108
+ /**
109
+ * Standard error lines
110
+ *
111
+ * @generated from field: repeated string stderr = 3;
112
+ */
113
+ stderr: string[] = [];
114
+
115
+ /**
116
+ * Exit code (0 = success)
117
+ *
118
+ * @generated from field: int32 exit_code = 4;
119
+ */
120
+ exitCode = 0;
121
+
122
+ /**
123
+ * Error message if execution failed
124
+ *
125
+ * @generated from field: string error = 5;
126
+ */
127
+ error = "";
128
+
129
+ constructor(data?: PartialMessage<ExecuteResponse>) {
130
+ super();
131
+ proto3.util.initPartial(data, this);
132
+ }
133
+
134
+ static readonly runtime: typeof proto3 = proto3;
135
+ static readonly typeName = "worker.v1.ExecuteResponse";
136
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
137
+ { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 2, name: "stdout", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
139
+ { no: 3, name: "stderr", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
140
+ { no: 4, name: "exit_code", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
141
+ { no: 5, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ ]);
143
+
144
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteResponse {
145
+ return new ExecuteResponse().fromBinary(bytes, options);
146
+ }
147
+
148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteResponse {
149
+ return new ExecuteResponse().fromJson(jsonValue, options);
150
+ }
151
+
152
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteResponse {
153
+ return new ExecuteResponse().fromJsonString(jsonString, options);
154
+ }
155
+
156
+ static equals(a: ExecuteResponse | PlainMessage<ExecuteResponse> | undefined, b: ExecuteResponse | PlainMessage<ExecuteResponse> | undefined): boolean {
157
+ return proto3.util.equals(ExecuteResponse, a, b);
158
+ }
159
+ }
160
+
161
+ /**
162
+ * Variable operations
163
+ *
164
+ * @generated from message worker.v1.GetVariableRequest
165
+ */
166
+ export class GetVariableRequest extends Message<GetVariableRequest> {
167
+ /**
168
+ * @generated from field: string execution_id = 1;
169
+ */
170
+ executionId = "";
171
+
172
+ /**
173
+ * @generated from field: string key = 2;
174
+ */
175
+ key = "";
176
+
177
+ constructor(data?: PartialMessage<GetVariableRequest>) {
178
+ super();
179
+ proto3.util.initPartial(data, this);
180
+ }
181
+
182
+ static readonly runtime: typeof proto3 = proto3;
183
+ static readonly typeName = "worker.v1.GetVariableRequest";
184
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
185
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
+ ]);
188
+
189
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariableRequest {
190
+ return new GetVariableRequest().fromBinary(bytes, options);
191
+ }
192
+
193
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariableRequest {
194
+ return new GetVariableRequest().fromJson(jsonValue, options);
195
+ }
196
+
197
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariableRequest {
198
+ return new GetVariableRequest().fromJsonString(jsonString, options);
199
+ }
200
+
201
+ static equals(a: GetVariableRequest | PlainMessage<GetVariableRequest> | undefined, b: GetVariableRequest | PlainMessage<GetVariableRequest> | undefined): boolean {
202
+ return proto3.util.equals(GetVariableRequest, a, b);
203
+ }
204
+ }
205
+
206
+ /**
207
+ * @generated from message worker.v1.GetVariableResponse
208
+ */
209
+ export class GetVariableResponse extends Message<GetVariableResponse> {
210
+ /**
211
+ * JSON-encoded value
212
+ *
213
+ * @generated from field: string value = 1;
214
+ */
215
+ value = "";
216
+
217
+ /**
218
+ * @generated from field: bool found = 2;
219
+ */
220
+ found = false;
221
+
222
+ constructor(data?: PartialMessage<GetVariableResponse>) {
223
+ super();
224
+ proto3.util.initPartial(data, this);
225
+ }
226
+
227
+ static readonly runtime: typeof proto3 = proto3;
228
+ static readonly typeName = "worker.v1.GetVariableResponse";
229
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
230
+ { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
231
+ { no: 2, name: "found", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
232
+ ]);
233
+
234
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariableResponse {
235
+ return new GetVariableResponse().fromBinary(bytes, options);
236
+ }
237
+
238
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariableResponse {
239
+ return new GetVariableResponse().fromJson(jsonValue, options);
240
+ }
241
+
242
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariableResponse {
243
+ return new GetVariableResponse().fromJsonString(jsonString, options);
244
+ }
245
+
246
+ static equals(a: GetVariableResponse | PlainMessage<GetVariableResponse> | undefined, b: GetVariableResponse | PlainMessage<GetVariableResponse> | undefined): boolean {
247
+ return proto3.util.equals(GetVariableResponse, a, b);
248
+ }
249
+ }
250
+
251
+ /**
252
+ * @generated from message worker.v1.SetVariableRequest
253
+ */
254
+ export class SetVariableRequest extends Message<SetVariableRequest> {
255
+ /**
256
+ * @generated from field: string execution_id = 1;
257
+ */
258
+ executionId = "";
259
+
260
+ /**
261
+ * @generated from field: string key = 2;
262
+ */
263
+ key = "";
264
+
265
+ /**
266
+ * JSON-encoded value
267
+ *
268
+ * @generated from field: string value = 3;
269
+ */
270
+ value = "";
271
+
272
+ constructor(data?: PartialMessage<SetVariableRequest>) {
273
+ super();
274
+ proto3.util.initPartial(data, this);
275
+ }
276
+
277
+ static readonly runtime: typeof proto3 = proto3;
278
+ static readonly typeName = "worker.v1.SetVariableRequest";
279
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
280
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
281
+ { no: 2, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
282
+ { no: 3, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
+ ]);
284
+
285
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariableRequest {
286
+ return new SetVariableRequest().fromBinary(bytes, options);
287
+ }
288
+
289
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariableRequest {
290
+ return new SetVariableRequest().fromJson(jsonValue, options);
291
+ }
292
+
293
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariableRequest {
294
+ return new SetVariableRequest().fromJsonString(jsonString, options);
295
+ }
296
+
297
+ static equals(a: SetVariableRequest | PlainMessage<SetVariableRequest> | undefined, b: SetVariableRequest | PlainMessage<SetVariableRequest> | undefined): boolean {
298
+ return proto3.util.equals(SetVariableRequest, a, b);
299
+ }
300
+ }
301
+
302
+ /**
303
+ * @generated from message worker.v1.SetVariableResponse
304
+ */
305
+ export class SetVariableResponse extends Message<SetVariableResponse> {
306
+ /**
307
+ * @generated from field: bool success = 1;
308
+ */
309
+ success = false;
310
+
311
+ constructor(data?: PartialMessage<SetVariableResponse>) {
312
+ super();
313
+ proto3.util.initPartial(data, this);
314
+ }
315
+
316
+ static readonly runtime: typeof proto3 = proto3;
317
+ static readonly typeName = "worker.v1.SetVariableResponse";
318
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
319
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
320
+ ]);
321
+
322
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariableResponse {
323
+ return new SetVariableResponse().fromBinary(bytes, options);
324
+ }
325
+
326
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariableResponse {
327
+ return new SetVariableResponse().fromJson(jsonValue, options);
328
+ }
329
+
330
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariableResponse {
331
+ return new SetVariableResponse().fromJsonString(jsonString, options);
332
+ }
333
+
334
+ static equals(a: SetVariableResponse | PlainMessage<SetVariableResponse> | undefined, b: SetVariableResponse | PlainMessage<SetVariableResponse> | undefined): boolean {
335
+ return proto3.util.equals(SetVariableResponse, a, b);
336
+ }
337
+ }
338
+
339
+ /**
340
+ * @generated from message worker.v1.GetVariablesRequest
341
+ */
342
+ export class GetVariablesRequest extends Message<GetVariablesRequest> {
343
+ /**
344
+ * @generated from field: string execution_id = 1;
345
+ */
346
+ executionId = "";
347
+
348
+ /**
349
+ * @generated from field: repeated string keys = 2;
350
+ */
351
+ keys: string[] = [];
352
+
353
+ constructor(data?: PartialMessage<GetVariablesRequest>) {
354
+ super();
355
+ proto3.util.initPartial(data, this);
356
+ }
357
+
358
+ static readonly runtime: typeof proto3 = proto3;
359
+ static readonly typeName = "worker.v1.GetVariablesRequest";
360
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
361
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
362
+ { no: 2, name: "keys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
363
+ ]);
364
+
365
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariablesRequest {
366
+ return new GetVariablesRequest().fromBinary(bytes, options);
367
+ }
368
+
369
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariablesRequest {
370
+ return new GetVariablesRequest().fromJson(jsonValue, options);
371
+ }
372
+
373
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariablesRequest {
374
+ return new GetVariablesRequest().fromJsonString(jsonString, options);
375
+ }
376
+
377
+ static equals(a: GetVariablesRequest | PlainMessage<GetVariablesRequest> | undefined, b: GetVariablesRequest | PlainMessage<GetVariablesRequest> | undefined): boolean {
378
+ return proto3.util.equals(GetVariablesRequest, a, b);
379
+ }
380
+ }
381
+
382
+ /**
383
+ * @generated from message worker.v1.GetVariablesResponse
384
+ */
385
+ export class GetVariablesResponse extends Message<GetVariablesResponse> {
386
+ /**
387
+ * JSON-encoded values (same order as keys)
388
+ *
389
+ * @generated from field: repeated string values = 1;
390
+ */
391
+ values: string[] = [];
392
+
393
+ constructor(data?: PartialMessage<GetVariablesResponse>) {
394
+ super();
395
+ proto3.util.initPartial(data, this);
396
+ }
397
+
398
+ static readonly runtime: typeof proto3 = proto3;
399
+ static readonly typeName = "worker.v1.GetVariablesResponse";
400
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
401
+ { no: 1, name: "values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
402
+ ]);
403
+
404
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVariablesResponse {
405
+ return new GetVariablesResponse().fromBinary(bytes, options);
406
+ }
407
+
408
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVariablesResponse {
409
+ return new GetVariablesResponse().fromJson(jsonValue, options);
410
+ }
411
+
412
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVariablesResponse {
413
+ return new GetVariablesResponse().fromJsonString(jsonString, options);
414
+ }
415
+
416
+ static equals(a: GetVariablesResponse | PlainMessage<GetVariablesResponse> | undefined, b: GetVariablesResponse | PlainMessage<GetVariablesResponse> | undefined): boolean {
417
+ return proto3.util.equals(GetVariablesResponse, a, b);
418
+ }
419
+ }
420
+
421
+ /**
422
+ * @generated from message worker.v1.SetVariablesRequest
423
+ */
424
+ export class SetVariablesRequest extends Message<SetVariablesRequest> {
425
+ /**
426
+ * @generated from field: string execution_id = 1;
427
+ */
428
+ executionId = "";
429
+
430
+ /**
431
+ * @generated from field: repeated worker.v1.KeyValue kvs = 2;
432
+ */
433
+ kvs: KeyValue[] = [];
434
+
435
+ constructor(data?: PartialMessage<SetVariablesRequest>) {
436
+ super();
437
+ proto3.util.initPartial(data, this);
438
+ }
439
+
440
+ static readonly runtime: typeof proto3 = proto3;
441
+ static readonly typeName = "worker.v1.SetVariablesRequest";
442
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
443
+ { no: 1, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
444
+ { no: 2, name: "kvs", kind: "message", T: KeyValue, repeated: true },
445
+ ]);
446
+
447
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariablesRequest {
448
+ return new SetVariablesRequest().fromBinary(bytes, options);
449
+ }
450
+
451
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariablesRequest {
452
+ return new SetVariablesRequest().fromJson(jsonValue, options);
453
+ }
454
+
455
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariablesRequest {
456
+ return new SetVariablesRequest().fromJsonString(jsonString, options);
457
+ }
458
+
459
+ static equals(a: SetVariablesRequest | PlainMessage<SetVariablesRequest> | undefined, b: SetVariablesRequest | PlainMessage<SetVariablesRequest> | undefined): boolean {
460
+ return proto3.util.equals(SetVariablesRequest, a, b);
461
+ }
462
+ }
463
+
464
+ /**
465
+ * @generated from message worker.v1.KeyValue
466
+ */
467
+ export class KeyValue extends Message<KeyValue> {
468
+ /**
469
+ * @generated from field: string key = 1;
470
+ */
471
+ key = "";
472
+
473
+ /**
474
+ * JSON-encoded value
475
+ *
476
+ * @generated from field: string value = 2;
477
+ */
478
+ value = "";
479
+
480
+ constructor(data?: PartialMessage<KeyValue>) {
481
+ super();
482
+ proto3.util.initPartial(data, this);
483
+ }
484
+
485
+ static readonly runtime: typeof proto3 = proto3;
486
+ static readonly typeName = "worker.v1.KeyValue";
487
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
488
+ { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
489
+ { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
490
+ ]);
491
+
492
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyValue {
493
+ return new KeyValue().fromBinary(bytes, options);
494
+ }
495
+
496
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyValue {
497
+ return new KeyValue().fromJson(jsonValue, options);
498
+ }
499
+
500
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyValue {
501
+ return new KeyValue().fromJsonString(jsonString, options);
502
+ }
503
+
504
+ static equals(a: KeyValue | PlainMessage<KeyValue> | undefined, b: KeyValue | PlainMessage<KeyValue> | undefined): boolean {
505
+ return proto3.util.equals(KeyValue, a, b);
506
+ }
507
+ }
508
+
509
+ /**
510
+ * @generated from message worker.v1.SetVariablesResponse
511
+ */
512
+ export class SetVariablesResponse extends Message<SetVariablesResponse> {
513
+ /**
514
+ * @generated from field: bool success = 1;
515
+ */
516
+ success = false;
517
+
518
+ constructor(data?: PartialMessage<SetVariablesResponse>) {
519
+ super();
520
+ proto3.util.initPartial(data, this);
521
+ }
522
+
523
+ static readonly runtime: typeof proto3 = proto3;
524
+ static readonly typeName = "worker.v1.SetVariablesResponse";
525
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
526
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
527
+ ]);
528
+
529
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetVariablesResponse {
530
+ return new SetVariablesResponse().fromBinary(bytes, options);
531
+ }
532
+
533
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetVariablesResponse {
534
+ return new SetVariablesResponse().fromJson(jsonValue, options);
535
+ }
536
+
537
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetVariablesResponse {
538
+ return new SetVariablesResponse().fromJsonString(jsonString, options);
539
+ }
540
+
541
+ static equals(a: SetVariablesResponse | PlainMessage<SetVariablesResponse> | undefined, b: SetVariablesResponse | PlainMessage<SetVariablesResponse> | undefined): boolean {
542
+ return proto3.util.equals(SetVariablesResponse, a, b);
543
+ }
544
+ }
545
+