@miradorlabs/web-grpc 2.32.0 → 2.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.12.0
3
+ // protoc-gen-ts_proto v2.12.1
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/slo_gateway.proto
6
6
 
@@ -547,90 +547,99 @@ export const Slo: MessageFns<Slo> = {
547
547
 
548
548
  decode(input: BinaryReader | Uint8Array, length?: number): Slo {
549
549
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
550
- const end = length === undefined ? reader.len : reader.pos + length;
551
- const message = createBaseSlo();
552
- while (reader.pos < end) {
553
- const tag = reader.uint32();
554
- switch (tag >>> 3) {
555
- case 1: {
556
- if (tag !== 10) {
557
- break;
558
- }
559
-
560
- message.id = reader.string();
561
- continue;
562
- }
563
- case 2: {
564
- if (tag !== 18) {
565
- break;
566
- }
567
-
568
- message.organizationId = reader.string();
569
- continue;
570
- }
571
- case 3: {
572
- if (tag !== 26) {
573
- break;
574
- }
575
-
576
- message.projectId = reader.string();
577
- continue;
578
- }
579
- case 4: {
580
- if (tag !== 34) {
581
- break;
582
- }
583
-
584
- message.name = reader.string();
585
- continue;
586
- }
587
- case 5: {
588
- if (tag !== 42) {
589
- break;
590
- }
591
-
592
- message.description = reader.string();
593
- continue;
594
- }
595
- case 6: {
596
- if (tag !== 48) {
597
- break;
598
- }
599
-
600
- message.enabled = reader.bool();
601
- continue;
602
- }
603
- case 7: {
604
- if (tag !== 58) {
605
- break;
606
- }
607
-
608
- message.objective = SloObjective.decode(reader, reader.uint32());
609
- continue;
610
- }
611
- case 8: {
612
- if (tag !== 66) {
613
- break;
614
- }
615
-
616
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
617
- continue;
618
- }
619
- case 9: {
620
- if (tag !== 74) {
621
- break;
622
- }
623
-
624
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
625
- continue;
626
- }
627
- }
628
- if ((tag & 7) === 4 || tag === 0) {
629
- break;
550
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
551
+ if (previousRecursionDepth >= 100) {
552
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
553
+ }
554
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
555
+ try {
556
+ const end = length === undefined ? reader.len : reader.pos + length;
557
+ const message = createBaseSlo();
558
+ while (reader.pos < end) {
559
+ const tag = reader.uint32();
560
+ switch (tag >>> 3) {
561
+ case 1: {
562
+ if (tag !== 10) {
563
+ break;
564
+ }
565
+
566
+ message.id = reader.string();
567
+ continue;
568
+ }
569
+ case 2: {
570
+ if (tag !== 18) {
571
+ break;
572
+ }
573
+
574
+ message.organizationId = reader.string();
575
+ continue;
576
+ }
577
+ case 3: {
578
+ if (tag !== 26) {
579
+ break;
580
+ }
581
+
582
+ message.projectId = reader.string();
583
+ continue;
584
+ }
585
+ case 4: {
586
+ if (tag !== 34) {
587
+ break;
588
+ }
589
+
590
+ message.name = reader.string();
591
+ continue;
592
+ }
593
+ case 5: {
594
+ if (tag !== 42) {
595
+ break;
596
+ }
597
+
598
+ message.description = reader.string();
599
+ continue;
600
+ }
601
+ case 6: {
602
+ if (tag !== 48) {
603
+ break;
604
+ }
605
+
606
+ message.enabled = reader.bool();
607
+ continue;
608
+ }
609
+ case 7: {
610
+ if (tag !== 58) {
611
+ break;
612
+ }
613
+
614
+ message.objective = SloObjective.decode(reader, reader.uint32());
615
+ continue;
616
+ }
617
+ case 8: {
618
+ if (tag !== 66) {
619
+ break;
620
+ }
621
+
622
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
623
+ continue;
624
+ }
625
+ case 9: {
626
+ if (tag !== 74) {
627
+ break;
628
+ }
629
+
630
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
631
+ continue;
632
+ }
633
+ }
634
+ if ((tag & 7) === 4 || tag === 0) {
635
+ break;
636
+ }
637
+ reader.skip(tag & 7);
630
638
  }
631
- reader.skip(tag & 7);
639
+ return message;
640
+ } finally {
641
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
632
642
  }
633
- return message;
634
643
  },
635
644
 
636
645
  fromJSON(object: any): Slo {
@@ -741,58 +750,67 @@ export const SloObjective: MessageFns<SloObjective> = {
741
750
 
742
751
  decode(input: BinaryReader | Uint8Array, length?: number): SloObjective {
743
752
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
744
- const end = length === undefined ? reader.len : reader.pos + length;
745
- const message = createBaseSloObjective();
746
- while (reader.pos < end) {
747
- const tag = reader.uint32();
748
- switch (tag >>> 3) {
749
- case 1: {
750
- if (tag !== 10) {
751
- break;
752
- }
753
-
754
- message.metricName = reader.string();
755
- continue;
756
- }
757
- case 2: {
758
- if (tag !== 18) {
759
- break;
760
- }
761
-
762
- message.groupBy.push(reader.string());
763
- continue;
764
- }
765
- case 3: {
766
- if (tag !== 25) {
767
- break;
768
- }
769
-
770
- message.target = reader.double();
771
- continue;
772
- }
773
- case 4: {
774
- if (tag !== 32) {
775
- break;
776
- }
777
-
778
- message.windowSeconds = longToNumber(reader.int64());
779
- continue;
780
- }
781
- case 5: {
782
- if (tag !== 42) {
783
- break;
784
- }
785
-
786
- message.gaugeThreshold = GaugeThresholdSli.decode(reader, reader.uint32());
787
- continue;
788
- }
789
- }
790
- if ((tag & 7) === 4 || tag === 0) {
791
- break;
753
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
754
+ if (previousRecursionDepth >= 100) {
755
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
756
+ }
757
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
758
+ try {
759
+ const end = length === undefined ? reader.len : reader.pos + length;
760
+ const message = createBaseSloObjective();
761
+ while (reader.pos < end) {
762
+ const tag = reader.uint32();
763
+ switch (tag >>> 3) {
764
+ case 1: {
765
+ if (tag !== 10) {
766
+ break;
767
+ }
768
+
769
+ message.metricName = reader.string();
770
+ continue;
771
+ }
772
+ case 2: {
773
+ if (tag !== 18) {
774
+ break;
775
+ }
776
+
777
+ message.groupBy.push(reader.string());
778
+ continue;
779
+ }
780
+ case 3: {
781
+ if (tag !== 25) {
782
+ break;
783
+ }
784
+
785
+ message.target = reader.double();
786
+ continue;
787
+ }
788
+ case 4: {
789
+ if (tag !== 32) {
790
+ break;
791
+ }
792
+
793
+ message.windowSeconds = longToNumber(reader.int64());
794
+ continue;
795
+ }
796
+ case 5: {
797
+ if (tag !== 42) {
798
+ break;
799
+ }
800
+
801
+ message.gaugeThreshold = GaugeThresholdSli.decode(reader, reader.uint32());
802
+ continue;
803
+ }
804
+ }
805
+ if ((tag & 7) === 4 || tag === 0) {
806
+ break;
807
+ }
808
+ reader.skip(tag & 7);
792
809
  }
793
- reader.skip(tag & 7);
810
+ return message;
811
+ } finally {
812
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
794
813
  }
795
- return message;
796
814
  },
797
815
 
798
816
  fromJSON(object: any): SloObjective {
@@ -874,34 +892,43 @@ export const GaugeThresholdSli: MessageFns<GaugeThresholdSli> = {
874
892
 
875
893
  decode(input: BinaryReader | Uint8Array, length?: number): GaugeThresholdSli {
876
894
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
877
- const end = length === undefined ? reader.len : reader.pos + length;
878
- const message = createBaseGaugeThresholdSli();
879
- while (reader.pos < end) {
880
- const tag = reader.uint32();
881
- switch (tag >>> 3) {
882
- case 1: {
883
- if (tag !== 8) {
884
- break;
885
- }
886
-
887
- message.comparator = reader.int32() as any;
888
- continue;
889
- }
890
- case 2: {
891
- if (tag !== 17) {
892
- break;
893
- }
894
-
895
- message.threshold = reader.double();
896
- continue;
897
- }
898
- }
899
- if ((tag & 7) === 4 || tag === 0) {
900
- break;
895
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
896
+ if (previousRecursionDepth >= 100) {
897
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
898
+ }
899
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
900
+ try {
901
+ const end = length === undefined ? reader.len : reader.pos + length;
902
+ const message = createBaseGaugeThresholdSli();
903
+ while (reader.pos < end) {
904
+ const tag = reader.uint32();
905
+ switch (tag >>> 3) {
906
+ case 1: {
907
+ if (tag !== 8) {
908
+ break;
909
+ }
910
+
911
+ message.comparator = reader.int32() as any;
912
+ continue;
913
+ }
914
+ case 2: {
915
+ if (tag !== 17) {
916
+ break;
917
+ }
918
+
919
+ message.threshold = reader.double();
920
+ continue;
921
+ }
922
+ }
923
+ if ((tag & 7) === 4 || tag === 0) {
924
+ break;
925
+ }
926
+ reader.skip(tag & 7);
901
927
  }
902
- reader.skip(tag & 7);
928
+ return message;
929
+ } finally {
930
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
903
931
  }
904
- return message;
905
932
  },
906
933
 
907
934
  fromJSON(object: any): GaugeThresholdSli {
@@ -947,29 +974,38 @@ export const SloCorridorSelector: MessageFns<SloCorridorSelector> = {
947
974
 
948
975
  decode(input: BinaryReader | Uint8Array, length?: number): SloCorridorSelector {
949
976
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
950
- const end = length === undefined ? reader.len : reader.pos + length;
951
- const message = createBaseSloCorridorSelector();
952
- while (reader.pos < end) {
953
- const tag = reader.uint32();
954
- switch (tag >>> 3) {
955
- case 1: {
956
- if (tag !== 10) {
957
- break;
958
- }
959
-
960
- const entry1 = SloCorridorSelector_ValuesEntry.decode(reader, reader.uint32());
961
- if (entry1.value !== undefined) {
962
- message.values[entry1.key] = entry1.value;
963
- }
964
- continue;
965
- }
977
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
978
+ if (previousRecursionDepth >= 100) {
979
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
980
+ }
981
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
982
+ try {
983
+ const end = length === undefined ? reader.len : reader.pos + length;
984
+ const message = createBaseSloCorridorSelector();
985
+ while (reader.pos < end) {
986
+ const tag = reader.uint32();
987
+ switch (tag >>> 3) {
988
+ case 1: {
989
+ if (tag !== 10) {
990
+ break;
991
+ }
992
+
993
+ const entry1 = SloCorridorSelector_ValuesEntry.decode(reader, reader.uint32());
994
+ if (entry1.value !== undefined) {
995
+ message.values[entry1.key] = entry1.value;
996
+ }
997
+ continue;
998
+ }
999
+ }
1000
+ if ((tag & 7) === 4 || tag === 0) {
1001
+ break;
1002
+ }
1003
+ reader.skip(tag & 7);
966
1004
  }
967
- if ((tag & 7) === 4 || tag === 0) {
968
- break;
969
- }
970
- reader.skip(tag & 7);
1005
+ return message;
1006
+ } finally {
1007
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
971
1008
  }
972
- return message;
973
1009
  },
974
1010
 
975
1011
  fromJSON(object: any): SloCorridorSelector {
@@ -977,7 +1013,12 @@ export const SloCorridorSelector: MessageFns<SloCorridorSelector> = {
977
1013
  values: isObject(object.values)
978
1014
  ? (globalThis.Object.entries(object.values) as [string, any][]).reduce(
979
1015
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
980
- acc[key] = globalThis.String(value);
1016
+ globalThis.Object.defineProperty(acc, key, {
1017
+ value: globalThis.String(value),
1018
+ enumerable: true,
1019
+ configurable: true,
1020
+ writable: true,
1021
+ });
981
1022
  return acc;
982
1023
  },
983
1024
  {},
@@ -1035,34 +1076,43 @@ export const SloCorridorSelector_ValuesEntry: MessageFns<SloCorridorSelector_Val
1035
1076
 
1036
1077
  decode(input: BinaryReader | Uint8Array, length?: number): SloCorridorSelector_ValuesEntry {
1037
1078
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1038
- const end = length === undefined ? reader.len : reader.pos + length;
1039
- const message = createBaseSloCorridorSelector_ValuesEntry();
1040
- while (reader.pos < end) {
1041
- const tag = reader.uint32();
1042
- switch (tag >>> 3) {
1043
- case 1: {
1044
- if (tag !== 10) {
1045
- break;
1046
- }
1047
-
1048
- message.key = reader.string();
1049
- continue;
1050
- }
1051
- case 2: {
1052
- if (tag !== 18) {
1053
- break;
1054
- }
1055
-
1056
- message.value = reader.string();
1057
- continue;
1058
- }
1059
- }
1060
- if ((tag & 7) === 4 || tag === 0) {
1061
- break;
1079
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1080
+ if (previousRecursionDepth >= 100) {
1081
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1082
+ }
1083
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1084
+ try {
1085
+ const end = length === undefined ? reader.len : reader.pos + length;
1086
+ const message = createBaseSloCorridorSelector_ValuesEntry();
1087
+ while (reader.pos < end) {
1088
+ const tag = reader.uint32();
1089
+ switch (tag >>> 3) {
1090
+ case 1: {
1091
+ if (tag !== 10) {
1092
+ break;
1093
+ }
1094
+
1095
+ message.key = reader.string();
1096
+ continue;
1097
+ }
1098
+ case 2: {
1099
+ if (tag !== 18) {
1100
+ break;
1101
+ }
1102
+
1103
+ message.value = reader.string();
1104
+ continue;
1105
+ }
1106
+ }
1107
+ if ((tag & 7) === 4 || tag === 0) {
1108
+ break;
1109
+ }
1110
+ reader.skip(tag & 7);
1062
1111
  }
1063
- reader.skip(tag & 7);
1112
+ return message;
1113
+ } finally {
1114
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1064
1115
  }
1065
- return message;
1066
1116
  },
1067
1117
 
1068
1118
  fromJSON(object: any): SloCorridorSelector_ValuesEntry {
@@ -1125,66 +1175,75 @@ export const CreateSloRequest: MessageFns<CreateSloRequest> = {
1125
1175
 
1126
1176
  decode(input: BinaryReader | Uint8Array, length?: number): CreateSloRequest {
1127
1177
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1128
- const end = length === undefined ? reader.len : reader.pos + length;
1129
- const message = createBaseCreateSloRequest();
1130
- while (reader.pos < end) {
1131
- const tag = reader.uint32();
1132
- switch (tag >>> 3) {
1133
- case 1: {
1134
- if (tag !== 10) {
1135
- break;
1136
- }
1137
-
1138
- message.organizationId = reader.string();
1139
- continue;
1140
- }
1141
- case 2: {
1142
- if (tag !== 18) {
1143
- break;
1144
- }
1145
-
1146
- message.projectId = reader.string();
1147
- continue;
1148
- }
1149
- case 3: {
1150
- if (tag !== 26) {
1151
- break;
1152
- }
1153
-
1154
- message.name = reader.string();
1155
- continue;
1156
- }
1157
- case 4: {
1158
- if (tag !== 34) {
1159
- break;
1160
- }
1161
-
1162
- message.description = reader.string();
1163
- continue;
1164
- }
1165
- case 5: {
1166
- if (tag !== 40) {
1167
- break;
1168
- }
1169
-
1170
- message.enabled = reader.bool();
1171
- continue;
1172
- }
1173
- case 6: {
1174
- if (tag !== 50) {
1175
- break;
1176
- }
1177
-
1178
- message.objective = SloObjective.decode(reader, reader.uint32());
1179
- continue;
1180
- }
1181
- }
1182
- if ((tag & 7) === 4 || tag === 0) {
1183
- break;
1178
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1179
+ if (previousRecursionDepth >= 100) {
1180
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1181
+ }
1182
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1183
+ try {
1184
+ const end = length === undefined ? reader.len : reader.pos + length;
1185
+ const message = createBaseCreateSloRequest();
1186
+ while (reader.pos < end) {
1187
+ const tag = reader.uint32();
1188
+ switch (tag >>> 3) {
1189
+ case 1: {
1190
+ if (tag !== 10) {
1191
+ break;
1192
+ }
1193
+
1194
+ message.organizationId = reader.string();
1195
+ continue;
1196
+ }
1197
+ case 2: {
1198
+ if (tag !== 18) {
1199
+ break;
1200
+ }
1201
+
1202
+ message.projectId = reader.string();
1203
+ continue;
1204
+ }
1205
+ case 3: {
1206
+ if (tag !== 26) {
1207
+ break;
1208
+ }
1209
+
1210
+ message.name = reader.string();
1211
+ continue;
1212
+ }
1213
+ case 4: {
1214
+ if (tag !== 34) {
1215
+ break;
1216
+ }
1217
+
1218
+ message.description = reader.string();
1219
+ continue;
1220
+ }
1221
+ case 5: {
1222
+ if (tag !== 40) {
1223
+ break;
1224
+ }
1225
+
1226
+ message.enabled = reader.bool();
1227
+ continue;
1228
+ }
1229
+ case 6: {
1230
+ if (tag !== 50) {
1231
+ break;
1232
+ }
1233
+
1234
+ message.objective = SloObjective.decode(reader, reader.uint32());
1235
+ continue;
1236
+ }
1237
+ }
1238
+ if ((tag & 7) === 4 || tag === 0) {
1239
+ break;
1240
+ }
1241
+ reader.skip(tag & 7);
1184
1242
  }
1185
- reader.skip(tag & 7);
1243
+ return message;
1244
+ } finally {
1245
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1186
1246
  }
1187
- return message;
1188
1247
  },
1189
1248
 
1190
1249
  fromJSON(object: any): CreateSloRequest {
@@ -1263,34 +1322,43 @@ export const CreateSloResponse: MessageFns<CreateSloResponse> = {
1263
1322
 
1264
1323
  decode(input: BinaryReader | Uint8Array, length?: number): CreateSloResponse {
1265
1324
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1266
- const end = length === undefined ? reader.len : reader.pos + length;
1267
- const message = createBaseCreateSloResponse();
1268
- while (reader.pos < end) {
1269
- const tag = reader.uint32();
1270
- switch (tag >>> 3) {
1271
- case 1: {
1272
- if (tag !== 10) {
1273
- break;
1274
- }
1275
-
1276
- message.status = ResponseStatus.decode(reader, reader.uint32());
1277
- continue;
1278
- }
1279
- case 2: {
1280
- if (tag !== 18) {
1281
- break;
1282
- }
1283
-
1284
- message.slo = Slo.decode(reader, reader.uint32());
1285
- continue;
1286
- }
1287
- }
1288
- if ((tag & 7) === 4 || tag === 0) {
1289
- break;
1325
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1326
+ if (previousRecursionDepth >= 100) {
1327
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1328
+ }
1329
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1330
+ try {
1331
+ const end = length === undefined ? reader.len : reader.pos + length;
1332
+ const message = createBaseCreateSloResponse();
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.status = ResponseStatus.decode(reader, reader.uint32());
1342
+ continue;
1343
+ }
1344
+ case 2: {
1345
+ if (tag !== 18) {
1346
+ break;
1347
+ }
1348
+
1349
+ message.slo = Slo.decode(reader, reader.uint32());
1350
+ continue;
1351
+ }
1352
+ }
1353
+ if ((tag & 7) === 4 || tag === 0) {
1354
+ break;
1355
+ }
1356
+ reader.skip(tag & 7);
1290
1357
  }
1291
- reader.skip(tag & 7);
1358
+ return message;
1359
+ } finally {
1360
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1292
1361
  }
1293
- return message;
1294
1362
  },
1295
1363
 
1296
1364
  fromJSON(object: any): CreateSloResponse {
@@ -1344,42 +1412,51 @@ export const GetSloRequest: MessageFns<GetSloRequest> = {
1344
1412
 
1345
1413
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloRequest {
1346
1414
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1347
- const end = length === undefined ? reader.len : reader.pos + length;
1348
- const message = createBaseGetSloRequest();
1349
- while (reader.pos < end) {
1350
- const tag = reader.uint32();
1351
- switch (tag >>> 3) {
1352
- case 1: {
1353
- if (tag !== 10) {
1354
- break;
1355
- }
1356
-
1357
- message.organizationId = reader.string();
1358
- continue;
1359
- }
1360
- case 2: {
1361
- if (tag !== 18) {
1362
- break;
1363
- }
1364
-
1365
- message.projectId = reader.string();
1366
- continue;
1367
- }
1368
- case 3: {
1369
- if (tag !== 26) {
1370
- break;
1371
- }
1372
-
1373
- message.sloId = reader.string();
1374
- continue;
1375
- }
1376
- }
1377
- if ((tag & 7) === 4 || tag === 0) {
1378
- break;
1415
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1416
+ if (previousRecursionDepth >= 100) {
1417
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1418
+ }
1419
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1420
+ try {
1421
+ const end = length === undefined ? reader.len : reader.pos + length;
1422
+ const message = createBaseGetSloRequest();
1423
+ while (reader.pos < end) {
1424
+ const tag = reader.uint32();
1425
+ switch (tag >>> 3) {
1426
+ case 1: {
1427
+ if (tag !== 10) {
1428
+ break;
1429
+ }
1430
+
1431
+ message.organizationId = reader.string();
1432
+ continue;
1433
+ }
1434
+ case 2: {
1435
+ if (tag !== 18) {
1436
+ break;
1437
+ }
1438
+
1439
+ message.projectId = reader.string();
1440
+ continue;
1441
+ }
1442
+ case 3: {
1443
+ if (tag !== 26) {
1444
+ break;
1445
+ }
1446
+
1447
+ message.sloId = reader.string();
1448
+ continue;
1449
+ }
1450
+ }
1451
+ if ((tag & 7) === 4 || tag === 0) {
1452
+ break;
1453
+ }
1454
+ reader.skip(tag & 7);
1379
1455
  }
1380
- reader.skip(tag & 7);
1456
+ return message;
1457
+ } finally {
1458
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1381
1459
  }
1382
- return message;
1383
1460
  },
1384
1461
 
1385
1462
  fromJSON(object: any): GetSloRequest {
@@ -1445,34 +1522,43 @@ export const GetSloResponse: MessageFns<GetSloResponse> = {
1445
1522
 
1446
1523
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloResponse {
1447
1524
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1448
- const end = length === undefined ? reader.len : reader.pos + length;
1449
- const message = createBaseGetSloResponse();
1450
- while (reader.pos < end) {
1451
- const tag = reader.uint32();
1452
- switch (tag >>> 3) {
1453
- case 1: {
1454
- if (tag !== 10) {
1455
- break;
1456
- }
1457
-
1458
- message.status = ResponseStatus.decode(reader, reader.uint32());
1459
- continue;
1460
- }
1461
- case 2: {
1462
- if (tag !== 18) {
1463
- break;
1464
- }
1465
-
1466
- message.slo = Slo.decode(reader, reader.uint32());
1467
- continue;
1468
- }
1469
- }
1470
- if ((tag & 7) === 4 || tag === 0) {
1471
- break;
1525
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1526
+ if (previousRecursionDepth >= 100) {
1527
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1528
+ }
1529
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1530
+ try {
1531
+ const end = length === undefined ? reader.len : reader.pos + length;
1532
+ const message = createBaseGetSloResponse();
1533
+ while (reader.pos < end) {
1534
+ const tag = reader.uint32();
1535
+ switch (tag >>> 3) {
1536
+ case 1: {
1537
+ if (tag !== 10) {
1538
+ break;
1539
+ }
1540
+
1541
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1542
+ continue;
1543
+ }
1544
+ case 2: {
1545
+ if (tag !== 18) {
1546
+ break;
1547
+ }
1548
+
1549
+ message.slo = Slo.decode(reader, reader.uint32());
1550
+ continue;
1551
+ }
1552
+ }
1553
+ if ((tag & 7) === 4 || tag === 0) {
1554
+ break;
1555
+ }
1556
+ reader.skip(tag & 7);
1472
1557
  }
1473
- reader.skip(tag & 7);
1558
+ return message;
1559
+ } finally {
1560
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1474
1561
  }
1475
- return message;
1476
1562
  },
1477
1563
 
1478
1564
  fromJSON(object: any): GetSloResponse {
@@ -1523,34 +1609,43 @@ export const ListSlosRequest: MessageFns<ListSlosRequest> = {
1523
1609
 
1524
1610
  decode(input: BinaryReader | Uint8Array, length?: number): ListSlosRequest {
1525
1611
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1526
- const end = length === undefined ? reader.len : reader.pos + length;
1527
- const message = createBaseListSlosRequest();
1528
- while (reader.pos < end) {
1529
- const tag = reader.uint32();
1530
- switch (tag >>> 3) {
1531
- case 1: {
1532
- if (tag !== 10) {
1533
- break;
1534
- }
1535
-
1536
- message.organizationId = reader.string();
1537
- continue;
1538
- }
1539
- case 2: {
1540
- if (tag !== 18) {
1541
- break;
1542
- }
1543
-
1544
- message.projectId = reader.string();
1545
- continue;
1546
- }
1547
- }
1548
- if ((tag & 7) === 4 || tag === 0) {
1549
- break;
1612
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1613
+ if (previousRecursionDepth >= 100) {
1614
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1615
+ }
1616
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1617
+ try {
1618
+ const end = length === undefined ? reader.len : reader.pos + length;
1619
+ const message = createBaseListSlosRequest();
1620
+ while (reader.pos < end) {
1621
+ const tag = reader.uint32();
1622
+ switch (tag >>> 3) {
1623
+ case 1: {
1624
+ if (tag !== 10) {
1625
+ break;
1626
+ }
1627
+
1628
+ message.organizationId = reader.string();
1629
+ continue;
1630
+ }
1631
+ case 2: {
1632
+ if (tag !== 18) {
1633
+ break;
1634
+ }
1635
+
1636
+ message.projectId = reader.string();
1637
+ continue;
1638
+ }
1639
+ }
1640
+ if ((tag & 7) === 4 || tag === 0) {
1641
+ break;
1642
+ }
1643
+ reader.skip(tag & 7);
1550
1644
  }
1551
- reader.skip(tag & 7);
1645
+ return message;
1646
+ } finally {
1647
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1552
1648
  }
1553
- return message;
1554
1649
  },
1555
1650
 
1556
1651
  fromJSON(object: any): ListSlosRequest {
@@ -1607,34 +1702,43 @@ export const ListSlosResponse: MessageFns<ListSlosResponse> = {
1607
1702
 
1608
1703
  decode(input: BinaryReader | Uint8Array, length?: number): ListSlosResponse {
1609
1704
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1610
- const end = length === undefined ? reader.len : reader.pos + length;
1611
- const message = createBaseListSlosResponse();
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.slos.push(Slo.decode(reader, reader.uint32()));
1629
- continue;
1630
- }
1705
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1706
+ if (previousRecursionDepth >= 100) {
1707
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1708
+ }
1709
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1710
+ try {
1711
+ const end = length === undefined ? reader.len : reader.pos + length;
1712
+ const message = createBaseListSlosResponse();
1713
+ while (reader.pos < end) {
1714
+ const tag = reader.uint32();
1715
+ switch (tag >>> 3) {
1716
+ case 1: {
1717
+ if (tag !== 10) {
1718
+ break;
1719
+ }
1720
+
1721
+ message.status = ResponseStatus.decode(reader, reader.uint32());
1722
+ continue;
1723
+ }
1724
+ case 2: {
1725
+ if (tag !== 18) {
1726
+ break;
1727
+ }
1728
+
1729
+ message.slos.push(Slo.decode(reader, reader.uint32()));
1730
+ continue;
1731
+ }
1732
+ }
1733
+ if ((tag & 7) === 4 || tag === 0) {
1734
+ break;
1735
+ }
1736
+ reader.skip(tag & 7);
1631
1737
  }
1632
- if ((tag & 7) === 4 || tag === 0) {
1633
- break;
1634
- }
1635
- reader.skip(tag & 7);
1738
+ return message;
1739
+ } finally {
1740
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1636
1741
  }
1637
- return message;
1638
1742
  },
1639
1743
 
1640
1744
  fromJSON(object: any): ListSlosResponse {
@@ -1691,50 +1795,59 @@ export const UpdateSloRequest: MessageFns<UpdateSloRequest> = {
1691
1795
 
1692
1796
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateSloRequest {
1693
1797
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1694
- const end = length === undefined ? reader.len : reader.pos + length;
1695
- const message = createBaseUpdateSloRequest();
1696
- while (reader.pos < end) {
1697
- const tag = reader.uint32();
1698
- switch (tag >>> 3) {
1699
- case 1: {
1700
- if (tag !== 10) {
1701
- break;
1702
- }
1703
-
1704
- message.organizationId = reader.string();
1705
- continue;
1706
- }
1707
- case 2: {
1708
- if (tag !== 18) {
1709
- break;
1710
- }
1711
-
1712
- message.projectId = reader.string();
1713
- continue;
1714
- }
1715
- case 3: {
1716
- if (tag !== 26) {
1717
- break;
1718
- }
1719
-
1720
- message.sloId = reader.string();
1721
- continue;
1722
- }
1723
- case 4: {
1724
- if (tag !== 34) {
1725
- break;
1726
- }
1727
-
1728
- message.updates = UpdateSloRequest_SloUpdates.decode(reader, reader.uint32());
1729
- continue;
1730
- }
1798
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1799
+ if (previousRecursionDepth >= 100) {
1800
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1801
+ }
1802
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1803
+ try {
1804
+ const end = length === undefined ? reader.len : reader.pos + length;
1805
+ const message = createBaseUpdateSloRequest();
1806
+ while (reader.pos < end) {
1807
+ const tag = reader.uint32();
1808
+ switch (tag >>> 3) {
1809
+ case 1: {
1810
+ if (tag !== 10) {
1811
+ break;
1812
+ }
1813
+
1814
+ message.organizationId = reader.string();
1815
+ continue;
1816
+ }
1817
+ case 2: {
1818
+ if (tag !== 18) {
1819
+ break;
1820
+ }
1821
+
1822
+ message.projectId = reader.string();
1823
+ continue;
1824
+ }
1825
+ case 3: {
1826
+ if (tag !== 26) {
1827
+ break;
1828
+ }
1829
+
1830
+ message.sloId = reader.string();
1831
+ continue;
1832
+ }
1833
+ case 4: {
1834
+ if (tag !== 34) {
1835
+ break;
1836
+ }
1837
+
1838
+ message.updates = UpdateSloRequest_SloUpdates.decode(reader, reader.uint32());
1839
+ continue;
1840
+ }
1841
+ }
1842
+ if ((tag & 7) === 4 || tag === 0) {
1843
+ break;
1844
+ }
1845
+ reader.skip(tag & 7);
1731
1846
  }
1732
- if ((tag & 7) === 4 || tag === 0) {
1733
- break;
1734
- }
1735
- reader.skip(tag & 7);
1847
+ return message;
1848
+ } finally {
1849
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1736
1850
  }
1737
- return message;
1738
1851
  },
1739
1852
 
1740
1853
  fromJSON(object: any): UpdateSloRequest {
@@ -1813,50 +1926,59 @@ export const UpdateSloRequest_SloUpdates: MessageFns<UpdateSloRequest_SloUpdates
1813
1926
 
1814
1927
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateSloRequest_SloUpdates {
1815
1928
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1816
- const end = length === undefined ? reader.len : reader.pos + length;
1817
- const message = createBaseUpdateSloRequest_SloUpdates();
1818
- while (reader.pos < end) {
1819
- const tag = reader.uint32();
1820
- switch (tag >>> 3) {
1821
- case 1: {
1822
- if (tag !== 10) {
1823
- break;
1824
- }
1825
-
1826
- message.name = reader.string();
1827
- continue;
1828
- }
1829
- case 2: {
1830
- if (tag !== 18) {
1831
- break;
1832
- }
1833
-
1834
- message.description = reader.string();
1835
- continue;
1836
- }
1837
- case 3: {
1838
- if (tag !== 24) {
1839
- break;
1840
- }
1841
-
1842
- message.enabled = reader.bool();
1843
- continue;
1844
- }
1845
- case 4: {
1846
- if (tag !== 34) {
1847
- break;
1848
- }
1849
-
1850
- message.objective = SloObjective.decode(reader, reader.uint32());
1851
- continue;
1852
- }
1853
- }
1854
- if ((tag & 7) === 4 || tag === 0) {
1855
- break;
1929
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1930
+ if (previousRecursionDepth >= 100) {
1931
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1932
+ }
1933
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1934
+ try {
1935
+ const end = length === undefined ? reader.len : reader.pos + length;
1936
+ const message = createBaseUpdateSloRequest_SloUpdates();
1937
+ while (reader.pos < end) {
1938
+ const tag = reader.uint32();
1939
+ switch (tag >>> 3) {
1940
+ case 1: {
1941
+ if (tag !== 10) {
1942
+ break;
1943
+ }
1944
+
1945
+ message.name = reader.string();
1946
+ continue;
1947
+ }
1948
+ case 2: {
1949
+ if (tag !== 18) {
1950
+ break;
1951
+ }
1952
+
1953
+ message.description = reader.string();
1954
+ continue;
1955
+ }
1956
+ case 3: {
1957
+ if (tag !== 24) {
1958
+ break;
1959
+ }
1960
+
1961
+ message.enabled = reader.bool();
1962
+ continue;
1963
+ }
1964
+ case 4: {
1965
+ if (tag !== 34) {
1966
+ break;
1967
+ }
1968
+
1969
+ message.objective = SloObjective.decode(reader, reader.uint32());
1970
+ continue;
1971
+ }
1972
+ }
1973
+ if ((tag & 7) === 4 || tag === 0) {
1974
+ break;
1975
+ }
1976
+ reader.skip(tag & 7);
1856
1977
  }
1857
- reader.skip(tag & 7);
1978
+ return message;
1979
+ } finally {
1980
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1858
1981
  }
1859
- return message;
1860
1982
  },
1861
1983
 
1862
1984
  fromJSON(object: any): UpdateSloRequest_SloUpdates {
@@ -1917,34 +2039,43 @@ export const UpdateSloResponse: MessageFns<UpdateSloResponse> = {
1917
2039
 
1918
2040
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateSloResponse {
1919
2041
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1920
- const end = length === undefined ? reader.len : reader.pos + length;
1921
- const message = createBaseUpdateSloResponse();
1922
- while (reader.pos < end) {
1923
- const tag = reader.uint32();
1924
- switch (tag >>> 3) {
1925
- case 1: {
1926
- if (tag !== 10) {
1927
- break;
1928
- }
1929
-
1930
- message.status = ResponseStatus.decode(reader, reader.uint32());
1931
- continue;
1932
- }
1933
- case 2: {
1934
- if (tag !== 18) {
1935
- break;
1936
- }
1937
-
1938
- message.slo = Slo.decode(reader, reader.uint32());
1939
- continue;
1940
- }
1941
- }
1942
- if ((tag & 7) === 4 || tag === 0) {
1943
- break;
2042
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2043
+ if (previousRecursionDepth >= 100) {
2044
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2045
+ }
2046
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2047
+ try {
2048
+ const end = length === undefined ? reader.len : reader.pos + length;
2049
+ const message = createBaseUpdateSloResponse();
2050
+ while (reader.pos < end) {
2051
+ const tag = reader.uint32();
2052
+ switch (tag >>> 3) {
2053
+ case 1: {
2054
+ if (tag !== 10) {
2055
+ break;
2056
+ }
2057
+
2058
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2059
+ continue;
2060
+ }
2061
+ case 2: {
2062
+ if (tag !== 18) {
2063
+ break;
2064
+ }
2065
+
2066
+ message.slo = Slo.decode(reader, reader.uint32());
2067
+ continue;
2068
+ }
2069
+ }
2070
+ if ((tag & 7) === 4 || tag === 0) {
2071
+ break;
2072
+ }
2073
+ reader.skip(tag & 7);
1944
2074
  }
1945
- reader.skip(tag & 7);
2075
+ return message;
2076
+ } finally {
2077
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1946
2078
  }
1947
- return message;
1948
2079
  },
1949
2080
 
1950
2081
  fromJSON(object: any): UpdateSloResponse {
@@ -1998,42 +2129,51 @@ export const DeleteSloRequest: MessageFns<DeleteSloRequest> = {
1998
2129
 
1999
2130
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteSloRequest {
2000
2131
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2001
- const end = length === undefined ? reader.len : reader.pos + length;
2002
- const message = createBaseDeleteSloRequest();
2003
- while (reader.pos < end) {
2004
- const tag = reader.uint32();
2005
- switch (tag >>> 3) {
2006
- case 1: {
2007
- if (tag !== 10) {
2008
- break;
2009
- }
2010
-
2011
- message.organizationId = reader.string();
2012
- continue;
2013
- }
2014
- case 2: {
2015
- if (tag !== 18) {
2016
- break;
2017
- }
2018
-
2019
- message.projectId = reader.string();
2020
- continue;
2021
- }
2022
- case 3: {
2023
- if (tag !== 26) {
2024
- break;
2025
- }
2026
-
2027
- message.sloId = reader.string();
2028
- continue;
2029
- }
2030
- }
2031
- if ((tag & 7) === 4 || tag === 0) {
2032
- break;
2132
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2133
+ if (previousRecursionDepth >= 100) {
2134
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2135
+ }
2136
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2137
+ try {
2138
+ const end = length === undefined ? reader.len : reader.pos + length;
2139
+ const message = createBaseDeleteSloRequest();
2140
+ while (reader.pos < end) {
2141
+ const tag = reader.uint32();
2142
+ switch (tag >>> 3) {
2143
+ case 1: {
2144
+ if (tag !== 10) {
2145
+ break;
2146
+ }
2147
+
2148
+ message.organizationId = reader.string();
2149
+ continue;
2150
+ }
2151
+ case 2: {
2152
+ if (tag !== 18) {
2153
+ break;
2154
+ }
2155
+
2156
+ message.projectId = reader.string();
2157
+ continue;
2158
+ }
2159
+ case 3: {
2160
+ if (tag !== 26) {
2161
+ break;
2162
+ }
2163
+
2164
+ message.sloId = reader.string();
2165
+ continue;
2166
+ }
2167
+ }
2168
+ if ((tag & 7) === 4 || tag === 0) {
2169
+ break;
2170
+ }
2171
+ reader.skip(tag & 7);
2033
2172
  }
2034
- reader.skip(tag & 7);
2173
+ return message;
2174
+ } finally {
2175
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2035
2176
  }
2036
- return message;
2037
2177
  },
2038
2178
 
2039
2179
  fromJSON(object: any): DeleteSloRequest {
@@ -2096,26 +2236,35 @@ export const DeleteSloResponse: MessageFns<DeleteSloResponse> = {
2096
2236
 
2097
2237
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteSloResponse {
2098
2238
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2099
- const end = length === undefined ? reader.len : reader.pos + length;
2100
- const message = createBaseDeleteSloResponse();
2101
- while (reader.pos < end) {
2102
- const tag = reader.uint32();
2103
- switch (tag >>> 3) {
2104
- case 1: {
2105
- if (tag !== 10) {
2106
- break;
2107
- }
2108
-
2109
- message.status = ResponseStatus.decode(reader, reader.uint32());
2110
- continue;
2111
- }
2112
- }
2113
- if ((tag & 7) === 4 || tag === 0) {
2114
- break;
2239
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2240
+ if (previousRecursionDepth >= 100) {
2241
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2242
+ }
2243
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2244
+ try {
2245
+ const end = length === undefined ? reader.len : reader.pos + length;
2246
+ const message = createBaseDeleteSloResponse();
2247
+ while (reader.pos < end) {
2248
+ const tag = reader.uint32();
2249
+ switch (tag >>> 3) {
2250
+ case 1: {
2251
+ if (tag !== 10) {
2252
+ break;
2253
+ }
2254
+
2255
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2256
+ continue;
2257
+ }
2258
+ }
2259
+ if ((tag & 7) === 4 || tag === 0) {
2260
+ break;
2261
+ }
2262
+ reader.skip(tag & 7);
2115
2263
  }
2116
- reader.skip(tag & 7);
2264
+ return message;
2265
+ } finally {
2266
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2117
2267
  }
2118
- return message;
2119
2268
  },
2120
2269
 
2121
2270
  fromJSON(object: any): DeleteSloResponse {
@@ -2168,58 +2317,67 @@ export const GetSloStatusRequest: MessageFns<GetSloStatusRequest> = {
2168
2317
 
2169
2318
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloStatusRequest {
2170
2319
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2171
- const end = length === undefined ? reader.len : reader.pos + length;
2172
- const message = createBaseGetSloStatusRequest();
2173
- while (reader.pos < end) {
2174
- const tag = reader.uint32();
2175
- switch (tag >>> 3) {
2176
- case 1: {
2177
- if (tag !== 10) {
2178
- break;
2179
- }
2180
-
2181
- message.organizationId = reader.string();
2182
- continue;
2183
- }
2184
- case 2: {
2185
- if (tag !== 18) {
2186
- break;
2187
- }
2188
-
2189
- message.projectId = reader.string();
2190
- continue;
2191
- }
2192
- case 3: {
2193
- if (tag !== 26) {
2194
- break;
2195
- }
2196
-
2197
- message.sloId = reader.string();
2198
- continue;
2199
- }
2200
- case 4: {
2201
- if (tag !== 34) {
2202
- break;
2203
- }
2204
-
2205
- message.evaluationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2206
- continue;
2207
- }
2208
- case 5: {
2209
- if (tag !== 42) {
2210
- break;
2211
- }
2212
-
2213
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2214
- continue;
2215
- }
2216
- }
2217
- if ((tag & 7) === 4 || tag === 0) {
2218
- break;
2320
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2321
+ if (previousRecursionDepth >= 100) {
2322
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2323
+ }
2324
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2325
+ try {
2326
+ const end = length === undefined ? reader.len : reader.pos + length;
2327
+ const message = createBaseGetSloStatusRequest();
2328
+ while (reader.pos < end) {
2329
+ const tag = reader.uint32();
2330
+ switch (tag >>> 3) {
2331
+ case 1: {
2332
+ if (tag !== 10) {
2333
+ break;
2334
+ }
2335
+
2336
+ message.organizationId = reader.string();
2337
+ continue;
2338
+ }
2339
+ case 2: {
2340
+ if (tag !== 18) {
2341
+ break;
2342
+ }
2343
+
2344
+ message.projectId = reader.string();
2345
+ continue;
2346
+ }
2347
+ case 3: {
2348
+ if (tag !== 26) {
2349
+ break;
2350
+ }
2351
+
2352
+ message.sloId = reader.string();
2353
+ continue;
2354
+ }
2355
+ case 4: {
2356
+ if (tag !== 34) {
2357
+ break;
2358
+ }
2359
+
2360
+ message.evaluationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2361
+ continue;
2362
+ }
2363
+ case 5: {
2364
+ if (tag !== 42) {
2365
+ break;
2366
+ }
2367
+
2368
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2369
+ continue;
2370
+ }
2371
+ }
2372
+ if ((tag & 7) === 4 || tag === 0) {
2373
+ break;
2374
+ }
2375
+ reader.skip(tag & 7);
2219
2376
  }
2220
- reader.skip(tag & 7);
2377
+ return message;
2378
+ } finally {
2379
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2221
2380
  }
2222
- return message;
2223
2381
  },
2224
2382
 
2225
2383
  fromJSON(object: any): GetSloStatusRequest {
@@ -2301,34 +2459,43 @@ export const GetSloStatusResponse: MessageFns<GetSloStatusResponse> = {
2301
2459
 
2302
2460
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloStatusResponse {
2303
2461
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2304
- const end = length === undefined ? reader.len : reader.pos + length;
2305
- const message = createBaseGetSloStatusResponse();
2306
- while (reader.pos < end) {
2307
- const tag = reader.uint32();
2308
- switch (tag >>> 3) {
2309
- case 1: {
2310
- if (tag !== 10) {
2311
- break;
2312
- }
2313
-
2314
- message.status = ResponseStatus.decode(reader, reader.uint32());
2315
- continue;
2316
- }
2317
- case 2: {
2318
- if (tag !== 18) {
2319
- break;
2320
- }
2321
-
2322
- message.sloStatus = SloStatus.decode(reader, reader.uint32());
2323
- continue;
2324
- }
2325
- }
2326
- if ((tag & 7) === 4 || tag === 0) {
2327
- break;
2462
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2463
+ if (previousRecursionDepth >= 100) {
2464
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2465
+ }
2466
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2467
+ try {
2468
+ const end = length === undefined ? reader.len : reader.pos + length;
2469
+ const message = createBaseGetSloStatusResponse();
2470
+ while (reader.pos < end) {
2471
+ const tag = reader.uint32();
2472
+ switch (tag >>> 3) {
2473
+ case 1: {
2474
+ if (tag !== 10) {
2475
+ break;
2476
+ }
2477
+
2478
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2479
+ continue;
2480
+ }
2481
+ case 2: {
2482
+ if (tag !== 18) {
2483
+ break;
2484
+ }
2485
+
2486
+ message.sloStatus = SloStatus.decode(reader, reader.uint32());
2487
+ continue;
2488
+ }
2489
+ }
2490
+ if ((tag & 7) === 4 || tag === 0) {
2491
+ break;
2492
+ }
2493
+ reader.skip(tag & 7);
2328
2494
  }
2329
- reader.skip(tag & 7);
2495
+ return message;
2496
+ } finally {
2497
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2330
2498
  }
2331
- return message;
2332
2499
  },
2333
2500
 
2334
2501
  fromJSON(object: any): GetSloStatusResponse {
@@ -2397,66 +2564,75 @@ export const SloStatus: MessageFns<SloStatus> = {
2397
2564
 
2398
2565
  decode(input: BinaryReader | Uint8Array, length?: number): SloStatus {
2399
2566
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2400
- const end = length === undefined ? reader.len : reader.pos + length;
2401
- const message = createBaseSloStatus();
2402
- while (reader.pos < end) {
2403
- const tag = reader.uint32();
2404
- switch (tag >>> 3) {
2405
- case 1: {
2406
- if (tag !== 10) {
2407
- break;
2408
- }
2409
-
2410
- message.sloId = reader.string();
2411
- continue;
2412
- }
2413
- case 2: {
2414
- if (tag !== 16) {
2415
- break;
2416
- }
2417
-
2418
- message.enabled = reader.bool();
2419
- continue;
2420
- }
2421
- case 3: {
2422
- if (tag !== 24) {
2423
- break;
2424
- }
2425
-
2426
- message.windowSeconds = longToNumber(reader.int64());
2427
- continue;
2428
- }
2429
- case 4: {
2430
- if (tag !== 34) {
2431
- break;
2432
- }
2433
-
2434
- message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2435
- continue;
2436
- }
2437
- case 5: {
2438
- if (tag !== 42) {
2439
- break;
2440
- }
2441
-
2442
- message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2443
- continue;
2444
- }
2445
- case 6: {
2446
- if (tag !== 50) {
2447
- break;
2448
- }
2449
-
2450
- message.corridors.push(SloCorridorStatus.decode(reader, reader.uint32()));
2451
- continue;
2452
- }
2567
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2568
+ if (previousRecursionDepth >= 100) {
2569
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2570
+ }
2571
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2572
+ try {
2573
+ const end = length === undefined ? reader.len : reader.pos + length;
2574
+ const message = createBaseSloStatus();
2575
+ while (reader.pos < end) {
2576
+ const tag = reader.uint32();
2577
+ switch (tag >>> 3) {
2578
+ case 1: {
2579
+ if (tag !== 10) {
2580
+ break;
2581
+ }
2582
+
2583
+ message.sloId = reader.string();
2584
+ continue;
2585
+ }
2586
+ case 2: {
2587
+ if (tag !== 16) {
2588
+ break;
2589
+ }
2590
+
2591
+ message.enabled = reader.bool();
2592
+ continue;
2593
+ }
2594
+ case 3: {
2595
+ if (tag !== 24) {
2596
+ break;
2597
+ }
2598
+
2599
+ message.windowSeconds = longToNumber(reader.int64());
2600
+ continue;
2601
+ }
2602
+ case 4: {
2603
+ if (tag !== 34) {
2604
+ break;
2605
+ }
2606
+
2607
+ message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2608
+ continue;
2609
+ }
2610
+ case 5: {
2611
+ if (tag !== 42) {
2612
+ break;
2613
+ }
2614
+
2615
+ message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2616
+ continue;
2617
+ }
2618
+ case 6: {
2619
+ if (tag !== 50) {
2620
+ break;
2621
+ }
2622
+
2623
+ message.corridors.push(SloCorridorStatus.decode(reader, reader.uint32()));
2624
+ continue;
2625
+ }
2626
+ }
2627
+ if ((tag & 7) === 4 || tag === 0) {
2628
+ break;
2629
+ }
2630
+ reader.skip(tag & 7);
2453
2631
  }
2454
- if ((tag & 7) === 4 || tag === 0) {
2455
- break;
2456
- }
2457
- reader.skip(tag & 7);
2632
+ return message;
2633
+ } finally {
2634
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2458
2635
  }
2459
- return message;
2460
2636
  },
2461
2637
 
2462
2638
  fromJSON(object: any): SloStatus {
@@ -2555,66 +2731,75 @@ export const SloCorridorStatus: MessageFns<SloCorridorStatus> = {
2555
2731
 
2556
2732
  decode(input: BinaryReader | Uint8Array, length?: number): SloCorridorStatus {
2557
2733
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2558
- const end = length === undefined ? reader.len : reader.pos + length;
2559
- const message = createBaseSloCorridorStatus();
2560
- while (reader.pos < end) {
2561
- const tag = reader.uint32();
2562
- switch (tag >>> 3) {
2563
- case 1: {
2564
- if (tag !== 10) {
2565
- break;
2566
- }
2567
-
2568
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2569
- continue;
2570
- }
2571
- case 2: {
2572
- if (tag !== 16) {
2573
- break;
2574
- }
2575
-
2576
- message.eligibleCount = longToNumber(reader.uint64());
2577
- continue;
2578
- }
2579
- case 3: {
2580
- if (tag !== 24) {
2581
- break;
2582
- }
2583
-
2584
- message.goodCount = longToNumber(reader.uint64());
2585
- continue;
2586
- }
2587
- case 4: {
2588
- if (tag !== 33) {
2589
- break;
2590
- }
2591
-
2592
- message.compliance = reader.double();
2593
- continue;
2594
- }
2595
- case 5: {
2596
- if (tag !== 41) {
2597
- break;
2598
- }
2599
-
2600
- message.budgetRemaining = reader.double();
2601
- continue;
2602
- }
2603
- case 6: {
2604
- if (tag !== 48) {
2605
- break;
2606
- }
2607
-
2608
- message.state = reader.int32() as any;
2609
- continue;
2610
- }
2611
- }
2612
- if ((tag & 7) === 4 || tag === 0) {
2613
- break;
2734
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2735
+ if (previousRecursionDepth >= 100) {
2736
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2737
+ }
2738
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2739
+ try {
2740
+ const end = length === undefined ? reader.len : reader.pos + length;
2741
+ const message = createBaseSloCorridorStatus();
2742
+ while (reader.pos < end) {
2743
+ const tag = reader.uint32();
2744
+ switch (tag >>> 3) {
2745
+ case 1: {
2746
+ if (tag !== 10) {
2747
+ break;
2748
+ }
2749
+
2750
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2751
+ continue;
2752
+ }
2753
+ case 2: {
2754
+ if (tag !== 16) {
2755
+ break;
2756
+ }
2757
+
2758
+ message.eligibleCount = longToNumber(reader.uint64());
2759
+ continue;
2760
+ }
2761
+ case 3: {
2762
+ if (tag !== 24) {
2763
+ break;
2764
+ }
2765
+
2766
+ message.goodCount = longToNumber(reader.uint64());
2767
+ continue;
2768
+ }
2769
+ case 4: {
2770
+ if (tag !== 33) {
2771
+ break;
2772
+ }
2773
+
2774
+ message.compliance = reader.double();
2775
+ continue;
2776
+ }
2777
+ case 5: {
2778
+ if (tag !== 41) {
2779
+ break;
2780
+ }
2781
+
2782
+ message.budgetRemaining = reader.double();
2783
+ continue;
2784
+ }
2785
+ case 6: {
2786
+ if (tag !== 48) {
2787
+ break;
2788
+ }
2789
+
2790
+ message.state = reader.int32() as any;
2791
+ continue;
2792
+ }
2793
+ }
2794
+ if ((tag & 7) === 4 || tag === 0) {
2795
+ break;
2796
+ }
2797
+ reader.skip(tag & 7);
2614
2798
  }
2615
- reader.skip(tag & 7);
2799
+ return message;
2800
+ } finally {
2801
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2616
2802
  }
2617
- return message;
2618
2803
  },
2619
2804
 
2620
2805
  fromJSON(object: any): SloCorridorStatus {
@@ -2709,66 +2894,75 @@ export const GetSloTimelineRequest: MessageFns<GetSloTimelineRequest> = {
2709
2894
 
2710
2895
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloTimelineRequest {
2711
2896
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2712
- const end = length === undefined ? reader.len : reader.pos + length;
2713
- const message = createBaseGetSloTimelineRequest();
2714
- while (reader.pos < end) {
2715
- const tag = reader.uint32();
2716
- switch (tag >>> 3) {
2717
- case 1: {
2718
- if (tag !== 10) {
2719
- break;
2720
- }
2721
-
2722
- message.organizationId = reader.string();
2723
- continue;
2724
- }
2725
- case 2: {
2726
- if (tag !== 18) {
2727
- break;
2728
- }
2729
-
2730
- message.projectId = reader.string();
2731
- continue;
2732
- }
2733
- case 3: {
2734
- if (tag !== 26) {
2735
- break;
2736
- }
2737
-
2738
- message.sloId = reader.string();
2739
- continue;
2740
- }
2741
- case 4: {
2742
- if (tag !== 34) {
2743
- break;
2744
- }
2745
-
2746
- message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2747
- continue;
2748
- }
2749
- case 5: {
2750
- if (tag !== 40) {
2751
- break;
2752
- }
2753
-
2754
- message.bucketCount = reader.uint32();
2755
- continue;
2756
- }
2757
- case 6: {
2758
- if (tag !== 50) {
2759
- break;
2760
- }
2761
-
2762
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2763
- continue;
2764
- }
2765
- }
2766
- if ((tag & 7) === 4 || tag === 0) {
2767
- break;
2897
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2898
+ if (previousRecursionDepth >= 100) {
2899
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2900
+ }
2901
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2902
+ try {
2903
+ const end = length === undefined ? reader.len : reader.pos + length;
2904
+ const message = createBaseGetSloTimelineRequest();
2905
+ while (reader.pos < end) {
2906
+ const tag = reader.uint32();
2907
+ switch (tag >>> 3) {
2908
+ case 1: {
2909
+ if (tag !== 10) {
2910
+ break;
2911
+ }
2912
+
2913
+ message.organizationId = reader.string();
2914
+ continue;
2915
+ }
2916
+ case 2: {
2917
+ if (tag !== 18) {
2918
+ break;
2919
+ }
2920
+
2921
+ message.projectId = reader.string();
2922
+ continue;
2923
+ }
2924
+ case 3: {
2925
+ if (tag !== 26) {
2926
+ break;
2927
+ }
2928
+
2929
+ message.sloId = reader.string();
2930
+ continue;
2931
+ }
2932
+ case 4: {
2933
+ if (tag !== 34) {
2934
+ break;
2935
+ }
2936
+
2937
+ message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2938
+ continue;
2939
+ }
2940
+ case 5: {
2941
+ if (tag !== 40) {
2942
+ break;
2943
+ }
2944
+
2945
+ message.bucketCount = reader.uint32();
2946
+ continue;
2947
+ }
2948
+ case 6: {
2949
+ if (tag !== 50) {
2950
+ break;
2951
+ }
2952
+
2953
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
2954
+ continue;
2955
+ }
2956
+ }
2957
+ if ((tag & 7) === 4 || tag === 0) {
2958
+ break;
2959
+ }
2960
+ reader.skip(tag & 7);
2768
2961
  }
2769
- reader.skip(tag & 7);
2962
+ return message;
2963
+ } finally {
2964
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2770
2965
  }
2771
- return message;
2772
2966
  },
2773
2967
 
2774
2968
  fromJSON(object: any): GetSloTimelineRequest {
@@ -2859,34 +3053,43 @@ export const GetSloTimelineResponse: MessageFns<GetSloTimelineResponse> = {
2859
3053
 
2860
3054
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloTimelineResponse {
2861
3055
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2862
- const end = length === undefined ? reader.len : reader.pos + length;
2863
- const message = createBaseGetSloTimelineResponse();
2864
- while (reader.pos < end) {
2865
- const tag = reader.uint32();
2866
- switch (tag >>> 3) {
2867
- case 1: {
2868
- if (tag !== 10) {
2869
- break;
2870
- }
2871
-
2872
- message.status = ResponseStatus.decode(reader, reader.uint32());
2873
- continue;
2874
- }
2875
- case 2: {
2876
- if (tag !== 18) {
2877
- break;
2878
- }
2879
-
2880
- message.timeline = SloTimeline.decode(reader, reader.uint32());
2881
- continue;
2882
- }
2883
- }
2884
- if ((tag & 7) === 4 || tag === 0) {
2885
- break;
3056
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3057
+ if (previousRecursionDepth >= 100) {
3058
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3059
+ }
3060
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3061
+ try {
3062
+ const end = length === undefined ? reader.len : reader.pos + length;
3063
+ const message = createBaseGetSloTimelineResponse();
3064
+ while (reader.pos < end) {
3065
+ const tag = reader.uint32();
3066
+ switch (tag >>> 3) {
3067
+ case 1: {
3068
+ if (tag !== 10) {
3069
+ break;
3070
+ }
3071
+
3072
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3073
+ continue;
3074
+ }
3075
+ case 2: {
3076
+ if (tag !== 18) {
3077
+ break;
3078
+ }
3079
+
3080
+ message.timeline = SloTimeline.decode(reader, reader.uint32());
3081
+ continue;
3082
+ }
3083
+ }
3084
+ if ((tag & 7) === 4 || tag === 0) {
3085
+ break;
3086
+ }
3087
+ reader.skip(tag & 7);
2886
3088
  }
2887
- reader.skip(tag & 7);
3089
+ return message;
3090
+ } finally {
3091
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2888
3092
  }
2889
- return message;
2890
3093
  },
2891
3094
 
2892
3095
  fromJSON(object: any): GetSloTimelineResponse {
@@ -2966,82 +3169,91 @@ export const SloTimeline: MessageFns<SloTimeline> = {
2966
3169
 
2967
3170
  decode(input: BinaryReader | Uint8Array, length?: number): SloTimeline {
2968
3171
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2969
- const end = length === undefined ? reader.len : reader.pos + length;
2970
- const message = createBaseSloTimeline();
2971
- while (reader.pos < end) {
2972
- const tag = reader.uint32();
2973
- switch (tag >>> 3) {
2974
- case 1: {
2975
- if (tag !== 10) {
2976
- break;
2977
- }
2978
-
2979
- message.sloId = reader.string();
2980
- continue;
2981
- }
2982
- case 2: {
2983
- if (tag !== 16) {
2984
- break;
2985
- }
2986
-
2987
- message.enabled = reader.bool();
2988
- continue;
2989
- }
2990
- case 3: {
2991
- if (tag !== 25) {
2992
- break;
2993
- }
2994
-
2995
- message.target = reader.double();
2996
- continue;
2997
- }
2998
- case 4: {
2999
- if (tag !== 32) {
3000
- break;
3001
- }
3002
-
3003
- message.bucketSeconds = longToNumber(reader.int64());
3004
- continue;
3005
- }
3006
- case 5: {
3007
- if (tag !== 42) {
3008
- break;
3009
- }
3010
-
3011
- message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3012
- continue;
3013
- }
3014
- case 6: {
3015
- if (tag !== 50) {
3016
- break;
3017
- }
3018
-
3019
- message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3020
- continue;
3021
- }
3022
- case 7: {
3023
- if (tag !== 58) {
3024
- break;
3025
- }
3026
-
3027
- message.buckets.push(SloTimelineBucket.decode(reader, reader.uint32()));
3028
- continue;
3029
- }
3030
- case 8: {
3031
- if (tag !== 66) {
3032
- break;
3033
- }
3034
-
3035
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
3036
- continue;
3037
- }
3038
- }
3039
- if ((tag & 7) === 4 || tag === 0) {
3040
- break;
3172
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3173
+ if (previousRecursionDepth >= 100) {
3174
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3175
+ }
3176
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3177
+ try {
3178
+ const end = length === undefined ? reader.len : reader.pos + length;
3179
+ const message = createBaseSloTimeline();
3180
+ while (reader.pos < end) {
3181
+ const tag = reader.uint32();
3182
+ switch (tag >>> 3) {
3183
+ case 1: {
3184
+ if (tag !== 10) {
3185
+ break;
3186
+ }
3187
+
3188
+ message.sloId = reader.string();
3189
+ continue;
3190
+ }
3191
+ case 2: {
3192
+ if (tag !== 16) {
3193
+ break;
3194
+ }
3195
+
3196
+ message.enabled = reader.bool();
3197
+ continue;
3198
+ }
3199
+ case 3: {
3200
+ if (tag !== 25) {
3201
+ break;
3202
+ }
3203
+
3204
+ message.target = reader.double();
3205
+ continue;
3206
+ }
3207
+ case 4: {
3208
+ if (tag !== 32) {
3209
+ break;
3210
+ }
3211
+
3212
+ message.bucketSeconds = longToNumber(reader.int64());
3213
+ continue;
3214
+ }
3215
+ case 5: {
3216
+ if (tag !== 42) {
3217
+ break;
3218
+ }
3219
+
3220
+ message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3221
+ continue;
3222
+ }
3223
+ case 6: {
3224
+ if (tag !== 50) {
3225
+ break;
3226
+ }
3227
+
3228
+ message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3229
+ continue;
3230
+ }
3231
+ case 7: {
3232
+ if (tag !== 58) {
3233
+ break;
3234
+ }
3235
+
3236
+ message.buckets.push(SloTimelineBucket.decode(reader, reader.uint32()));
3237
+ continue;
3238
+ }
3239
+ case 8: {
3240
+ if (tag !== 66) {
3241
+ break;
3242
+ }
3243
+
3244
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
3245
+ continue;
3246
+ }
3247
+ }
3248
+ if ((tag & 7) === 4 || tag === 0) {
3249
+ break;
3250
+ }
3251
+ reader.skip(tag & 7);
3041
3252
  }
3042
- reader.skip(tag & 7);
3253
+ return message;
3254
+ } finally {
3255
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3043
3256
  }
3044
- return message;
3045
3257
  },
3046
3258
 
3047
3259
  fromJSON(object: any): SloTimeline {
@@ -3149,58 +3361,67 @@ export const SloTimelineBucket: MessageFns<SloTimelineBucket> = {
3149
3361
 
3150
3362
  decode(input: BinaryReader | Uint8Array, length?: number): SloTimelineBucket {
3151
3363
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3152
- const end = length === undefined ? reader.len : reader.pos + length;
3153
- const message = createBaseSloTimelineBucket();
3154
- while (reader.pos < end) {
3155
- const tag = reader.uint32();
3156
- switch (tag >>> 3) {
3157
- case 1: {
3158
- if (tag !== 10) {
3159
- break;
3160
- }
3161
-
3162
- message.bucketStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3163
- continue;
3164
- }
3165
- case 2: {
3166
- if (tag !== 16) {
3167
- break;
3168
- }
3169
-
3170
- message.eligibleCount = longToNumber(reader.uint64());
3171
- continue;
3172
- }
3173
- case 3: {
3174
- if (tag !== 24) {
3175
- break;
3176
- }
3177
-
3178
- message.goodCount = longToNumber(reader.uint64());
3179
- continue;
3180
- }
3181
- case 4: {
3182
- if (tag !== 33) {
3183
- break;
3184
- }
3185
-
3186
- message.compliance = reader.double();
3187
- continue;
3188
- }
3189
- case 5: {
3190
- if (tag !== 40) {
3191
- break;
3192
- }
3193
-
3194
- message.state = reader.int32() as any;
3195
- continue;
3196
- }
3364
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3365
+ if (previousRecursionDepth >= 100) {
3366
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3367
+ }
3368
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3369
+ try {
3370
+ const end = length === undefined ? reader.len : reader.pos + length;
3371
+ const message = createBaseSloTimelineBucket();
3372
+ while (reader.pos < end) {
3373
+ const tag = reader.uint32();
3374
+ switch (tag >>> 3) {
3375
+ case 1: {
3376
+ if (tag !== 10) {
3377
+ break;
3378
+ }
3379
+
3380
+ message.bucketStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3381
+ continue;
3382
+ }
3383
+ case 2: {
3384
+ if (tag !== 16) {
3385
+ break;
3386
+ }
3387
+
3388
+ message.eligibleCount = longToNumber(reader.uint64());
3389
+ continue;
3390
+ }
3391
+ case 3: {
3392
+ if (tag !== 24) {
3393
+ break;
3394
+ }
3395
+
3396
+ message.goodCount = longToNumber(reader.uint64());
3397
+ continue;
3398
+ }
3399
+ case 4: {
3400
+ if (tag !== 33) {
3401
+ break;
3402
+ }
3403
+
3404
+ message.compliance = reader.double();
3405
+ continue;
3406
+ }
3407
+ case 5: {
3408
+ if (tag !== 40) {
3409
+ break;
3410
+ }
3411
+
3412
+ message.state = reader.int32() as any;
3413
+ continue;
3414
+ }
3415
+ }
3416
+ if ((tag & 7) === 4 || tag === 0) {
3417
+ break;
3418
+ }
3419
+ reader.skip(tag & 7);
3197
3420
  }
3198
- if ((tag & 7) === 4 || tag === 0) {
3199
- break;
3200
- }
3201
- reader.skip(tag & 7);
3421
+ return message;
3422
+ } finally {
3423
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3202
3424
  }
3203
- return message;
3204
3425
  },
3205
3426
 
3206
3427
  fromJSON(object: any): SloTimelineBucket {
@@ -3285,58 +3506,67 @@ export const PreviewSloRequest: MessageFns<PreviewSloRequest> = {
3285
3506
 
3286
3507
  decode(input: BinaryReader | Uint8Array, length?: number): PreviewSloRequest {
3287
3508
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3288
- const end = length === undefined ? reader.len : reader.pos + length;
3289
- const message = createBasePreviewSloRequest();
3290
- while (reader.pos < end) {
3291
- const tag = reader.uint32();
3292
- switch (tag >>> 3) {
3293
- case 1: {
3294
- if (tag !== 10) {
3295
- break;
3296
- }
3297
-
3298
- message.organizationId = reader.string();
3299
- continue;
3300
- }
3301
- case 2: {
3302
- if (tag !== 18) {
3303
- break;
3304
- }
3305
-
3306
- message.projectId = reader.string();
3307
- continue;
3308
- }
3309
- case 3: {
3310
- if (tag !== 26) {
3311
- break;
3312
- }
3313
-
3314
- message.objective = SloObjective.decode(reader, reader.uint32());
3315
- continue;
3316
- }
3317
- case 4: {
3318
- if (tag !== 34) {
3319
- break;
3320
- }
3321
-
3322
- message.evaluationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3323
- continue;
3324
- }
3325
- case 5: {
3326
- if (tag !== 40) {
3327
- break;
3328
- }
3329
-
3330
- message.bucketCount = reader.uint32();
3331
- continue;
3332
- }
3333
- }
3334
- if ((tag & 7) === 4 || tag === 0) {
3335
- break;
3509
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3510
+ if (previousRecursionDepth >= 100) {
3511
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3512
+ }
3513
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3514
+ try {
3515
+ const end = length === undefined ? reader.len : reader.pos + length;
3516
+ const message = createBasePreviewSloRequest();
3517
+ while (reader.pos < end) {
3518
+ const tag = reader.uint32();
3519
+ switch (tag >>> 3) {
3520
+ case 1: {
3521
+ if (tag !== 10) {
3522
+ break;
3523
+ }
3524
+
3525
+ message.organizationId = reader.string();
3526
+ continue;
3527
+ }
3528
+ case 2: {
3529
+ if (tag !== 18) {
3530
+ break;
3531
+ }
3532
+
3533
+ message.projectId = reader.string();
3534
+ continue;
3535
+ }
3536
+ case 3: {
3537
+ if (tag !== 26) {
3538
+ break;
3539
+ }
3540
+
3541
+ message.objective = SloObjective.decode(reader, reader.uint32());
3542
+ continue;
3543
+ }
3544
+ case 4: {
3545
+ if (tag !== 34) {
3546
+ break;
3547
+ }
3548
+
3549
+ message.evaluationTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3550
+ continue;
3551
+ }
3552
+ case 5: {
3553
+ if (tag !== 40) {
3554
+ break;
3555
+ }
3556
+
3557
+ message.bucketCount = reader.uint32();
3558
+ continue;
3559
+ }
3560
+ }
3561
+ if ((tag & 7) === 4 || tag === 0) {
3562
+ break;
3563
+ }
3564
+ reader.skip(tag & 7);
3336
3565
  }
3337
- reader.skip(tag & 7);
3566
+ return message;
3567
+ } finally {
3568
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3338
3569
  }
3339
- return message;
3340
3570
  },
3341
3571
 
3342
3572
  fromJSON(object: any): PreviewSloRequest {
@@ -3421,42 +3651,51 @@ export const PreviewSloResponse: MessageFns<PreviewSloResponse> = {
3421
3651
 
3422
3652
  decode(input: BinaryReader | Uint8Array, length?: number): PreviewSloResponse {
3423
3653
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3424
- const end = length === undefined ? reader.len : reader.pos + length;
3425
- const message = createBasePreviewSloResponse();
3426
- while (reader.pos < end) {
3427
- const tag = reader.uint32();
3428
- switch (tag >>> 3) {
3429
- case 1: {
3430
- if (tag !== 10) {
3431
- break;
3432
- }
3433
-
3434
- message.status = ResponseStatus.decode(reader, reader.uint32());
3435
- continue;
3436
- }
3437
- case 2: {
3438
- if (tag !== 18) {
3439
- break;
3440
- }
3441
-
3442
- message.sloStatus = SloStatus.decode(reader, reader.uint32());
3443
- continue;
3444
- }
3445
- case 3: {
3446
- if (tag !== 26) {
3447
- break;
3448
- }
3449
-
3450
- message.timeline = SloTimeline.decode(reader, reader.uint32());
3451
- continue;
3452
- }
3453
- }
3454
- if ((tag & 7) === 4 || tag === 0) {
3455
- break;
3654
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3655
+ if (previousRecursionDepth >= 100) {
3656
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3657
+ }
3658
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3659
+ try {
3660
+ const end = length === undefined ? reader.len : reader.pos + length;
3661
+ const message = createBasePreviewSloResponse();
3662
+ while (reader.pos < end) {
3663
+ const tag = reader.uint32();
3664
+ switch (tag >>> 3) {
3665
+ case 1: {
3666
+ if (tag !== 10) {
3667
+ break;
3668
+ }
3669
+
3670
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3671
+ continue;
3672
+ }
3673
+ case 2: {
3674
+ if (tag !== 18) {
3675
+ break;
3676
+ }
3677
+
3678
+ message.sloStatus = SloStatus.decode(reader, reader.uint32());
3679
+ continue;
3680
+ }
3681
+ case 3: {
3682
+ if (tag !== 26) {
3683
+ break;
3684
+ }
3685
+
3686
+ message.timeline = SloTimeline.decode(reader, reader.uint32());
3687
+ continue;
3688
+ }
3689
+ }
3690
+ if ((tag & 7) === 4 || tag === 0) {
3691
+ break;
3692
+ }
3693
+ reader.skip(tag & 7);
3456
3694
  }
3457
- reader.skip(tag & 7);
3695
+ return message;
3696
+ } finally {
3697
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3458
3698
  }
3459
- return message;
3460
3699
  },
3461
3700
 
3462
3701
  fromJSON(object: any): PreviewSloResponse {
@@ -3526,50 +3765,59 @@ export const StreamSloStatusRequest: MessageFns<StreamSloStatusRequest> = {
3526
3765
 
3527
3766
  decode(input: BinaryReader | Uint8Array, length?: number): StreamSloStatusRequest {
3528
3767
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3529
- const end = length === undefined ? reader.len : reader.pos + length;
3530
- const message = createBaseStreamSloStatusRequest();
3531
- while (reader.pos < end) {
3532
- const tag = reader.uint32();
3533
- switch (tag >>> 3) {
3534
- case 1: {
3535
- if (tag !== 10) {
3536
- break;
3537
- }
3538
-
3539
- message.organizationId = reader.string();
3540
- continue;
3541
- }
3542
- case 2: {
3543
- if (tag !== 18) {
3544
- break;
3545
- }
3546
-
3547
- message.projectId = reader.string();
3548
- continue;
3549
- }
3550
- case 3: {
3551
- if (tag !== 26) {
3552
- break;
3553
- }
3554
-
3555
- message.sloId = reader.string();
3556
- continue;
3557
- }
3558
- case 4: {
3559
- if (tag !== 34) {
3560
- break;
3561
- }
3562
-
3563
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
3564
- continue;
3565
- }
3768
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3769
+ if (previousRecursionDepth >= 100) {
3770
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3771
+ }
3772
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3773
+ try {
3774
+ const end = length === undefined ? reader.len : reader.pos + length;
3775
+ const message = createBaseStreamSloStatusRequest();
3776
+ while (reader.pos < end) {
3777
+ const tag = reader.uint32();
3778
+ switch (tag >>> 3) {
3779
+ case 1: {
3780
+ if (tag !== 10) {
3781
+ break;
3782
+ }
3783
+
3784
+ message.organizationId = reader.string();
3785
+ continue;
3786
+ }
3787
+ case 2: {
3788
+ if (tag !== 18) {
3789
+ break;
3790
+ }
3791
+
3792
+ message.projectId = reader.string();
3793
+ continue;
3794
+ }
3795
+ case 3: {
3796
+ if (tag !== 26) {
3797
+ break;
3798
+ }
3799
+
3800
+ message.sloId = reader.string();
3801
+ continue;
3802
+ }
3803
+ case 4: {
3804
+ if (tag !== 34) {
3805
+ break;
3806
+ }
3807
+
3808
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
3809
+ continue;
3810
+ }
3811
+ }
3812
+ if ((tag & 7) === 4 || tag === 0) {
3813
+ break;
3814
+ }
3815
+ reader.skip(tag & 7);
3566
3816
  }
3567
- if ((tag & 7) === 4 || tag === 0) {
3568
- break;
3569
- }
3570
- reader.skip(tag & 7);
3817
+ return message;
3818
+ } finally {
3819
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3571
3820
  }
3572
- return message;
3573
3821
  },
3574
3822
 
3575
3823
  fromJSON(object: any): StreamSloStatusRequest {
@@ -3673,90 +3921,99 @@ export const SloDashboard: MessageFns<SloDashboard> = {
3673
3921
 
3674
3922
  decode(input: BinaryReader | Uint8Array, length?: number): SloDashboard {
3675
3923
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3676
- const end = length === undefined ? reader.len : reader.pos + length;
3677
- const message = createBaseSloDashboard();
3678
- while (reader.pos < end) {
3679
- const tag = reader.uint32();
3680
- switch (tag >>> 3) {
3681
- case 1: {
3682
- if (tag !== 10) {
3683
- break;
3684
- }
3685
-
3686
- message.id = reader.string();
3687
- continue;
3688
- }
3689
- case 2: {
3690
- if (tag !== 18) {
3691
- break;
3692
- }
3693
-
3694
- message.organizationId = reader.string();
3695
- continue;
3696
- }
3697
- case 3: {
3698
- if (tag !== 26) {
3699
- break;
3700
- }
3701
-
3702
- message.projectId = reader.string();
3703
- continue;
3704
- }
3705
- case 4: {
3706
- if (tag !== 34) {
3707
- break;
3708
- }
3709
-
3710
- message.name = reader.string();
3711
- continue;
3712
- }
3713
- case 5: {
3714
- if (tag !== 42) {
3715
- break;
3716
- }
3717
-
3718
- message.description = reader.string();
3719
- continue;
3720
- }
3721
- case 6: {
3722
- if (tag !== 50) {
3723
- break;
3724
- }
3725
-
3726
- message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
3727
- continue;
3728
- }
3729
- case 7: {
3730
- if (tag !== 56) {
3731
- break;
3732
- }
3733
-
3734
- message.version = longToNumber(reader.int64());
3735
- continue;
3736
- }
3737
- case 8: {
3738
- if (tag !== 66) {
3739
- break;
3740
- }
3741
-
3742
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3743
- continue;
3744
- }
3745
- case 9: {
3746
- if (tag !== 74) {
3747
- break;
3748
- }
3749
-
3750
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3751
- continue;
3752
- }
3924
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3925
+ if (previousRecursionDepth >= 100) {
3926
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3927
+ }
3928
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3929
+ try {
3930
+ const end = length === undefined ? reader.len : reader.pos + length;
3931
+ const message = createBaseSloDashboard();
3932
+ while (reader.pos < end) {
3933
+ const tag = reader.uint32();
3934
+ switch (tag >>> 3) {
3935
+ case 1: {
3936
+ if (tag !== 10) {
3937
+ break;
3938
+ }
3939
+
3940
+ message.id = reader.string();
3941
+ continue;
3942
+ }
3943
+ case 2: {
3944
+ if (tag !== 18) {
3945
+ break;
3946
+ }
3947
+
3948
+ message.organizationId = reader.string();
3949
+ continue;
3950
+ }
3951
+ case 3: {
3952
+ if (tag !== 26) {
3953
+ break;
3954
+ }
3955
+
3956
+ message.projectId = reader.string();
3957
+ continue;
3958
+ }
3959
+ case 4: {
3960
+ if (tag !== 34) {
3961
+ break;
3962
+ }
3963
+
3964
+ message.name = reader.string();
3965
+ continue;
3966
+ }
3967
+ case 5: {
3968
+ if (tag !== 42) {
3969
+ break;
3970
+ }
3971
+
3972
+ message.description = reader.string();
3973
+ continue;
3974
+ }
3975
+ case 6: {
3976
+ if (tag !== 50) {
3977
+ break;
3978
+ }
3979
+
3980
+ message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
3981
+ continue;
3982
+ }
3983
+ case 7: {
3984
+ if (tag !== 56) {
3985
+ break;
3986
+ }
3987
+
3988
+ message.version = longToNumber(reader.int64());
3989
+ continue;
3990
+ }
3991
+ case 8: {
3992
+ if (tag !== 66) {
3993
+ break;
3994
+ }
3995
+
3996
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3997
+ continue;
3998
+ }
3999
+ case 9: {
4000
+ if (tag !== 74) {
4001
+ break;
4002
+ }
4003
+
4004
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4005
+ continue;
4006
+ }
4007
+ }
4008
+ if ((tag & 7) === 4 || tag === 0) {
4009
+ break;
4010
+ }
4011
+ reader.skip(tag & 7);
3753
4012
  }
3754
- if ((tag & 7) === 4 || tag === 0) {
3755
- break;
3756
- }
3757
- reader.skip(tag & 7);
4013
+ return message;
4014
+ } finally {
4015
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3758
4016
  }
3759
- return message;
3760
4017
  },
3761
4018
 
3762
4019
  fromJSON(object: any): SloDashboard {
@@ -3861,42 +4118,51 @@ export const SloDashboardEntry: MessageFns<SloDashboardEntry> = {
3861
4118
 
3862
4119
  decode(input: BinaryReader | Uint8Array, length?: number): SloDashboardEntry {
3863
4120
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3864
- const end = length === undefined ? reader.len : reader.pos + length;
3865
- const message = createBaseSloDashboardEntry();
3866
- while (reader.pos < end) {
3867
- const tag = reader.uint32();
3868
- switch (tag >>> 3) {
3869
- case 1: {
3870
- if (tag !== 10) {
3871
- break;
3872
- }
3873
-
3874
- message.id = reader.string();
3875
- continue;
3876
- }
3877
- case 2: {
3878
- if (tag !== 18) {
3879
- break;
3880
- }
3881
-
3882
- message.sloId = reader.string();
3883
- continue;
3884
- }
3885
- case 3: {
3886
- if (tag !== 26) {
3887
- break;
3888
- }
3889
-
3890
- message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
3891
- continue;
3892
- }
4121
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4122
+ if (previousRecursionDepth >= 100) {
4123
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4124
+ }
4125
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4126
+ try {
4127
+ const end = length === undefined ? reader.len : reader.pos + length;
4128
+ const message = createBaseSloDashboardEntry();
4129
+ while (reader.pos < end) {
4130
+ const tag = reader.uint32();
4131
+ switch (tag >>> 3) {
4132
+ case 1: {
4133
+ if (tag !== 10) {
4134
+ break;
4135
+ }
4136
+
4137
+ message.id = reader.string();
4138
+ continue;
4139
+ }
4140
+ case 2: {
4141
+ if (tag !== 18) {
4142
+ break;
4143
+ }
4144
+
4145
+ message.sloId = reader.string();
4146
+ continue;
4147
+ }
4148
+ case 3: {
4149
+ if (tag !== 26) {
4150
+ break;
4151
+ }
4152
+
4153
+ message.corridor = SloCorridorSelector.decode(reader, reader.uint32());
4154
+ continue;
4155
+ }
4156
+ }
4157
+ if ((tag & 7) === 4 || tag === 0) {
4158
+ break;
4159
+ }
4160
+ reader.skip(tag & 7);
3893
4161
  }
3894
- if ((tag & 7) === 4 || tag === 0) {
3895
- break;
3896
- }
3897
- reader.skip(tag & 7);
4162
+ return message;
4163
+ } finally {
4164
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3898
4165
  }
3899
- return message;
3900
4166
  },
3901
4167
 
3902
4168
  fromJSON(object: any): SloDashboardEntry {
@@ -3965,58 +4231,67 @@ export const CreateSloDashboardRequest: MessageFns<CreateSloDashboardRequest> =
3965
4231
 
3966
4232
  decode(input: BinaryReader | Uint8Array, length?: number): CreateSloDashboardRequest {
3967
4233
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3968
- const end = length === undefined ? reader.len : reader.pos + length;
3969
- const message = createBaseCreateSloDashboardRequest();
3970
- while (reader.pos < end) {
3971
- const tag = reader.uint32();
3972
- switch (tag >>> 3) {
3973
- case 1: {
3974
- if (tag !== 10) {
3975
- break;
3976
- }
3977
-
3978
- message.organizationId = reader.string();
3979
- continue;
3980
- }
3981
- case 2: {
3982
- if (tag !== 18) {
3983
- break;
3984
- }
3985
-
3986
- message.projectId = reader.string();
3987
- continue;
3988
- }
3989
- case 3: {
3990
- if (tag !== 26) {
3991
- break;
3992
- }
3993
-
3994
- message.name = reader.string();
3995
- continue;
3996
- }
3997
- case 4: {
3998
- if (tag !== 34) {
3999
- break;
4000
- }
4001
-
4002
- message.description = reader.string();
4003
- continue;
4004
- }
4005
- case 5: {
4006
- if (tag !== 42) {
4007
- break;
4008
- }
4009
-
4010
- message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
4011
- continue;
4012
- }
4234
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4235
+ if (previousRecursionDepth >= 100) {
4236
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4237
+ }
4238
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4239
+ try {
4240
+ const end = length === undefined ? reader.len : reader.pos + length;
4241
+ const message = createBaseCreateSloDashboardRequest();
4242
+ while (reader.pos < end) {
4243
+ const tag = reader.uint32();
4244
+ switch (tag >>> 3) {
4245
+ case 1: {
4246
+ if (tag !== 10) {
4247
+ break;
4248
+ }
4249
+
4250
+ message.organizationId = reader.string();
4251
+ continue;
4252
+ }
4253
+ case 2: {
4254
+ if (tag !== 18) {
4255
+ break;
4256
+ }
4257
+
4258
+ message.projectId = reader.string();
4259
+ continue;
4260
+ }
4261
+ case 3: {
4262
+ if (tag !== 26) {
4263
+ break;
4264
+ }
4265
+
4266
+ message.name = reader.string();
4267
+ continue;
4268
+ }
4269
+ case 4: {
4270
+ if (tag !== 34) {
4271
+ break;
4272
+ }
4273
+
4274
+ message.description = reader.string();
4275
+ continue;
4276
+ }
4277
+ case 5: {
4278
+ if (tag !== 42) {
4279
+ break;
4280
+ }
4281
+
4282
+ message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
4283
+ continue;
4284
+ }
4285
+ }
4286
+ if ((tag & 7) === 4 || tag === 0) {
4287
+ break;
4288
+ }
4289
+ reader.skip(tag & 7);
4013
4290
  }
4014
- if ((tag & 7) === 4 || tag === 0) {
4015
- break;
4016
- }
4017
- reader.skip(tag & 7);
4291
+ return message;
4292
+ } finally {
4293
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4018
4294
  }
4019
- return message;
4020
4295
  },
4021
4296
 
4022
4297
  fromJSON(object: any): CreateSloDashboardRequest {
@@ -4090,34 +4365,43 @@ export const CreateSloDashboardResponse: MessageFns<CreateSloDashboardResponse>
4090
4365
 
4091
4366
  decode(input: BinaryReader | Uint8Array, length?: number): CreateSloDashboardResponse {
4092
4367
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4093
- const end = length === undefined ? reader.len : reader.pos + length;
4094
- const message = createBaseCreateSloDashboardResponse();
4095
- while (reader.pos < end) {
4096
- const tag = reader.uint32();
4097
- switch (tag >>> 3) {
4098
- case 1: {
4099
- if (tag !== 10) {
4100
- break;
4101
- }
4102
-
4103
- message.status = ResponseStatus.decode(reader, reader.uint32());
4104
- continue;
4105
- }
4106
- case 2: {
4107
- if (tag !== 18) {
4108
- break;
4109
- }
4110
-
4111
- message.dashboard = SloDashboard.decode(reader, reader.uint32());
4112
- continue;
4113
- }
4114
- }
4115
- if ((tag & 7) === 4 || tag === 0) {
4116
- break;
4368
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4369
+ if (previousRecursionDepth >= 100) {
4370
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4371
+ }
4372
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4373
+ try {
4374
+ const end = length === undefined ? reader.len : reader.pos + length;
4375
+ const message = createBaseCreateSloDashboardResponse();
4376
+ while (reader.pos < end) {
4377
+ const tag = reader.uint32();
4378
+ switch (tag >>> 3) {
4379
+ case 1: {
4380
+ if (tag !== 10) {
4381
+ break;
4382
+ }
4383
+
4384
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4385
+ continue;
4386
+ }
4387
+ case 2: {
4388
+ if (tag !== 18) {
4389
+ break;
4390
+ }
4391
+
4392
+ message.dashboard = SloDashboard.decode(reader, reader.uint32());
4393
+ continue;
4394
+ }
4395
+ }
4396
+ if ((tag & 7) === 4 || tag === 0) {
4397
+ break;
4398
+ }
4399
+ reader.skip(tag & 7);
4117
4400
  }
4118
- reader.skip(tag & 7);
4401
+ return message;
4402
+ } finally {
4403
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4119
4404
  }
4120
- return message;
4121
4405
  },
4122
4406
 
4123
4407
  fromJSON(object: any): CreateSloDashboardResponse {
@@ -4173,42 +4457,51 @@ export const GetSloDashboardRequest: MessageFns<GetSloDashboardRequest> = {
4173
4457
 
4174
4458
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloDashboardRequest {
4175
4459
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4176
- const end = length === undefined ? reader.len : reader.pos + length;
4177
- const message = createBaseGetSloDashboardRequest();
4178
- while (reader.pos < end) {
4179
- const tag = reader.uint32();
4180
- switch (tag >>> 3) {
4181
- case 1: {
4182
- if (tag !== 10) {
4183
- break;
4184
- }
4185
-
4186
- message.organizationId = reader.string();
4187
- continue;
4188
- }
4189
- case 2: {
4190
- if (tag !== 18) {
4191
- break;
4192
- }
4193
-
4194
- message.projectId = reader.string();
4195
- continue;
4196
- }
4197
- case 3: {
4198
- if (tag !== 26) {
4199
- break;
4200
- }
4201
-
4202
- message.dashboardId = reader.string();
4203
- continue;
4204
- }
4205
- }
4206
- if ((tag & 7) === 4 || tag === 0) {
4207
- break;
4460
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4461
+ if (previousRecursionDepth >= 100) {
4462
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4463
+ }
4464
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4465
+ try {
4466
+ const end = length === undefined ? reader.len : reader.pos + length;
4467
+ const message = createBaseGetSloDashboardRequest();
4468
+ while (reader.pos < end) {
4469
+ const tag = reader.uint32();
4470
+ switch (tag >>> 3) {
4471
+ case 1: {
4472
+ if (tag !== 10) {
4473
+ break;
4474
+ }
4475
+
4476
+ message.organizationId = reader.string();
4477
+ continue;
4478
+ }
4479
+ case 2: {
4480
+ if (tag !== 18) {
4481
+ break;
4482
+ }
4483
+
4484
+ message.projectId = reader.string();
4485
+ continue;
4486
+ }
4487
+ case 3: {
4488
+ if (tag !== 26) {
4489
+ break;
4490
+ }
4491
+
4492
+ message.dashboardId = reader.string();
4493
+ continue;
4494
+ }
4495
+ }
4496
+ if ((tag & 7) === 4 || tag === 0) {
4497
+ break;
4498
+ }
4499
+ reader.skip(tag & 7);
4208
4500
  }
4209
- reader.skip(tag & 7);
4501
+ return message;
4502
+ } finally {
4503
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4210
4504
  }
4211
- return message;
4212
4505
  },
4213
4506
 
4214
4507
  fromJSON(object: any): GetSloDashboardRequest {
@@ -4274,34 +4567,43 @@ export const GetSloDashboardResponse: MessageFns<GetSloDashboardResponse> = {
4274
4567
 
4275
4568
  decode(input: BinaryReader | Uint8Array, length?: number): GetSloDashboardResponse {
4276
4569
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4277
- const end = length === undefined ? reader.len : reader.pos + length;
4278
- const message = createBaseGetSloDashboardResponse();
4279
- while (reader.pos < end) {
4280
- const tag = reader.uint32();
4281
- switch (tag >>> 3) {
4282
- case 1: {
4283
- if (tag !== 10) {
4284
- break;
4285
- }
4286
-
4287
- message.status = ResponseStatus.decode(reader, reader.uint32());
4288
- continue;
4289
- }
4290
- case 2: {
4291
- if (tag !== 18) {
4292
- break;
4293
- }
4294
-
4295
- message.dashboard = SloDashboard.decode(reader, reader.uint32());
4296
- continue;
4297
- }
4570
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4571
+ if (previousRecursionDepth >= 100) {
4572
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4573
+ }
4574
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4575
+ try {
4576
+ const end = length === undefined ? reader.len : reader.pos + length;
4577
+ const message = createBaseGetSloDashboardResponse();
4578
+ while (reader.pos < end) {
4579
+ const tag = reader.uint32();
4580
+ switch (tag >>> 3) {
4581
+ case 1: {
4582
+ if (tag !== 10) {
4583
+ break;
4584
+ }
4585
+
4586
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4587
+ continue;
4588
+ }
4589
+ case 2: {
4590
+ if (tag !== 18) {
4591
+ break;
4592
+ }
4593
+
4594
+ message.dashboard = SloDashboard.decode(reader, reader.uint32());
4595
+ continue;
4596
+ }
4597
+ }
4598
+ if ((tag & 7) === 4 || tag === 0) {
4599
+ break;
4600
+ }
4601
+ reader.skip(tag & 7);
4298
4602
  }
4299
- if ((tag & 7) === 4 || tag === 0) {
4300
- break;
4301
- }
4302
- reader.skip(tag & 7);
4603
+ return message;
4604
+ } finally {
4605
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4303
4606
  }
4304
- return message;
4305
4607
  },
4306
4608
 
4307
4609
  fromJSON(object: any): GetSloDashboardResponse {
@@ -4354,34 +4656,43 @@ export const ListSloDashboardsRequest: MessageFns<ListSloDashboardsRequest> = {
4354
4656
 
4355
4657
  decode(input: BinaryReader | Uint8Array, length?: number): ListSloDashboardsRequest {
4356
4658
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4357
- const end = length === undefined ? reader.len : reader.pos + length;
4358
- const message = createBaseListSloDashboardsRequest();
4359
- while (reader.pos < end) {
4360
- const tag = reader.uint32();
4361
- switch (tag >>> 3) {
4362
- case 1: {
4363
- if (tag !== 10) {
4364
- break;
4365
- }
4366
-
4367
- message.organizationId = reader.string();
4368
- continue;
4369
- }
4370
- case 2: {
4371
- if (tag !== 18) {
4372
- break;
4373
- }
4374
-
4375
- message.projectId = reader.string();
4376
- continue;
4377
- }
4378
- }
4379
- if ((tag & 7) === 4 || tag === 0) {
4380
- break;
4659
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4660
+ if (previousRecursionDepth >= 100) {
4661
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4662
+ }
4663
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4664
+ try {
4665
+ const end = length === undefined ? reader.len : reader.pos + length;
4666
+ const message = createBaseListSloDashboardsRequest();
4667
+ while (reader.pos < end) {
4668
+ const tag = reader.uint32();
4669
+ switch (tag >>> 3) {
4670
+ case 1: {
4671
+ if (tag !== 10) {
4672
+ break;
4673
+ }
4674
+
4675
+ message.organizationId = reader.string();
4676
+ continue;
4677
+ }
4678
+ case 2: {
4679
+ if (tag !== 18) {
4680
+ break;
4681
+ }
4682
+
4683
+ message.projectId = reader.string();
4684
+ continue;
4685
+ }
4686
+ }
4687
+ if ((tag & 7) === 4 || tag === 0) {
4688
+ break;
4689
+ }
4690
+ reader.skip(tag & 7);
4381
4691
  }
4382
- reader.skip(tag & 7);
4692
+ return message;
4693
+ } finally {
4694
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4383
4695
  }
4384
- return message;
4385
4696
  },
4386
4697
 
4387
4698
  fromJSON(object: any): ListSloDashboardsRequest {
@@ -4438,34 +4749,43 @@ export const ListSloDashboardsResponse: MessageFns<ListSloDashboardsResponse> =
4438
4749
 
4439
4750
  decode(input: BinaryReader | Uint8Array, length?: number): ListSloDashboardsResponse {
4440
4751
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4441
- const end = length === undefined ? reader.len : reader.pos + length;
4442
- const message = createBaseListSloDashboardsResponse();
4443
- while (reader.pos < end) {
4444
- const tag = reader.uint32();
4445
- switch (tag >>> 3) {
4446
- case 1: {
4447
- if (tag !== 10) {
4448
- break;
4449
- }
4450
-
4451
- message.status = ResponseStatus.decode(reader, reader.uint32());
4452
- continue;
4453
- }
4454
- case 2: {
4455
- if (tag !== 18) {
4456
- break;
4457
- }
4458
-
4459
- message.dashboards.push(SloDashboardSummary.decode(reader, reader.uint32()));
4460
- continue;
4461
- }
4752
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4753
+ if (previousRecursionDepth >= 100) {
4754
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4755
+ }
4756
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4757
+ try {
4758
+ const end = length === undefined ? reader.len : reader.pos + length;
4759
+ const message = createBaseListSloDashboardsResponse();
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.status = ResponseStatus.decode(reader, reader.uint32());
4769
+ continue;
4770
+ }
4771
+ case 2: {
4772
+ if (tag !== 18) {
4773
+ break;
4774
+ }
4775
+
4776
+ message.dashboards.push(SloDashboardSummary.decode(reader, reader.uint32()));
4777
+ continue;
4778
+ }
4779
+ }
4780
+ if ((tag & 7) === 4 || tag === 0) {
4781
+ break;
4782
+ }
4783
+ reader.skip(tag & 7);
4462
4784
  }
4463
- if ((tag & 7) === 4 || tag === 0) {
4464
- break;
4465
- }
4466
- reader.skip(tag & 7);
4785
+ return message;
4786
+ } finally {
4787
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4467
4788
  }
4468
- return message;
4469
4789
  },
4470
4790
 
4471
4791
  fromJSON(object: any): ListSloDashboardsResponse {
@@ -4541,74 +4861,83 @@ export const SloDashboardSummary: MessageFns<SloDashboardSummary> = {
4541
4861
 
4542
4862
  decode(input: BinaryReader | Uint8Array, length?: number): SloDashboardSummary {
4543
4863
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4544
- const end = length === undefined ? reader.len : reader.pos + length;
4545
- const message = createBaseSloDashboardSummary();
4546
- while (reader.pos < end) {
4547
- const tag = reader.uint32();
4548
- switch (tag >>> 3) {
4549
- case 1: {
4550
- if (tag !== 10) {
4551
- break;
4552
- }
4553
-
4554
- message.id = reader.string();
4555
- continue;
4556
- }
4557
- case 2: {
4558
- if (tag !== 18) {
4559
- break;
4560
- }
4561
-
4562
- message.name = reader.string();
4563
- continue;
4564
- }
4565
- case 3: {
4566
- if (tag !== 26) {
4567
- break;
4568
- }
4569
-
4570
- message.description = reader.string();
4571
- continue;
4572
- }
4573
- case 4: {
4574
- if (tag !== 32) {
4575
- break;
4576
- }
4577
-
4578
- message.sloCount = reader.uint32();
4579
- continue;
4580
- }
4581
- case 5: {
4582
- if (tag !== 42) {
4583
- break;
4584
- }
4585
-
4586
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4587
- continue;
4588
- }
4589
- case 6: {
4590
- if (tag !== 50) {
4591
- break;
4592
- }
4593
-
4594
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4595
- continue;
4596
- }
4597
- case 7: {
4598
- if (tag !== 58) {
4599
- break;
4600
- }
4601
-
4602
- message.health = SloDashboardHealth.decode(reader, reader.uint32());
4603
- continue;
4604
- }
4864
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4865
+ if (previousRecursionDepth >= 100) {
4866
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4867
+ }
4868
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4869
+ try {
4870
+ const end = length === undefined ? reader.len : reader.pos + length;
4871
+ const message = createBaseSloDashboardSummary();
4872
+ while (reader.pos < end) {
4873
+ const tag = reader.uint32();
4874
+ switch (tag >>> 3) {
4875
+ case 1: {
4876
+ if (tag !== 10) {
4877
+ break;
4878
+ }
4879
+
4880
+ message.id = reader.string();
4881
+ continue;
4882
+ }
4883
+ case 2: {
4884
+ if (tag !== 18) {
4885
+ break;
4886
+ }
4887
+
4888
+ message.name = reader.string();
4889
+ continue;
4890
+ }
4891
+ case 3: {
4892
+ if (tag !== 26) {
4893
+ break;
4894
+ }
4895
+
4896
+ message.description = reader.string();
4897
+ continue;
4898
+ }
4899
+ case 4: {
4900
+ if (tag !== 32) {
4901
+ break;
4902
+ }
4903
+
4904
+ message.sloCount = reader.uint32();
4905
+ continue;
4906
+ }
4907
+ case 5: {
4908
+ if (tag !== 42) {
4909
+ break;
4910
+ }
4911
+
4912
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4913
+ continue;
4914
+ }
4915
+ case 6: {
4916
+ if (tag !== 50) {
4917
+ break;
4918
+ }
4919
+
4920
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
4921
+ continue;
4922
+ }
4923
+ case 7: {
4924
+ if (tag !== 58) {
4925
+ break;
4926
+ }
4927
+
4928
+ message.health = SloDashboardHealth.decode(reader, reader.uint32());
4929
+ continue;
4930
+ }
4931
+ }
4932
+ if ((tag & 7) === 4 || tag === 0) {
4933
+ break;
4934
+ }
4935
+ reader.skip(tag & 7);
4605
4936
  }
4606
- if ((tag & 7) === 4 || tag === 0) {
4607
- break;
4608
- }
4609
- reader.skip(tag & 7);
4937
+ return message;
4938
+ } finally {
4939
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4610
4940
  }
4611
- return message;
4612
4941
  },
4613
4942
 
4614
4943
  fromJSON(object: any): SloDashboardSummary {
@@ -4719,74 +5048,83 @@ export const SloDashboardHealth: MessageFns<SloDashboardHealth> = {
4719
5048
 
4720
5049
  decode(input: BinaryReader | Uint8Array, length?: number): SloDashboardHealth {
4721
5050
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4722
- const end = length === undefined ? reader.len : reader.pos + length;
4723
- const message = createBaseSloDashboardHealth();
4724
- while (reader.pos < end) {
4725
- const tag = reader.uint32();
4726
- switch (tag >>> 3) {
4727
- case 1: {
4728
- if (tag !== 8) {
4729
- break;
4730
- }
4731
-
4732
- message.okCount = reader.uint32();
4733
- continue;
4734
- }
4735
- case 2: {
4736
- if (tag !== 16) {
4737
- break;
4738
- }
4739
-
4740
- message.breachedCount = reader.uint32();
4741
- continue;
4742
- }
4743
- case 3: {
4744
- if (tag !== 24) {
4745
- break;
4746
- }
4747
-
4748
- message.noDataCount = reader.uint32();
4749
- continue;
4750
- }
4751
- case 4: {
4752
- if (tag !== 33) {
4753
- break;
4754
- }
4755
-
4756
- message.lowestBudgetRemaining = reader.double();
4757
- continue;
4758
- }
4759
- case 5: {
4760
- if (tag !== 40) {
4761
- break;
4762
- }
4763
-
4764
- message.worstState = reader.int32() as any;
4765
- continue;
4766
- }
4767
- case 6: {
4768
- if (tag !== 50) {
4769
- break;
4770
- }
4771
-
4772
- message.worstEntryId = reader.string();
4773
- continue;
4774
- }
4775
- case 7: {
4776
- if (tag !== 56) {
4777
- break;
4778
- }
4779
-
4780
- message.atRiskCount = reader.uint32();
4781
- continue;
4782
- }
5051
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5052
+ if (previousRecursionDepth >= 100) {
5053
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5054
+ }
5055
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5056
+ try {
5057
+ const end = length === undefined ? reader.len : reader.pos + length;
5058
+ const message = createBaseSloDashboardHealth();
5059
+ while (reader.pos < end) {
5060
+ const tag = reader.uint32();
5061
+ switch (tag >>> 3) {
5062
+ case 1: {
5063
+ if (tag !== 8) {
5064
+ break;
5065
+ }
5066
+
5067
+ message.okCount = reader.uint32();
5068
+ continue;
5069
+ }
5070
+ case 2: {
5071
+ if (tag !== 16) {
5072
+ break;
5073
+ }
5074
+
5075
+ message.breachedCount = reader.uint32();
5076
+ continue;
5077
+ }
5078
+ case 3: {
5079
+ if (tag !== 24) {
5080
+ break;
5081
+ }
5082
+
5083
+ message.noDataCount = reader.uint32();
5084
+ continue;
5085
+ }
5086
+ case 4: {
5087
+ if (tag !== 33) {
5088
+ break;
5089
+ }
5090
+
5091
+ message.lowestBudgetRemaining = reader.double();
5092
+ continue;
5093
+ }
5094
+ case 5: {
5095
+ if (tag !== 40) {
5096
+ break;
5097
+ }
5098
+
5099
+ message.worstState = reader.int32() as any;
5100
+ continue;
5101
+ }
5102
+ case 6: {
5103
+ if (tag !== 50) {
5104
+ break;
5105
+ }
5106
+
5107
+ message.worstEntryId = reader.string();
5108
+ continue;
5109
+ }
5110
+ case 7: {
5111
+ if (tag !== 56) {
5112
+ break;
5113
+ }
5114
+
5115
+ message.atRiskCount = reader.uint32();
5116
+ continue;
5117
+ }
5118
+ }
5119
+ if ((tag & 7) === 4 || tag === 0) {
5120
+ break;
5121
+ }
5122
+ reader.skip(tag & 7);
4783
5123
  }
4784
- if ((tag & 7) === 4 || tag === 0) {
4785
- break;
4786
- }
4787
- reader.skip(tag & 7);
5124
+ return message;
5125
+ } finally {
5126
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4788
5127
  }
4789
- return message;
4790
5128
  },
4791
5129
 
4792
5130
  fromJSON(object: any): SloDashboardHealth {
@@ -4903,74 +5241,83 @@ export const UpdateSloDashboardRequest: MessageFns<UpdateSloDashboardRequest> =
4903
5241
 
4904
5242
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateSloDashboardRequest {
4905
5243
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4906
- const end = length === undefined ? reader.len : reader.pos + length;
4907
- const message = createBaseUpdateSloDashboardRequest();
4908
- while (reader.pos < end) {
4909
- const tag = reader.uint32();
4910
- switch (tag >>> 3) {
4911
- case 1: {
4912
- if (tag !== 10) {
4913
- break;
4914
- }
4915
-
4916
- message.organizationId = reader.string();
4917
- continue;
4918
- }
4919
- case 2: {
4920
- if (tag !== 18) {
4921
- break;
4922
- }
4923
-
4924
- message.projectId = reader.string();
4925
- continue;
4926
- }
4927
- case 3: {
4928
- if (tag !== 26) {
4929
- break;
4930
- }
4931
-
4932
- message.dashboardId = reader.string();
4933
- continue;
4934
- }
4935
- case 4: {
4936
- if (tag !== 34) {
4937
- break;
4938
- }
4939
-
4940
- message.name = reader.string();
4941
- continue;
4942
- }
4943
- case 5: {
4944
- if (tag !== 42) {
4945
- break;
4946
- }
4947
-
4948
- message.description = reader.string();
4949
- continue;
4950
- }
4951
- case 6: {
4952
- if (tag !== 50) {
4953
- break;
4954
- }
4955
-
4956
- message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
4957
- continue;
4958
- }
4959
- case 7: {
4960
- if (tag !== 56) {
4961
- break;
4962
- }
4963
-
4964
- message.version = longToNumber(reader.int64());
4965
- continue;
4966
- }
5244
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5245
+ if (previousRecursionDepth >= 100) {
5246
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5247
+ }
5248
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5249
+ try {
5250
+ const end = length === undefined ? reader.len : reader.pos + length;
5251
+ const message = createBaseUpdateSloDashboardRequest();
5252
+ while (reader.pos < end) {
5253
+ const tag = reader.uint32();
5254
+ switch (tag >>> 3) {
5255
+ case 1: {
5256
+ if (tag !== 10) {
5257
+ break;
5258
+ }
5259
+
5260
+ message.organizationId = reader.string();
5261
+ continue;
5262
+ }
5263
+ case 2: {
5264
+ if (tag !== 18) {
5265
+ break;
5266
+ }
5267
+
5268
+ message.projectId = reader.string();
5269
+ continue;
5270
+ }
5271
+ case 3: {
5272
+ if (tag !== 26) {
5273
+ break;
5274
+ }
5275
+
5276
+ message.dashboardId = reader.string();
5277
+ continue;
5278
+ }
5279
+ case 4: {
5280
+ if (tag !== 34) {
5281
+ break;
5282
+ }
5283
+
5284
+ message.name = reader.string();
5285
+ continue;
5286
+ }
5287
+ case 5: {
5288
+ if (tag !== 42) {
5289
+ break;
5290
+ }
5291
+
5292
+ message.description = reader.string();
5293
+ continue;
5294
+ }
5295
+ case 6: {
5296
+ if (tag !== 50) {
5297
+ break;
5298
+ }
5299
+
5300
+ message.entries.push(SloDashboardEntry.decode(reader, reader.uint32()));
5301
+ continue;
5302
+ }
5303
+ case 7: {
5304
+ if (tag !== 56) {
5305
+ break;
5306
+ }
5307
+
5308
+ message.version = longToNumber(reader.int64());
5309
+ continue;
5310
+ }
5311
+ }
5312
+ if ((tag & 7) === 4 || tag === 0) {
5313
+ break;
5314
+ }
5315
+ reader.skip(tag & 7);
4967
5316
  }
4968
- if ((tag & 7) === 4 || tag === 0) {
4969
- break;
4970
- }
4971
- reader.skip(tag & 7);
5317
+ return message;
5318
+ } finally {
5319
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4972
5320
  }
4973
- return message;
4974
5321
  },
4975
5322
 
4976
5323
  fromJSON(object: any): UpdateSloDashboardRequest {
@@ -5058,34 +5405,43 @@ export const UpdateSloDashboardResponse: MessageFns<UpdateSloDashboardResponse>
5058
5405
 
5059
5406
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateSloDashboardResponse {
5060
5407
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5061
- const end = length === undefined ? reader.len : reader.pos + length;
5062
- const message = createBaseUpdateSloDashboardResponse();
5063
- while (reader.pos < end) {
5064
- const tag = reader.uint32();
5065
- switch (tag >>> 3) {
5066
- case 1: {
5067
- if (tag !== 10) {
5068
- break;
5069
- }
5070
-
5071
- message.status = ResponseStatus.decode(reader, reader.uint32());
5072
- continue;
5073
- }
5074
- case 2: {
5075
- if (tag !== 18) {
5076
- break;
5077
- }
5078
-
5079
- message.dashboard = SloDashboard.decode(reader, reader.uint32());
5080
- continue;
5081
- }
5082
- }
5083
- if ((tag & 7) === 4 || tag === 0) {
5084
- break;
5408
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5409
+ if (previousRecursionDepth >= 100) {
5410
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5411
+ }
5412
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5413
+ try {
5414
+ const end = length === undefined ? reader.len : reader.pos + length;
5415
+ const message = createBaseUpdateSloDashboardResponse();
5416
+ while (reader.pos < end) {
5417
+ const tag = reader.uint32();
5418
+ switch (tag >>> 3) {
5419
+ case 1: {
5420
+ if (tag !== 10) {
5421
+ break;
5422
+ }
5423
+
5424
+ message.status = ResponseStatus.decode(reader, reader.uint32());
5425
+ continue;
5426
+ }
5427
+ case 2: {
5428
+ if (tag !== 18) {
5429
+ break;
5430
+ }
5431
+
5432
+ message.dashboard = SloDashboard.decode(reader, reader.uint32());
5433
+ continue;
5434
+ }
5435
+ }
5436
+ if ((tag & 7) === 4 || tag === 0) {
5437
+ break;
5438
+ }
5439
+ reader.skip(tag & 7);
5085
5440
  }
5086
- reader.skip(tag & 7);
5441
+ return message;
5442
+ } finally {
5443
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5087
5444
  }
5088
- return message;
5089
5445
  },
5090
5446
 
5091
5447
  fromJSON(object: any): UpdateSloDashboardResponse {
@@ -5141,42 +5497,51 @@ export const DeleteSloDashboardRequest: MessageFns<DeleteSloDashboardRequest> =
5141
5497
 
5142
5498
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteSloDashboardRequest {
5143
5499
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5144
- const end = length === undefined ? reader.len : reader.pos + length;
5145
- const message = createBaseDeleteSloDashboardRequest();
5146
- while (reader.pos < end) {
5147
- const tag = reader.uint32();
5148
- switch (tag >>> 3) {
5149
- case 1: {
5150
- if (tag !== 10) {
5151
- break;
5152
- }
5153
-
5154
- message.organizationId = reader.string();
5155
- continue;
5156
- }
5157
- case 2: {
5158
- if (tag !== 18) {
5159
- break;
5160
- }
5161
-
5162
- message.projectId = reader.string();
5163
- continue;
5164
- }
5165
- case 3: {
5166
- if (tag !== 26) {
5167
- break;
5168
- }
5169
-
5170
- message.dashboardId = reader.string();
5171
- continue;
5172
- }
5173
- }
5174
- if ((tag & 7) === 4 || tag === 0) {
5175
- break;
5500
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5501
+ if (previousRecursionDepth >= 100) {
5502
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5503
+ }
5504
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5505
+ try {
5506
+ const end = length === undefined ? reader.len : reader.pos + length;
5507
+ const message = createBaseDeleteSloDashboardRequest();
5508
+ while (reader.pos < end) {
5509
+ const tag = reader.uint32();
5510
+ switch (tag >>> 3) {
5511
+ case 1: {
5512
+ if (tag !== 10) {
5513
+ break;
5514
+ }
5515
+
5516
+ message.organizationId = reader.string();
5517
+ continue;
5518
+ }
5519
+ case 2: {
5520
+ if (tag !== 18) {
5521
+ break;
5522
+ }
5523
+
5524
+ message.projectId = reader.string();
5525
+ continue;
5526
+ }
5527
+ case 3: {
5528
+ if (tag !== 26) {
5529
+ break;
5530
+ }
5531
+
5532
+ message.dashboardId = reader.string();
5533
+ continue;
5534
+ }
5535
+ }
5536
+ if ((tag & 7) === 4 || tag === 0) {
5537
+ break;
5538
+ }
5539
+ reader.skip(tag & 7);
5176
5540
  }
5177
- reader.skip(tag & 7);
5541
+ return message;
5542
+ } finally {
5543
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5178
5544
  }
5179
- return message;
5180
5545
  },
5181
5546
 
5182
5547
  fromJSON(object: any): DeleteSloDashboardRequest {
@@ -5239,26 +5604,35 @@ export const DeleteSloDashboardResponse: MessageFns<DeleteSloDashboardResponse>
5239
5604
 
5240
5605
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteSloDashboardResponse {
5241
5606
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5242
- const end = length === undefined ? reader.len : reader.pos + length;
5243
- const message = createBaseDeleteSloDashboardResponse();
5244
- while (reader.pos < end) {
5245
- const tag = reader.uint32();
5246
- switch (tag >>> 3) {
5247
- case 1: {
5248
- if (tag !== 10) {
5249
- break;
5250
- }
5251
-
5252
- message.status = ResponseStatus.decode(reader, reader.uint32());
5253
- continue;
5254
- }
5255
- }
5256
- if ((tag & 7) === 4 || tag === 0) {
5257
- break;
5607
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5608
+ if (previousRecursionDepth >= 100) {
5609
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5610
+ }
5611
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5612
+ try {
5613
+ const end = length === undefined ? reader.len : reader.pos + length;
5614
+ const message = createBaseDeleteSloDashboardResponse();
5615
+ while (reader.pos < end) {
5616
+ const tag = reader.uint32();
5617
+ switch (tag >>> 3) {
5618
+ case 1: {
5619
+ if (tag !== 10) {
5620
+ break;
5621
+ }
5622
+
5623
+ message.status = ResponseStatus.decode(reader, reader.uint32());
5624
+ continue;
5625
+ }
5626
+ }
5627
+ if ((tag & 7) === 4 || tag === 0) {
5628
+ break;
5629
+ }
5630
+ reader.skip(tag & 7);
5258
5631
  }
5259
- reader.skip(tag & 7);
5632
+ return message;
5633
+ } finally {
5634
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5260
5635
  }
5261
- return message;
5262
5636
  },
5263
5637
 
5264
5638
  fromJSON(object: any): DeleteSloDashboardResponse {
@@ -5308,50 +5682,59 @@ export const StreamSloDashboardDataRequest: MessageFns<StreamSloDashboardDataReq
5308
5682
 
5309
5683
  decode(input: BinaryReader | Uint8Array, length?: number): StreamSloDashboardDataRequest {
5310
5684
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5311
- const end = length === undefined ? reader.len : reader.pos + length;
5312
- const message = createBaseStreamSloDashboardDataRequest();
5313
- while (reader.pos < end) {
5314
- const tag = reader.uint32();
5315
- switch (tag >>> 3) {
5316
- case 1: {
5317
- if (tag !== 10) {
5318
- break;
5319
- }
5320
-
5321
- message.organizationId = reader.string();
5322
- continue;
5323
- }
5324
- case 2: {
5325
- if (tag !== 18) {
5326
- break;
5327
- }
5328
-
5329
- message.projectId = reader.string();
5330
- continue;
5331
- }
5332
- case 3: {
5333
- if (tag !== 26) {
5334
- break;
5335
- }
5336
-
5337
- message.dashboardId = reader.string();
5338
- continue;
5339
- }
5340
- case 4: {
5341
- if (tag !== 34) {
5342
- break;
5343
- }
5344
-
5345
- message.entryIds.push(reader.string());
5346
- continue;
5347
- }
5685
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5686
+ if (previousRecursionDepth >= 100) {
5687
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5688
+ }
5689
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5690
+ try {
5691
+ const end = length === undefined ? reader.len : reader.pos + length;
5692
+ const message = createBaseStreamSloDashboardDataRequest();
5693
+ while (reader.pos < end) {
5694
+ const tag = reader.uint32();
5695
+ switch (tag >>> 3) {
5696
+ case 1: {
5697
+ if (tag !== 10) {
5698
+ break;
5699
+ }
5700
+
5701
+ message.organizationId = reader.string();
5702
+ continue;
5703
+ }
5704
+ case 2: {
5705
+ if (tag !== 18) {
5706
+ break;
5707
+ }
5708
+
5709
+ message.projectId = reader.string();
5710
+ continue;
5711
+ }
5712
+ case 3: {
5713
+ if (tag !== 26) {
5714
+ break;
5715
+ }
5716
+
5717
+ message.dashboardId = reader.string();
5718
+ continue;
5719
+ }
5720
+ case 4: {
5721
+ if (tag !== 34) {
5722
+ break;
5723
+ }
5724
+
5725
+ message.entryIds.push(reader.string());
5726
+ continue;
5727
+ }
5728
+ }
5729
+ if ((tag & 7) === 4 || tag === 0) {
5730
+ break;
5731
+ }
5732
+ reader.skip(tag & 7);
5348
5733
  }
5349
- if ((tag & 7) === 4 || tag === 0) {
5350
- break;
5351
- }
5352
- reader.skip(tag & 7);
5734
+ return message;
5735
+ } finally {
5736
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5353
5737
  }
5354
- return message;
5355
5738
  },
5356
5739
 
5357
5740
  fromJSON(object: any): StreamSloDashboardDataRequest {
@@ -5431,42 +5814,51 @@ export const SloDashboardDataEnvelope: MessageFns<SloDashboardDataEnvelope> = {
5431
5814
 
5432
5815
  decode(input: BinaryReader | Uint8Array, length?: number): SloDashboardDataEnvelope {
5433
5816
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5434
- const end = length === undefined ? reader.len : reader.pos + length;
5435
- const message = createBaseSloDashboardDataEnvelope();
5436
- while (reader.pos < end) {
5437
- const tag = reader.uint32();
5438
- switch (tag >>> 3) {
5439
- case 1: {
5440
- if (tag !== 10) {
5441
- break;
5442
- }
5443
-
5444
- message.entryId = reader.string();
5445
- continue;
5446
- }
5447
- case 2: {
5448
- if (tag !== 18) {
5449
- break;
5450
- }
5451
-
5452
- message.status = SloStatus.decode(reader, reader.uint32());
5453
- continue;
5454
- }
5455
- case 3: {
5456
- if (tag !== 26) {
5457
- break;
5458
- }
5459
-
5460
- message.error = SloPanelError.decode(reader, reader.uint32());
5461
- continue;
5462
- }
5817
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5818
+ if (previousRecursionDepth >= 100) {
5819
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5820
+ }
5821
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5822
+ try {
5823
+ const end = length === undefined ? reader.len : reader.pos + length;
5824
+ const message = createBaseSloDashboardDataEnvelope();
5825
+ while (reader.pos < end) {
5826
+ const tag = reader.uint32();
5827
+ switch (tag >>> 3) {
5828
+ case 1: {
5829
+ if (tag !== 10) {
5830
+ break;
5831
+ }
5832
+
5833
+ message.entryId = reader.string();
5834
+ continue;
5835
+ }
5836
+ case 2: {
5837
+ if (tag !== 18) {
5838
+ break;
5839
+ }
5840
+
5841
+ message.status = SloStatus.decode(reader, reader.uint32());
5842
+ continue;
5843
+ }
5844
+ case 3: {
5845
+ if (tag !== 26) {
5846
+ break;
5847
+ }
5848
+
5849
+ message.error = SloPanelError.decode(reader, reader.uint32());
5850
+ continue;
5851
+ }
5852
+ }
5853
+ if ((tag & 7) === 4 || tag === 0) {
5854
+ break;
5855
+ }
5856
+ reader.skip(tag & 7);
5463
5857
  }
5464
- if ((tag & 7) === 4 || tag === 0) {
5465
- break;
5466
- }
5467
- reader.skip(tag & 7);
5858
+ return message;
5859
+ } finally {
5860
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5468
5861
  }
5469
- return message;
5470
5862
  },
5471
5863
 
5472
5864
  fromJSON(object: any): SloDashboardDataEnvelope {
@@ -5525,26 +5917,35 @@ export const SloPanelError: MessageFns<SloPanelError> = {
5525
5917
 
5526
5918
  decode(input: BinaryReader | Uint8Array, length?: number): SloPanelError {
5527
5919
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5528
- const end = length === undefined ? reader.len : reader.pos + length;
5529
- const message = createBaseSloPanelError();
5530
- while (reader.pos < end) {
5531
- const tag = reader.uint32();
5532
- switch (tag >>> 3) {
5533
- case 1: {
5534
- if (tag !== 10) {
5535
- break;
5536
- }
5537
-
5538
- message.message = reader.string();
5539
- continue;
5540
- }
5920
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5921
+ if (previousRecursionDepth >= 100) {
5922
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5923
+ }
5924
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5925
+ try {
5926
+ const end = length === undefined ? reader.len : reader.pos + length;
5927
+ const message = createBaseSloPanelError();
5928
+ while (reader.pos < end) {
5929
+ const tag = reader.uint32();
5930
+ switch (tag >>> 3) {
5931
+ case 1: {
5932
+ if (tag !== 10) {
5933
+ break;
5934
+ }
5935
+
5936
+ message.message = reader.string();
5937
+ continue;
5938
+ }
5939
+ }
5940
+ if ((tag & 7) === 4 || tag === 0) {
5941
+ break;
5942
+ }
5943
+ reader.skip(tag & 7);
5541
5944
  }
5542
- if ((tag & 7) === 4 || tag === 0) {
5543
- break;
5544
- }
5545
- reader.skip(tag & 7);
5945
+ return message;
5946
+ } finally {
5947
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
5546
5948
  }
5547
- return message;
5548
5949
  },
5549
5950
 
5550
5951
  fromJSON(object: any): SloPanelError {