@miradorlabs/web-grpc 2.32.0 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.12.0
3
+ // protoc-gen-ts_proto v2.12.1
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/metric_gateway.proto
6
6
 
@@ -562,34 +562,43 @@ export const StreamMetricsRequest: MessageFns<StreamMetricsRequest> = {
562
562
 
563
563
  decode(input: BinaryReader | Uint8Array, length?: number): StreamMetricsRequest {
564
564
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
565
- const end = length === undefined ? reader.len : reader.pos + length;
566
- const message = createBaseStreamMetricsRequest();
567
- while (reader.pos < end) {
568
- const tag = reader.uint32();
569
- switch (tag >>> 3) {
570
- case 1: {
571
- if (tag !== 10) {
572
- break;
573
- }
574
-
575
- message.organizationId = reader.string();
576
- continue;
577
- }
578
- case 2: {
579
- if (tag !== 18) {
580
- break;
581
- }
582
-
583
- message.projectId = reader.string();
584
- continue;
585
- }
586
- }
587
- if ((tag & 7) === 4 || tag === 0) {
588
- break;
565
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
566
+ if (previousRecursionDepth >= 100) {
567
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
568
+ }
569
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
570
+ try {
571
+ const end = length === undefined ? reader.len : reader.pos + length;
572
+ const message = createBaseStreamMetricsRequest();
573
+ while (reader.pos < end) {
574
+ const tag = reader.uint32();
575
+ switch (tag >>> 3) {
576
+ case 1: {
577
+ if (tag !== 10) {
578
+ break;
579
+ }
580
+
581
+ message.organizationId = reader.string();
582
+ continue;
583
+ }
584
+ case 2: {
585
+ if (tag !== 18) {
586
+ break;
587
+ }
588
+
589
+ message.projectId = reader.string();
590
+ continue;
591
+ }
592
+ }
593
+ if ((tag & 7) === 4 || tag === 0) {
594
+ break;
595
+ }
596
+ reader.skip(tag & 7);
589
597
  }
590
- reader.skip(tag & 7);
598
+ return message;
599
+ } finally {
600
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
591
601
  }
592
- return message;
593
602
  },
594
603
 
595
604
  fromJSON(object: any): StreamMetricsRequest {
@@ -646,34 +655,43 @@ export const MetricCatalogEnvelope: MessageFns<MetricCatalogEnvelope> = {
646
655
 
647
656
  decode(input: BinaryReader | Uint8Array, length?: number): MetricCatalogEnvelope {
648
657
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
649
- const end = length === undefined ? reader.len : reader.pos + length;
650
- const message = createBaseMetricCatalogEnvelope();
651
- while (reader.pos < end) {
652
- const tag = reader.uint32();
653
- switch (tag >>> 3) {
654
- case 1: {
655
- if (tag !== 10) {
656
- break;
657
- }
658
-
659
- message.snapshot = MetricCatalogSnapshot.decode(reader, reader.uint32());
660
- continue;
661
- }
662
- case 2: {
663
- if (tag !== 18) {
664
- break;
665
- }
666
-
667
- message.added = MetricInfo.decode(reader, reader.uint32());
668
- continue;
669
- }
658
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
659
+ if (previousRecursionDepth >= 100) {
660
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
661
+ }
662
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
663
+ try {
664
+ const end = length === undefined ? reader.len : reader.pos + length;
665
+ const message = createBaseMetricCatalogEnvelope();
666
+ while (reader.pos < end) {
667
+ const tag = reader.uint32();
668
+ switch (tag >>> 3) {
669
+ case 1: {
670
+ if (tag !== 10) {
671
+ break;
672
+ }
673
+
674
+ message.snapshot = MetricCatalogSnapshot.decode(reader, reader.uint32());
675
+ continue;
676
+ }
677
+ case 2: {
678
+ if (tag !== 18) {
679
+ break;
680
+ }
681
+
682
+ message.added = MetricInfo.decode(reader, reader.uint32());
683
+ continue;
684
+ }
685
+ }
686
+ if ((tag & 7) === 4 || tag === 0) {
687
+ break;
688
+ }
689
+ reader.skip(tag & 7);
670
690
  }
671
- if ((tag & 7) === 4 || tag === 0) {
672
- break;
673
- }
674
- reader.skip(tag & 7);
691
+ return message;
692
+ } finally {
693
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
675
694
  }
676
- return message;
677
695
  },
678
696
 
679
697
  fromJSON(object: any): MetricCatalogEnvelope {
@@ -723,26 +741,35 @@ export const MetricCatalogSnapshot: MessageFns<MetricCatalogSnapshot> = {
723
741
 
724
742
  decode(input: BinaryReader | Uint8Array, length?: number): MetricCatalogSnapshot {
725
743
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
726
- const end = length === undefined ? reader.len : reader.pos + length;
727
- const message = createBaseMetricCatalogSnapshot();
728
- while (reader.pos < end) {
729
- const tag = reader.uint32();
730
- switch (tag >>> 3) {
731
- case 1: {
732
- if (tag !== 10) {
733
- break;
734
- }
735
-
736
- message.metrics.push(MetricInfo.decode(reader, reader.uint32()));
737
- continue;
738
- }
744
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
745
+ if (previousRecursionDepth >= 100) {
746
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
747
+ }
748
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
749
+ try {
750
+ const end = length === undefined ? reader.len : reader.pos + length;
751
+ const message = createBaseMetricCatalogSnapshot();
752
+ while (reader.pos < end) {
753
+ const tag = reader.uint32();
754
+ switch (tag >>> 3) {
755
+ case 1: {
756
+ if (tag !== 10) {
757
+ break;
758
+ }
759
+
760
+ message.metrics.push(MetricInfo.decode(reader, reader.uint32()));
761
+ continue;
762
+ }
763
+ }
764
+ if ((tag & 7) === 4 || tag === 0) {
765
+ break;
766
+ }
767
+ reader.skip(tag & 7);
739
768
  }
740
- if ((tag & 7) === 4 || tag === 0) {
741
- break;
742
- }
743
- reader.skip(tag & 7);
769
+ return message;
770
+ } finally {
771
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
744
772
  }
745
- return message;
746
773
  },
747
774
 
748
775
  fromJSON(object: any): MetricCatalogSnapshot {
@@ -789,42 +816,51 @@ export const MetricInfo: MessageFns<MetricInfo> = {
789
816
 
790
817
  decode(input: BinaryReader | Uint8Array, length?: number): MetricInfo {
791
818
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
792
- const end = length === undefined ? reader.len : reader.pos + length;
793
- const message = createBaseMetricInfo();
794
- while (reader.pos < end) {
795
- const tag = reader.uint32();
796
- switch (tag >>> 3) {
797
- case 1: {
798
- if (tag !== 10) {
799
- break;
800
- }
801
-
802
- message.name = reader.string();
803
- continue;
804
- }
805
- case 2: {
806
- if (tag !== 18) {
807
- break;
808
- }
809
-
810
- message.unit = reader.string();
811
- continue;
812
- }
813
- case 3: {
814
- if (tag !== 24) {
815
- break;
816
- }
817
-
818
- message.kind = reader.int32() as any;
819
- continue;
820
- }
819
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
820
+ if (previousRecursionDepth >= 100) {
821
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
822
+ }
823
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
824
+ try {
825
+ const end = length === undefined ? reader.len : reader.pos + length;
826
+ const message = createBaseMetricInfo();
827
+ while (reader.pos < end) {
828
+ const tag = reader.uint32();
829
+ switch (tag >>> 3) {
830
+ case 1: {
831
+ if (tag !== 10) {
832
+ break;
833
+ }
834
+
835
+ message.name = reader.string();
836
+ continue;
837
+ }
838
+ case 2: {
839
+ if (tag !== 18) {
840
+ break;
841
+ }
842
+
843
+ message.unit = reader.string();
844
+ continue;
845
+ }
846
+ case 3: {
847
+ if (tag !== 24) {
848
+ break;
849
+ }
850
+
851
+ message.kind = reader.int32() as any;
852
+ continue;
853
+ }
854
+ }
855
+ if ((tag & 7) === 4 || tag === 0) {
856
+ break;
857
+ }
858
+ reader.skip(tag & 7);
821
859
  }
822
- if ((tag & 7) === 4 || tag === 0) {
823
- break;
824
- }
825
- reader.skip(tag & 7);
860
+ return message;
861
+ } finally {
862
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
826
863
  }
827
- return message;
828
864
  },
829
865
 
830
866
  fromJSON(object: any): MetricInfo {
@@ -881,42 +917,51 @@ export const StreamMetricAttributesRequest: MessageFns<StreamMetricAttributesReq
881
917
 
882
918
  decode(input: BinaryReader | Uint8Array, length?: number): StreamMetricAttributesRequest {
883
919
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
884
- const end = length === undefined ? reader.len : reader.pos + length;
885
- const message = createBaseStreamMetricAttributesRequest();
886
- while (reader.pos < end) {
887
- const tag = reader.uint32();
888
- switch (tag >>> 3) {
889
- case 1: {
890
- if (tag !== 10) {
891
- break;
892
- }
893
-
894
- message.organizationId = reader.string();
895
- continue;
896
- }
897
- case 2: {
898
- if (tag !== 18) {
899
- break;
900
- }
901
-
902
- message.projectId = reader.string();
903
- continue;
904
- }
905
- case 3: {
906
- if (tag !== 26) {
907
- break;
908
- }
909
-
910
- message.metricName = reader.string();
911
- continue;
912
- }
920
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
921
+ if (previousRecursionDepth >= 100) {
922
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
923
+ }
924
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
925
+ try {
926
+ const end = length === undefined ? reader.len : reader.pos + length;
927
+ const message = createBaseStreamMetricAttributesRequest();
928
+ while (reader.pos < end) {
929
+ const tag = reader.uint32();
930
+ switch (tag >>> 3) {
931
+ case 1: {
932
+ if (tag !== 10) {
933
+ break;
934
+ }
935
+
936
+ message.organizationId = reader.string();
937
+ continue;
938
+ }
939
+ case 2: {
940
+ if (tag !== 18) {
941
+ break;
942
+ }
943
+
944
+ message.projectId = reader.string();
945
+ continue;
946
+ }
947
+ case 3: {
948
+ if (tag !== 26) {
949
+ break;
950
+ }
951
+
952
+ message.metricName = reader.string();
953
+ continue;
954
+ }
955
+ }
956
+ if ((tag & 7) === 4 || tag === 0) {
957
+ break;
958
+ }
959
+ reader.skip(tag & 7);
913
960
  }
914
- if ((tag & 7) === 4 || tag === 0) {
915
- break;
916
- }
917
- reader.skip(tag & 7);
961
+ return message;
962
+ } finally {
963
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
918
964
  }
919
- return message;
920
965
  },
921
966
 
922
967
  fromJSON(object: any): StreamMetricAttributesRequest {
@@ -984,34 +1029,43 @@ export const MetricAttributeEnvelope: MessageFns<MetricAttributeEnvelope> = {
984
1029
 
985
1030
  decode(input: BinaryReader | Uint8Array, length?: number): MetricAttributeEnvelope {
986
1031
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
987
- const end = length === undefined ? reader.len : reader.pos + length;
988
- const message = createBaseMetricAttributeEnvelope();
989
- while (reader.pos < end) {
990
- const tag = reader.uint32();
991
- switch (tag >>> 3) {
992
- case 1: {
993
- if (tag !== 10) {
994
- break;
995
- }
996
-
997
- message.snapshot = MetricAttributeSnapshot.decode(reader, reader.uint32());
998
- continue;
999
- }
1000
- case 2: {
1001
- if (tag !== 18) {
1002
- break;
1003
- }
1004
-
1005
- message.added = MetricAttribute.decode(reader, reader.uint32());
1006
- continue;
1007
- }
1008
- }
1009
- if ((tag & 7) === 4 || tag === 0) {
1010
- break;
1032
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1033
+ if (previousRecursionDepth >= 100) {
1034
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1035
+ }
1036
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1037
+ try {
1038
+ const end = length === undefined ? reader.len : reader.pos + length;
1039
+ const message = createBaseMetricAttributeEnvelope();
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.snapshot = MetricAttributeSnapshot.decode(reader, reader.uint32());
1049
+ continue;
1050
+ }
1051
+ case 2: {
1052
+ if (tag !== 18) {
1053
+ break;
1054
+ }
1055
+
1056
+ message.added = MetricAttribute.decode(reader, reader.uint32());
1057
+ continue;
1058
+ }
1059
+ }
1060
+ if ((tag & 7) === 4 || tag === 0) {
1061
+ break;
1062
+ }
1063
+ reader.skip(tag & 7);
1011
1064
  }
1012
- reader.skip(tag & 7);
1065
+ return message;
1066
+ } finally {
1067
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1013
1068
  }
1014
- return message;
1015
1069
  },
1016
1070
 
1017
1071
  fromJSON(object: any): MetricAttributeEnvelope {
@@ -1061,26 +1115,35 @@ export const MetricAttributeSnapshot: MessageFns<MetricAttributeSnapshot> = {
1061
1115
 
1062
1116
  decode(input: BinaryReader | Uint8Array, length?: number): MetricAttributeSnapshot {
1063
1117
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1064
- const end = length === undefined ? reader.len : reader.pos + length;
1065
- const message = createBaseMetricAttributeSnapshot();
1066
- while (reader.pos < end) {
1067
- const tag = reader.uint32();
1068
- switch (tag >>> 3) {
1069
- case 1: {
1070
- if (tag !== 10) {
1071
- break;
1072
- }
1073
-
1074
- message.attributes.push(MetricAttribute.decode(reader, reader.uint32()));
1075
- continue;
1076
- }
1077
- }
1078
- if ((tag & 7) === 4 || tag === 0) {
1079
- break;
1118
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1119
+ if (previousRecursionDepth >= 100) {
1120
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1121
+ }
1122
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1123
+ try {
1124
+ const end = length === undefined ? reader.len : reader.pos + length;
1125
+ const message = createBaseMetricAttributeSnapshot();
1126
+ while (reader.pos < end) {
1127
+ const tag = reader.uint32();
1128
+ switch (tag >>> 3) {
1129
+ case 1: {
1130
+ if (tag !== 10) {
1131
+ break;
1132
+ }
1133
+
1134
+ message.attributes.push(MetricAttribute.decode(reader, reader.uint32()));
1135
+ continue;
1136
+ }
1137
+ }
1138
+ if ((tag & 7) === 4 || tag === 0) {
1139
+ break;
1140
+ }
1141
+ reader.skip(tag & 7);
1080
1142
  }
1081
- reader.skip(tag & 7);
1143
+ return message;
1144
+ } finally {
1145
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1082
1146
  }
1083
- return message;
1084
1147
  },
1085
1148
 
1086
1149
  fromJSON(object: any): MetricAttributeSnapshot {
@@ -1126,34 +1189,43 @@ export const MetricAttribute: MessageFns<MetricAttribute> = {
1126
1189
 
1127
1190
  decode(input: BinaryReader | Uint8Array, length?: number): MetricAttribute {
1128
1191
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1129
- const end = length === undefined ? reader.len : reader.pos + length;
1130
- const message = createBaseMetricAttribute();
1131
- while (reader.pos < end) {
1132
- const tag = reader.uint32();
1133
- switch (tag >>> 3) {
1134
- case 1: {
1135
- if (tag !== 10) {
1136
- break;
1137
- }
1138
-
1139
- message.key = reader.string();
1140
- continue;
1141
- }
1142
- case 2: {
1143
- if (tag !== 18) {
1144
- break;
1145
- }
1146
-
1147
- message.values.push(reader.string());
1148
- continue;
1149
- }
1192
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1193
+ if (previousRecursionDepth >= 100) {
1194
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1195
+ }
1196
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1197
+ try {
1198
+ const end = length === undefined ? reader.len : reader.pos + length;
1199
+ const message = createBaseMetricAttribute();
1200
+ while (reader.pos < end) {
1201
+ const tag = reader.uint32();
1202
+ switch (tag >>> 3) {
1203
+ case 1: {
1204
+ if (tag !== 10) {
1205
+ break;
1206
+ }
1207
+
1208
+ message.key = reader.string();
1209
+ continue;
1210
+ }
1211
+ case 2: {
1212
+ if (tag !== 18) {
1213
+ break;
1214
+ }
1215
+
1216
+ message.values.push(reader.string());
1217
+ continue;
1218
+ }
1219
+ }
1220
+ if ((tag & 7) === 4 || tag === 0) {
1221
+ break;
1222
+ }
1223
+ reader.skip(tag & 7);
1150
1224
  }
1151
- if ((tag & 7) === 4 || tag === 0) {
1152
- break;
1153
- }
1154
- reader.skip(tag & 7);
1225
+ return message;
1226
+ } finally {
1227
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1155
1228
  }
1156
- return message;
1157
1229
  },
1158
1230
 
1159
1231
  fromJSON(object: any): MetricAttribute {
@@ -1211,58 +1283,67 @@ export const StreamQueryRequest: MessageFns<StreamQueryRequest> = {
1211
1283
 
1212
1284
  decode(input: BinaryReader | Uint8Array, length?: number): StreamQueryRequest {
1213
1285
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1214
- const end = length === undefined ? reader.len : reader.pos + length;
1215
- const message = createBaseStreamQueryRequest();
1216
- while (reader.pos < end) {
1217
- const tag = reader.uint32();
1218
- switch (tag >>> 3) {
1219
- case 1: {
1220
- if (tag !== 10) {
1221
- break;
1222
- }
1223
-
1224
- message.organizationId = reader.string();
1225
- continue;
1226
- }
1227
- case 2: {
1228
- if (tag !== 18) {
1229
- break;
1230
- }
1231
-
1232
- message.projectId = reader.string();
1233
- continue;
1234
- }
1235
- case 3: {
1236
- if (tag !== 26) {
1237
- break;
1238
- }
1239
-
1240
- message.promql = reader.string();
1241
- continue;
1242
- }
1243
- case 4: {
1244
- if (tag !== 34) {
1245
- break;
1246
- }
1247
-
1248
- message.timeRange = TimeRange.decode(reader, reader.uint32());
1249
- continue;
1250
- }
1251
- case 5: {
1252
- if (tag !== 40) {
1253
- break;
1254
- }
1255
-
1256
- message.timeInterval = reader.int32() as any;
1257
- continue;
1258
- }
1286
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1287
+ if (previousRecursionDepth >= 100) {
1288
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1289
+ }
1290
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1291
+ try {
1292
+ const end = length === undefined ? reader.len : reader.pos + length;
1293
+ const message = createBaseStreamQueryRequest();
1294
+ while (reader.pos < end) {
1295
+ const tag = reader.uint32();
1296
+ switch (tag >>> 3) {
1297
+ case 1: {
1298
+ if (tag !== 10) {
1299
+ break;
1300
+ }
1301
+
1302
+ message.organizationId = reader.string();
1303
+ continue;
1304
+ }
1305
+ case 2: {
1306
+ if (tag !== 18) {
1307
+ break;
1308
+ }
1309
+
1310
+ message.projectId = reader.string();
1311
+ continue;
1312
+ }
1313
+ case 3: {
1314
+ if (tag !== 26) {
1315
+ break;
1316
+ }
1317
+
1318
+ message.promql = reader.string();
1319
+ continue;
1320
+ }
1321
+ case 4: {
1322
+ if (tag !== 34) {
1323
+ break;
1324
+ }
1325
+
1326
+ message.timeRange = TimeRange.decode(reader, reader.uint32());
1327
+ continue;
1328
+ }
1329
+ case 5: {
1330
+ if (tag !== 40) {
1331
+ break;
1332
+ }
1333
+
1334
+ message.timeInterval = reader.int32() as any;
1335
+ continue;
1336
+ }
1337
+ }
1338
+ if ((tag & 7) === 4 || tag === 0) {
1339
+ break;
1340
+ }
1341
+ reader.skip(tag & 7);
1259
1342
  }
1260
- if ((tag & 7) === 4 || tag === 0) {
1261
- break;
1262
- }
1263
- reader.skip(tag & 7);
1343
+ return message;
1344
+ } finally {
1345
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1264
1346
  }
1265
- return message;
1266
1347
  },
1267
1348
 
1268
1349
  fromJSON(object: any): StreamQueryRequest {
@@ -1344,34 +1425,43 @@ export const TimeRange: MessageFns<TimeRange> = {
1344
1425
 
1345
1426
  decode(input: BinaryReader | Uint8Array, length?: number): TimeRange {
1346
1427
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1347
- const end = length === undefined ? reader.len : reader.pos + length;
1348
- const message = createBaseTimeRange();
1349
- while (reader.pos < end) {
1350
- const tag = reader.uint32();
1351
- switch (tag >>> 3) {
1352
- case 1: {
1353
- if (tag !== 8) {
1354
- break;
1355
- }
1356
-
1357
- message.window = reader.int32() as any;
1358
- continue;
1359
- }
1360
- case 2: {
1361
- if (tag !== 18) {
1362
- break;
1363
- }
1364
-
1365
- message.absolute = AbsoluteTimeRange.decode(reader, reader.uint32());
1366
- continue;
1367
- }
1368
- }
1369
- if ((tag & 7) === 4 || tag === 0) {
1370
- break;
1428
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1429
+ if (previousRecursionDepth >= 100) {
1430
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1431
+ }
1432
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1433
+ try {
1434
+ const end = length === undefined ? reader.len : reader.pos + length;
1435
+ const message = createBaseTimeRange();
1436
+ while (reader.pos < end) {
1437
+ const tag = reader.uint32();
1438
+ switch (tag >>> 3) {
1439
+ case 1: {
1440
+ if (tag !== 8) {
1441
+ break;
1442
+ }
1443
+
1444
+ message.window = reader.int32() as any;
1445
+ continue;
1446
+ }
1447
+ case 2: {
1448
+ if (tag !== 18) {
1449
+ break;
1450
+ }
1451
+
1452
+ message.absolute = AbsoluteTimeRange.decode(reader, reader.uint32());
1453
+ continue;
1454
+ }
1455
+ }
1456
+ if ((tag & 7) === 4 || tag === 0) {
1457
+ break;
1458
+ }
1459
+ reader.skip(tag & 7);
1371
1460
  }
1372
- reader.skip(tag & 7);
1461
+ return message;
1462
+ } finally {
1463
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1373
1464
  }
1374
- return message;
1375
1465
  },
1376
1466
 
1377
1467
  fromJSON(object: any): TimeRange {
@@ -1422,34 +1512,43 @@ export const AbsoluteTimeRange: MessageFns<AbsoluteTimeRange> = {
1422
1512
 
1423
1513
  decode(input: BinaryReader | Uint8Array, length?: number): AbsoluteTimeRange {
1424
1514
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1425
- const end = length === undefined ? reader.len : reader.pos + length;
1426
- const message = createBaseAbsoluteTimeRange();
1427
- while (reader.pos < end) {
1428
- const tag = reader.uint32();
1429
- switch (tag >>> 3) {
1430
- case 1: {
1431
- if (tag !== 10) {
1432
- break;
1433
- }
1434
-
1435
- message.start = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1436
- continue;
1437
- }
1438
- case 2: {
1439
- if (tag !== 18) {
1440
- break;
1441
- }
1442
-
1443
- message.end = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1444
- continue;
1445
- }
1515
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1516
+ if (previousRecursionDepth >= 100) {
1517
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1518
+ }
1519
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1520
+ try {
1521
+ const end = length === undefined ? reader.len : reader.pos + length;
1522
+ const message = createBaseAbsoluteTimeRange();
1523
+ while (reader.pos < end) {
1524
+ const tag = reader.uint32();
1525
+ switch (tag >>> 3) {
1526
+ case 1: {
1527
+ if (tag !== 10) {
1528
+ break;
1529
+ }
1530
+
1531
+ message.start = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1532
+ continue;
1533
+ }
1534
+ case 2: {
1535
+ if (tag !== 18) {
1536
+ break;
1537
+ }
1538
+
1539
+ message.end = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1540
+ continue;
1541
+ }
1542
+ }
1543
+ if ((tag & 7) === 4 || tag === 0) {
1544
+ break;
1545
+ }
1546
+ reader.skip(tag & 7);
1446
1547
  }
1447
- if ((tag & 7) === 4 || tag === 0) {
1448
- break;
1449
- }
1450
- reader.skip(tag & 7);
1548
+ return message;
1549
+ } finally {
1550
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1451
1551
  }
1452
- return message;
1453
1552
  },
1454
1553
 
1455
1554
  fromJSON(object: any): AbsoluteTimeRange {
@@ -1498,34 +1597,43 @@ export const QueryDataEnvelope: MessageFns<QueryDataEnvelope> = {
1498
1597
 
1499
1598
  decode(input: BinaryReader | Uint8Array, length?: number): QueryDataEnvelope {
1500
1599
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1501
- const end = length === undefined ? reader.len : reader.pos + length;
1502
- const message = createBaseQueryDataEnvelope();
1503
- while (reader.pos < end) {
1504
- const tag = reader.uint32();
1505
- switch (tag >>> 3) {
1506
- case 1: {
1507
- if (tag !== 10) {
1508
- break;
1509
- }
1510
-
1511
- message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
1512
- continue;
1513
- }
1514
- case 2: {
1515
- if (tag !== 18) {
1516
- break;
1517
- }
1518
-
1519
- message.update = QuerySeriesUpdate.decode(reader, reader.uint32());
1520
- continue;
1521
- }
1522
- }
1523
- if ((tag & 7) === 4 || tag === 0) {
1524
- break;
1600
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1601
+ if (previousRecursionDepth >= 100) {
1602
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1603
+ }
1604
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1605
+ try {
1606
+ const end = length === undefined ? reader.len : reader.pos + length;
1607
+ const message = createBaseQueryDataEnvelope();
1608
+ while (reader.pos < end) {
1609
+ const tag = reader.uint32();
1610
+ switch (tag >>> 3) {
1611
+ case 1: {
1612
+ if (tag !== 10) {
1613
+ break;
1614
+ }
1615
+
1616
+ message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
1617
+ continue;
1618
+ }
1619
+ case 2: {
1620
+ if (tag !== 18) {
1621
+ break;
1622
+ }
1623
+
1624
+ message.update = QuerySeriesUpdate.decode(reader, reader.uint32());
1625
+ continue;
1626
+ }
1627
+ }
1628
+ if ((tag & 7) === 4 || tag === 0) {
1629
+ break;
1630
+ }
1631
+ reader.skip(tag & 7);
1525
1632
  }
1526
- reader.skip(tag & 7);
1633
+ return message;
1634
+ } finally {
1635
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1527
1636
  }
1528
- return message;
1529
1637
  },
1530
1638
 
1531
1639
  fromJSON(object: any): QueryDataEnvelope {
@@ -1590,66 +1698,75 @@ export const QuerySnapshot: MessageFns<QuerySnapshot> = {
1590
1698
 
1591
1699
  decode(input: BinaryReader | Uint8Array, length?: number): QuerySnapshot {
1592
1700
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1593
- const end = length === undefined ? reader.len : reader.pos + length;
1594
- const message = createBaseQuerySnapshot();
1595
- while (reader.pos < end) {
1596
- const tag = reader.uint32();
1597
- switch (tag >>> 3) {
1598
- case 1: {
1599
- if (tag !== 10) {
1600
- break;
1601
- }
1602
-
1603
- message.series.push(MetricSeries.decode(reader, reader.uint32()));
1604
- continue;
1605
- }
1606
- case 2: {
1607
- if (tag !== 18) {
1608
- break;
1609
- }
1610
-
1611
- message.rangeStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1612
- continue;
1613
- }
1614
- case 3: {
1615
- if (tag !== 26) {
1616
- break;
1617
- }
1618
-
1619
- message.rangeEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1620
- continue;
1621
- }
1622
- case 4: {
1623
- if (tag !== 32) {
1624
- break;
1625
- }
1626
-
1627
- message.bucketSizeMs = longToNumber(reader.int64());
1628
- continue;
1629
- }
1630
- case 5: {
1631
- if (tag !== 40) {
1632
- break;
1633
- }
1634
-
1635
- message.expectedBucketCount = reader.int32();
1636
- continue;
1637
- }
1638
- case 6: {
1639
- if (tag !== 50) {
1640
- break;
1641
- }
1642
-
1643
- message.unit = reader.string();
1644
- continue;
1645
- }
1701
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1702
+ if (previousRecursionDepth >= 100) {
1703
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1704
+ }
1705
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1706
+ try {
1707
+ const end = length === undefined ? reader.len : reader.pos + length;
1708
+ const message = createBaseQuerySnapshot();
1709
+ while (reader.pos < end) {
1710
+ const tag = reader.uint32();
1711
+ switch (tag >>> 3) {
1712
+ case 1: {
1713
+ if (tag !== 10) {
1714
+ break;
1715
+ }
1716
+
1717
+ message.series.push(MetricSeries.decode(reader, reader.uint32()));
1718
+ continue;
1719
+ }
1720
+ case 2: {
1721
+ if (tag !== 18) {
1722
+ break;
1723
+ }
1724
+
1725
+ message.rangeStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1726
+ continue;
1727
+ }
1728
+ case 3: {
1729
+ if (tag !== 26) {
1730
+ break;
1731
+ }
1732
+
1733
+ message.rangeEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1734
+ continue;
1735
+ }
1736
+ case 4: {
1737
+ if (tag !== 32) {
1738
+ break;
1739
+ }
1740
+
1741
+ message.bucketSizeMs = longToNumber(reader.int64());
1742
+ continue;
1743
+ }
1744
+ case 5: {
1745
+ if (tag !== 40) {
1746
+ break;
1747
+ }
1748
+
1749
+ message.expectedBucketCount = reader.int32();
1750
+ continue;
1751
+ }
1752
+ case 6: {
1753
+ if (tag !== 50) {
1754
+ break;
1755
+ }
1756
+
1757
+ message.unit = reader.string();
1758
+ continue;
1759
+ }
1760
+ }
1761
+ if ((tag & 7) === 4 || tag === 0) {
1762
+ break;
1763
+ }
1764
+ reader.skip(tag & 7);
1646
1765
  }
1647
- if ((tag & 7) === 4 || tag === 0) {
1648
- break;
1649
- }
1650
- reader.skip(tag & 7);
1766
+ return message;
1767
+ } finally {
1768
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1651
1769
  }
1652
- return message;
1653
1770
  },
1654
1771
 
1655
1772
  fromJSON(object: any): QuerySnapshot {
@@ -1734,37 +1851,46 @@ export const MetricSeries: MessageFns<MetricSeries> = {
1734
1851
 
1735
1852
  decode(input: BinaryReader | Uint8Array, length?: number): MetricSeries {
1736
1853
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1737
- const end = length === undefined ? reader.len : reader.pos + length;
1738
- const message = createBaseMetricSeries();
1739
- while (reader.pos < end) {
1740
- const tag = reader.uint32();
1741
- switch (tag >>> 3) {
1742
- case 1: {
1743
- if (tag !== 10) {
1744
- break;
1745
- }
1746
-
1747
- const entry1 = MetricSeries_GroupValuesEntry.decode(reader, reader.uint32());
1748
- if (entry1.value !== undefined) {
1749
- message.groupValues[entry1.key] = entry1.value;
1750
- }
1751
- continue;
1752
- }
1753
- case 2: {
1754
- if (tag !== 18) {
1755
- break;
1756
- }
1757
-
1758
- message.buckets.push(MetricBucket.decode(reader, reader.uint32()));
1759
- continue;
1760
- }
1854
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1855
+ if (previousRecursionDepth >= 100) {
1856
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1857
+ }
1858
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1859
+ try {
1860
+ const end = length === undefined ? reader.len : reader.pos + length;
1861
+ const message = createBaseMetricSeries();
1862
+ while (reader.pos < end) {
1863
+ const tag = reader.uint32();
1864
+ switch (tag >>> 3) {
1865
+ case 1: {
1866
+ if (tag !== 10) {
1867
+ break;
1868
+ }
1869
+
1870
+ const entry1 = MetricSeries_GroupValuesEntry.decode(reader, reader.uint32());
1871
+ if (entry1.value !== undefined) {
1872
+ message.groupValues[entry1.key] = entry1.value;
1873
+ }
1874
+ continue;
1875
+ }
1876
+ case 2: {
1877
+ if (tag !== 18) {
1878
+ break;
1879
+ }
1880
+
1881
+ message.buckets.push(MetricBucket.decode(reader, reader.uint32()));
1882
+ continue;
1883
+ }
1884
+ }
1885
+ if ((tag & 7) === 4 || tag === 0) {
1886
+ break;
1887
+ }
1888
+ reader.skip(tag & 7);
1761
1889
  }
1762
- if ((tag & 7) === 4 || tag === 0) {
1763
- break;
1764
- }
1765
- reader.skip(tag & 7);
1890
+ return message;
1891
+ } finally {
1892
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1766
1893
  }
1767
- return message;
1768
1894
  },
1769
1895
 
1770
1896
  fromJSON(object: any): MetricSeries {
@@ -1772,7 +1898,12 @@ export const MetricSeries: MessageFns<MetricSeries> = {
1772
1898
  groupValues: isObject(object.groupValues)
1773
1899
  ? (globalThis.Object.entries(object.groupValues) as [string, any][]).reduce(
1774
1900
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
1775
- acc[key] = globalThis.String(value);
1901
+ globalThis.Object.defineProperty(acc, key, {
1902
+ value: globalThis.String(value),
1903
+ enumerable: true,
1904
+ configurable: true,
1905
+ writable: true,
1906
+ });
1776
1907
  return acc;
1777
1908
  },
1778
1909
  {},
@@ -1780,7 +1911,12 @@ export const MetricSeries: MessageFns<MetricSeries> = {
1780
1911
  : isObject(object.group_values)
1781
1912
  ? (globalThis.Object.entries(object.group_values) as [string, any][]).reduce(
1782
1913
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
1783
- acc[key] = globalThis.String(value);
1914
+ globalThis.Object.defineProperty(acc, key, {
1915
+ value: globalThis.String(value),
1916
+ enumerable: true,
1917
+ configurable: true,
1918
+ writable: true,
1919
+ });
1784
1920
  return acc;
1785
1921
  },
1786
1922
  {},
@@ -1845,34 +1981,43 @@ export const MetricSeries_GroupValuesEntry: MessageFns<MetricSeries_GroupValuesE
1845
1981
 
1846
1982
  decode(input: BinaryReader | Uint8Array, length?: number): MetricSeries_GroupValuesEntry {
1847
1983
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1848
- const end = length === undefined ? reader.len : reader.pos + length;
1849
- const message = createBaseMetricSeries_GroupValuesEntry();
1850
- while (reader.pos < end) {
1851
- const tag = reader.uint32();
1852
- switch (tag >>> 3) {
1853
- case 1: {
1854
- if (tag !== 10) {
1855
- break;
1856
- }
1857
-
1858
- message.key = reader.string();
1859
- continue;
1860
- }
1861
- case 2: {
1862
- if (tag !== 18) {
1863
- break;
1864
- }
1865
-
1866
- message.value = reader.string();
1867
- continue;
1868
- }
1869
- }
1870
- if ((tag & 7) === 4 || tag === 0) {
1871
- break;
1984
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1985
+ if (previousRecursionDepth >= 100) {
1986
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1987
+ }
1988
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1989
+ try {
1990
+ const end = length === undefined ? reader.len : reader.pos + length;
1991
+ const message = createBaseMetricSeries_GroupValuesEntry();
1992
+ while (reader.pos < end) {
1993
+ const tag = reader.uint32();
1994
+ switch (tag >>> 3) {
1995
+ case 1: {
1996
+ if (tag !== 10) {
1997
+ break;
1998
+ }
1999
+
2000
+ message.key = reader.string();
2001
+ continue;
2002
+ }
2003
+ case 2: {
2004
+ if (tag !== 18) {
2005
+ break;
2006
+ }
2007
+
2008
+ message.value = reader.string();
2009
+ continue;
2010
+ }
2011
+ }
2012
+ if ((tag & 7) === 4 || tag === 0) {
2013
+ break;
2014
+ }
2015
+ reader.skip(tag & 7);
1872
2016
  }
1873
- reader.skip(tag & 7);
2017
+ return message;
2018
+ } finally {
2019
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1874
2020
  }
1875
- return message;
1876
2021
  },
1877
2022
 
1878
2023
  fromJSON(object: any): MetricSeries_GroupValuesEntry {
@@ -1923,34 +2068,43 @@ export const MetricBucket: MessageFns<MetricBucket> = {
1923
2068
 
1924
2069
  decode(input: BinaryReader | Uint8Array, length?: number): MetricBucket {
1925
2070
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1926
- const end = length === undefined ? reader.len : reader.pos + length;
1927
- const message = createBaseMetricBucket();
1928
- while (reader.pos < end) {
1929
- const tag = reader.uint32();
1930
- switch (tag >>> 3) {
1931
- case 1: {
1932
- if (tag !== 10) {
1933
- break;
1934
- }
1935
-
1936
- message.bucketStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1937
- continue;
1938
- }
1939
- case 2: {
1940
- if (tag !== 17) {
1941
- break;
1942
- }
1943
-
1944
- message.value = reader.double();
1945
- continue;
1946
- }
2071
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2072
+ if (previousRecursionDepth >= 100) {
2073
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2074
+ }
2075
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2076
+ try {
2077
+ const end = length === undefined ? reader.len : reader.pos + length;
2078
+ const message = createBaseMetricBucket();
2079
+ while (reader.pos < end) {
2080
+ const tag = reader.uint32();
2081
+ switch (tag >>> 3) {
2082
+ case 1: {
2083
+ if (tag !== 10) {
2084
+ break;
2085
+ }
2086
+
2087
+ message.bucketStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2088
+ continue;
2089
+ }
2090
+ case 2: {
2091
+ if (tag !== 17) {
2092
+ break;
2093
+ }
2094
+
2095
+ message.value = reader.double();
2096
+ continue;
2097
+ }
2098
+ }
2099
+ if ((tag & 7) === 4 || tag === 0) {
2100
+ break;
2101
+ }
2102
+ reader.skip(tag & 7);
1947
2103
  }
1948
- if ((tag & 7) === 4 || tag === 0) {
1949
- break;
1950
- }
1951
- reader.skip(tag & 7);
2104
+ return message;
2105
+ } finally {
2106
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1952
2107
  }
1953
- return message;
1954
2108
  },
1955
2109
 
1956
2110
  fromJSON(object: any): MetricBucket {
@@ -2006,45 +2160,54 @@ export const QuerySeriesUpdate: MessageFns<QuerySeriesUpdate> = {
2006
2160
 
2007
2161
  decode(input: BinaryReader | Uint8Array, length?: number): QuerySeriesUpdate {
2008
2162
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2009
- const end = length === undefined ? reader.len : reader.pos + length;
2010
- const message = createBaseQuerySeriesUpdate();
2011
- while (reader.pos < end) {
2012
- const tag = reader.uint32();
2013
- switch (tag >>> 3) {
2014
- case 1: {
2015
- if (tag !== 10) {
2016
- break;
2017
- }
2018
-
2019
- const entry1 = QuerySeriesUpdate_GroupValuesEntry.decode(reader, reader.uint32());
2020
- if (entry1.value !== undefined) {
2021
- message.groupValues[entry1.key] = entry1.value;
2022
- }
2023
- continue;
2024
- }
2025
- case 2: {
2026
- if (tag !== 18) {
2027
- break;
2028
- }
2029
-
2030
- message.bucket = MetricBucket.decode(reader, reader.uint32());
2031
- continue;
2032
- }
2033
- case 3: {
2034
- if (tag !== 26) {
2035
- break;
2036
- }
2037
-
2038
- message.generatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2039
- continue;
2040
- }
2041
- }
2042
- if ((tag & 7) === 4 || tag === 0) {
2043
- break;
2163
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2164
+ if (previousRecursionDepth >= 100) {
2165
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2166
+ }
2167
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2168
+ try {
2169
+ const end = length === undefined ? reader.len : reader.pos + length;
2170
+ const message = createBaseQuerySeriesUpdate();
2171
+ while (reader.pos < end) {
2172
+ const tag = reader.uint32();
2173
+ switch (tag >>> 3) {
2174
+ case 1: {
2175
+ if (tag !== 10) {
2176
+ break;
2177
+ }
2178
+
2179
+ const entry1 = QuerySeriesUpdate_GroupValuesEntry.decode(reader, reader.uint32());
2180
+ if (entry1.value !== undefined) {
2181
+ message.groupValues[entry1.key] = entry1.value;
2182
+ }
2183
+ continue;
2184
+ }
2185
+ case 2: {
2186
+ if (tag !== 18) {
2187
+ break;
2188
+ }
2189
+
2190
+ message.bucket = MetricBucket.decode(reader, reader.uint32());
2191
+ continue;
2192
+ }
2193
+ case 3: {
2194
+ if (tag !== 26) {
2195
+ break;
2196
+ }
2197
+
2198
+ message.generatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2199
+ continue;
2200
+ }
2201
+ }
2202
+ if ((tag & 7) === 4 || tag === 0) {
2203
+ break;
2204
+ }
2205
+ reader.skip(tag & 7);
2044
2206
  }
2045
- reader.skip(tag & 7);
2207
+ return message;
2208
+ } finally {
2209
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2046
2210
  }
2047
- return message;
2048
2211
  },
2049
2212
 
2050
2213
  fromJSON(object: any): QuerySeriesUpdate {
@@ -2052,7 +2215,12 @@ export const QuerySeriesUpdate: MessageFns<QuerySeriesUpdate> = {
2052
2215
  groupValues: isObject(object.groupValues)
2053
2216
  ? (globalThis.Object.entries(object.groupValues) as [string, any][]).reduce(
2054
2217
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
2055
- acc[key] = globalThis.String(value);
2218
+ globalThis.Object.defineProperty(acc, key, {
2219
+ value: globalThis.String(value),
2220
+ enumerable: true,
2221
+ configurable: true,
2222
+ writable: true,
2223
+ });
2056
2224
  return acc;
2057
2225
  },
2058
2226
  {},
@@ -2060,7 +2228,12 @@ export const QuerySeriesUpdate: MessageFns<QuerySeriesUpdate> = {
2060
2228
  : isObject(object.group_values)
2061
2229
  ? (globalThis.Object.entries(object.group_values) as [string, any][]).reduce(
2062
2230
  (acc: { [key: string]: string }, [key, value]: [string, any]) => {
2063
- acc[key] = globalThis.String(value);
2231
+ globalThis.Object.defineProperty(acc, key, {
2232
+ value: globalThis.String(value),
2233
+ enumerable: true,
2234
+ configurable: true,
2235
+ writable: true,
2236
+ });
2064
2237
  return acc;
2065
2238
  },
2066
2239
  {},
@@ -2134,34 +2307,43 @@ export const QuerySeriesUpdate_GroupValuesEntry: MessageFns<QuerySeriesUpdate_Gr
2134
2307
 
2135
2308
  decode(input: BinaryReader | Uint8Array, length?: number): QuerySeriesUpdate_GroupValuesEntry {
2136
2309
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2137
- const end = length === undefined ? reader.len : reader.pos + length;
2138
- const message = createBaseQuerySeriesUpdate_GroupValuesEntry();
2139
- while (reader.pos < end) {
2140
- const tag = reader.uint32();
2141
- switch (tag >>> 3) {
2142
- case 1: {
2143
- if (tag !== 10) {
2144
- break;
2145
- }
2146
-
2147
- message.key = reader.string();
2148
- continue;
2149
- }
2150
- case 2: {
2151
- if (tag !== 18) {
2152
- break;
2153
- }
2154
-
2155
- message.value = reader.string();
2156
- continue;
2157
- }
2310
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2311
+ if (previousRecursionDepth >= 100) {
2312
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2313
+ }
2314
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2315
+ try {
2316
+ const end = length === undefined ? reader.len : reader.pos + length;
2317
+ const message = createBaseQuerySeriesUpdate_GroupValuesEntry();
2318
+ while (reader.pos < end) {
2319
+ const tag = reader.uint32();
2320
+ switch (tag >>> 3) {
2321
+ case 1: {
2322
+ if (tag !== 10) {
2323
+ break;
2324
+ }
2325
+
2326
+ message.key = reader.string();
2327
+ continue;
2328
+ }
2329
+ case 2: {
2330
+ if (tag !== 18) {
2331
+ break;
2332
+ }
2333
+
2334
+ message.value = reader.string();
2335
+ continue;
2336
+ }
2337
+ }
2338
+ if ((tag & 7) === 4 || tag === 0) {
2339
+ break;
2340
+ }
2341
+ reader.skip(tag & 7);
2158
2342
  }
2159
- if ((tag & 7) === 4 || tag === 0) {
2160
- break;
2161
- }
2162
- reader.skip(tag & 7);
2343
+ return message;
2344
+ } finally {
2345
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2163
2346
  }
2164
- return message;
2165
2347
  },
2166
2348
 
2167
2349
  fromJSON(object: any): QuerySeriesUpdate_GroupValuesEntry {
@@ -2245,90 +2427,99 @@ export const Dashboard: MessageFns<Dashboard> = {
2245
2427
 
2246
2428
  decode(input: BinaryReader | Uint8Array, length?: number): Dashboard {
2247
2429
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2248
- const end = length === undefined ? reader.len : reader.pos + length;
2249
- const message = createBaseDashboard();
2250
- while (reader.pos < end) {
2251
- const tag = reader.uint32();
2252
- switch (tag >>> 3) {
2253
- case 1: {
2254
- if (tag !== 10) {
2255
- break;
2256
- }
2257
-
2258
- message.id = reader.string();
2259
- continue;
2260
- }
2261
- case 2: {
2262
- if (tag !== 18) {
2263
- break;
2264
- }
2265
-
2266
- message.projectId = reader.string();
2267
- continue;
2268
- }
2269
- case 3: {
2270
- if (tag !== 26) {
2271
- break;
2272
- }
2273
-
2274
- message.name = reader.string();
2275
- continue;
2276
- }
2277
- case 4: {
2278
- if (tag !== 34) {
2279
- break;
2280
- }
2281
-
2282
- message.description = reader.string();
2283
- continue;
2284
- }
2285
- case 5: {
2286
- if (tag !== 40) {
2287
- break;
2288
- }
2289
-
2290
- message.defaultTimeWindow = reader.int32() as any;
2291
- continue;
2292
- }
2293
- case 6: {
2294
- if (tag !== 50) {
2295
- break;
2296
- }
2297
-
2298
- message.widgets.push(Widget.decode(reader, reader.uint32()));
2299
- continue;
2300
- }
2301
- case 7: {
2302
- if (tag !== 56) {
2303
- break;
2304
- }
2305
-
2306
- message.version = longToNumber(reader.int64());
2307
- continue;
2308
- }
2309
- case 8: {
2310
- if (tag !== 66) {
2311
- break;
2312
- }
2313
-
2314
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2315
- continue;
2316
- }
2317
- case 9: {
2318
- if (tag !== 74) {
2319
- break;
2320
- }
2321
-
2322
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2323
- continue;
2324
- }
2430
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2431
+ if (previousRecursionDepth >= 100) {
2432
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2433
+ }
2434
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2435
+ try {
2436
+ const end = length === undefined ? reader.len : reader.pos + length;
2437
+ const message = createBaseDashboard();
2438
+ while (reader.pos < end) {
2439
+ const tag = reader.uint32();
2440
+ switch (tag >>> 3) {
2441
+ case 1: {
2442
+ if (tag !== 10) {
2443
+ break;
2444
+ }
2445
+
2446
+ message.id = reader.string();
2447
+ continue;
2448
+ }
2449
+ case 2: {
2450
+ if (tag !== 18) {
2451
+ break;
2452
+ }
2453
+
2454
+ message.projectId = reader.string();
2455
+ continue;
2456
+ }
2457
+ case 3: {
2458
+ if (tag !== 26) {
2459
+ break;
2460
+ }
2461
+
2462
+ message.name = reader.string();
2463
+ continue;
2464
+ }
2465
+ case 4: {
2466
+ if (tag !== 34) {
2467
+ break;
2468
+ }
2469
+
2470
+ message.description = reader.string();
2471
+ continue;
2472
+ }
2473
+ case 5: {
2474
+ if (tag !== 40) {
2475
+ break;
2476
+ }
2477
+
2478
+ message.defaultTimeWindow = reader.int32() as any;
2479
+ continue;
2480
+ }
2481
+ case 6: {
2482
+ if (tag !== 50) {
2483
+ break;
2484
+ }
2485
+
2486
+ message.widgets.push(Widget.decode(reader, reader.uint32()));
2487
+ continue;
2488
+ }
2489
+ case 7: {
2490
+ if (tag !== 56) {
2491
+ break;
2492
+ }
2493
+
2494
+ message.version = longToNumber(reader.int64());
2495
+ continue;
2496
+ }
2497
+ case 8: {
2498
+ if (tag !== 66) {
2499
+ break;
2500
+ }
2501
+
2502
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2503
+ continue;
2504
+ }
2505
+ case 9: {
2506
+ if (tag !== 74) {
2507
+ break;
2508
+ }
2509
+
2510
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
2511
+ continue;
2512
+ }
2513
+ }
2514
+ if ((tag & 7) === 4 || tag === 0) {
2515
+ break;
2516
+ }
2517
+ reader.skip(tag & 7);
2325
2518
  }
2326
- if ((tag & 7) === 4 || tag === 0) {
2327
- break;
2328
- }
2329
- reader.skip(tag & 7);
2519
+ return message;
2520
+ } finally {
2521
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2330
2522
  }
2331
- return message;
2332
2523
  },
2333
2524
 
2334
2525
  fromJSON(object: any): Dashboard {
@@ -2425,26 +2616,35 @@ export const WidgetQuery: MessageFns<WidgetQuery> = {
2425
2616
 
2426
2617
  decode(input: BinaryReader | Uint8Array, length?: number): WidgetQuery {
2427
2618
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2428
- const end = length === undefined ? reader.len : reader.pos + length;
2429
- const message = createBaseWidgetQuery();
2430
- while (reader.pos < end) {
2431
- const tag = reader.uint32();
2432
- switch (tag >>> 3) {
2433
- case 1: {
2434
- if (tag !== 10) {
2435
- break;
2436
- }
2437
-
2438
- message.promql = reader.string();
2439
- continue;
2440
- }
2619
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2620
+ if (previousRecursionDepth >= 100) {
2621
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2622
+ }
2623
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2624
+ try {
2625
+ const end = length === undefined ? reader.len : reader.pos + length;
2626
+ const message = createBaseWidgetQuery();
2627
+ while (reader.pos < end) {
2628
+ const tag = reader.uint32();
2629
+ switch (tag >>> 3) {
2630
+ case 1: {
2631
+ if (tag !== 10) {
2632
+ break;
2633
+ }
2634
+
2635
+ message.promql = reader.string();
2636
+ continue;
2637
+ }
2638
+ }
2639
+ if ((tag & 7) === 4 || tag === 0) {
2640
+ break;
2641
+ }
2642
+ reader.skip(tag & 7);
2441
2643
  }
2442
- if ((tag & 7) === 4 || tag === 0) {
2443
- break;
2444
- }
2445
- reader.skip(tag & 7);
2644
+ return message;
2645
+ } finally {
2646
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2446
2647
  }
2447
- return message;
2448
2648
  },
2449
2649
 
2450
2650
  fromJSON(object: any): WidgetQuery {
@@ -2517,90 +2717,99 @@ export const Widget: MessageFns<Widget> = {
2517
2717
 
2518
2718
  decode(input: BinaryReader | Uint8Array, length?: number): Widget {
2519
2719
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2520
- const end = length === undefined ? reader.len : reader.pos + length;
2521
- const message = createBaseWidget();
2522
- while (reader.pos < end) {
2523
- const tag = reader.uint32();
2524
- switch (tag >>> 3) {
2525
- case 1: {
2526
- if (tag !== 10) {
2527
- break;
2528
- }
2529
-
2530
- message.id = reader.string();
2531
- continue;
2532
- }
2533
- case 2: {
2534
- if (tag !== 18) {
2535
- break;
2536
- }
2537
-
2538
- message.name = reader.string();
2539
- continue;
2540
- }
2541
- case 3: {
2542
- if (tag !== 24) {
2543
- break;
2544
- }
2545
-
2546
- message.type = reader.int32() as any;
2547
- continue;
2548
- }
2549
- case 4: {
2550
- if (tag !== 34) {
2551
- break;
2552
- }
2553
-
2554
- message.gridPos = GridPos.decode(reader, reader.uint32());
2555
- continue;
2556
- }
2557
- case 5: {
2558
- if (tag !== 42) {
2559
- break;
2560
- }
2561
-
2562
- message.queries.push(WidgetQuery.decode(reader, reader.uint32()));
2563
- continue;
2564
- }
2565
- case 6: {
2566
- if (tag !== 48) {
2567
- break;
2568
- }
2569
-
2570
- message.timeWindow = reader.int32() as any;
2571
- continue;
2572
- }
2573
- case 7: {
2574
- if (tag !== 56) {
2575
- break;
2576
- }
2577
-
2578
- message.timeInterval = reader.int32() as any;
2579
- continue;
2580
- }
2581
- case 8: {
2582
- if (tag !== 64) {
2583
- break;
2584
- }
2585
-
2586
- message.timeseriesStyle = reader.int32() as any;
2587
- continue;
2588
- }
2589
- case 9: {
2590
- if (tag !== 74) {
2591
- break;
2592
- }
2593
-
2594
- message.markdown = reader.string();
2595
- continue;
2596
- }
2720
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2721
+ if (previousRecursionDepth >= 100) {
2722
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2723
+ }
2724
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2725
+ try {
2726
+ const end = length === undefined ? reader.len : reader.pos + length;
2727
+ const message = createBaseWidget();
2728
+ while (reader.pos < end) {
2729
+ const tag = reader.uint32();
2730
+ switch (tag >>> 3) {
2731
+ case 1: {
2732
+ if (tag !== 10) {
2733
+ break;
2734
+ }
2735
+
2736
+ message.id = reader.string();
2737
+ continue;
2738
+ }
2739
+ case 2: {
2740
+ if (tag !== 18) {
2741
+ break;
2742
+ }
2743
+
2744
+ message.name = reader.string();
2745
+ continue;
2746
+ }
2747
+ case 3: {
2748
+ if (tag !== 24) {
2749
+ break;
2750
+ }
2751
+
2752
+ message.type = reader.int32() as any;
2753
+ continue;
2754
+ }
2755
+ case 4: {
2756
+ if (tag !== 34) {
2757
+ break;
2758
+ }
2759
+
2760
+ message.gridPos = GridPos.decode(reader, reader.uint32());
2761
+ continue;
2762
+ }
2763
+ case 5: {
2764
+ if (tag !== 42) {
2765
+ break;
2766
+ }
2767
+
2768
+ message.queries.push(WidgetQuery.decode(reader, reader.uint32()));
2769
+ continue;
2770
+ }
2771
+ case 6: {
2772
+ if (tag !== 48) {
2773
+ break;
2774
+ }
2775
+
2776
+ message.timeWindow = reader.int32() as any;
2777
+ continue;
2778
+ }
2779
+ case 7: {
2780
+ if (tag !== 56) {
2781
+ break;
2782
+ }
2783
+
2784
+ message.timeInterval = reader.int32() as any;
2785
+ continue;
2786
+ }
2787
+ case 8: {
2788
+ if (tag !== 64) {
2789
+ break;
2790
+ }
2791
+
2792
+ message.timeseriesStyle = reader.int32() as any;
2793
+ continue;
2794
+ }
2795
+ case 9: {
2796
+ if (tag !== 74) {
2797
+ break;
2798
+ }
2799
+
2800
+ message.markdown = reader.string();
2801
+ continue;
2802
+ }
2803
+ }
2804
+ if ((tag & 7) === 4 || tag === 0) {
2805
+ break;
2806
+ }
2807
+ reader.skip(tag & 7);
2597
2808
  }
2598
- if ((tag & 7) === 4 || tag === 0) {
2599
- break;
2600
- }
2601
- reader.skip(tag & 7);
2809
+ return message;
2810
+ } finally {
2811
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2602
2812
  }
2603
- return message;
2604
2813
  },
2605
2814
 
2606
2815
  fromJSON(object: any): Widget {
@@ -2708,50 +2917,59 @@ export const GridPos: MessageFns<GridPos> = {
2708
2917
 
2709
2918
  decode(input: BinaryReader | Uint8Array, length?: number): GridPos {
2710
2919
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2711
- const end = length === undefined ? reader.len : reader.pos + length;
2712
- const message = createBaseGridPos();
2713
- while (reader.pos < end) {
2714
- const tag = reader.uint32();
2715
- switch (tag >>> 3) {
2716
- case 1: {
2717
- if (tag !== 8) {
2718
- break;
2719
- }
2720
-
2721
- message.x = reader.int32();
2722
- continue;
2723
- }
2724
- case 2: {
2725
- if (tag !== 16) {
2726
- break;
2727
- }
2728
-
2729
- message.y = reader.int32();
2730
- continue;
2731
- }
2732
- case 3: {
2733
- if (tag !== 24) {
2734
- break;
2735
- }
2736
-
2737
- message.w = reader.int32();
2738
- continue;
2739
- }
2740
- case 4: {
2741
- if (tag !== 32) {
2742
- break;
2743
- }
2744
-
2745
- message.h = reader.int32();
2746
- continue;
2747
- }
2748
- }
2749
- if ((tag & 7) === 4 || tag === 0) {
2750
- break;
2920
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2921
+ if (previousRecursionDepth >= 100) {
2922
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2923
+ }
2924
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2925
+ try {
2926
+ const end = length === undefined ? reader.len : reader.pos + length;
2927
+ const message = createBaseGridPos();
2928
+ while (reader.pos < end) {
2929
+ const tag = reader.uint32();
2930
+ switch (tag >>> 3) {
2931
+ case 1: {
2932
+ if (tag !== 8) {
2933
+ break;
2934
+ }
2935
+
2936
+ message.x = reader.int32();
2937
+ continue;
2938
+ }
2939
+ case 2: {
2940
+ if (tag !== 16) {
2941
+ break;
2942
+ }
2943
+
2944
+ message.y = reader.int32();
2945
+ continue;
2946
+ }
2947
+ case 3: {
2948
+ if (tag !== 24) {
2949
+ break;
2950
+ }
2951
+
2952
+ message.w = reader.int32();
2953
+ continue;
2954
+ }
2955
+ case 4: {
2956
+ if (tag !== 32) {
2957
+ break;
2958
+ }
2959
+
2960
+ message.h = reader.int32();
2961
+ continue;
2962
+ }
2963
+ }
2964
+ if ((tag & 7) === 4 || tag === 0) {
2965
+ break;
2966
+ }
2967
+ reader.skip(tag & 7);
2751
2968
  }
2752
- reader.skip(tag & 7);
2969
+ return message;
2970
+ } finally {
2971
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2753
2972
  }
2754
- return message;
2755
2973
  },
2756
2974
 
2757
2975
  fromJSON(object: any): GridPos {
@@ -2822,66 +3040,75 @@ export const CreateDashboardRequest: MessageFns<CreateDashboardRequest> = {
2822
3040
 
2823
3041
  decode(input: BinaryReader | Uint8Array, length?: number): CreateDashboardRequest {
2824
3042
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2825
- const end = length === undefined ? reader.len : reader.pos + length;
2826
- const message = createBaseCreateDashboardRequest();
2827
- while (reader.pos < end) {
2828
- const tag = reader.uint32();
2829
- switch (tag >>> 3) {
2830
- case 1: {
2831
- if (tag !== 10) {
2832
- break;
2833
- }
2834
-
2835
- message.organizationId = reader.string();
2836
- continue;
2837
- }
2838
- case 2: {
2839
- if (tag !== 18) {
2840
- break;
2841
- }
2842
-
2843
- message.projectId = reader.string();
2844
- continue;
2845
- }
2846
- case 3: {
2847
- if (tag !== 26) {
2848
- break;
2849
- }
2850
-
2851
- message.name = reader.string();
2852
- continue;
2853
- }
2854
- case 4: {
2855
- if (tag !== 34) {
2856
- break;
2857
- }
2858
-
2859
- message.description = reader.string();
2860
- continue;
2861
- }
2862
- case 5: {
2863
- if (tag !== 40) {
2864
- break;
2865
- }
2866
-
2867
- message.defaultTimeWindow = reader.int32() as any;
2868
- continue;
2869
- }
2870
- case 6: {
2871
- if (tag !== 50) {
2872
- break;
2873
- }
2874
-
2875
- message.widgets.push(Widget.decode(reader, reader.uint32()));
2876
- continue;
2877
- }
3043
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3044
+ if (previousRecursionDepth >= 100) {
3045
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3046
+ }
3047
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3048
+ try {
3049
+ const end = length === undefined ? reader.len : reader.pos + length;
3050
+ const message = createBaseCreateDashboardRequest();
3051
+ while (reader.pos < end) {
3052
+ const tag = reader.uint32();
3053
+ switch (tag >>> 3) {
3054
+ case 1: {
3055
+ if (tag !== 10) {
3056
+ break;
3057
+ }
3058
+
3059
+ message.organizationId = reader.string();
3060
+ continue;
3061
+ }
3062
+ case 2: {
3063
+ if (tag !== 18) {
3064
+ break;
3065
+ }
3066
+
3067
+ message.projectId = reader.string();
3068
+ continue;
3069
+ }
3070
+ case 3: {
3071
+ if (tag !== 26) {
3072
+ break;
3073
+ }
3074
+
3075
+ message.name = reader.string();
3076
+ continue;
3077
+ }
3078
+ case 4: {
3079
+ if (tag !== 34) {
3080
+ break;
3081
+ }
3082
+
3083
+ message.description = reader.string();
3084
+ continue;
3085
+ }
3086
+ case 5: {
3087
+ if (tag !== 40) {
3088
+ break;
3089
+ }
3090
+
3091
+ message.defaultTimeWindow = reader.int32() as any;
3092
+ continue;
3093
+ }
3094
+ case 6: {
3095
+ if (tag !== 50) {
3096
+ break;
3097
+ }
3098
+
3099
+ message.widgets.push(Widget.decode(reader, reader.uint32()));
3100
+ continue;
3101
+ }
3102
+ }
3103
+ if ((tag & 7) === 4 || tag === 0) {
3104
+ break;
3105
+ }
3106
+ reader.skip(tag & 7);
2878
3107
  }
2879
- if ((tag & 7) === 4 || tag === 0) {
2880
- break;
2881
- }
2882
- reader.skip(tag & 7);
3108
+ return message;
3109
+ } finally {
3110
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2883
3111
  }
2884
- return message;
2885
3112
  },
2886
3113
 
2887
3114
  fromJSON(object: any): CreateDashboardRequest {
@@ -2962,34 +3189,43 @@ export const CreateDashboardResponse: MessageFns<CreateDashboardResponse> = {
2962
3189
 
2963
3190
  decode(input: BinaryReader | Uint8Array, length?: number): CreateDashboardResponse {
2964
3191
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2965
- const end = length === undefined ? reader.len : reader.pos + length;
2966
- const message = createBaseCreateDashboardResponse();
2967
- while (reader.pos < end) {
2968
- const tag = reader.uint32();
2969
- switch (tag >>> 3) {
2970
- case 1: {
2971
- if (tag !== 10) {
2972
- break;
2973
- }
2974
-
2975
- message.status = ResponseStatus.decode(reader, reader.uint32());
2976
- continue;
2977
- }
2978
- case 2: {
2979
- if (tag !== 18) {
2980
- break;
2981
- }
2982
-
2983
- message.dashboard = Dashboard.decode(reader, reader.uint32());
2984
- continue;
2985
- }
2986
- }
2987
- if ((tag & 7) === 4 || tag === 0) {
2988
- break;
3192
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3193
+ if (previousRecursionDepth >= 100) {
3194
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3195
+ }
3196
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3197
+ try {
3198
+ const end = length === undefined ? reader.len : reader.pos + length;
3199
+ const message = createBaseCreateDashboardResponse();
3200
+ while (reader.pos < end) {
3201
+ const tag = reader.uint32();
3202
+ switch (tag >>> 3) {
3203
+ case 1: {
3204
+ if (tag !== 10) {
3205
+ break;
3206
+ }
3207
+
3208
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3209
+ continue;
3210
+ }
3211
+ case 2: {
3212
+ if (tag !== 18) {
3213
+ break;
3214
+ }
3215
+
3216
+ message.dashboard = Dashboard.decode(reader, reader.uint32());
3217
+ continue;
3218
+ }
3219
+ }
3220
+ if ((tag & 7) === 4 || tag === 0) {
3221
+ break;
3222
+ }
3223
+ reader.skip(tag & 7);
2989
3224
  }
2990
- reader.skip(tag & 7);
3225
+ return message;
3226
+ } finally {
3227
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2991
3228
  }
2992
- return message;
2993
3229
  },
2994
3230
 
2995
3231
  fromJSON(object: any): CreateDashboardResponse {
@@ -3045,42 +3281,51 @@ export const GetDashboardRequest: MessageFns<GetDashboardRequest> = {
3045
3281
 
3046
3282
  decode(input: BinaryReader | Uint8Array, length?: number): GetDashboardRequest {
3047
3283
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3048
- const end = length === undefined ? reader.len : reader.pos + length;
3049
- const message = createBaseGetDashboardRequest();
3050
- while (reader.pos < end) {
3051
- const tag = reader.uint32();
3052
- switch (tag >>> 3) {
3053
- case 1: {
3054
- if (tag !== 10) {
3055
- break;
3056
- }
3057
-
3058
- message.organizationId = reader.string();
3059
- continue;
3060
- }
3061
- case 2: {
3062
- if (tag !== 18) {
3063
- break;
3064
- }
3065
-
3066
- message.projectId = reader.string();
3067
- continue;
3068
- }
3069
- case 3: {
3070
- if (tag !== 26) {
3071
- break;
3072
- }
3073
-
3074
- message.dashboardId = reader.string();
3075
- continue;
3076
- }
3077
- }
3078
- if ((tag & 7) === 4 || tag === 0) {
3079
- break;
3284
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3285
+ if (previousRecursionDepth >= 100) {
3286
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3287
+ }
3288
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3289
+ try {
3290
+ const end = length === undefined ? reader.len : reader.pos + length;
3291
+ const message = createBaseGetDashboardRequest();
3292
+ while (reader.pos < end) {
3293
+ const tag = reader.uint32();
3294
+ switch (tag >>> 3) {
3295
+ case 1: {
3296
+ if (tag !== 10) {
3297
+ break;
3298
+ }
3299
+
3300
+ message.organizationId = reader.string();
3301
+ continue;
3302
+ }
3303
+ case 2: {
3304
+ if (tag !== 18) {
3305
+ break;
3306
+ }
3307
+
3308
+ message.projectId = reader.string();
3309
+ continue;
3310
+ }
3311
+ case 3: {
3312
+ if (tag !== 26) {
3313
+ break;
3314
+ }
3315
+
3316
+ message.dashboardId = reader.string();
3317
+ continue;
3318
+ }
3319
+ }
3320
+ if ((tag & 7) === 4 || tag === 0) {
3321
+ break;
3322
+ }
3323
+ reader.skip(tag & 7);
3080
3324
  }
3081
- reader.skip(tag & 7);
3325
+ return message;
3326
+ } finally {
3327
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3082
3328
  }
3083
- return message;
3084
3329
  },
3085
3330
 
3086
3331
  fromJSON(object: any): GetDashboardRequest {
@@ -3146,34 +3391,43 @@ export const GetDashboardResponse: MessageFns<GetDashboardResponse> = {
3146
3391
 
3147
3392
  decode(input: BinaryReader | Uint8Array, length?: number): GetDashboardResponse {
3148
3393
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3149
- const end = length === undefined ? reader.len : reader.pos + length;
3150
- const message = createBaseGetDashboardResponse();
3151
- while (reader.pos < end) {
3152
- const tag = reader.uint32();
3153
- switch (tag >>> 3) {
3154
- case 1: {
3155
- if (tag !== 10) {
3156
- break;
3157
- }
3158
-
3159
- message.status = ResponseStatus.decode(reader, reader.uint32());
3160
- continue;
3161
- }
3162
- case 2: {
3163
- if (tag !== 18) {
3164
- break;
3165
- }
3166
-
3167
- message.dashboard = Dashboard.decode(reader, reader.uint32());
3168
- continue;
3169
- }
3394
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3395
+ if (previousRecursionDepth >= 100) {
3396
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3397
+ }
3398
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3399
+ try {
3400
+ const end = length === undefined ? reader.len : reader.pos + length;
3401
+ const message = createBaseGetDashboardResponse();
3402
+ while (reader.pos < end) {
3403
+ const tag = reader.uint32();
3404
+ switch (tag >>> 3) {
3405
+ case 1: {
3406
+ if (tag !== 10) {
3407
+ break;
3408
+ }
3409
+
3410
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3411
+ continue;
3412
+ }
3413
+ case 2: {
3414
+ if (tag !== 18) {
3415
+ break;
3416
+ }
3417
+
3418
+ message.dashboard = Dashboard.decode(reader, reader.uint32());
3419
+ continue;
3420
+ }
3421
+ }
3422
+ if ((tag & 7) === 4 || tag === 0) {
3423
+ break;
3424
+ }
3425
+ reader.skip(tag & 7);
3170
3426
  }
3171
- if ((tag & 7) === 4 || tag === 0) {
3172
- break;
3173
- }
3174
- reader.skip(tag & 7);
3427
+ return message;
3428
+ } finally {
3429
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3175
3430
  }
3176
- return message;
3177
3431
  },
3178
3432
 
3179
3433
  fromJSON(object: any): GetDashboardResponse {
@@ -3226,34 +3480,43 @@ export const ListDashboardsRequest: MessageFns<ListDashboardsRequest> = {
3226
3480
 
3227
3481
  decode(input: BinaryReader | Uint8Array, length?: number): ListDashboardsRequest {
3228
3482
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3229
- const end = length === undefined ? reader.len : reader.pos + length;
3230
- const message = createBaseListDashboardsRequest();
3231
- while (reader.pos < end) {
3232
- const tag = reader.uint32();
3233
- switch (tag >>> 3) {
3234
- case 1: {
3235
- if (tag !== 10) {
3236
- break;
3237
- }
3238
-
3239
- message.organizationId = reader.string();
3240
- continue;
3241
- }
3242
- case 2: {
3243
- if (tag !== 18) {
3244
- break;
3245
- }
3246
-
3247
- message.projectId = reader.string();
3248
- continue;
3249
- }
3250
- }
3251
- if ((tag & 7) === 4 || tag === 0) {
3252
- break;
3483
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3484
+ if (previousRecursionDepth >= 100) {
3485
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3486
+ }
3487
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3488
+ try {
3489
+ const end = length === undefined ? reader.len : reader.pos + length;
3490
+ const message = createBaseListDashboardsRequest();
3491
+ while (reader.pos < end) {
3492
+ const tag = reader.uint32();
3493
+ switch (tag >>> 3) {
3494
+ case 1: {
3495
+ if (tag !== 10) {
3496
+ break;
3497
+ }
3498
+
3499
+ message.organizationId = reader.string();
3500
+ continue;
3501
+ }
3502
+ case 2: {
3503
+ if (tag !== 18) {
3504
+ break;
3505
+ }
3506
+
3507
+ message.projectId = reader.string();
3508
+ continue;
3509
+ }
3510
+ }
3511
+ if ((tag & 7) === 4 || tag === 0) {
3512
+ break;
3513
+ }
3514
+ reader.skip(tag & 7);
3253
3515
  }
3254
- reader.skip(tag & 7);
3516
+ return message;
3517
+ } finally {
3518
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3255
3519
  }
3256
- return message;
3257
3520
  },
3258
3521
 
3259
3522
  fromJSON(object: any): ListDashboardsRequest {
@@ -3310,34 +3573,43 @@ export const ListDashboardsResponse: MessageFns<ListDashboardsResponse> = {
3310
3573
 
3311
3574
  decode(input: BinaryReader | Uint8Array, length?: number): ListDashboardsResponse {
3312
3575
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3313
- const end = length === undefined ? reader.len : reader.pos + length;
3314
- const message = createBaseListDashboardsResponse();
3315
- while (reader.pos < end) {
3316
- const tag = reader.uint32();
3317
- switch (tag >>> 3) {
3318
- case 1: {
3319
- if (tag !== 10) {
3320
- break;
3321
- }
3322
-
3323
- message.status = ResponseStatus.decode(reader, reader.uint32());
3324
- continue;
3325
- }
3326
- case 2: {
3327
- if (tag !== 18) {
3328
- break;
3329
- }
3330
-
3331
- message.dashboards.push(DashboardSummary.decode(reader, reader.uint32()));
3332
- continue;
3333
- }
3576
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3577
+ if (previousRecursionDepth >= 100) {
3578
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3579
+ }
3580
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3581
+ try {
3582
+ const end = length === undefined ? reader.len : reader.pos + length;
3583
+ const message = createBaseListDashboardsResponse();
3584
+ while (reader.pos < end) {
3585
+ const tag = reader.uint32();
3586
+ switch (tag >>> 3) {
3587
+ case 1: {
3588
+ if (tag !== 10) {
3589
+ break;
3590
+ }
3591
+
3592
+ message.status = ResponseStatus.decode(reader, reader.uint32());
3593
+ continue;
3594
+ }
3595
+ case 2: {
3596
+ if (tag !== 18) {
3597
+ break;
3598
+ }
3599
+
3600
+ message.dashboards.push(DashboardSummary.decode(reader, reader.uint32()));
3601
+ continue;
3602
+ }
3603
+ }
3604
+ if ((tag & 7) === 4 || tag === 0) {
3605
+ break;
3606
+ }
3607
+ reader.skip(tag & 7);
3334
3608
  }
3335
- if ((tag & 7) === 4 || tag === 0) {
3336
- break;
3337
- }
3338
- reader.skip(tag & 7);
3609
+ return message;
3610
+ } finally {
3611
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3339
3612
  }
3340
- return message;
3341
3613
  },
3342
3614
 
3343
3615
  fromJSON(object: any): ListDashboardsResponse {
@@ -3402,66 +3674,75 @@ export const DashboardSummary: MessageFns<DashboardSummary> = {
3402
3674
 
3403
3675
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardSummary {
3404
3676
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3405
- const end = length === undefined ? reader.len : reader.pos + length;
3406
- const message = createBaseDashboardSummary();
3407
- while (reader.pos < end) {
3408
- const tag = reader.uint32();
3409
- switch (tag >>> 3) {
3410
- case 1: {
3411
- if (tag !== 10) {
3412
- break;
3413
- }
3414
-
3415
- message.id = reader.string();
3416
- continue;
3417
- }
3418
- case 2: {
3419
- if (tag !== 18) {
3420
- break;
3421
- }
3422
-
3423
- message.name = reader.string();
3424
- continue;
3425
- }
3426
- case 3: {
3427
- if (tag !== 26) {
3428
- break;
3429
- }
3430
-
3431
- message.description = reader.string();
3432
- continue;
3433
- }
3434
- case 4: {
3435
- if (tag !== 32) {
3436
- break;
3437
- }
3438
-
3439
- message.widgetCount = reader.int32();
3440
- continue;
3441
- }
3442
- case 5: {
3443
- if (tag !== 42) {
3444
- break;
3445
- }
3446
-
3447
- message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3448
- continue;
3449
- }
3450
- case 6: {
3451
- if (tag !== 50) {
3452
- break;
3453
- }
3454
-
3455
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3456
- continue;
3457
- }
3458
- }
3459
- if ((tag & 7) === 4 || tag === 0) {
3460
- break;
3677
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3678
+ if (previousRecursionDepth >= 100) {
3679
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3680
+ }
3681
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3682
+ try {
3683
+ const end = length === undefined ? reader.len : reader.pos + length;
3684
+ const message = createBaseDashboardSummary();
3685
+ while (reader.pos < end) {
3686
+ const tag = reader.uint32();
3687
+ switch (tag >>> 3) {
3688
+ case 1: {
3689
+ if (tag !== 10) {
3690
+ break;
3691
+ }
3692
+
3693
+ message.id = reader.string();
3694
+ continue;
3695
+ }
3696
+ case 2: {
3697
+ if (tag !== 18) {
3698
+ break;
3699
+ }
3700
+
3701
+ message.name = reader.string();
3702
+ continue;
3703
+ }
3704
+ case 3: {
3705
+ if (tag !== 26) {
3706
+ break;
3707
+ }
3708
+
3709
+ message.description = reader.string();
3710
+ continue;
3711
+ }
3712
+ case 4: {
3713
+ if (tag !== 32) {
3714
+ break;
3715
+ }
3716
+
3717
+ message.widgetCount = reader.int32();
3718
+ continue;
3719
+ }
3720
+ case 5: {
3721
+ if (tag !== 42) {
3722
+ break;
3723
+ }
3724
+
3725
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3726
+ continue;
3727
+ }
3728
+ case 6: {
3729
+ if (tag !== 50) {
3730
+ break;
3731
+ }
3732
+
3733
+ message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3734
+ continue;
3735
+ }
3736
+ }
3737
+ if ((tag & 7) === 4 || tag === 0) {
3738
+ break;
3739
+ }
3740
+ reader.skip(tag & 7);
3461
3741
  }
3462
- reader.skip(tag & 7);
3742
+ return message;
3743
+ } finally {
3744
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3463
3745
  }
3464
- return message;
3465
3746
  },
3466
3747
 
3467
3748
  fromJSON(object: any): DashboardSummary {
@@ -3569,82 +3850,91 @@ export const UpdateDashboardRequest: MessageFns<UpdateDashboardRequest> = {
3569
3850
 
3570
3851
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateDashboardRequest {
3571
3852
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3572
- const end = length === undefined ? reader.len : reader.pos + length;
3573
- const message = createBaseUpdateDashboardRequest();
3574
- while (reader.pos < end) {
3575
- const tag = reader.uint32();
3576
- switch (tag >>> 3) {
3577
- case 1: {
3578
- if (tag !== 10) {
3579
- break;
3580
- }
3581
-
3582
- message.organizationId = reader.string();
3583
- continue;
3584
- }
3585
- case 2: {
3586
- if (tag !== 18) {
3587
- break;
3588
- }
3589
-
3590
- message.projectId = reader.string();
3591
- continue;
3592
- }
3593
- case 3: {
3594
- if (tag !== 26) {
3595
- break;
3596
- }
3597
-
3598
- message.dashboardId = reader.string();
3599
- continue;
3600
- }
3601
- case 4: {
3602
- if (tag !== 34) {
3603
- break;
3604
- }
3605
-
3606
- message.name = reader.string();
3607
- continue;
3608
- }
3609
- case 5: {
3610
- if (tag !== 42) {
3611
- break;
3612
- }
3613
-
3614
- message.description = reader.string();
3615
- continue;
3616
- }
3617
- case 6: {
3618
- if (tag !== 48) {
3619
- break;
3620
- }
3621
-
3622
- message.defaultTimeWindow = reader.int32() as any;
3623
- continue;
3624
- }
3625
- case 7: {
3626
- if (tag !== 58) {
3627
- break;
3628
- }
3629
-
3630
- message.widgets.push(Widget.decode(reader, reader.uint32()));
3631
- continue;
3632
- }
3633
- case 8: {
3634
- if (tag !== 64) {
3635
- break;
3636
- }
3637
-
3638
- message.version = longToNumber(reader.int64());
3639
- continue;
3640
- }
3853
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3854
+ if (previousRecursionDepth >= 100) {
3855
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3856
+ }
3857
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3858
+ try {
3859
+ const end = length === undefined ? reader.len : reader.pos + length;
3860
+ const message = createBaseUpdateDashboardRequest();
3861
+ while (reader.pos < end) {
3862
+ const tag = reader.uint32();
3863
+ switch (tag >>> 3) {
3864
+ case 1: {
3865
+ if (tag !== 10) {
3866
+ break;
3867
+ }
3868
+
3869
+ message.organizationId = reader.string();
3870
+ continue;
3871
+ }
3872
+ case 2: {
3873
+ if (tag !== 18) {
3874
+ break;
3875
+ }
3876
+
3877
+ message.projectId = reader.string();
3878
+ continue;
3879
+ }
3880
+ case 3: {
3881
+ if (tag !== 26) {
3882
+ break;
3883
+ }
3884
+
3885
+ message.dashboardId = reader.string();
3886
+ continue;
3887
+ }
3888
+ case 4: {
3889
+ if (tag !== 34) {
3890
+ break;
3891
+ }
3892
+
3893
+ message.name = reader.string();
3894
+ continue;
3895
+ }
3896
+ case 5: {
3897
+ if (tag !== 42) {
3898
+ break;
3899
+ }
3900
+
3901
+ message.description = reader.string();
3902
+ continue;
3903
+ }
3904
+ case 6: {
3905
+ if (tag !== 48) {
3906
+ break;
3907
+ }
3908
+
3909
+ message.defaultTimeWindow = reader.int32() as any;
3910
+ continue;
3911
+ }
3912
+ case 7: {
3913
+ if (tag !== 58) {
3914
+ break;
3915
+ }
3916
+
3917
+ message.widgets.push(Widget.decode(reader, reader.uint32()));
3918
+ continue;
3919
+ }
3920
+ case 8: {
3921
+ if (tag !== 64) {
3922
+ break;
3923
+ }
3924
+
3925
+ message.version = longToNumber(reader.int64());
3926
+ continue;
3927
+ }
3928
+ }
3929
+ if ((tag & 7) === 4 || tag === 0) {
3930
+ break;
3931
+ }
3932
+ reader.skip(tag & 7);
3641
3933
  }
3642
- if ((tag & 7) === 4 || tag === 0) {
3643
- break;
3644
- }
3645
- reader.skip(tag & 7);
3934
+ return message;
3935
+ } finally {
3936
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3646
3937
  }
3647
- return message;
3648
3938
  },
3649
3939
 
3650
3940
  fromJSON(object: any): UpdateDashboardRequest {
@@ -3741,34 +4031,43 @@ export const UpdateDashboardResponse: MessageFns<UpdateDashboardResponse> = {
3741
4031
 
3742
4032
  decode(input: BinaryReader | Uint8Array, length?: number): UpdateDashboardResponse {
3743
4033
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3744
- const end = length === undefined ? reader.len : reader.pos + length;
3745
- const message = createBaseUpdateDashboardResponse();
3746
- while (reader.pos < end) {
3747
- const tag = reader.uint32();
3748
- switch (tag >>> 3) {
3749
- case 1: {
3750
- if (tag !== 10) {
3751
- break;
3752
- }
3753
-
3754
- message.status = ResponseStatus.decode(reader, reader.uint32());
3755
- continue;
3756
- }
3757
- case 2: {
3758
- if (tag !== 18) {
3759
- break;
3760
- }
3761
-
3762
- message.dashboard = Dashboard.decode(reader, reader.uint32());
3763
- continue;
3764
- }
3765
- }
3766
- if ((tag & 7) === 4 || tag === 0) {
3767
- break;
4034
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4035
+ if (previousRecursionDepth >= 100) {
4036
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4037
+ }
4038
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4039
+ try {
4040
+ const end = length === undefined ? reader.len : reader.pos + length;
4041
+ const message = createBaseUpdateDashboardResponse();
4042
+ while (reader.pos < end) {
4043
+ const tag = reader.uint32();
4044
+ switch (tag >>> 3) {
4045
+ case 1: {
4046
+ if (tag !== 10) {
4047
+ break;
4048
+ }
4049
+
4050
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4051
+ continue;
4052
+ }
4053
+ case 2: {
4054
+ if (tag !== 18) {
4055
+ break;
4056
+ }
4057
+
4058
+ message.dashboard = Dashboard.decode(reader, reader.uint32());
4059
+ continue;
4060
+ }
4061
+ }
4062
+ if ((tag & 7) === 4 || tag === 0) {
4063
+ break;
4064
+ }
4065
+ reader.skip(tag & 7);
3768
4066
  }
3769
- reader.skip(tag & 7);
4067
+ return message;
4068
+ } finally {
4069
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3770
4070
  }
3771
- return message;
3772
4071
  },
3773
4072
 
3774
4073
  fromJSON(object: any): UpdateDashboardResponse {
@@ -3824,42 +4123,51 @@ export const DeleteDashboardRequest: MessageFns<DeleteDashboardRequest> = {
3824
4123
 
3825
4124
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteDashboardRequest {
3826
4125
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3827
- const end = length === undefined ? reader.len : reader.pos + length;
3828
- const message = createBaseDeleteDashboardRequest();
3829
- while (reader.pos < end) {
3830
- const tag = reader.uint32();
3831
- switch (tag >>> 3) {
3832
- case 1: {
3833
- if (tag !== 10) {
3834
- break;
3835
- }
3836
-
3837
- message.organizationId = reader.string();
3838
- continue;
3839
- }
3840
- case 2: {
3841
- if (tag !== 18) {
3842
- break;
3843
- }
3844
-
3845
- message.projectId = reader.string();
3846
- continue;
3847
- }
3848
- case 3: {
3849
- if (tag !== 26) {
3850
- break;
3851
- }
3852
-
3853
- message.dashboardId = reader.string();
3854
- continue;
3855
- }
3856
- }
3857
- if ((tag & 7) === 4 || tag === 0) {
3858
- break;
4126
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4127
+ if (previousRecursionDepth >= 100) {
4128
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4129
+ }
4130
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4131
+ try {
4132
+ const end = length === undefined ? reader.len : reader.pos + length;
4133
+ const message = createBaseDeleteDashboardRequest();
4134
+ while (reader.pos < end) {
4135
+ const tag = reader.uint32();
4136
+ switch (tag >>> 3) {
4137
+ case 1: {
4138
+ if (tag !== 10) {
4139
+ break;
4140
+ }
4141
+
4142
+ message.organizationId = reader.string();
4143
+ continue;
4144
+ }
4145
+ case 2: {
4146
+ if (tag !== 18) {
4147
+ break;
4148
+ }
4149
+
4150
+ message.projectId = reader.string();
4151
+ continue;
4152
+ }
4153
+ case 3: {
4154
+ if (tag !== 26) {
4155
+ break;
4156
+ }
4157
+
4158
+ message.dashboardId = reader.string();
4159
+ continue;
4160
+ }
4161
+ }
4162
+ if ((tag & 7) === 4 || tag === 0) {
4163
+ break;
4164
+ }
4165
+ reader.skip(tag & 7);
3859
4166
  }
3860
- reader.skip(tag & 7);
4167
+ return message;
4168
+ } finally {
4169
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3861
4170
  }
3862
- return message;
3863
4171
  },
3864
4172
 
3865
4173
  fromJSON(object: any): DeleteDashboardRequest {
@@ -3922,26 +4230,35 @@ export const DeleteDashboardResponse: MessageFns<DeleteDashboardResponse> = {
3922
4230
 
3923
4231
  decode(input: BinaryReader | Uint8Array, length?: number): DeleteDashboardResponse {
3924
4232
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3925
- const end = length === undefined ? reader.len : reader.pos + length;
3926
- const message = createBaseDeleteDashboardResponse();
3927
- while (reader.pos < end) {
3928
- const tag = reader.uint32();
3929
- switch (tag >>> 3) {
3930
- case 1: {
3931
- if (tag !== 10) {
3932
- break;
3933
- }
3934
-
3935
- message.status = ResponseStatus.decode(reader, reader.uint32());
3936
- continue;
3937
- }
3938
- }
3939
- if ((tag & 7) === 4 || tag === 0) {
3940
- break;
4233
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4234
+ if (previousRecursionDepth >= 100) {
4235
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4236
+ }
4237
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4238
+ try {
4239
+ const end = length === undefined ? reader.len : reader.pos + length;
4240
+ const message = createBaseDeleteDashboardResponse();
4241
+ while (reader.pos < end) {
4242
+ const tag = reader.uint32();
4243
+ switch (tag >>> 3) {
4244
+ case 1: {
4245
+ if (tag !== 10) {
4246
+ break;
4247
+ }
4248
+
4249
+ message.status = ResponseStatus.decode(reader, reader.uint32());
4250
+ continue;
4251
+ }
4252
+ }
4253
+ if ((tag & 7) === 4 || tag === 0) {
4254
+ break;
4255
+ }
4256
+ reader.skip(tag & 7);
3941
4257
  }
3942
- reader.skip(tag & 7);
4258
+ return message;
4259
+ } finally {
4260
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3943
4261
  }
3944
- return message;
3945
4262
  },
3946
4263
 
3947
4264
  fromJSON(object: any): DeleteDashboardResponse {
@@ -3994,58 +4311,67 @@ export const StreamDashboardDataRequest: MessageFns<StreamDashboardDataRequest>
3994
4311
 
3995
4312
  decode(input: BinaryReader | Uint8Array, length?: number): StreamDashboardDataRequest {
3996
4313
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3997
- const end = length === undefined ? reader.len : reader.pos + length;
3998
- const message = createBaseStreamDashboardDataRequest();
3999
- while (reader.pos < end) {
4000
- const tag = reader.uint32();
4001
- switch (tag >>> 3) {
4002
- case 1: {
4003
- if (tag !== 10) {
4004
- break;
4005
- }
4006
-
4007
- message.organizationId = reader.string();
4008
- continue;
4009
- }
4010
- case 2: {
4011
- if (tag !== 18) {
4012
- break;
4013
- }
4014
-
4015
- message.projectId = reader.string();
4016
- continue;
4017
- }
4018
- case 3: {
4019
- if (tag !== 26) {
4020
- break;
4021
- }
4022
-
4023
- message.dashboardId = reader.string();
4024
- continue;
4025
- }
4026
- case 4: {
4027
- if (tag !== 34) {
4028
- break;
4029
- }
4030
-
4031
- message.widgetIds.push(reader.string());
4032
- continue;
4033
- }
4034
- case 5: {
4035
- if (tag !== 42) {
4036
- break;
4037
- }
4038
-
4039
- message.timeRange = TimeRange.decode(reader, reader.uint32());
4040
- continue;
4041
- }
4042
- }
4043
- if ((tag & 7) === 4 || tag === 0) {
4044
- break;
4314
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4315
+ if (previousRecursionDepth >= 100) {
4316
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4317
+ }
4318
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4319
+ try {
4320
+ const end = length === undefined ? reader.len : reader.pos + length;
4321
+ const message = createBaseStreamDashboardDataRequest();
4322
+ while (reader.pos < end) {
4323
+ const tag = reader.uint32();
4324
+ switch (tag >>> 3) {
4325
+ case 1: {
4326
+ if (tag !== 10) {
4327
+ break;
4328
+ }
4329
+
4330
+ message.organizationId = reader.string();
4331
+ continue;
4332
+ }
4333
+ case 2: {
4334
+ if (tag !== 18) {
4335
+ break;
4336
+ }
4337
+
4338
+ message.projectId = reader.string();
4339
+ continue;
4340
+ }
4341
+ case 3: {
4342
+ if (tag !== 26) {
4343
+ break;
4344
+ }
4345
+
4346
+ message.dashboardId = reader.string();
4347
+ continue;
4348
+ }
4349
+ case 4: {
4350
+ if (tag !== 34) {
4351
+ break;
4352
+ }
4353
+
4354
+ message.widgetIds.push(reader.string());
4355
+ continue;
4356
+ }
4357
+ case 5: {
4358
+ if (tag !== 42) {
4359
+ break;
4360
+ }
4361
+
4362
+ message.timeRange = TimeRange.decode(reader, reader.uint32());
4363
+ continue;
4364
+ }
4365
+ }
4366
+ if ((tag & 7) === 4 || tag === 0) {
4367
+ break;
4368
+ }
4369
+ reader.skip(tag & 7);
4045
4370
  }
4046
- reader.skip(tag & 7);
4371
+ return message;
4372
+ } finally {
4373
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4047
4374
  }
4048
- return message;
4049
4375
  },
4050
4376
 
4051
4377
  fromJSON(object: any): StreamDashboardDataRequest {
@@ -4140,58 +4466,67 @@ export const DashboardDataEnvelope: MessageFns<DashboardDataEnvelope> = {
4140
4466
 
4141
4467
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardDataEnvelope {
4142
4468
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4143
- const end = length === undefined ? reader.len : reader.pos + length;
4144
- const message = createBaseDashboardDataEnvelope();
4145
- while (reader.pos < end) {
4146
- const tag = reader.uint32();
4147
- switch (tag >>> 3) {
4148
- case 1: {
4149
- if (tag !== 10) {
4150
- break;
4151
- }
4152
-
4153
- message.widgetId = reader.string();
4154
- continue;
4155
- }
4156
- case 2: {
4157
- if (tag !== 16) {
4158
- break;
4159
- }
4160
-
4161
- message.queryIndex = reader.int32();
4162
- continue;
4163
- }
4164
- case 3: {
4165
- if (tag !== 26) {
4166
- break;
4167
- }
4168
-
4169
- message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
4170
- continue;
4171
- }
4172
- case 4: {
4173
- if (tag !== 34) {
4174
- break;
4175
- }
4176
-
4177
- message.update = QuerySeriesUpdate.decode(reader, reader.uint32());
4178
- continue;
4179
- }
4180
- case 5: {
4181
- if (tag !== 42) {
4182
- break;
4183
- }
4184
-
4185
- message.error = WidgetQueryError.decode(reader, reader.uint32());
4186
- continue;
4187
- }
4188
- }
4189
- if ((tag & 7) === 4 || tag === 0) {
4190
- break;
4469
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4470
+ if (previousRecursionDepth >= 100) {
4471
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4472
+ }
4473
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4474
+ try {
4475
+ const end = length === undefined ? reader.len : reader.pos + length;
4476
+ const message = createBaseDashboardDataEnvelope();
4477
+ while (reader.pos < end) {
4478
+ const tag = reader.uint32();
4479
+ switch (tag >>> 3) {
4480
+ case 1: {
4481
+ if (tag !== 10) {
4482
+ break;
4483
+ }
4484
+
4485
+ message.widgetId = reader.string();
4486
+ continue;
4487
+ }
4488
+ case 2: {
4489
+ if (tag !== 16) {
4490
+ break;
4491
+ }
4492
+
4493
+ message.queryIndex = reader.int32();
4494
+ continue;
4495
+ }
4496
+ case 3: {
4497
+ if (tag !== 26) {
4498
+ break;
4499
+ }
4500
+
4501
+ message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
4502
+ continue;
4503
+ }
4504
+ case 4: {
4505
+ if (tag !== 34) {
4506
+ break;
4507
+ }
4508
+
4509
+ message.update = QuerySeriesUpdate.decode(reader, reader.uint32());
4510
+ continue;
4511
+ }
4512
+ case 5: {
4513
+ if (tag !== 42) {
4514
+ break;
4515
+ }
4516
+
4517
+ message.error = WidgetQueryError.decode(reader, reader.uint32());
4518
+ continue;
4519
+ }
4520
+ }
4521
+ if ((tag & 7) === 4 || tag === 0) {
4522
+ break;
4523
+ }
4524
+ reader.skip(tag & 7);
4191
4525
  }
4192
- reader.skip(tag & 7);
4526
+ return message;
4527
+ } finally {
4528
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4193
4529
  }
4194
- return message;
4195
4530
  },
4196
4531
 
4197
4532
  fromJSON(object: any): DashboardDataEnvelope {
@@ -4266,26 +4601,35 @@ export const WidgetQueryError: MessageFns<WidgetQueryError> = {
4266
4601
 
4267
4602
  decode(input: BinaryReader | Uint8Array, length?: number): WidgetQueryError {
4268
4603
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4269
- const end = length === undefined ? reader.len : reader.pos + length;
4270
- const message = createBaseWidgetQueryError();
4271
- while (reader.pos < end) {
4272
- const tag = reader.uint32();
4273
- switch (tag >>> 3) {
4274
- case 1: {
4275
- if (tag !== 10) {
4276
- break;
4277
- }
4278
-
4279
- message.message = reader.string();
4280
- continue;
4281
- }
4282
- }
4283
- if ((tag & 7) === 4 || tag === 0) {
4284
- break;
4604
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4605
+ if (previousRecursionDepth >= 100) {
4606
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4607
+ }
4608
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4609
+ try {
4610
+ const end = length === undefined ? reader.len : reader.pos + length;
4611
+ const message = createBaseWidgetQueryError();
4612
+ while (reader.pos < end) {
4613
+ const tag = reader.uint32();
4614
+ switch (tag >>> 3) {
4615
+ case 1: {
4616
+ if (tag !== 10) {
4617
+ break;
4618
+ }
4619
+
4620
+ message.message = reader.string();
4621
+ continue;
4622
+ }
4623
+ }
4624
+ if ((tag & 7) === 4 || tag === 0) {
4625
+ break;
4626
+ }
4627
+ reader.skip(tag & 7);
4285
4628
  }
4286
- reader.skip(tag & 7);
4629
+ return message;
4630
+ } finally {
4631
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4287
4632
  }
4288
- return message;
4289
4633
  },
4290
4634
 
4291
4635
  fromJSON(object: any): WidgetQueryError {
@@ -4330,42 +4674,51 @@ export const StreamDashboardPreviewsRequest: MessageFns<StreamDashboardPreviewsR
4330
4674
 
4331
4675
  decode(input: BinaryReader | Uint8Array, length?: number): StreamDashboardPreviewsRequest {
4332
4676
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4333
- const end = length === undefined ? reader.len : reader.pos + length;
4334
- const message = createBaseStreamDashboardPreviewsRequest();
4335
- while (reader.pos < end) {
4336
- const tag = reader.uint32();
4337
- switch (tag >>> 3) {
4338
- case 1: {
4339
- if (tag !== 10) {
4340
- break;
4341
- }
4342
-
4343
- message.organizationId = reader.string();
4344
- continue;
4345
- }
4346
- case 2: {
4347
- if (tag !== 18) {
4348
- break;
4349
- }
4350
-
4351
- message.projectId = reader.string();
4352
- continue;
4353
- }
4354
- case 3: {
4355
- if (tag !== 26) {
4356
- break;
4357
- }
4358
-
4359
- message.dashboardIds.push(reader.string());
4360
- continue;
4361
- }
4362
- }
4363
- if ((tag & 7) === 4 || tag === 0) {
4364
- break;
4677
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4678
+ if (previousRecursionDepth >= 100) {
4679
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4680
+ }
4681
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4682
+ try {
4683
+ const end = length === undefined ? reader.len : reader.pos + length;
4684
+ const message = createBaseStreamDashboardPreviewsRequest();
4685
+ while (reader.pos < end) {
4686
+ const tag = reader.uint32();
4687
+ switch (tag >>> 3) {
4688
+ case 1: {
4689
+ if (tag !== 10) {
4690
+ break;
4691
+ }
4692
+
4693
+ message.organizationId = reader.string();
4694
+ continue;
4695
+ }
4696
+ case 2: {
4697
+ if (tag !== 18) {
4698
+ break;
4699
+ }
4700
+
4701
+ message.projectId = reader.string();
4702
+ continue;
4703
+ }
4704
+ case 3: {
4705
+ if (tag !== 26) {
4706
+ break;
4707
+ }
4708
+
4709
+ message.dashboardIds.push(reader.string());
4710
+ continue;
4711
+ }
4712
+ }
4713
+ if ((tag & 7) === 4 || tag === 0) {
4714
+ break;
4715
+ }
4716
+ reader.skip(tag & 7);
4365
4717
  }
4366
- reader.skip(tag & 7);
4718
+ return message;
4719
+ } finally {
4720
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4367
4721
  }
4368
- return message;
4369
4722
  },
4370
4723
 
4371
4724
  fromJSON(object: any): StreamDashboardPreviewsRequest {
@@ -4439,50 +4792,59 @@ export const DashboardPreviewEnvelope: MessageFns<DashboardPreviewEnvelope> = {
4439
4792
 
4440
4793
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardPreviewEnvelope {
4441
4794
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4442
- const end = length === undefined ? reader.len : reader.pos + length;
4443
- const message = createBaseDashboardPreviewEnvelope();
4444
- while (reader.pos < end) {
4445
- const tag = reader.uint32();
4446
- switch (tag >>> 3) {
4447
- case 1: {
4448
- if (tag !== 10) {
4449
- break;
4450
- }
4451
-
4452
- message.dashboardId = reader.string();
4453
- continue;
4454
- }
4455
- case 2: {
4456
- if (tag !== 18) {
4457
- break;
4458
- }
4459
-
4460
- message.manifest = DashboardPreviewManifest.decode(reader, reader.uint32());
4461
- continue;
4462
- }
4463
- case 3: {
4464
- if (tag !== 26) {
4465
- break;
4466
- }
4467
-
4468
- message.queryResult = DashboardPreviewQueryResult.decode(reader, reader.uint32());
4469
- continue;
4470
- }
4471
- case 4: {
4472
- if (tag !== 34) {
4473
- break;
4474
- }
4475
-
4476
- message.error = DashboardPreviewError.decode(reader, reader.uint32());
4477
- continue;
4478
- }
4795
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4796
+ if (previousRecursionDepth >= 100) {
4797
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4798
+ }
4799
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4800
+ try {
4801
+ const end = length === undefined ? reader.len : reader.pos + length;
4802
+ const message = createBaseDashboardPreviewEnvelope();
4803
+ while (reader.pos < end) {
4804
+ const tag = reader.uint32();
4805
+ switch (tag >>> 3) {
4806
+ case 1: {
4807
+ if (tag !== 10) {
4808
+ break;
4809
+ }
4810
+
4811
+ message.dashboardId = reader.string();
4812
+ continue;
4813
+ }
4814
+ case 2: {
4815
+ if (tag !== 18) {
4816
+ break;
4817
+ }
4818
+
4819
+ message.manifest = DashboardPreviewManifest.decode(reader, reader.uint32());
4820
+ continue;
4821
+ }
4822
+ case 3: {
4823
+ if (tag !== 26) {
4824
+ break;
4825
+ }
4826
+
4827
+ message.queryResult = DashboardPreviewQueryResult.decode(reader, reader.uint32());
4828
+ continue;
4829
+ }
4830
+ case 4: {
4831
+ if (tag !== 34) {
4832
+ break;
4833
+ }
4834
+
4835
+ message.error = DashboardPreviewError.decode(reader, reader.uint32());
4836
+ continue;
4837
+ }
4838
+ }
4839
+ if ((tag & 7) === 4 || tag === 0) {
4840
+ break;
4841
+ }
4842
+ reader.skip(tag & 7);
4479
4843
  }
4480
- if ((tag & 7) === 4 || tag === 0) {
4481
- break;
4482
- }
4483
- reader.skip(tag & 7);
4844
+ return message;
4845
+ } finally {
4846
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4484
4847
  }
4485
- return message;
4486
4848
  },
4487
4849
 
4488
4850
  fromJSON(object: any): DashboardPreviewEnvelope {
@@ -4555,34 +4917,43 @@ export const DashboardPreviewManifest: MessageFns<DashboardPreviewManifest> = {
4555
4917
 
4556
4918
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardPreviewManifest {
4557
4919
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4558
- const end = length === undefined ? reader.len : reader.pos + length;
4559
- const message = createBaseDashboardPreviewManifest();
4560
- while (reader.pos < end) {
4561
- const tag = reader.uint32();
4562
- switch (tag >>> 3) {
4563
- case 1: {
4564
- if (tag !== 10) {
4565
- break;
4566
- }
4567
-
4568
- message.widgets.push(Widget.decode(reader, reader.uint32()));
4569
- continue;
4570
- }
4571
- case 2: {
4572
- if (tag !== 16) {
4573
- break;
4574
- }
4575
-
4576
- message.dashboardVersion = longToNumber(reader.int64());
4577
- continue;
4578
- }
4579
- }
4580
- if ((tag & 7) === 4 || tag === 0) {
4581
- break;
4920
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
4921
+ if (previousRecursionDepth >= 100) {
4922
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
4923
+ }
4924
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
4925
+ try {
4926
+ const end = length === undefined ? reader.len : reader.pos + length;
4927
+ const message = createBaseDashboardPreviewManifest();
4928
+ while (reader.pos < end) {
4929
+ const tag = reader.uint32();
4930
+ switch (tag >>> 3) {
4931
+ case 1: {
4932
+ if (tag !== 10) {
4933
+ break;
4934
+ }
4935
+
4936
+ message.widgets.push(Widget.decode(reader, reader.uint32()));
4937
+ continue;
4938
+ }
4939
+ case 2: {
4940
+ if (tag !== 16) {
4941
+ break;
4942
+ }
4943
+
4944
+ message.dashboardVersion = longToNumber(reader.int64());
4945
+ continue;
4946
+ }
4947
+ }
4948
+ if ((tag & 7) === 4 || tag === 0) {
4949
+ break;
4950
+ }
4951
+ reader.skip(tag & 7);
4582
4952
  }
4583
- reader.skip(tag & 7);
4953
+ return message;
4954
+ } finally {
4955
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4584
4956
  }
4585
- return message;
4586
4957
  },
4587
4958
 
4588
4959
  fromJSON(object: any): DashboardPreviewManifest {
@@ -4641,50 +5012,59 @@ export const DashboardPreviewQueryResult: MessageFns<DashboardPreviewQueryResult
4641
5012
 
4642
5013
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardPreviewQueryResult {
4643
5014
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4644
- const end = length === undefined ? reader.len : reader.pos + length;
4645
- const message = createBaseDashboardPreviewQueryResult();
4646
- while (reader.pos < end) {
4647
- const tag = reader.uint32();
4648
- switch (tag >>> 3) {
4649
- case 1: {
4650
- if (tag !== 10) {
4651
- break;
4652
- }
4653
-
4654
- message.widgetId = reader.string();
4655
- continue;
4656
- }
4657
- case 2: {
4658
- if (tag !== 16) {
4659
- break;
4660
- }
4661
-
4662
- message.queryIndex = reader.int32();
4663
- continue;
4664
- }
4665
- case 3: {
4666
- if (tag !== 26) {
4667
- break;
4668
- }
4669
-
4670
- message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
4671
- continue;
4672
- }
4673
- case 4: {
4674
- if (tag !== 34) {
4675
- break;
4676
- }
4677
-
4678
- message.error = WidgetQueryError.decode(reader, reader.uint32());
4679
- continue;
4680
- }
5015
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5016
+ if (previousRecursionDepth >= 100) {
5017
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5018
+ }
5019
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5020
+ try {
5021
+ const end = length === undefined ? reader.len : reader.pos + length;
5022
+ const message = createBaseDashboardPreviewQueryResult();
5023
+ while (reader.pos < end) {
5024
+ const tag = reader.uint32();
5025
+ switch (tag >>> 3) {
5026
+ case 1: {
5027
+ if (tag !== 10) {
5028
+ break;
5029
+ }
5030
+
5031
+ message.widgetId = reader.string();
5032
+ continue;
5033
+ }
5034
+ case 2: {
5035
+ if (tag !== 16) {
5036
+ break;
5037
+ }
5038
+
5039
+ message.queryIndex = reader.int32();
5040
+ continue;
5041
+ }
5042
+ case 3: {
5043
+ if (tag !== 26) {
5044
+ break;
5045
+ }
5046
+
5047
+ message.snapshot = QuerySnapshot.decode(reader, reader.uint32());
5048
+ continue;
5049
+ }
5050
+ case 4: {
5051
+ if (tag !== 34) {
5052
+ break;
5053
+ }
5054
+
5055
+ message.error = WidgetQueryError.decode(reader, reader.uint32());
5056
+ continue;
5057
+ }
5058
+ }
5059
+ if ((tag & 7) === 4 || tag === 0) {
5060
+ break;
5061
+ }
5062
+ reader.skip(tag & 7);
4681
5063
  }
4682
- if ((tag & 7) === 4 || tag === 0) {
4683
- break;
4684
- }
4685
- reader.skip(tag & 7);
5064
+ return message;
5065
+ } finally {
5066
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4686
5067
  }
4687
- return message;
4688
5068
  },
4689
5069
 
4690
5070
  fromJSON(object: any): DashboardPreviewQueryResult {
@@ -4752,26 +5132,35 @@ export const DashboardPreviewError: MessageFns<DashboardPreviewError> = {
4752
5132
 
4753
5133
  decode(input: BinaryReader | Uint8Array, length?: number): DashboardPreviewError {
4754
5134
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4755
- const end = length === undefined ? reader.len : reader.pos + length;
4756
- const message = createBaseDashboardPreviewError();
4757
- while (reader.pos < end) {
4758
- const tag = reader.uint32();
4759
- switch (tag >>> 3) {
4760
- case 1: {
4761
- if (tag !== 10) {
4762
- break;
4763
- }
4764
-
4765
- message.message = reader.string();
4766
- continue;
4767
- }
5135
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
5136
+ if (previousRecursionDepth >= 100) {
5137
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
5138
+ }
5139
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
5140
+ try {
5141
+ const end = length === undefined ? reader.len : reader.pos + length;
5142
+ const message = createBaseDashboardPreviewError();
5143
+ while (reader.pos < end) {
5144
+ const tag = reader.uint32();
5145
+ switch (tag >>> 3) {
5146
+ case 1: {
5147
+ if (tag !== 10) {
5148
+ break;
5149
+ }
5150
+
5151
+ message.message = reader.string();
5152
+ continue;
5153
+ }
5154
+ }
5155
+ if ((tag & 7) === 4 || tag === 0) {
5156
+ break;
5157
+ }
5158
+ reader.skip(tag & 7);
4768
5159
  }
4769
- if ((tag & 7) === 4 || tag === 0) {
4770
- break;
4771
- }
4772
- reader.skip(tag & 7);
5160
+ return message;
5161
+ } finally {
5162
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
4773
5163
  }
4774
- return message;
4775
5164
  },
4776
5165
 
4777
5166
  fromJSON(object: any): DashboardPreviewError {