@sentio/runtime 4.0.0-rc.1 → 4.0.0-rc.2
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/lib/{chunk-GUQLAUIA.js → chunk-63SN5KU2.js} +4419 -33386
- package/lib/chunk-63SN5KU2.js.map +1 -0
- package/lib/chunk-MSVN53DI.js +4992 -0
- package/lib/chunk-MSVN53DI.js.map +1 -0
- package/lib/index.d.ts +1734 -547
- package/lib/index.js +2 -2
- package/lib/plugin-D-rx1WCp.d.ts +108 -0
- package/lib/processor-runner.js +25553 -352
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/action-server.ts +3 -2
- package/src/db-context.ts +58 -45
- package/src/full-service.ts +35 -382
- package/src/gen/google/type/money_pb.ts +41 -0
- package/src/gen/processor/protos/processor_pb.ts +3855 -0
- package/src/gen/service/common/protos/common_pb.ts +4456 -0
- package/src/global-config.ts +3 -2
- package/src/plugin.ts +26 -16
- package/src/processor-runner.ts +29 -25
- package/src/service-v3.ts +54 -56
- package/src/service.ts +94 -87
- package/src/utils.ts +9 -12
- package/lib/chunk-GUQLAUIA.js.map +0 -1
- package/lib/chunk-KOMGWSWU.js +0 -25311
- package/lib/chunk-KOMGWSWU.js.map +0 -1
- package/lib/processor-StqZovMW.d.ts +0 -554
- package/src/gen/google/protobuf/empty.ts +0 -71
- package/src/gen/google/protobuf/struct.ts +0 -561
- package/src/gen/google/protobuf/timestamp.ts +0 -113
- package/src/gen/google/type/money.ts +0 -134
- package/src/gen/processor/protos/processor.ts +0 -15354
- package/src/gen/service/common/protos/common.ts +0 -16525
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8-patch.2
|
|
4
|
-
// protoc v6.33.5
|
|
5
|
-
// source: google/protobuf/struct.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export enum NullValue {
|
|
11
|
-
NULL_VALUE = 0,
|
|
12
|
-
UNRECOGNIZED = -1,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function nullValueFromJSON(object: any): NullValue {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "NULL_VALUE":
|
|
19
|
-
return NullValue.NULL_VALUE;
|
|
20
|
-
case -1:
|
|
21
|
-
case "UNRECOGNIZED":
|
|
22
|
-
default:
|
|
23
|
-
return NullValue.UNRECOGNIZED;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function nullValueToJSON(object: NullValue): string {
|
|
28
|
-
switch (object) {
|
|
29
|
-
case NullValue.NULL_VALUE:
|
|
30
|
-
return "NULL_VALUE";
|
|
31
|
-
case NullValue.UNRECOGNIZED:
|
|
32
|
-
default:
|
|
33
|
-
return "UNRECOGNIZED";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface Struct {
|
|
38
|
-
fields: { [key: string]: any | undefined };
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface Struct_FieldsEntry {
|
|
42
|
-
key: string;
|
|
43
|
-
value: any | undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface Value {
|
|
47
|
-
nullValue?: NullValue | undefined;
|
|
48
|
-
numberValue?: number | undefined;
|
|
49
|
-
stringValue?: string | undefined;
|
|
50
|
-
boolValue?: boolean | undefined;
|
|
51
|
-
structValue?: { [key: string]: any } | undefined;
|
|
52
|
-
listValue?: Array<any> | undefined;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ListValue {
|
|
56
|
-
values: any[];
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function createBaseStruct(): Struct {
|
|
60
|
-
return { fields: {} };
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const Struct: MessageFns<Struct> & StructWrapperFns = {
|
|
64
|
-
encode(message: Struct, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
65
|
-
globalThis.Object.entries(message.fields).forEach(([key, value]: [string, any | undefined]) => {
|
|
66
|
-
if (value !== undefined) {
|
|
67
|
-
Struct_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
return writer;
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Struct {
|
|
74
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
75
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
76
|
-
const message = createBaseStruct();
|
|
77
|
-
while (reader.pos < end) {
|
|
78
|
-
const tag = reader.uint32();
|
|
79
|
-
switch (tag >>> 3) {
|
|
80
|
-
case 1: {
|
|
81
|
-
if (tag !== 10) {
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const entry1 = Struct_FieldsEntry.decode(reader, reader.uint32());
|
|
86
|
-
if (entry1.value !== undefined) {
|
|
87
|
-
message.fields[entry1.key] = entry1.value;
|
|
88
|
-
}
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
reader.skip(tag & 7);
|
|
96
|
-
}
|
|
97
|
-
return message;
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
fromJSON(object: any): Struct {
|
|
101
|
-
return {
|
|
102
|
-
fields: isObject(object.fields)
|
|
103
|
-
? (globalThis.Object.entries(object.fields) as [string, any][]).reduce(
|
|
104
|
-
(acc: { [key: string]: any | undefined }, [key, value]: [string, any]) => {
|
|
105
|
-
acc[key] = value as any | undefined;
|
|
106
|
-
return acc;
|
|
107
|
-
},
|
|
108
|
-
{},
|
|
109
|
-
)
|
|
110
|
-
: {},
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
toJSON(message: Struct): unknown {
|
|
115
|
-
const obj: any = {};
|
|
116
|
-
if (message.fields) {
|
|
117
|
-
const entries = globalThis.Object.entries(message.fields) as [string, any | undefined][];
|
|
118
|
-
if (entries.length > 0) {
|
|
119
|
-
obj.fields = {};
|
|
120
|
-
entries.forEach(([k, v]) => {
|
|
121
|
-
obj.fields[k] = v;
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return obj;
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
create(base?: DeepPartial<Struct>): Struct {
|
|
129
|
-
return Struct.fromPartial(base ?? {});
|
|
130
|
-
},
|
|
131
|
-
fromPartial(object: DeepPartial<Struct>): Struct {
|
|
132
|
-
const message = createBaseStruct();
|
|
133
|
-
message.fields = (globalThis.Object.entries(object.fields ?? {}) as [string, any | undefined][]).reduce(
|
|
134
|
-
(acc: { [key: string]: any | undefined }, [key, value]: [string, any | undefined]) => {
|
|
135
|
-
if (value !== undefined) {
|
|
136
|
-
acc[key] = value;
|
|
137
|
-
}
|
|
138
|
-
return acc;
|
|
139
|
-
},
|
|
140
|
-
{},
|
|
141
|
-
);
|
|
142
|
-
return message;
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
wrap(object: { [key: string]: any } | undefined): Struct {
|
|
146
|
-
const struct = createBaseStruct();
|
|
147
|
-
|
|
148
|
-
if (object !== undefined) {
|
|
149
|
-
for (const key of globalThis.Object.keys(object)) {
|
|
150
|
-
struct.fields[key] = object[key];
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return struct;
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
unwrap(message: Struct): { [key: string]: any } {
|
|
157
|
-
const object: { [key: string]: any } = {};
|
|
158
|
-
if (message.fields) {
|
|
159
|
-
for (const key of globalThis.Object.keys(message.fields)) {
|
|
160
|
-
object[key] = message.fields[key];
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return object;
|
|
164
|
-
},
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
function createBaseStruct_FieldsEntry(): Struct_FieldsEntry {
|
|
168
|
-
return { key: "", value: undefined };
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export const Struct_FieldsEntry: MessageFns<Struct_FieldsEntry> = {
|
|
172
|
-
encode(message: Struct_FieldsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
173
|
-
if (message.key !== "") {
|
|
174
|
-
writer.uint32(10).string(message.key);
|
|
175
|
-
}
|
|
176
|
-
if (message.value !== undefined) {
|
|
177
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
178
|
-
}
|
|
179
|
-
return writer;
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Struct_FieldsEntry {
|
|
183
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
184
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
-
const message = createBaseStruct_FieldsEntry();
|
|
186
|
-
while (reader.pos < end) {
|
|
187
|
-
const tag = reader.uint32();
|
|
188
|
-
switch (tag >>> 3) {
|
|
189
|
-
case 1: {
|
|
190
|
-
if (tag !== 10) {
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
message.key = reader.string();
|
|
195
|
-
continue;
|
|
196
|
-
}
|
|
197
|
-
case 2: {
|
|
198
|
-
if (tag !== 18) {
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
reader.skip(tag & 7);
|
|
210
|
-
}
|
|
211
|
-
return message;
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
fromJSON(object: any): Struct_FieldsEntry {
|
|
215
|
-
return {
|
|
216
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
217
|
-
value: isSet(object?.value) ? object.value : undefined,
|
|
218
|
-
};
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
toJSON(message: Struct_FieldsEntry): unknown {
|
|
222
|
-
const obj: any = {};
|
|
223
|
-
if (message.key !== "") {
|
|
224
|
-
obj.key = message.key;
|
|
225
|
-
}
|
|
226
|
-
if (message.value !== undefined) {
|
|
227
|
-
obj.value = message.value;
|
|
228
|
-
}
|
|
229
|
-
return obj;
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
create(base?: DeepPartial<Struct_FieldsEntry>): Struct_FieldsEntry {
|
|
233
|
-
return Struct_FieldsEntry.fromPartial(base ?? {});
|
|
234
|
-
},
|
|
235
|
-
fromPartial(object: DeepPartial<Struct_FieldsEntry>): Struct_FieldsEntry {
|
|
236
|
-
const message = createBaseStruct_FieldsEntry();
|
|
237
|
-
message.key = object.key ?? "";
|
|
238
|
-
message.value = object.value ?? undefined;
|
|
239
|
-
return message;
|
|
240
|
-
},
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
function createBaseValue(): Value {
|
|
244
|
-
return {
|
|
245
|
-
nullValue: undefined,
|
|
246
|
-
numberValue: undefined,
|
|
247
|
-
stringValue: undefined,
|
|
248
|
-
boolValue: undefined,
|
|
249
|
-
structValue: undefined,
|
|
250
|
-
listValue: undefined,
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export const Value: MessageFns<Value> & AnyValueWrapperFns = {
|
|
255
|
-
encode(message: Value, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
256
|
-
if (message.nullValue !== undefined) {
|
|
257
|
-
writer.uint32(8).int32(message.nullValue);
|
|
258
|
-
}
|
|
259
|
-
if (message.numberValue !== undefined) {
|
|
260
|
-
writer.uint32(17).double(message.numberValue);
|
|
261
|
-
}
|
|
262
|
-
if (message.stringValue !== undefined) {
|
|
263
|
-
writer.uint32(26).string(message.stringValue);
|
|
264
|
-
}
|
|
265
|
-
if (message.boolValue !== undefined) {
|
|
266
|
-
writer.uint32(32).bool(message.boolValue);
|
|
267
|
-
}
|
|
268
|
-
if (message.structValue !== undefined) {
|
|
269
|
-
Struct.encode(Struct.wrap(message.structValue), writer.uint32(42).fork()).join();
|
|
270
|
-
}
|
|
271
|
-
if (message.listValue !== undefined) {
|
|
272
|
-
ListValue.encode(ListValue.wrap(message.listValue), writer.uint32(50).fork()).join();
|
|
273
|
-
}
|
|
274
|
-
return writer;
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Value {
|
|
278
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
279
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
280
|
-
const message = createBaseValue();
|
|
281
|
-
while (reader.pos < end) {
|
|
282
|
-
const tag = reader.uint32();
|
|
283
|
-
switch (tag >>> 3) {
|
|
284
|
-
case 1: {
|
|
285
|
-
if (tag !== 8) {
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
message.nullValue = reader.int32() as any;
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
case 2: {
|
|
293
|
-
if (tag !== 17) {
|
|
294
|
-
break;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
message.numberValue = reader.double();
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
case 3: {
|
|
301
|
-
if (tag !== 26) {
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
message.stringValue = reader.string();
|
|
306
|
-
continue;
|
|
307
|
-
}
|
|
308
|
-
case 4: {
|
|
309
|
-
if (tag !== 32) {
|
|
310
|
-
break;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
message.boolValue = reader.bool();
|
|
314
|
-
continue;
|
|
315
|
-
}
|
|
316
|
-
case 5: {
|
|
317
|
-
if (tag !== 42) {
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
message.structValue = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
322
|
-
continue;
|
|
323
|
-
}
|
|
324
|
-
case 6: {
|
|
325
|
-
if (tag !== 50) {
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
message.listValue = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
334
|
-
break;
|
|
335
|
-
}
|
|
336
|
-
reader.skip(tag & 7);
|
|
337
|
-
}
|
|
338
|
-
return message;
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
fromJSON(object: any): Value {
|
|
342
|
-
return {
|
|
343
|
-
nullValue: isSet(object.nullValue)
|
|
344
|
-
? nullValueFromJSON(object.nullValue)
|
|
345
|
-
: isSet(object.null_value)
|
|
346
|
-
? nullValueFromJSON(object.null_value)
|
|
347
|
-
: undefined,
|
|
348
|
-
numberValue: isSet(object.numberValue)
|
|
349
|
-
? globalThis.Number(object.numberValue)
|
|
350
|
-
: isSet(object.number_value)
|
|
351
|
-
? globalThis.Number(object.number_value)
|
|
352
|
-
: undefined,
|
|
353
|
-
stringValue: isSet(object.stringValue)
|
|
354
|
-
? globalThis.String(object.stringValue)
|
|
355
|
-
: isSet(object.string_value)
|
|
356
|
-
? globalThis.String(object.string_value)
|
|
357
|
-
: undefined,
|
|
358
|
-
boolValue: isSet(object.boolValue)
|
|
359
|
-
? globalThis.Boolean(object.boolValue)
|
|
360
|
-
: isSet(object.bool_value)
|
|
361
|
-
? globalThis.Boolean(object.bool_value)
|
|
362
|
-
: undefined,
|
|
363
|
-
structValue: isObject(object.structValue)
|
|
364
|
-
? object.structValue
|
|
365
|
-
: isObject(object.struct_value)
|
|
366
|
-
? object.struct_value
|
|
367
|
-
: undefined,
|
|
368
|
-
listValue: globalThis.Array.isArray(object.listValue)
|
|
369
|
-
? [...object.listValue]
|
|
370
|
-
: globalThis.Array.isArray(object.list_value)
|
|
371
|
-
? [...object.list_value]
|
|
372
|
-
: undefined,
|
|
373
|
-
};
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
toJSON(message: Value): unknown {
|
|
377
|
-
const obj: any = {};
|
|
378
|
-
if (message.nullValue !== undefined) {
|
|
379
|
-
obj.nullValue = nullValueToJSON(message.nullValue);
|
|
380
|
-
}
|
|
381
|
-
if (message.numberValue !== undefined) {
|
|
382
|
-
obj.numberValue = message.numberValue;
|
|
383
|
-
}
|
|
384
|
-
if (message.stringValue !== undefined) {
|
|
385
|
-
obj.stringValue = message.stringValue;
|
|
386
|
-
}
|
|
387
|
-
if (message.boolValue !== undefined) {
|
|
388
|
-
obj.boolValue = message.boolValue;
|
|
389
|
-
}
|
|
390
|
-
if (message.structValue !== undefined) {
|
|
391
|
-
obj.structValue = message.structValue;
|
|
392
|
-
}
|
|
393
|
-
if (message.listValue !== undefined) {
|
|
394
|
-
obj.listValue = message.listValue;
|
|
395
|
-
}
|
|
396
|
-
return obj;
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
create(base?: DeepPartial<Value>): Value {
|
|
400
|
-
return Value.fromPartial(base ?? {});
|
|
401
|
-
},
|
|
402
|
-
fromPartial(object: DeepPartial<Value>): Value {
|
|
403
|
-
const message = createBaseValue();
|
|
404
|
-
message.nullValue = object.nullValue ?? undefined;
|
|
405
|
-
message.numberValue = object.numberValue ?? undefined;
|
|
406
|
-
message.stringValue = object.stringValue ?? undefined;
|
|
407
|
-
message.boolValue = object.boolValue ?? undefined;
|
|
408
|
-
message.structValue = object.structValue ?? undefined;
|
|
409
|
-
message.listValue = object.listValue ?? undefined;
|
|
410
|
-
return message;
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
wrap(value: any): Value {
|
|
414
|
-
const result = createBaseValue();
|
|
415
|
-
if (value === null) {
|
|
416
|
-
result.nullValue = NullValue.NULL_VALUE;
|
|
417
|
-
} else if (typeof value === "boolean") {
|
|
418
|
-
result.boolValue = value;
|
|
419
|
-
} else if (typeof value === "number") {
|
|
420
|
-
result.numberValue = value;
|
|
421
|
-
} else if (typeof value === "string") {
|
|
422
|
-
result.stringValue = value;
|
|
423
|
-
} else if (globalThis.Array.isArray(value)) {
|
|
424
|
-
result.listValue = value;
|
|
425
|
-
} else if (typeof value === "object") {
|
|
426
|
-
result.structValue = value;
|
|
427
|
-
} else if (typeof value !== "undefined") {
|
|
428
|
-
throw new globalThis.Error("Unsupported any value type: " + typeof value);
|
|
429
|
-
}
|
|
430
|
-
return result;
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined {
|
|
434
|
-
if (message.stringValue !== undefined) {
|
|
435
|
-
return message.stringValue;
|
|
436
|
-
} else if (message?.numberValue !== undefined) {
|
|
437
|
-
return message.numberValue;
|
|
438
|
-
} else if (message?.boolValue !== undefined) {
|
|
439
|
-
return message.boolValue;
|
|
440
|
-
} else if (message?.structValue !== undefined) {
|
|
441
|
-
return message.structValue as any;
|
|
442
|
-
} else if (message?.listValue !== undefined) {
|
|
443
|
-
return message.listValue;
|
|
444
|
-
} else if (message?.nullValue !== undefined) {
|
|
445
|
-
return null;
|
|
446
|
-
}
|
|
447
|
-
return undefined;
|
|
448
|
-
},
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
function createBaseListValue(): ListValue {
|
|
452
|
-
return { values: [] };
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export const ListValue: MessageFns<ListValue> & ListValueWrapperFns = {
|
|
456
|
-
encode(message: ListValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
457
|
-
for (const v of message.values) {
|
|
458
|
-
Value.encode(Value.wrap(v!), writer.uint32(10).fork()).join();
|
|
459
|
-
}
|
|
460
|
-
return writer;
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
decode(input: BinaryReader | Uint8Array, length?: number): ListValue {
|
|
464
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
465
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
466
|
-
const message = createBaseListValue();
|
|
467
|
-
while (reader.pos < end) {
|
|
468
|
-
const tag = reader.uint32();
|
|
469
|
-
switch (tag >>> 3) {
|
|
470
|
-
case 1: {
|
|
471
|
-
if (tag !== 10) {
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
message.values.push(Value.unwrap(Value.decode(reader, reader.uint32())));
|
|
476
|
-
continue;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
480
|
-
break;
|
|
481
|
-
}
|
|
482
|
-
reader.skip(tag & 7);
|
|
483
|
-
}
|
|
484
|
-
return message;
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
fromJSON(object: any): ListValue {
|
|
488
|
-
return { values: globalThis.Array.isArray(object?.values) ? [...object.values] : [] };
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
toJSON(message: ListValue): unknown {
|
|
492
|
-
const obj: any = {};
|
|
493
|
-
if (message.values?.length) {
|
|
494
|
-
obj.values = message.values;
|
|
495
|
-
}
|
|
496
|
-
return obj;
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
create(base?: DeepPartial<ListValue>): ListValue {
|
|
500
|
-
return ListValue.fromPartial(base ?? {});
|
|
501
|
-
},
|
|
502
|
-
fromPartial(object: DeepPartial<ListValue>): ListValue {
|
|
503
|
-
const message = createBaseListValue();
|
|
504
|
-
message.values = object.values?.map((e) => e) || [];
|
|
505
|
-
return message;
|
|
506
|
-
},
|
|
507
|
-
|
|
508
|
-
wrap(array: Array<any> | undefined): ListValue {
|
|
509
|
-
const result = createBaseListValue();
|
|
510
|
-
result.values = array ?? [];
|
|
511
|
-
return result;
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
unwrap(message: ListValue): Array<any> {
|
|
515
|
-
if (message?.hasOwnProperty("values") && globalThis.Array.isArray(message.values)) {
|
|
516
|
-
return message.values;
|
|
517
|
-
} else {
|
|
518
|
-
return message as any;
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
524
|
-
|
|
525
|
-
type DeepPartial<T> = T extends Builtin ? T
|
|
526
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
527
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
528
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
529
|
-
: Partial<T>;
|
|
530
|
-
|
|
531
|
-
function isObject(value: any): boolean {
|
|
532
|
-
return typeof value === "object" && value !== null;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
function isSet(value: any): boolean {
|
|
536
|
-
return value !== null && value !== undefined;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
interface MessageFns<T> {
|
|
540
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
541
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
542
|
-
fromJSON(object: any): T;
|
|
543
|
-
toJSON(message: T): unknown;
|
|
544
|
-
create(base?: DeepPartial<T>): T;
|
|
545
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
interface StructWrapperFns {
|
|
549
|
-
wrap(object: { [key: string]: any } | undefined): Struct;
|
|
550
|
-
unwrap(message: Struct): { [key: string]: any };
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
interface AnyValueWrapperFns {
|
|
554
|
-
wrap(value: any): Value;
|
|
555
|
-
unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
interface ListValueWrapperFns {
|
|
559
|
-
wrap(array: Array<any> | undefined): ListValue;
|
|
560
|
-
unwrap(message: ListValue): Array<any>;
|
|
561
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8-patch.2
|
|
4
|
-
// protoc v6.33.5
|
|
5
|
-
// source: google/protobuf/timestamp.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
|
-
|
|
10
|
-
export interface Timestamp {
|
|
11
|
-
seconds: bigint;
|
|
12
|
-
nanos: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function createBaseTimestamp(): Timestamp {
|
|
16
|
-
return { seconds: 0n, nanos: 0 };
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const Timestamp: MessageFns<Timestamp> = {
|
|
20
|
-
encode(message: Timestamp, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
21
|
-
if (message.seconds !== 0n) {
|
|
22
|
-
if (BigInt.asIntN(64, message.seconds) !== message.seconds) {
|
|
23
|
-
throw new globalThis.Error("value provided for field message.seconds of type int64 too large");
|
|
24
|
-
}
|
|
25
|
-
writer.uint32(8).int64(message.seconds);
|
|
26
|
-
}
|
|
27
|
-
if (message.nanos !== 0) {
|
|
28
|
-
writer.uint32(16).int32(message.nanos);
|
|
29
|
-
}
|
|
30
|
-
return writer;
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Timestamp {
|
|
34
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
35
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
36
|
-
const message = createBaseTimestamp();
|
|
37
|
-
while (reader.pos < end) {
|
|
38
|
-
const tag = reader.uint32();
|
|
39
|
-
switch (tag >>> 3) {
|
|
40
|
-
case 1: {
|
|
41
|
-
if (tag !== 8) {
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message.seconds = reader.int64() as bigint;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
case 2: {
|
|
49
|
-
if (tag !== 16) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message.nanos = reader.int32();
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
reader.skip(tag & 7);
|
|
61
|
-
}
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
fromJSON(object: any): Timestamp {
|
|
66
|
-
return {
|
|
67
|
-
seconds: isSet(object.seconds) ? BigInt(object.seconds) : 0n,
|
|
68
|
-
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
toJSON(message: Timestamp): unknown {
|
|
73
|
-
const obj: any = {};
|
|
74
|
-
if (message.seconds !== 0n) {
|
|
75
|
-
obj.seconds = message.seconds.toString();
|
|
76
|
-
}
|
|
77
|
-
if (message.nanos !== 0) {
|
|
78
|
-
obj.nanos = Math.round(message.nanos);
|
|
79
|
-
}
|
|
80
|
-
return obj;
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
create(base?: DeepPartial<Timestamp>): Timestamp {
|
|
84
|
-
return Timestamp.fromPartial(base ?? {});
|
|
85
|
-
},
|
|
86
|
-
fromPartial(object: DeepPartial<Timestamp>): Timestamp {
|
|
87
|
-
const message = createBaseTimestamp();
|
|
88
|
-
message.seconds = object.seconds ?? 0n;
|
|
89
|
-
message.nanos = object.nanos ?? 0;
|
|
90
|
-
return message;
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
95
|
-
|
|
96
|
-
type DeepPartial<T> = T extends Builtin ? T
|
|
97
|
-
: T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
|
|
98
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
99
|
-
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
100
|
-
: Partial<T>;
|
|
101
|
-
|
|
102
|
-
function isSet(value: any): boolean {
|
|
103
|
-
return value !== null && value !== undefined;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface MessageFns<T> {
|
|
107
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
108
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
109
|
-
fromJSON(object: any): T;
|
|
110
|
-
toJSON(message: T): unknown;
|
|
111
|
-
create(base?: DeepPartial<T>): T;
|
|
112
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
113
|
-
}
|