@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/rule_gateway.proto
6
6
 
@@ -424,90 +424,99 @@ export const TraceRule: MessageFns<TraceRule> = {
424
424
 
425
425
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRule {
426
426
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
427
- const end = length === undefined ? reader.len : reader.pos + length;
428
- const message = createBaseTraceRule();
429
- while (reader.pos < end) {
430
- const tag = reader.uint32();
431
- switch (tag >>> 3) {
432
- case 1: {
433
- if (tag !== 10) {
434
- break;
435
- }
436
-
437
- message.id = reader.string();
438
- continue;
439
- }
440
- case 2: {
441
- if (tag !== 18) {
442
- break;
443
- }
444
-
445
- message.projectId = reader.string();
446
- continue;
447
- }
448
- case 3: {
449
- if (tag !== 26) {
450
- break;
451
- }
452
-
453
- message.name = reader.string();
454
- continue;
455
- }
456
- case 4: {
457
- if (tag !== 34) {
458
- break;
459
- }
460
-
461
- message.description = reader.string();
462
- continue;
463
- }
464
- case 5: {
465
- if (tag !== 40) {
466
- break;
467
- }
468
-
469
- message.enabled = reader.int32() as any;
470
- continue;
471
- }
472
- case 6: {
473
- if (tag !== 50) {
474
- break;
475
- }
476
-
477
- message.integrationIds.push(reader.string());
478
- continue;
479
- }
480
- case 7: {
481
- if (tag !== 58) {
482
- break;
483
- }
484
-
485
- message.celExpression = reader.string();
486
- continue;
487
- }
488
- case 8: {
489
- if (tag !== 66) {
490
- break;
491
- }
492
-
493
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
494
- continue;
495
- }
496
- case 9: {
497
- if (tag !== 74) {
498
- break;
499
- }
500
-
501
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
502
- continue;
503
- }
427
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
428
+ if (previousRecursionDepth >= 100) {
429
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
430
+ }
431
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
432
+ try {
433
+ const end = length === undefined ? reader.len : reader.pos + length;
434
+ const message = createBaseTraceRule();
435
+ while (reader.pos < end) {
436
+ const tag = reader.uint32();
437
+ switch (tag >>> 3) {
438
+ case 1: {
439
+ if (tag !== 10) {
440
+ break;
441
+ }
442
+
443
+ message.id = reader.string();
444
+ continue;
445
+ }
446
+ case 2: {
447
+ if (tag !== 18) {
448
+ break;
449
+ }
450
+
451
+ message.projectId = reader.string();
452
+ continue;
453
+ }
454
+ case 3: {
455
+ if (tag !== 26) {
456
+ break;
457
+ }
458
+
459
+ message.name = reader.string();
460
+ continue;
461
+ }
462
+ case 4: {
463
+ if (tag !== 34) {
464
+ break;
465
+ }
466
+
467
+ message.description = reader.string();
468
+ continue;
469
+ }
470
+ case 5: {
471
+ if (tag !== 40) {
472
+ break;
473
+ }
474
+
475
+ message.enabled = reader.int32() as any;
476
+ continue;
477
+ }
478
+ case 6: {
479
+ if (tag !== 50) {
480
+ break;
481
+ }
482
+
483
+ message.integrationIds.push(reader.string());
484
+ continue;
485
+ }
486
+ case 7: {
487
+ if (tag !== 58) {
488
+ break;
489
+ }
490
+
491
+ message.celExpression = reader.string();
492
+ continue;
493
+ }
494
+ case 8: {
495
+ if (tag !== 66) {
496
+ break;
497
+ }
498
+
499
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
500
+ continue;
501
+ }
502
+ case 9: {
503
+ if (tag !== 74) {
504
+ break;
505
+ }
506
+
507
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
508
+ continue;
509
+ }
510
+ }
511
+ if ((tag & 7) === 4 || tag === 0) {
512
+ break;
513
+ }
514
+ reader.skip(tag & 7);
504
515
  }
505
- if ((tag & 7) === 4 || tag === 0) {
506
- break;
507
- }
508
- reader.skip(tag & 7);
516
+ return message;
517
+ } finally {
518
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
509
519
  }
510
- return message;
511
520
  },
512
521
 
513
522
  fromJSON(object: any): TraceRule {
@@ -623,66 +632,75 @@ export const CreateTraceRuleRequest: MessageFns<CreateTraceRuleRequest> = {
623
632
 
624
633
  decode(input: BinaryReader | Uint8Array, length?: number): CreateTraceRuleRequest {
625
634
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
626
- const end = length === undefined ? reader.len : reader.pos + length;
627
- const message = createBaseCreateTraceRuleRequest();
628
- while (reader.pos < end) {
629
- const tag = reader.uint32();
630
- switch (tag >>> 3) {
631
- case 1: {
632
- if (tag !== 10) {
633
- break;
634
- }
635
-
636
- message.projectId = reader.string();
637
- continue;
638
- }
639
- case 2: {
640
- if (tag !== 18) {
641
- break;
642
- }
643
-
644
- message.name = reader.string();
645
- continue;
646
- }
647
- case 3: {
648
- if (tag !== 26) {
649
- break;
650
- }
651
-
652
- message.description = reader.string();
653
- continue;
654
- }
655
- case 4: {
656
- if (tag !== 34) {
657
- break;
658
- }
659
-
660
- message.integrationIds.push(reader.string());
661
- continue;
662
- }
663
- case 5: {
664
- if (tag !== 42) {
665
- break;
666
- }
667
-
668
- message.celExpression = reader.string();
669
- continue;
670
- }
671
- case 6: {
672
- if (tag !== 50) {
673
- break;
674
- }
675
-
676
- message.organizationId = reader.string();
677
- continue;
678
- }
679
- }
680
- if ((tag & 7) === 4 || tag === 0) {
681
- break;
635
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
636
+ if (previousRecursionDepth >= 100) {
637
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
638
+ }
639
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
640
+ try {
641
+ const end = length === undefined ? reader.len : reader.pos + length;
642
+ const message = createBaseCreateTraceRuleRequest();
643
+ while (reader.pos < end) {
644
+ const tag = reader.uint32();
645
+ switch (tag >>> 3) {
646
+ case 1: {
647
+ if (tag !== 10) {
648
+ break;
649
+ }
650
+
651
+ message.projectId = reader.string();
652
+ continue;
653
+ }
654
+ case 2: {
655
+ if (tag !== 18) {
656
+ break;
657
+ }
658
+
659
+ message.name = reader.string();
660
+ continue;
661
+ }
662
+ case 3: {
663
+ if (tag !== 26) {
664
+ break;
665
+ }
666
+
667
+ message.description = reader.string();
668
+ continue;
669
+ }
670
+ case 4: {
671
+ if (tag !== 34) {
672
+ break;
673
+ }
674
+
675
+ message.integrationIds.push(reader.string());
676
+ continue;
677
+ }
678
+ case 5: {
679
+ if (tag !== 42) {
680
+ break;
681
+ }
682
+
683
+ message.celExpression = reader.string();
684
+ continue;
685
+ }
686
+ case 6: {
687
+ if (tag !== 50) {
688
+ break;
689
+ }
690
+
691
+ message.organizationId = reader.string();
692
+ continue;
693
+ }
694
+ }
695
+ if ((tag & 7) === 4 || tag === 0) {
696
+ break;
697
+ }
698
+ reader.skip(tag & 7);
682
699
  }
683
- reader.skip(tag & 7);
700
+ return message;
701
+ } finally {
702
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
684
703
  }
685
- return message;
686
704
  },
687
705
 
688
706
  fromJSON(object: any): CreateTraceRuleRequest {
@@ -767,34 +785,43 @@ export const CreateTraceRuleResponse: MessageFns<CreateTraceRuleResponse> = {
767
785
 
768
786
  decode(input: BinaryReader | Uint8Array, length?: number): CreateTraceRuleResponse {
769
787
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
770
- const end = length === undefined ? reader.len : reader.pos + length;
771
- const message = createBaseCreateTraceRuleResponse();
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.status = ResponseStatus.decode(reader, reader.uint32());
781
- continue;
782
- }
783
- case 2: {
784
- if (tag !== 18) {
785
- break;
786
- }
787
-
788
- message.rule = TraceRule.decode(reader, reader.uint32());
789
- continue;
790
- }
788
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
789
+ if (previousRecursionDepth >= 100) {
790
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
791
+ }
792
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
793
+ try {
794
+ const end = length === undefined ? reader.len : reader.pos + length;
795
+ const message = createBaseCreateTraceRuleResponse();
796
+ while (reader.pos < end) {
797
+ const tag = reader.uint32();
798
+ switch (tag >>> 3) {
799
+ case 1: {
800
+ if (tag !== 10) {
801
+ break;
802
+ }
803
+
804
+ message.status = ResponseStatus.decode(reader, reader.uint32());
805
+ continue;
806
+ }
807
+ case 2: {
808
+ if (tag !== 18) {
809
+ break;
810
+ }
811
+
812
+ message.rule = TraceRule.decode(reader, reader.uint32());
813
+ continue;
814
+ }
815
+ }
816
+ if ((tag & 7) === 4 || tag === 0) {
817
+ break;
818
+ }
819
+ reader.skip(tag & 7);
791
820
  }
792
- if ((tag & 7) === 4 || tag === 0) {
793
- break;
794
- }
795
- reader.skip(tag & 7);
821
+ return message;
822
+ } finally {
823
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
796
824
  }
797
- return message;
798
825
  },
799
826
 
800
827
  fromJSON(object: any): CreateTraceRuleResponse {
@@ -848,42 +875,51 @@ export const GetTraceRuleRequest: MessageFns<GetTraceRuleRequest> = {
848
875
 
849
876
  decode(input: BinaryReader | Uint8Array, length?: number): GetTraceRuleRequest {
850
877
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
851
- const end = length === undefined ? reader.len : reader.pos + length;
852
- const message = createBaseGetTraceRuleRequest();
853
- while (reader.pos < end) {
854
- const tag = reader.uint32();
855
- switch (tag >>> 3) {
856
- case 1: {
857
- if (tag !== 10) {
858
- break;
859
- }
860
-
861
- message.projectId = reader.string();
862
- continue;
863
- }
864
- case 2: {
865
- if (tag !== 18) {
866
- break;
867
- }
868
-
869
- message.ruleId = reader.string();
870
- continue;
871
- }
872
- case 3: {
873
- if (tag !== 26) {
874
- break;
875
- }
876
-
877
- message.organizationId = reader.string();
878
- continue;
879
- }
878
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
879
+ if (previousRecursionDepth >= 100) {
880
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
881
+ }
882
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
883
+ try {
884
+ const end = length === undefined ? reader.len : reader.pos + length;
885
+ const message = createBaseGetTraceRuleRequest();
886
+ while (reader.pos < end) {
887
+ const tag = reader.uint32();
888
+ switch (tag >>> 3) {
889
+ case 1: {
890
+ if (tag !== 10) {
891
+ break;
892
+ }
893
+
894
+ message.projectId = reader.string();
895
+ continue;
896
+ }
897
+ case 2: {
898
+ if (tag !== 18) {
899
+ break;
900
+ }
901
+
902
+ message.ruleId = reader.string();
903
+ continue;
904
+ }
905
+ case 3: {
906
+ if (tag !== 26) {
907
+ break;
908
+ }
909
+
910
+ message.organizationId = reader.string();
911
+ continue;
912
+ }
913
+ }
914
+ if ((tag & 7) === 4 || tag === 0) {
915
+ break;
916
+ }
917
+ reader.skip(tag & 7);
880
918
  }
881
- if ((tag & 7) === 4 || tag === 0) {
882
- break;
883
- }
884
- reader.skip(tag & 7);
919
+ return message;
920
+ } finally {
921
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
885
922
  }
886
- return message;
887
923
  },
888
924
 
889
925
  fromJSON(object: any): GetTraceRuleRequest {
@@ -949,34 +985,43 @@ export const GetTraceRuleResponse: MessageFns<GetTraceRuleResponse> = {
949
985
 
950
986
  decode(input: BinaryReader | Uint8Array, length?: number): GetTraceRuleResponse {
951
987
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
952
- const end = length === undefined ? reader.len : reader.pos + length;
953
- const message = createBaseGetTraceRuleResponse();
954
- while (reader.pos < end) {
955
- const tag = reader.uint32();
956
- switch (tag >>> 3) {
957
- case 1: {
958
- if (tag !== 10) {
959
- break;
960
- }
961
-
962
- message.status = ResponseStatus.decode(reader, reader.uint32());
963
- continue;
964
- }
965
- case 2: {
966
- if (tag !== 18) {
967
- break;
968
- }
969
-
970
- message.rule = TraceRule.decode(reader, reader.uint32());
971
- continue;
972
- }
973
- }
974
- if ((tag & 7) === 4 || tag === 0) {
975
- break;
988
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
989
+ if (previousRecursionDepth >= 100) {
990
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
991
+ }
992
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
993
+ try {
994
+ const end = length === undefined ? reader.len : reader.pos + length;
995
+ const message = createBaseGetTraceRuleResponse();
996
+ while (reader.pos < end) {
997
+ const tag = reader.uint32();
998
+ switch (tag >>> 3) {
999
+ case 1: {
1000
+ if (tag !== 10) {
1001
+ break;
1002
+ }
1003
+
1004
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1005
+ continue;
1006
+ }
1007
+ case 2: {
1008
+ if (tag !== 18) {
1009
+ break;
1010
+ }
1011
+
1012
+ message.rule = TraceRule.decode(reader, reader.uint32());
1013
+ continue;
1014
+ }
1015
+ }
1016
+ if ((tag & 7) === 4 || tag === 0) {
1017
+ break;
1018
+ }
1019
+ reader.skip(tag & 7);
976
1020
  }
977
- reader.skip(tag & 7);
1021
+ return message;
1022
+ } finally {
1023
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
978
1024
  }
979
- return message;
980
1025
  },
981
1026
 
982
1027
  fromJSON(object: any): GetTraceRuleResponse {
@@ -1030,42 +1075,51 @@ export const ListTraceRulesRequest: MessageFns<ListTraceRulesRequest> = {
1030
1075
 
1031
1076
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRulesRequest {
1032
1077
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1033
- const end = length === undefined ? reader.len : reader.pos + length;
1034
- const message = createBaseListTraceRulesRequest();
1035
- while (reader.pos < end) {
1036
- const tag = reader.uint32();
1037
- switch (tag >>> 3) {
1038
- case 1: {
1039
- if (tag !== 10) {
1040
- break;
1041
- }
1042
-
1043
- message.organizationId = reader.string();
1044
- continue;
1045
- }
1046
- case 2: {
1047
- if (tag !== 18) {
1048
- break;
1049
- }
1050
-
1051
- message.organizationIdFilter = reader.string();
1052
- continue;
1053
- }
1054
- case 3: {
1055
- if (tag !== 26) {
1056
- break;
1057
- }
1058
-
1059
- message.projectIdFilter = reader.string();
1060
- continue;
1061
- }
1062
- }
1063
- if ((tag & 7) === 4 || tag === 0) {
1064
- 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 = createBaseListTraceRulesRequest();
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.organizationIdFilter = reader.string();
1103
+ continue;
1104
+ }
1105
+ case 3: {
1106
+ if (tag !== 26) {
1107
+ break;
1108
+ }
1109
+
1110
+ message.projectIdFilter = reader.string();
1111
+ continue;
1112
+ }
1113
+ }
1114
+ if ((tag & 7) === 4 || tag === 0) {
1115
+ break;
1116
+ }
1117
+ reader.skip(tag & 7);
1065
1118
  }
1066
- reader.skip(tag & 7);
1119
+ return message;
1120
+ } finally {
1121
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1067
1122
  }
1068
- return message;
1069
1123
  },
1070
1124
 
1071
1125
  fromJSON(object: any): ListTraceRulesRequest {
@@ -1131,34 +1185,43 @@ export const ListTraceRulesResponse: MessageFns<ListTraceRulesResponse> = {
1131
1185
 
1132
1186
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRulesResponse {
1133
1187
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1134
- const end = length === undefined ? reader.len : reader.pos + length;
1135
- const message = createBaseListTraceRulesResponse();
1136
- while (reader.pos < end) {
1137
- const tag = reader.uint32();
1138
- switch (tag >>> 3) {
1139
- case 1: {
1140
- if (tag !== 10) {
1141
- break;
1142
- }
1143
-
1144
- message.status = ResponseStatus.decode(reader, reader.uint32());
1145
- continue;
1146
- }
1147
- case 2: {
1148
- if (tag !== 18) {
1149
- break;
1150
- }
1151
-
1152
- message.rules.push(TraceRule.decode(reader, reader.uint32()));
1153
- continue;
1154
- }
1188
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1189
+ if (previousRecursionDepth >= 100) {
1190
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1191
+ }
1192
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1193
+ try {
1194
+ const end = length === undefined ? reader.len : reader.pos + length;
1195
+ const message = createBaseListTraceRulesResponse();
1196
+ while (reader.pos < end) {
1197
+ const tag = reader.uint32();
1198
+ switch (tag >>> 3) {
1199
+ case 1: {
1200
+ if (tag !== 10) {
1201
+ break;
1202
+ }
1203
+
1204
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1205
+ continue;
1206
+ }
1207
+ case 2: {
1208
+ if (tag !== 18) {
1209
+ break;
1210
+ }
1211
+
1212
+ message.rules.push(TraceRule.decode(reader, reader.uint32()));
1213
+ continue;
1214
+ }
1215
+ }
1216
+ if ((tag & 7) === 4 || tag === 0) {
1217
+ break;
1218
+ }
1219
+ reader.skip(tag & 7);
1155
1220
  }
1156
- if ((tag & 7) === 4 || tag === 0) {
1157
- break;
1158
- }
1159
- reader.skip(tag & 7);
1221
+ return message;
1222
+ } finally {
1223
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1160
1224
  }
1161
- return message;
1162
1225
  },
1163
1226
 
1164
1227
  fromJSON(object: any): ListTraceRulesResponse {
@@ -1215,50 +1278,59 @@ export const UpdateTraceRuleRequest: MessageFns<UpdateTraceRuleRequest> = {
1215
1278
 
1216
1279
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateTraceRuleRequest {
1217
1280
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1218
- const end = length === undefined ? reader.len : reader.pos + length;
1219
- const message = createBaseUpdateTraceRuleRequest();
1220
- while (reader.pos < end) {
1221
- const tag = reader.uint32();
1222
- switch (tag >>> 3) {
1223
- case 1: {
1224
- if (tag !== 10) {
1225
- break;
1226
- }
1227
-
1228
- message.projectId = reader.string();
1229
- continue;
1230
- }
1231
- case 2: {
1232
- if (tag !== 18) {
1233
- break;
1234
- }
1235
-
1236
- message.ruleId = reader.string();
1237
- continue;
1238
- }
1239
- case 3: {
1240
- if (tag !== 26) {
1241
- break;
1242
- }
1243
-
1244
- message.updates = UpdateTraceRuleRequest_TraceRuleUpdates.decode(reader, reader.uint32());
1245
- continue;
1246
- }
1247
- case 4: {
1248
- if (tag !== 34) {
1249
- break;
1250
- }
1251
-
1252
- message.organizationId = reader.string();
1253
- continue;
1254
- }
1255
- }
1256
- if ((tag & 7) === 4 || tag === 0) {
1257
- break;
1281
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1282
+ if (previousRecursionDepth >= 100) {
1283
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1284
+ }
1285
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1286
+ try {
1287
+ const end = length === undefined ? reader.len : reader.pos + length;
1288
+ const message = createBaseUpdateTraceRuleRequest();
1289
+ while (reader.pos < end) {
1290
+ const tag = reader.uint32();
1291
+ switch (tag >>> 3) {
1292
+ case 1: {
1293
+ if (tag !== 10) {
1294
+ break;
1295
+ }
1296
+
1297
+ message.projectId = reader.string();
1298
+ continue;
1299
+ }
1300
+ case 2: {
1301
+ if (tag !== 18) {
1302
+ break;
1303
+ }
1304
+
1305
+ message.ruleId = reader.string();
1306
+ continue;
1307
+ }
1308
+ case 3: {
1309
+ if (tag !== 26) {
1310
+ break;
1311
+ }
1312
+
1313
+ message.updates = UpdateTraceRuleRequest_TraceRuleUpdates.decode(reader, reader.uint32());
1314
+ continue;
1315
+ }
1316
+ case 4: {
1317
+ if (tag !== 34) {
1318
+ break;
1319
+ }
1320
+
1321
+ message.organizationId = reader.string();
1322
+ continue;
1323
+ }
1324
+ }
1325
+ if ((tag & 7) === 4 || tag === 0) {
1326
+ break;
1327
+ }
1328
+ reader.skip(tag & 7);
1258
1329
  }
1259
- reader.skip(tag & 7);
1330
+ return message;
1331
+ } finally {
1332
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1260
1333
  }
1261
- return message;
1262
1334
  },
1263
1335
 
1264
1336
  fromJSON(object: any): UpdateTraceRuleRequest {
@@ -1328,26 +1400,35 @@ export const UpdateTraceRuleRequest_IntegrationIds: MessageFns<UpdateTraceRuleRe
1328
1400
 
1329
1401
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateTraceRuleRequest_IntegrationIds {
1330
1402
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1331
- const end = length === undefined ? reader.len : reader.pos + length;
1332
- const message = createBaseUpdateTraceRuleRequest_IntegrationIds();
1333
- while (reader.pos < end) {
1334
- const tag = reader.uint32();
1335
- switch (tag >>> 3) {
1336
- case 1: {
1337
- if (tag !== 10) {
1338
- break;
1339
- }
1340
-
1341
- message.ids.push(reader.string());
1342
- continue;
1343
- }
1344
- }
1345
- if ((tag & 7) === 4 || tag === 0) {
1346
- break;
1403
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1404
+ if (previousRecursionDepth >= 100) {
1405
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1406
+ }
1407
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1408
+ try {
1409
+ const end = length === undefined ? reader.len : reader.pos + length;
1410
+ const message = createBaseUpdateTraceRuleRequest_IntegrationIds();
1411
+ while (reader.pos < end) {
1412
+ const tag = reader.uint32();
1413
+ switch (tag >>> 3) {
1414
+ case 1: {
1415
+ if (tag !== 10) {
1416
+ break;
1417
+ }
1418
+
1419
+ message.ids.push(reader.string());
1420
+ continue;
1421
+ }
1422
+ }
1423
+ if ((tag & 7) === 4 || tag === 0) {
1424
+ break;
1425
+ }
1426
+ reader.skip(tag & 7);
1347
1427
  }
1348
- reader.skip(tag & 7);
1428
+ return message;
1429
+ } finally {
1430
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1349
1431
  }
1350
- return message;
1351
1432
  },
1352
1433
 
1353
1434
  fromJSON(object: any): UpdateTraceRuleRequest_IntegrationIds {
@@ -1390,26 +1471,35 @@ export const UpdateTraceRuleRequest_CelExpression: MessageFns<UpdateTraceRuleReq
1390
1471
 
1391
1472
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateTraceRuleRequest_CelExpression {
1392
1473
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1393
- const end = length === undefined ? reader.len : reader.pos + length;
1394
- const message = createBaseUpdateTraceRuleRequest_CelExpression();
1395
- while (reader.pos < end) {
1396
- const tag = reader.uint32();
1397
- switch (tag >>> 3) {
1398
- case 1: {
1399
- if (tag !== 10) {
1400
- break;
1401
- }
1402
-
1403
- message.celExpression = reader.string();
1404
- continue;
1405
- }
1406
- }
1407
- if ((tag & 7) === 4 || tag === 0) {
1408
- break;
1474
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1475
+ if (previousRecursionDepth >= 100) {
1476
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1477
+ }
1478
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1479
+ try {
1480
+ const end = length === undefined ? reader.len : reader.pos + length;
1481
+ const message = createBaseUpdateTraceRuleRequest_CelExpression();
1482
+ while (reader.pos < end) {
1483
+ const tag = reader.uint32();
1484
+ switch (tag >>> 3) {
1485
+ case 1: {
1486
+ if (tag !== 10) {
1487
+ break;
1488
+ }
1489
+
1490
+ message.celExpression = reader.string();
1491
+ continue;
1492
+ }
1493
+ }
1494
+ if ((tag & 7) === 4 || tag === 0) {
1495
+ break;
1496
+ }
1497
+ reader.skip(tag & 7);
1409
1498
  }
1410
- reader.skip(tag & 7);
1499
+ return message;
1500
+ } finally {
1501
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1411
1502
  }
1412
- return message;
1413
1503
  },
1414
1504
 
1415
1505
  fromJSON(object: any): UpdateTraceRuleRequest_CelExpression {
@@ -1476,58 +1566,67 @@ export const UpdateTraceRuleRequest_TraceRuleUpdates: MessageFns<UpdateTraceRule
1476
1566
 
1477
1567
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateTraceRuleRequest_TraceRuleUpdates {
1478
1568
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1479
- const end = length === undefined ? reader.len : reader.pos + length;
1480
- const message = createBaseUpdateTraceRuleRequest_TraceRuleUpdates();
1481
- while (reader.pos < end) {
1482
- const tag = reader.uint32();
1483
- switch (tag >>> 3) {
1484
- case 1: {
1485
- if (tag !== 10) {
1486
- break;
1487
- }
1488
-
1489
- message.name = reader.string();
1490
- continue;
1491
- }
1492
- case 2: {
1493
- if (tag !== 18) {
1494
- break;
1495
- }
1496
-
1497
- message.description = reader.string();
1498
- continue;
1499
- }
1500
- case 3: {
1501
- if (tag !== 24) {
1502
- break;
1503
- }
1504
-
1505
- message.enabled = reader.int32() as any;
1506
- continue;
1507
- }
1508
- case 4: {
1509
- if (tag !== 34) {
1510
- break;
1511
- }
1512
-
1513
- message.integrationIds = UpdateTraceRuleRequest_IntegrationIds.decode(reader, reader.uint32());
1514
- continue;
1515
- }
1516
- case 5: {
1517
- if (tag !== 42) {
1518
- break;
1519
- }
1520
-
1521
- message.celExpression = UpdateTraceRuleRequest_CelExpression.decode(reader, reader.uint32());
1522
- continue;
1523
- }
1524
- }
1525
- if ((tag & 7) === 4 || tag === 0) {
1526
- break;
1569
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1570
+ if (previousRecursionDepth >= 100) {
1571
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1572
+ }
1573
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1574
+ try {
1575
+ const end = length === undefined ? reader.len : reader.pos + length;
1576
+ const message = createBaseUpdateTraceRuleRequest_TraceRuleUpdates();
1577
+ while (reader.pos < end) {
1578
+ const tag = reader.uint32();
1579
+ switch (tag >>> 3) {
1580
+ case 1: {
1581
+ if (tag !== 10) {
1582
+ break;
1583
+ }
1584
+
1585
+ message.name = reader.string();
1586
+ continue;
1587
+ }
1588
+ case 2: {
1589
+ if (tag !== 18) {
1590
+ break;
1591
+ }
1592
+
1593
+ message.description = reader.string();
1594
+ continue;
1595
+ }
1596
+ case 3: {
1597
+ if (tag !== 24) {
1598
+ break;
1599
+ }
1600
+
1601
+ message.enabled = reader.int32() as any;
1602
+ continue;
1603
+ }
1604
+ case 4: {
1605
+ if (tag !== 34) {
1606
+ break;
1607
+ }
1608
+
1609
+ message.integrationIds = UpdateTraceRuleRequest_IntegrationIds.decode(reader, reader.uint32());
1610
+ continue;
1611
+ }
1612
+ case 5: {
1613
+ if (tag !== 42) {
1614
+ break;
1615
+ }
1616
+
1617
+ message.celExpression = UpdateTraceRuleRequest_CelExpression.decode(reader, reader.uint32());
1618
+ continue;
1619
+ }
1620
+ }
1621
+ if ((tag & 7) === 4 || tag === 0) {
1622
+ break;
1623
+ }
1624
+ reader.skip(tag & 7);
1527
1625
  }
1528
- reader.skip(tag & 7);
1626
+ return message;
1627
+ } finally {
1628
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1529
1629
  }
1530
- return message;
1531
1630
  },
1532
1631
 
1533
1632
  fromJSON(object: any): UpdateTraceRuleRequest_TraceRuleUpdates {
@@ -1607,34 +1706,43 @@ export const UpdateTraceRuleResponse: MessageFns<UpdateTraceRuleResponse> = {
1607
1706
 
1608
1707
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateTraceRuleResponse {
1609
1708
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1610
- const end = length === undefined ? reader.len : reader.pos + length;
1611
- const message = createBaseUpdateTraceRuleResponse();
1612
- while (reader.pos < end) {
1613
- const tag = reader.uint32();
1614
- switch (tag >>> 3) {
1615
- case 1: {
1616
- if (tag !== 10) {
1617
- break;
1618
- }
1619
-
1620
- message.status = ResponseStatus.decode(reader, reader.uint32());
1621
- continue;
1622
- }
1623
- case 2: {
1624
- if (tag !== 18) {
1625
- break;
1626
- }
1627
-
1628
- message.rule = TraceRule.decode(reader, reader.uint32());
1629
- continue;
1630
- }
1709
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1710
+ if (previousRecursionDepth >= 100) {
1711
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1712
+ }
1713
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1714
+ try {
1715
+ const end = length === undefined ? reader.len : reader.pos + length;
1716
+ const message = createBaseUpdateTraceRuleResponse();
1717
+ while (reader.pos < end) {
1718
+ const tag = reader.uint32();
1719
+ switch (tag >>> 3) {
1720
+ case 1: {
1721
+ if (tag !== 10) {
1722
+ break;
1723
+ }
1724
+
1725
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1726
+ continue;
1727
+ }
1728
+ case 2: {
1729
+ if (tag !== 18) {
1730
+ break;
1731
+ }
1732
+
1733
+ message.rule = TraceRule.decode(reader, reader.uint32());
1734
+ continue;
1735
+ }
1736
+ }
1737
+ if ((tag & 7) === 4 || tag === 0) {
1738
+ break;
1739
+ }
1740
+ reader.skip(tag & 7);
1631
1741
  }
1632
- if ((tag & 7) === 4 || tag === 0) {
1633
- break;
1634
- }
1635
- reader.skip(tag & 7);
1742
+ return message;
1743
+ } finally {
1744
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1636
1745
  }
1637
- return message;
1638
1746
  },
1639
1747
 
1640
1748
  fromJSON(object: any): UpdateTraceRuleResponse {
@@ -1688,42 +1796,51 @@ export const DeleteTraceRuleRequest: MessageFns<DeleteTraceRuleRequest> = {
1688
1796
 
1689
1797
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteTraceRuleRequest {
1690
1798
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1691
- const end = length === undefined ? reader.len : reader.pos + length;
1692
- const message = createBaseDeleteTraceRuleRequest();
1693
- while (reader.pos < end) {
1694
- const tag = reader.uint32();
1695
- switch (tag >>> 3) {
1696
- case 1: {
1697
- if (tag !== 10) {
1698
- break;
1699
- }
1700
-
1701
- message.projectId = reader.string();
1702
- continue;
1703
- }
1704
- case 2: {
1705
- if (tag !== 18) {
1706
- break;
1707
- }
1708
-
1709
- message.ruleId = reader.string();
1710
- continue;
1711
- }
1712
- case 3: {
1713
- if (tag !== 26) {
1714
- break;
1715
- }
1716
-
1717
- message.organizationId = reader.string();
1718
- continue;
1719
- }
1799
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1800
+ if (previousRecursionDepth >= 100) {
1801
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1802
+ }
1803
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1804
+ try {
1805
+ const end = length === undefined ? reader.len : reader.pos + length;
1806
+ const message = createBaseDeleteTraceRuleRequest();
1807
+ while (reader.pos < end) {
1808
+ const tag = reader.uint32();
1809
+ switch (tag >>> 3) {
1810
+ case 1: {
1811
+ if (tag !== 10) {
1812
+ break;
1813
+ }
1814
+
1815
+ message.projectId = reader.string();
1816
+ continue;
1817
+ }
1818
+ case 2: {
1819
+ if (tag !== 18) {
1820
+ break;
1821
+ }
1822
+
1823
+ message.ruleId = reader.string();
1824
+ continue;
1825
+ }
1826
+ case 3: {
1827
+ if (tag !== 26) {
1828
+ break;
1829
+ }
1830
+
1831
+ message.organizationId = reader.string();
1832
+ continue;
1833
+ }
1834
+ }
1835
+ if ((tag & 7) === 4 || tag === 0) {
1836
+ break;
1837
+ }
1838
+ reader.skip(tag & 7);
1720
1839
  }
1721
- if ((tag & 7) === 4 || tag === 0) {
1722
- break;
1723
- }
1724
- reader.skip(tag & 7);
1840
+ return message;
1841
+ } finally {
1842
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1725
1843
  }
1726
- return message;
1727
1844
  },
1728
1845
 
1729
1846
  fromJSON(object: any): DeleteTraceRuleRequest {
@@ -1786,26 +1903,35 @@ export const DeleteTraceRuleResponse: MessageFns<DeleteTraceRuleResponse> = {
1786
1903
 
1787
1904
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteTraceRuleResponse {
1788
1905
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1789
- const end = length === undefined ? reader.len : reader.pos + length;
1790
- const message = createBaseDeleteTraceRuleResponse();
1791
- while (reader.pos < end) {
1792
- const tag = reader.uint32();
1793
- switch (tag >>> 3) {
1794
- case 1: {
1795
- if (tag !== 10) {
1796
- break;
1797
- }
1798
-
1799
- message.status = ResponseStatus.decode(reader, reader.uint32());
1800
- continue;
1801
- }
1906
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1907
+ if (previousRecursionDepth >= 100) {
1908
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1909
+ }
1910
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1911
+ try {
1912
+ const end = length === undefined ? reader.len : reader.pos + length;
1913
+ const message = createBaseDeleteTraceRuleResponse();
1914
+ while (reader.pos < end) {
1915
+ const tag = reader.uint32();
1916
+ switch (tag >>> 3) {
1917
+ case 1: {
1918
+ if (tag !== 10) {
1919
+ break;
1920
+ }
1921
+
1922
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1923
+ continue;
1924
+ }
1925
+ }
1926
+ if ((tag & 7) === 4 || tag === 0) {
1927
+ break;
1928
+ }
1929
+ reader.skip(tag & 7);
1802
1930
  }
1803
- if ((tag & 7) === 4 || tag === 0) {
1804
- break;
1805
- }
1806
- reader.skip(tag & 7);
1931
+ return message;
1932
+ } finally {
1933
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1807
1934
  }
1808
- return message;
1809
1935
  },
1810
1936
 
1811
1937
  fromJSON(object: any): DeleteTraceRuleResponse {
@@ -1855,50 +1981,59 @@ export const StreamTraceRuleSimulationRequest: MessageFns<StreamTraceRuleSimulat
1855
1981
 
1856
1982
  decode(input: BinaryReader | Uint8Array, length?: number): StreamTraceRuleSimulationRequest {
1857
1983
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1858
- const end = length === undefined ? reader.len : reader.pos + length;
1859
- const message = createBaseStreamTraceRuleSimulationRequest();
1860
- while (reader.pos < end) {
1861
- const tag = reader.uint32();
1862
- switch (tag >>> 3) {
1863
- case 1: {
1864
- if (tag !== 10) {
1865
- break;
1866
- }
1867
-
1868
- message.projectId = reader.string();
1869
- continue;
1870
- }
1871
- case 2: {
1872
- if (tag !== 18) {
1873
- break;
1874
- }
1875
-
1876
- message.celExpression = reader.string();
1877
- continue;
1878
- }
1879
- case 3: {
1880
- if (tag !== 24) {
1881
- break;
1882
- }
1883
-
1884
- message.limit = reader.int32();
1885
- continue;
1886
- }
1887
- case 4: {
1888
- if (tag !== 34) {
1889
- break;
1890
- }
1891
-
1892
- message.organizationId = reader.string();
1893
- continue;
1894
- }
1895
- }
1896
- if ((tag & 7) === 4 || tag === 0) {
1897
- break;
1984
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1985
+ if (previousRecursionDepth >= 100) {
1986
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1987
+ }
1988
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1989
+ try {
1990
+ const end = length === undefined ? reader.len : reader.pos + length;
1991
+ const message = createBaseStreamTraceRuleSimulationRequest();
1992
+ while (reader.pos < end) {
1993
+ const tag = reader.uint32();
1994
+ switch (tag >>> 3) {
1995
+ case 1: {
1996
+ if (tag !== 10) {
1997
+ break;
1998
+ }
1999
+
2000
+ message.projectId = reader.string();
2001
+ continue;
2002
+ }
2003
+ case 2: {
2004
+ if (tag !== 18) {
2005
+ break;
2006
+ }
2007
+
2008
+ message.celExpression = reader.string();
2009
+ continue;
2010
+ }
2011
+ case 3: {
2012
+ if (tag !== 24) {
2013
+ break;
2014
+ }
2015
+
2016
+ message.limit = reader.int32();
2017
+ continue;
2018
+ }
2019
+ case 4: {
2020
+ if (tag !== 34) {
2021
+ break;
2022
+ }
2023
+
2024
+ message.organizationId = reader.string();
2025
+ continue;
2026
+ }
2027
+ }
2028
+ if ((tag & 7) === 4 || tag === 0) {
2029
+ break;
2030
+ }
2031
+ reader.skip(tag & 7);
1898
2032
  }
1899
- reader.skip(tag & 7);
2033
+ return message;
2034
+ } finally {
2035
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1900
2036
  }
1901
- return message;
1902
2037
  },
1903
2038
 
1904
2039
  fromJSON(object: any): StreamTraceRuleSimulationRequest {
@@ -1979,50 +2114,59 @@ export const TraceRuleSimulationMatch: MessageFns<TraceRuleSimulationMatch> = {
1979
2114
 
1980
2115
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRuleSimulationMatch {
1981
2116
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1982
- const end = length === undefined ? reader.len : reader.pos + length;
1983
- const message = createBaseTraceRuleSimulationMatch();
1984
- while (reader.pos < end) {
1985
- const tag = reader.uint32();
1986
- switch (tag >>> 3) {
1987
- case 1: {
1988
- if (tag !== 10) {
1989
- break;
1990
- }
1991
-
1992
- message.traceId = reader.string();
1993
- continue;
1994
- }
1995
- case 2: {
1996
- if (tag !== 18) {
1997
- break;
1998
- }
1999
-
2000
- message.traceName = reader.string();
2001
- continue;
2002
- }
2003
- case 3: {
2004
- if (tag !== 26) {
2005
- break;
2006
- }
2007
-
2008
- message.matchReason = reader.string();
2009
- continue;
2010
- }
2011
- case 4: {
2012
- if (tag !== 34) {
2013
- break;
2014
- }
2015
-
2016
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2017
- continue;
2018
- }
2117
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2118
+ if (previousRecursionDepth >= 100) {
2119
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2120
+ }
2121
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2122
+ try {
2123
+ const end = length === undefined ? reader.len : reader.pos + length;
2124
+ const message = createBaseTraceRuleSimulationMatch();
2125
+ while (reader.pos < end) {
2126
+ const tag = reader.uint32();
2127
+ switch (tag >>> 3) {
2128
+ case 1: {
2129
+ if (tag !== 10) {
2130
+ break;
2131
+ }
2132
+
2133
+ message.traceId = reader.string();
2134
+ continue;
2135
+ }
2136
+ case 2: {
2137
+ if (tag !== 18) {
2138
+ break;
2139
+ }
2140
+
2141
+ message.traceName = reader.string();
2142
+ continue;
2143
+ }
2144
+ case 3: {
2145
+ if (tag !== 26) {
2146
+ break;
2147
+ }
2148
+
2149
+ message.matchReason = reader.string();
2150
+ continue;
2151
+ }
2152
+ case 4: {
2153
+ if (tag !== 34) {
2154
+ break;
2155
+ }
2156
+
2157
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2158
+ continue;
2159
+ }
2160
+ }
2161
+ if ((tag & 7) === 4 || tag === 0) {
2162
+ break;
2163
+ }
2164
+ reader.skip(tag & 7);
2019
2165
  }
2020
- if ((tag & 7) === 4 || tag === 0) {
2021
- break;
2022
- }
2023
- reader.skip(tag & 7);
2166
+ return message;
2167
+ } finally {
2168
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2024
2169
  }
2025
- return message;
2026
2170
  },
2027
2171
 
2028
2172
  fromJSON(object: any): TraceRuleSimulationMatch {
@@ -2094,26 +2238,35 @@ export const ListTraceRuleSchemasRequest: MessageFns<ListTraceRuleSchemasRequest
2094
2238
 
2095
2239
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRuleSchemasRequest {
2096
2240
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2097
- const end = length === undefined ? reader.len : reader.pos + length;
2098
- const message = createBaseListTraceRuleSchemasRequest();
2099
- while (reader.pos < end) {
2100
- const tag = reader.uint32();
2101
- switch (tag >>> 3) {
2102
- case 1: {
2103
- if (tag !== 10) {
2104
- break;
2105
- }
2106
-
2107
- message.organizationId = reader.string();
2108
- continue;
2109
- }
2241
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2242
+ if (previousRecursionDepth >= 100) {
2243
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2244
+ }
2245
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2246
+ try {
2247
+ const end = length === undefined ? reader.len : reader.pos + length;
2248
+ const message = createBaseListTraceRuleSchemasRequest();
2249
+ while (reader.pos < end) {
2250
+ const tag = reader.uint32();
2251
+ switch (tag >>> 3) {
2252
+ case 1: {
2253
+ if (tag !== 10) {
2254
+ break;
2255
+ }
2256
+
2257
+ message.organizationId = reader.string();
2258
+ continue;
2259
+ }
2260
+ }
2261
+ if ((tag & 7) === 4 || tag === 0) {
2262
+ break;
2263
+ }
2264
+ reader.skip(tag & 7);
2110
2265
  }
2111
- if ((tag & 7) === 4 || tag === 0) {
2112
- break;
2113
- }
2114
- reader.skip(tag & 7);
2266
+ return message;
2267
+ } finally {
2268
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2115
2269
  }
2116
- return message;
2117
2270
  },
2118
2271
 
2119
2272
  fromJSON(object: any): ListTraceRuleSchemasRequest {
@@ -2161,34 +2314,43 @@ export const ListTraceRuleSchemasResponse: MessageFns<ListTraceRuleSchemasRespon
2161
2314
 
2162
2315
  decode(input: BinaryReader | Uint8Array, length?: number): ListTraceRuleSchemasResponse {
2163
2316
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2164
- const end = length === undefined ? reader.len : reader.pos + length;
2165
- const message = createBaseListTraceRuleSchemasResponse();
2166
- while (reader.pos < end) {
2167
- const tag = reader.uint32();
2168
- switch (tag >>> 3) {
2169
- case 1: {
2170
- if (tag !== 10) {
2171
- break;
2172
- }
2173
-
2174
- message.status = ResponseStatus.decode(reader, reader.uint32());
2175
- continue;
2176
- }
2177
- case 2: {
2178
- if (tag !== 18) {
2179
- break;
2180
- }
2181
-
2182
- message.schemas.push(TraceRuleSchema.decode(reader, reader.uint32()));
2183
- continue;
2184
- }
2185
- }
2186
- if ((tag & 7) === 4 || tag === 0) {
2187
- break;
2317
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2318
+ if (previousRecursionDepth >= 100) {
2319
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2320
+ }
2321
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2322
+ try {
2323
+ const end = length === undefined ? reader.len : reader.pos + length;
2324
+ const message = createBaseListTraceRuleSchemasResponse();
2325
+ while (reader.pos < end) {
2326
+ const tag = reader.uint32();
2327
+ switch (tag >>> 3) {
2328
+ case 1: {
2329
+ if (tag !== 10) {
2330
+ break;
2331
+ }
2332
+
2333
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2334
+ continue;
2335
+ }
2336
+ case 2: {
2337
+ if (tag !== 18) {
2338
+ break;
2339
+ }
2340
+
2341
+ message.schemas.push(TraceRuleSchema.decode(reader, reader.uint32()));
2342
+ continue;
2343
+ }
2344
+ }
2345
+ if ((tag & 7) === 4 || tag === 0) {
2346
+ break;
2347
+ }
2348
+ reader.skip(tag & 7);
2188
2349
  }
2189
- reader.skip(tag & 7);
2350
+ return message;
2351
+ } finally {
2352
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2190
2353
  }
2191
- return message;
2192
2354
  },
2193
2355
 
2194
2356
  fromJSON(object: any): ListTraceRuleSchemasResponse {
@@ -2247,50 +2409,59 @@ export const TraceRuleSchema: MessageFns<TraceRuleSchema> = {
2247
2409
 
2248
2410
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRuleSchema {
2249
2411
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2250
- const end = length === undefined ? reader.len : reader.pos + length;
2251
- const message = createBaseTraceRuleSchema();
2252
- while (reader.pos < end) {
2253
- const tag = reader.uint32();
2254
- switch (tag >>> 3) {
2255
- case 1: {
2256
- if (tag !== 10) {
2257
- break;
2258
- }
2259
-
2260
- message.id = reader.string();
2261
- continue;
2262
- }
2263
- case 2: {
2264
- if (tag !== 18) {
2265
- break;
2266
- }
2267
-
2268
- message.label = reader.string();
2269
- continue;
2270
- }
2271
- case 3: {
2272
- if (tag !== 26) {
2273
- break;
2274
- }
2275
-
2276
- message.rootVariable = reader.string();
2277
- continue;
2278
- }
2279
- case 4: {
2280
- if (tag !== 34) {
2281
- break;
2282
- }
2283
-
2284
- message.jsonSchema = reader.string();
2285
- continue;
2286
- }
2412
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2413
+ if (previousRecursionDepth >= 100) {
2414
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2415
+ }
2416
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2417
+ try {
2418
+ const end = length === undefined ? reader.len : reader.pos + length;
2419
+ const message = createBaseTraceRuleSchema();
2420
+ while (reader.pos < end) {
2421
+ const tag = reader.uint32();
2422
+ switch (tag >>> 3) {
2423
+ case 1: {
2424
+ if (tag !== 10) {
2425
+ break;
2426
+ }
2427
+
2428
+ message.id = reader.string();
2429
+ continue;
2430
+ }
2431
+ case 2: {
2432
+ if (tag !== 18) {
2433
+ break;
2434
+ }
2435
+
2436
+ message.label = reader.string();
2437
+ continue;
2438
+ }
2439
+ case 3: {
2440
+ if (tag !== 26) {
2441
+ break;
2442
+ }
2443
+
2444
+ message.rootVariable = reader.string();
2445
+ continue;
2446
+ }
2447
+ case 4: {
2448
+ if (tag !== 34) {
2449
+ break;
2450
+ }
2451
+
2452
+ message.jsonSchema = reader.string();
2453
+ continue;
2454
+ }
2455
+ }
2456
+ if ((tag & 7) === 4 || tag === 0) {
2457
+ break;
2458
+ }
2459
+ reader.skip(tag & 7);
2287
2460
  }
2288
- if ((tag & 7) === 4 || tag === 0) {
2289
- break;
2290
- }
2291
- reader.skip(tag & 7);
2461
+ return message;
2462
+ } finally {
2463
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2292
2464
  }
2293
- return message;
2294
2465
  },
2295
2466
 
2296
2467
  fromJSON(object: any): TraceRuleSchema {
@@ -2360,42 +2531,51 @@ export const StreamTraceRuleActivityRequest: MessageFns<StreamTraceRuleActivityR
2360
2531
 
2361
2532
  decode(input: BinaryReader | Uint8Array, length?: number): StreamTraceRuleActivityRequest {
2362
2533
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2363
- const end = length === undefined ? reader.len : reader.pos + length;
2364
- const message = createBaseStreamTraceRuleActivityRequest();
2365
- while (reader.pos < end) {
2366
- const tag = reader.uint32();
2367
- switch (tag >>> 3) {
2368
- case 1: {
2369
- if (tag !== 10) {
2370
- break;
2371
- }
2372
-
2373
- message.projectId = reader.string();
2374
- continue;
2375
- }
2376
- case 2: {
2377
- if (tag !== 18) {
2378
- break;
2379
- }
2380
-
2381
- message.organizationId = reader.string();
2382
- continue;
2383
- }
2384
- case 3: {
2385
- if (tag !== 24) {
2386
- break;
2387
- }
2388
-
2389
- message.limit = reader.int32();
2390
- continue;
2391
- }
2534
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2535
+ if (previousRecursionDepth >= 100) {
2536
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2537
+ }
2538
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2539
+ try {
2540
+ const end = length === undefined ? reader.len : reader.pos + length;
2541
+ const message = createBaseStreamTraceRuleActivityRequest();
2542
+ while (reader.pos < end) {
2543
+ const tag = reader.uint32();
2544
+ switch (tag >>> 3) {
2545
+ case 1: {
2546
+ if (tag !== 10) {
2547
+ break;
2548
+ }
2549
+
2550
+ message.projectId = reader.string();
2551
+ continue;
2552
+ }
2553
+ case 2: {
2554
+ if (tag !== 18) {
2555
+ break;
2556
+ }
2557
+
2558
+ message.organizationId = reader.string();
2559
+ continue;
2560
+ }
2561
+ case 3: {
2562
+ if (tag !== 24) {
2563
+ break;
2564
+ }
2565
+
2566
+ message.limit = reader.int32();
2567
+ continue;
2568
+ }
2569
+ }
2570
+ if ((tag & 7) === 4 || tag === 0) {
2571
+ break;
2572
+ }
2573
+ reader.skip(tag & 7);
2392
2574
  }
2393
- if ((tag & 7) === 4 || tag === 0) {
2394
- break;
2395
- }
2396
- reader.skip(tag & 7);
2575
+ return message;
2576
+ } finally {
2577
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2397
2578
  }
2398
- return message;
2399
2579
  },
2400
2580
 
2401
2581
  fromJSON(object: any): StreamTraceRuleActivityRequest {
@@ -2459,34 +2639,43 @@ export const TraceRuleActivityEnvelope: MessageFns<TraceRuleActivityEnvelope> =
2459
2639
 
2460
2640
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRuleActivityEnvelope {
2461
2641
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2462
- const end = length === undefined ? reader.len : reader.pos + length;
2463
- const message = createBaseTraceRuleActivityEnvelope();
2464
- while (reader.pos < end) {
2465
- const tag = reader.uint32();
2466
- switch (tag >>> 3) {
2467
- case 1: {
2468
- if (tag !== 10) {
2469
- break;
2470
- }
2471
-
2472
- message.snapshot = TraceRuleActivitySnapshot.decode(reader, reader.uint32());
2473
- continue;
2474
- }
2475
- case 2: {
2476
- if (tag !== 18) {
2477
- break;
2478
- }
2479
-
2480
- message.update = TraceRuleActivityEvent.decode(reader, reader.uint32());
2481
- continue;
2482
- }
2483
- }
2484
- if ((tag & 7) === 4 || tag === 0) {
2485
- break;
2642
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2643
+ if (previousRecursionDepth >= 100) {
2644
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2645
+ }
2646
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2647
+ try {
2648
+ const end = length === undefined ? reader.len : reader.pos + length;
2649
+ const message = createBaseTraceRuleActivityEnvelope();
2650
+ while (reader.pos < end) {
2651
+ const tag = reader.uint32();
2652
+ switch (tag >>> 3) {
2653
+ case 1: {
2654
+ if (tag !== 10) {
2655
+ break;
2656
+ }
2657
+
2658
+ message.snapshot = TraceRuleActivitySnapshot.decode(reader, reader.uint32());
2659
+ continue;
2660
+ }
2661
+ case 2: {
2662
+ if (tag !== 18) {
2663
+ break;
2664
+ }
2665
+
2666
+ message.update = TraceRuleActivityEvent.decode(reader, reader.uint32());
2667
+ continue;
2668
+ }
2669
+ }
2670
+ if ((tag & 7) === 4 || tag === 0) {
2671
+ break;
2672
+ }
2673
+ reader.skip(tag & 7);
2486
2674
  }
2487
- reader.skip(tag & 7);
2675
+ return message;
2676
+ } finally {
2677
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2488
2678
  }
2489
- return message;
2490
2679
  },
2491
2680
 
2492
2681
  fromJSON(object: any): TraceRuleActivityEnvelope {
@@ -2536,26 +2725,35 @@ export const TraceRuleActivitySnapshot: MessageFns<TraceRuleActivitySnapshot> =
2536
2725
 
2537
2726
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRuleActivitySnapshot {
2538
2727
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2539
- const end = length === undefined ? reader.len : reader.pos + length;
2540
- const message = createBaseTraceRuleActivitySnapshot();
2541
- while (reader.pos < end) {
2542
- const tag = reader.uint32();
2543
- switch (tag >>> 3) {
2544
- case 1: {
2545
- if (tag !== 10) {
2546
- break;
2547
- }
2548
-
2549
- message.activities.push(TraceRuleActivityEvent.decode(reader, reader.uint32()));
2550
- continue;
2551
- }
2728
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2729
+ if (previousRecursionDepth >= 100) {
2730
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2731
+ }
2732
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2733
+ try {
2734
+ const end = length === undefined ? reader.len : reader.pos + length;
2735
+ const message = createBaseTraceRuleActivitySnapshot();
2736
+ while (reader.pos < end) {
2737
+ const tag = reader.uint32();
2738
+ switch (tag >>> 3) {
2739
+ case 1: {
2740
+ if (tag !== 10) {
2741
+ break;
2742
+ }
2743
+
2744
+ message.activities.push(TraceRuleActivityEvent.decode(reader, reader.uint32()));
2745
+ continue;
2746
+ }
2747
+ }
2748
+ if ((tag & 7) === 4 || tag === 0) {
2749
+ break;
2750
+ }
2751
+ reader.skip(tag & 7);
2552
2752
  }
2553
- if ((tag & 7) === 4 || tag === 0) {
2554
- break;
2555
- }
2556
- reader.skip(tag & 7);
2753
+ return message;
2754
+ } finally {
2755
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2557
2756
  }
2558
- return message;
2559
2757
  },
2560
2758
 
2561
2759
  fromJSON(object: any): TraceRuleActivitySnapshot {
@@ -2628,82 +2826,91 @@ export const TraceRuleActivityEvent: MessageFns<TraceRuleActivityEvent> = {
2628
2826
 
2629
2827
  decode(input: BinaryReader | Uint8Array, length?: number): TraceRuleActivityEvent {
2630
2828
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2631
- const end = length === undefined ? reader.len : reader.pos + length;
2632
- const message = createBaseTraceRuleActivityEvent();
2633
- while (reader.pos < end) {
2634
- const tag = reader.uint32();
2635
- switch (tag >>> 3) {
2636
- case 1: {
2637
- if (tag !== 10) {
2638
- break;
2639
- }
2640
-
2641
- message.activityId = reader.string();
2642
- continue;
2643
- }
2644
- case 2: {
2645
- if (tag !== 18) {
2646
- break;
2647
- }
2648
-
2649
- message.ruleId = reader.string();
2650
- continue;
2651
- }
2652
- case 3: {
2653
- if (tag !== 26) {
2654
- break;
2655
- }
2656
-
2657
- message.ruleName = reader.string();
2658
- continue;
2659
- }
2660
- case 4: {
2661
- if (tag !== 34) {
2662
- break;
2663
- }
2664
-
2665
- message.traceId = reader.string();
2666
- continue;
2667
- }
2668
- case 5: {
2669
- if (tag !== 40) {
2670
- break;
2671
- }
2672
-
2673
- message.admittedTraceVersion = longToNumber(reader.uint64());
2674
- continue;
2675
- }
2676
- case 6: {
2677
- if (tag !== 50) {
2678
- break;
2679
- }
2680
-
2681
- message.traceName = reader.string();
2682
- continue;
2683
- }
2684
- case 7: {
2685
- if (tag !== 58) {
2686
- break;
2687
- }
2688
-
2689
- message.matchReason = reader.string();
2690
- continue;
2691
- }
2692
- case 8: {
2693
- if (tag !== 66) {
2694
- break;
2695
- }
2696
-
2697
- message.occurredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2698
- continue;
2699
- }
2829
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2830
+ if (previousRecursionDepth >= 100) {
2831
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2832
+ }
2833
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2834
+ try {
2835
+ const end = length === undefined ? reader.len : reader.pos + length;
2836
+ const message = createBaseTraceRuleActivityEvent();
2837
+ while (reader.pos < end) {
2838
+ const tag = reader.uint32();
2839
+ switch (tag >>> 3) {
2840
+ case 1: {
2841
+ if (tag !== 10) {
2842
+ break;
2843
+ }
2844
+
2845
+ message.activityId = reader.string();
2846
+ continue;
2847
+ }
2848
+ case 2: {
2849
+ if (tag !== 18) {
2850
+ break;
2851
+ }
2852
+
2853
+ message.ruleId = reader.string();
2854
+ continue;
2855
+ }
2856
+ case 3: {
2857
+ if (tag !== 26) {
2858
+ break;
2859
+ }
2860
+
2861
+ message.ruleName = reader.string();
2862
+ continue;
2863
+ }
2864
+ case 4: {
2865
+ if (tag !== 34) {
2866
+ break;
2867
+ }
2868
+
2869
+ message.traceId = reader.string();
2870
+ continue;
2871
+ }
2872
+ case 5: {
2873
+ if (tag !== 40) {
2874
+ break;
2875
+ }
2876
+
2877
+ message.admittedTraceVersion = longToNumber(reader.uint64());
2878
+ continue;
2879
+ }
2880
+ case 6: {
2881
+ if (tag !== 50) {
2882
+ break;
2883
+ }
2884
+
2885
+ message.traceName = reader.string();
2886
+ continue;
2887
+ }
2888
+ case 7: {
2889
+ if (tag !== 58) {
2890
+ break;
2891
+ }
2892
+
2893
+ message.matchReason = reader.string();
2894
+ continue;
2895
+ }
2896
+ case 8: {
2897
+ if (tag !== 66) {
2898
+ break;
2899
+ }
2900
+
2901
+ message.occurredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2902
+ continue;
2903
+ }
2904
+ }
2905
+ if ((tag & 7) === 4 || tag === 0) {
2906
+ break;
2907
+ }
2908
+ reader.skip(tag & 7);
2700
2909
  }
2701
- if ((tag & 7) === 4 || tag === 0) {
2702
- break;
2703
- }
2704
- reader.skip(tag & 7);
2910
+ return message;
2911
+ } finally {
2912
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2705
2913
  }
2706
- return message;
2707
2914
  },
2708
2915
 
2709
2916
  fromJSON(object: any): TraceRuleActivityEvent {
@@ -2853,106 +3060,115 @@ export const MetricRule: MessageFns<MetricRule> = {
2853
3060
 
2854
3061
  decode(input: BinaryReader | Uint8Array, length?: number): MetricRule {
2855
3062
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2856
- const end = length === undefined ? reader.len : reader.pos + length;
2857
- const message = createBaseMetricRule();
2858
- while (reader.pos < end) {
2859
- const tag = reader.uint32();
2860
- switch (tag >>> 3) {
2861
- case 1: {
2862
- if (tag !== 10) {
2863
- break;
2864
- }
2865
-
2866
- message.id = reader.string();
2867
- continue;
2868
- }
2869
- case 2: {
2870
- if (tag !== 18) {
2871
- break;
2872
- }
2873
-
2874
- message.projectId = reader.string();
2875
- continue;
2876
- }
2877
- case 3: {
2878
- if (tag !== 26) {
2879
- break;
2880
- }
2881
-
2882
- message.organizationId = reader.string();
2883
- continue;
2884
- }
2885
- case 4: {
2886
- if (tag !== 34) {
2887
- break;
2888
- }
2889
-
2890
- message.name = reader.string();
2891
- continue;
2892
- }
2893
- case 5: {
2894
- if (tag !== 42) {
2895
- break;
2896
- }
2897
-
2898
- message.description = reader.string();
2899
- continue;
2900
- }
2901
- case 6: {
2902
- if (tag !== 48) {
2903
- break;
2904
- }
2905
-
2906
- message.enabled = reader.int32() as any;
2907
- continue;
2908
- }
2909
- case 7: {
2910
- if (tag !== 58) {
2911
- break;
2912
- }
2913
-
2914
- message.integrationIds.push(reader.string());
2915
- continue;
2916
- }
2917
- case 8: {
2918
- if (tag !== 66) {
2919
- break;
2920
- }
2921
-
2922
- message.condition = MetricRuleCondition.decode(reader, reader.uint32());
2923
- continue;
2924
- }
2925
- case 9: {
2926
- if (tag !== 72) {
2927
- break;
2928
- }
2929
-
2930
- message.severity = reader.int32() as any;
2931
- continue;
3063
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3064
+ if (previousRecursionDepth >= 100) {
3065
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3066
+ }
3067
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3068
+ try {
3069
+ const end = length === undefined ? reader.len : reader.pos + length;
3070
+ const message = createBaseMetricRule();
3071
+ while (reader.pos < end) {
3072
+ const tag = reader.uint32();
3073
+ switch (tag >>> 3) {
3074
+ case 1: {
3075
+ if (tag !== 10) {
3076
+ break;
3077
+ }
3078
+
3079
+ message.id = reader.string();
3080
+ continue;
3081
+ }
3082
+ case 2: {
3083
+ if (tag !== 18) {
3084
+ break;
3085
+ }
3086
+
3087
+ message.projectId = reader.string();
3088
+ continue;
3089
+ }
3090
+ case 3: {
3091
+ if (tag !== 26) {
3092
+ break;
3093
+ }
3094
+
3095
+ message.organizationId = reader.string();
3096
+ continue;
3097
+ }
3098
+ case 4: {
3099
+ if (tag !== 34) {
3100
+ break;
3101
+ }
3102
+
3103
+ message.name = reader.string();
3104
+ continue;
3105
+ }
3106
+ case 5: {
3107
+ if (tag !== 42) {
3108
+ break;
3109
+ }
3110
+
3111
+ message.description = reader.string();
3112
+ continue;
3113
+ }
3114
+ case 6: {
3115
+ if (tag !== 48) {
3116
+ break;
3117
+ }
3118
+
3119
+ message.enabled = reader.int32() as any;
3120
+ continue;
3121
+ }
3122
+ case 7: {
3123
+ if (tag !== 58) {
3124
+ break;
3125
+ }
3126
+
3127
+ message.integrationIds.push(reader.string());
3128
+ continue;
3129
+ }
3130
+ case 8: {
3131
+ if (tag !== 66) {
3132
+ break;
3133
+ }
3134
+
3135
+ message.condition = MetricRuleCondition.decode(reader, reader.uint32());
3136
+ continue;
3137
+ }
3138
+ case 9: {
3139
+ if (tag !== 72) {
3140
+ break;
3141
+ }
3142
+
3143
+ message.severity = reader.int32() as any;
3144
+ continue;
3145
+ }
3146
+ case 10: {
3147
+ if (tag !== 82) {
3148
+ break;
3149
+ }
3150
+
3151
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3152
+ continue;
3153
+ }
3154
+ case 11: {
3155
+ if (tag !== 90) {
3156
+ break;
3157
+ }
3158
+
3159
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3160
+ continue;
3161
+ }
3162
+ }
3163
+ if ((tag & 7) === 4 || tag === 0) {
3164
+ break;
2932
3165
  }
2933
- case 10: {
2934
- if (tag !== 82) {
2935
- break;
2936
- }
2937
-
2938
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2939
- continue;
2940
- }
2941
- case 11: {
2942
- if (tag !== 90) {
2943
- break;
2944
- }
2945
-
2946
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2947
- continue;
2948
- }
2949
- }
2950
- if ((tag & 7) === 4 || tag === 0) {
2951
- break;
3166
+ reader.skip(tag & 7);
2952
3167
  }
2953
- reader.skip(tag & 7);
3168
+ return message;
3169
+ } finally {
3170
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2954
3171
  }
2955
- return message;
2956
3172
  },
2957
3173
 
2958
3174
  fromJSON(object: any): MetricRule {
@@ -3068,34 +3284,43 @@ export const MetricRuleCondition: MessageFns<MetricRuleCondition> = {
3068
3284
 
3069
3285
  decode(input: BinaryReader | Uint8Array, length?: number): MetricRuleCondition {
3070
3286
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3071
- const end = length === undefined ? reader.len : reader.pos + length;
3072
- const message = createBaseMetricRuleCondition();
3073
- while (reader.pos < end) {
3074
- const tag = reader.uint32();
3075
- switch (tag >>> 3) {
3076
- case 1: {
3077
- if (tag !== 10) {
3078
- break;
3079
- }
3080
-
3081
- message.expression = reader.string();
3082
- continue;
3083
- }
3084
- case 2: {
3085
- if (tag !== 18) {
3086
- break;
3087
- }
3088
-
3089
- message.recoveryExpression = reader.string();
3090
- continue;
3091
- }
3287
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3288
+ if (previousRecursionDepth >= 100) {
3289
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3290
+ }
3291
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3292
+ try {
3293
+ const end = length === undefined ? reader.len : reader.pos + length;
3294
+ const message = createBaseMetricRuleCondition();
3295
+ while (reader.pos < end) {
3296
+ const tag = reader.uint32();
3297
+ switch (tag >>> 3) {
3298
+ case 1: {
3299
+ if (tag !== 10) {
3300
+ break;
3301
+ }
3302
+
3303
+ message.expression = reader.string();
3304
+ continue;
3305
+ }
3306
+ case 2: {
3307
+ if (tag !== 18) {
3308
+ break;
3309
+ }
3310
+
3311
+ message.recoveryExpression = reader.string();
3312
+ continue;
3313
+ }
3314
+ }
3315
+ if ((tag & 7) === 4 || tag === 0) {
3316
+ break;
3317
+ }
3318
+ reader.skip(tag & 7);
3092
3319
  }
3093
- if ((tag & 7) === 4 || tag === 0) {
3094
- break;
3095
- }
3096
- reader.skip(tag & 7);
3320
+ return message;
3321
+ } finally {
3322
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3097
3323
  }
3098
- return message;
3099
3324
  },
3100
3325
 
3101
3326
  fromJSON(object: any): MetricRuleCondition {
@@ -3171,74 +3396,83 @@ export const CreateMetricRuleRequest: MessageFns<CreateMetricRuleRequest> = {
3171
3396
 
3172
3397
  decode(input: BinaryReader | Uint8Array, length?: number): CreateMetricRuleRequest {
3173
3398
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3174
- const end = length === undefined ? reader.len : reader.pos + length;
3175
- const message = createBaseCreateMetricRuleRequest();
3176
- while (reader.pos < end) {
3177
- const tag = reader.uint32();
3178
- switch (tag >>> 3) {
3179
- case 1: {
3180
- if (tag !== 10) {
3181
- break;
3182
- }
3183
-
3184
- message.projectId = reader.string();
3185
- continue;
3186
- }
3187
- case 2: {
3188
- if (tag !== 18) {
3189
- break;
3190
- }
3191
-
3192
- message.name = reader.string();
3193
- continue;
3194
- }
3195
- case 3: {
3196
- if (tag !== 26) {
3197
- break;
3198
- }
3199
-
3200
- message.description = reader.string();
3201
- continue;
3202
- }
3203
- case 4: {
3204
- if (tag !== 34) {
3205
- break;
3206
- }
3207
-
3208
- message.integrationIds.push(reader.string());
3209
- continue;
3210
- }
3211
- case 5: {
3212
- if (tag !== 42) {
3213
- break;
3214
- }
3215
-
3216
- message.condition = MetricRuleCondition.decode(reader, reader.uint32());
3217
- continue;
3218
- }
3219
- case 6: {
3220
- if (tag !== 48) {
3221
- break;
3222
- }
3223
-
3224
- message.severity = reader.int32() as any;
3225
- continue;
3226
- }
3227
- case 7: {
3228
- if (tag !== 58) {
3229
- break;
3230
- }
3231
-
3232
- message.organizationId = reader.string();
3233
- continue;
3234
- }
3399
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3400
+ if (previousRecursionDepth >= 100) {
3401
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3402
+ }
3403
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3404
+ try {
3405
+ const end = length === undefined ? reader.len : reader.pos + length;
3406
+ const message = createBaseCreateMetricRuleRequest();
3407
+ while (reader.pos < end) {
3408
+ const tag = reader.uint32();
3409
+ switch (tag >>> 3) {
3410
+ case 1: {
3411
+ if (tag !== 10) {
3412
+ break;
3413
+ }
3414
+
3415
+ message.projectId = reader.string();
3416
+ continue;
3417
+ }
3418
+ case 2: {
3419
+ if (tag !== 18) {
3420
+ break;
3421
+ }
3422
+
3423
+ message.name = reader.string();
3424
+ continue;
3425
+ }
3426
+ case 3: {
3427
+ if (tag !== 26) {
3428
+ break;
3429
+ }
3430
+
3431
+ message.description = reader.string();
3432
+ continue;
3433
+ }
3434
+ case 4: {
3435
+ if (tag !== 34) {
3436
+ break;
3437
+ }
3438
+
3439
+ message.integrationIds.push(reader.string());
3440
+ continue;
3441
+ }
3442
+ case 5: {
3443
+ if (tag !== 42) {
3444
+ break;
3445
+ }
3446
+
3447
+ message.condition = MetricRuleCondition.decode(reader, reader.uint32());
3448
+ continue;
3449
+ }
3450
+ case 6: {
3451
+ if (tag !== 48) {
3452
+ break;
3453
+ }
3454
+
3455
+ message.severity = reader.int32() as any;
3456
+ continue;
3457
+ }
3458
+ case 7: {
3459
+ if (tag !== 58) {
3460
+ break;
3461
+ }
3462
+
3463
+ message.organizationId = reader.string();
3464
+ continue;
3465
+ }
3466
+ }
3467
+ if ((tag & 7) === 4 || tag === 0) {
3468
+ break;
3469
+ }
3470
+ reader.skip(tag & 7);
3235
3471
  }
3236
- if ((tag & 7) === 4 || tag === 0) {
3237
- break;
3238
- }
3239
- reader.skip(tag & 7);
3472
+ return message;
3473
+ } finally {
3474
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3240
3475
  }
3241
- return message;
3242
3476
  },
3243
3477
 
3244
3478
  fromJSON(object: any): CreateMetricRuleRequest {
@@ -3326,34 +3560,43 @@ export const CreateMetricRuleResponse: MessageFns<CreateMetricRuleResponse> = {
3326
3560
 
3327
3561
  decode(input: BinaryReader | Uint8Array, length?: number): CreateMetricRuleResponse {
3328
3562
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3329
- const end = length === undefined ? reader.len : reader.pos + length;
3330
- const message = createBaseCreateMetricRuleResponse();
3331
- while (reader.pos < end) {
3332
- const tag = reader.uint32();
3333
- switch (tag >>> 3) {
3334
- case 1: {
3335
- if (tag !== 10) {
3336
- break;
3337
- }
3338
-
3339
- message.status = ResponseStatus.decode(reader, reader.uint32());
3340
- continue;
3341
- }
3342
- case 2: {
3343
- if (tag !== 18) {
3344
- break;
3345
- }
3346
-
3347
- message.metricRule = MetricRule.decode(reader, reader.uint32());
3348
- continue;
3349
- }
3350
- }
3351
- if ((tag & 7) === 4 || tag === 0) {
3352
- break;
3563
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3564
+ if (previousRecursionDepth >= 100) {
3565
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3566
+ }
3567
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3568
+ try {
3569
+ const end = length === undefined ? reader.len : reader.pos + length;
3570
+ const message = createBaseCreateMetricRuleResponse();
3571
+ while (reader.pos < end) {
3572
+ const tag = reader.uint32();
3573
+ switch (tag >>> 3) {
3574
+ case 1: {
3575
+ if (tag !== 10) {
3576
+ break;
3577
+ }
3578
+
3579
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3580
+ continue;
3581
+ }
3582
+ case 2: {
3583
+ if (tag !== 18) {
3584
+ break;
3585
+ }
3586
+
3587
+ message.metricRule = MetricRule.decode(reader, reader.uint32());
3588
+ continue;
3589
+ }
3590
+ }
3591
+ if ((tag & 7) === 4 || tag === 0) {
3592
+ break;
3593
+ }
3594
+ reader.skip(tag & 7);
3353
3595
  }
3354
- reader.skip(tag & 7);
3596
+ return message;
3597
+ } finally {
3598
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3355
3599
  }
3356
- return message;
3357
3600
  },
3358
3601
 
3359
3602
  fromJSON(object: any): CreateMetricRuleResponse {
@@ -3413,42 +3656,51 @@ export const GetMetricRuleRequest: MessageFns<GetMetricRuleRequest> = {
3413
3656
 
3414
3657
  decode(input: BinaryReader | Uint8Array, length?: number): GetMetricRuleRequest {
3415
3658
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3416
- const end = length === undefined ? reader.len : reader.pos + length;
3417
- const message = createBaseGetMetricRuleRequest();
3418
- while (reader.pos < end) {
3419
- const tag = reader.uint32();
3420
- switch (tag >>> 3) {
3421
- case 1: {
3422
- if (tag !== 10) {
3423
- break;
3424
- }
3425
-
3426
- message.projectId = reader.string();
3427
- continue;
3428
- }
3429
- case 2: {
3430
- if (tag !== 18) {
3431
- break;
3432
- }
3433
-
3434
- message.metricRuleId = reader.string();
3435
- continue;
3436
- }
3437
- case 3: {
3438
- if (tag !== 26) {
3439
- break;
3440
- }
3441
-
3442
- message.organizationId = reader.string();
3443
- continue;
3444
- }
3445
- }
3446
- if ((tag & 7) === 4 || tag === 0) {
3447
- break;
3659
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3660
+ if (previousRecursionDepth >= 100) {
3661
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3662
+ }
3663
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3664
+ try {
3665
+ const end = length === undefined ? reader.len : reader.pos + length;
3666
+ const message = createBaseGetMetricRuleRequest();
3667
+ while (reader.pos < end) {
3668
+ const tag = reader.uint32();
3669
+ switch (tag >>> 3) {
3670
+ case 1: {
3671
+ if (tag !== 10) {
3672
+ break;
3673
+ }
3674
+
3675
+ message.projectId = reader.string();
3676
+ continue;
3677
+ }
3678
+ case 2: {
3679
+ if (tag !== 18) {
3680
+ break;
3681
+ }
3682
+
3683
+ message.metricRuleId = reader.string();
3684
+ continue;
3685
+ }
3686
+ case 3: {
3687
+ if (tag !== 26) {
3688
+ break;
3689
+ }
3690
+
3691
+ message.organizationId = reader.string();
3692
+ continue;
3693
+ }
3694
+ }
3695
+ if ((tag & 7) === 4 || tag === 0) {
3696
+ break;
3697
+ }
3698
+ reader.skip(tag & 7);
3448
3699
  }
3449
- reader.skip(tag & 7);
3700
+ return message;
3701
+ } finally {
3702
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3450
3703
  }
3451
- return message;
3452
3704
  },
3453
3705
 
3454
3706
  fromJSON(object: any): GetMetricRuleRequest {
@@ -3514,34 +3766,43 @@ export const GetMetricRuleResponse: MessageFns<GetMetricRuleResponse> = {
3514
3766
 
3515
3767
  decode(input: BinaryReader | Uint8Array, length?: number): GetMetricRuleResponse {
3516
3768
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3517
- const end = length === undefined ? reader.len : reader.pos + length;
3518
- const message = createBaseGetMetricRuleResponse();
3519
- while (reader.pos < end) {
3520
- const tag = reader.uint32();
3521
- switch (tag >>> 3) {
3522
- case 1: {
3523
- if (tag !== 10) {
3524
- break;
3525
- }
3526
-
3527
- message.status = ResponseStatus.decode(reader, reader.uint32());
3528
- continue;
3529
- }
3530
- case 2: {
3531
- if (tag !== 18) {
3532
- break;
3533
- }
3534
-
3535
- message.metricRule = MetricRule.decode(reader, reader.uint32());
3536
- continue;
3537
- }
3538
- }
3539
- if ((tag & 7) === 4 || tag === 0) {
3540
- break;
3769
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3770
+ if (previousRecursionDepth >= 100) {
3771
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3772
+ }
3773
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3774
+ try {
3775
+ const end = length === undefined ? reader.len : reader.pos + length;
3776
+ const message = createBaseGetMetricRuleResponse();
3777
+ while (reader.pos < end) {
3778
+ const tag = reader.uint32();
3779
+ switch (tag >>> 3) {
3780
+ case 1: {
3781
+ if (tag !== 10) {
3782
+ break;
3783
+ }
3784
+
3785
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3786
+ continue;
3787
+ }
3788
+ case 2: {
3789
+ if (tag !== 18) {
3790
+ break;
3791
+ }
3792
+
3793
+ message.metricRule = MetricRule.decode(reader, reader.uint32());
3794
+ continue;
3795
+ }
3796
+ }
3797
+ if ((tag & 7) === 4 || tag === 0) {
3798
+ break;
3799
+ }
3800
+ reader.skip(tag & 7);
3541
3801
  }
3542
- reader.skip(tag & 7);
3802
+ return message;
3803
+ } finally {
3804
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3543
3805
  }
3544
- return message;
3545
3806
  },
3546
3807
 
3547
3808
  fromJSON(object: any): GetMetricRuleResponse {
@@ -3601,42 +3862,51 @@ export const ListMetricRulesRequest: MessageFns<ListMetricRulesRequest> = {
3601
3862
 
3602
3863
  decode(input: BinaryReader | Uint8Array, length?: number): ListMetricRulesRequest {
3603
3864
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3604
- const end = length === undefined ? reader.len : reader.pos + length;
3605
- const message = createBaseListMetricRulesRequest();
3606
- while (reader.pos < end) {
3607
- const tag = reader.uint32();
3608
- switch (tag >>> 3) {
3609
- case 1: {
3610
- if (tag !== 10) {
3611
- break;
3612
- }
3613
-
3614
- message.organizationId = reader.string();
3615
- continue;
3616
- }
3617
- case 2: {
3618
- if (tag !== 18) {
3619
- break;
3620
- }
3621
-
3622
- message.organizationIdFilter = reader.string();
3623
- continue;
3624
- }
3625
- case 3: {
3626
- if (tag !== 26) {
3627
- break;
3628
- }
3629
-
3630
- message.projectIdFilter = reader.string();
3631
- continue;
3632
- }
3633
- }
3634
- if ((tag & 7) === 4 || tag === 0) {
3635
- break;
3865
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3866
+ if (previousRecursionDepth >= 100) {
3867
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3868
+ }
3869
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3870
+ try {
3871
+ const end = length === undefined ? reader.len : reader.pos + length;
3872
+ const message = createBaseListMetricRulesRequest();
3873
+ while (reader.pos < end) {
3874
+ const tag = reader.uint32();
3875
+ switch (tag >>> 3) {
3876
+ case 1: {
3877
+ if (tag !== 10) {
3878
+ break;
3879
+ }
3880
+
3881
+ message.organizationId = reader.string();
3882
+ continue;
3883
+ }
3884
+ case 2: {
3885
+ if (tag !== 18) {
3886
+ break;
3887
+ }
3888
+
3889
+ message.organizationIdFilter = reader.string();
3890
+ continue;
3891
+ }
3892
+ case 3: {
3893
+ if (tag !== 26) {
3894
+ break;
3895
+ }
3896
+
3897
+ message.projectIdFilter = reader.string();
3898
+ continue;
3899
+ }
3900
+ }
3901
+ if ((tag & 7) === 4 || tag === 0) {
3902
+ break;
3903
+ }
3904
+ reader.skip(tag & 7);
3636
3905
  }
3637
- reader.skip(tag & 7);
3906
+ return message;
3907
+ } finally {
3908
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3638
3909
  }
3639
- return message;
3640
3910
  },
3641
3911
 
3642
3912
  fromJSON(object: any): ListMetricRulesRequest {
@@ -3702,34 +3972,43 @@ export const ListMetricRulesResponse: MessageFns<ListMetricRulesResponse> = {
3702
3972
 
3703
3973
  decode(input: BinaryReader | Uint8Array, length?: number): ListMetricRulesResponse {
3704
3974
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3705
- const end = length === undefined ? reader.len : reader.pos + length;
3706
- const message = createBaseListMetricRulesResponse();
3707
- while (reader.pos < end) {
3708
- const tag = reader.uint32();
3709
- switch (tag >>> 3) {
3710
- case 1: {
3711
- if (tag !== 10) {
3712
- break;
3713
- }
3714
-
3715
- message.status = ResponseStatus.decode(reader, reader.uint32());
3716
- continue;
3717
- }
3718
- case 2: {
3719
- if (tag !== 18) {
3720
- break;
3721
- }
3722
-
3723
- message.metricRules.push(MetricRule.decode(reader, reader.uint32()));
3724
- continue;
3725
- }
3975
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3976
+ if (previousRecursionDepth >= 100) {
3977
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3978
+ }
3979
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3980
+ try {
3981
+ const end = length === undefined ? reader.len : reader.pos + length;
3982
+ const message = createBaseListMetricRulesResponse();
3983
+ while (reader.pos < end) {
3984
+ const tag = reader.uint32();
3985
+ switch (tag >>> 3) {
3986
+ case 1: {
3987
+ if (tag !== 10) {
3988
+ break;
3989
+ }
3990
+
3991
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3992
+ continue;
3993
+ }
3994
+ case 2: {
3995
+ if (tag !== 18) {
3996
+ break;
3997
+ }
3998
+
3999
+ message.metricRules.push(MetricRule.decode(reader, reader.uint32()));
4000
+ continue;
4001
+ }
4002
+ }
4003
+ if ((tag & 7) === 4 || tag === 0) {
4004
+ break;
4005
+ }
4006
+ reader.skip(tag & 7);
3726
4007
  }
3727
- if ((tag & 7) === 4 || tag === 0) {
3728
- break;
3729
- }
3730
- reader.skip(tag & 7);
4008
+ return message;
4009
+ } finally {
4010
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3731
4011
  }
3732
- return message;
3733
4012
  },
3734
4013
 
3735
4014
  fromJSON(object: any): ListMetricRulesResponse {
@@ -3790,50 +4069,59 @@ export const UpdateMetricRuleRequest: MessageFns<UpdateMetricRuleRequest> = {
3790
4069
 
3791
4070
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateMetricRuleRequest {
3792
4071
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3793
- const end = length === undefined ? reader.len : reader.pos + length;
3794
- const message = createBaseUpdateMetricRuleRequest();
3795
- while (reader.pos < end) {
3796
- const tag = reader.uint32();
3797
- switch (tag >>> 3) {
3798
- case 1: {
3799
- if (tag !== 10) {
3800
- break;
3801
- }
3802
-
3803
- message.projectId = reader.string();
3804
- continue;
3805
- }
3806
- case 2: {
3807
- if (tag !== 18) {
3808
- break;
3809
- }
3810
-
3811
- message.metricRuleId = reader.string();
3812
- continue;
3813
- }
3814
- case 3: {
3815
- if (tag !== 26) {
3816
- break;
3817
- }
3818
-
3819
- message.updates = UpdateMetricRuleRequest_MetricRuleUpdates.decode(reader, reader.uint32());
3820
- continue;
3821
- }
3822
- case 4: {
3823
- if (tag !== 34) {
3824
- break;
3825
- }
3826
-
3827
- message.organizationId = reader.string();
3828
- continue;
3829
- }
3830
- }
3831
- if ((tag & 7) === 4 || tag === 0) {
3832
- break;
4072
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4073
+ if (previousRecursionDepth >= 100) {
4074
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4075
+ }
4076
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4077
+ try {
4078
+ const end = length === undefined ? reader.len : reader.pos + length;
4079
+ const message = createBaseUpdateMetricRuleRequest();
4080
+ while (reader.pos < end) {
4081
+ const tag = reader.uint32();
4082
+ switch (tag >>> 3) {
4083
+ case 1: {
4084
+ if (tag !== 10) {
4085
+ break;
4086
+ }
4087
+
4088
+ message.projectId = reader.string();
4089
+ continue;
4090
+ }
4091
+ case 2: {
4092
+ if (tag !== 18) {
4093
+ break;
4094
+ }
4095
+
4096
+ message.metricRuleId = reader.string();
4097
+ continue;
4098
+ }
4099
+ case 3: {
4100
+ if (tag !== 26) {
4101
+ break;
4102
+ }
4103
+
4104
+ message.updates = UpdateMetricRuleRequest_MetricRuleUpdates.decode(reader, reader.uint32());
4105
+ continue;
4106
+ }
4107
+ case 4: {
4108
+ if (tag !== 34) {
4109
+ break;
4110
+ }
4111
+
4112
+ message.organizationId = reader.string();
4113
+ continue;
4114
+ }
4115
+ }
4116
+ if ((tag & 7) === 4 || tag === 0) {
4117
+ break;
4118
+ }
4119
+ reader.skip(tag & 7);
3833
4120
  }
3834
- reader.skip(tag & 7);
4121
+ return message;
4122
+ } finally {
4123
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3835
4124
  }
3836
- return message;
3837
4125
  },
3838
4126
 
3839
4127
  fromJSON(object: any): UpdateMetricRuleRequest {
@@ -3903,26 +4191,35 @@ export const UpdateMetricRuleRequest_Condition: MessageFns<UpdateMetricRuleReque
3903
4191
 
3904
4192
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateMetricRuleRequest_Condition {
3905
4193
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3906
- const end = length === undefined ? reader.len : reader.pos + length;
3907
- const message = createBaseUpdateMetricRuleRequest_Condition();
3908
- while (reader.pos < end) {
3909
- const tag = reader.uint32();
3910
- switch (tag >>> 3) {
3911
- case 1: {
3912
- if (tag !== 10) {
3913
- break;
3914
- }
3915
-
3916
- message.condition = MetricRuleCondition.decode(reader, reader.uint32());
3917
- continue;
3918
- }
4194
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4195
+ if (previousRecursionDepth >= 100) {
4196
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4197
+ }
4198
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4199
+ try {
4200
+ const end = length === undefined ? reader.len : reader.pos + length;
4201
+ const message = createBaseUpdateMetricRuleRequest_Condition();
4202
+ while (reader.pos < end) {
4203
+ const tag = reader.uint32();
4204
+ switch (tag >>> 3) {
4205
+ case 1: {
4206
+ if (tag !== 10) {
4207
+ break;
4208
+ }
4209
+
4210
+ message.condition = MetricRuleCondition.decode(reader, reader.uint32());
4211
+ continue;
4212
+ }
4213
+ }
4214
+ if ((tag & 7) === 4 || tag === 0) {
4215
+ break;
4216
+ }
4217
+ reader.skip(tag & 7);
3919
4218
  }
3920
- if ((tag & 7) === 4 || tag === 0) {
3921
- break;
3922
- }
3923
- reader.skip(tag & 7);
4219
+ return message;
4220
+ } finally {
4221
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3924
4222
  }
3925
- return message;
3926
4223
  },
3927
4224
 
3928
4225
  fromJSON(object: any): UpdateMetricRuleRequest_Condition {
@@ -3967,26 +4264,35 @@ export const UpdateMetricRuleRequest_IntegrationIds: MessageFns<UpdateMetricRule
3967
4264
 
3968
4265
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateMetricRuleRequest_IntegrationIds {
3969
4266
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3970
- const end = length === undefined ? reader.len : reader.pos + length;
3971
- const message = createBaseUpdateMetricRuleRequest_IntegrationIds();
3972
- while (reader.pos < end) {
3973
- const tag = reader.uint32();
3974
- switch (tag >>> 3) {
3975
- case 1: {
3976
- if (tag !== 10) {
3977
- break;
3978
- }
3979
-
3980
- message.ids.push(reader.string());
3981
- continue;
3982
- }
3983
- }
3984
- if ((tag & 7) === 4 || tag === 0) {
3985
- break;
4267
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4268
+ if (previousRecursionDepth >= 100) {
4269
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4270
+ }
4271
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4272
+ try {
4273
+ const end = length === undefined ? reader.len : reader.pos + length;
4274
+ const message = createBaseUpdateMetricRuleRequest_IntegrationIds();
4275
+ while (reader.pos < end) {
4276
+ const tag = reader.uint32();
4277
+ switch (tag >>> 3) {
4278
+ case 1: {
4279
+ if (tag !== 10) {
4280
+ break;
4281
+ }
4282
+
4283
+ message.ids.push(reader.string());
4284
+ continue;
4285
+ }
4286
+ }
4287
+ if ((tag & 7) === 4 || tag === 0) {
4288
+ break;
4289
+ }
4290
+ reader.skip(tag & 7);
3986
4291
  }
3987
- reader.skip(tag & 7);
4292
+ return message;
4293
+ } finally {
4294
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3988
4295
  }
3989
- return message;
3990
4296
  },
3991
4297
 
3992
4298
  fromJSON(object: any): UpdateMetricRuleRequest_IntegrationIds {
@@ -4051,66 +4357,75 @@ export const UpdateMetricRuleRequest_MetricRuleUpdates: MessageFns<UpdateMetricR
4051
4357
 
4052
4358
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateMetricRuleRequest_MetricRuleUpdates {
4053
4359
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4054
- const end = length === undefined ? reader.len : reader.pos + length;
4055
- const message = createBaseUpdateMetricRuleRequest_MetricRuleUpdates();
4056
- while (reader.pos < end) {
4057
- const tag = reader.uint32();
4058
- switch (tag >>> 3) {
4059
- case 1: {
4060
- if (tag !== 10) {
4061
- break;
4062
- }
4063
-
4064
- message.name = reader.string();
4065
- continue;
4066
- }
4067
- case 2: {
4068
- if (tag !== 18) {
4069
- break;
4070
- }
4071
-
4072
- message.description = reader.string();
4073
- continue;
4074
- }
4075
- case 3: {
4076
- if (tag !== 24) {
4077
- break;
4078
- }
4079
-
4080
- message.enabled = reader.int32() as any;
4081
- continue;
4082
- }
4083
- case 4: {
4084
- if (tag !== 32) {
4085
- break;
4086
- }
4087
-
4088
- message.severity = reader.int32() as any;
4089
- continue;
4090
- }
4091
- case 5: {
4092
- if (tag !== 42) {
4093
- break;
4094
- }
4095
-
4096
- message.integrationIds = UpdateMetricRuleRequest_IntegrationIds.decode(reader, reader.uint32());
4097
- continue;
4098
- }
4099
- case 6: {
4100
- if (tag !== 50) {
4101
- break;
4102
- }
4103
-
4104
- message.condition = UpdateMetricRuleRequest_Condition.decode(reader, reader.uint32());
4105
- continue;
4106
- }
4360
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4361
+ if (previousRecursionDepth >= 100) {
4362
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4363
+ }
4364
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4365
+ try {
4366
+ const end = length === undefined ? reader.len : reader.pos + length;
4367
+ const message = createBaseUpdateMetricRuleRequest_MetricRuleUpdates();
4368
+ while (reader.pos < end) {
4369
+ const tag = reader.uint32();
4370
+ switch (tag >>> 3) {
4371
+ case 1: {
4372
+ if (tag !== 10) {
4373
+ break;
4374
+ }
4375
+
4376
+ message.name = reader.string();
4377
+ continue;
4378
+ }
4379
+ case 2: {
4380
+ if (tag !== 18) {
4381
+ break;
4382
+ }
4383
+
4384
+ message.description = reader.string();
4385
+ continue;
4386
+ }
4387
+ case 3: {
4388
+ if (tag !== 24) {
4389
+ break;
4390
+ }
4391
+
4392
+ message.enabled = reader.int32() as any;
4393
+ continue;
4394
+ }
4395
+ case 4: {
4396
+ if (tag !== 32) {
4397
+ break;
4398
+ }
4399
+
4400
+ message.severity = reader.int32() as any;
4401
+ continue;
4402
+ }
4403
+ case 5: {
4404
+ if (tag !== 42) {
4405
+ break;
4406
+ }
4407
+
4408
+ message.integrationIds = UpdateMetricRuleRequest_IntegrationIds.decode(reader, reader.uint32());
4409
+ continue;
4410
+ }
4411
+ case 6: {
4412
+ if (tag !== 50) {
4413
+ break;
4414
+ }
4415
+
4416
+ message.condition = UpdateMetricRuleRequest_Condition.decode(reader, reader.uint32());
4417
+ continue;
4418
+ }
4419
+ }
4420
+ if ((tag & 7) === 4 || tag === 0) {
4421
+ break;
4422
+ }
4423
+ reader.skip(tag & 7);
4107
4424
  }
4108
- if ((tag & 7) === 4 || tag === 0) {
4109
- break;
4110
- }
4111
- reader.skip(tag & 7);
4425
+ return message;
4426
+ } finally {
4427
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4112
4428
  }
4113
- return message;
4114
4429
  },
4115
4430
 
4116
4431
  fromJSON(object: any): UpdateMetricRuleRequest_MetricRuleUpdates {
@@ -4191,34 +4506,43 @@ export const UpdateMetricRuleResponse: MessageFns<UpdateMetricRuleResponse> = {
4191
4506
 
4192
4507
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateMetricRuleResponse {
4193
4508
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4194
- const end = length === undefined ? reader.len : reader.pos + length;
4195
- const message = createBaseUpdateMetricRuleResponse();
4196
- while (reader.pos < end) {
4197
- const tag = reader.uint32();
4198
- switch (tag >>> 3) {
4199
- case 1: {
4200
- if (tag !== 10) {
4201
- break;
4202
- }
4203
-
4204
- message.status = ResponseStatus.decode(reader, reader.uint32());
4205
- continue;
4206
- }
4207
- case 2: {
4208
- if (tag !== 18) {
4209
- break;
4210
- }
4211
-
4212
- message.metricRule = MetricRule.decode(reader, reader.uint32());
4213
- continue;
4214
- }
4215
- }
4216
- if ((tag & 7) === 4 || tag === 0) {
4217
- break;
4509
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4510
+ if (previousRecursionDepth >= 100) {
4511
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4512
+ }
4513
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4514
+ try {
4515
+ const end = length === undefined ? reader.len : reader.pos + length;
4516
+ const message = createBaseUpdateMetricRuleResponse();
4517
+ while (reader.pos < end) {
4518
+ const tag = reader.uint32();
4519
+ switch (tag >>> 3) {
4520
+ case 1: {
4521
+ if (tag !== 10) {
4522
+ break;
4523
+ }
4524
+
4525
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4526
+ continue;
4527
+ }
4528
+ case 2: {
4529
+ if (tag !== 18) {
4530
+ break;
4531
+ }
4532
+
4533
+ message.metricRule = MetricRule.decode(reader, reader.uint32());
4534
+ continue;
4535
+ }
4536
+ }
4537
+ if ((tag & 7) === 4 || tag === 0) {
4538
+ break;
4539
+ }
4540
+ reader.skip(tag & 7);
4218
4541
  }
4219
- reader.skip(tag & 7);
4542
+ return message;
4543
+ } finally {
4544
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4220
4545
  }
4221
- return message;
4222
4546
  },
4223
4547
 
4224
4548
  fromJSON(object: any): UpdateMetricRuleResponse {
@@ -4278,42 +4602,51 @@ export const DeleteMetricRuleRequest: MessageFns<DeleteMetricRuleRequest> = {
4278
4602
 
4279
4603
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteMetricRuleRequest {
4280
4604
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4281
- const end = length === undefined ? reader.len : reader.pos + length;
4282
- const message = createBaseDeleteMetricRuleRequest();
4283
- while (reader.pos < end) {
4284
- const tag = reader.uint32();
4285
- switch (tag >>> 3) {
4286
- case 1: {
4287
- if (tag !== 10) {
4288
- break;
4289
- }
4290
-
4291
- message.projectId = reader.string();
4292
- continue;
4293
- }
4294
- case 2: {
4295
- if (tag !== 18) {
4296
- break;
4297
- }
4298
-
4299
- message.metricRuleId = reader.string();
4300
- continue;
4301
- }
4302
- case 3: {
4303
- if (tag !== 26) {
4304
- break;
4305
- }
4306
-
4307
- message.organizationId = reader.string();
4308
- continue;
4309
- }
4310
- }
4311
- if ((tag & 7) === 4 || tag === 0) {
4312
- break;
4605
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4606
+ if (previousRecursionDepth >= 100) {
4607
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4608
+ }
4609
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4610
+ try {
4611
+ const end = length === undefined ? reader.len : reader.pos + length;
4612
+ const message = createBaseDeleteMetricRuleRequest();
4613
+ while (reader.pos < end) {
4614
+ const tag = reader.uint32();
4615
+ switch (tag >>> 3) {
4616
+ case 1: {
4617
+ if (tag !== 10) {
4618
+ break;
4619
+ }
4620
+
4621
+ message.projectId = reader.string();
4622
+ continue;
4623
+ }
4624
+ case 2: {
4625
+ if (tag !== 18) {
4626
+ break;
4627
+ }
4628
+
4629
+ message.metricRuleId = reader.string();
4630
+ continue;
4631
+ }
4632
+ case 3: {
4633
+ if (tag !== 26) {
4634
+ break;
4635
+ }
4636
+
4637
+ message.organizationId = reader.string();
4638
+ continue;
4639
+ }
4640
+ }
4641
+ if ((tag & 7) === 4 || tag === 0) {
4642
+ break;
4643
+ }
4644
+ reader.skip(tag & 7);
4313
4645
  }
4314
- reader.skip(tag & 7);
4646
+ return message;
4647
+ } finally {
4648
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4315
4649
  }
4316
- return message;
4317
4650
  },
4318
4651
 
4319
4652
  fromJSON(object: any): DeleteMetricRuleRequest {
@@ -4376,26 +4709,35 @@ export const DeleteMetricRuleResponse: MessageFns<DeleteMetricRuleResponse> = {
4376
4709
 
4377
4710
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteMetricRuleResponse {
4378
4711
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4379
- const end = length === undefined ? reader.len : reader.pos + length;
4380
- const message = createBaseDeleteMetricRuleResponse();
4381
- while (reader.pos < end) {
4382
- const tag = reader.uint32();
4383
- switch (tag >>> 3) {
4384
- case 1: {
4385
- if (tag !== 10) {
4386
- break;
4387
- }
4388
-
4389
- message.status = ResponseStatus.decode(reader, reader.uint32());
4390
- continue;
4391
- }
4712
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4713
+ if (previousRecursionDepth >= 100) {
4714
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4715
+ }
4716
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4717
+ try {
4718
+ const end = length === undefined ? reader.len : reader.pos + length;
4719
+ const message = createBaseDeleteMetricRuleResponse();
4720
+ while (reader.pos < end) {
4721
+ const tag = reader.uint32();
4722
+ switch (tag >>> 3) {
4723
+ case 1: {
4724
+ if (tag !== 10) {
4725
+ break;
4726
+ }
4727
+
4728
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4729
+ continue;
4730
+ }
4731
+ }
4732
+ if ((tag & 7) === 4 || tag === 0) {
4733
+ break;
4734
+ }
4735
+ reader.skip(tag & 7);
4392
4736
  }
4393
- if ((tag & 7) === 4 || tag === 0) {
4394
- break;
4395
- }
4396
- reader.skip(tag & 7);
4737
+ return message;
4738
+ } finally {
4739
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4397
4740
  }
4398
- return message;
4399
4741
  },
4400
4742
 
4401
4743
  fromJSON(object: any): DeleteMetricRuleResponse {
@@ -4442,42 +4784,51 @@ export const PreviewMetricRuleRequest: MessageFns<PreviewMetricRuleRequest> = {
4442
4784
 
4443
4785
  decode(input: BinaryReader | Uint8Array, length?: number): PreviewMetricRuleRequest {
4444
4786
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4445
- const end = length === undefined ? reader.len : reader.pos + length;
4446
- const message = createBasePreviewMetricRuleRequest();
4447
- while (reader.pos < end) {
4448
- const tag = reader.uint32();
4449
- switch (tag >>> 3) {
4450
- case 1: {
4451
- if (tag !== 10) {
4452
- break;
4453
- }
4454
-
4455
- message.projectId = reader.string();
4456
- continue;
4457
- }
4458
- case 2: {
4459
- if (tag !== 18) {
4460
- break;
4461
- }
4462
-
4463
- message.expression = reader.string();
4464
- continue;
4465
- }
4466
- case 3: {
4467
- if (tag !== 26) {
4468
- break;
4469
- }
4470
-
4471
- message.organizationId = reader.string();
4472
- continue;
4473
- }
4787
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4788
+ if (previousRecursionDepth >= 100) {
4789
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4790
+ }
4791
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4792
+ try {
4793
+ const end = length === undefined ? reader.len : reader.pos + length;
4794
+ const message = createBasePreviewMetricRuleRequest();
4795
+ while (reader.pos < end) {
4796
+ const tag = reader.uint32();
4797
+ switch (tag >>> 3) {
4798
+ case 1: {
4799
+ if (tag !== 10) {
4800
+ break;
4801
+ }
4802
+
4803
+ message.projectId = reader.string();
4804
+ continue;
4805
+ }
4806
+ case 2: {
4807
+ if (tag !== 18) {
4808
+ break;
4809
+ }
4810
+
4811
+ message.expression = reader.string();
4812
+ continue;
4813
+ }
4814
+ case 3: {
4815
+ if (tag !== 26) {
4816
+ break;
4817
+ }
4818
+
4819
+ message.organizationId = reader.string();
4820
+ continue;
4821
+ }
4822
+ }
4823
+ if ((tag & 7) === 4 || tag === 0) {
4824
+ break;
4825
+ }
4826
+ reader.skip(tag & 7);
4474
4827
  }
4475
- if ((tag & 7) === 4 || tag === 0) {
4476
- break;
4477
- }
4478
- reader.skip(tag & 7);
4828
+ return message;
4829
+ } finally {
4830
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4479
4831
  }
4480
- return message;
4481
4832
  },
4482
4833
 
4483
4834
  fromJSON(object: any): PreviewMetricRuleRequest {
@@ -4545,50 +4896,59 @@ export const PreviewMetricRuleResponse: MessageFns<PreviewMetricRuleResponse> =
4545
4896
 
4546
4897
  decode(input: BinaryReader | Uint8Array, length?: number): PreviewMetricRuleResponse {
4547
4898
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4548
- const end = length === undefined ? reader.len : reader.pos + length;
4549
- const message = createBasePreviewMetricRuleResponse();
4550
- while (reader.pos < end) {
4551
- const tag = reader.uint32();
4552
- switch (tag >>> 3) {
4553
- case 1: {
4554
- if (tag !== 10) {
4555
- break;
4556
- }
4557
-
4558
- message.status = ResponseStatus.decode(reader, reader.uint32());
4559
- continue;
4560
- }
4561
- case 2: {
4562
- if (tag !== 17) {
4563
- break;
4564
- }
4565
-
4566
- message.value = reader.double();
4567
- continue;
4568
- }
4569
- case 3: {
4570
- if (tag !== 24) {
4571
- break;
4572
- }
4573
-
4574
- message.wouldFire = reader.bool();
4575
- continue;
4576
- }
4577
- case 4: {
4578
- if (tag !== 34) {
4579
- break;
4580
- }
4581
-
4582
- message.state = reader.string();
4583
- continue;
4584
- }
4899
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4900
+ if (previousRecursionDepth >= 100) {
4901
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4902
+ }
4903
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4904
+ try {
4905
+ const end = length === undefined ? reader.len : reader.pos + length;
4906
+ const message = createBasePreviewMetricRuleResponse();
4907
+ while (reader.pos < end) {
4908
+ const tag = reader.uint32();
4909
+ switch (tag >>> 3) {
4910
+ case 1: {
4911
+ if (tag !== 10) {
4912
+ break;
4913
+ }
4914
+
4915
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4916
+ continue;
4917
+ }
4918
+ case 2: {
4919
+ if (tag !== 17) {
4920
+ break;
4921
+ }
4922
+
4923
+ message.value = reader.double();
4924
+ continue;
4925
+ }
4926
+ case 3: {
4927
+ if (tag !== 24) {
4928
+ break;
4929
+ }
4930
+
4931
+ message.wouldFire = reader.bool();
4932
+ continue;
4933
+ }
4934
+ case 4: {
4935
+ if (tag !== 34) {
4936
+ break;
4937
+ }
4938
+
4939
+ message.state = reader.string();
4940
+ continue;
4941
+ }
4942
+ }
4943
+ if ((tag & 7) === 4 || tag === 0) {
4944
+ break;
4945
+ }
4946
+ reader.skip(tag & 7);
4585
4947
  }
4586
- if ((tag & 7) === 4 || tag === 0) {
4587
- break;
4588
- }
4589
- reader.skip(tag & 7);
4948
+ return message;
4949
+ } finally {
4950
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4590
4951
  }
4591
- return message;
4592
4952
  },
4593
4953
 
4594
4954
  fromJSON(object: any): PreviewMetricRuleResponse {
@@ -4656,42 +5016,51 @@ export const StreamMetricRuleActivityRequest: MessageFns<StreamMetricRuleActivit
4656
5016
 
4657
5017
  decode(input: BinaryReader | Uint8Array, length?: number): StreamMetricRuleActivityRequest {
4658
5018
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4659
- const end = length === undefined ? reader.len : reader.pos + length;
4660
- const message = createBaseStreamMetricRuleActivityRequest();
4661
- while (reader.pos < end) {
4662
- const tag = reader.uint32();
4663
- switch (tag >>> 3) {
4664
- case 1: {
4665
- if (tag !== 10) {
4666
- break;
4667
- }
4668
-
4669
- message.projectId = reader.string();
4670
- continue;
4671
- }
4672
- case 2: {
4673
- if (tag !== 18) {
4674
- break;
4675
- }
4676
-
4677
- message.organizationId = reader.string();
4678
- continue;
4679
- }
4680
- case 3: {
4681
- if (tag !== 24) {
4682
- break;
4683
- }
4684
-
4685
- message.limit = reader.int32();
4686
- continue;
4687
- }
5019
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5020
+ if (previousRecursionDepth >= 100) {
5021
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5022
+ }
5023
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5024
+ try {
5025
+ const end = length === undefined ? reader.len : reader.pos + length;
5026
+ const message = createBaseStreamMetricRuleActivityRequest();
5027
+ while (reader.pos < end) {
5028
+ const tag = reader.uint32();
5029
+ switch (tag >>> 3) {
5030
+ case 1: {
5031
+ if (tag !== 10) {
5032
+ break;
5033
+ }
5034
+
5035
+ message.projectId = reader.string();
5036
+ continue;
5037
+ }
5038
+ case 2: {
5039
+ if (tag !== 18) {
5040
+ break;
5041
+ }
5042
+
5043
+ message.organizationId = reader.string();
5044
+ continue;
5045
+ }
5046
+ case 3: {
5047
+ if (tag !== 24) {
5048
+ break;
5049
+ }
5050
+
5051
+ message.limit = reader.int32();
5052
+ continue;
5053
+ }
5054
+ }
5055
+ if ((tag & 7) === 4 || tag === 0) {
5056
+ break;
5057
+ }
5058
+ reader.skip(tag & 7);
4688
5059
  }
4689
- if ((tag & 7) === 4 || tag === 0) {
4690
- break;
4691
- }
4692
- reader.skip(tag & 7);
5060
+ return message;
5061
+ } finally {
5062
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4693
5063
  }
4694
- return message;
4695
5064
  },
4696
5065
 
4697
5066
  fromJSON(object: any): StreamMetricRuleActivityRequest {
@@ -4755,34 +5124,43 @@ export const MetricRuleActivityEnvelope: MessageFns<MetricRuleActivityEnvelope>
4755
5124
 
4756
5125
  decode(input: BinaryReader | Uint8Array, length?: number): MetricRuleActivityEnvelope {
4757
5126
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4758
- const end = length === undefined ? reader.len : reader.pos + length;
4759
- const message = createBaseMetricRuleActivityEnvelope();
4760
- while (reader.pos < end) {
4761
- const tag = reader.uint32();
4762
- switch (tag >>> 3) {
4763
- case 1: {
4764
- if (tag !== 10) {
4765
- break;
4766
- }
4767
-
4768
- message.snapshot = MetricRuleActivitySnapshot.decode(reader, reader.uint32());
4769
- continue;
4770
- }
4771
- case 2: {
4772
- if (tag !== 18) {
4773
- break;
4774
- }
4775
-
4776
- message.update = MetricRuleActivityEvent.decode(reader, reader.uint32());
4777
- continue;
4778
- }
5127
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5128
+ if (previousRecursionDepth >= 100) {
5129
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5130
+ }
5131
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5132
+ try {
5133
+ const end = length === undefined ? reader.len : reader.pos + length;
5134
+ const message = createBaseMetricRuleActivityEnvelope();
5135
+ while (reader.pos < end) {
5136
+ const tag = reader.uint32();
5137
+ switch (tag >>> 3) {
5138
+ case 1: {
5139
+ if (tag !== 10) {
5140
+ break;
5141
+ }
5142
+
5143
+ message.snapshot = MetricRuleActivitySnapshot.decode(reader, reader.uint32());
5144
+ continue;
5145
+ }
5146
+ case 2: {
5147
+ if (tag !== 18) {
5148
+ break;
5149
+ }
5150
+
5151
+ message.update = MetricRuleActivityEvent.decode(reader, reader.uint32());
5152
+ continue;
5153
+ }
5154
+ }
5155
+ if ((tag & 7) === 4 || tag === 0) {
5156
+ break;
5157
+ }
5158
+ reader.skip(tag & 7);
4779
5159
  }
4780
- if ((tag & 7) === 4 || tag === 0) {
4781
- break;
4782
- }
4783
- reader.skip(tag & 7);
5160
+ return message;
5161
+ } finally {
5162
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4784
5163
  }
4785
- return message;
4786
5164
  },
4787
5165
 
4788
5166
  fromJSON(object: any): MetricRuleActivityEnvelope {
@@ -4832,26 +5210,35 @@ export const MetricRuleActivitySnapshot: MessageFns<MetricRuleActivitySnapshot>
4832
5210
 
4833
5211
  decode(input: BinaryReader | Uint8Array, length?: number): MetricRuleActivitySnapshot {
4834
5212
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4835
- const end = length === undefined ? reader.len : reader.pos + length;
4836
- const message = createBaseMetricRuleActivitySnapshot();
4837
- while (reader.pos < end) {
4838
- const tag = reader.uint32();
4839
- switch (tag >>> 3) {
4840
- case 1: {
4841
- if (tag !== 10) {
4842
- break;
4843
- }
4844
-
4845
- message.activities.push(MetricRuleActivityEvent.decode(reader, reader.uint32()));
4846
- continue;
4847
- }
4848
- }
4849
- if ((tag & 7) === 4 || tag === 0) {
4850
- break;
5213
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5214
+ if (previousRecursionDepth >= 100) {
5215
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5216
+ }
5217
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5218
+ try {
5219
+ const end = length === undefined ? reader.len : reader.pos + length;
5220
+ const message = createBaseMetricRuleActivitySnapshot();
5221
+ while (reader.pos < end) {
5222
+ const tag = reader.uint32();
5223
+ switch (tag >>> 3) {
5224
+ case 1: {
5225
+ if (tag !== 10) {
5226
+ break;
5227
+ }
5228
+
5229
+ message.activities.push(MetricRuleActivityEvent.decode(reader, reader.uint32()));
5230
+ continue;
5231
+ }
5232
+ }
5233
+ if ((tag & 7) === 4 || tag === 0) {
5234
+ break;
5235
+ }
5236
+ reader.skip(tag & 7);
4851
5237
  }
4852
- reader.skip(tag & 7);
5238
+ return message;
5239
+ } finally {
5240
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4853
5241
  }
4854
- return message;
4855
5242
  },
4856
5243
 
4857
5244
  fromJSON(object: any): MetricRuleActivitySnapshot {
@@ -4928,90 +5315,99 @@ export const MetricRuleActivityEvent: MessageFns<MetricRuleActivityEvent> = {
4928
5315
 
4929
5316
  decode(input: BinaryReader | Uint8Array, length?: number): MetricRuleActivityEvent {
4930
5317
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4931
- const end = length === undefined ? reader.len : reader.pos + length;
4932
- const message = createBaseMetricRuleActivityEvent();
4933
- while (reader.pos < end) {
4934
- const tag = reader.uint32();
4935
- switch (tag >>> 3) {
4936
- case 1: {
4937
- if (tag !== 10) {
4938
- break;
4939
- }
4940
-
4941
- message.activityId = reader.string();
4942
- continue;
4943
- }
4944
- case 2: {
4945
- if (tag !== 18) {
4946
- break;
4947
- }
4948
-
4949
- message.ruleId = reader.string();
4950
- continue;
4951
- }
4952
- case 3: {
4953
- if (tag !== 26) {
4954
- break;
4955
- }
4956
-
4957
- message.ruleName = reader.string();
4958
- continue;
4959
- }
4960
- case 4: {
4961
- if (tag !== 32) {
4962
- break;
4963
- }
4964
-
4965
- message.type = reader.int32() as any;
4966
- continue;
4967
- }
4968
- case 5: {
4969
- if (tag !== 42) {
4970
- break;
4971
- }
4972
-
4973
- message.incidentId = reader.string();
4974
- continue;
4975
- }
4976
- case 6: {
4977
- if (tag !== 50) {
4978
- break;
4979
- }
4980
-
4981
- message.expression = reader.string();
4982
- continue;
4983
- }
4984
- case 7: {
4985
- if (tag !== 57) {
4986
- break;
4987
- }
4988
-
4989
- message.observedValue = reader.double();
4990
- continue;
4991
- }
4992
- case 8: {
4993
- if (tag !== 64) {
4994
- break;
4995
- }
4996
-
4997
- message.severity = reader.int32() as any;
4998
- continue;
4999
- }
5000
- case 9: {
5001
- if (tag !== 74) {
5002
- break;
5003
- }
5004
-
5005
- message.occurredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5006
- continue;
5007
- }
5318
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5319
+ if (previousRecursionDepth >= 100) {
5320
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5321
+ }
5322
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5323
+ try {
5324
+ const end = length === undefined ? reader.len : reader.pos + length;
5325
+ const message = createBaseMetricRuleActivityEvent();
5326
+ while (reader.pos < end) {
5327
+ const tag = reader.uint32();
5328
+ switch (tag >>> 3) {
5329
+ case 1: {
5330
+ if (tag !== 10) {
5331
+ break;
5332
+ }
5333
+
5334
+ message.activityId = reader.string();
5335
+ continue;
5336
+ }
5337
+ case 2: {
5338
+ if (tag !== 18) {
5339
+ break;
5340
+ }
5341
+
5342
+ message.ruleId = reader.string();
5343
+ continue;
5344
+ }
5345
+ case 3: {
5346
+ if (tag !== 26) {
5347
+ break;
5348
+ }
5349
+
5350
+ message.ruleName = reader.string();
5351
+ continue;
5352
+ }
5353
+ case 4: {
5354
+ if (tag !== 32) {
5355
+ break;
5356
+ }
5357
+
5358
+ message.type = reader.int32() as any;
5359
+ continue;
5360
+ }
5361
+ case 5: {
5362
+ if (tag !== 42) {
5363
+ break;
5364
+ }
5365
+
5366
+ message.incidentId = reader.string();
5367
+ continue;
5368
+ }
5369
+ case 6: {
5370
+ if (tag !== 50) {
5371
+ break;
5372
+ }
5373
+
5374
+ message.expression = reader.string();
5375
+ continue;
5376
+ }
5377
+ case 7: {
5378
+ if (tag !== 57) {
5379
+ break;
5380
+ }
5381
+
5382
+ message.observedValue = reader.double();
5383
+ continue;
5384
+ }
5385
+ case 8: {
5386
+ if (tag !== 64) {
5387
+ break;
5388
+ }
5389
+
5390
+ message.severity = reader.int32() as any;
5391
+ continue;
5392
+ }
5393
+ case 9: {
5394
+ if (tag !== 74) {
5395
+ break;
5396
+ }
5397
+
5398
+ message.occurredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5399
+ continue;
5400
+ }
5401
+ }
5402
+ if ((tag & 7) === 4 || tag === 0) {
5403
+ break;
5404
+ }
5405
+ reader.skip(tag & 7);
5008
5406
  }
5009
- if ((tag & 7) === 4 || tag === 0) {
5010
- break;
5011
- }
5012
- reader.skip(tag & 7);
5407
+ return message;
5408
+ } finally {
5409
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5013
5410
  }
5014
- return message;
5015
5411
  },
5016
5412
 
5017
5413
  fromJSON(object: any): MetricRuleActivityEvent {
@@ -5104,7 +5500,7 @@ export const MetricRuleActivityEvent: MessageFns<MetricRuleActivityEvent> = {
5104
5500
 
5105
5501
  /**
5106
5502
  * RuleGatewayService provides web client access to rule management. Rules come
5107
- * in two symmetric kinds: trace rules (CEL over finished traces, matches) and
5503
+ * in two symmetric kinds: trace rules (CEL over trace state + events, matches) and
5108
5504
  * metric rules (PromQL threshold alerting). Metric-rule RPCs are added
5109
5505
  * alongside these.
5110
5506
  */