@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/integration_gateway.proto
6
6
 
@@ -317,106 +317,115 @@ export const Integration: MessageFns<Integration> = {
317
317
 
318
318
  decode(input: BinaryReader | Uint8Array, length?: number): Integration {
319
319
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
320
- const end = length === undefined ? reader.len : reader.pos + length;
321
- const message = createBaseIntegration();
322
- while (reader.pos < end) {
323
- const tag = reader.uint32();
324
- switch (tag >>> 3) {
325
- case 1: {
326
- if (tag !== 10) {
327
- break;
328
- }
329
-
330
- message.id = reader.string();
331
- continue;
332
- }
333
- case 2: {
334
- if (tag !== 18) {
335
- break;
336
- }
337
-
338
- message.organizationId = reader.string();
339
- continue;
340
- }
341
- case 3: {
342
- if (tag !== 26) {
343
- break;
344
- }
345
-
346
- message.name = reader.string();
347
- continue;
348
- }
349
- case 4: {
350
- if (tag !== 32) {
351
- break;
352
- }
353
-
354
- message.type = reader.int32() as any;
355
- continue;
356
- }
357
- case 5: {
358
- if (tag !== 40) {
359
- break;
360
- }
361
-
362
- message.enabled = reader.int32() as any;
363
- continue;
364
- }
365
- case 6: {
366
- if (tag !== 50) {
367
- break;
368
- }
369
-
370
- message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
371
- continue;
372
- }
373
- case 7: {
374
- if (tag !== 58) {
375
- break;
376
- }
377
-
378
- message.slackConfig = SlackConfig.decode(reader, reader.uint32());
379
- continue;
380
- }
381
- case 8: {
382
- if (tag !== 66) {
383
- break;
384
- }
385
-
386
- message.emailConfig = EmailConfig.decode(reader, reader.uint32());
387
- continue;
320
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
321
+ if (previousRecursionDepth >= 100) {
322
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
323
+ }
324
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
325
+ try {
326
+ const end = length === undefined ? reader.len : reader.pos + length;
327
+ const message = createBaseIntegration();
328
+ while (reader.pos < end) {
329
+ const tag = reader.uint32();
330
+ switch (tag >>> 3) {
331
+ case 1: {
332
+ if (tag !== 10) {
333
+ break;
334
+ }
335
+
336
+ message.id = reader.string();
337
+ continue;
338
+ }
339
+ case 2: {
340
+ if (tag !== 18) {
341
+ break;
342
+ }
343
+
344
+ message.organizationId = reader.string();
345
+ continue;
346
+ }
347
+ case 3: {
348
+ if (tag !== 26) {
349
+ break;
350
+ }
351
+
352
+ message.name = reader.string();
353
+ continue;
354
+ }
355
+ case 4: {
356
+ if (tag !== 32) {
357
+ break;
358
+ }
359
+
360
+ message.type = reader.int32() as any;
361
+ continue;
362
+ }
363
+ case 5: {
364
+ if (tag !== 40) {
365
+ break;
366
+ }
367
+
368
+ message.enabled = reader.int32() as any;
369
+ continue;
370
+ }
371
+ case 6: {
372
+ if (tag !== 50) {
373
+ break;
374
+ }
375
+
376
+ message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
377
+ continue;
378
+ }
379
+ case 7: {
380
+ if (tag !== 58) {
381
+ break;
382
+ }
383
+
384
+ message.slackConfig = SlackConfig.decode(reader, reader.uint32());
385
+ continue;
386
+ }
387
+ case 8: {
388
+ if (tag !== 66) {
389
+ break;
390
+ }
391
+
392
+ message.emailConfig = EmailConfig.decode(reader, reader.uint32());
393
+ continue;
394
+ }
395
+ case 11: {
396
+ if (tag !== 90) {
397
+ break;
398
+ }
399
+
400
+ message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
401
+ continue;
402
+ }
403
+ case 9: {
404
+ if (tag !== 74) {
405
+ break;
406
+ }
407
+
408
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
409
+ continue;
410
+ }
411
+ case 10: {
412
+ if (tag !== 82) {
413
+ break;
414
+ }
415
+
416
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
417
+ continue;
418
+ }
419
+ }
420
+ if ((tag & 7) === 4 || tag === 0) {
421
+ break;
388
422
  }
389
- case 11: {
390
- if (tag !== 90) {
391
- break;
392
- }
393
-
394
- message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
395
- continue;
396
- }
397
- case 9: {
398
- if (tag !== 74) {
399
- break;
400
- }
401
-
402
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
403
- continue;
404
- }
405
- case 10: {
406
- if (tag !== 82) {
407
- break;
408
- }
409
-
410
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
411
- continue;
412
- }
413
- }
414
- if ((tag & 7) === 4 || tag === 0) {
415
- break;
423
+ reader.skip(tag & 7);
416
424
  }
417
- reader.skip(tag & 7);
425
+ return message;
426
+ } finally {
427
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
418
428
  }
419
- return message;
420
429
  },
421
430
 
422
431
  fromJSON(object: any): Integration {
@@ -546,37 +555,46 @@ export const WebhookConfig: MessageFns<WebhookConfig> = {
546
555
 
547
556
  decode(input: BinaryReader | Uint8Array, length?: number): WebhookConfig {
548
557
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
549
- const end = length === undefined ? reader.len : reader.pos + length;
550
- const message = createBaseWebhookConfig();
551
- while (reader.pos < end) {
552
- const tag = reader.uint32();
553
- switch (tag >>> 3) {
554
- case 1: {
555
- if (tag !== 10) {
556
- break;
557
- }
558
-
559
- message.url = reader.string();
560
- continue;
561
- }
562
- case 2: {
563
- if (tag !== 18) {
564
- break;
565
- }
566
-
567
- const entry2 = WebhookConfig_HeadersEntry.decode(reader, reader.uint32());
568
- if (entry2.value !== undefined) {
569
- message.headers[entry2.key] = entry2.value;
570
- }
571
- continue;
572
- }
558
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
559
+ if (previousRecursionDepth >= 100) {
560
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
561
+ }
562
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
563
+ try {
564
+ const end = length === undefined ? reader.len : reader.pos + length;
565
+ const message = createBaseWebhookConfig();
566
+ while (reader.pos < end) {
567
+ const tag = reader.uint32();
568
+ switch (tag >>> 3) {
569
+ case 1: {
570
+ if (tag !== 10) {
571
+ break;
572
+ }
573
+
574
+ message.url = reader.string();
575
+ continue;
576
+ }
577
+ case 2: {
578
+ if (tag !== 18) {
579
+ break;
580
+ }
581
+
582
+ const entry2 = WebhookConfig_HeadersEntry.decode(reader, reader.uint32());
583
+ if (entry2.value !== undefined) {
584
+ message.headers[entry2.key] = entry2.value;
585
+ }
586
+ continue;
587
+ }
588
+ }
589
+ if ((tag & 7) === 4 || tag === 0) {
590
+ break;
591
+ }
592
+ reader.skip(tag & 7);
573
593
  }
574
- if ((tag & 7) === 4 || tag === 0) {
575
- break;
576
- }
577
- reader.skip(tag & 7);
594
+ return message;
595
+ } finally {
596
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
578
597
  }
579
- return message;
580
598
  },
581
599
 
582
600
  fromJSON(object: any): WebhookConfig {
@@ -585,7 +603,12 @@ export const WebhookConfig: MessageFns<WebhookConfig> = {
585
603
  headers: isObject(object.headers)
586
604
  ? (globalThis.Object.entries(object.headers) as [string, any][]).reduce(
587
605
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
588
- acc[key] = globalThis.String(value);
606
+ globalThis.Object.defineProperty(acc, key, {
607
+ value: globalThis.String(value),
608
+ enumerable: true,
609
+ configurable: true,
610
+ writable: true,
611
+ });
589
612
  return acc;
590
613
  },
591
614
  {},
@@ -647,34 +670,43 @@ export const WebhookConfig_HeadersEntry: MessageFns<WebhookConfig_HeadersEntry>
647
670
 
648
671
  decode(input: BinaryReader | Uint8Array, length?: number): WebhookConfig_HeadersEntry {
649
672
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
650
- const end = length === undefined ? reader.len : reader.pos + length;
651
- const message = createBaseWebhookConfig_HeadersEntry();
652
- while (reader.pos < end) {
653
- const tag = reader.uint32();
654
- switch (tag >>> 3) {
655
- case 1: {
656
- if (tag !== 10) {
657
- break;
658
- }
659
-
660
- message.key = reader.string();
661
- continue;
662
- }
663
- case 2: {
664
- if (tag !== 18) {
665
- break;
666
- }
667
-
668
- message.value = reader.string();
669
- continue;
670
- }
671
- }
672
- if ((tag & 7) === 4 || tag === 0) {
673
- break;
673
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
674
+ if (previousRecursionDepth >= 100) {
675
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
676
+ }
677
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
678
+ try {
679
+ const end = length === undefined ? reader.len : reader.pos + length;
680
+ const message = createBaseWebhookConfig_HeadersEntry();
681
+ while (reader.pos < end) {
682
+ const tag = reader.uint32();
683
+ switch (tag >>> 3) {
684
+ case 1: {
685
+ if (tag !== 10) {
686
+ break;
687
+ }
688
+
689
+ message.key = reader.string();
690
+ continue;
691
+ }
692
+ case 2: {
693
+ if (tag !== 18) {
694
+ break;
695
+ }
696
+
697
+ message.value = reader.string();
698
+ continue;
699
+ }
700
+ }
701
+ if ((tag & 7) === 4 || tag === 0) {
702
+ break;
703
+ }
704
+ reader.skip(tag & 7);
674
705
  }
675
- reader.skip(tag & 7);
706
+ return message;
707
+ } finally {
708
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
676
709
  }
677
- return message;
678
710
  },
679
711
 
680
712
  fromJSON(object: any): WebhookConfig_HeadersEntry {
@@ -729,50 +761,59 @@ export const SlackConfig: MessageFns<SlackConfig> = {
729
761
 
730
762
  decode(input: BinaryReader | Uint8Array, length?: number): SlackConfig {
731
763
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
732
- const end = length === undefined ? reader.len : reader.pos + length;
733
- const message = createBaseSlackConfig();
734
- while (reader.pos < end) {
735
- const tag = reader.uint32();
736
- switch (tag >>> 3) {
737
- case 1: {
738
- if (tag !== 10) {
739
- break;
740
- }
741
-
742
- message.channelId = reader.string();
743
- continue;
744
- }
745
- case 2: {
746
- if (tag !== 18) {
747
- break;
748
- }
749
-
750
- message.channelName = reader.string();
751
- continue;
752
- }
753
- case 3: {
754
- if (tag !== 26) {
755
- break;
756
- }
757
-
758
- message.teamId = reader.string();
759
- continue;
760
- }
761
- case 4: {
762
- if (tag !== 34) {
763
- break;
764
- }
765
-
766
- message.teamName = reader.string();
767
- continue;
768
- }
764
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
765
+ if (previousRecursionDepth >= 100) {
766
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
767
+ }
768
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
769
+ try {
770
+ const end = length === undefined ? reader.len : reader.pos + length;
771
+ const message = createBaseSlackConfig();
772
+ while (reader.pos < end) {
773
+ const tag = reader.uint32();
774
+ switch (tag >>> 3) {
775
+ case 1: {
776
+ if (tag !== 10) {
777
+ break;
778
+ }
779
+
780
+ message.channelId = reader.string();
781
+ continue;
782
+ }
783
+ case 2: {
784
+ if (tag !== 18) {
785
+ break;
786
+ }
787
+
788
+ message.channelName = reader.string();
789
+ continue;
790
+ }
791
+ case 3: {
792
+ if (tag !== 26) {
793
+ break;
794
+ }
795
+
796
+ message.teamId = reader.string();
797
+ continue;
798
+ }
799
+ case 4: {
800
+ if (tag !== 34) {
801
+ break;
802
+ }
803
+
804
+ message.teamName = reader.string();
805
+ continue;
806
+ }
807
+ }
808
+ if ((tag & 7) === 4 || tag === 0) {
809
+ break;
810
+ }
811
+ reader.skip(tag & 7);
769
812
  }
770
- if ((tag & 7) === 4 || tag === 0) {
771
- break;
772
- }
773
- reader.skip(tag & 7);
813
+ return message;
814
+ } finally {
815
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
774
816
  }
775
- return message;
776
817
  },
777
818
 
778
819
  fromJSON(object: any): SlackConfig {
@@ -844,26 +885,35 @@ export const EmailConfig: MessageFns<EmailConfig> = {
844
885
 
845
886
  decode(input: BinaryReader | Uint8Array, length?: number): EmailConfig {
846
887
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
847
- const end = length === undefined ? reader.len : reader.pos + length;
848
- const message = createBaseEmailConfig();
849
- while (reader.pos < end) {
850
- const tag = reader.uint32();
851
- switch (tag >>> 3) {
852
- case 1: {
853
- if (tag !== 10) {
854
- break;
855
- }
856
-
857
- message.recipients.push(reader.string());
858
- continue;
859
- }
860
- }
861
- if ((tag & 7) === 4 || tag === 0) {
862
- break;
888
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
889
+ if (previousRecursionDepth >= 100) {
890
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
891
+ }
892
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
893
+ try {
894
+ const end = length === undefined ? reader.len : reader.pos + length;
895
+ const message = createBaseEmailConfig();
896
+ while (reader.pos < end) {
897
+ const tag = reader.uint32();
898
+ switch (tag >>> 3) {
899
+ case 1: {
900
+ if (tag !== 10) {
901
+ break;
902
+ }
903
+
904
+ message.recipients.push(reader.string());
905
+ continue;
906
+ }
907
+ }
908
+ if ((tag & 7) === 4 || tag === 0) {
909
+ break;
910
+ }
911
+ reader.skip(tag & 7);
863
912
  }
864
- reader.skip(tag & 7);
913
+ return message;
914
+ } finally {
915
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
865
916
  }
866
- return message;
867
917
  },
868
918
 
869
919
  fromJSON(object: any): EmailConfig {
@@ -909,34 +959,43 @@ export const PagerDutyConfig: MessageFns<PagerDutyConfig> = {
909
959
 
910
960
  decode(input: BinaryReader | Uint8Array, length?: number): PagerDutyConfig {
911
961
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
912
- const end = length === undefined ? reader.len : reader.pos + length;
913
- const message = createBasePagerDutyConfig();
914
- while (reader.pos < end) {
915
- const tag = reader.uint32();
916
- switch (tag >>> 3) {
917
- case 1: {
918
- if (tag !== 10) {
919
- break;
920
- }
921
-
922
- message.serviceId = reader.string();
923
- continue;
924
- }
925
- case 2: {
926
- if (tag !== 18) {
927
- break;
928
- }
929
-
930
- message.serviceName = reader.string();
931
- continue;
932
- }
933
- }
934
- if ((tag & 7) === 4 || tag === 0) {
935
- break;
962
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
963
+ if (previousRecursionDepth >= 100) {
964
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
965
+ }
966
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
967
+ try {
968
+ const end = length === undefined ? reader.len : reader.pos + length;
969
+ const message = createBasePagerDutyConfig();
970
+ while (reader.pos < end) {
971
+ const tag = reader.uint32();
972
+ switch (tag >>> 3) {
973
+ case 1: {
974
+ if (tag !== 10) {
975
+ break;
976
+ }
977
+
978
+ message.serviceId = reader.string();
979
+ continue;
980
+ }
981
+ case 2: {
982
+ if (tag !== 18) {
983
+ break;
984
+ }
985
+
986
+ message.serviceName = reader.string();
987
+ continue;
988
+ }
989
+ }
990
+ if ((tag & 7) === 4 || tag === 0) {
991
+ break;
992
+ }
993
+ reader.skip(tag & 7);
936
994
  }
937
- reader.skip(tag & 7);
995
+ return message;
996
+ } finally {
997
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
938
998
  }
939
- return message;
940
999
  },
941
1000
 
942
1001
  fromJSON(object: any): PagerDutyConfig {
@@ -1016,74 +1075,83 @@ export const CreateIntegrationRequest: MessageFns<CreateIntegrationRequest> = {
1016
1075
 
1017
1076
  decode(input: BinaryReader | Uint8Array, length?: number): CreateIntegrationRequest {
1018
1077
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1019
- const end = length === undefined ? reader.len : reader.pos + length;
1020
- const message = createBaseCreateIntegrationRequest();
1021
- while (reader.pos < end) {
1022
- const tag = reader.uint32();
1023
- switch (tag >>> 3) {
1024
- case 1: {
1025
- if (tag !== 10) {
1026
- break;
1027
- }
1028
-
1029
- message.organizationId = reader.string();
1030
- continue;
1031
- }
1032
- case 2: {
1033
- if (tag !== 18) {
1034
- break;
1035
- }
1036
-
1037
- message.name = reader.string();
1038
- continue;
1039
- }
1040
- case 3: {
1041
- if (tag !== 24) {
1042
- break;
1043
- }
1044
-
1045
- message.type = reader.int32() as any;
1046
- continue;
1047
- }
1048
- case 4: {
1049
- if (tag !== 34) {
1050
- break;
1051
- }
1052
-
1053
- message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
1054
- continue;
1055
- }
1056
- case 5: {
1057
- if (tag !== 42) {
1058
- break;
1059
- }
1060
-
1061
- message.slackConfig = SlackConfig.decode(reader, reader.uint32());
1062
- continue;
1063
- }
1064
- case 6: {
1065
- if (tag !== 50) {
1066
- break;
1067
- }
1068
-
1069
- message.emailConfig = EmailConfig.decode(reader, reader.uint32());
1070
- continue;
1071
- }
1072
- case 7: {
1073
- if (tag !== 58) {
1074
- break;
1075
- }
1076
-
1077
- message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
1078
- continue;
1079
- }
1080
- }
1081
- if ((tag & 7) === 4 || tag === 0) {
1082
- break;
1078
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1079
+ if (previousRecursionDepth >= 100) {
1080
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1081
+ }
1082
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1083
+ try {
1084
+ const end = length === undefined ? reader.len : reader.pos + length;
1085
+ const message = createBaseCreateIntegrationRequest();
1086
+ while (reader.pos < end) {
1087
+ const tag = reader.uint32();
1088
+ switch (tag >>> 3) {
1089
+ case 1: {
1090
+ if (tag !== 10) {
1091
+ break;
1092
+ }
1093
+
1094
+ message.organizationId = reader.string();
1095
+ continue;
1096
+ }
1097
+ case 2: {
1098
+ if (tag !== 18) {
1099
+ break;
1100
+ }
1101
+
1102
+ message.name = reader.string();
1103
+ continue;
1104
+ }
1105
+ case 3: {
1106
+ if (tag !== 24) {
1107
+ break;
1108
+ }
1109
+
1110
+ message.type = reader.int32() as any;
1111
+ continue;
1112
+ }
1113
+ case 4: {
1114
+ if (tag !== 34) {
1115
+ break;
1116
+ }
1117
+
1118
+ message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
1119
+ continue;
1120
+ }
1121
+ case 5: {
1122
+ if (tag !== 42) {
1123
+ break;
1124
+ }
1125
+
1126
+ message.slackConfig = SlackConfig.decode(reader, reader.uint32());
1127
+ continue;
1128
+ }
1129
+ case 6: {
1130
+ if (tag !== 50) {
1131
+ break;
1132
+ }
1133
+
1134
+ message.emailConfig = EmailConfig.decode(reader, reader.uint32());
1135
+ continue;
1136
+ }
1137
+ case 7: {
1138
+ if (tag !== 58) {
1139
+ break;
1140
+ }
1141
+
1142
+ message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
1143
+ continue;
1144
+ }
1145
+ }
1146
+ if ((tag & 7) === 4 || tag === 0) {
1147
+ break;
1148
+ }
1149
+ reader.skip(tag & 7);
1083
1150
  }
1084
- reader.skip(tag & 7);
1151
+ return message;
1152
+ } finally {
1153
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1085
1154
  }
1086
- return message;
1087
1155
  },
1088
1156
 
1089
1157
  fromJSON(object: any): CreateIntegrationRequest {
@@ -1185,34 +1253,43 @@ export const CreateIntegrationResponse: MessageFns<CreateIntegrationResponse> =
1185
1253
 
1186
1254
  decode(input: BinaryReader | Uint8Array, length?: number): CreateIntegrationResponse {
1187
1255
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1188
- const end = length === undefined ? reader.len : reader.pos + length;
1189
- const message = createBaseCreateIntegrationResponse();
1190
- while (reader.pos < end) {
1191
- const tag = reader.uint32();
1192
- switch (tag >>> 3) {
1193
- case 1: {
1194
- if (tag !== 10) {
1195
- break;
1196
- }
1197
-
1198
- message.status = ResponseStatus.decode(reader, reader.uint32());
1199
- continue;
1200
- }
1201
- case 2: {
1202
- if (tag !== 18) {
1203
- break;
1204
- }
1205
-
1206
- message.integration = Integration.decode(reader, reader.uint32());
1207
- continue;
1208
- }
1209
- }
1210
- if ((tag & 7) === 4 || tag === 0) {
1211
- break;
1256
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1257
+ if (previousRecursionDepth >= 100) {
1258
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1259
+ }
1260
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1261
+ try {
1262
+ const end = length === undefined ? reader.len : reader.pos + length;
1263
+ const message = createBaseCreateIntegrationResponse();
1264
+ while (reader.pos < end) {
1265
+ const tag = reader.uint32();
1266
+ switch (tag >>> 3) {
1267
+ case 1: {
1268
+ if (tag !== 10) {
1269
+ break;
1270
+ }
1271
+
1272
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1273
+ continue;
1274
+ }
1275
+ case 2: {
1276
+ if (tag !== 18) {
1277
+ break;
1278
+ }
1279
+
1280
+ message.integration = Integration.decode(reader, reader.uint32());
1281
+ continue;
1282
+ }
1283
+ }
1284
+ if ((tag & 7) === 4 || tag === 0) {
1285
+ break;
1286
+ }
1287
+ reader.skip(tag & 7);
1212
1288
  }
1213
- reader.skip(tag & 7);
1289
+ return message;
1290
+ } finally {
1291
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1214
1292
  }
1215
- return message;
1216
1293
  },
1217
1294
 
1218
1295
  fromJSON(object: any): CreateIntegrationResponse {
@@ -1265,34 +1342,43 @@ export const GetIntegrationRequest: MessageFns<GetIntegrationRequest> = {
1265
1342
 
1266
1343
  decode(input: BinaryReader | Uint8Array, length?: number): GetIntegrationRequest {
1267
1344
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1268
- const end = length === undefined ? reader.len : reader.pos + length;
1269
- const message = createBaseGetIntegrationRequest();
1270
- while (reader.pos < end) {
1271
- const tag = reader.uint32();
1272
- switch (tag >>> 3) {
1273
- case 1: {
1274
- if (tag !== 10) {
1275
- break;
1276
- }
1277
-
1278
- message.organizationId = reader.string();
1279
- continue;
1280
- }
1281
- case 2: {
1282
- if (tag !== 18) {
1283
- break;
1284
- }
1285
-
1286
- message.integrationId = reader.string();
1287
- continue;
1288
- }
1345
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1346
+ if (previousRecursionDepth >= 100) {
1347
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1348
+ }
1349
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1350
+ try {
1351
+ const end = length === undefined ? reader.len : reader.pos + length;
1352
+ const message = createBaseGetIntegrationRequest();
1353
+ while (reader.pos < end) {
1354
+ const tag = reader.uint32();
1355
+ switch (tag >>> 3) {
1356
+ case 1: {
1357
+ if (tag !== 10) {
1358
+ break;
1359
+ }
1360
+
1361
+ message.organizationId = reader.string();
1362
+ continue;
1363
+ }
1364
+ case 2: {
1365
+ if (tag !== 18) {
1366
+ break;
1367
+ }
1368
+
1369
+ message.integrationId = reader.string();
1370
+ continue;
1371
+ }
1372
+ }
1373
+ if ((tag & 7) === 4 || tag === 0) {
1374
+ break;
1375
+ }
1376
+ reader.skip(tag & 7);
1289
1377
  }
1290
- if ((tag & 7) === 4 || tag === 0) {
1291
- break;
1292
- }
1293
- reader.skip(tag & 7);
1378
+ return message;
1379
+ } finally {
1380
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1294
1381
  }
1295
- return message;
1296
1382
  },
1297
1383
 
1298
1384
  fromJSON(object: any): GetIntegrationRequest {
@@ -1349,34 +1435,43 @@ export const GetIntegrationResponse: MessageFns<GetIntegrationResponse> = {
1349
1435
 
1350
1436
  decode(input: BinaryReader | Uint8Array, length?: number): GetIntegrationResponse {
1351
1437
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1352
- const end = length === undefined ? reader.len : reader.pos + length;
1353
- const message = createBaseGetIntegrationResponse();
1354
- while (reader.pos < end) {
1355
- const tag = reader.uint32();
1356
- switch (tag >>> 3) {
1357
- case 1: {
1358
- if (tag !== 10) {
1359
- break;
1360
- }
1361
-
1362
- message.status = ResponseStatus.decode(reader, reader.uint32());
1363
- continue;
1364
- }
1365
- case 2: {
1366
- if (tag !== 18) {
1367
- break;
1368
- }
1369
-
1370
- message.integration = Integration.decode(reader, reader.uint32());
1371
- continue;
1372
- }
1438
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1439
+ if (previousRecursionDepth >= 100) {
1440
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1441
+ }
1442
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1443
+ try {
1444
+ const end = length === undefined ? reader.len : reader.pos + length;
1445
+ const message = createBaseGetIntegrationResponse();
1446
+ while (reader.pos < end) {
1447
+ const tag = reader.uint32();
1448
+ switch (tag >>> 3) {
1449
+ case 1: {
1450
+ if (tag !== 10) {
1451
+ break;
1452
+ }
1453
+
1454
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1455
+ continue;
1456
+ }
1457
+ case 2: {
1458
+ if (tag !== 18) {
1459
+ break;
1460
+ }
1461
+
1462
+ message.integration = Integration.decode(reader, reader.uint32());
1463
+ continue;
1464
+ }
1465
+ }
1466
+ if ((tag & 7) === 4 || tag === 0) {
1467
+ break;
1468
+ }
1469
+ reader.skip(tag & 7);
1373
1470
  }
1374
- if ((tag & 7) === 4 || tag === 0) {
1375
- break;
1376
- }
1377
- reader.skip(tag & 7);
1471
+ return message;
1472
+ } finally {
1473
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1378
1474
  }
1379
- return message;
1380
1475
  },
1381
1476
 
1382
1477
  fromJSON(object: any): GetIntegrationResponse {
@@ -1429,34 +1524,43 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
1429
1524
 
1430
1525
  decode(input: BinaryReader | Uint8Array, length?: number): ListIntegrationsRequest {
1431
1526
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1432
- const end = length === undefined ? reader.len : reader.pos + length;
1433
- const message = createBaseListIntegrationsRequest();
1434
- while (reader.pos < end) {
1435
- const tag = reader.uint32();
1436
- switch (tag >>> 3) {
1437
- case 1: {
1438
- if (tag !== 10) {
1439
- break;
1440
- }
1441
-
1442
- message.organizationId = reader.string();
1443
- continue;
1444
- }
1445
- case 2: {
1446
- if (tag !== 16) {
1447
- break;
1448
- }
1449
-
1450
- message.typeFilter = reader.int32() as any;
1451
- continue;
1452
- }
1527
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1528
+ if (previousRecursionDepth >= 100) {
1529
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1530
+ }
1531
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1532
+ try {
1533
+ const end = length === undefined ? reader.len : reader.pos + length;
1534
+ const message = createBaseListIntegrationsRequest();
1535
+ while (reader.pos < end) {
1536
+ const tag = reader.uint32();
1537
+ switch (tag >>> 3) {
1538
+ case 1: {
1539
+ if (tag !== 10) {
1540
+ break;
1541
+ }
1542
+
1543
+ message.organizationId = reader.string();
1544
+ continue;
1545
+ }
1546
+ case 2: {
1547
+ if (tag !== 16) {
1548
+ break;
1549
+ }
1550
+
1551
+ message.typeFilter = reader.int32() as any;
1552
+ continue;
1553
+ }
1554
+ }
1555
+ if ((tag & 7) === 4 || tag === 0) {
1556
+ break;
1557
+ }
1558
+ reader.skip(tag & 7);
1453
1559
  }
1454
- if ((tag & 7) === 4 || tag === 0) {
1455
- break;
1456
- }
1457
- reader.skip(tag & 7);
1560
+ return message;
1561
+ } finally {
1562
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1458
1563
  }
1459
- return message;
1460
1564
  },
1461
1565
 
1462
1566
  fromJSON(object: any): ListIntegrationsRequest {
@@ -1513,34 +1617,43 @@ export const ListIntegrationsResponse: MessageFns<ListIntegrationsResponse> = {
1513
1617
 
1514
1618
  decode(input: BinaryReader | Uint8Array, length?: number): ListIntegrationsResponse {
1515
1619
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1516
- const end = length === undefined ? reader.len : reader.pos + length;
1517
- const message = createBaseListIntegrationsResponse();
1518
- while (reader.pos < end) {
1519
- const tag = reader.uint32();
1520
- switch (tag >>> 3) {
1521
- case 1: {
1522
- if (tag !== 10) {
1523
- break;
1524
- }
1525
-
1526
- message.status = ResponseStatus.decode(reader, reader.uint32());
1527
- continue;
1528
- }
1529
- case 2: {
1530
- if (tag !== 18) {
1531
- break;
1532
- }
1533
-
1534
- message.integrations.push(Integration.decode(reader, reader.uint32()));
1535
- continue;
1536
- }
1620
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1621
+ if (previousRecursionDepth >= 100) {
1622
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1623
+ }
1624
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1625
+ try {
1626
+ const end = length === undefined ? reader.len : reader.pos + length;
1627
+ const message = createBaseListIntegrationsResponse();
1628
+ while (reader.pos < end) {
1629
+ const tag = reader.uint32();
1630
+ switch (tag >>> 3) {
1631
+ case 1: {
1632
+ if (tag !== 10) {
1633
+ break;
1634
+ }
1635
+
1636
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1637
+ continue;
1638
+ }
1639
+ case 2: {
1640
+ if (tag !== 18) {
1641
+ break;
1642
+ }
1643
+
1644
+ message.integrations.push(Integration.decode(reader, reader.uint32()));
1645
+ continue;
1646
+ }
1647
+ }
1648
+ if ((tag & 7) === 4 || tag === 0) {
1649
+ break;
1650
+ }
1651
+ reader.skip(tag & 7);
1537
1652
  }
1538
- if ((tag & 7) === 4 || tag === 0) {
1539
- break;
1540
- }
1541
- reader.skip(tag & 7);
1653
+ return message;
1654
+ } finally {
1655
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1542
1656
  }
1543
- return message;
1544
1657
  },
1545
1658
 
1546
1659
  fromJSON(object: any): ListIntegrationsResponse {
@@ -1596,42 +1709,51 @@ export const UpdateIntegrationRequest: MessageFns<UpdateIntegrationRequest> = {
1596
1709
 
1597
1710
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateIntegrationRequest {
1598
1711
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1599
- const end = length === undefined ? reader.len : reader.pos + length;
1600
- const message = createBaseUpdateIntegrationRequest();
1601
- while (reader.pos < end) {
1602
- const tag = reader.uint32();
1603
- switch (tag >>> 3) {
1604
- case 1: {
1605
- if (tag !== 10) {
1606
- break;
1607
- }
1608
-
1609
- message.organizationId = reader.string();
1610
- continue;
1611
- }
1612
- case 2: {
1613
- if (tag !== 18) {
1614
- break;
1615
- }
1616
-
1617
- message.integrationId = reader.string();
1618
- continue;
1619
- }
1620
- case 3: {
1621
- if (tag !== 26) {
1622
- break;
1623
- }
1624
-
1625
- message.updates = UpdateIntegrationRequest_IntegrationUpdates.decode(reader, reader.uint32());
1626
- continue;
1627
- }
1628
- }
1629
- if ((tag & 7) === 4 || tag === 0) {
1630
- break;
1712
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1713
+ if (previousRecursionDepth >= 100) {
1714
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1715
+ }
1716
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1717
+ try {
1718
+ const end = length === undefined ? reader.len : reader.pos + length;
1719
+ const message = createBaseUpdateIntegrationRequest();
1720
+ while (reader.pos < end) {
1721
+ const tag = reader.uint32();
1722
+ switch (tag >>> 3) {
1723
+ case 1: {
1724
+ if (tag !== 10) {
1725
+ break;
1726
+ }
1727
+
1728
+ message.organizationId = reader.string();
1729
+ continue;
1730
+ }
1731
+ case 2: {
1732
+ if (tag !== 18) {
1733
+ break;
1734
+ }
1735
+
1736
+ message.integrationId = reader.string();
1737
+ continue;
1738
+ }
1739
+ case 3: {
1740
+ if (tag !== 26) {
1741
+ break;
1742
+ }
1743
+
1744
+ message.updates = UpdateIntegrationRequest_IntegrationUpdates.decode(reader, reader.uint32());
1745
+ continue;
1746
+ }
1747
+ }
1748
+ if ((tag & 7) === 4 || tag === 0) {
1749
+ break;
1750
+ }
1751
+ reader.skip(tag & 7);
1631
1752
  }
1632
- reader.skip(tag & 7);
1753
+ return message;
1754
+ } finally {
1755
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1633
1756
  }
1634
- return message;
1635
1757
  },
1636
1758
 
1637
1759
  fromJSON(object: any): UpdateIntegrationRequest {
@@ -1717,66 +1839,75 @@ export const UpdateIntegrationRequest_IntegrationUpdates: MessageFns<UpdateInteg
1717
1839
 
1718
1840
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateIntegrationRequest_IntegrationUpdates {
1719
1841
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1720
- const end = length === undefined ? reader.len : reader.pos + length;
1721
- const message = createBaseUpdateIntegrationRequest_IntegrationUpdates();
1722
- while (reader.pos < end) {
1723
- const tag = reader.uint32();
1724
- switch (tag >>> 3) {
1725
- case 1: {
1726
- if (tag !== 10) {
1727
- break;
1728
- }
1729
-
1730
- message.name = reader.string();
1731
- continue;
1732
- }
1733
- case 2: {
1734
- if (tag !== 16) {
1735
- break;
1736
- }
1737
-
1738
- message.enabled = reader.int32() as any;
1739
- continue;
1740
- }
1741
- case 3: {
1742
- if (tag !== 26) {
1743
- break;
1744
- }
1745
-
1746
- message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
1747
- continue;
1748
- }
1749
- case 4: {
1750
- if (tag !== 34) {
1751
- break;
1752
- }
1753
-
1754
- message.slackConfig = SlackConfig.decode(reader, reader.uint32());
1755
- continue;
1756
- }
1757
- case 5: {
1758
- if (tag !== 42) {
1759
- break;
1760
- }
1761
-
1762
- message.emailConfig = EmailConfig.decode(reader, reader.uint32());
1763
- continue;
1764
- }
1765
- case 6: {
1766
- if (tag !== 50) {
1767
- break;
1768
- }
1769
-
1770
- message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
1771
- continue;
1772
- }
1773
- }
1774
- if ((tag & 7) === 4 || tag === 0) {
1775
- break;
1842
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1843
+ if (previousRecursionDepth >= 100) {
1844
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1845
+ }
1846
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1847
+ try {
1848
+ const end = length === undefined ? reader.len : reader.pos + length;
1849
+ const message = createBaseUpdateIntegrationRequest_IntegrationUpdates();
1850
+ while (reader.pos < end) {
1851
+ const tag = reader.uint32();
1852
+ switch (tag >>> 3) {
1853
+ case 1: {
1854
+ if (tag !== 10) {
1855
+ break;
1856
+ }
1857
+
1858
+ message.name = reader.string();
1859
+ continue;
1860
+ }
1861
+ case 2: {
1862
+ if (tag !== 16) {
1863
+ break;
1864
+ }
1865
+
1866
+ message.enabled = reader.int32() as any;
1867
+ continue;
1868
+ }
1869
+ case 3: {
1870
+ if (tag !== 26) {
1871
+ break;
1872
+ }
1873
+
1874
+ message.webhookConfig = WebhookConfig.decode(reader, reader.uint32());
1875
+ continue;
1876
+ }
1877
+ case 4: {
1878
+ if (tag !== 34) {
1879
+ break;
1880
+ }
1881
+
1882
+ message.slackConfig = SlackConfig.decode(reader, reader.uint32());
1883
+ continue;
1884
+ }
1885
+ case 5: {
1886
+ if (tag !== 42) {
1887
+ break;
1888
+ }
1889
+
1890
+ message.emailConfig = EmailConfig.decode(reader, reader.uint32());
1891
+ continue;
1892
+ }
1893
+ case 6: {
1894
+ if (tag !== 50) {
1895
+ break;
1896
+ }
1897
+
1898
+ message.pagerdutyConfig = PagerDutyConfig.decode(reader, reader.uint32());
1899
+ continue;
1900
+ }
1901
+ }
1902
+ if ((tag & 7) === 4 || tag === 0) {
1903
+ break;
1904
+ }
1905
+ reader.skip(tag & 7);
1776
1906
  }
1777
- reader.skip(tag & 7);
1907
+ return message;
1908
+ } finally {
1909
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1778
1910
  }
1779
- return message;
1780
1911
  },
1781
1912
 
1782
1913
  fromJSON(object: any): UpdateIntegrationRequest_IntegrationUpdates {
@@ -1873,34 +2004,43 @@ export const UpdateIntegrationResponse: MessageFns<UpdateIntegrationResponse> =
1873
2004
 
1874
2005
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateIntegrationResponse {
1875
2006
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1876
- const end = length === undefined ? reader.len : reader.pos + length;
1877
- const message = createBaseUpdateIntegrationResponse();
1878
- while (reader.pos < end) {
1879
- const tag = reader.uint32();
1880
- switch (tag >>> 3) {
1881
- case 1: {
1882
- if (tag !== 10) {
1883
- break;
1884
- }
1885
-
1886
- message.status = ResponseStatus.decode(reader, reader.uint32());
1887
- continue;
1888
- }
1889
- case 2: {
1890
- if (tag !== 18) {
1891
- break;
1892
- }
1893
-
1894
- message.integration = Integration.decode(reader, reader.uint32());
1895
- continue;
1896
- }
1897
- }
1898
- if ((tag & 7) === 4 || tag === 0) {
1899
- break;
2007
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2008
+ if (previousRecursionDepth >= 100) {
2009
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2010
+ }
2011
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2012
+ try {
2013
+ const end = length === undefined ? reader.len : reader.pos + length;
2014
+ const message = createBaseUpdateIntegrationResponse();
2015
+ while (reader.pos < end) {
2016
+ const tag = reader.uint32();
2017
+ switch (tag >>> 3) {
2018
+ case 1: {
2019
+ if (tag !== 10) {
2020
+ break;
2021
+ }
2022
+
2023
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2024
+ continue;
2025
+ }
2026
+ case 2: {
2027
+ if (tag !== 18) {
2028
+ break;
2029
+ }
2030
+
2031
+ message.integration = Integration.decode(reader, reader.uint32());
2032
+ continue;
2033
+ }
2034
+ }
2035
+ if ((tag & 7) === 4 || tag === 0) {
2036
+ break;
2037
+ }
2038
+ reader.skip(tag & 7);
1900
2039
  }
1901
- reader.skip(tag & 7);
2040
+ return message;
2041
+ } finally {
2042
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1902
2043
  }
1903
- return message;
1904
2044
  },
1905
2045
 
1906
2046
  fromJSON(object: any): UpdateIntegrationResponse {
@@ -1953,34 +2093,43 @@ export const DeleteIntegrationRequest: MessageFns<DeleteIntegrationRequest> = {
1953
2093
 
1954
2094
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteIntegrationRequest {
1955
2095
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1956
- const end = length === undefined ? reader.len : reader.pos + length;
1957
- const message = createBaseDeleteIntegrationRequest();
1958
- while (reader.pos < end) {
1959
- const tag = reader.uint32();
1960
- switch (tag >>> 3) {
1961
- case 1: {
1962
- if (tag !== 10) {
1963
- break;
1964
- }
1965
-
1966
- message.organizationId = reader.string();
1967
- continue;
1968
- }
1969
- case 2: {
1970
- if (tag !== 18) {
1971
- break;
1972
- }
1973
-
1974
- message.integrationId = reader.string();
1975
- continue;
1976
- }
2096
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2097
+ if (previousRecursionDepth >= 100) {
2098
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2099
+ }
2100
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2101
+ try {
2102
+ const end = length === undefined ? reader.len : reader.pos + length;
2103
+ const message = createBaseDeleteIntegrationRequest();
2104
+ while (reader.pos < end) {
2105
+ const tag = reader.uint32();
2106
+ switch (tag >>> 3) {
2107
+ case 1: {
2108
+ if (tag !== 10) {
2109
+ break;
2110
+ }
2111
+
2112
+ message.organizationId = reader.string();
2113
+ continue;
2114
+ }
2115
+ case 2: {
2116
+ if (tag !== 18) {
2117
+ break;
2118
+ }
2119
+
2120
+ message.integrationId = reader.string();
2121
+ continue;
2122
+ }
2123
+ }
2124
+ if ((tag & 7) === 4 || tag === 0) {
2125
+ break;
2126
+ }
2127
+ reader.skip(tag & 7);
1977
2128
  }
1978
- if ((tag & 7) === 4 || tag === 0) {
1979
- break;
1980
- }
1981
- reader.skip(tag & 7);
2129
+ return message;
2130
+ } finally {
2131
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1982
2132
  }
1983
- return message;
1984
2133
  },
1985
2134
 
1986
2135
  fromJSON(object: any): DeleteIntegrationRequest {
@@ -2034,26 +2183,35 @@ export const DeleteIntegrationResponse: MessageFns<DeleteIntegrationResponse> =
2034
2183
 
2035
2184
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteIntegrationResponse {
2036
2185
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2037
- const end = length === undefined ? reader.len : reader.pos + length;
2038
- const message = createBaseDeleteIntegrationResponse();
2039
- while (reader.pos < end) {
2040
- const tag = reader.uint32();
2041
- switch (tag >>> 3) {
2042
- case 1: {
2043
- if (tag !== 10) {
2044
- break;
2045
- }
2046
-
2047
- message.status = ResponseStatus.decode(reader, reader.uint32());
2048
- continue;
2049
- }
2186
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2187
+ if (previousRecursionDepth >= 100) {
2188
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2189
+ }
2190
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2191
+ try {
2192
+ const end = length === undefined ? reader.len : reader.pos + length;
2193
+ const message = createBaseDeleteIntegrationResponse();
2194
+ while (reader.pos < end) {
2195
+ const tag = reader.uint32();
2196
+ switch (tag >>> 3) {
2197
+ case 1: {
2198
+ if (tag !== 10) {
2199
+ break;
2200
+ }
2201
+
2202
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2203
+ continue;
2204
+ }
2205
+ }
2206
+ if ((tag & 7) === 4 || tag === 0) {
2207
+ break;
2208
+ }
2209
+ reader.skip(tag & 7);
2050
2210
  }
2051
- if ((tag & 7) === 4 || tag === 0) {
2052
- break;
2053
- }
2054
- reader.skip(tag & 7);
2211
+ return message;
2212
+ } finally {
2213
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2055
2214
  }
2056
- return message;
2057
2215
  },
2058
2216
 
2059
2217
  fromJSON(object: any): DeleteIntegrationResponse {
@@ -2100,42 +2258,51 @@ export const ListTraceRuleMatchDeliveriesRequest: MessageFns<ListTraceRuleMatchD
2100
2258
 
2101
2259
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRuleMatchDeliveriesRequest {
2102
2260
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2103
- const end = length === undefined ? reader.len : reader.pos + length;
2104
- const message = createBaseListTraceRuleMatchDeliveriesRequest();
2105
- while (reader.pos < end) {
2106
- const tag = reader.uint32();
2107
- switch (tag >>> 3) {
2108
- case 1: {
2109
- if (tag !== 10) {
2110
- break;
2111
- }
2112
-
2113
- message.projectId = reader.string();
2114
- continue;
2115
- }
2116
- case 2: {
2117
- if (tag !== 18) {
2118
- break;
2119
- }
2120
-
2121
- message.matchEventId = reader.string();
2122
- continue;
2123
- }
2124
- case 3: {
2125
- if (tag !== 26) {
2126
- break;
2127
- }
2128
-
2129
- message.organizationId = reader.string();
2130
- continue;
2131
- }
2261
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2262
+ if (previousRecursionDepth >= 100) {
2263
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2264
+ }
2265
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2266
+ try {
2267
+ const end = length === undefined ? reader.len : reader.pos + length;
2268
+ const message = createBaseListTraceRuleMatchDeliveriesRequest();
2269
+ while (reader.pos < end) {
2270
+ const tag = reader.uint32();
2271
+ switch (tag >>> 3) {
2272
+ case 1: {
2273
+ if (tag !== 10) {
2274
+ break;
2275
+ }
2276
+
2277
+ message.projectId = reader.string();
2278
+ continue;
2279
+ }
2280
+ case 2: {
2281
+ if (tag !== 18) {
2282
+ break;
2283
+ }
2284
+
2285
+ message.matchEventId = reader.string();
2286
+ continue;
2287
+ }
2288
+ case 3: {
2289
+ if (tag !== 26) {
2290
+ break;
2291
+ }
2292
+
2293
+ message.organizationId = reader.string();
2294
+ continue;
2295
+ }
2296
+ }
2297
+ if ((tag & 7) === 4 || tag === 0) {
2298
+ break;
2299
+ }
2300
+ reader.skip(tag & 7);
2132
2301
  }
2133
- if ((tag & 7) === 4 || tag === 0) {
2134
- break;
2135
- }
2136
- reader.skip(tag & 7);
2302
+ return message;
2303
+ } finally {
2304
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2137
2305
  }
2138
- return message;
2139
2306
  },
2140
2307
 
2141
2308
  fromJSON(object: any): ListTraceRuleMatchDeliveriesRequest {
@@ -2205,34 +2372,43 @@ export const ListTraceRuleMatchDeliveriesResponse: MessageFns<ListTraceRuleMatch
2205
2372
 
2206
2373
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRuleMatchDeliveriesResponse {
2207
2374
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2208
- const end = length === undefined ? reader.len : reader.pos + length;
2209
- const message = createBaseListTraceRuleMatchDeliveriesResponse();
2210
- while (reader.pos < end) {
2211
- const tag = reader.uint32();
2212
- switch (tag >>> 3) {
2213
- case 1: {
2214
- if (tag !== 10) {
2215
- break;
2216
- }
2217
-
2218
- message.status = ResponseStatus.decode(reader, reader.uint32());
2219
- continue;
2220
- }
2221
- case 2: {
2222
- if (tag !== 18) {
2223
- break;
2224
- }
2225
-
2226
- message.deliveries.push(IntegrationDelivery.decode(reader, reader.uint32()));
2227
- continue;
2228
- }
2375
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2376
+ if (previousRecursionDepth >= 100) {
2377
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2378
+ }
2379
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2380
+ try {
2381
+ const end = length === undefined ? reader.len : reader.pos + length;
2382
+ const message = createBaseListTraceRuleMatchDeliveriesResponse();
2383
+ while (reader.pos < end) {
2384
+ const tag = reader.uint32();
2385
+ switch (tag >>> 3) {
2386
+ case 1: {
2387
+ if (tag !== 10) {
2388
+ break;
2389
+ }
2390
+
2391
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2392
+ continue;
2393
+ }
2394
+ case 2: {
2395
+ if (tag !== 18) {
2396
+ break;
2397
+ }
2398
+
2399
+ message.deliveries.push(IntegrationDelivery.decode(reader, reader.uint32()));
2400
+ continue;
2401
+ }
2402
+ }
2403
+ if ((tag & 7) === 4 || tag === 0) {
2404
+ break;
2405
+ }
2406
+ reader.skip(tag & 7);
2229
2407
  }
2230
- if ((tag & 7) === 4 || tag === 0) {
2231
- break;
2232
- }
2233
- reader.skip(tag & 7);
2408
+ return message;
2409
+ } finally {
2410
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2234
2411
  }
2235
- return message;
2236
2412
  },
2237
2413
 
2238
2414
  fromJSON(object: any): ListTraceRuleMatchDeliveriesResponse {
@@ -2344,138 +2520,147 @@ export const IntegrationDelivery: MessageFns<IntegrationDelivery> = {
2344
2520
 
2345
2521
  decode(input: BinaryReader | Uint8Array, length?: number): IntegrationDelivery {
2346
2522
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2347
- const end = length === undefined ? reader.len : reader.pos + length;
2348
- const message = createBaseIntegrationDelivery();
2349
- while (reader.pos < end) {
2350
- const tag = reader.uint32();
2351
- switch (tag >>> 3) {
2352
- case 1: {
2353
- if (tag !== 10) {
2354
- break;
2355
- }
2356
-
2357
- message.deliveryId = reader.string();
2358
- continue;
2359
- }
2360
- case 2: {
2361
- if (tag !== 18) {
2362
- break;
2363
- }
2364
-
2365
- message.integrationId = reader.string();
2366
- continue;
2367
- }
2368
- case 3: {
2369
- if (tag !== 26) {
2370
- break;
2371
- }
2372
-
2373
- message.integrationName = reader.string();
2374
- continue;
2375
- }
2376
- case 4: {
2377
- if (tag !== 32) {
2378
- break;
2379
- }
2380
-
2381
- message.integrationType = reader.int32() as any;
2382
- continue;
2383
- }
2384
- case 5: {
2385
- if (tag !== 40) {
2386
- break;
2387
- }
2388
-
2389
- message.status = reader.int32() as any;
2390
- continue;
2391
- }
2392
- case 6: {
2393
- if (tag !== 48) {
2394
- break;
2523
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2524
+ if (previousRecursionDepth >= 100) {
2525
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2526
+ }
2527
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2528
+ try {
2529
+ const end = length === undefined ? reader.len : reader.pos + length;
2530
+ const message = createBaseIntegrationDelivery();
2531
+ while (reader.pos < end) {
2532
+ const tag = reader.uint32();
2533
+ switch (tag >>> 3) {
2534
+ case 1: {
2535
+ if (tag !== 10) {
2536
+ break;
2537
+ }
2538
+
2539
+ message.deliveryId = reader.string();
2540
+ continue;
2541
+ }
2542
+ case 2: {
2543
+ if (tag !== 18) {
2544
+ break;
2545
+ }
2546
+
2547
+ message.integrationId = reader.string();
2548
+ continue;
2549
+ }
2550
+ case 3: {
2551
+ if (tag !== 26) {
2552
+ break;
2553
+ }
2554
+
2555
+ message.integrationName = reader.string();
2556
+ continue;
2395
2557
  }
2558
+ case 4: {
2559
+ if (tag !== 32) {
2560
+ break;
2561
+ }
2562
+
2563
+ message.integrationType = reader.int32() as any;
2564
+ continue;
2565
+ }
2566
+ case 5: {
2567
+ if (tag !== 40) {
2568
+ break;
2569
+ }
2570
+
2571
+ message.status = reader.int32() as any;
2572
+ continue;
2573
+ }
2574
+ case 6: {
2575
+ if (tag !== 48) {
2576
+ break;
2577
+ }
2578
+
2579
+ message.attempts = reader.int32();
2580
+ continue;
2581
+ }
2582
+ case 7: {
2583
+ if (tag !== 56) {
2584
+ break;
2585
+ }
2586
+
2587
+ message.maxAttempts = reader.int32();
2588
+ continue;
2589
+ }
2590
+ case 8: {
2591
+ if (tag !== 66) {
2592
+ break;
2593
+ }
2594
+
2595
+ message.error = reader.string();
2596
+ continue;
2597
+ }
2598
+ case 9: {
2599
+ if (tag !== 72) {
2600
+ break;
2601
+ }
2602
+
2603
+ message.latencyMs = longToNumber(reader.int64());
2604
+ continue;
2605
+ }
2606
+ case 10: {
2607
+ if (tag !== 82) {
2608
+ break;
2609
+ }
2610
+
2611
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2612
+ continue;
2613
+ }
2614
+ case 11: {
2615
+ if (tag !== 90) {
2616
+ break;
2617
+ }
2618
+
2619
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2620
+ continue;
2621
+ }
2622
+ case 20: {
2623
+ if (tag !== 162) {
2624
+ break;
2625
+ }
2396
2626
 
2397
- message.attempts = reader.int32();
2398
- continue;
2399
- }
2400
- case 7: {
2401
- if (tag !== 56) {
2402
- break;
2627
+ message.webhook = WebhookDestination.decode(reader, reader.uint32());
2628
+ continue;
2403
2629
  }
2630
+ case 21: {
2631
+ if (tag !== 170) {
2632
+ break;
2633
+ }
2404
2634
 
2405
- message.maxAttempts = reader.int32();
2406
- continue;
2407
- }
2408
- case 8: {
2409
- if (tag !== 66) {
2410
- break;
2635
+ message.email = EmailDestination.decode(reader, reader.uint32());
2636
+ continue;
2411
2637
  }
2638
+ case 22: {
2639
+ if (tag !== 178) {
2640
+ break;
2641
+ }
2412
2642
 
2413
- message.error = reader.string();
2414
- continue;
2415
- }
2416
- case 9: {
2417
- if (tag !== 72) {
2418
- break;
2643
+ message.slack = SlackDestination.decode(reader, reader.uint32());
2644
+ continue;
2419
2645
  }
2646
+ case 23: {
2647
+ if (tag !== 186) {
2648
+ break;
2649
+ }
2420
2650
 
2421
- message.latencyMs = longToNumber(reader.int64());
2422
- continue;
2423
- }
2424
- case 10: {
2425
- if (tag !== 82) {
2426
- break;
2651
+ message.pagerduty = PagerDutyDestination.decode(reader, reader.uint32());
2652
+ continue;
2427
2653
  }
2428
-
2429
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2430
- continue;
2431
2654
  }
2432
- case 11: {
2433
- if (tag !== 90) {
2434
- break;
2435
- }
2436
-
2437
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2438
- continue;
2655
+ if ((tag & 7) === 4 || tag === 0) {
2656
+ break;
2439
2657
  }
2440
- case 20: {
2441
- if (tag !== 162) {
2442
- break;
2443
- }
2444
-
2445
- message.webhook = WebhookDestination.decode(reader, reader.uint32());
2446
- continue;
2447
- }
2448
- case 21: {
2449
- if (tag !== 170) {
2450
- break;
2451
- }
2452
-
2453
- message.email = EmailDestination.decode(reader, reader.uint32());
2454
- continue;
2455
- }
2456
- case 22: {
2457
- if (tag !== 178) {
2458
- break;
2459
- }
2460
-
2461
- message.slack = SlackDestination.decode(reader, reader.uint32());
2462
- continue;
2463
- }
2464
- case 23: {
2465
- if (tag !== 186) {
2466
- break;
2467
- }
2468
-
2469
- message.pagerduty = PagerDutyDestination.decode(reader, reader.uint32());
2470
- continue;
2471
- }
2472
- }
2473
- if ((tag & 7) === 4 || tag === 0) {
2474
- break;
2658
+ reader.skip(tag & 7);
2475
2659
  }
2476
- reader.skip(tag & 7);
2660
+ return message;
2661
+ } finally {
2662
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2477
2663
  }
2478
- return message;
2479
2664
  },
2480
2665
 
2481
2666
  fromJSON(object: any): IntegrationDelivery {
@@ -2629,34 +2814,43 @@ export const WebhookDestination: MessageFns<WebhookDestination> = {
2629
2814
 
2630
2815
  decode(input: BinaryReader | Uint8Array, length?: number): WebhookDestination {
2631
2816
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2632
- const end = length === undefined ? reader.len : reader.pos + length;
2633
- const message = createBaseWebhookDestination();
2634
- while (reader.pos < end) {
2635
- const tag = reader.uint32();
2636
- switch (tag >>> 3) {
2637
- case 1: {
2638
- if (tag !== 10) {
2639
- break;
2640
- }
2641
-
2642
- message.url = reader.string();
2643
- continue;
2644
- }
2645
- case 2: {
2646
- if (tag !== 16) {
2647
- break;
2648
- }
2649
-
2650
- message.statusCode = reader.int32();
2651
- continue;
2652
- }
2653
- }
2654
- if ((tag & 7) === 4 || tag === 0) {
2655
- break;
2817
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2818
+ if (previousRecursionDepth >= 100) {
2819
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2820
+ }
2821
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2822
+ try {
2823
+ const end = length === undefined ? reader.len : reader.pos + length;
2824
+ const message = createBaseWebhookDestination();
2825
+ while (reader.pos < end) {
2826
+ const tag = reader.uint32();
2827
+ switch (tag >>> 3) {
2828
+ case 1: {
2829
+ if (tag !== 10) {
2830
+ break;
2831
+ }
2832
+
2833
+ message.url = reader.string();
2834
+ continue;
2835
+ }
2836
+ case 2: {
2837
+ if (tag !== 16) {
2838
+ break;
2839
+ }
2840
+
2841
+ message.statusCode = reader.int32();
2842
+ continue;
2843
+ }
2844
+ }
2845
+ if ((tag & 7) === 4 || tag === 0) {
2846
+ break;
2847
+ }
2848
+ reader.skip(tag & 7);
2656
2849
  }
2657
- reader.skip(tag & 7);
2850
+ return message;
2851
+ } finally {
2852
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2658
2853
  }
2659
- return message;
2660
2854
  },
2661
2855
 
2662
2856
  fromJSON(object: any): WebhookDestination {
@@ -2706,26 +2900,35 @@ export const EmailDestination: MessageFns<EmailDestination> = {
2706
2900
 
2707
2901
  decode(input: BinaryReader | Uint8Array, length?: number): EmailDestination {
2708
2902
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2709
- const end = length === undefined ? reader.len : reader.pos + length;
2710
- const message = createBaseEmailDestination();
2711
- while (reader.pos < end) {
2712
- const tag = reader.uint32();
2713
- switch (tag >>> 3) {
2714
- case 1: {
2715
- if (tag !== 10) {
2716
- break;
2717
- }
2718
-
2719
- message.recipients.push(reader.string());
2720
- continue;
2721
- }
2903
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2904
+ if (previousRecursionDepth >= 100) {
2905
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2906
+ }
2907
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2908
+ try {
2909
+ const end = length === undefined ? reader.len : reader.pos + length;
2910
+ const message = createBaseEmailDestination();
2911
+ while (reader.pos < end) {
2912
+ const tag = reader.uint32();
2913
+ switch (tag >>> 3) {
2914
+ case 1: {
2915
+ if (tag !== 10) {
2916
+ break;
2917
+ }
2918
+
2919
+ message.recipients.push(reader.string());
2920
+ continue;
2921
+ }
2922
+ }
2923
+ if ((tag & 7) === 4 || tag === 0) {
2924
+ break;
2925
+ }
2926
+ reader.skip(tag & 7);
2722
2927
  }
2723
- if ((tag & 7) === 4 || tag === 0) {
2724
- break;
2725
- }
2726
- reader.skip(tag & 7);
2928
+ return message;
2929
+ } finally {
2930
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2727
2931
  }
2728
- return message;
2729
2932
  },
2730
2933
 
2731
2934
  fromJSON(object: any): EmailDestination {
@@ -2771,34 +2974,43 @@ export const SlackDestination: MessageFns<SlackDestination> = {
2771
2974
 
2772
2975
  decode(input: BinaryReader | Uint8Array, length?: number): SlackDestination {
2773
2976
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2774
- const end = length === undefined ? reader.len : reader.pos + length;
2775
- const message = createBaseSlackDestination();
2776
- while (reader.pos < end) {
2777
- const tag = reader.uint32();
2778
- switch (tag >>> 3) {
2779
- case 1: {
2780
- if (tag !== 10) {
2781
- break;
2782
- }
2783
-
2784
- message.channelId = reader.string();
2785
- continue;
2786
- }
2787
- case 2: {
2788
- if (tag !== 18) {
2789
- break;
2790
- }
2791
-
2792
- message.channelName = reader.string();
2793
- continue;
2794
- }
2977
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2978
+ if (previousRecursionDepth >= 100) {
2979
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2980
+ }
2981
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2982
+ try {
2983
+ const end = length === undefined ? reader.len : reader.pos + length;
2984
+ const message = createBaseSlackDestination();
2985
+ while (reader.pos < end) {
2986
+ const tag = reader.uint32();
2987
+ switch (tag >>> 3) {
2988
+ case 1: {
2989
+ if (tag !== 10) {
2990
+ break;
2991
+ }
2992
+
2993
+ message.channelId = reader.string();
2994
+ continue;
2995
+ }
2996
+ case 2: {
2997
+ if (tag !== 18) {
2998
+ break;
2999
+ }
3000
+
3001
+ message.channelName = reader.string();
3002
+ continue;
3003
+ }
3004
+ }
3005
+ if ((tag & 7) === 4 || tag === 0) {
3006
+ break;
3007
+ }
3008
+ reader.skip(tag & 7);
2795
3009
  }
2796
- if ((tag & 7) === 4 || tag === 0) {
2797
- break;
2798
- }
2799
- reader.skip(tag & 7);
3010
+ return message;
3011
+ } finally {
3012
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2800
3013
  }
2801
- return message;
2802
3014
  },
2803
3015
 
2804
3016
  fromJSON(object: any): SlackDestination {
@@ -2855,34 +3067,43 @@ export const PagerDutyDestination: MessageFns<PagerDutyDestination> = {
2855
3067
 
2856
3068
  decode(input: BinaryReader | Uint8Array, length?: number): PagerDutyDestination {
2857
3069
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2858
- const end = length === undefined ? reader.len : reader.pos + length;
2859
- const message = createBasePagerDutyDestination();
2860
- while (reader.pos < end) {
2861
- const tag = reader.uint32();
2862
- switch (tag >>> 3) {
2863
- case 1: {
2864
- if (tag !== 10) {
2865
- break;
2866
- }
2867
-
2868
- message.serviceId = reader.string();
2869
- continue;
2870
- }
2871
- case 2: {
2872
- if (tag !== 18) {
2873
- break;
2874
- }
2875
-
2876
- message.serviceName = reader.string();
2877
- continue;
2878
- }
3070
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3071
+ if (previousRecursionDepth >= 100) {
3072
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3073
+ }
3074
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3075
+ try {
3076
+ const end = length === undefined ? reader.len : reader.pos + length;
3077
+ const message = createBasePagerDutyDestination();
3078
+ while (reader.pos < end) {
3079
+ const tag = reader.uint32();
3080
+ switch (tag >>> 3) {
3081
+ case 1: {
3082
+ if (tag !== 10) {
3083
+ break;
3084
+ }
3085
+
3086
+ message.serviceId = reader.string();
3087
+ continue;
3088
+ }
3089
+ case 2: {
3090
+ if (tag !== 18) {
3091
+ break;
3092
+ }
3093
+
3094
+ message.serviceName = reader.string();
3095
+ continue;
3096
+ }
3097
+ }
3098
+ if ((tag & 7) === 4 || tag === 0) {
3099
+ break;
3100
+ }
3101
+ reader.skip(tag & 7);
2879
3102
  }
2880
- if ((tag & 7) === 4 || tag === 0) {
2881
- break;
2882
- }
2883
- reader.skip(tag & 7);
3103
+ return message;
3104
+ } finally {
3105
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2884
3106
  }
2885
- return message;
2886
3107
  },
2887
3108
 
2888
3109
  fromJSON(object: any): PagerDutyDestination {