@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: proto/gateway/web/v1/plan_gateway.proto
6
6
 
@@ -262,26 +262,35 @@ export const GetPlanRequest: MessageFns<GetPlanRequest> = {
262
262
 
263
263
  decode(input: BinaryReader | Uint8Array, length?: number): GetPlanRequest {
264
264
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
265
- const end = length === undefined ? reader.len : reader.pos + length;
266
- const message = createBaseGetPlanRequest();
267
- while (reader.pos < end) {
268
- const tag = reader.uint32();
269
- switch (tag >>> 3) {
270
- case 1: {
271
- if (tag !== 10) {
272
- break;
265
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
266
+ if (previousRecursionDepth >= 100) {
267
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
268
+ }
269
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
270
+ try {
271
+ const end = length === undefined ? reader.len : reader.pos + length;
272
+ const message = createBaseGetPlanRequest();
273
+ while (reader.pos < end) {
274
+ const tag = reader.uint32();
275
+ switch (tag >>> 3) {
276
+ case 1: {
277
+ if (tag !== 10) {
278
+ break;
279
+ }
280
+
281
+ message.organizationId = reader.string();
282
+ continue;
273
283
  }
274
-
275
- message.organizationId = reader.string();
276
- continue;
277
284
  }
285
+ if ((tag & 7) === 4 || tag === 0) {
286
+ break;
287
+ }
288
+ reader.skip(tag & 7);
278
289
  }
279
- if ((tag & 7) === 4 || tag === 0) {
280
- break;
281
- }
282
- reader.skip(tag & 7);
290
+ return message;
291
+ } finally {
292
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
283
293
  }
284
- return message;
285
294
  },
286
295
 
287
296
  fromJSON(object: any): GetPlanRequest {
@@ -332,42 +341,51 @@ export const GetPlanResponse: MessageFns<GetPlanResponse> = {
332
341
 
333
342
  decode(input: BinaryReader | Uint8Array, length?: number): GetPlanResponse {
334
343
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
335
- const end = length === undefined ? reader.len : reader.pos + length;
336
- const message = createBaseGetPlanResponse();
337
- while (reader.pos < end) {
338
- const tag = reader.uint32();
339
- switch (tag >>> 3) {
340
- case 1: {
341
- if (tag !== 10) {
342
- break;
344
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
345
+ if (previousRecursionDepth >= 100) {
346
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
347
+ }
348
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
349
+ try {
350
+ const end = length === undefined ? reader.len : reader.pos + length;
351
+ const message = createBaseGetPlanResponse();
352
+ while (reader.pos < end) {
353
+ const tag = reader.uint32();
354
+ switch (tag >>> 3) {
355
+ case 1: {
356
+ if (tag !== 10) {
357
+ break;
358
+ }
359
+
360
+ message.status = ResponseStatus.decode(reader, reader.uint32());
361
+ continue;
343
362
  }
363
+ case 2: {
364
+ if (tag !== 18) {
365
+ break;
366
+ }
344
367
 
345
- message.status = ResponseStatus.decode(reader, reader.uint32());
346
- continue;
347
- }
348
- case 2: {
349
- if (tag !== 18) {
350
- break;
368
+ message.plan = Plan.decode(reader, reader.uint32());
369
+ continue;
351
370
  }
371
+ case 3: {
372
+ if (tag !== 26) {
373
+ break;
374
+ }
352
375
 
353
- message.plan = Plan.decode(reader, reader.uint32());
354
- continue;
355
- }
356
- case 3: {
357
- if (tag !== 26) {
358
- break;
376
+ message.payment = PlanPayment.decode(reader, reader.uint32());
377
+ continue;
359
378
  }
360
-
361
- message.payment = PlanPayment.decode(reader, reader.uint32());
362
- continue;
363
379
  }
380
+ if ((tag & 7) === 4 || tag === 0) {
381
+ break;
382
+ }
383
+ reader.skip(tag & 7);
364
384
  }
365
- if ((tag & 7) === 4 || tag === 0) {
366
- break;
367
- }
368
- reader.skip(tag & 7);
385
+ return message;
386
+ } finally {
387
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
369
388
  }
370
- return message;
371
389
  },
372
390
 
373
391
  fromJSON(object: any): GetPlanResponse {
@@ -437,66 +455,75 @@ export const Plan: MessageFns<Plan> = {
437
455
 
438
456
  decode(input: BinaryReader | Uint8Array, length?: number): Plan {
439
457
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
440
- const end = length === undefined ? reader.len : reader.pos + length;
441
- const message = createBasePlan();
442
- while (reader.pos < end) {
443
- const tag = reader.uint32();
444
- switch (tag >>> 3) {
445
- case 1: {
446
- if (tag !== 10) {
447
- break;
458
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
459
+ if (previousRecursionDepth >= 100) {
460
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
461
+ }
462
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
463
+ try {
464
+ const end = length === undefined ? reader.len : reader.pos + length;
465
+ const message = createBasePlan();
466
+ while (reader.pos < end) {
467
+ const tag = reader.uint32();
468
+ switch (tag >>> 3) {
469
+ case 1: {
470
+ if (tag !== 10) {
471
+ break;
472
+ }
473
+
474
+ message.planId = reader.string();
475
+ continue;
448
476
  }
477
+ case 2: {
478
+ if (tag !== 18) {
479
+ break;
480
+ }
449
481
 
450
- message.planId = reader.string();
451
- continue;
452
- }
453
- case 2: {
454
- if (tag !== 18) {
455
- break;
482
+ message.organizationId = reader.string();
483
+ continue;
456
484
  }
485
+ case 3: {
486
+ if (tag !== 24) {
487
+ break;
488
+ }
457
489
 
458
- message.organizationId = reader.string();
459
- continue;
460
- }
461
- case 3: {
462
- if (tag !== 24) {
463
- break;
490
+ message.tier = reader.int32() as any;
491
+ continue;
464
492
  }
493
+ case 4: {
494
+ if (tag !== 32) {
495
+ break;
496
+ }
465
497
 
466
- message.tier = reader.int32() as any;
467
- continue;
468
- }
469
- case 4: {
470
- if (tag !== 32) {
471
- break;
498
+ message.planStatus = reader.int32() as any;
499
+ continue;
472
500
  }
501
+ case 5: {
502
+ if (tag !== 42) {
503
+ break;
504
+ }
473
505
 
474
- message.planStatus = reader.int32() as any;
475
- continue;
476
- }
477
- case 5: {
478
- if (tag !== 42) {
479
- break;
506
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
507
+ continue;
480
508
  }
509
+ case 6: {
510
+ if (tag !== 50) {
511
+ break;
512
+ }
481
513
 
482
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
483
- continue;
484
- }
485
- case 6: {
486
- if (tag !== 50) {
487
- break;
514
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
515
+ continue;
488
516
  }
489
-
490
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
491
- continue;
492
517
  }
518
+ if ((tag & 7) === 4 || tag === 0) {
519
+ break;
520
+ }
521
+ reader.skip(tag & 7);
493
522
  }
494
- if ((tag & 7) === 4 || tag === 0) {
495
- break;
496
- }
497
- reader.skip(tag & 7);
523
+ return message;
524
+ } finally {
525
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
498
526
  }
499
- return message;
500
527
  },
501
528
 
502
529
  fromJSON(object: any): Plan {
@@ -624,106 +651,115 @@ export const PlanPayment: MessageFns<PlanPayment> = {
624
651
 
625
652
  decode(input: BinaryReader | Uint8Array, length?: number): PlanPayment {
626
653
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
627
- const end = length === undefined ? reader.len : reader.pos + length;
628
- const message = createBasePlanPayment();
629
- while (reader.pos < end) {
630
- const tag = reader.uint32();
631
- switch (tag >>> 3) {
632
- case 1: {
633
- if (tag !== 10) {
634
- break;
654
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
655
+ if (previousRecursionDepth >= 100) {
656
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
657
+ }
658
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
659
+ try {
660
+ const end = length === undefined ? reader.len : reader.pos + length;
661
+ const message = createBasePlanPayment();
662
+ while (reader.pos < end) {
663
+ const tag = reader.uint32();
664
+ switch (tag >>> 3) {
665
+ case 1: {
666
+ if (tag !== 10) {
667
+ break;
668
+ }
669
+
670
+ message.paymentId = reader.string();
671
+ continue;
635
672
  }
673
+ case 2: {
674
+ if (tag !== 18) {
675
+ break;
676
+ }
636
677
 
637
- message.paymentId = reader.string();
638
- continue;
639
- }
640
- case 2: {
641
- if (tag !== 18) {
642
- break;
678
+ message.planId = reader.string();
679
+ continue;
643
680
  }
681
+ case 3: {
682
+ if (tag !== 26) {
683
+ break;
684
+ }
644
685
 
645
- message.planId = reader.string();
646
- continue;
647
- }
648
- case 3: {
649
- if (tag !== 26) {
650
- break;
686
+ message.stripeSubscriptionId = reader.string();
687
+ continue;
651
688
  }
689
+ case 4: {
690
+ if (tag !== 34) {
691
+ break;
692
+ }
652
693
 
653
- message.stripeSubscriptionId = reader.string();
654
- continue;
655
- }
656
- case 4: {
657
- if (tag !== 34) {
658
- break;
694
+ message.stripeCustomerId = reader.string();
695
+ continue;
659
696
  }
697
+ case 5: {
698
+ if (tag !== 40) {
699
+ break;
700
+ }
660
701
 
661
- message.stripeCustomerId = reader.string();
662
- continue;
663
- }
664
- case 5: {
665
- if (tag !== 40) {
666
- break;
702
+ message.paymentStatus = reader.int32() as any;
703
+ continue;
667
704
  }
705
+ case 6: {
706
+ if (tag !== 50) {
707
+ break;
708
+ }
668
709
 
669
- message.paymentStatus = reader.int32() as any;
670
- continue;
671
- }
672
- case 6: {
673
- if (tag !== 50) {
674
- break;
710
+ message.billingPeriodStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
711
+ continue;
675
712
  }
713
+ case 7: {
714
+ if (tag !== 58) {
715
+ break;
716
+ }
676
717
 
677
- message.billingPeriodStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
678
- continue;
679
- }
680
- case 7: {
681
- if (tag !== 58) {
682
- break;
718
+ message.billingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
719
+ continue;
683
720
  }
721
+ case 8: {
722
+ if (tag !== 66) {
723
+ break;
724
+ }
684
725
 
685
- message.billingPeriodEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
686
- continue;
687
- }
688
- case 8: {
689
- if (tag !== 66) {
690
- break;
726
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
727
+ continue;
691
728
  }
729
+ case 9: {
730
+ if (tag !== 74) {
731
+ break;
732
+ }
692
733
 
693
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
694
- continue;
695
- }
696
- case 9: {
697
- if (tag !== 74) {
698
- break;
734
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
735
+ continue;
699
736
  }
737
+ case 10: {
738
+ if (tag !== 80) {
739
+ break;
740
+ }
700
741
 
701
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
702
- continue;
703
- }
704
- case 10: {
705
- if (tag !== 80) {
706
- break;
742
+ message.cancelAtPeriodEnd = reader.bool();
743
+ continue;
707
744
  }
745
+ case 11: {
746
+ if (tag !== 90) {
747
+ break;
748
+ }
708
749
 
709
- message.cancelAtPeriodEnd = reader.bool();
710
- continue;
711
- }
712
- case 11: {
713
- if (tag !== 90) {
714
- break;
750
+ message.cancelAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
751
+ continue;
715
752
  }
716
-
717
- message.cancelAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
718
- continue;
719
753
  }
754
+ if ((tag & 7) === 4 || tag === 0) {
755
+ break;
756
+ }
757
+ reader.skip(tag & 7);
720
758
  }
721
- if ((tag & 7) === 4 || tag === 0) {
722
- break;
723
- }
724
- reader.skip(tag & 7);
759
+ return message;
760
+ } finally {
761
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
725
762
  }
726
- return message;
727
763
  },
728
764
 
729
765
  fromJSON(object: any): PlanPayment {
@@ -858,26 +894,35 @@ export const StreamPlanUpdatesRequest: MessageFns<StreamPlanUpdatesRequest> = {
858
894
 
859
895
  decode(input: BinaryReader | Uint8Array, length?: number): StreamPlanUpdatesRequest {
860
896
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
861
- const end = length === undefined ? reader.len : reader.pos + length;
862
- const message = createBaseStreamPlanUpdatesRequest();
863
- while (reader.pos < end) {
864
- const tag = reader.uint32();
865
- switch (tag >>> 3) {
866
- case 1: {
867
- if (tag !== 10) {
868
- break;
897
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
898
+ if (previousRecursionDepth >= 100) {
899
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
900
+ }
901
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
902
+ try {
903
+ const end = length === undefined ? reader.len : reader.pos + length;
904
+ const message = createBaseStreamPlanUpdatesRequest();
905
+ while (reader.pos < end) {
906
+ const tag = reader.uint32();
907
+ switch (tag >>> 3) {
908
+ case 1: {
909
+ if (tag !== 10) {
910
+ break;
911
+ }
912
+
913
+ message.organizationId = reader.string();
914
+ continue;
869
915
  }
870
-
871
- message.organizationId = reader.string();
872
- continue;
873
916
  }
917
+ if ((tag & 7) === 4 || tag === 0) {
918
+ break;
919
+ }
920
+ reader.skip(tag & 7);
874
921
  }
875
- if ((tag & 7) === 4 || tag === 0) {
876
- break;
877
- }
878
- reader.skip(tag & 7);
922
+ return message;
923
+ } finally {
924
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
879
925
  }
880
- return message;
881
926
  },
882
927
 
883
928
  fromJSON(object: any): StreamPlanUpdatesRequest {
@@ -931,50 +976,59 @@ export const PlanUpdateEnvelope: MessageFns<PlanUpdateEnvelope> = {
931
976
 
932
977
  decode(input: BinaryReader | Uint8Array, length?: number): PlanUpdateEnvelope {
933
978
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
934
- const end = length === undefined ? reader.len : reader.pos + length;
935
- const message = createBasePlanUpdateEnvelope();
936
- while (reader.pos < end) {
937
- const tag = reader.uint32();
938
- switch (tag >>> 3) {
939
- case 1: {
940
- if (tag !== 10) {
941
- break;
979
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
980
+ if (previousRecursionDepth >= 100) {
981
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
982
+ }
983
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
984
+ try {
985
+ const end = length === undefined ? reader.len : reader.pos + length;
986
+ const message = createBasePlanUpdateEnvelope();
987
+ while (reader.pos < end) {
988
+ const tag = reader.uint32();
989
+ switch (tag >>> 3) {
990
+ case 1: {
991
+ if (tag !== 10) {
992
+ break;
993
+ }
994
+
995
+ message.snapshot = PlanSnapshot.decode(reader, reader.uint32());
996
+ continue;
942
997
  }
998
+ case 2: {
999
+ if (tag !== 18) {
1000
+ break;
1001
+ }
943
1002
 
944
- message.snapshot = PlanSnapshot.decode(reader, reader.uint32());
945
- continue;
946
- }
947
- case 2: {
948
- if (tag !== 18) {
949
- break;
1003
+ message.planCreated = PlanCreated.decode(reader, reader.uint32());
1004
+ continue;
950
1005
  }
1006
+ case 3: {
1007
+ if (tag !== 26) {
1008
+ break;
1009
+ }
951
1010
 
952
- message.planCreated = PlanCreated.decode(reader, reader.uint32());
953
- continue;
954
- }
955
- case 3: {
956
- if (tag !== 26) {
957
- break;
1011
+ message.planUpdated = PlanUpdated.decode(reader, reader.uint32());
1012
+ continue;
958
1013
  }
1014
+ case 4: {
1015
+ if (tag !== 34) {
1016
+ break;
1017
+ }
959
1018
 
960
- message.planUpdated = PlanUpdated.decode(reader, reader.uint32());
961
- continue;
962
- }
963
- case 4: {
964
- if (tag !== 34) {
965
- break;
1019
+ message.planDeactivated = PlanDeactivated.decode(reader, reader.uint32());
1020
+ continue;
966
1021
  }
967
-
968
- message.planDeactivated = PlanDeactivated.decode(reader, reader.uint32());
969
- continue;
970
1022
  }
1023
+ if ((tag & 7) === 4 || tag === 0) {
1024
+ break;
1025
+ }
1026
+ reader.skip(tag & 7);
971
1027
  }
972
- if ((tag & 7) === 4 || tag === 0) {
973
- break;
974
- }
975
- reader.skip(tag & 7);
1028
+ return message;
1029
+ } finally {
1030
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
976
1031
  }
977
- return message;
978
1032
  },
979
1033
 
980
1034
  fromJSON(object: any): PlanUpdateEnvelope {
@@ -1053,34 +1107,43 @@ export const PlanSnapshot: MessageFns<PlanSnapshot> = {
1053
1107
 
1054
1108
  decode(input: BinaryReader | Uint8Array, length?: number): PlanSnapshot {
1055
1109
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1056
- const end = length === undefined ? reader.len : reader.pos + length;
1057
- const message = createBasePlanSnapshot();
1058
- while (reader.pos < end) {
1059
- const tag = reader.uint32();
1060
- switch (tag >>> 3) {
1061
- case 1: {
1062
- if (tag !== 10) {
1063
- break;
1110
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1111
+ if (previousRecursionDepth >= 100) {
1112
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1113
+ }
1114
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1115
+ try {
1116
+ const end = length === undefined ? reader.len : reader.pos + length;
1117
+ const message = createBasePlanSnapshot();
1118
+ while (reader.pos < end) {
1119
+ const tag = reader.uint32();
1120
+ switch (tag >>> 3) {
1121
+ case 1: {
1122
+ if (tag !== 10) {
1123
+ break;
1124
+ }
1125
+
1126
+ message.plan = Plan.decode(reader, reader.uint32());
1127
+ continue;
1064
1128
  }
1129
+ case 2: {
1130
+ if (tag !== 18) {
1131
+ break;
1132
+ }
1065
1133
 
1066
- message.plan = Plan.decode(reader, reader.uint32());
1067
- continue;
1068
- }
1069
- case 2: {
1070
- if (tag !== 18) {
1071
- break;
1134
+ message.payment = PlanPayment.decode(reader, reader.uint32());
1135
+ continue;
1072
1136
  }
1073
-
1074
- message.payment = PlanPayment.decode(reader, reader.uint32());
1075
- continue;
1076
1137
  }
1138
+ if ((tag & 7) === 4 || tag === 0) {
1139
+ break;
1140
+ }
1141
+ reader.skip(tag & 7);
1077
1142
  }
1078
- if ((tag & 7) === 4 || tag === 0) {
1079
- break;
1080
- }
1081
- reader.skip(tag & 7);
1143
+ return message;
1144
+ } finally {
1145
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1082
1146
  }
1083
- return message;
1084
1147
  },
1085
1148
 
1086
1149
  fromJSON(object: any): PlanSnapshot {
@@ -1128,26 +1191,35 @@ export const PlanCreated: MessageFns<PlanCreated> = {
1128
1191
 
1129
1192
  decode(input: BinaryReader | Uint8Array, length?: number): PlanCreated {
1130
1193
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1131
- const end = length === undefined ? reader.len : reader.pos + length;
1132
- const message = createBasePlanCreated();
1133
- while (reader.pos < end) {
1134
- const tag = reader.uint32();
1135
- switch (tag >>> 3) {
1136
- case 1: {
1137
- if (tag !== 10) {
1138
- break;
1194
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1195
+ if (previousRecursionDepth >= 100) {
1196
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1197
+ }
1198
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1199
+ try {
1200
+ const end = length === undefined ? reader.len : reader.pos + length;
1201
+ const message = createBasePlanCreated();
1202
+ while (reader.pos < end) {
1203
+ const tag = reader.uint32();
1204
+ switch (tag >>> 3) {
1205
+ case 1: {
1206
+ if (tag !== 10) {
1207
+ break;
1208
+ }
1209
+
1210
+ message.plan = Plan.decode(reader, reader.uint32());
1211
+ continue;
1139
1212
  }
1140
-
1141
- message.plan = Plan.decode(reader, reader.uint32());
1142
- continue;
1143
1213
  }
1214
+ if ((tag & 7) === 4 || tag === 0) {
1215
+ break;
1216
+ }
1217
+ reader.skip(tag & 7);
1144
1218
  }
1145
- if ((tag & 7) === 4 || tag === 0) {
1146
- break;
1147
- }
1148
- reader.skip(tag & 7);
1219
+ return message;
1220
+ } finally {
1221
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1149
1222
  }
1150
- return message;
1151
1223
  },
1152
1224
 
1153
1225
  fromJSON(object: any): PlanCreated {
@@ -1189,34 +1261,43 @@ export const PlanUpdated: MessageFns<PlanUpdated> = {
1189
1261
 
1190
1262
  decode(input: BinaryReader | Uint8Array, length?: number): PlanUpdated {
1191
1263
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1192
- const end = length === undefined ? reader.len : reader.pos + length;
1193
- const message = createBasePlanUpdated();
1194
- while (reader.pos < end) {
1195
- const tag = reader.uint32();
1196
- switch (tag >>> 3) {
1197
- case 1: {
1198
- if (tag !== 10) {
1199
- break;
1264
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1265
+ if (previousRecursionDepth >= 100) {
1266
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1267
+ }
1268
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1269
+ try {
1270
+ const end = length === undefined ? reader.len : reader.pos + length;
1271
+ const message = createBasePlanUpdated();
1272
+ while (reader.pos < end) {
1273
+ const tag = reader.uint32();
1274
+ switch (tag >>> 3) {
1275
+ case 1: {
1276
+ if (tag !== 10) {
1277
+ break;
1278
+ }
1279
+
1280
+ message.plan = Plan.decode(reader, reader.uint32());
1281
+ continue;
1200
1282
  }
1283
+ case 2: {
1284
+ if (tag !== 16) {
1285
+ break;
1286
+ }
1201
1287
 
1202
- message.plan = Plan.decode(reader, reader.uint32());
1203
- continue;
1204
- }
1205
- case 2: {
1206
- if (tag !== 16) {
1207
- break;
1288
+ message.previousTier = reader.int32() as any;
1289
+ continue;
1208
1290
  }
1209
-
1210
- message.previousTier = reader.int32() as any;
1211
- continue;
1212
1291
  }
1292
+ if ((tag & 7) === 4 || tag === 0) {
1293
+ break;
1294
+ }
1295
+ reader.skip(tag & 7);
1213
1296
  }
1214
- if ((tag & 7) === 4 || tag === 0) {
1215
- break;
1216
- }
1217
- reader.skip(tag & 7);
1297
+ return message;
1298
+ } finally {
1299
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1218
1300
  }
1219
- return message;
1220
1301
  },
1221
1302
 
1222
1303
  fromJSON(object: any): PlanUpdated {
@@ -1269,34 +1350,43 @@ export const PlanDeactivated: MessageFns<PlanDeactivated> = {
1269
1350
 
1270
1351
  decode(input: BinaryReader | Uint8Array, length?: number): PlanDeactivated {
1271
1352
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1272
- const end = length === undefined ? reader.len : reader.pos + length;
1273
- const message = createBasePlanDeactivated();
1274
- while (reader.pos < end) {
1275
- const tag = reader.uint32();
1276
- switch (tag >>> 3) {
1277
- case 1: {
1278
- if (tag !== 10) {
1279
- break;
1353
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1354
+ if (previousRecursionDepth >= 100) {
1355
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1356
+ }
1357
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1358
+ try {
1359
+ const end = length === undefined ? reader.len : reader.pos + length;
1360
+ const message = createBasePlanDeactivated();
1361
+ while (reader.pos < end) {
1362
+ const tag = reader.uint32();
1363
+ switch (tag >>> 3) {
1364
+ case 1: {
1365
+ if (tag !== 10) {
1366
+ break;
1367
+ }
1368
+
1369
+ message.plan = Plan.decode(reader, reader.uint32());
1370
+ continue;
1280
1371
  }
1372
+ case 2: {
1373
+ if (tag !== 18) {
1374
+ break;
1375
+ }
1281
1376
 
1282
- message.plan = Plan.decode(reader, reader.uint32());
1283
- continue;
1284
- }
1285
- case 2: {
1286
- if (tag !== 18) {
1287
- break;
1377
+ message.reason = reader.string();
1378
+ continue;
1288
1379
  }
1289
-
1290
- message.reason = reader.string();
1291
- continue;
1292
1380
  }
1381
+ if ((tag & 7) === 4 || tag === 0) {
1382
+ break;
1383
+ }
1384
+ reader.skip(tag & 7);
1293
1385
  }
1294
- if ((tag & 7) === 4 || tag === 0) {
1295
- break;
1296
- }
1297
- reader.skip(tag & 7);
1386
+ return message;
1387
+ } finally {
1388
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1298
1389
  }
1299
- return message;
1300
1390
  },
1301
1391
 
1302
1392
  fromJSON(object: any): PlanDeactivated {
@@ -1339,18 +1429,27 @@ export const ListAvailablePlansRequest: MessageFns<ListAvailablePlansRequest> =
1339
1429
 
1340
1430
  decode(input: BinaryReader | Uint8Array, length?: number): ListAvailablePlansRequest {
1341
1431
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1342
- const end = length === undefined ? reader.len : reader.pos + length;
1343
- const message = createBaseListAvailablePlansRequest();
1344
- while (reader.pos < end) {
1345
- const tag = reader.uint32();
1346
- switch (tag >>> 3) {
1347
- }
1348
- if ((tag & 7) === 4 || tag === 0) {
1349
- break;
1432
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1433
+ if (previousRecursionDepth >= 100) {
1434
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1435
+ }
1436
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1437
+ try {
1438
+ const end = length === undefined ? reader.len : reader.pos + length;
1439
+ const message = createBaseListAvailablePlansRequest();
1440
+ while (reader.pos < end) {
1441
+ const tag = reader.uint32();
1442
+ switch (tag >>> 3) {
1443
+ }
1444
+ if ((tag & 7) === 4 || tag === 0) {
1445
+ break;
1446
+ }
1447
+ reader.skip(tag & 7);
1350
1448
  }
1351
- reader.skip(tag & 7);
1449
+ return message;
1450
+ } finally {
1451
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1352
1452
  }
1353
- return message;
1354
1453
  },
1355
1454
 
1356
1455
  fromJSON(_: any): ListAvailablePlansRequest {
@@ -1388,34 +1487,43 @@ export const ListAvailablePlansResponse: MessageFns<ListAvailablePlansResponse>
1388
1487
 
1389
1488
  decode(input: BinaryReader | Uint8Array, length?: number): ListAvailablePlansResponse {
1390
1489
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1391
- const end = length === undefined ? reader.len : reader.pos + length;
1392
- const message = createBaseListAvailablePlansResponse();
1393
- while (reader.pos < end) {
1394
- const tag = reader.uint32();
1395
- switch (tag >>> 3) {
1396
- case 1: {
1397
- if (tag !== 10) {
1398
- break;
1490
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1491
+ if (previousRecursionDepth >= 100) {
1492
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1493
+ }
1494
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1495
+ try {
1496
+ const end = length === undefined ? reader.len : reader.pos + length;
1497
+ const message = createBaseListAvailablePlansResponse();
1498
+ while (reader.pos < end) {
1499
+ const tag = reader.uint32();
1500
+ switch (tag >>> 3) {
1501
+ case 1: {
1502
+ if (tag !== 10) {
1503
+ break;
1504
+ }
1505
+
1506
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1507
+ continue;
1399
1508
  }
1509
+ case 2: {
1510
+ if (tag !== 18) {
1511
+ break;
1512
+ }
1400
1513
 
1401
- message.status = ResponseStatus.decode(reader, reader.uint32());
1402
- continue;
1403
- }
1404
- case 2: {
1405
- if (tag !== 18) {
1406
- break;
1514
+ message.plans.push(PlanDetails.decode(reader, reader.uint32()));
1515
+ continue;
1407
1516
  }
1408
-
1409
- message.plans.push(PlanDetails.decode(reader, reader.uint32()));
1410
- continue;
1411
1517
  }
1518
+ if ((tag & 7) === 4 || tag === 0) {
1519
+ break;
1520
+ }
1521
+ reader.skip(tag & 7);
1412
1522
  }
1413
- if ((tag & 7) === 4 || tag === 0) {
1414
- break;
1415
- }
1416
- reader.skip(tag & 7);
1523
+ return message;
1524
+ } finally {
1525
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1417
1526
  }
1418
- return message;
1419
1527
  },
1420
1528
 
1421
1529
  fromJSON(object: any): ListAvailablePlansResponse {
@@ -1475,58 +1583,67 @@ export const PlanDetails: MessageFns<PlanDetails> = {
1475
1583
 
1476
1584
  decode(input: BinaryReader | Uint8Array, length?: number): PlanDetails {
1477
1585
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1478
- const end = length === undefined ? reader.len : reader.pos + length;
1479
- const message = createBasePlanDetails();
1480
- while (reader.pos < end) {
1481
- const tag = reader.uint32();
1482
- switch (tag >>> 3) {
1483
- case 1: {
1484
- if (tag !== 8) {
1485
- break;
1586
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1587
+ if (previousRecursionDepth >= 100) {
1588
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1589
+ }
1590
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1591
+ try {
1592
+ const end = length === undefined ? reader.len : reader.pos + length;
1593
+ const message = createBasePlanDetails();
1594
+ while (reader.pos < end) {
1595
+ const tag = reader.uint32();
1596
+ switch (tag >>> 3) {
1597
+ case 1: {
1598
+ if (tag !== 8) {
1599
+ break;
1600
+ }
1601
+
1602
+ message.tier = reader.int32() as any;
1603
+ continue;
1486
1604
  }
1605
+ case 2: {
1606
+ if (tag !== 18) {
1607
+ break;
1608
+ }
1487
1609
 
1488
- message.tier = reader.int32() as any;
1489
- continue;
1490
- }
1491
- case 2: {
1492
- if (tag !== 18) {
1493
- break;
1610
+ message.name = reader.string();
1611
+ continue;
1494
1612
  }
1613
+ case 3: {
1614
+ if (tag !== 26) {
1615
+ break;
1616
+ }
1495
1617
 
1496
- message.name = reader.string();
1497
- continue;
1498
- }
1499
- case 3: {
1500
- if (tag !== 26) {
1501
- break;
1618
+ message.description = reader.string();
1619
+ continue;
1502
1620
  }
1621
+ case 4: {
1622
+ if (tag !== 34) {
1623
+ break;
1624
+ }
1503
1625
 
1504
- message.description = reader.string();
1505
- continue;
1506
- }
1507
- case 4: {
1508
- if (tag !== 34) {
1509
- break;
1626
+ message.displayPrice = reader.string();
1627
+ continue;
1510
1628
  }
1629
+ case 5: {
1630
+ if (tag !== 40) {
1631
+ break;
1632
+ }
1511
1633
 
1512
- message.displayPrice = reader.string();
1513
- continue;
1514
- }
1515
- case 5: {
1516
- if (tag !== 40) {
1517
- break;
1634
+ message.selfServe = reader.bool();
1635
+ continue;
1518
1636
  }
1519
-
1520
- message.selfServe = reader.bool();
1521
- continue;
1522
1637
  }
1638
+ if ((tag & 7) === 4 || tag === 0) {
1639
+ break;
1640
+ }
1641
+ reader.skip(tag & 7);
1523
1642
  }
1524
- if ((tag & 7) === 4 || tag === 0) {
1525
- break;
1526
- }
1527
- reader.skip(tag & 7);
1643
+ return message;
1644
+ } finally {
1645
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1528
1646
  }
1529
- return message;
1530
1647
  },
1531
1648
 
1532
1649
  fromJSON(object: any): PlanDetails {