@miradorlabs/web-grpc 2.32.0 → 2.35.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.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.12.0
3
+ // protoc-gen-ts_proto v2.12.1
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/attribute_value.proto
6
6
 
@@ -78,74 +78,83 @@ export const AttributeValue: MessageFns<AttributeValue> = {
78
78
 
79
79
  decode(input: BinaryReader | Uint8Array, length?: number): AttributeValue {
80
80
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
81
- const end = length === undefined ? reader.len : reader.pos + length;
82
- const message = createBaseAttributeValue();
83
- while (reader.pos < end) {
84
- const tag = reader.uint32();
85
- switch (tag >>> 3) {
86
- case 1: {
87
- if (tag !== 10) {
88
- break;
81
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
82
+ if (previousRecursionDepth >= 100) {
83
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
84
+ }
85
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
86
+ try {
87
+ const end = length === undefined ? reader.len : reader.pos + length;
88
+ const message = createBaseAttributeValue();
89
+ while (reader.pos < end) {
90
+ const tag = reader.uint32();
91
+ switch (tag >>> 3) {
92
+ case 1: {
93
+ if (tag !== 10) {
94
+ break;
95
+ }
96
+
97
+ message.stringValue = reader.string();
98
+ continue;
89
99
  }
100
+ case 2: {
101
+ if (tag !== 16) {
102
+ break;
103
+ }
90
104
 
91
- message.stringValue = reader.string();
92
- continue;
93
- }
94
- case 2: {
95
- if (tag !== 16) {
96
- break;
105
+ message.boolValue = reader.bool();
106
+ continue;
97
107
  }
108
+ case 3: {
109
+ if (tag !== 24) {
110
+ break;
111
+ }
98
112
 
99
- message.boolValue = reader.bool();
100
- continue;
101
- }
102
- case 3: {
103
- if (tag !== 24) {
104
- break;
113
+ message.intValue = longToNumber(reader.int64());
114
+ continue;
105
115
  }
116
+ case 4: {
117
+ if (tag !== 33) {
118
+ break;
119
+ }
106
120
 
107
- message.intValue = longToNumber(reader.int64());
108
- continue;
109
- }
110
- case 4: {
111
- if (tag !== 33) {
112
- break;
121
+ message.doubleValue = reader.double();
122
+ continue;
113
123
  }
124
+ case 5: {
125
+ if (tag !== 42) {
126
+ break;
127
+ }
114
128
 
115
- message.doubleValue = reader.double();
116
- continue;
117
- }
118
- case 5: {
119
- if (tag !== 42) {
120
- break;
129
+ message.bytesValue = reader.bytes();
130
+ continue;
121
131
  }
132
+ case 6: {
133
+ if (tag !== 50) {
134
+ break;
135
+ }
122
136
 
123
- message.bytesValue = reader.bytes();
124
- continue;
125
- }
126
- case 6: {
127
- if (tag !== 50) {
128
- break;
137
+ message.arrayValue = AttributeArray.decode(reader, reader.uint32());
138
+ continue;
129
139
  }
140
+ case 7: {
141
+ if (tag !== 58) {
142
+ break;
143
+ }
130
144
 
131
- message.arrayValue = AttributeArray.decode(reader, reader.uint32());
132
- continue;
133
- }
134
- case 7: {
135
- if (tag !== 58) {
136
- break;
145
+ message.kvlistValue = AttributeKeyValueList.decode(reader, reader.uint32());
146
+ continue;
137
147
  }
138
-
139
- message.kvlistValue = AttributeKeyValueList.decode(reader, reader.uint32());
140
- continue;
141
148
  }
149
+ if ((tag & 7) === 4 || tag === 0) {
150
+ break;
151
+ }
152
+ reader.skip(tag & 7);
142
153
  }
143
- if ((tag & 7) === 4 || tag === 0) {
144
- break;
145
- }
146
- reader.skip(tag & 7);
154
+ return message;
155
+ } finally {
156
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
147
157
  }
148
- return message;
149
158
  },
150
159
 
151
160
  fromJSON(object: any): AttributeValue {
@@ -248,26 +257,35 @@ export const AttributeArray: MessageFns<AttributeArray> = {
248
257
 
249
258
  decode(input: BinaryReader | Uint8Array, length?: number): AttributeArray {
250
259
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
251
- const end = length === undefined ? reader.len : reader.pos + length;
252
- const message = createBaseAttributeArray();
253
- while (reader.pos < end) {
254
- const tag = reader.uint32();
255
- switch (tag >>> 3) {
256
- case 1: {
257
- if (tag !== 10) {
258
- break;
260
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
261
+ if (previousRecursionDepth >= 100) {
262
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
263
+ }
264
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
265
+ try {
266
+ const end = length === undefined ? reader.len : reader.pos + length;
267
+ const message = createBaseAttributeArray();
268
+ while (reader.pos < end) {
269
+ const tag = reader.uint32();
270
+ switch (tag >>> 3) {
271
+ case 1: {
272
+ if (tag !== 10) {
273
+ break;
274
+ }
275
+
276
+ message.values.push(AttributeValue.decode(reader, reader.uint32()));
277
+ continue;
259
278
  }
260
-
261
- message.values.push(AttributeValue.decode(reader, reader.uint32()));
262
- continue;
263
279
  }
280
+ if ((tag & 7) === 4 || tag === 0) {
281
+ break;
282
+ }
283
+ reader.skip(tag & 7);
264
284
  }
265
- if ((tag & 7) === 4 || tag === 0) {
266
- break;
267
- }
268
- reader.skip(tag & 7);
285
+ return message;
286
+ } finally {
287
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
269
288
  }
270
- return message;
271
289
  },
272
290
 
273
291
  fromJSON(object: any): AttributeArray {
@@ -311,34 +329,43 @@ export const AttributeKeyValue: MessageFns<AttributeKeyValue> = {
311
329
 
312
330
  decode(input: BinaryReader | Uint8Array, length?: number): AttributeKeyValue {
313
331
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
314
- const end = length === undefined ? reader.len : reader.pos + length;
315
- const message = createBaseAttributeKeyValue();
316
- while (reader.pos < end) {
317
- const tag = reader.uint32();
318
- switch (tag >>> 3) {
319
- case 1: {
320
- if (tag !== 10) {
321
- break;
332
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
333
+ if (previousRecursionDepth >= 100) {
334
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
335
+ }
336
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
337
+ try {
338
+ const end = length === undefined ? reader.len : reader.pos + length;
339
+ const message = createBaseAttributeKeyValue();
340
+ while (reader.pos < end) {
341
+ const tag = reader.uint32();
342
+ switch (tag >>> 3) {
343
+ case 1: {
344
+ if (tag !== 10) {
345
+ break;
346
+ }
347
+
348
+ message.key = reader.string();
349
+ continue;
322
350
  }
351
+ case 2: {
352
+ if (tag !== 18) {
353
+ break;
354
+ }
323
355
 
324
- message.key = reader.string();
325
- continue;
326
- }
327
- case 2: {
328
- if (tag !== 18) {
329
- break;
356
+ message.value = AttributeValue.decode(reader, reader.uint32());
357
+ continue;
330
358
  }
331
-
332
- message.value = AttributeValue.decode(reader, reader.uint32());
333
- continue;
334
359
  }
360
+ if ((tag & 7) === 4 || tag === 0) {
361
+ break;
362
+ }
363
+ reader.skip(tag & 7);
335
364
  }
336
- if ((tag & 7) === 4 || tag === 0) {
337
- break;
338
- }
339
- reader.skip(tag & 7);
365
+ return message;
366
+ } finally {
367
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
340
368
  }
341
- return message;
342
369
  },
343
370
 
344
371
  fromJSON(object: any): AttributeKeyValue {
@@ -386,26 +413,35 @@ export const AttributeKeyValueList: MessageFns<AttributeKeyValueList> = {
386
413
 
387
414
  decode(input: BinaryReader | Uint8Array, length?: number): AttributeKeyValueList {
388
415
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
389
- const end = length === undefined ? reader.len : reader.pos + length;
390
- const message = createBaseAttributeKeyValueList();
391
- while (reader.pos < end) {
392
- const tag = reader.uint32();
393
- switch (tag >>> 3) {
394
- case 1: {
395
- if (tag !== 10) {
396
- break;
416
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
417
+ if (previousRecursionDepth >= 100) {
418
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
419
+ }
420
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
421
+ try {
422
+ const end = length === undefined ? reader.len : reader.pos + length;
423
+ const message = createBaseAttributeKeyValueList();
424
+ while (reader.pos < end) {
425
+ const tag = reader.uint32();
426
+ switch (tag >>> 3) {
427
+ case 1: {
428
+ if (tag !== 10) {
429
+ break;
430
+ }
431
+
432
+ message.values.push(AttributeKeyValue.decode(reader, reader.uint32()));
433
+ continue;
397
434
  }
398
-
399
- message.values.push(AttributeKeyValue.decode(reader, reader.uint32()));
400
- continue;
401
435
  }
436
+ if ((tag & 7) === 4 || tag === 0) {
437
+ break;
438
+ }
439
+ reader.skip(tag & 7);
402
440
  }
403
- if ((tag & 7) === 4 || tag === 0) {
404
- break;
405
- }
406
- reader.skip(tag & 7);
441
+ return message;
442
+ } finally {
443
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
407
444
  }
408
- return message;
409
445
  },
410
446
 
411
447
  fromJSON(object: any): AttributeKeyValueList {