@miradorlabs/web-grpc 2.32.0 → 2.36.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: google/protobuf/timestamp.proto
6
6
 
@@ -133,34 +133,43 @@ export const Timestamp: MessageFns<Timestamp> = {
133
133
 
134
134
  decode(input: BinaryReader | Uint8Array, length?: number): Timestamp {
135
135
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
136
- const end = length === undefined ? reader.len : reader.pos + length;
137
- const message = createBaseTimestamp();
138
- while (reader.pos < end) {
139
- const tag = reader.uint32();
140
- switch (tag >>> 3) {
141
- case 1: {
142
- if (tag !== 8) {
143
- break;
136
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
137
+ if (previousRecursionDepth >= 100) {
138
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
139
+ }
140
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
141
+ try {
142
+ const end = length === undefined ? reader.len : reader.pos + length;
143
+ const message = createBaseTimestamp();
144
+ while (reader.pos < end) {
145
+ const tag = reader.uint32();
146
+ switch (tag >>> 3) {
147
+ case 1: {
148
+ if (tag !== 8) {
149
+ break;
150
+ }
151
+
152
+ message.seconds = longToNumber(reader.int64());
153
+ continue;
144
154
  }
155
+ case 2: {
156
+ if (tag !== 16) {
157
+ break;
158
+ }
145
159
 
146
- message.seconds = longToNumber(reader.int64());
147
- continue;
148
- }
149
- case 2: {
150
- if (tag !== 16) {
151
- break;
160
+ message.nanos = reader.int32();
161
+ continue;
152
162
  }
153
-
154
- message.nanos = reader.int32();
155
- continue;
156
163
  }
164
+ if ((tag & 7) === 4 || tag === 0) {
165
+ break;
166
+ }
167
+ reader.skip(tag & 7);
157
168
  }
158
- if ((tag & 7) === 4 || tag === 0) {
159
- break;
160
- }
161
- reader.skip(tag & 7);
169
+ return message;
170
+ } finally {
171
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
162
172
  }
163
- return message;
164
173
  },
165
174
 
166
175
  fromJSON(object: any): Timestamp {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "2.32.0",
3
+ "version": "2.36.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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/common/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 {
@@ -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/common/v1/status.proto
6
6
 
@@ -104,34 +104,43 @@ export const ResponseStatus: MessageFns<ResponseStatus> = {
104
104
 
105
105
  decode(input: BinaryReader | Uint8Array, length?: number): ResponseStatus {
106
106
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
107
- const end = length === undefined ? reader.len : reader.pos + length;
108
- const message = createBaseResponseStatus();
109
- while (reader.pos < end) {
110
- const tag = reader.uint32();
111
- switch (tag >>> 3) {
112
- case 1: {
113
- if (tag !== 8) {
114
- break;
107
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
108
+ if (previousRecursionDepth >= 100) {
109
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
110
+ }
111
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
112
+ try {
113
+ const end = length === undefined ? reader.len : reader.pos + length;
114
+ const message = createBaseResponseStatus();
115
+ while (reader.pos < end) {
116
+ const tag = reader.uint32();
117
+ switch (tag >>> 3) {
118
+ case 1: {
119
+ if (tag !== 8) {
120
+ break;
121
+ }
122
+
123
+ message.code = reader.int32() as any;
124
+ continue;
115
125
  }
126
+ case 2: {
127
+ if (tag !== 18) {
128
+ break;
129
+ }
116
130
 
117
- message.code = reader.int32() as any;
118
- continue;
119
- }
120
- case 2: {
121
- if (tag !== 18) {
122
- break;
131
+ message.errorMessage = reader.string();
132
+ continue;
123
133
  }
124
-
125
- message.errorMessage = reader.string();
126
- continue;
127
134
  }
135
+ if ((tag & 7) === 4 || tag === 0) {
136
+ break;
137
+ }
138
+ reader.skip(tag & 7);
128
139
  }
129
- if ((tag & 7) === 4 || tag === 0) {
130
- break;
131
- }
132
- reader.skip(tag & 7);
140
+ return message;
141
+ } finally {
142
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
133
143
  }
134
- return message;
135
144
  },
136
145
 
137
146
  fromJSON(object: any): ResponseStatus {
@@ -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/common/v1/types.proto
6
6
 
@@ -72,34 +72,43 @@ export const ChainDetails: MessageFns<ChainDetails> = {
72
72
 
73
73
  decode(input: BinaryReader | Uint8Array, length?: number): ChainDetails {
74
74
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
75
- const end = length === undefined ? reader.len : reader.pos + length;
76
- const message = createBaseChainDetails();
77
- while (reader.pos < end) {
78
- const tag = reader.uint32();
79
- switch (tag >>> 3) {
80
- case 1: {
81
- if (tag !== 10) {
82
- break;
75
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
76
+ if (previousRecursionDepth >= 100) {
77
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
78
+ }
79
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
80
+ try {
81
+ const end = length === undefined ? reader.len : reader.pos + length;
82
+ const message = createBaseChainDetails();
83
+ while (reader.pos < end) {
84
+ const tag = reader.uint32();
85
+ switch (tag >>> 3) {
86
+ case 1: {
87
+ if (tag !== 10) {
88
+ break;
89
+ }
90
+
91
+ message.chainName = reader.string();
92
+ continue;
83
93
  }
94
+ case 2: {
95
+ if (tag !== 16) {
96
+ break;
97
+ }
84
98
 
85
- message.chainName = reader.string();
86
- continue;
87
- }
88
- case 2: {
89
- if (tag !== 16) {
90
- break;
99
+ message.evmChainId = longToNumber(reader.uint64());
100
+ continue;
91
101
  }
92
-
93
- message.evmChainId = longToNumber(reader.uint64());
94
- continue;
95
102
  }
103
+ if ((tag & 7) === 4 || tag === 0) {
104
+ break;
105
+ }
106
+ reader.skip(tag & 7);
96
107
  }
97
- if ((tag & 7) === 4 || tag === 0) {
98
- break;
99
- }
100
- reader.skip(tag & 7);
108
+ return message;
109
+ } finally {
110
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
101
111
  }
102
- return message;
103
112
  },
104
113
 
105
114
  fromJSON(object: any): ChainDetails {