@fatehan/tsrp 1.4.44 → 1.4.46

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.
Files changed (73) hide show
  1. package/dist/fatehan/activities/camera.d.ts +0 -2
  2. package/dist/fatehan/activities/camera.d.ts.map +1 -1
  3. package/dist/fatehan/activities/camera.js +0 -257
  4. package/dist/fatehan/activities/workflow.d.ts +20 -30
  5. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  6. package/dist/fatehan/activities/workflow.js +0 -718
  7. package/dist/fatehan/apis/client.d.ts +10 -12
  8. package/dist/fatehan/apis/client.d.ts.map +1 -1
  9. package/dist/fatehan/apis/client.js +23 -1015
  10. package/dist/fatehan/areas/area.d.ts +11 -15
  11. package/dist/fatehan/areas/area.d.ts.map +1 -1
  12. package/dist/fatehan/areas/area.js +0 -271
  13. package/dist/fatehan/devices/devices.d.ts +3 -7
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -1
  15. package/dist/fatehan/devices/devices.js +0 -911
  16. package/dist/fatehan/devices/maintenance.d.ts +3 -7
  17. package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
  18. package/dist/fatehan/devices/maintenance.js +0 -189
  19. package/dist/fatehan/financial/financial.d.ts +14 -16
  20. package/dist/fatehan/financial/financial.d.ts.map +1 -1
  21. package/dist/fatehan/financial/financial.js +0 -538
  22. package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -42
  23. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  24. package/dist/fatehan/google/protobuf/descriptor.js +0 -1864
  25. package/dist/fatehan/google/protobuf/duration.d.ts +0 -2
  26. package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -1
  27. package/dist/fatehan/google/protobuf/duration.js +0 -19
  28. package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -2
  29. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  30. package/dist/fatehan/google/protobuf/field_mask.js +0 -12
  31. package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -2
  32. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  33. package/dist/fatehan/google/protobuf/timestamp.js +0 -19
  34. package/dist/fatehan/identities/authentication.d.ts +13 -15
  35. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  36. package/dist/fatehan/identities/authentication.js +0 -339
  37. package/dist/fatehan/identities/identities.d.ts +6 -12
  38. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  39. package/dist/fatehan/identities/identities.js +0 -4069
  40. package/dist/fatehan/models/fusion.d.ts +5 -7
  41. package/dist/fatehan/models/fusion.d.ts.map +1 -1
  42. package/dist/fatehan/models/fusion.js +0 -494
  43. package/dist/fatehan/models/models.d.ts +6 -10
  44. package/dist/fatehan/models/models.d.ts.map +1 -1
  45. package/dist/fatehan/models/models.js +1 -554
  46. package/dist/fatehan/notifies/notify.d.ts +10 -24
  47. package/dist/fatehan/notifies/notify.d.ts.map +1 -1
  48. package/dist/fatehan/notifies/notify.js +0 -1096
  49. package/dist/fatehan/packets/dataModel.d.ts +18 -48
  50. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  51. package/dist/fatehan/packets/dataModel.js +34 -7015
  52. package/dist/fatehan/packets/dataModule.d.ts +2 -6
  53. package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
  54. package/dist/fatehan/packets/dataModule.js +0 -167
  55. package/dist/fatehan/packets/messages.d.ts +5 -9
  56. package/dist/fatehan/packets/messages.d.ts.map +1 -1
  57. package/dist/fatehan/packets/messages.js +0 -280
  58. package/dist/fatehan/reports/report.d.ts +87 -115
  59. package/dist/fatehan/reports/report.d.ts.map +1 -1
  60. package/dist/fatehan/reports/report.js +3 -3112
  61. package/dist/fatehan/services/api.d.ts +14 -14
  62. package/dist/fatehan/services/api.d.ts.map +1 -1
  63. package/dist/fatehan/services/api.js +29 -1254
  64. package/dist/fatehan/services/repositories.d.ts +6 -8
  65. package/dist/fatehan/services/repositories.d.ts.map +1 -1
  66. package/dist/fatehan/services/repositories.js +0 -191
  67. package/dist/fatehan/trips/trip.d.ts +18 -30
  68. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  69. package/dist/fatehan/trips/trip.js +0 -1662
  70. package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -6
  71. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
  72. package/dist/fatehan/utils/buf/validate/validate.js +0 -1318
  73. package/package.json +1 -1
@@ -6,7 +6,6 @@
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import Long from "long";
9
- import { fieldDescriptorProto_TypeFromJSON, fieldDescriptorProto_TypeToJSON, } from "../../../google/protobuf/descriptor";
10
9
  import { Duration } from "../../../google/protobuf/duration";
11
10
  import { FieldMask } from "../../../google/protobuf/field_mask";
12
11
  import { Timestamp } from "../../../google/protobuf/timestamp";
@@ -107,36 +106,6 @@ export var Ignore;
107
106
  Ignore[Ignore["IGNORE_ALWAYS"] = 3] = "IGNORE_ALWAYS";
108
107
  Ignore[Ignore["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
109
108
  })(Ignore || (Ignore = {}));
110
- export function ignoreFromJSON(object) {
111
- switch (object) {
112
- case 0:
113
- case "IGNORE_UNSPECIFIED":
114
- return Ignore.IGNORE_UNSPECIFIED;
115
- case 1:
116
- case "IGNORE_IF_ZERO_VALUE":
117
- return Ignore.IGNORE_IF_ZERO_VALUE;
118
- case 3:
119
- case "IGNORE_ALWAYS":
120
- return Ignore.IGNORE_ALWAYS;
121
- case -1:
122
- case "UNRECOGNIZED":
123
- default:
124
- return Ignore.UNRECOGNIZED;
125
- }
126
- }
127
- export function ignoreToJSON(object) {
128
- switch (object) {
129
- case Ignore.IGNORE_UNSPECIFIED:
130
- return "IGNORE_UNSPECIFIED";
131
- case Ignore.IGNORE_IF_ZERO_VALUE:
132
- return "IGNORE_IF_ZERO_VALUE";
133
- case Ignore.IGNORE_ALWAYS:
134
- return "IGNORE_ALWAYS";
135
- case Ignore.UNRECOGNIZED:
136
- default:
137
- return "UNRECOGNIZED";
138
- }
139
- }
140
109
  /** KnownRegex contains some well-known patterns. */
141
110
  export var KnownRegex;
142
111
  (function (KnownRegex) {
@@ -147,36 +116,6 @@ export var KnownRegex;
147
116
  KnownRegex[KnownRegex["KNOWN_REGEX_HTTP_HEADER_VALUE"] = 2] = "KNOWN_REGEX_HTTP_HEADER_VALUE";
148
117
  KnownRegex[KnownRegex["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
149
118
  })(KnownRegex || (KnownRegex = {}));
150
- export function knownRegexFromJSON(object) {
151
- switch (object) {
152
- case 0:
153
- case "KNOWN_REGEX_UNSPECIFIED":
154
- return KnownRegex.KNOWN_REGEX_UNSPECIFIED;
155
- case 1:
156
- case "KNOWN_REGEX_HTTP_HEADER_NAME":
157
- return KnownRegex.KNOWN_REGEX_HTTP_HEADER_NAME;
158
- case 2:
159
- case "KNOWN_REGEX_HTTP_HEADER_VALUE":
160
- return KnownRegex.KNOWN_REGEX_HTTP_HEADER_VALUE;
161
- case -1:
162
- case "UNRECOGNIZED":
163
- default:
164
- return KnownRegex.UNRECOGNIZED;
165
- }
166
- }
167
- export function knownRegexToJSON(object) {
168
- switch (object) {
169
- case KnownRegex.KNOWN_REGEX_UNSPECIFIED:
170
- return "KNOWN_REGEX_UNSPECIFIED";
171
- case KnownRegex.KNOWN_REGEX_HTTP_HEADER_NAME:
172
- return "KNOWN_REGEX_HTTP_HEADER_NAME";
173
- case KnownRegex.KNOWN_REGEX_HTTP_HEADER_VALUE:
174
- return "KNOWN_REGEX_HTTP_HEADER_VALUE";
175
- case KnownRegex.UNRECOGNIZED:
176
- default:
177
- return "UNRECOGNIZED";
178
- }
179
- }
180
119
  function createBaseRule() {
181
120
  return { id: "", message: "", expression: "" };
182
121
  }
@@ -229,26 +168,6 @@ export const Rule = {
229
168
  }
230
169
  return message;
231
170
  },
232
- fromJSON(object) {
233
- return {
234
- id: isSet(object.id) ? globalThis.String(object.id) : "",
235
- message: isSet(object.message) ? globalThis.String(object.message) : "",
236
- expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
237
- };
238
- },
239
- toJSON(message) {
240
- const obj = {};
241
- if (message.id !== undefined && message.id !== "") {
242
- obj.id = message.id;
243
- }
244
- if (message.message !== undefined && message.message !== "") {
245
- obj.message = message.message;
246
- }
247
- if (message.expression !== undefined && message.expression !== "") {
248
- obj.expression = message.expression;
249
- }
250
- return obj;
251
- },
252
171
  create(base) {
253
172
  return Rule.fromPartial(base ?? {});
254
173
  },
@@ -312,28 +231,6 @@ export const MessageRules = {
312
231
  }
313
232
  return message;
314
233
  },
315
- fromJSON(object) {
316
- return {
317
- celExpression: globalThis.Array.isArray(object?.celExpression)
318
- ? object.celExpression.map((e) => globalThis.String(e))
319
- : [],
320
- cel: globalThis.Array.isArray(object?.cel) ? object.cel.map((e) => Rule.fromJSON(e)) : [],
321
- oneof: globalThis.Array.isArray(object?.oneof) ? object.oneof.map((e) => MessageOneofRule.fromJSON(e)) : [],
322
- };
323
- },
324
- toJSON(message) {
325
- const obj = {};
326
- if (message.celExpression?.length) {
327
- obj.celExpression = message.celExpression;
328
- }
329
- if (message.cel?.length) {
330
- obj.cel = message.cel.map((e) => Rule.toJSON(e));
331
- }
332
- if (message.oneof?.length) {
333
- obj.oneof = message.oneof.map((e) => MessageOneofRule.toJSON(e));
334
- }
335
- return obj;
336
- },
337
234
  create(base) {
338
235
  return MessageRules.fromPartial(base ?? {});
339
236
  },
@@ -387,22 +284,6 @@ export const MessageOneofRule = {
387
284
  }
388
285
  return message;
389
286
  },
390
- fromJSON(object) {
391
- return {
392
- fields: globalThis.Array.isArray(object?.fields) ? object.fields.map((e) => globalThis.String(e)) : [],
393
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
394
- };
395
- },
396
- toJSON(message) {
397
- const obj = {};
398
- if (message.fields?.length) {
399
- obj.fields = message.fields;
400
- }
401
- if (message.required !== undefined && message.required !== false) {
402
- obj.required = message.required;
403
- }
404
- return obj;
405
- },
406
287
  create(base) {
407
288
  return MessageOneofRule.fromPartial(base ?? {});
408
289
  },
@@ -445,16 +326,6 @@ export const OneofRules = {
445
326
  }
446
327
  return message;
447
328
  },
448
- fromJSON(object) {
449
- return { required: isSet(object.required) ? globalThis.Boolean(object.required) : false };
450
- },
451
- toJSON(message) {
452
- const obj = {};
453
- if (message.required !== undefined && message.required !== false) {
454
- obj.required = message.required;
455
- }
456
- return obj;
457
- },
458
329
  create(base) {
459
330
  return OneofRules.fromPartial(base ?? {});
460
331
  },
@@ -773,120 +644,6 @@ export const FieldRules = {
773
644
  }
774
645
  return message;
775
646
  },
776
- fromJSON(object) {
777
- return {
778
- celExpression: globalThis.Array.isArray(object?.celExpression)
779
- ? object.celExpression.map((e) => globalThis.String(e))
780
- : [],
781
- cel: globalThis.Array.isArray(object?.cel) ? object.cel.map((e) => Rule.fromJSON(e)) : [],
782
- required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
783
- ignore: isSet(object.ignore) ? ignoreFromJSON(object.ignore) : 0,
784
- float: isSet(object.float) ? FloatRules.fromJSON(object.float) : undefined,
785
- double: isSet(object.double) ? DoubleRules.fromJSON(object.double) : undefined,
786
- int32: isSet(object.int32) ? Int32Rules.fromJSON(object.int32) : undefined,
787
- int64: isSet(object.int64) ? Int64Rules.fromJSON(object.int64) : undefined,
788
- uint32: isSet(object.uint32) ? UInt32Rules.fromJSON(object.uint32) : undefined,
789
- uint64: isSet(object.uint64) ? UInt64Rules.fromJSON(object.uint64) : undefined,
790
- sint32: isSet(object.sint32) ? SInt32Rules.fromJSON(object.sint32) : undefined,
791
- sint64: isSet(object.sint64) ? SInt64Rules.fromJSON(object.sint64) : undefined,
792
- fixed32: isSet(object.fixed32) ? Fixed32Rules.fromJSON(object.fixed32) : undefined,
793
- fixed64: isSet(object.fixed64) ? Fixed64Rules.fromJSON(object.fixed64) : undefined,
794
- sfixed32: isSet(object.sfixed32) ? SFixed32Rules.fromJSON(object.sfixed32) : undefined,
795
- sfixed64: isSet(object.sfixed64) ? SFixed64Rules.fromJSON(object.sfixed64) : undefined,
796
- bool: isSet(object.bool) ? BoolRules.fromJSON(object.bool) : undefined,
797
- string: isSet(object.string) ? StringRules.fromJSON(object.string) : undefined,
798
- bytes: isSet(object.bytes) ? BytesRules.fromJSON(object.bytes) : undefined,
799
- enum: isSet(object.enum) ? EnumRules.fromJSON(object.enum) : undefined,
800
- repeated: isSet(object.repeated) ? RepeatedRules.fromJSON(object.repeated) : undefined,
801
- map: isSet(object.map) ? MapRules.fromJSON(object.map) : undefined,
802
- any: isSet(object.any) ? AnyRules.fromJSON(object.any) : undefined,
803
- duration: isSet(object.duration) ? DurationRules.fromJSON(object.duration) : undefined,
804
- fieldMask: isSet(object.fieldMask) ? FieldMaskRules.fromJSON(object.fieldMask) : undefined,
805
- timestamp: isSet(object.timestamp) ? TimestampRules.fromJSON(object.timestamp) : undefined,
806
- };
807
- },
808
- toJSON(message) {
809
- const obj = {};
810
- if (message.celExpression?.length) {
811
- obj.celExpression = message.celExpression;
812
- }
813
- if (message.cel?.length) {
814
- obj.cel = message.cel.map((e) => Rule.toJSON(e));
815
- }
816
- if (message.required !== undefined && message.required !== false) {
817
- obj.required = message.required;
818
- }
819
- if (message.ignore !== undefined && message.ignore !== 0) {
820
- obj.ignore = ignoreToJSON(message.ignore);
821
- }
822
- if (message.float !== undefined) {
823
- obj.float = FloatRules.toJSON(message.float);
824
- }
825
- if (message.double !== undefined) {
826
- obj.double = DoubleRules.toJSON(message.double);
827
- }
828
- if (message.int32 !== undefined) {
829
- obj.int32 = Int32Rules.toJSON(message.int32);
830
- }
831
- if (message.int64 !== undefined) {
832
- obj.int64 = Int64Rules.toJSON(message.int64);
833
- }
834
- if (message.uint32 !== undefined) {
835
- obj.uint32 = UInt32Rules.toJSON(message.uint32);
836
- }
837
- if (message.uint64 !== undefined) {
838
- obj.uint64 = UInt64Rules.toJSON(message.uint64);
839
- }
840
- if (message.sint32 !== undefined) {
841
- obj.sint32 = SInt32Rules.toJSON(message.sint32);
842
- }
843
- if (message.sint64 !== undefined) {
844
- obj.sint64 = SInt64Rules.toJSON(message.sint64);
845
- }
846
- if (message.fixed32 !== undefined) {
847
- obj.fixed32 = Fixed32Rules.toJSON(message.fixed32);
848
- }
849
- if (message.fixed64 !== undefined) {
850
- obj.fixed64 = Fixed64Rules.toJSON(message.fixed64);
851
- }
852
- if (message.sfixed32 !== undefined) {
853
- obj.sfixed32 = SFixed32Rules.toJSON(message.sfixed32);
854
- }
855
- if (message.sfixed64 !== undefined) {
856
- obj.sfixed64 = SFixed64Rules.toJSON(message.sfixed64);
857
- }
858
- if (message.bool !== undefined) {
859
- obj.bool = BoolRules.toJSON(message.bool);
860
- }
861
- if (message.string !== undefined) {
862
- obj.string = StringRules.toJSON(message.string);
863
- }
864
- if (message.bytes !== undefined) {
865
- obj.bytes = BytesRules.toJSON(message.bytes);
866
- }
867
- if (message.enum !== undefined) {
868
- obj.enum = EnumRules.toJSON(message.enum);
869
- }
870
- if (message.repeated !== undefined) {
871
- obj.repeated = RepeatedRules.toJSON(message.repeated);
872
- }
873
- if (message.map !== undefined) {
874
- obj.map = MapRules.toJSON(message.map);
875
- }
876
- if (message.any !== undefined) {
877
- obj.any = AnyRules.toJSON(message.any);
878
- }
879
- if (message.duration !== undefined) {
880
- obj.duration = DurationRules.toJSON(message.duration);
881
- }
882
- if (message.fieldMask !== undefined) {
883
- obj.fieldMask = FieldMaskRules.toJSON(message.fieldMask);
884
- }
885
- if (message.timestamp !== undefined) {
886
- obj.timestamp = TimestampRules.toJSON(message.timestamp);
887
- }
888
- return obj;
889
- },
890
647
  create(base) {
891
648
  return FieldRules.fromPartial(base ?? {});
892
649
  },
@@ -989,16 +746,6 @@ export const PredefinedRules = {
989
746
  }
990
747
  return message;
991
748
  },
992
- fromJSON(object) {
993
- return { cel: globalThis.Array.isArray(object?.cel) ? object.cel.map((e) => Rule.fromJSON(e)) : [] };
994
- },
995
- toJSON(message) {
996
- const obj = {};
997
- if (message.cel?.length) {
998
- obj.cel = message.cel.map((e) => Rule.toJSON(e));
999
- }
1000
- return obj;
1001
- },
1002
749
  create(base) {
1003
750
  return PredefinedRules.fromPartial(base ?? {});
1004
751
  },
@@ -1157,50 +904,6 @@ export const FloatRules = {
1157
904
  }
1158
905
  return message;
1159
906
  },
1160
- fromJSON(object) {
1161
- return {
1162
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
1163
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
1164
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
1165
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
1166
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
1167
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
1168
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
1169
- finite: isSet(object.finite) ? globalThis.Boolean(object.finite) : false,
1170
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
1171
- };
1172
- },
1173
- toJSON(message) {
1174
- const obj = {};
1175
- if (message.const !== undefined && message.const !== 0) {
1176
- obj.const = message.const;
1177
- }
1178
- if (message.lt !== undefined) {
1179
- obj.lt = message.lt;
1180
- }
1181
- if (message.lte !== undefined) {
1182
- obj.lte = message.lte;
1183
- }
1184
- if (message.gt !== undefined) {
1185
- obj.gt = message.gt;
1186
- }
1187
- if (message.gte !== undefined) {
1188
- obj.gte = message.gte;
1189
- }
1190
- if (message.in?.length) {
1191
- obj.in = message.in;
1192
- }
1193
- if (message.notIn?.length) {
1194
- obj.notIn = message.notIn;
1195
- }
1196
- if (message.finite !== undefined && message.finite !== false) {
1197
- obj.finite = message.finite;
1198
- }
1199
- if (message.example?.length) {
1200
- obj.example = message.example;
1201
- }
1202
- return obj;
1203
- },
1204
907
  create(base) {
1205
908
  return FloatRules.fromPartial(base ?? {});
1206
909
  },
@@ -1367,50 +1070,6 @@ export const DoubleRules = {
1367
1070
  }
1368
1071
  return message;
1369
1072
  },
1370
- fromJSON(object) {
1371
- return {
1372
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
1373
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
1374
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
1375
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
1376
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
1377
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
1378
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
1379
- finite: isSet(object.finite) ? globalThis.Boolean(object.finite) : false,
1380
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
1381
- };
1382
- },
1383
- toJSON(message) {
1384
- const obj = {};
1385
- if (message.const !== undefined && message.const !== 0) {
1386
- obj.const = message.const;
1387
- }
1388
- if (message.lt !== undefined) {
1389
- obj.lt = message.lt;
1390
- }
1391
- if (message.lte !== undefined) {
1392
- obj.lte = message.lte;
1393
- }
1394
- if (message.gt !== undefined) {
1395
- obj.gt = message.gt;
1396
- }
1397
- if (message.gte !== undefined) {
1398
- obj.gte = message.gte;
1399
- }
1400
- if (message.in?.length) {
1401
- obj.in = message.in;
1402
- }
1403
- if (message.notIn?.length) {
1404
- obj.notIn = message.notIn;
1405
- }
1406
- if (message.finite !== undefined && message.finite !== false) {
1407
- obj.finite = message.finite;
1408
- }
1409
- if (message.example?.length) {
1410
- obj.example = message.example;
1411
- }
1412
- return obj;
1413
- },
1414
1073
  create(base) {
1415
1074
  return DoubleRules.fromPartial(base ?? {});
1416
1075
  },
@@ -1557,46 +1216,6 @@ export const Int32Rules = {
1557
1216
  }
1558
1217
  return message;
1559
1218
  },
1560
- fromJSON(object) {
1561
- return {
1562
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
1563
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
1564
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
1565
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
1566
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
1567
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
1568
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
1569
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
1570
- };
1571
- },
1572
- toJSON(message) {
1573
- const obj = {};
1574
- if (message.const !== undefined && message.const !== 0) {
1575
- obj.const = Math.round(message.const);
1576
- }
1577
- if (message.lt !== undefined) {
1578
- obj.lt = Math.round(message.lt);
1579
- }
1580
- if (message.lte !== undefined) {
1581
- obj.lte = Math.round(message.lte);
1582
- }
1583
- if (message.gt !== undefined) {
1584
- obj.gt = Math.round(message.gt);
1585
- }
1586
- if (message.gte !== undefined) {
1587
- obj.gte = Math.round(message.gte);
1588
- }
1589
- if (message.in?.length) {
1590
- obj.in = message.in.map((e) => Math.round(e));
1591
- }
1592
- if (message.notIn?.length) {
1593
- obj.notIn = message.notIn.map((e) => Math.round(e));
1594
- }
1595
- if (message.example?.length) {
1596
- obj.example = message.example.map((e) => Math.round(e));
1597
- }
1598
- return obj;
1599
- },
1600
1219
  create(base) {
1601
1220
  return Int32Rules.fromPartial(base ?? {});
1602
1221
  },
@@ -1751,46 +1370,6 @@ export const Int64Rules = {
1751
1370
  }
1752
1371
  return message;
1753
1372
  },
1754
- fromJSON(object) {
1755
- return {
1756
- const: isSet(object.const) ? Long.fromValue(object.const) : Long.ZERO,
1757
- lt: isSet(object.lt) ? Long.fromValue(object.lt) : undefined,
1758
- lte: isSet(object.lte) ? Long.fromValue(object.lte) : undefined,
1759
- gt: isSet(object.gt) ? Long.fromValue(object.gt) : undefined,
1760
- gte: isSet(object.gte) ? Long.fromValue(object.gte) : undefined,
1761
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Long.fromValue(e)) : [],
1762
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Long.fromValue(e)) : [],
1763
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Long.fromValue(e)) : [],
1764
- };
1765
- },
1766
- toJSON(message) {
1767
- const obj = {};
1768
- if (message.const !== undefined && !message.const.equals(Long.ZERO)) {
1769
- obj.const = (message.const || Long.ZERO).toString();
1770
- }
1771
- if (message.lt !== undefined) {
1772
- obj.lt = (message.lt || Long.ZERO).toString();
1773
- }
1774
- if (message.lte !== undefined) {
1775
- obj.lte = (message.lte || Long.ZERO).toString();
1776
- }
1777
- if (message.gt !== undefined) {
1778
- obj.gt = (message.gt || Long.ZERO).toString();
1779
- }
1780
- if (message.gte !== undefined) {
1781
- obj.gte = (message.gte || Long.ZERO).toString();
1782
- }
1783
- if (message.in?.length) {
1784
- obj.in = message.in.map((e) => (e || Long.ZERO).toString());
1785
- }
1786
- if (message.notIn?.length) {
1787
- obj.notIn = message.notIn.map((e) => (e || Long.ZERO).toString());
1788
- }
1789
- if (message.example?.length) {
1790
- obj.example = message.example.map((e) => (e || Long.ZERO).toString());
1791
- }
1792
- return obj;
1793
- },
1794
1373
  create(base) {
1795
1374
  return Int64Rules.fromPartial(base ?? {});
1796
1375
  },
@@ -1936,46 +1515,6 @@ export const UInt32Rules = {
1936
1515
  }
1937
1516
  return message;
1938
1517
  },
1939
- fromJSON(object) {
1940
- return {
1941
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
1942
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
1943
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
1944
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
1945
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
1946
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
1947
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
1948
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
1949
- };
1950
- },
1951
- toJSON(message) {
1952
- const obj = {};
1953
- if (message.const !== undefined && message.const !== 0) {
1954
- obj.const = Math.round(message.const);
1955
- }
1956
- if (message.lt !== undefined) {
1957
- obj.lt = Math.round(message.lt);
1958
- }
1959
- if (message.lte !== undefined) {
1960
- obj.lte = Math.round(message.lte);
1961
- }
1962
- if (message.gt !== undefined) {
1963
- obj.gt = Math.round(message.gt);
1964
- }
1965
- if (message.gte !== undefined) {
1966
- obj.gte = Math.round(message.gte);
1967
- }
1968
- if (message.in?.length) {
1969
- obj.in = message.in.map((e) => Math.round(e));
1970
- }
1971
- if (message.notIn?.length) {
1972
- obj.notIn = message.notIn.map((e) => Math.round(e));
1973
- }
1974
- if (message.example?.length) {
1975
- obj.example = message.example.map((e) => Math.round(e));
1976
- }
1977
- return obj;
1978
- },
1979
1518
  create(base) {
1980
1519
  return UInt32Rules.fromPartial(base ?? {});
1981
1520
  },
@@ -2130,46 +1669,6 @@ export const UInt64Rules = {
2130
1669
  }
2131
1670
  return message;
2132
1671
  },
2133
- fromJSON(object) {
2134
- return {
2135
- const: isSet(object.const) ? Long.fromValue(object.const) : Long.UZERO,
2136
- lt: isSet(object.lt) ? Long.fromValue(object.lt) : undefined,
2137
- lte: isSet(object.lte) ? Long.fromValue(object.lte) : undefined,
2138
- gt: isSet(object.gt) ? Long.fromValue(object.gt) : undefined,
2139
- gte: isSet(object.gte) ? Long.fromValue(object.gte) : undefined,
2140
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Long.fromValue(e)) : [],
2141
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Long.fromValue(e)) : [],
2142
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Long.fromValue(e)) : [],
2143
- };
2144
- },
2145
- toJSON(message) {
2146
- const obj = {};
2147
- if (message.const !== undefined && !message.const.equals(Long.UZERO)) {
2148
- obj.const = (message.const || Long.UZERO).toString();
2149
- }
2150
- if (message.lt !== undefined) {
2151
- obj.lt = (message.lt || Long.UZERO).toString();
2152
- }
2153
- if (message.lte !== undefined) {
2154
- obj.lte = (message.lte || Long.UZERO).toString();
2155
- }
2156
- if (message.gt !== undefined) {
2157
- obj.gt = (message.gt || Long.UZERO).toString();
2158
- }
2159
- if (message.gte !== undefined) {
2160
- obj.gte = (message.gte || Long.UZERO).toString();
2161
- }
2162
- if (message.in?.length) {
2163
- obj.in = message.in.map((e) => (e || Long.UZERO).toString());
2164
- }
2165
- if (message.notIn?.length) {
2166
- obj.notIn = message.notIn.map((e) => (e || Long.UZERO).toString());
2167
- }
2168
- if (message.example?.length) {
2169
- obj.example = message.example.map((e) => (e || Long.UZERO).toString());
2170
- }
2171
- return obj;
2172
- },
2173
1672
  create(base) {
2174
1673
  return UInt64Rules.fromPartial(base ?? {});
2175
1674
  },
@@ -2315,46 +1814,6 @@ export const SInt32Rules = {
2315
1814
  }
2316
1815
  return message;
2317
1816
  },
2318
- fromJSON(object) {
2319
- return {
2320
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
2321
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
2322
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
2323
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
2324
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
2325
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
2326
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
2327
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
2328
- };
2329
- },
2330
- toJSON(message) {
2331
- const obj = {};
2332
- if (message.const !== undefined && message.const !== 0) {
2333
- obj.const = Math.round(message.const);
2334
- }
2335
- if (message.lt !== undefined) {
2336
- obj.lt = Math.round(message.lt);
2337
- }
2338
- if (message.lte !== undefined) {
2339
- obj.lte = Math.round(message.lte);
2340
- }
2341
- if (message.gt !== undefined) {
2342
- obj.gt = Math.round(message.gt);
2343
- }
2344
- if (message.gte !== undefined) {
2345
- obj.gte = Math.round(message.gte);
2346
- }
2347
- if (message.in?.length) {
2348
- obj.in = message.in.map((e) => Math.round(e));
2349
- }
2350
- if (message.notIn?.length) {
2351
- obj.notIn = message.notIn.map((e) => Math.round(e));
2352
- }
2353
- if (message.example?.length) {
2354
- obj.example = message.example.map((e) => Math.round(e));
2355
- }
2356
- return obj;
2357
- },
2358
1817
  create(base) {
2359
1818
  return SInt32Rules.fromPartial(base ?? {});
2360
1819
  },
@@ -2509,46 +1968,6 @@ export const SInt64Rules = {
2509
1968
  }
2510
1969
  return message;
2511
1970
  },
2512
- fromJSON(object) {
2513
- return {
2514
- const: isSet(object.const) ? Long.fromValue(object.const) : Long.ZERO,
2515
- lt: isSet(object.lt) ? Long.fromValue(object.lt) : undefined,
2516
- lte: isSet(object.lte) ? Long.fromValue(object.lte) : undefined,
2517
- gt: isSet(object.gt) ? Long.fromValue(object.gt) : undefined,
2518
- gte: isSet(object.gte) ? Long.fromValue(object.gte) : undefined,
2519
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Long.fromValue(e)) : [],
2520
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Long.fromValue(e)) : [],
2521
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Long.fromValue(e)) : [],
2522
- };
2523
- },
2524
- toJSON(message) {
2525
- const obj = {};
2526
- if (message.const !== undefined && !message.const.equals(Long.ZERO)) {
2527
- obj.const = (message.const || Long.ZERO).toString();
2528
- }
2529
- if (message.lt !== undefined) {
2530
- obj.lt = (message.lt || Long.ZERO).toString();
2531
- }
2532
- if (message.lte !== undefined) {
2533
- obj.lte = (message.lte || Long.ZERO).toString();
2534
- }
2535
- if (message.gt !== undefined) {
2536
- obj.gt = (message.gt || Long.ZERO).toString();
2537
- }
2538
- if (message.gte !== undefined) {
2539
- obj.gte = (message.gte || Long.ZERO).toString();
2540
- }
2541
- if (message.in?.length) {
2542
- obj.in = message.in.map((e) => (e || Long.ZERO).toString());
2543
- }
2544
- if (message.notIn?.length) {
2545
- obj.notIn = message.notIn.map((e) => (e || Long.ZERO).toString());
2546
- }
2547
- if (message.example?.length) {
2548
- obj.example = message.example.map((e) => (e || Long.ZERO).toString());
2549
- }
2550
- return obj;
2551
- },
2552
1971
  create(base) {
2553
1972
  return SInt64Rules.fromPartial(base ?? {});
2554
1973
  },
@@ -2694,46 +2113,6 @@ export const Fixed32Rules = {
2694
2113
  }
2695
2114
  return message;
2696
2115
  },
2697
- fromJSON(object) {
2698
- return {
2699
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
2700
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
2701
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
2702
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
2703
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
2704
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
2705
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
2706
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
2707
- };
2708
- },
2709
- toJSON(message) {
2710
- const obj = {};
2711
- if (message.const !== undefined && message.const !== 0) {
2712
- obj.const = Math.round(message.const);
2713
- }
2714
- if (message.lt !== undefined) {
2715
- obj.lt = Math.round(message.lt);
2716
- }
2717
- if (message.lte !== undefined) {
2718
- obj.lte = Math.round(message.lte);
2719
- }
2720
- if (message.gt !== undefined) {
2721
- obj.gt = Math.round(message.gt);
2722
- }
2723
- if (message.gte !== undefined) {
2724
- obj.gte = Math.round(message.gte);
2725
- }
2726
- if (message.in?.length) {
2727
- obj.in = message.in.map((e) => Math.round(e));
2728
- }
2729
- if (message.notIn?.length) {
2730
- obj.notIn = message.notIn.map((e) => Math.round(e));
2731
- }
2732
- if (message.example?.length) {
2733
- obj.example = message.example.map((e) => Math.round(e));
2734
- }
2735
- return obj;
2736
- },
2737
2116
  create(base) {
2738
2117
  return Fixed32Rules.fromPartial(base ?? {});
2739
2118
  },
@@ -2888,46 +2267,6 @@ export const Fixed64Rules = {
2888
2267
  }
2889
2268
  return message;
2890
2269
  },
2891
- fromJSON(object) {
2892
- return {
2893
- const: isSet(object.const) ? Long.fromValue(object.const) : Long.UZERO,
2894
- lt: isSet(object.lt) ? Long.fromValue(object.lt) : undefined,
2895
- lte: isSet(object.lte) ? Long.fromValue(object.lte) : undefined,
2896
- gt: isSet(object.gt) ? Long.fromValue(object.gt) : undefined,
2897
- gte: isSet(object.gte) ? Long.fromValue(object.gte) : undefined,
2898
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Long.fromValue(e)) : [],
2899
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Long.fromValue(e)) : [],
2900
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Long.fromValue(e)) : [],
2901
- };
2902
- },
2903
- toJSON(message) {
2904
- const obj = {};
2905
- if (message.const !== undefined && !message.const.equals(Long.UZERO)) {
2906
- obj.const = (message.const || Long.UZERO).toString();
2907
- }
2908
- if (message.lt !== undefined) {
2909
- obj.lt = (message.lt || Long.UZERO).toString();
2910
- }
2911
- if (message.lte !== undefined) {
2912
- obj.lte = (message.lte || Long.UZERO).toString();
2913
- }
2914
- if (message.gt !== undefined) {
2915
- obj.gt = (message.gt || Long.UZERO).toString();
2916
- }
2917
- if (message.gte !== undefined) {
2918
- obj.gte = (message.gte || Long.UZERO).toString();
2919
- }
2920
- if (message.in?.length) {
2921
- obj.in = message.in.map((e) => (e || Long.UZERO).toString());
2922
- }
2923
- if (message.notIn?.length) {
2924
- obj.notIn = message.notIn.map((e) => (e || Long.UZERO).toString());
2925
- }
2926
- if (message.example?.length) {
2927
- obj.example = message.example.map((e) => (e || Long.UZERO).toString());
2928
- }
2929
- return obj;
2930
- },
2931
2270
  create(base) {
2932
2271
  return Fixed64Rules.fromPartial(base ?? {});
2933
2272
  },
@@ -3073,46 +2412,6 @@ export const SFixed32Rules = {
3073
2412
  }
3074
2413
  return message;
3075
2414
  },
3076
- fromJSON(object) {
3077
- return {
3078
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
3079
- lt: isSet(object.lt) ? globalThis.Number(object.lt) : undefined,
3080
- lte: isSet(object.lte) ? globalThis.Number(object.lte) : undefined,
3081
- gt: isSet(object.gt) ? globalThis.Number(object.gt) : undefined,
3082
- gte: isSet(object.gte) ? globalThis.Number(object.gte) : undefined,
3083
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
3084
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
3085
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
3086
- };
3087
- },
3088
- toJSON(message) {
3089
- const obj = {};
3090
- if (message.const !== undefined && message.const !== 0) {
3091
- obj.const = Math.round(message.const);
3092
- }
3093
- if (message.lt !== undefined) {
3094
- obj.lt = Math.round(message.lt);
3095
- }
3096
- if (message.lte !== undefined) {
3097
- obj.lte = Math.round(message.lte);
3098
- }
3099
- if (message.gt !== undefined) {
3100
- obj.gt = Math.round(message.gt);
3101
- }
3102
- if (message.gte !== undefined) {
3103
- obj.gte = Math.round(message.gte);
3104
- }
3105
- if (message.in?.length) {
3106
- obj.in = message.in.map((e) => Math.round(e));
3107
- }
3108
- if (message.notIn?.length) {
3109
- obj.notIn = message.notIn.map((e) => Math.round(e));
3110
- }
3111
- if (message.example?.length) {
3112
- obj.example = message.example.map((e) => Math.round(e));
3113
- }
3114
- return obj;
3115
- },
3116
2415
  create(base) {
3117
2416
  return SFixed32Rules.fromPartial(base ?? {});
3118
2417
  },
@@ -3267,46 +2566,6 @@ export const SFixed64Rules = {
3267
2566
  }
3268
2567
  return message;
3269
2568
  },
3270
- fromJSON(object) {
3271
- return {
3272
- const: isSet(object.const) ? Long.fromValue(object.const) : Long.ZERO,
3273
- lt: isSet(object.lt) ? Long.fromValue(object.lt) : undefined,
3274
- lte: isSet(object.lte) ? Long.fromValue(object.lte) : undefined,
3275
- gt: isSet(object.gt) ? Long.fromValue(object.gt) : undefined,
3276
- gte: isSet(object.gte) ? Long.fromValue(object.gte) : undefined,
3277
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Long.fromValue(e)) : [],
3278
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Long.fromValue(e)) : [],
3279
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Long.fromValue(e)) : [],
3280
- };
3281
- },
3282
- toJSON(message) {
3283
- const obj = {};
3284
- if (message.const !== undefined && !message.const.equals(Long.ZERO)) {
3285
- obj.const = (message.const || Long.ZERO).toString();
3286
- }
3287
- if (message.lt !== undefined) {
3288
- obj.lt = (message.lt || Long.ZERO).toString();
3289
- }
3290
- if (message.lte !== undefined) {
3291
- obj.lte = (message.lte || Long.ZERO).toString();
3292
- }
3293
- if (message.gt !== undefined) {
3294
- obj.gt = (message.gt || Long.ZERO).toString();
3295
- }
3296
- if (message.gte !== undefined) {
3297
- obj.gte = (message.gte || Long.ZERO).toString();
3298
- }
3299
- if (message.in?.length) {
3300
- obj.in = message.in.map((e) => (e || Long.ZERO).toString());
3301
- }
3302
- if (message.notIn?.length) {
3303
- obj.notIn = message.notIn.map((e) => (e || Long.ZERO).toString());
3304
- }
3305
- if (message.example?.length) {
3306
- obj.example = message.example.map((e) => (e || Long.ZERO).toString());
3307
- }
3308
- return obj;
3309
- },
3310
2569
  create(base) {
3311
2570
  return SFixed64Rules.fromPartial(base ?? {});
3312
2571
  },
@@ -3374,22 +2633,6 @@ export const BoolRules = {
3374
2633
  }
3375
2634
  return message;
3376
2635
  },
3377
- fromJSON(object) {
3378
- return {
3379
- const: isSet(object.const) ? globalThis.Boolean(object.const) : false,
3380
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Boolean(e)) : [],
3381
- };
3382
- },
3383
- toJSON(message) {
3384
- const obj = {};
3385
- if (message.const !== undefined && message.const !== false) {
3386
- obj.const = message.const;
3387
- }
3388
- if (message.example?.length) {
3389
- obj.example = message.example;
3390
- }
3391
- return obj;
3392
- },
3393
2636
  create(base) {
3394
2637
  return BoolRules.fromPartial(base ?? {});
3395
2638
  },
@@ -3808,154 +3051,6 @@ export const StringRules = {
3808
3051
  }
3809
3052
  return message;
3810
3053
  },
3811
- fromJSON(object) {
3812
- return {
3813
- const: isSet(object.const) ? globalThis.String(object.const) : "",
3814
- len: isSet(object.len) ? Long.fromValue(object.len) : Long.UZERO,
3815
- minLen: isSet(object.minLen) ? Long.fromValue(object.minLen) : Long.UZERO,
3816
- maxLen: isSet(object.maxLen) ? Long.fromValue(object.maxLen) : Long.UZERO,
3817
- lenBytes: isSet(object.lenBytes) ? Long.fromValue(object.lenBytes) : Long.UZERO,
3818
- minBytes: isSet(object.minBytes) ? Long.fromValue(object.minBytes) : Long.UZERO,
3819
- maxBytes: isSet(object.maxBytes) ? Long.fromValue(object.maxBytes) : Long.UZERO,
3820
- pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
3821
- prefix: isSet(object.prefix) ? globalThis.String(object.prefix) : "",
3822
- suffix: isSet(object.suffix) ? globalThis.String(object.suffix) : "",
3823
- contains: isSet(object.contains) ? globalThis.String(object.contains) : "",
3824
- notContains: isSet(object.notContains) ? globalThis.String(object.notContains) : "",
3825
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.String(e)) : [],
3826
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.String(e)) : [],
3827
- email: isSet(object.email) ? globalThis.Boolean(object.email) : undefined,
3828
- hostname: isSet(object.hostname) ? globalThis.Boolean(object.hostname) : undefined,
3829
- ip: isSet(object.ip) ? globalThis.Boolean(object.ip) : undefined,
3830
- ipv4: isSet(object.ipv4) ? globalThis.Boolean(object.ipv4) : undefined,
3831
- ipv6: isSet(object.ipv6) ? globalThis.Boolean(object.ipv6) : undefined,
3832
- uri: isSet(object.uri) ? globalThis.Boolean(object.uri) : undefined,
3833
- uriRef: isSet(object.uriRef) ? globalThis.Boolean(object.uriRef) : undefined,
3834
- address: isSet(object.address) ? globalThis.Boolean(object.address) : undefined,
3835
- uuid: isSet(object.uuid) ? globalThis.Boolean(object.uuid) : undefined,
3836
- tuuid: isSet(object.tuuid) ? globalThis.Boolean(object.tuuid) : undefined,
3837
- ipWithPrefixlen: isSet(object.ipWithPrefixlen) ? globalThis.Boolean(object.ipWithPrefixlen) : undefined,
3838
- ipv4WithPrefixlen: isSet(object.ipv4WithPrefixlen) ? globalThis.Boolean(object.ipv4WithPrefixlen) : undefined,
3839
- ipv6WithPrefixlen: isSet(object.ipv6WithPrefixlen) ? globalThis.Boolean(object.ipv6WithPrefixlen) : undefined,
3840
- ipPrefix: isSet(object.ipPrefix) ? globalThis.Boolean(object.ipPrefix) : undefined,
3841
- ipv4Prefix: isSet(object.ipv4Prefix) ? globalThis.Boolean(object.ipv4Prefix) : undefined,
3842
- ipv6Prefix: isSet(object.ipv6Prefix) ? globalThis.Boolean(object.ipv6Prefix) : undefined,
3843
- hostAndPort: isSet(object.hostAndPort) ? globalThis.Boolean(object.hostAndPort) : undefined,
3844
- ulid: isSet(object.ulid) ? globalThis.Boolean(object.ulid) : undefined,
3845
- wellKnownRegex: isSet(object.wellKnownRegex) ? knownRegexFromJSON(object.wellKnownRegex) : undefined,
3846
- strict: isSet(object.strict) ? globalThis.Boolean(object.strict) : false,
3847
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.String(e)) : [],
3848
- };
3849
- },
3850
- toJSON(message) {
3851
- const obj = {};
3852
- if (message.const !== undefined && message.const !== "") {
3853
- obj.const = message.const;
3854
- }
3855
- if (message.len !== undefined && !message.len.equals(Long.UZERO)) {
3856
- obj.len = (message.len || Long.UZERO).toString();
3857
- }
3858
- if (message.minLen !== undefined && !message.minLen.equals(Long.UZERO)) {
3859
- obj.minLen = (message.minLen || Long.UZERO).toString();
3860
- }
3861
- if (message.maxLen !== undefined && !message.maxLen.equals(Long.UZERO)) {
3862
- obj.maxLen = (message.maxLen || Long.UZERO).toString();
3863
- }
3864
- if (message.lenBytes !== undefined && !message.lenBytes.equals(Long.UZERO)) {
3865
- obj.lenBytes = (message.lenBytes || Long.UZERO).toString();
3866
- }
3867
- if (message.minBytes !== undefined && !message.minBytes.equals(Long.UZERO)) {
3868
- obj.minBytes = (message.minBytes || Long.UZERO).toString();
3869
- }
3870
- if (message.maxBytes !== undefined && !message.maxBytes.equals(Long.UZERO)) {
3871
- obj.maxBytes = (message.maxBytes || Long.UZERO).toString();
3872
- }
3873
- if (message.pattern !== undefined && message.pattern !== "") {
3874
- obj.pattern = message.pattern;
3875
- }
3876
- if (message.prefix !== undefined && message.prefix !== "") {
3877
- obj.prefix = message.prefix;
3878
- }
3879
- if (message.suffix !== undefined && message.suffix !== "") {
3880
- obj.suffix = message.suffix;
3881
- }
3882
- if (message.contains !== undefined && message.contains !== "") {
3883
- obj.contains = message.contains;
3884
- }
3885
- if (message.notContains !== undefined && message.notContains !== "") {
3886
- obj.notContains = message.notContains;
3887
- }
3888
- if (message.in?.length) {
3889
- obj.in = message.in;
3890
- }
3891
- if (message.notIn?.length) {
3892
- obj.notIn = message.notIn;
3893
- }
3894
- if (message.email !== undefined) {
3895
- obj.email = message.email;
3896
- }
3897
- if (message.hostname !== undefined) {
3898
- obj.hostname = message.hostname;
3899
- }
3900
- if (message.ip !== undefined) {
3901
- obj.ip = message.ip;
3902
- }
3903
- if (message.ipv4 !== undefined) {
3904
- obj.ipv4 = message.ipv4;
3905
- }
3906
- if (message.ipv6 !== undefined) {
3907
- obj.ipv6 = message.ipv6;
3908
- }
3909
- if (message.uri !== undefined) {
3910
- obj.uri = message.uri;
3911
- }
3912
- if (message.uriRef !== undefined) {
3913
- obj.uriRef = message.uriRef;
3914
- }
3915
- if (message.address !== undefined) {
3916
- obj.address = message.address;
3917
- }
3918
- if (message.uuid !== undefined) {
3919
- obj.uuid = message.uuid;
3920
- }
3921
- if (message.tuuid !== undefined) {
3922
- obj.tuuid = message.tuuid;
3923
- }
3924
- if (message.ipWithPrefixlen !== undefined) {
3925
- obj.ipWithPrefixlen = message.ipWithPrefixlen;
3926
- }
3927
- if (message.ipv4WithPrefixlen !== undefined) {
3928
- obj.ipv4WithPrefixlen = message.ipv4WithPrefixlen;
3929
- }
3930
- if (message.ipv6WithPrefixlen !== undefined) {
3931
- obj.ipv6WithPrefixlen = message.ipv6WithPrefixlen;
3932
- }
3933
- if (message.ipPrefix !== undefined) {
3934
- obj.ipPrefix = message.ipPrefix;
3935
- }
3936
- if (message.ipv4Prefix !== undefined) {
3937
- obj.ipv4Prefix = message.ipv4Prefix;
3938
- }
3939
- if (message.ipv6Prefix !== undefined) {
3940
- obj.ipv6Prefix = message.ipv6Prefix;
3941
- }
3942
- if (message.hostAndPort !== undefined) {
3943
- obj.hostAndPort = message.hostAndPort;
3944
- }
3945
- if (message.ulid !== undefined) {
3946
- obj.ulid = message.ulid;
3947
- }
3948
- if (message.wellKnownRegex !== undefined) {
3949
- obj.wellKnownRegex = knownRegexToJSON(message.wellKnownRegex);
3950
- }
3951
- if (message.strict !== undefined && message.strict !== false) {
3952
- obj.strict = message.strict;
3953
- }
3954
- if (message.example?.length) {
3955
- obj.example = message.example;
3956
- }
3957
- return obj;
3958
- },
3959
3054
  create(base) {
3960
3055
  return StringRules.fromPartial(base ?? {});
3961
3056
  },
@@ -4197,74 +3292,6 @@ export const BytesRules = {
4197
3292
  }
4198
3293
  return message;
4199
3294
  },
4200
- fromJSON(object) {
4201
- return {
4202
- const: isSet(object.const) ? bytesFromBase64(object.const) : new Uint8Array(0),
4203
- len: isSet(object.len) ? Long.fromValue(object.len) : Long.UZERO,
4204
- minLen: isSet(object.minLen) ? Long.fromValue(object.minLen) : Long.UZERO,
4205
- maxLen: isSet(object.maxLen) ? Long.fromValue(object.maxLen) : Long.UZERO,
4206
- pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
4207
- prefix: isSet(object.prefix) ? bytesFromBase64(object.prefix) : new Uint8Array(0),
4208
- suffix: isSet(object.suffix) ? bytesFromBase64(object.suffix) : new Uint8Array(0),
4209
- contains: isSet(object.contains) ? bytesFromBase64(object.contains) : new Uint8Array(0),
4210
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => bytesFromBase64(e)) : [],
4211
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => bytesFromBase64(e)) : [],
4212
- ip: isSet(object.ip) ? globalThis.Boolean(object.ip) : undefined,
4213
- ipv4: isSet(object.ipv4) ? globalThis.Boolean(object.ipv4) : undefined,
4214
- ipv6: isSet(object.ipv6) ? globalThis.Boolean(object.ipv6) : undefined,
4215
- uuid: isSet(object.uuid) ? globalThis.Boolean(object.uuid) : undefined,
4216
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => bytesFromBase64(e)) : [],
4217
- };
4218
- },
4219
- toJSON(message) {
4220
- const obj = {};
4221
- if (message.const !== undefined && message.const.length !== 0) {
4222
- obj.const = base64FromBytes(message.const);
4223
- }
4224
- if (message.len !== undefined && !message.len.equals(Long.UZERO)) {
4225
- obj.len = (message.len || Long.UZERO).toString();
4226
- }
4227
- if (message.minLen !== undefined && !message.minLen.equals(Long.UZERO)) {
4228
- obj.minLen = (message.minLen || Long.UZERO).toString();
4229
- }
4230
- if (message.maxLen !== undefined && !message.maxLen.equals(Long.UZERO)) {
4231
- obj.maxLen = (message.maxLen || Long.UZERO).toString();
4232
- }
4233
- if (message.pattern !== undefined && message.pattern !== "") {
4234
- obj.pattern = message.pattern;
4235
- }
4236
- if (message.prefix !== undefined && message.prefix.length !== 0) {
4237
- obj.prefix = base64FromBytes(message.prefix);
4238
- }
4239
- if (message.suffix !== undefined && message.suffix.length !== 0) {
4240
- obj.suffix = base64FromBytes(message.suffix);
4241
- }
4242
- if (message.contains !== undefined && message.contains.length !== 0) {
4243
- obj.contains = base64FromBytes(message.contains);
4244
- }
4245
- if (message.in?.length) {
4246
- obj.in = message.in.map((e) => base64FromBytes(e));
4247
- }
4248
- if (message.notIn?.length) {
4249
- obj.notIn = message.notIn.map((e) => base64FromBytes(e));
4250
- }
4251
- if (message.ip !== undefined) {
4252
- obj.ip = message.ip;
4253
- }
4254
- if (message.ipv4 !== undefined) {
4255
- obj.ipv4 = message.ipv4;
4256
- }
4257
- if (message.ipv6 !== undefined) {
4258
- obj.ipv6 = message.ipv6;
4259
- }
4260
- if (message.uuid !== undefined) {
4261
- obj.uuid = message.uuid;
4262
- }
4263
- if (message.example?.length) {
4264
- obj.example = message.example.map((e) => base64FromBytes(e));
4265
- }
4266
- return obj;
4267
- },
4268
3295
  create(base) {
4269
3296
  return BytesRules.fromPartial(base ?? {});
4270
3297
  },
@@ -4391,34 +3418,6 @@ export const EnumRules = {
4391
3418
  }
4392
3419
  return message;
4393
3420
  },
4394
- fromJSON(object) {
4395
- return {
4396
- const: isSet(object.const) ? globalThis.Number(object.const) : 0,
4397
- definedOnly: isSet(object.definedOnly) ? globalThis.Boolean(object.definedOnly) : false,
4398
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.Number(e)) : [],
4399
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.Number(e)) : [],
4400
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => globalThis.Number(e)) : [],
4401
- };
4402
- },
4403
- toJSON(message) {
4404
- const obj = {};
4405
- if (message.const !== undefined && message.const !== 0) {
4406
- obj.const = Math.round(message.const);
4407
- }
4408
- if (message.definedOnly !== undefined && message.definedOnly !== false) {
4409
- obj.definedOnly = message.definedOnly;
4410
- }
4411
- if (message.in?.length) {
4412
- obj.in = message.in.map((e) => Math.round(e));
4413
- }
4414
- if (message.notIn?.length) {
4415
- obj.notIn = message.notIn.map((e) => Math.round(e));
4416
- }
4417
- if (message.example?.length) {
4418
- obj.example = message.example.map((e) => Math.round(e));
4419
- }
4420
- return obj;
4421
- },
4422
3421
  create(base) {
4423
3422
  return EnumRules.fromPartial(base ?? {});
4424
3423
  },
@@ -4494,30 +3493,6 @@ export const RepeatedRules = {
4494
3493
  }
4495
3494
  return message;
4496
3495
  },
4497
- fromJSON(object) {
4498
- return {
4499
- minItems: isSet(object.minItems) ? Long.fromValue(object.minItems) : Long.UZERO,
4500
- maxItems: isSet(object.maxItems) ? Long.fromValue(object.maxItems) : Long.UZERO,
4501
- unique: isSet(object.unique) ? globalThis.Boolean(object.unique) : false,
4502
- items: isSet(object.items) ? FieldRules.fromJSON(object.items) : undefined,
4503
- };
4504
- },
4505
- toJSON(message) {
4506
- const obj = {};
4507
- if (message.minItems !== undefined && !message.minItems.equals(Long.UZERO)) {
4508
- obj.minItems = (message.minItems || Long.UZERO).toString();
4509
- }
4510
- if (message.maxItems !== undefined && !message.maxItems.equals(Long.UZERO)) {
4511
- obj.maxItems = (message.maxItems || Long.UZERO).toString();
4512
- }
4513
- if (message.unique !== undefined && message.unique !== false) {
4514
- obj.unique = message.unique;
4515
- }
4516
- if (message.items !== undefined) {
4517
- obj.items = FieldRules.toJSON(message.items);
4518
- }
4519
- return obj;
4520
- },
4521
3496
  create(base) {
4522
3497
  return RepeatedRules.fromPartial(base ?? {});
4523
3498
  },
@@ -4598,30 +3573,6 @@ export const MapRules = {
4598
3573
  }
4599
3574
  return message;
4600
3575
  },
4601
- fromJSON(object) {
4602
- return {
4603
- minPairs: isSet(object.minPairs) ? Long.fromValue(object.minPairs) : Long.UZERO,
4604
- maxPairs: isSet(object.maxPairs) ? Long.fromValue(object.maxPairs) : Long.UZERO,
4605
- keys: isSet(object.keys) ? FieldRules.fromJSON(object.keys) : undefined,
4606
- values: isSet(object.values) ? FieldRules.fromJSON(object.values) : undefined,
4607
- };
4608
- },
4609
- toJSON(message) {
4610
- const obj = {};
4611
- if (message.minPairs !== undefined && !message.minPairs.equals(Long.UZERO)) {
4612
- obj.minPairs = (message.minPairs || Long.UZERO).toString();
4613
- }
4614
- if (message.maxPairs !== undefined && !message.maxPairs.equals(Long.UZERO)) {
4615
- obj.maxPairs = (message.maxPairs || Long.UZERO).toString();
4616
- }
4617
- if (message.keys !== undefined) {
4618
- obj.keys = FieldRules.toJSON(message.keys);
4619
- }
4620
- if (message.values !== undefined) {
4621
- obj.values = FieldRules.toJSON(message.values);
4622
- }
4623
- return obj;
4624
- },
4625
3576
  create(base) {
4626
3577
  return MapRules.fromPartial(base ?? {});
4627
3578
  },
@@ -4684,22 +3635,6 @@ export const AnyRules = {
4684
3635
  }
4685
3636
  return message;
4686
3637
  },
4687
- fromJSON(object) {
4688
- return {
4689
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.String(e)) : [],
4690
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.String(e)) : [],
4691
- };
4692
- },
4693
- toJSON(message) {
4694
- const obj = {};
4695
- if (message.in?.length) {
4696
- obj.in = message.in;
4697
- }
4698
- if (message.notIn?.length) {
4699
- obj.notIn = message.notIn;
4700
- }
4701
- return obj;
4702
- },
4703
3638
  create(base) {
4704
3639
  return AnyRules.fromPartial(base ?? {});
4705
3640
  },
@@ -4821,46 +3756,6 @@ export const DurationRules = {
4821
3756
  }
4822
3757
  return message;
4823
3758
  },
4824
- fromJSON(object) {
4825
- return {
4826
- const: isSet(object.const) ? Duration.fromJSON(object.const) : undefined,
4827
- lt: isSet(object.lt) ? Duration.fromJSON(object.lt) : undefined,
4828
- lte: isSet(object.lte) ? Duration.fromJSON(object.lte) : undefined,
4829
- gt: isSet(object.gt) ? Duration.fromJSON(object.gt) : undefined,
4830
- gte: isSet(object.gte) ? Duration.fromJSON(object.gte) : undefined,
4831
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => Duration.fromJSON(e)) : [],
4832
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => Duration.fromJSON(e)) : [],
4833
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => Duration.fromJSON(e)) : [],
4834
- };
4835
- },
4836
- toJSON(message) {
4837
- const obj = {};
4838
- if (message.const !== undefined) {
4839
- obj.const = Duration.toJSON(message.const);
4840
- }
4841
- if (message.lt !== undefined) {
4842
- obj.lt = Duration.toJSON(message.lt);
4843
- }
4844
- if (message.lte !== undefined) {
4845
- obj.lte = Duration.toJSON(message.lte);
4846
- }
4847
- if (message.gt !== undefined) {
4848
- obj.gt = Duration.toJSON(message.gt);
4849
- }
4850
- if (message.gte !== undefined) {
4851
- obj.gte = Duration.toJSON(message.gte);
4852
- }
4853
- if (message.in?.length) {
4854
- obj.in = message.in.map((e) => Duration.toJSON(e));
4855
- }
4856
- if (message.notIn?.length) {
4857
- obj.notIn = message.notIn.map((e) => Duration.toJSON(e));
4858
- }
4859
- if (message.example?.length) {
4860
- obj.example = message.example.map((e) => Duration.toJSON(e));
4861
- }
4862
- return obj;
4863
- },
4864
3759
  create(base) {
4865
3760
  return DurationRules.fromPartial(base ?? {});
4866
3761
  },
@@ -4941,32 +3836,6 @@ export const FieldMaskRules = {
4941
3836
  }
4942
3837
  return message;
4943
3838
  },
4944
- fromJSON(object) {
4945
- return {
4946
- const: isSet(object.const) ? FieldMask.unwrap(FieldMask.fromJSON(object.const)) : undefined,
4947
- in: globalThis.Array.isArray(object?.in) ? object.in.map((e) => globalThis.String(e)) : [],
4948
- notIn: globalThis.Array.isArray(object?.notIn) ? object.notIn.map((e) => globalThis.String(e)) : [],
4949
- example: globalThis.Array.isArray(object?.example)
4950
- ? object.example.map((e) => FieldMask.unwrap(FieldMask.fromJSON(e)))
4951
- : [],
4952
- };
4953
- },
4954
- toJSON(message) {
4955
- const obj = {};
4956
- if (message.const !== undefined) {
4957
- obj.const = FieldMask.toJSON(FieldMask.wrap(message.const));
4958
- }
4959
- if (message.in?.length) {
4960
- obj.in = message.in;
4961
- }
4962
- if (message.notIn?.length) {
4963
- obj.notIn = message.notIn;
4964
- }
4965
- if (message.example?.length) {
4966
- obj.example = message.example.map((e) => FieldMask.toJSON(FieldMask.wrap(e)));
4967
- }
4968
- return obj;
4969
- },
4970
3839
  create(base) {
4971
3840
  return FieldMaskRules.fromPartial(base ?? {});
4972
3841
  },
@@ -5101,50 +3970,6 @@ export const TimestampRules = {
5101
3970
  }
5102
3971
  return message;
5103
3972
  },
5104
- fromJSON(object) {
5105
- return {
5106
- const: isSet(object.const) ? fromJsonTimestamp(object.const) : undefined,
5107
- lt: isSet(object.lt) ? fromJsonTimestamp(object.lt) : undefined,
5108
- lte: isSet(object.lte) ? fromJsonTimestamp(object.lte) : undefined,
5109
- ltNow: isSet(object.ltNow) ? globalThis.Boolean(object.ltNow) : undefined,
5110
- gt: isSet(object.gt) ? fromJsonTimestamp(object.gt) : undefined,
5111
- gte: isSet(object.gte) ? fromJsonTimestamp(object.gte) : undefined,
5112
- gtNow: isSet(object.gtNow) ? globalThis.Boolean(object.gtNow) : undefined,
5113
- within: isSet(object.within) ? Duration.fromJSON(object.within) : undefined,
5114
- example: globalThis.Array.isArray(object?.example) ? object.example.map((e) => fromJsonTimestamp(e)) : [],
5115
- };
5116
- },
5117
- toJSON(message) {
5118
- const obj = {};
5119
- if (message.const !== undefined) {
5120
- obj.const = message.const.toISOString();
5121
- }
5122
- if (message.lt !== undefined) {
5123
- obj.lt = message.lt.toISOString();
5124
- }
5125
- if (message.lte !== undefined) {
5126
- obj.lte = message.lte.toISOString();
5127
- }
5128
- if (message.ltNow !== undefined) {
5129
- obj.ltNow = message.ltNow;
5130
- }
5131
- if (message.gt !== undefined) {
5132
- obj.gt = message.gt.toISOString();
5133
- }
5134
- if (message.gte !== undefined) {
5135
- obj.gte = message.gte.toISOString();
5136
- }
5137
- if (message.gtNow !== undefined) {
5138
- obj.gtNow = message.gtNow;
5139
- }
5140
- if (message.within !== undefined) {
5141
- obj.within = Duration.toJSON(message.within);
5142
- }
5143
- if (message.example?.length) {
5144
- obj.example = message.example.map((e) => e.toISOString());
5145
- }
5146
- return obj;
5147
- },
5148
3973
  create(base) {
5149
3974
  return TimestampRules.fromPartial(base ?? {});
5150
3975
  },
@@ -5196,20 +4021,6 @@ export const Violations = {
5196
4021
  }
5197
4022
  return message;
5198
4023
  },
5199
- fromJSON(object) {
5200
- return {
5201
- violations: globalThis.Array.isArray(object?.violations)
5202
- ? object.violations.map((e) => Violation.fromJSON(e))
5203
- : [],
5204
- };
5205
- },
5206
- toJSON(message) {
5207
- const obj = {};
5208
- if (message.violations?.length) {
5209
- obj.violations = message.violations.map((e) => Violation.toJSON(e));
5210
- }
5211
- return obj;
5212
- },
5213
4024
  create(base) {
5214
4025
  return Violations.fromPartial(base ?? {});
5215
4026
  },
@@ -5291,34 +4102,6 @@ export const Violation = {
5291
4102
  }
5292
4103
  return message;
5293
4104
  },
5294
- fromJSON(object) {
5295
- return {
5296
- field: isSet(object.field) ? FieldPath.fromJSON(object.field) : undefined,
5297
- rule: isSet(object.rule) ? FieldPath.fromJSON(object.rule) : undefined,
5298
- ruleId: isSet(object.ruleId) ? globalThis.String(object.ruleId) : "",
5299
- message: isSet(object.message) ? globalThis.String(object.message) : "",
5300
- forKey: isSet(object.forKey) ? globalThis.Boolean(object.forKey) : false,
5301
- };
5302
- },
5303
- toJSON(message) {
5304
- const obj = {};
5305
- if (message.field !== undefined) {
5306
- obj.field = FieldPath.toJSON(message.field);
5307
- }
5308
- if (message.rule !== undefined) {
5309
- obj.rule = FieldPath.toJSON(message.rule);
5310
- }
5311
- if (message.ruleId !== undefined && message.ruleId !== "") {
5312
- obj.ruleId = message.ruleId;
5313
- }
5314
- if (message.message !== undefined && message.message !== "") {
5315
- obj.message = message.message;
5316
- }
5317
- if (message.forKey !== undefined && message.forKey !== false) {
5318
- obj.forKey = message.forKey;
5319
- }
5320
- return obj;
5321
- },
5322
4105
  create(base) {
5323
4106
  return Violation.fromPartial(base ?? {});
5324
4107
  },
@@ -5366,20 +4149,6 @@ export const FieldPath = {
5366
4149
  }
5367
4150
  return message;
5368
4151
  },
5369
- fromJSON(object) {
5370
- return {
5371
- elements: globalThis.Array.isArray(object?.elements)
5372
- ? object.elements.map((e) => FieldPathElement.fromJSON(e))
5373
- : [],
5374
- };
5375
- },
5376
- toJSON(message) {
5377
- const obj = {};
5378
- if (message.elements?.length) {
5379
- obj.elements = message.elements.map((e) => FieldPathElement.toJSON(e));
5380
- }
5381
- return obj;
5382
- },
5383
4152
  create(base) {
5384
4153
  return FieldPath.fromPartial(base ?? {});
5385
4154
  },
@@ -5522,54 +4291,6 @@ export const FieldPathElement = {
5522
4291
  }
5523
4292
  return message;
5524
4293
  },
5525
- fromJSON(object) {
5526
- return {
5527
- fieldNumber: isSet(object.fieldNumber) ? globalThis.Number(object.fieldNumber) : 0,
5528
- fieldName: isSet(object.fieldName) ? globalThis.String(object.fieldName) : "",
5529
- fieldType: isSet(object.fieldType) ? fieldDescriptorProto_TypeFromJSON(object.fieldType) : 1,
5530
- keyType: isSet(object.keyType) ? fieldDescriptorProto_TypeFromJSON(object.keyType) : 1,
5531
- valueType: isSet(object.valueType) ? fieldDescriptorProto_TypeFromJSON(object.valueType) : 1,
5532
- index: isSet(object.index) ? Long.fromValue(object.index) : undefined,
5533
- boolKey: isSet(object.boolKey) ? globalThis.Boolean(object.boolKey) : undefined,
5534
- intKey: isSet(object.intKey) ? Long.fromValue(object.intKey) : undefined,
5535
- uintKey: isSet(object.uintKey) ? Long.fromValue(object.uintKey) : undefined,
5536
- stringKey: isSet(object.stringKey) ? globalThis.String(object.stringKey) : undefined,
5537
- };
5538
- },
5539
- toJSON(message) {
5540
- const obj = {};
5541
- if (message.fieldNumber !== undefined && message.fieldNumber !== 0) {
5542
- obj.fieldNumber = Math.round(message.fieldNumber);
5543
- }
5544
- if (message.fieldName !== undefined && message.fieldName !== "") {
5545
- obj.fieldName = message.fieldName;
5546
- }
5547
- if (message.fieldType !== undefined && message.fieldType !== 1) {
5548
- obj.fieldType = fieldDescriptorProto_TypeToJSON(message.fieldType);
5549
- }
5550
- if (message.keyType !== undefined && message.keyType !== 1) {
5551
- obj.keyType = fieldDescriptorProto_TypeToJSON(message.keyType);
5552
- }
5553
- if (message.valueType !== undefined && message.valueType !== 1) {
5554
- obj.valueType = fieldDescriptorProto_TypeToJSON(message.valueType);
5555
- }
5556
- if (message.index !== undefined) {
5557
- obj.index = (message.index || Long.UZERO).toString();
5558
- }
5559
- if (message.boolKey !== undefined) {
5560
- obj.boolKey = message.boolKey;
5561
- }
5562
- if (message.intKey !== undefined) {
5563
- obj.intKey = (message.intKey || Long.ZERO).toString();
5564
- }
5565
- if (message.uintKey !== undefined) {
5566
- obj.uintKey = (message.uintKey || Long.UZERO).toString();
5567
- }
5568
- if (message.stringKey !== undefined) {
5569
- obj.stringKey = message.stringKey;
5570
- }
5571
- return obj;
5572
- },
5573
4294
  create(base) {
5574
4295
  return FieldPathElement.fromPartial(base ?? {});
5575
4296
  },
@@ -5592,31 +4313,6 @@ export const FieldPathElement = {
5592
4313
  return message;
5593
4314
  },
5594
4315
  };
5595
- function bytesFromBase64(b64) {
5596
- if (globalThis.Buffer) {
5597
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
5598
- }
5599
- else {
5600
- const bin = globalThis.atob(b64);
5601
- const arr = new Uint8Array(bin.length);
5602
- for (let i = 0; i < bin.length; ++i) {
5603
- arr[i] = bin.charCodeAt(i);
5604
- }
5605
- return arr;
5606
- }
5607
- }
5608
- function base64FromBytes(arr) {
5609
- if (globalThis.Buffer) {
5610
- return globalThis.Buffer.from(arr).toString("base64");
5611
- }
5612
- else {
5613
- const bin = [];
5614
- arr.forEach((byte) => {
5615
- bin.push(globalThis.String.fromCharCode(byte));
5616
- });
5617
- return globalThis.btoa(bin.join(""));
5618
- }
5619
- }
5620
4316
  function toTimestamp(date) {
5621
4317
  const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
5622
4318
  const nanos = (date.getTime() % 1_000) * 1_000_000;
@@ -5627,20 +4323,6 @@ function fromTimestamp(t) {
5627
4323
  millis += (t.nanos || 0) / 1_000_000;
5628
4324
  return new globalThis.Date(millis);
5629
4325
  }
5630
- function fromJsonTimestamp(o) {
5631
- if (o instanceof globalThis.Date) {
5632
- return o;
5633
- }
5634
- else if (typeof o === "string") {
5635
- return new globalThis.Date(o);
5636
- }
5637
- else {
5638
- return fromTimestamp(Timestamp.fromJSON(o));
5639
- }
5640
- }
5641
4326
  function numberToLong(number) {
5642
4327
  return Long.fromNumber(number);
5643
4328
  }
5644
- function isSet(value) {
5645
- return value !== null && value !== undefined;
5646
- }