@superblocksteam/types 1.44.0 → 1.45.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.
- package/dist/src/api/v1/service_pb.d.ts +24 -0
- package/dist/src/api/v1/service_pb.d.ts.map +1 -1
- package/dist/src/api/v1/service_pb.js +10 -0
- package/dist/src/api/v1/service_pb.js.map +1 -1
- package/dist/src/transport/v1/transport_pb.d.ts +13 -0
- package/dist/src/transport/v1/transport_pb.d.ts.map +1 -1
- package/dist/src/transport/v1/transport_pb.js +16 -0
- package/dist/src/transport/v1/transport_pb.js.map +1 -1
- package/dist/src/worker/v1/sandbox_executor_transport_pb.d.ts +16 -16
- package/dist/src/worker/v1/sandbox_executor_transport_pb.d.ts.map +1 -1
- package/dist/src/worker/v1/sandbox_executor_transport_pb.js +17 -17
- package/dist/src/worker/v1/sandbox_executor_transport_pb.js.map +1 -1
- package/dist/src/worker/v1/sandbox_transport_pb.d.ts +262 -0
- package/dist/src/worker/v1/sandbox_transport_pb.d.ts.map +1 -0
- package/dist/src/worker/v1/sandbox_transport_pb.js +420 -0
- package/dist/src/worker/v1/sandbox_transport_pb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api/v1/service_pb.ts +29 -0
- package/src/transport/v1/transport_pb.ts +19 -0
- package/src/worker/v1/sandbox_executor_transport_pb.ts +24 -24
- package/src/worker/v1/sandbox_transport_pb.ts +494 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file worker/v1/sandbox_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 { Duration, Empty, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
import { Request_Data_Data_Props, Request_Data_Data_Quota, Request_Data_Pinned } from "../../transport/v1/transport_pb";
|
|
9
|
+
import { OutputOld } from "../../api/v1/event_pb";
|
|
10
|
+
import { Error } from "../../common/v1/errors_pb";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @generated from message worker.v1.RequestMetadata
|
|
14
|
+
*/
|
|
15
|
+
export class RequestMetadata extends Message<RequestMetadata> {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string pluginName = 1;
|
|
18
|
+
*/
|
|
19
|
+
pluginName = "";
|
|
20
|
+
|
|
21
|
+
constructor(data?: PartialMessage<RequestMetadata>) {
|
|
22
|
+
super();
|
|
23
|
+
proto3.util.initPartial(data, this);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
27
|
+
static readonly typeName = "worker.v1.RequestMetadata";
|
|
28
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
29
|
+
{ no: 1, name: "pluginName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestMetadata {
|
|
33
|
+
return new RequestMetadata().fromBinary(bytes, options);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestMetadata {
|
|
37
|
+
return new RequestMetadata().fromJson(jsonValue, options);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestMetadata {
|
|
41
|
+
return new RequestMetadata().fromJsonString(jsonString, options);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static equals(a: RequestMetadata | PlainMessage<RequestMetadata> | undefined, b: RequestMetadata | PlainMessage<RequestMetadata> | undefined): boolean {
|
|
45
|
+
return proto3.util.equals(RequestMetadata, a, b);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Execute request sent to workers
|
|
51
|
+
*
|
|
52
|
+
* @generated from message worker.v1.ExecuteRequest
|
|
53
|
+
*/
|
|
54
|
+
export class ExecuteRequest extends Message<ExecuteRequest> {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: worker.v1.RequestMetadata metadata = 1;
|
|
57
|
+
*/
|
|
58
|
+
metadata?: RequestMetadata;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The request props (contains the action config and datasource config)
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: transport.v1.Request.Data.Data.Props props = 2;
|
|
64
|
+
*/
|
|
65
|
+
props?: Request_Data_Data_Props;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The quotas to apply to this step
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: transport.v1.Request.Data.Data.Quota quotas = 3;
|
|
71
|
+
*/
|
|
72
|
+
quotas?: Request_Data_Data_Quota;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The pinned data (contains the observability tags)
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: transport.v1.Request.Data.Pinned pinned = 4;
|
|
78
|
+
*/
|
|
79
|
+
pinned?: Request_Data_Pinned;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Address of the variable store (task-manager) for callbacks
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: string variable_store_address = 5;
|
|
85
|
+
*/
|
|
86
|
+
variableStoreAddress = "";
|
|
87
|
+
|
|
88
|
+
constructor(data?: PartialMessage<ExecuteRequest>) {
|
|
89
|
+
super();
|
|
90
|
+
proto3.util.initPartial(data, this);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
94
|
+
static readonly typeName = "worker.v1.ExecuteRequest";
|
|
95
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
96
|
+
{ no: 1, name: "metadata", kind: "message", T: RequestMetadata },
|
|
97
|
+
{ no: 2, name: "props", kind: "message", T: Request_Data_Data_Props },
|
|
98
|
+
{ no: 3, name: "quotas", kind: "message", T: Request_Data_Data_Quota },
|
|
99
|
+
{ no: 4, name: "pinned", kind: "message", T: Request_Data_Pinned },
|
|
100
|
+
{ no: 5, name: "variable_store_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
|
+
]);
|
|
102
|
+
|
|
103
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteRequest {
|
|
104
|
+
return new ExecuteRequest().fromBinary(bytes, options);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteRequest {
|
|
108
|
+
return new ExecuteRequest().fromJson(jsonValue, options);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteRequest {
|
|
112
|
+
return new ExecuteRequest().fromJsonString(jsonString, options);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static equals(a: ExecuteRequest | PlainMessage<ExecuteRequest> | undefined, b: ExecuteRequest | PlainMessage<ExecuteRequest> | undefined): boolean {
|
|
116
|
+
return proto3.util.equals(ExecuteRequest, a, b);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from message worker.v1.ExecuteResponse
|
|
122
|
+
*/
|
|
123
|
+
export class ExecuteResponse extends Message<ExecuteResponse> {
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: api.v1.OutputOld output = 1;
|
|
126
|
+
*/
|
|
127
|
+
output?: OutputOld;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: common.v1.Error error = 2;
|
|
131
|
+
*/
|
|
132
|
+
error?: Error;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: bool authError = 3;
|
|
136
|
+
*/
|
|
137
|
+
authError = false;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: repeated string children = 4;
|
|
141
|
+
*/
|
|
142
|
+
children: string[] = [];
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: optional google.protobuf.Timestamp startTime = 5;
|
|
146
|
+
*/
|
|
147
|
+
startTime?: Timestamp;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: google.protobuf.Duration executionTime = 6;
|
|
151
|
+
*/
|
|
152
|
+
executionTime?: Duration;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: repeated worker.v1.StructuredLog structuredLog = 7;
|
|
156
|
+
*/
|
|
157
|
+
structuredLog: StructuredLog[] = [];
|
|
158
|
+
|
|
159
|
+
constructor(data?: PartialMessage<ExecuteResponse>) {
|
|
160
|
+
super();
|
|
161
|
+
proto3.util.initPartial(data, this);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
165
|
+
static readonly typeName = "worker.v1.ExecuteResponse";
|
|
166
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
167
|
+
{ no: 1, name: "output", kind: "message", T: OutputOld },
|
|
168
|
+
{ no: 2, name: "error", kind: "message", T: Error },
|
|
169
|
+
{ no: 3, name: "authError", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
170
|
+
{ no: 4, name: "children", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
171
|
+
{ no: 5, name: "startTime", kind: "message", T: Timestamp, opt: true },
|
|
172
|
+
{ no: 6, name: "executionTime", kind: "message", T: Duration },
|
|
173
|
+
{ no: 7, name: "structuredLog", kind: "message", T: StructuredLog, repeated: true },
|
|
174
|
+
]);
|
|
175
|
+
|
|
176
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteResponse {
|
|
177
|
+
return new ExecuteResponse().fromBinary(bytes, options);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteResponse {
|
|
181
|
+
return new ExecuteResponse().fromJson(jsonValue, options);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteResponse {
|
|
185
|
+
return new ExecuteResponse().fromJsonString(jsonString, options);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
static equals(a: ExecuteResponse | PlainMessage<ExecuteResponse> | undefined, b: ExecuteResponse | PlainMessage<ExecuteResponse> | undefined): boolean {
|
|
189
|
+
return proto3.util.equals(ExecuteResponse, a, b);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @generated from message worker.v1.StreamRequest
|
|
195
|
+
*/
|
|
196
|
+
export class StreamRequest extends Message<StreamRequest> {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: worker.v1.ExecuteRequest request = 1;
|
|
199
|
+
*/
|
|
200
|
+
request?: ExecuteRequest;
|
|
201
|
+
|
|
202
|
+
constructor(data?: PartialMessage<StreamRequest>) {
|
|
203
|
+
super();
|
|
204
|
+
proto3.util.initPartial(data, this);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
208
|
+
static readonly typeName = "worker.v1.StreamRequest";
|
|
209
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
210
|
+
{ no: 1, name: "request", kind: "message", T: ExecuteRequest },
|
|
211
|
+
]);
|
|
212
|
+
|
|
213
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamRequest {
|
|
214
|
+
return new StreamRequest().fromBinary(bytes, options);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamRequest {
|
|
218
|
+
return new StreamRequest().fromJson(jsonValue, options);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamRequest {
|
|
222
|
+
return new StreamRequest().fromJsonString(jsonString, options);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
static equals(a: StreamRequest | PlainMessage<StreamRequest> | undefined, b: StreamRequest | PlainMessage<StreamRequest> | undefined): boolean {
|
|
226
|
+
return proto3.util.equals(StreamRequest, a, b);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @generated from message worker.v1.StreamResponse
|
|
232
|
+
*/
|
|
233
|
+
export class StreamResponse extends Message<StreamResponse> {
|
|
234
|
+
/**
|
|
235
|
+
* @generated from field: google.protobuf.Empty response = 1;
|
|
236
|
+
*/
|
|
237
|
+
response?: Empty;
|
|
238
|
+
|
|
239
|
+
constructor(data?: PartialMessage<StreamResponse>) {
|
|
240
|
+
super();
|
|
241
|
+
proto3.util.initPartial(data, this);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
245
|
+
static readonly typeName = "worker.v1.StreamResponse";
|
|
246
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
247
|
+
{ no: 1, name: "response", kind: "message", T: Empty },
|
|
248
|
+
]);
|
|
249
|
+
|
|
250
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamResponse {
|
|
251
|
+
return new StreamResponse().fromBinary(bytes, options);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamResponse {
|
|
255
|
+
return new StreamResponse().fromJson(jsonValue, options);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamResponse {
|
|
259
|
+
return new StreamResponse().fromJsonString(jsonString, options);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
static equals(a: StreamResponse | PlainMessage<StreamResponse> | undefined, b: StreamResponse | PlainMessage<StreamResponse> | undefined): boolean {
|
|
263
|
+
return proto3.util.equals(StreamResponse, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @generated from message worker.v1.MetadataRequest
|
|
269
|
+
*/
|
|
270
|
+
export class MetadataRequest extends Message<MetadataRequest> {
|
|
271
|
+
/**
|
|
272
|
+
* @generated from field: worker.v1.RequestMetadata metadata = 1;
|
|
273
|
+
*/
|
|
274
|
+
metadata?: RequestMetadata;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @generated from field: google.protobuf.Struct datasourceConfig = 2;
|
|
278
|
+
*/
|
|
279
|
+
datasourceConfig?: Struct;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: google.protobuf.Struct actionConfig = 3;
|
|
283
|
+
*/
|
|
284
|
+
actionConfig?: Struct;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: string variable_store_address = 4;
|
|
288
|
+
*/
|
|
289
|
+
variableStoreAddress = "";
|
|
290
|
+
|
|
291
|
+
constructor(data?: PartialMessage<MetadataRequest>) {
|
|
292
|
+
super();
|
|
293
|
+
proto3.util.initPartial(data, this);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
297
|
+
static readonly typeName = "worker.v1.MetadataRequest";
|
|
298
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
299
|
+
{ no: 1, name: "metadata", kind: "message", T: RequestMetadata },
|
|
300
|
+
{ no: 2, name: "datasourceConfig", kind: "message", T: Struct },
|
|
301
|
+
{ no: 3, name: "actionConfig", kind: "message", T: Struct },
|
|
302
|
+
{ no: 4, name: "variable_store_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
303
|
+
]);
|
|
304
|
+
|
|
305
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetadataRequest {
|
|
306
|
+
return new MetadataRequest().fromBinary(bytes, options);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetadataRequest {
|
|
310
|
+
return new MetadataRequest().fromJson(jsonValue, options);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetadataRequest {
|
|
314
|
+
return new MetadataRequest().fromJsonString(jsonString, options);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static equals(a: MetadataRequest | PlainMessage<MetadataRequest> | undefined, b: MetadataRequest | PlainMessage<MetadataRequest> | undefined): boolean {
|
|
318
|
+
return proto3.util.equals(MetadataRequest, a, b);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @generated from message worker.v1.TestRequest
|
|
324
|
+
*/
|
|
325
|
+
export class TestRequest extends Message<TestRequest> {
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: worker.v1.RequestMetadata metadata = 1;
|
|
328
|
+
*/
|
|
329
|
+
metadata?: RequestMetadata;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: google.protobuf.Struct datasourceConfig = 2;
|
|
333
|
+
*/
|
|
334
|
+
datasourceConfig?: Struct;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @generated from field: google.protobuf.Struct actionConfig = 3;
|
|
338
|
+
*/
|
|
339
|
+
actionConfig?: Struct;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: string variable_store_address = 4;
|
|
343
|
+
*/
|
|
344
|
+
variableStoreAddress = "";
|
|
345
|
+
|
|
346
|
+
constructor(data?: PartialMessage<TestRequest>) {
|
|
347
|
+
super();
|
|
348
|
+
proto3.util.initPartial(data, this);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
352
|
+
static readonly typeName = "worker.v1.TestRequest";
|
|
353
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
354
|
+
{ no: 1, name: "metadata", kind: "message", T: RequestMetadata },
|
|
355
|
+
{ no: 2, name: "datasourceConfig", kind: "message", T: Struct },
|
|
356
|
+
{ no: 3, name: "actionConfig", kind: "message", T: Struct },
|
|
357
|
+
{ no: 4, name: "variable_store_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
358
|
+
]);
|
|
359
|
+
|
|
360
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TestRequest {
|
|
361
|
+
return new TestRequest().fromBinary(bytes, options);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TestRequest {
|
|
365
|
+
return new TestRequest().fromJson(jsonValue, options);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TestRequest {
|
|
369
|
+
return new TestRequest().fromJsonString(jsonString, options);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
static equals(a: TestRequest | PlainMessage<TestRequest> | undefined, b: TestRequest | PlainMessage<TestRequest> | undefined): boolean {
|
|
373
|
+
return proto3.util.equals(TestRequest, a, b);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @generated from message worker.v1.PreDeleteRequest
|
|
379
|
+
*/
|
|
380
|
+
export class PreDeleteRequest extends Message<PreDeleteRequest> {
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: worker.v1.RequestMetadata metadata = 1;
|
|
383
|
+
*/
|
|
384
|
+
metadata?: RequestMetadata;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: google.protobuf.Struct datasourceConfig = 2;
|
|
388
|
+
*/
|
|
389
|
+
datasourceConfig?: Struct;
|
|
390
|
+
|
|
391
|
+
constructor(data?: PartialMessage<PreDeleteRequest>) {
|
|
392
|
+
super();
|
|
393
|
+
proto3.util.initPartial(data, this);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
397
|
+
static readonly typeName = "worker.v1.PreDeleteRequest";
|
|
398
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
399
|
+
{ no: 1, name: "metadata", kind: "message", T: RequestMetadata },
|
|
400
|
+
{ no: 2, name: "datasourceConfig", kind: "message", T: Struct },
|
|
401
|
+
]);
|
|
402
|
+
|
|
403
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PreDeleteRequest {
|
|
404
|
+
return new PreDeleteRequest().fromBinary(bytes, options);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PreDeleteRequest {
|
|
408
|
+
return new PreDeleteRequest().fromJson(jsonValue, options);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PreDeleteRequest {
|
|
412
|
+
return new PreDeleteRequest().fromJsonString(jsonString, options);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
static equals(a: PreDeleteRequest | PlainMessage<PreDeleteRequest> | undefined, b: PreDeleteRequest | PlainMessage<PreDeleteRequest> | undefined): boolean {
|
|
416
|
+
return proto3.util.equals(PreDeleteRequest, a, b);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @generated from message worker.v1.StructuredLog
|
|
422
|
+
*/
|
|
423
|
+
export class StructuredLog extends Message<StructuredLog> {
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: string message = 1;
|
|
426
|
+
*/
|
|
427
|
+
message = "";
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @generated from field: worker.v1.StructuredLog.Level level = 2;
|
|
431
|
+
*/
|
|
432
|
+
level = StructuredLog_Level.UNSPECIFIED;
|
|
433
|
+
|
|
434
|
+
constructor(data?: PartialMessage<StructuredLog>) {
|
|
435
|
+
super();
|
|
436
|
+
proto3.util.initPartial(data, this);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
440
|
+
static readonly typeName = "worker.v1.StructuredLog";
|
|
441
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
442
|
+
{ no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
443
|
+
{ no: 2, name: "level", kind: "enum", T: proto3.getEnumType(StructuredLog_Level) },
|
|
444
|
+
]);
|
|
445
|
+
|
|
446
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StructuredLog {
|
|
447
|
+
return new StructuredLog().fromBinary(bytes, options);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StructuredLog {
|
|
451
|
+
return new StructuredLog().fromJson(jsonValue, options);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StructuredLog {
|
|
455
|
+
return new StructuredLog().fromJsonString(jsonString, options);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
static equals(a: StructuredLog | PlainMessage<StructuredLog> | undefined, b: StructuredLog | PlainMessage<StructuredLog> | undefined): boolean {
|
|
459
|
+
return proto3.util.equals(StructuredLog, a, b);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @generated from enum worker.v1.StructuredLog.Level
|
|
465
|
+
*/
|
|
466
|
+
export enum StructuredLog_Level {
|
|
467
|
+
/**
|
|
468
|
+
* @generated from enum value: LEVEL_UNSPECIFIED = 0;
|
|
469
|
+
*/
|
|
470
|
+
UNSPECIFIED = 0,
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* @generated from enum value: LEVEL_INFO = 1;
|
|
474
|
+
*/
|
|
475
|
+
INFO = 1,
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @generated from enum value: LEVEL_WARN = 2;
|
|
479
|
+
*/
|
|
480
|
+
WARN = 2,
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @generated from enum value: LEVEL_ERROR = 3;
|
|
484
|
+
*/
|
|
485
|
+
ERROR = 3,
|
|
486
|
+
}
|
|
487
|
+
// Retrieve enum metadata with: proto3.getEnumType(StructuredLog_Level)
|
|
488
|
+
proto3.util.setEnumType(StructuredLog_Level, "worker.v1.StructuredLog.Level", [
|
|
489
|
+
{ no: 0, name: "LEVEL_UNSPECIFIED" },
|
|
490
|
+
{ no: 1, name: "LEVEL_INFO" },
|
|
491
|
+
{ no: 2, name: "LEVEL_WARN" },
|
|
492
|
+
{ no: 3, name: "LEVEL_ERROR" },
|
|
493
|
+
]);
|
|
494
|
+
|