@quba/sensitive-data-protection 0.1.0 → 0.2.2

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 (78) hide show
  1. package/README.md +58 -6
  2. package/dist/index.cjs +2884 -569
  3. package/dist/index.d.cts +3059 -765
  4. package/dist/index.d.mts +3059 -765
  5. package/dist/index.mjs +2574 -535
  6. package/docs/Action.md +33 -0
  7. package/docs/AnonymizeFileResponseBody.md +43 -0
  8. package/docs/AnonymizeRequestBody.md +4 -2
  9. package/docs/AnonymizeResponseBody.md +3 -1
  10. package/docs/{AnonymizeResponseBodySpansInner.md → Applied.md} +7 -4
  11. package/docs/At.md +37 -0
  12. package/docs/AttributeSegment.md +37 -0
  13. package/docs/{ValidationErrorLocInner.md → CellKind.md} +5 -4
  14. package/docs/CellNoteSegment.md +35 -0
  15. package/docs/CellSegment.md +43 -0
  16. package/docs/CommentKind.md +33 -0
  17. package/docs/CommentSegment.md +39 -0
  18. package/docs/ComponentSegment.md +39 -0
  19. package/docs/DetectRule.md +3 -1
  20. package/docs/ElementSegment.md +39 -0
  21. package/docs/EncryptRule.md +3 -1
  22. package/docs/{DetectRuleEntitiesInner.md → EndnoteSegment.md} +7 -6
  23. package/docs/{EntitiesAnyOfInner.md → EntityBody.md} +5 -4
  24. package/docs/ErrorCode.md +33 -0
  25. package/docs/ErrorInfo.md +39 -0
  26. package/docs/FieldError.md +51 -0
  27. package/docs/FieldErrorCode.md +33 -0
  28. package/docs/{HTTPValidationError.md → FieldErrorPathInner.md} +5 -6
  29. package/docs/FieldSegment.md +39 -0
  30. package/docs/FileAttributeResult.md +47 -0
  31. package/docs/FileEmbeddedResult.md +43 -0
  32. package/docs/FileModelResult.md +49 -0
  33. package/docs/{AnonymizeResponseBodyResultsInner.md → FileRegexResult.md} +11 -8
  34. package/docs/FileResult.md +51 -0
  35. package/docs/FootnoteSegment.md +37 -0
  36. package/docs/FrameSegment.md +37 -0
  37. package/docs/HMACRule.md +43 -0
  38. package/docs/HeaderFooterSegment.md +37 -0
  39. package/docs/IndexSegment.md +37 -0
  40. package/docs/ItemSegment.md +37 -0
  41. package/docs/KeySegment.md +37 -0
  42. package/docs/Kind.md +33 -0
  43. package/docs/LineSegment.md +39 -0
  44. package/docs/MaskRule.md +3 -1
  45. package/docs/ModelError.md +2 -3
  46. package/docs/ModelResult.md +2 -0
  47. package/docs/ModelStatus.md +45 -0
  48. package/docs/{Entities.md → ModelType.md} +5 -4
  49. package/docs/ParagraphKind.md +33 -0
  50. package/docs/ParagraphSegment.md +39 -0
  51. package/docs/PartSegment.md +39 -0
  52. package/docs/PathSegment.md +79 -0
  53. package/docs/PolicyDocumentRulesInner.md +7 -1
  54. package/docs/{ValidationError.md → PropertySegment.md} +7 -12
  55. package/docs/PseudonymizeRule.md +41 -0
  56. package/docs/RangeKind.md +33 -0
  57. package/docs/RangeSegment.md +39 -0
  58. package/docs/RedactRule.md +3 -1
  59. package/docs/Refusal.md +36 -0
  60. package/docs/RegexResult.md +2 -0
  61. package/docs/RegionSegment.md +43 -0
  62. package/docs/ReplaceRule.md +3 -1
  63. package/docs/{AnonymizeRequestBodyRulesInner.md → RuleBody.md} +12 -5
  64. package/docs/SHA256Rule.md +3 -1
  65. package/docs/SHA512Rule.md +3 -1
  66. package/docs/ScanRequestBody.md +2 -0
  67. package/docs/ScanResponseBody.md +2 -0
  68. package/docs/SegmentSegment.md +39 -0
  69. package/docs/SensitiveDataProtectionApi.md +160 -3
  70. package/docs/ShapeKind.md +33 -0
  71. package/docs/ShapeSegment.md +41 -0
  72. package/docs/SheetSegment.md +39 -0
  73. package/docs/SlideSegment.md +41 -0
  74. package/docs/SpeakerNotesSegment.md +41 -0
  75. package/docs/TableSegment.md +37 -0
  76. package/docs/TagSegment.md +41 -0
  77. package/docs/TextSegment.md +39 -0
  78. package/package.json +1 -1
package/README.md CHANGED
@@ -59,45 +59,97 @@ All URIs are relative to *https://www.quba.co/api/sdp*
59
59
  *PoliciesApi* | [**getPolicy**](docs/PoliciesApi.md#getpolicy) | **GET** /policies/{id} | Read a policy
60
60
  *PoliciesApi* | [**listPolicies**](docs/PoliciesApi.md#listpolicies) | **GET** /policies | List policies
61
61
  *PoliciesApi* | [**updatePolicy**](docs/PoliciesApi.md#updatepolicyoperation) | **PUT** /policies/{id} | Update a policy
62
+ *SensitiveDataProtectionApi* | [**anonymizeFile**](docs/SensitiveDataProtectionApi.md#anonymizefile) | **POST** /anonymize/file | Anonymize File
62
63
  *SensitiveDataProtectionApi* | [**anonymizeText**](docs/SensitiveDataProtectionApi.md#anonymizetext) | **POST** /anonymize | Anonymize Text
63
64
  *SensitiveDataProtectionApi* | [**healthCheck**](docs/SensitiveDataProtectionApi.md#healthcheck) | **GET** /health | Health
65
+ *SensitiveDataProtectionApi* | [**listModels**](docs/SensitiveDataProtectionApi.md#listmodels) | **GET** /models | List Models
64
66
  *SensitiveDataProtectionApi* | [**scanText**](docs/SensitiveDataProtectionApi.md#scantext) | **POST** /scan | Scan Text
65
67
 
66
68
 
67
69
  ### Models
68
70
 
71
+ - [Action](docs/Action.md)
72
+ - [AnonymizeFileResponseBody](docs/AnonymizeFileResponseBody.md)
69
73
  - [AnonymizeRequestBody](docs/AnonymizeRequestBody.md)
70
- - [AnonymizeRequestBodyRulesInner](docs/AnonymizeRequestBodyRulesInner.md)
71
74
  - [AnonymizeResponseBody](docs/AnonymizeResponseBody.md)
72
- - [AnonymizeResponseBodyResultsInner](docs/AnonymizeResponseBodyResultsInner.md)
75
+ - [Applied](docs/Applied.md)
76
+ - [At](docs/At.md)
77
+ - [AttributeSegment](docs/AttributeSegment.md)
78
+ - [CellKind](docs/CellKind.md)
79
+ - [CellNoteSegment](docs/CellNoteSegment.md)
80
+ - [CellSegment](docs/CellSegment.md)
81
+ - [CommentKind](docs/CommentKind.md)
82
+ - [CommentSegment](docs/CommentSegment.md)
83
+ - [ComponentSegment](docs/ComponentSegment.md)
73
84
  - [CreatePolicyRequest](docs/CreatePolicyRequest.md)
74
85
  - [DetectRule](docs/DetectRule.md)
75
- - [DetectRuleEntitiesInner](docs/DetectRuleEntitiesInner.md)
86
+ - [ElementSegment](docs/ElementSegment.md)
76
87
  - [EncryptRule](docs/EncryptRule.md)
77
- - [HTTPValidationError](docs/HTTPValidationError.md)
88
+ - [EndnoteSegment](docs/EndnoteSegment.md)
89
+ - [EntityBody](docs/EntityBody.md)
90
+ - [ErrorCode](docs/ErrorCode.md)
91
+ - [ErrorInfo](docs/ErrorInfo.md)
92
+ - [FieldError](docs/FieldError.md)
93
+ - [FieldErrorCode](docs/FieldErrorCode.md)
94
+ - [FieldErrorPathInner](docs/FieldErrorPathInner.md)
95
+ - [FieldSegment](docs/FieldSegment.md)
96
+ - [FileAttributeResult](docs/FileAttributeResult.md)
97
+ - [FileEmbeddedResult](docs/FileEmbeddedResult.md)
98
+ - [FileModelResult](docs/FileModelResult.md)
99
+ - [FileRegexResult](docs/FileRegexResult.md)
100
+ - [FileResult](docs/FileResult.md)
101
+ - [FootnoteSegment](docs/FootnoteSegment.md)
102
+ - [FrameSegment](docs/FrameSegment.md)
103
+ - [HMACRule](docs/HMACRule.md)
104
+ - [HeaderFooterSegment](docs/HeaderFooterSegment.md)
105
+ - [IndexSegment](docs/IndexSegment.md)
106
+ - [ItemSegment](docs/ItemSegment.md)
107
+ - [KeySegment](docs/KeySegment.md)
108
+ - [Kind](docs/Kind.md)
109
+ - [LineSegment](docs/LineSegment.md)
78
110
  - [ListPolicies200Response](docs/ListPolicies200Response.md)
79
111
  - [MaskRule](docs/MaskRule.md)
80
112
  - [ModelEntity](docs/ModelEntity.md)
81
113
  - [ModelError](docs/ModelError.md)
82
114
  - [ModelResult](docs/ModelResult.md)
115
+ - [ModelStatus](docs/ModelStatus.md)
116
+ - [ModelType](docs/ModelType.md)
117
+ - [ParagraphKind](docs/ParagraphKind.md)
118
+ - [ParagraphSegment](docs/ParagraphSegment.md)
119
+ - [PartSegment](docs/PartSegment.md)
120
+ - [PathSegment](docs/PathSegment.md)
83
121
  - [Policy](docs/Policy.md)
84
122
  - [PolicyDocument](docs/PolicyDocument.md)
85
123
  - [PolicyDocumentRulesInner](docs/PolicyDocumentRulesInner.md)
86
124
  - [PolicySummary](docs/PolicySummary.md)
125
+ - [PropertySegment](docs/PropertySegment.md)
126
+ - [PseudonymizeRule](docs/PseudonymizeRule.md)
127
+ - [RangeKind](docs/RangeKind.md)
128
+ - [RangeSegment](docs/RangeSegment.md)
87
129
  - [RedactRule](docs/RedactRule.md)
130
+ - [Refusal](docs/Refusal.md)
88
131
  - [RegexEntity](docs/RegexEntity.md)
89
132
  - [RegexResult](docs/RegexResult.md)
133
+ - [RegionSegment](docs/RegionSegment.md)
90
134
  - [ReplaceRule](docs/ReplaceRule.md)
135
+ - [RuleBody](docs/RuleBody.md)
91
136
  - [SHA256Rule](docs/SHA256Rule.md)
92
137
  - [SHA512Rule](docs/SHA512Rule.md)
93
138
  - [ScanRequestBody](docs/ScanRequestBody.md)
94
139
  - [ScanResponseBody](docs/ScanResponseBody.md)
95
140
  - [ScanResult](docs/ScanResult.md)
141
+ - [SegmentSegment](docs/SegmentSegment.md)
142
+ - [ShapeKind](docs/ShapeKind.md)
143
+ - [ShapeSegment](docs/ShapeSegment.md)
144
+ - [SheetSegment](docs/SheetSegment.md)
145
+ - [SlideSegment](docs/SlideSegment.md)
146
+ - [SpeakerNotesSegment](docs/SpeakerNotesSegment.md)
147
+ - [TableSegment](docs/TableSegment.md)
148
+ - [TagSegment](docs/TagSegment.md)
96
149
  - [TextRange](docs/TextRange.md)
150
+ - [TextSegment](docs/TextSegment.md)
97
151
  - [UpdatePolicyRequest](docs/UpdatePolicyRequest.md)
98
152
  - [Usage](docs/Usage.md)
99
- - [ValidationError](docs/ValidationError.md)
100
- - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
101
153
 
102
154
  ### Authorization
103
155