@quba/sensitive-data-protection 0.0.12 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +59 -6
  2. package/dist/index.cjs +2908 -560
  3. package/dist/index.d.cts +3092 -764
  4. package/dist/index.d.mts +3092 -764
  5. package/dist/index.mjs +2593 -526
  6. package/docs/Action.md +33 -0
  7. package/docs/AnonymizeFileResponseBody.md +43 -0
  8. package/docs/AnonymizeRequestBody.md +4 -4
  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/ModelEntity.md +1 -1
  46. package/docs/ModelError.md +35 -0
  47. package/docs/ModelResult.md +3 -1
  48. package/docs/ModelStatus.md +45 -0
  49. package/docs/{Entities.md → ModelType.md} +5 -4
  50. package/docs/ParagraphKind.md +33 -0
  51. package/docs/ParagraphSegment.md +39 -0
  52. package/docs/PartSegment.md +39 -0
  53. package/docs/PathSegment.md +79 -0
  54. package/docs/PoliciesApi.md +10 -1
  55. package/docs/PolicyDocumentRulesInner.md +7 -1
  56. package/docs/{ValidationError.md → PropertySegment.md} +7 -12
  57. package/docs/PseudonymizeRule.md +41 -0
  58. package/docs/RangeKind.md +33 -0
  59. package/docs/RangeSegment.md +39 -0
  60. package/docs/RedactRule.md +3 -1
  61. package/docs/Refusal.md +36 -0
  62. package/docs/RegexResult.md +2 -0
  63. package/docs/RegionSegment.md +43 -0
  64. package/docs/ReplaceRule.md +3 -1
  65. package/docs/{AnonymizeRequestBodyRulesInner.md → RuleBody.md} +12 -5
  66. package/docs/SHA256Rule.md +3 -1
  67. package/docs/SHA512Rule.md +3 -1
  68. package/docs/ScanRequestBody.md +2 -0
  69. package/docs/ScanResponseBody.md +2 -0
  70. package/docs/SegmentSegment.md +39 -0
  71. package/docs/SensitiveDataProtectionApi.md +172 -4
  72. package/docs/ShapeKind.md +33 -0
  73. package/docs/ShapeSegment.md +41 -0
  74. package/docs/SheetSegment.md +39 -0
  75. package/docs/SlideSegment.md +41 -0
  76. package/docs/SpeakerNotesSegment.md +41 -0
  77. package/docs/TableSegment.md +37 -0
  78. package/docs/TagSegment.md +41 -0
  79. package/docs/TextSegment.md +39 -0
  80. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+
2
+ # SlideSegment
3
+
4
+ A slide, numbered as PowerPoint shows it, and its part. `kind` until shapes hold all of a slide\'s text.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `number` | number
12
+ `part` | string
13
+ `kind` | [Kind](Kind.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { SlideSegment } from '@quba/sensitive-data-protection'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "type": null,
23
+ "number": null,
24
+ "part": null,
25
+ "kind": null,
26
+ } satisfies SlideSegment
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as SlideSegment
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,41 @@
1
+
2
+ # SpeakerNotesSegment
3
+
4
+ A slide\'s speaker notes (`speaker_notes`): the slide\'s number, and the notes\' part. `kind` until shapes hold all of their text.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `slide` | number
12
+ `part` | string
13
+ `kind` | [Kind](Kind.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { SpeakerNotesSegment } from '@quba/sensitive-data-protection'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "type": null,
23
+ "slide": null,
24
+ "part": null,
25
+ "kind": null,
26
+ } satisfies SpeakerNotesSegment
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as SpeakerNotesSegment
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,37 @@
1
+
2
+ # TableSegment
3
+
4
+ A table in a Word document or on a slide, numbered from 1 in what holds it.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `number` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { TableSegment } from '@quba/sensitive-data-protection'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "type": null,
21
+ "number": null,
22
+ } satisfies TableSegment
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as TableSegment
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,41 @@
1
+
2
+ # TagSegment
3
+
4
+ A DICOM attribute: its tag, as four hex digits each, and its keyword (`PatientName`) when the standard names it; none for a private one.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `group` | string
12
+ `element` | string
13
+ `keyword` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { TagSegment } from '@quba/sensitive-data-protection'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "type": null,
23
+ "group": null,
24
+ "element": null,
25
+ "keyword": null,
26
+ } satisfies TagSegment
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as TagSegment
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,39 @@
1
+
2
+ # TextSegment
3
+
4
+ The last segment of a found value\'s path: its piece in the object the path leads to, in the file as it was and as it is now. Offsets from the start of the cell (xlsx, CSV, TSV), the paragraph (docx, pptx), the line (other text files) or the JSON value, as `/anonymize` counts them.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `input` | [TextRange](TextRange.md)
12
+ `output` | [TextRange](TextRange.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { TextSegment } from '@quba/sensitive-data-protection'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "type": null,
22
+ "input": null,
23
+ "output": null,
24
+ } satisfies TextSegment
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 TextSegment
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
+
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "homepage": "https://www.quba.co",
8
- "version": "0.0.12",
8
+ "version": "0.2.0",
9
9
  "keywords": [
10
10
  "sensitive data protection",
11
11
  "sdp",