@quba/sensitive-data-protection 0.2.2 → 0.2.3

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.
package/dist/index.mjs CHANGED
@@ -305,6 +305,140 @@ function ActionToJSONTyped(value, ignoreDiscriminator) {
305
305
  return value;
306
306
  }
307
307
 
308
+ //#endregion
309
+ //#region src/models/ModelEntity.ts
310
+ /**
311
+ * @export
312
+ */
313
+ const ModelEntityTypeEnum = { model: "model" };
314
+ /**
315
+ * Check if a given object implements the ModelEntity interface.
316
+ */
317
+ function instanceOfModelEntity(value) {
318
+ if (!("type" in value) || value["type"] === void 0) return false;
319
+ if (!("value" in value) || value["value"] === void 0) return false;
320
+ return true;
321
+ }
322
+ function ModelEntityFromJSON(json) {
323
+ return ModelEntityFromJSONTyped(json, false);
324
+ }
325
+ function ModelEntityFromJSONTyped(json, ignoreDiscriminator) {
326
+ if (json == null) return json;
327
+ return {
328
+ "type": json["type"],
329
+ "value": json["value"],
330
+ "threshold": json["threshold"] == null ? void 0 : json["threshold"]
331
+ };
332
+ }
333
+ function ModelEntityToJSON(json) {
334
+ return ModelEntityToJSONTyped(json, false);
335
+ }
336
+ function ModelEntityToJSONTyped(value, ignoreDiscriminator = false) {
337
+ if (value == null) return value;
338
+ return {
339
+ "type": value["type"],
340
+ "value": value["value"],
341
+ "threshold": value["threshold"]
342
+ };
343
+ }
344
+
345
+ //#endregion
346
+ //#region src/models/RegexEntity.ts
347
+ /**
348
+ * @export
349
+ */
350
+ const RegexEntityTypeEnum = { regex: "regex" };
351
+ /**
352
+ * Check if a given object implements the RegexEntity interface.
353
+ */
354
+ function instanceOfRegexEntity(value) {
355
+ if (!("type" in value) || value["type"] === void 0) return false;
356
+ if (!("value" in value) || value["value"] === void 0) return false;
357
+ return true;
358
+ }
359
+ function RegexEntityFromJSON(json) {
360
+ return RegexEntityFromJSONTyped(json, false);
361
+ }
362
+ function RegexEntityFromJSONTyped(json, ignoreDiscriminator) {
363
+ if (json == null) return json;
364
+ return {
365
+ "type": json["type"],
366
+ "value": json["value"]
367
+ };
368
+ }
369
+ function RegexEntityToJSON(json) {
370
+ return RegexEntityToJSONTyped(json, false);
371
+ }
372
+ function RegexEntityToJSONTyped(value, ignoreDiscriminator = false) {
373
+ if (value == null) return value;
374
+ return {
375
+ "type": value["type"],
376
+ "value": value["value"]
377
+ };
378
+ }
379
+
380
+ //#endregion
381
+ //#region src/models/EntityBody.ts
382
+ function EntityBodyFromJSON(json) {
383
+ return EntityBodyFromJSONTyped(json, false);
384
+ }
385
+ function EntityBodyFromJSONTyped(json, ignoreDiscriminator) {
386
+ if (json == null) return json;
387
+ switch (json["type"]) {
388
+ case "model": return Object.assign({}, ModelEntityFromJSONTyped(json, true), { type: "model" });
389
+ case "regex": return Object.assign({}, RegexEntityFromJSONTyped(json, true), { type: "regex" });
390
+ default: return json;
391
+ }
392
+ }
393
+ function EntityBodyToJSON(json) {
394
+ return EntityBodyToJSONTyped(json, false);
395
+ }
396
+ function EntityBodyToJSONTyped(value, ignoreDiscriminator = false) {
397
+ if (value == null) return value;
398
+ switch (value["type"]) {
399
+ case "model": return Object.assign({}, ModelEntityToJSON(value), { type: "model" });
400
+ case "regex": return Object.assign({}, RegexEntityToJSON(value), { type: "regex" });
401
+ default: return value;
402
+ }
403
+ }
404
+
405
+ //#endregion
406
+ //#region src/models/AllowRule.ts
407
+ /**
408
+ * @export
409
+ */
410
+ const AllowRuleTypeEnum = { allow: "allow" };
411
+ /**
412
+ * Check if a given object implements the AllowRule interface.
413
+ */
414
+ function instanceOfAllowRule(value) {
415
+ if (!("type" in value) || value["type"] === void 0) return false;
416
+ if (!("entities" in value) || value["entities"] === void 0) return false;
417
+ return true;
418
+ }
419
+ function AllowRuleFromJSON(json) {
420
+ return AllowRuleFromJSONTyped(json, false);
421
+ }
422
+ function AllowRuleFromJSONTyped(json, ignoreDiscriminator) {
423
+ if (json == null) return json;
424
+ return {
425
+ "type": json["type"],
426
+ "entities": json["entities"].map(EntityBodyFromJSON),
427
+ "when": json["when"] == null ? void 0 : json["when"]
428
+ };
429
+ }
430
+ function AllowRuleToJSON(json) {
431
+ return AllowRuleToJSONTyped(json, false);
432
+ }
433
+ function AllowRuleToJSONTyped(value, ignoreDiscriminator = false) {
434
+ if (value == null) return value;
435
+ return {
436
+ "type": value["type"],
437
+ "entities": value["entities"].map(EntityBodyToJSON),
438
+ "when": value["when"]
439
+ };
440
+ }
441
+
308
442
  //#endregion
309
443
  //#region src/models/Usage.ts
310
444
  /**
@@ -462,7 +596,8 @@ function FileModelResultFromJSONTyped(json, ignoreDiscriminator) {
462
596
  "score": json["score"],
463
597
  "input": json["input"],
464
598
  "output": json["output"],
465
- "path": json["path"]
599
+ "path": json["path"],
600
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
466
601
  };
467
602
  }
468
603
  function FileModelResultToJSON(json) {
@@ -478,7 +613,8 @@ function FileModelResultToJSONTyped(value, ignoreDiscriminator = false) {
478
613
  "score": value["score"],
479
614
  "input": value["input"],
480
615
  "output": value["output"],
481
- "path": value["path"]
616
+ "path": value["path"],
617
+ "action": ActionToJSON(value["action"])
482
618
  };
483
619
  }
484
620
 
@@ -513,7 +649,8 @@ function FileRegexResultFromJSONTyped(json, ignoreDiscriminator) {
513
649
  "value": json["value"],
514
650
  "input": json["input"],
515
651
  "output": json["output"],
516
- "path": json["path"]
652
+ "path": json["path"],
653
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
517
654
  };
518
655
  }
519
656
  function FileRegexResultToJSON(json) {
@@ -528,7 +665,8 @@ function FileRegexResultToJSONTyped(value, ignoreDiscriminator = false) {
528
665
  "value": value["value"],
529
666
  "input": value["input"],
530
667
  "output": value["output"],
531
- "path": value["path"]
668
+ "path": value["path"],
669
+ "action": ActionToJSON(value["action"])
532
670
  };
533
671
  }
534
672
 
@@ -601,101 +739,6 @@ function AnonymizeFileResponseBodyToJSONTyped(value, ignoreDiscriminator = false
601
739
  };
602
740
  }
603
741
 
604
- //#endregion
605
- //#region src/models/ModelEntity.ts
606
- /**
607
- * @export
608
- */
609
- const ModelEntityTypeEnum = { model: "model" };
610
- /**
611
- * Check if a given object implements the ModelEntity interface.
612
- */
613
- function instanceOfModelEntity(value) {
614
- if (!("type" in value) || value["type"] === void 0) return false;
615
- if (!("value" in value) || value["value"] === void 0) return false;
616
- return true;
617
- }
618
- function ModelEntityFromJSON(json) {
619
- return ModelEntityFromJSONTyped(json, false);
620
- }
621
- function ModelEntityFromJSONTyped(json, ignoreDiscriminator) {
622
- if (json == null) return json;
623
- return {
624
- "type": json["type"],
625
- "value": json["value"]
626
- };
627
- }
628
- function ModelEntityToJSON(json) {
629
- return ModelEntityToJSONTyped(json, false);
630
- }
631
- function ModelEntityToJSONTyped(value, ignoreDiscriminator = false) {
632
- if (value == null) return value;
633
- return {
634
- "type": value["type"],
635
- "value": value["value"]
636
- };
637
- }
638
-
639
- //#endregion
640
- //#region src/models/RegexEntity.ts
641
- /**
642
- * @export
643
- */
644
- const RegexEntityTypeEnum = { regex: "regex" };
645
- /**
646
- * Check if a given object implements the RegexEntity interface.
647
- */
648
- function instanceOfRegexEntity(value) {
649
- if (!("type" in value) || value["type"] === void 0) return false;
650
- if (!("value" in value) || value["value"] === void 0) return false;
651
- return true;
652
- }
653
- function RegexEntityFromJSON(json) {
654
- return RegexEntityFromJSONTyped(json, false);
655
- }
656
- function RegexEntityFromJSONTyped(json, ignoreDiscriminator) {
657
- if (json == null) return json;
658
- return {
659
- "type": json["type"],
660
- "value": json["value"]
661
- };
662
- }
663
- function RegexEntityToJSON(json) {
664
- return RegexEntityToJSONTyped(json, false);
665
- }
666
- function RegexEntityToJSONTyped(value, ignoreDiscriminator = false) {
667
- if (value == null) return value;
668
- return {
669
- "type": value["type"],
670
- "value": value["value"]
671
- };
672
- }
673
-
674
- //#endregion
675
- //#region src/models/EntityBody.ts
676
- function EntityBodyFromJSON(json) {
677
- return EntityBodyFromJSONTyped(json, false);
678
- }
679
- function EntityBodyFromJSONTyped(json, ignoreDiscriminator) {
680
- if (json == null) return json;
681
- switch (json["type"]) {
682
- case "model": return Object.assign({}, ModelEntityFromJSONTyped(json, true), { type: "model" });
683
- case "regex": return Object.assign({}, RegexEntityFromJSONTyped(json, true), { type: "regex" });
684
- default: return json;
685
- }
686
- }
687
- function EntityBodyToJSON(json) {
688
- return EntityBodyToJSONTyped(json, false);
689
- }
690
- function EntityBodyToJSONTyped(value, ignoreDiscriminator = false) {
691
- if (value == null) return value;
692
- switch (value["type"]) {
693
- case "model": return Object.assign({}, ModelEntityToJSON(value), { type: "model" });
694
- case "regex": return Object.assign({}, RegexEntityToJSON(value), { type: "regex" });
695
- default: return value;
696
- }
697
- }
698
-
699
742
  //#endregion
700
743
  //#region src/models/DetectRule.ts
701
744
  /**
@@ -718,7 +761,8 @@ function DetectRuleFromJSONTyped(json, ignoreDiscriminator) {
718
761
  return {
719
762
  "type": json["type"],
720
763
  "entities": json["entities"].map(EntityBodyFromJSON),
721
- "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
764
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
765
+ "when": json["when"] == null ? void 0 : json["when"]
722
766
  };
723
767
  }
724
768
  function DetectRuleToJSON(json) {
@@ -729,7 +773,8 @@ function DetectRuleToJSONTyped(value, ignoreDiscriminator = false) {
729
773
  return {
730
774
  "type": value["type"],
731
775
  "entities": value["entities"].map(EntityBodyToJSON),
732
- "action": ActionToJSON(value["action"])
776
+ "action": ActionToJSON(value["action"]),
777
+ "when": value["when"]
733
778
  };
734
779
  }
735
780
 
@@ -756,6 +801,7 @@ function EncryptRuleFromJSONTyped(json, ignoreDiscriminator) {
756
801
  "type": json["type"],
757
802
  "entities": json["entities"].map(EntityBodyFromJSON),
758
803
  "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
804
+ "when": json["when"] == null ? void 0 : json["when"],
759
805
  "key": json["key"] == null ? void 0 : json["key"]
760
806
  };
761
807
  }
@@ -768,6 +814,7 @@ function EncryptRuleToJSONTyped(value, ignoreDiscriminator = false) {
768
814
  "type": value["type"],
769
815
  "entities": value["entities"].map(EntityBodyToJSON),
770
816
  "action": ActionToJSON(value["action"]),
817
+ "when": value["when"],
771
818
  "key": value["key"]
772
819
  };
773
820
  }
@@ -796,6 +843,7 @@ function HMACRuleFromJSONTyped(json, ignoreDiscriminator) {
796
843
  "type": json["type"],
797
844
  "entities": json["entities"].map(EntityBodyFromJSON),
798
845
  "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
846
+ "when": json["when"] == null ? void 0 : json["when"],
799
847
  "key": json["key"],
800
848
  "length": json["length"] == null ? void 0 : json["length"]
801
849
  };
@@ -809,6 +857,7 @@ function HMACRuleToJSONTyped(value, ignoreDiscriminator = false) {
809
857
  "type": value["type"],
810
858
  "entities": value["entities"].map(EntityBodyToJSON),
811
859
  "action": ActionToJSON(value["action"]),
860
+ "when": value["when"],
812
861
  "key": value["key"],
813
862
  "length": value["length"]
814
863
  };
@@ -837,6 +886,7 @@ function MaskRuleFromJSONTyped(json, ignoreDiscriminator) {
837
886
  "type": json["type"],
838
887
  "entities": json["entities"].map(EntityBodyFromJSON),
839
888
  "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
889
+ "when": json["when"] == null ? void 0 : json["when"],
840
890
  "masking_char": json["masking_char"] == null ? void 0 : json["masking_char"],
841
891
  "chars_to_mask": json["chars_to_mask"] == null ? void 0 : json["chars_to_mask"],
842
892
  "from_end": json["from_end"] == null ? void 0 : json["from_end"]
@@ -851,6 +901,7 @@ function MaskRuleToJSONTyped(value, ignoreDiscriminator = false) {
851
901
  "type": value["type"],
852
902
  "entities": value["entities"].map(EntityBodyToJSON),
853
903
  "action": ActionToJSON(value["action"]),
904
+ "when": value["when"],
854
905
  "masking_char": value["masking_char"],
855
906
  "chars_to_mask": value["chars_to_mask"],
856
907
  "from_end": value["from_end"]
@@ -880,6 +931,7 @@ function PseudonymizeRuleFromJSONTyped(json, ignoreDiscriminator) {
880
931
  "type": json["type"],
881
932
  "entities": json["entities"].map(EntityBodyFromJSON),
882
933
  "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
934
+ "when": json["when"] == null ? void 0 : json["when"],
883
935
  "tag": json["tag"] == null ? void 0 : json["tag"]
884
936
  };
885
937
  }
@@ -892,6 +944,7 @@ function PseudonymizeRuleToJSONTyped(value, ignoreDiscriminator = false) {
892
944
  "type": value["type"],
893
945
  "entities": value["entities"].map(EntityBodyToJSON),
894
946
  "action": ActionToJSON(value["action"]),
947
+ "when": value["when"],
895
948
  "tag": value["tag"]
896
949
  };
897
950
  }
@@ -918,7 +971,8 @@ function RedactRuleFromJSONTyped(json, ignoreDiscriminator) {
918
971
  return {
919
972
  "type": json["type"],
920
973
  "entities": json["entities"].map(EntityBodyFromJSON),
921
- "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
974
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
975
+ "when": json["when"] == null ? void 0 : json["when"]
922
976
  };
923
977
  }
924
978
  function RedactRuleToJSON(json) {
@@ -929,7 +983,8 @@ function RedactRuleToJSONTyped(value, ignoreDiscriminator = false) {
929
983
  return {
930
984
  "type": value["type"],
931
985
  "entities": value["entities"].map(EntityBodyToJSON),
932
- "action": ActionToJSON(value["action"])
986
+ "action": ActionToJSON(value["action"]),
987
+ "when": value["when"]
933
988
  };
934
989
  }
935
990
 
@@ -956,6 +1011,7 @@ function ReplaceRuleFromJSONTyped(json, ignoreDiscriminator) {
956
1011
  "type": json["type"],
957
1012
  "entities": json["entities"].map(EntityBodyFromJSON),
958
1013
  "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
1014
+ "when": json["when"] == null ? void 0 : json["when"],
959
1015
  "replacement": json["replacement"] == null ? void 0 : json["replacement"]
960
1016
  };
961
1017
  }
@@ -968,6 +1024,7 @@ function ReplaceRuleToJSONTyped(value, ignoreDiscriminator = false) {
968
1024
  "type": value["type"],
969
1025
  "entities": value["entities"].map(EntityBodyToJSON),
970
1026
  "action": ActionToJSON(value["action"]),
1027
+ "when": value["when"],
971
1028
  "replacement": value["replacement"]
972
1029
  };
973
1030
  }
@@ -994,7 +1051,8 @@ function SHA256RuleFromJSONTyped(json, ignoreDiscriminator) {
994
1051
  return {
995
1052
  "type": json["type"],
996
1053
  "entities": json["entities"].map(EntityBodyFromJSON),
997
- "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
1054
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
1055
+ "when": json["when"] == null ? void 0 : json["when"]
998
1056
  };
999
1057
  }
1000
1058
  function SHA256RuleToJSON(json) {
@@ -1005,7 +1063,8 @@ function SHA256RuleToJSONTyped(value, ignoreDiscriminator = false) {
1005
1063
  return {
1006
1064
  "type": value["type"],
1007
1065
  "entities": value["entities"].map(EntityBodyToJSON),
1008
- "action": ActionToJSON(value["action"])
1066
+ "action": ActionToJSON(value["action"]),
1067
+ "when": value["when"]
1009
1068
  };
1010
1069
  }
1011
1070
 
@@ -1031,7 +1090,8 @@ function SHA512RuleFromJSONTyped(json, ignoreDiscriminator) {
1031
1090
  return {
1032
1091
  "type": json["type"],
1033
1092
  "entities": json["entities"].map(EntityBodyFromJSON),
1034
- "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"])
1093
+ "action": json["action"] == null ? void 0 : ActionFromJSON(json["action"]),
1094
+ "when": json["when"] == null ? void 0 : json["when"]
1035
1095
  };
1036
1096
  }
1037
1097
  function SHA512RuleToJSON(json) {
@@ -1042,7 +1102,8 @@ function SHA512RuleToJSONTyped(value, ignoreDiscriminator = false) {
1042
1102
  return {
1043
1103
  "type": value["type"],
1044
1104
  "entities": value["entities"].map(EntityBodyToJSON),
1045
- "action": ActionToJSON(value["action"])
1105
+ "action": ActionToJSON(value["action"]),
1106
+ "when": value["when"]
1046
1107
  };
1047
1108
  }
1048
1109
 
@@ -1054,6 +1115,7 @@ function RuleBodyFromJSON(json) {
1054
1115
  function RuleBodyFromJSONTyped(json, ignoreDiscriminator) {
1055
1116
  if (json == null) return json;
1056
1117
  switch (json["type"]) {
1118
+ case "allow": return Object.assign({}, AllowRuleFromJSONTyped(json, true), { type: "allow" });
1057
1119
  case "detect": return Object.assign({}, DetectRuleFromJSONTyped(json, true), { type: "detect" });
1058
1120
  case "encrypt": return Object.assign({}, EncryptRuleFromJSONTyped(json, true), { type: "encrypt" });
1059
1121
  case "hmac": return Object.assign({}, HMACRuleFromJSONTyped(json, true), { type: "hmac" });
@@ -1072,6 +1134,7 @@ function RuleBodyToJSON(json) {
1072
1134
  function RuleBodyToJSONTyped(value, ignoreDiscriminator = false) {
1073
1135
  if (value == null) return value;
1074
1136
  switch (value["type"]) {
1137
+ case "allow": return Object.assign({}, AllowRuleToJSON(value), { type: "allow" });
1075
1138
  case "detect": return Object.assign({}, DetectRuleToJSON(value), { type: "detect" });
1076
1139
  case "encrypt": return Object.assign({}, EncryptRuleToJSON(value), { type: "encrypt" });
1077
1140
  case "hmac": return Object.assign({}, HMACRuleToJSON(value), { type: "hmac" });
@@ -2691,6 +2754,7 @@ function PolicyDocumentRulesInnerFromJSON(json) {
2691
2754
  function PolicyDocumentRulesInnerFromJSONTyped(json, ignoreDiscriminator) {
2692
2755
  if (json == null) return json;
2693
2756
  switch (json["type"]) {
2757
+ case "allow": return Object.assign({}, AllowRuleFromJSONTyped(json, true), { type: "allow" });
2694
2758
  case "detect": return Object.assign({}, DetectRuleFromJSONTyped(json, true), { type: "detect" });
2695
2759
  case "encrypt": return Object.assign({}, EncryptRuleFromJSONTyped(json, true), { type: "encrypt" });
2696
2760
  case "hmac": return Object.assign({}, HMACRuleFromJSONTyped(json, true), { type: "hmac" });
@@ -2709,6 +2773,7 @@ function PolicyDocumentRulesInnerToJSON(json) {
2709
2773
  function PolicyDocumentRulesInnerToJSONTyped(value, ignoreDiscriminator = false) {
2710
2774
  if (value == null) return value;
2711
2775
  switch (value["type"]) {
2776
+ case "allow": return Object.assign({}, AllowRuleToJSON(value), { type: "allow" });
2712
2777
  case "detect": return Object.assign({}, DetectRuleToJSON(value), { type: "detect" });
2713
2778
  case "encrypt": return Object.assign({}, EncryptRuleToJSON(value), { type: "encrypt" });
2714
2779
  case "hmac": return Object.assign({}, HMACRuleToJSON(value), { type: "hmac" });
@@ -2884,7 +2949,8 @@ function FieldErrorPathInnerToJSONTyped(value, ignoreDiscriminator = false) {
2884
2949
  * `limit`); `too_few`/`too_many` items (see `limit`); `out_of_range` (see
2885
2950
  * `min`, `max`); `blank`: only whitespace; `unknown_type` (see `allowed`);
2886
2951
  * `invalid_pattern`: not a regular expression the engine runs;
2887
- * `invalid_key`: not a Fernet key; `labels_over_budget`: the labels leave
2952
+ * `invalid_key`: not a Fernet key; `invalid_condition`: not a `when` the
2953
+ * engine runs; `labels_over_budget`: the labels leave
2888
2954
  * the model too little room for text (see `tokens`, `limit`).
2889
2955
  * @export
2890
2956
  */
@@ -2901,6 +2967,7 @@ const FieldErrorCode = {
2901
2967
  unknown_type: "unknown_type",
2902
2968
  invalid_pattern: "invalid_pattern",
2903
2969
  invalid_key: "invalid_key",
2970
+ invalid_condition: "invalid_condition",
2904
2971
  labels_over_budget: "labels_over_budget"
2905
2972
  };
2906
2973
  function instanceOfFieldErrorCode(value) {
@@ -3682,4 +3749,4 @@ const AnonymizeFileTableHeadersEnum = {
3682
3749
  };
3683
3750
 
3684
3751
  //#endregion
3685
- export { Action, ActionFromJSON, ActionFromJSONTyped, ActionToJSON, ActionToJSONTyped, AnonymizeFileEmbeddedRulesEnum, AnonymizeFileResponseBodyFromJSON, AnonymizeFileResponseBodyFromJSONTyped, AnonymizeFileResponseBodyToJSON, AnonymizeFileResponseBodyToJSONTyped, AnonymizeFileTableHeadersEnum, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AppliedFromJSON, AppliedFromJSONTyped, AppliedToJSON, AppliedToJSONTyped, AtFromJSON, AtFromJSONTyped, AtToJSON, AtToJSONTyped, AttributeSegmentFromJSON, AttributeSegmentFromJSONTyped, AttributeSegmentToJSON, AttributeSegmentToJSONTyped, AttributeSegmentTypeEnum, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, CellKindFromJSON, CellKindFromJSONTyped, CellKindToJSON, CellKindToJSONTyped, CellNoteSegmentFromJSON, CellNoteSegmentFromJSONTyped, CellNoteSegmentToJSON, CellNoteSegmentToJSONTyped, CellNoteSegmentTypeEnum, CellSegmentFromJSON, CellSegmentFromJSONTyped, CellSegmentToJSON, CellSegmentToJSONTyped, CellSegmentTypeEnum, CommentKind, CommentKindFromJSON, CommentKindFromJSONTyped, CommentKindToJSON, CommentKindToJSONTyped, CommentSegmentFromJSON, CommentSegmentFromJSONTyped, CommentSegmentToJSON, CommentSegmentToJSONTyped, CommentSegmentTypeEnum, ComponentSegmentFromJSON, ComponentSegmentFromJSONTyped, ComponentSegmentToJSON, ComponentSegmentToJSONTyped, ComponentSegmentTypeEnum, Configuration, CreatePolicyRequestFromJSON, CreatePolicyRequestFromJSONTyped, CreatePolicyRequestToJSON, CreatePolicyRequestToJSONTyped, DefaultConfig, DetectRuleFromJSON, DetectRuleFromJSONTyped, DetectRuleToJSON, DetectRuleToJSONTyped, DetectRuleTypeEnum, ElementSegmentFromJSON, ElementSegmentFromJSONTyped, ElementSegmentToJSON, ElementSegmentToJSONTyped, ElementSegmentTypeEnum, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, EndnoteSegmentFromJSON, EndnoteSegmentFromJSONTyped, EndnoteSegmentToJSON, EndnoteSegmentToJSONTyped, EndnoteSegmentTypeEnum, EntityBodyFromJSON, EntityBodyFromJSONTyped, EntityBodyToJSON, EntityBodyToJSONTyped, ErrorCode, ErrorCodeFromJSON, ErrorCodeFromJSONTyped, ErrorCodeToJSON, ErrorCodeToJSONTyped, ErrorInfoFromJSON, ErrorInfoFromJSONTyped, ErrorInfoToJSON, ErrorInfoToJSONTyped, FetchError, FieldErrorCode, FieldErrorCodeFromJSON, FieldErrorCodeFromJSONTyped, FieldErrorCodeToJSON, FieldErrorCodeToJSONTyped, FieldErrorFromJSON, FieldErrorFromJSONTyped, FieldErrorPathInnerFromJSON, FieldErrorPathInnerFromJSONTyped, FieldErrorPathInnerToJSON, FieldErrorPathInnerToJSONTyped, FieldErrorToJSON, FieldErrorToJSONTyped, FieldSegmentFromJSON, FieldSegmentFromJSONTyped, FieldSegmentToJSON, FieldSegmentToJSONTyped, FieldSegmentTypeEnum, FileAttributeResultFromJSON, FileAttributeResultFromJSONTyped, FileAttributeResultToJSON, FileAttributeResultToJSONTyped, FileAttributeResultTypeEnum, FileEmbeddedResultFromJSON, FileEmbeddedResultFromJSONTyped, FileEmbeddedResultToJSON, FileEmbeddedResultToJSONTyped, FileEmbeddedResultTypeEnum, FileModelResultFromJSON, FileModelResultFromJSONTyped, FileModelResultToJSON, FileModelResultToJSONTyped, FileModelResultTypeEnum, FileRegexResultFromJSON, FileRegexResultFromJSONTyped, FileRegexResultToJSON, FileRegexResultToJSONTyped, FileRegexResultTypeEnum, FileResultFromJSON, FileResultFromJSONTyped, FileResultToJSON, FileResultToJSONTyped, FootnoteSegmentFromJSON, FootnoteSegmentFromJSONTyped, FootnoteSegmentToJSON, FootnoteSegmentToJSONTyped, FootnoteSegmentTypeEnum, FrameSegmentFromJSON, FrameSegmentFromJSONTyped, FrameSegmentToJSON, FrameSegmentToJSONTyped, FrameSegmentTypeEnum, HMACRuleFromJSON, HMACRuleFromJSONTyped, HMACRuleToJSON, HMACRuleToJSONTyped, HMACRuleTypeEnum, HeaderFooterSegmentFromJSON, HeaderFooterSegmentFromJSONTyped, HeaderFooterSegmentToJSON, HeaderFooterSegmentToJSONTyped, HeaderFooterSegmentTypeEnum, IndexSegmentFromJSON, IndexSegmentFromJSONTyped, IndexSegmentToJSON, IndexSegmentToJSONTyped, IndexSegmentTypeEnum, ItemSegmentFromJSON, ItemSegmentFromJSONTyped, ItemSegmentToJSON, ItemSegmentToJSONTyped, ItemSegmentTypeEnum, JSONApiResponse, KeySegmentFromJSON, KeySegmentFromJSONTyped, KeySegmentToJSON, KeySegmentToJSONTyped, KeySegmentTypeEnum, KindFromJSON, KindFromJSONTyped, KindToJSON, KindToJSONTyped, LineSegmentFromJSON, LineSegmentFromJSONTyped, LineSegmentToJSON, LineSegmentToJSONTyped, LineSegmentTypeEnum, ListPolicies200ResponseFromJSON, ListPolicies200ResponseFromJSONTyped, ListPolicies200ResponseToJSON, ListPolicies200ResponseToJSONTyped, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelErrorFromJSON, ModelErrorFromJSONTyped, ModelErrorToJSON, ModelErrorToJSONTyped, ModelResultFromJSON, ModelResultFromJSONTyped, ModelResultToJSON, ModelResultToJSONTyped, ModelResultTypeEnum, ModelStatusFromJSON, ModelStatusFromJSONTyped, ModelStatusToJSON, ModelStatusToJSONTyped, ModelTypeFromJSON, ModelTypeFromJSONTyped, ModelTypeToJSON, ModelTypeToJSONTyped, ParagraphKindFromJSON, ParagraphKindFromJSONTyped, ParagraphKindToJSON, ParagraphKindToJSONTyped, ParagraphSegmentFromJSON, ParagraphSegmentFromJSONTyped, ParagraphSegmentToJSON, ParagraphSegmentToJSONTyped, ParagraphSegmentTypeEnum, PartSegmentFromJSON, PartSegmentFromJSONTyped, PartSegmentToJSON, PartSegmentToJSONTyped, PartSegmentTypeEnum, PathSegmentFromJSON, PathSegmentFromJSONTyped, PathSegmentToJSON, PathSegmentToJSONTyped, PoliciesApi, PolicyDocumentFromJSON, PolicyDocumentFromJSONTyped, PolicyDocumentRulesInnerFromJSON, PolicyDocumentRulesInnerFromJSONTyped, PolicyDocumentRulesInnerToJSON, PolicyDocumentRulesInnerToJSONTyped, PolicyDocumentSchemaVersionEnum, PolicyDocumentToJSON, PolicyDocumentToJSONTyped, PolicyFromJSON, PolicyFromJSONTyped, PolicySummaryFromJSON, PolicySummaryFromJSONTyped, PolicySummaryToJSON, PolicySummaryToJSONTyped, PolicyToJSON, PolicyToJSONTyped, PropertySegmentFromJSON, PropertySegmentFromJSONTyped, PropertySegmentToJSON, PropertySegmentToJSONTyped, PropertySegmentTypeEnum, PseudonymizeRuleFromJSON, PseudonymizeRuleFromJSONTyped, PseudonymizeRuleToJSON, PseudonymizeRuleToJSONTyped, PseudonymizeRuleTypeEnum, RangeKind, RangeKindFromJSON, RangeKindFromJSONTyped, RangeKindToJSON, RangeKindToJSONTyped, RangeSegmentFromJSON, RangeSegmentFromJSONTyped, RangeSegmentToJSON, RangeSegmentToJSONTyped, RangeSegmentTypeEnum, RedactRuleFromJSON, RedactRuleFromJSONTyped, RedactRuleToJSON, RedactRuleToJSONTyped, RedactRuleTypeEnum, RefusalFromJSON, RefusalFromJSONTyped, RefusalToJSON, RefusalToJSONTyped, RegexEntityFromJSON, RegexEntityFromJSONTyped, RegexEntityToJSON, RegexEntityToJSONTyped, RegexEntityTypeEnum, RegexResultFromJSON, RegexResultFromJSONTyped, RegexResultToJSON, RegexResultToJSONTyped, RegexResultTypeEnum, RegionSegmentFromJSON, RegionSegmentFromJSONTyped, RegionSegmentToJSON, RegionSegmentToJSONTyped, RegionSegmentTypeEnum, ReplaceRuleFromJSON, ReplaceRuleFromJSONTyped, ReplaceRuleToJSON, ReplaceRuleToJSONTyped, ReplaceRuleTypeEnum, RequiredError, ResponseError, RuleBodyFromJSON, RuleBodyFromJSONTyped, RuleBodyToJSON, RuleBodyToJSONTyped, SHA256RuleFromJSON, SHA256RuleFromJSONTyped, SHA256RuleToJSON, SHA256RuleToJSONTyped, SHA256RuleTypeEnum, SHA512RuleFromJSON, SHA512RuleFromJSONTyped, SHA512RuleToJSON, SHA512RuleToJSONTyped, SHA512RuleTypeEnum, ScanRequestBodyFromJSON, ScanRequestBodyFromJSONTyped, ScanRequestBodyToJSON, ScanRequestBodyToJSONTyped, ScanResponseBodyFromJSON, ScanResponseBodyFromJSONTyped, ScanResponseBodyToJSON, ScanResponseBodyToJSONTyped, ScanResultFromJSON, ScanResultFromJSONTyped, ScanResultToJSON, ScanResultToJSONTyped, SegmentSegmentFromJSON, SegmentSegmentFromJSONTyped, SegmentSegmentToJSON, SegmentSegmentToJSONTyped, SegmentSegmentTypeEnum, SensitiveDataProtectionApi, ShapeKindFromJSON, ShapeKindFromJSONTyped, ShapeKindToJSON, ShapeKindToJSONTyped, ShapeSegmentFromJSON, ShapeSegmentFromJSONTyped, ShapeSegmentToJSON, ShapeSegmentToJSONTyped, ShapeSegmentTypeEnum, SheetSegmentFromJSON, SheetSegmentFromJSONTyped, SheetSegmentToJSON, SheetSegmentToJSONTyped, SheetSegmentTypeEnum, SlideSegmentFromJSON, SlideSegmentFromJSONTyped, SlideSegmentToJSON, SlideSegmentToJSONTyped, SlideSegmentTypeEnum, SpeakerNotesSegmentFromJSON, SpeakerNotesSegmentFromJSONTyped, SpeakerNotesSegmentToJSON, SpeakerNotesSegmentToJSONTyped, SpeakerNotesSegmentTypeEnum, TableSegmentFromJSON, TableSegmentFromJSONTyped, TableSegmentToJSON, TableSegmentToJSONTyped, TableSegmentTypeEnum, TagSegmentFromJSON, TagSegmentFromJSONTyped, TagSegmentToJSON, TagSegmentToJSONTyped, TagSegmentTypeEnum, TextApiResponse, TextRangeFromJSON, TextRangeFromJSONTyped, TextRangeToJSON, TextRangeToJSONTyped, TextSegmentFromJSON, TextSegmentFromJSONTyped, TextSegmentToJSON, TextSegmentToJSONTyped, TextSegmentTypeEnum, UpdatePolicyRequestFromJSON, UpdatePolicyRequestFromJSONTyped, UpdatePolicyRequestToJSON, UpdatePolicyRequestToJSONTyped, UsageFromJSON, UsageFromJSONTyped, UsageToJSON, UsageToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAction, instanceOfAnonymizeFileResponseBody, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfAt, instanceOfAttributeSegment, instanceOfCellNoteSegment, instanceOfCellSegment, instanceOfCommentKind, instanceOfCommentSegment, instanceOfComponentSegment, instanceOfCreatePolicyRequest, instanceOfDetectRule, instanceOfElementSegment, instanceOfEncryptRule, instanceOfEndnoteSegment, instanceOfErrorCode, instanceOfErrorInfo, instanceOfFieldError, instanceOfFieldErrorCode, instanceOfFieldErrorPathInner, instanceOfFieldSegment, instanceOfFileAttributeResult, instanceOfFileEmbeddedResult, instanceOfFileModelResult, instanceOfFileRegexResult, instanceOfFootnoteSegment, instanceOfFrameSegment, instanceOfHMACRule, instanceOfHeaderFooterSegment, instanceOfIndexSegment, instanceOfItemSegment, instanceOfKeySegment, instanceOfLineSegment, instanceOfListPolicies200Response, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelError, instanceOfModelResult, instanceOfModelStatus, instanceOfParagraphSegment, instanceOfPartSegment, instanceOfPolicy, instanceOfPolicyDocument, instanceOfPolicySummary, instanceOfPropertySegment, instanceOfPseudonymizeRule, instanceOfRangeKind, instanceOfRangeSegment, instanceOfRedactRule, instanceOfRefusal, instanceOfRegexEntity, instanceOfRegexResult, instanceOfRegionSegment, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfSegmentSegment, instanceOfShapeSegment, instanceOfSheetSegment, instanceOfSlideSegment, instanceOfSpeakerNotesSegment, instanceOfTableSegment, instanceOfTagSegment, instanceOfTextRange, instanceOfTextSegment, instanceOfUpdatePolicyRequest, instanceOfUsage, mapValues, querystring };
3752
+ export { Action, ActionFromJSON, ActionFromJSONTyped, ActionToJSON, ActionToJSONTyped, AllowRuleFromJSON, AllowRuleFromJSONTyped, AllowRuleToJSON, AllowRuleToJSONTyped, AllowRuleTypeEnum, AnonymizeFileEmbeddedRulesEnum, AnonymizeFileResponseBodyFromJSON, AnonymizeFileResponseBodyFromJSONTyped, AnonymizeFileResponseBodyToJSON, AnonymizeFileResponseBodyToJSONTyped, AnonymizeFileTableHeadersEnum, AnonymizeRequestBodyFromJSON, AnonymizeRequestBodyFromJSONTyped, AnonymizeRequestBodyToJSON, AnonymizeRequestBodyToJSONTyped, AnonymizeResponseBodyFromJSON, AnonymizeResponseBodyFromJSONTyped, AnonymizeResponseBodyToJSON, AnonymizeResponseBodyToJSONTyped, AppliedFromJSON, AppliedFromJSONTyped, AppliedToJSON, AppliedToJSONTyped, AtFromJSON, AtFromJSONTyped, AtToJSON, AtToJSONTyped, AttributeSegmentFromJSON, AttributeSegmentFromJSONTyped, AttributeSegmentToJSON, AttributeSegmentToJSONTyped, AttributeSegmentTypeEnum, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, CellKindFromJSON, CellKindFromJSONTyped, CellKindToJSON, CellKindToJSONTyped, CellNoteSegmentFromJSON, CellNoteSegmentFromJSONTyped, CellNoteSegmentToJSON, CellNoteSegmentToJSONTyped, CellNoteSegmentTypeEnum, CellSegmentFromJSON, CellSegmentFromJSONTyped, CellSegmentToJSON, CellSegmentToJSONTyped, CellSegmentTypeEnum, CommentKind, CommentKindFromJSON, CommentKindFromJSONTyped, CommentKindToJSON, CommentKindToJSONTyped, CommentSegmentFromJSON, CommentSegmentFromJSONTyped, CommentSegmentToJSON, CommentSegmentToJSONTyped, CommentSegmentTypeEnum, ComponentSegmentFromJSON, ComponentSegmentFromJSONTyped, ComponentSegmentToJSON, ComponentSegmentToJSONTyped, ComponentSegmentTypeEnum, Configuration, CreatePolicyRequestFromJSON, CreatePolicyRequestFromJSONTyped, CreatePolicyRequestToJSON, CreatePolicyRequestToJSONTyped, DefaultConfig, DetectRuleFromJSON, DetectRuleFromJSONTyped, DetectRuleToJSON, DetectRuleToJSONTyped, DetectRuleTypeEnum, ElementSegmentFromJSON, ElementSegmentFromJSONTyped, ElementSegmentToJSON, ElementSegmentToJSONTyped, ElementSegmentTypeEnum, EncryptRuleFromJSON, EncryptRuleFromJSONTyped, EncryptRuleToJSON, EncryptRuleToJSONTyped, EncryptRuleTypeEnum, EndnoteSegmentFromJSON, EndnoteSegmentFromJSONTyped, EndnoteSegmentToJSON, EndnoteSegmentToJSONTyped, EndnoteSegmentTypeEnum, EntityBodyFromJSON, EntityBodyFromJSONTyped, EntityBodyToJSON, EntityBodyToJSONTyped, ErrorCode, ErrorCodeFromJSON, ErrorCodeFromJSONTyped, ErrorCodeToJSON, ErrorCodeToJSONTyped, ErrorInfoFromJSON, ErrorInfoFromJSONTyped, ErrorInfoToJSON, ErrorInfoToJSONTyped, FetchError, FieldErrorCode, FieldErrorCodeFromJSON, FieldErrorCodeFromJSONTyped, FieldErrorCodeToJSON, FieldErrorCodeToJSONTyped, FieldErrorFromJSON, FieldErrorFromJSONTyped, FieldErrorPathInnerFromJSON, FieldErrorPathInnerFromJSONTyped, FieldErrorPathInnerToJSON, FieldErrorPathInnerToJSONTyped, FieldErrorToJSON, FieldErrorToJSONTyped, FieldSegmentFromJSON, FieldSegmentFromJSONTyped, FieldSegmentToJSON, FieldSegmentToJSONTyped, FieldSegmentTypeEnum, FileAttributeResultFromJSON, FileAttributeResultFromJSONTyped, FileAttributeResultToJSON, FileAttributeResultToJSONTyped, FileAttributeResultTypeEnum, FileEmbeddedResultFromJSON, FileEmbeddedResultFromJSONTyped, FileEmbeddedResultToJSON, FileEmbeddedResultToJSONTyped, FileEmbeddedResultTypeEnum, FileModelResultFromJSON, FileModelResultFromJSONTyped, FileModelResultToJSON, FileModelResultToJSONTyped, FileModelResultTypeEnum, FileRegexResultFromJSON, FileRegexResultFromJSONTyped, FileRegexResultToJSON, FileRegexResultToJSONTyped, FileRegexResultTypeEnum, FileResultFromJSON, FileResultFromJSONTyped, FileResultToJSON, FileResultToJSONTyped, FootnoteSegmentFromJSON, FootnoteSegmentFromJSONTyped, FootnoteSegmentToJSON, FootnoteSegmentToJSONTyped, FootnoteSegmentTypeEnum, FrameSegmentFromJSON, FrameSegmentFromJSONTyped, FrameSegmentToJSON, FrameSegmentToJSONTyped, FrameSegmentTypeEnum, HMACRuleFromJSON, HMACRuleFromJSONTyped, HMACRuleToJSON, HMACRuleToJSONTyped, HMACRuleTypeEnum, HeaderFooterSegmentFromJSON, HeaderFooterSegmentFromJSONTyped, HeaderFooterSegmentToJSON, HeaderFooterSegmentToJSONTyped, HeaderFooterSegmentTypeEnum, IndexSegmentFromJSON, IndexSegmentFromJSONTyped, IndexSegmentToJSON, IndexSegmentToJSONTyped, IndexSegmentTypeEnum, ItemSegmentFromJSON, ItemSegmentFromJSONTyped, ItemSegmentToJSON, ItemSegmentToJSONTyped, ItemSegmentTypeEnum, JSONApiResponse, KeySegmentFromJSON, KeySegmentFromJSONTyped, KeySegmentToJSON, KeySegmentToJSONTyped, KeySegmentTypeEnum, KindFromJSON, KindFromJSONTyped, KindToJSON, KindToJSONTyped, LineSegmentFromJSON, LineSegmentFromJSONTyped, LineSegmentToJSON, LineSegmentToJSONTyped, LineSegmentTypeEnum, ListPolicies200ResponseFromJSON, ListPolicies200ResponseFromJSONTyped, ListPolicies200ResponseToJSON, ListPolicies200ResponseToJSONTyped, MaskRuleFromJSON, MaskRuleFromJSONTyped, MaskRuleToJSON, MaskRuleToJSONTyped, MaskRuleTypeEnum, ModelEntityFromJSON, ModelEntityFromJSONTyped, ModelEntityToJSON, ModelEntityToJSONTyped, ModelEntityTypeEnum, ModelErrorFromJSON, ModelErrorFromJSONTyped, ModelErrorToJSON, ModelErrorToJSONTyped, ModelResultFromJSON, ModelResultFromJSONTyped, ModelResultToJSON, ModelResultToJSONTyped, ModelResultTypeEnum, ModelStatusFromJSON, ModelStatusFromJSONTyped, ModelStatusToJSON, ModelStatusToJSONTyped, ModelTypeFromJSON, ModelTypeFromJSONTyped, ModelTypeToJSON, ModelTypeToJSONTyped, ParagraphKindFromJSON, ParagraphKindFromJSONTyped, ParagraphKindToJSON, ParagraphKindToJSONTyped, ParagraphSegmentFromJSON, ParagraphSegmentFromJSONTyped, ParagraphSegmentToJSON, ParagraphSegmentToJSONTyped, ParagraphSegmentTypeEnum, PartSegmentFromJSON, PartSegmentFromJSONTyped, PartSegmentToJSON, PartSegmentToJSONTyped, PartSegmentTypeEnum, PathSegmentFromJSON, PathSegmentFromJSONTyped, PathSegmentToJSON, PathSegmentToJSONTyped, PoliciesApi, PolicyDocumentFromJSON, PolicyDocumentFromJSONTyped, PolicyDocumentRulesInnerFromJSON, PolicyDocumentRulesInnerFromJSONTyped, PolicyDocumentRulesInnerToJSON, PolicyDocumentRulesInnerToJSONTyped, PolicyDocumentSchemaVersionEnum, PolicyDocumentToJSON, PolicyDocumentToJSONTyped, PolicyFromJSON, PolicyFromJSONTyped, PolicySummaryFromJSON, PolicySummaryFromJSONTyped, PolicySummaryToJSON, PolicySummaryToJSONTyped, PolicyToJSON, PolicyToJSONTyped, PropertySegmentFromJSON, PropertySegmentFromJSONTyped, PropertySegmentToJSON, PropertySegmentToJSONTyped, PropertySegmentTypeEnum, PseudonymizeRuleFromJSON, PseudonymizeRuleFromJSONTyped, PseudonymizeRuleToJSON, PseudonymizeRuleToJSONTyped, PseudonymizeRuleTypeEnum, RangeKind, RangeKindFromJSON, RangeKindFromJSONTyped, RangeKindToJSON, RangeKindToJSONTyped, RangeSegmentFromJSON, RangeSegmentFromJSONTyped, RangeSegmentToJSON, RangeSegmentToJSONTyped, RangeSegmentTypeEnum, RedactRuleFromJSON, RedactRuleFromJSONTyped, RedactRuleToJSON, RedactRuleToJSONTyped, RedactRuleTypeEnum, RefusalFromJSON, RefusalFromJSONTyped, RefusalToJSON, RefusalToJSONTyped, RegexEntityFromJSON, RegexEntityFromJSONTyped, RegexEntityToJSON, RegexEntityToJSONTyped, RegexEntityTypeEnum, RegexResultFromJSON, RegexResultFromJSONTyped, RegexResultToJSON, RegexResultToJSONTyped, RegexResultTypeEnum, RegionSegmentFromJSON, RegionSegmentFromJSONTyped, RegionSegmentToJSON, RegionSegmentToJSONTyped, RegionSegmentTypeEnum, ReplaceRuleFromJSON, ReplaceRuleFromJSONTyped, ReplaceRuleToJSON, ReplaceRuleToJSONTyped, ReplaceRuleTypeEnum, RequiredError, ResponseError, RuleBodyFromJSON, RuleBodyFromJSONTyped, RuleBodyToJSON, RuleBodyToJSONTyped, SHA256RuleFromJSON, SHA256RuleFromJSONTyped, SHA256RuleToJSON, SHA256RuleToJSONTyped, SHA256RuleTypeEnum, SHA512RuleFromJSON, SHA512RuleFromJSONTyped, SHA512RuleToJSON, SHA512RuleToJSONTyped, SHA512RuleTypeEnum, ScanRequestBodyFromJSON, ScanRequestBodyFromJSONTyped, ScanRequestBodyToJSON, ScanRequestBodyToJSONTyped, ScanResponseBodyFromJSON, ScanResponseBodyFromJSONTyped, ScanResponseBodyToJSON, ScanResponseBodyToJSONTyped, ScanResultFromJSON, ScanResultFromJSONTyped, ScanResultToJSON, ScanResultToJSONTyped, SegmentSegmentFromJSON, SegmentSegmentFromJSONTyped, SegmentSegmentToJSON, SegmentSegmentToJSONTyped, SegmentSegmentTypeEnum, SensitiveDataProtectionApi, ShapeKindFromJSON, ShapeKindFromJSONTyped, ShapeKindToJSON, ShapeKindToJSONTyped, ShapeSegmentFromJSON, ShapeSegmentFromJSONTyped, ShapeSegmentToJSON, ShapeSegmentToJSONTyped, ShapeSegmentTypeEnum, SheetSegmentFromJSON, SheetSegmentFromJSONTyped, SheetSegmentToJSON, SheetSegmentToJSONTyped, SheetSegmentTypeEnum, SlideSegmentFromJSON, SlideSegmentFromJSONTyped, SlideSegmentToJSON, SlideSegmentToJSONTyped, SlideSegmentTypeEnum, SpeakerNotesSegmentFromJSON, SpeakerNotesSegmentFromJSONTyped, SpeakerNotesSegmentToJSON, SpeakerNotesSegmentToJSONTyped, SpeakerNotesSegmentTypeEnum, TableSegmentFromJSON, TableSegmentFromJSONTyped, TableSegmentToJSON, TableSegmentToJSONTyped, TableSegmentTypeEnum, TagSegmentFromJSON, TagSegmentFromJSONTyped, TagSegmentToJSON, TagSegmentToJSONTyped, TagSegmentTypeEnum, TextApiResponse, TextRangeFromJSON, TextRangeFromJSONTyped, TextRangeToJSON, TextRangeToJSONTyped, TextSegmentFromJSON, TextSegmentFromJSONTyped, TextSegmentToJSON, TextSegmentToJSONTyped, TextSegmentTypeEnum, UpdatePolicyRequestFromJSON, UpdatePolicyRequestFromJSONTyped, UpdatePolicyRequestToJSON, UpdatePolicyRequestToJSONTyped, UsageFromJSON, UsageFromJSONTyped, UsageToJSON, UsageToJSONTyped, VoidApiResponse, canConsumeForm, exists, instanceOfAction, instanceOfAllowRule, instanceOfAnonymizeFileResponseBody, instanceOfAnonymizeRequestBody, instanceOfAnonymizeResponseBody, instanceOfAt, instanceOfAttributeSegment, instanceOfCellNoteSegment, instanceOfCellSegment, instanceOfCommentKind, instanceOfCommentSegment, instanceOfComponentSegment, instanceOfCreatePolicyRequest, instanceOfDetectRule, instanceOfElementSegment, instanceOfEncryptRule, instanceOfEndnoteSegment, instanceOfErrorCode, instanceOfErrorInfo, instanceOfFieldError, instanceOfFieldErrorCode, instanceOfFieldErrorPathInner, instanceOfFieldSegment, instanceOfFileAttributeResult, instanceOfFileEmbeddedResult, instanceOfFileModelResult, instanceOfFileRegexResult, instanceOfFootnoteSegment, instanceOfFrameSegment, instanceOfHMACRule, instanceOfHeaderFooterSegment, instanceOfIndexSegment, instanceOfItemSegment, instanceOfKeySegment, instanceOfLineSegment, instanceOfListPolicies200Response, instanceOfMaskRule, instanceOfModelEntity, instanceOfModelError, instanceOfModelResult, instanceOfModelStatus, instanceOfParagraphSegment, instanceOfPartSegment, instanceOfPolicy, instanceOfPolicyDocument, instanceOfPolicySummary, instanceOfPropertySegment, instanceOfPseudonymizeRule, instanceOfRangeKind, instanceOfRangeSegment, instanceOfRedactRule, instanceOfRefusal, instanceOfRegexEntity, instanceOfRegexResult, instanceOfRegionSegment, instanceOfReplaceRule, instanceOfSHA256Rule, instanceOfSHA512Rule, instanceOfScanRequestBody, instanceOfScanResponseBody, instanceOfScanResult, instanceOfSegmentSegment, instanceOfShapeSegment, instanceOfSheetSegment, instanceOfSlideSegment, instanceOfSpeakerNotesSegment, instanceOfTableSegment, instanceOfTagSegment, instanceOfTextRange, instanceOfTextSegment, instanceOfUpdatePolicyRequest, instanceOfUsage, mapValues, querystring };
@@ -0,0 +1,39 @@
1
+
2
+ # AllowRule
3
+
4
+ Leave each matched value alone, and keep every rule below this one off it. For known false positives (a client named \"Jordan Bank\"): a model match inside an allowed match is dropped for the rules after this one. Regex entities only.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `entities` | [Array<EntityBody>](EntityBody.md)
12
+ `when` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { AllowRule } from '@quba/sensitive-data-protection'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "type": null,
22
+ "entities": null,
23
+ "when": null,
24
+ } satisfies AllowRule
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as AllowRule
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `type` | string
11
11
  `entities` | [Array<EntityBody>](EntityBody.md)
12
12
  `action` | [Action](Action.md)
13
+ `when` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -21,6 +22,7 @@ const example = {
21
22
  "type": null,
22
23
  "entities": null,
23
24
  "action": null,
25
+ "when": null,
24
26
  } satisfies DetectRule
25
27
 
26
28
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `type` | string
11
11
  `entities` | [Array<EntityBody>](EntityBody.md)
12
12
  `action` | [Action](Action.md)
13
+ `when` | string
13
14
  `key` | string
14
15
 
15
16
  ## Example
@@ -22,6 +23,7 @@ const example = {
22
23
  "type": null,
23
24
  "entities": null,
24
25
  "action": null,
26
+ "when": null,
25
27
  "key": null,
26
28
  } satisfies EncryptRule
27
29
 
@@ -9,6 +9,7 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `type` | string
11
11
  `value` | string
12
+ `threshold` | number
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ import type { EntityBody } from '@quba/sensitive-data-protection'
19
20
  const example = {
20
21
  "type": null,
21
22
  "value": null,
23
+ "threshold": null,
22
24
  } satisfies EntityBody
23
25
 
24
26
  console.log(example)
@@ -1,7 +1,7 @@
1
1
 
2
2
  # FieldErrorCode
3
3
 
4
- Why one field was refused. `missing`; `wrong_type` (see `expected`); `too_short`/`too_long` in characters and `too_large` in UTF-8 bytes (see `limit`); `too_few`/`too_many` items (see `limit`); `out_of_range` (see `min`, `max`); `blank`: only whitespace; `unknown_type` (see `allowed`); `invalid_pattern`: not a regular expression the engine runs; `invalid_key`: not a Fernet key; `labels_over_budget`: the labels leave the model too little room for text (see `tokens`, `limit`).
4
+ Why one field was refused. `missing`; `wrong_type` (see `expected`); `too_short`/`too_long` in characters and `too_large` in UTF-8 bytes (see `limit`); `too_few`/`too_many` items (see `limit`); `out_of_range` (see `min`, `max`); `blank`: only whitespace; `unknown_type` (see `allowed`); `invalid_pattern`: not a regular expression the engine runs; `invalid_key`: not a Fernet key; `invalid_condition`: not a `when` the engine runs; `labels_over_budget`: the labels leave the model too little room for text (see `tokens`, `limit`).
5
5
 
6
6
  ## Properties
7
7
 
@@ -15,6 +15,7 @@ Name | Type
15
15
  `input` | string
16
16
  `output` | string
17
17
  `path` | Array<Array<PathSegment>>
18
+ `action` | [Action](Action.md)
18
19
 
19
20
  ## Example
20
21
 
@@ -31,6 +32,7 @@ const example = {
31
32
  "input": null,
32
33
  "output": null,
33
34
  "path": null,
35
+ "action": null,
34
36
  } satisfies FileModelResult
35
37
 
36
38
  console.log(example)
@@ -14,6 +14,7 @@ Name | Type
14
14
  `input` | string
15
15
  `output` | string
16
16
  `path` | Array<Array<PathSegment>>
17
+ `action` | [Action](Action.md)
17
18
 
18
19
  ## Example
19
20
 
@@ -29,6 +30,7 @@ const example = {
29
30
  "input": null,
30
31
  "output": null,
31
32
  "path": null,
33
+ "action": null,
32
34
  } satisfies FileRegexResult
33
35
 
34
36
  console.log(example)