@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,39 @@
1
+
2
+ # ErrorInfo
3
+
4
+ The error itself.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `code` | [ErrorCode](ErrorCode.md)
11
+ `message` | string
12
+ `details` | [Array<FieldError>](FieldError.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ErrorInfo } from '@quba/sensitive-data-protection'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "code": null,
22
+ "message": null,
23
+ "details": null,
24
+ } satisfies ErrorInfo
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 ErrorInfo
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
+
@@ -0,0 +1,51 @@
1
+
2
+ # FieldError
3
+
4
+ One refused field.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `path` | [Array<FieldErrorPathInner>](FieldErrorPathInner.md)
11
+ `code` | [FieldErrorCode](FieldErrorCode.md)
12
+ `message` | string
13
+ `limit` | number
14
+ `min` | number
15
+ `max` | number
16
+ `expected` | string
17
+ `allowed` | Array<string>
18
+ `tokens` | number
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { FieldError } from '@quba/sensitive-data-protection'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "path": null,
28
+ "code": null,
29
+ "message": null,
30
+ "limit": null,
31
+ "min": null,
32
+ "max": null,
33
+ "expected": null,
34
+ "allowed": null,
35
+ "tokens": null,
36
+ } satisfies FieldError
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as FieldError
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+
@@ -0,0 +1,33 @@
1
+
2
+ # FieldErrorCode
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`).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FieldErrorCode } from '@quba/sensitive-data-protection'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies FieldErrorCode
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as FieldErrorCode
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -1,22 +1,21 @@
1
1
 
2
- # HTTPValidationError
2
+ # FieldErrorPathInner
3
3
 
4
+ One step of a path into the request body: a field name or a list index.
4
5
 
5
6
  ## Properties
6
7
 
7
8
  Name | Type
8
9
  ------------ | -------------
9
- `detail` | [Array<ValidationError>](ValidationError.md)
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { HTTPValidationError } from '@quba/sensitive-data-protection'
14
+ import type { FieldErrorPathInner } from '@quba/sensitive-data-protection'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
- "detail": null,
19
- } satisfies HTTPValidationError
18
+ } satisfies FieldErrorPathInner
20
19
 
21
20
  console.log(example)
22
21
 
@@ -25,7 +24,7 @@ const exampleJSON: string = JSON.stringify(example)
25
24
  console.log(exampleJSON)
26
25
 
27
26
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as HTTPValidationError
27
+ const exampleParsed = JSON.parse(exampleJSON) as FieldErrorPathInner
29
28
  console.log(exampleParsed)
30
29
  ```
31
30
 
@@ -0,0 +1,39 @@
1
+
2
+ # FieldSegment
3
+
4
+ An HL7 v2 field of the segment before it: `5` in `PID-5`.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `number` | number
12
+ `repetition` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { FieldSegment } from '@quba/sensitive-data-protection'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "type": null,
22
+ "number": null,
23
+ "repetition": null,
24
+ } satisfies FieldSegment
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 FieldSegment
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
+
@@ -0,0 +1,47 @@
1
+
2
+ # FileAttributeResult
3
+
4
+ A DICOM attribute the confidentiality profile (PS3.15 Annex E) acted on, or content kept unread.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `id` | number
12
+ `rule` | string
13
+ `input` | string
14
+ `output` | string
15
+ `content_type` | string
16
+ `path` | Array<Array<PathSegment>>
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { FileAttributeResult } from '@quba/sensitive-data-protection'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "type": null,
26
+ "id": null,
27
+ "rule": null,
28
+ "input": null,
29
+ "output": null,
30
+ "content_type": null,
31
+ "path": null,
32
+ } satisfies FileAttributeResult
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as FileAttributeResult
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+
@@ -0,0 +1,43 @@
1
+
2
+ # FileEmbeddedResult
3
+
4
+ Embedded content taken out of the file: embedded files, OLE objects, media, a FHIR photo\'s data; and the thumbnail, which is always removed.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `id` | number
12
+ `rule` | string
13
+ `content_type` | string
14
+ `path` | Array<Array<PathSegment>>
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { FileEmbeddedResult } from '@quba/sensitive-data-protection'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "type": null,
24
+ "id": null,
25
+ "rule": null,
26
+ "content_type": null,
27
+ "path": null,
28
+ } satisfies FileEmbeddedResult
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as FileEmbeddedResult
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
42
+
43
+
@@ -0,0 +1,49 @@
1
+
2
+ # FileModelResult
3
+
4
+ The model found the value. Another copy of a value already replaced is reported as the first one was.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `id` | number
12
+ `rule` | string
13
+ `value` | string
14
+ `score` | number
15
+ `input` | string
16
+ `output` | string
17
+ `path` | Array<Array<PathSegment>>
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { FileModelResult } from '@quba/sensitive-data-protection'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "type": null,
27
+ "id": null,
28
+ "rule": null,
29
+ "value": null,
30
+ "score": null,
31
+ "input": null,
32
+ "output": null,
33
+ "path": null,
34
+ } satisfies FileModelResult
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as FileModelResult
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -1,32 +1,35 @@
1
1
 
2
- # AnonymizeResponseBodyResultsInner
2
+ # FileRegexResult
3
3
 
4
+ A regex rule matched.
4
5
 
5
6
  ## Properties
6
7
 
7
8
  Name | Type
8
9
  ------------ | -------------
9
10
  `type` | string
11
+ `id` | number
10
12
  `rule` | string
11
13
  `value` | string
12
- `input` | [TextRange](TextRange.md)
13
- `output` | [TextRange](TextRange.md)
14
- `score` | number
14
+ `input` | string
15
+ `output` | string
16
+ `path` | Array<Array<PathSegment>>
15
17
 
16
18
  ## Example
17
19
 
18
20
  ```typescript
19
- import type { AnonymizeResponseBodyResultsInner } from '@quba/sensitive-data-protection'
21
+ import type { FileRegexResult } from '@quba/sensitive-data-protection'
20
22
 
21
23
  // TODO: Update the object below with actual values
22
24
  const example = {
23
25
  "type": null,
26
+ "id": null,
24
27
  "rule": null,
25
28
  "value": null,
26
29
  "input": null,
27
30
  "output": null,
28
- "score": null,
29
- } satisfies AnonymizeResponseBodyResultsInner
31
+ "path": null,
32
+ } satisfies FileRegexResult
30
33
 
31
34
  console.log(example)
32
35
 
@@ -35,7 +38,7 @@ const exampleJSON: string = JSON.stringify(example)
35
38
  console.log(exampleJSON)
36
39
 
37
40
  // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as AnonymizeResponseBodyResultsInner
41
+ const exampleParsed = JSON.parse(exampleJSON) as FileRegexResult
39
42
  console.log(exampleParsed)
40
43
  ```
41
44
 
@@ -0,0 +1,51 @@
1
+
2
+ # FileResult
3
+
4
+ One change made to the file, by what found it.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `id` | number
12
+ `rule` | string
13
+ `value` | string
14
+ `score` | number
15
+ `input` | string
16
+ `output` | string
17
+ `path` | Array<Array<PathSegment>>
18
+ `content_type` | string
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { FileResult } from '@quba/sensitive-data-protection'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "type": null,
28
+ "id": null,
29
+ "rule": null,
30
+ "value": null,
31
+ "score": null,
32
+ "input": null,
33
+ "output": null,
34
+ "path": null,
35
+ "content_type": null,
36
+ } satisfies FileResult
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as FileResult
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+
@@ -0,0 +1,37 @@
1
+
2
+ # FootnoteSegment
3
+
4
+ A footnote (`w:footnote`), by its id.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `id` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { FootnoteSegment } from '@quba/sensitive-data-protection'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "type": null,
21
+ "id": null,
22
+ } satisfies FootnoteSegment
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 FootnoteSegment
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,37 @@
1
+
2
+ # FrameSegment
3
+
4
+ A frame of DICOM pixel data, from 1.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `number` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { FrameSegment } 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 FrameSegment
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 FrameSegment
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,43 @@
1
+
2
+ # HMACRule
3
+
4
+ Replace each matched value with its HMAC-SHA256 under `key`, in hex. The same value and key always give the same digest, so records can still be joined; without the key, values can\'t be recovered by hashing guesses (a plain SHA-256 of a phone number can).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `entities` | [Array<EntityBody>](EntityBody.md)
12
+ `action` | [Action](Action.md)
13
+ `key` | string
14
+ `length` | number
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { HMACRule } from '@quba/sensitive-data-protection'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "type": null,
24
+ "entities": null,
25
+ "action": null,
26
+ "key": null,
27
+ "length": null,
28
+ } satisfies HMACRule
29
+
30
+ console.log(example)
31
+
32
+ // Convert the instance to a JSON string
33
+ const exampleJSON: string = JSON.stringify(example)
34
+ console.log(exampleJSON)
35
+
36
+ // Parse the JSON string back to an object
37
+ const exampleParsed = JSON.parse(exampleJSON) as HMACRule
38
+ console.log(exampleParsed)
39
+ ```
40
+
41
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
42
+
43
+
@@ -0,0 +1,37 @@
1
+
2
+ # HeaderFooterSegment
3
+
4
+ A worksheet\'s page header or footer, by its element: `oddHeader`, `oddFooter`, `evenHeader`…
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `name` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { HeaderFooterSegment } from '@quba/sensitive-data-protection'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "type": null,
21
+ "name": null,
22
+ } satisfies HeaderFooterSegment
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 HeaderFooterSegment
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,37 @@
1
+
2
+ # IndexSegment
3
+
4
+ A JSON array\'s index, from 0: a step towards a value, as in a JSON Pointer.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `index` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { IndexSegment } from '@quba/sensitive-data-protection'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "type": null,
21
+ "index": null,
22
+ } satisfies IndexSegment
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 IndexSegment
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,37 @@
1
+
2
+ # ItemSegment
3
+
4
+ An item of the DICOM sequence before it, from 1.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `type` | string
11
+ `number` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ItemSegment } 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 ItemSegment
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 ItemSegment
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
+