@quba/sensitive-data-protection 0.0.4 → 0.0.5
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/README.md +13 -13
- package/docs/AnonymizeRequestBody.md +2 -2
- package/docs/{AnonymizeRequestBodyTransformationsInner.md → AnonymizeRequestBodyRulesInner.md} +8 -8
- package/docs/{EncryptTransformation.md → EncryptRule.md} +8 -8
- package/docs/{Targets.md → Entities.md} +4 -4
- package/docs/{RedactTransformation.md → EntitiesAnyOfInner.md} +8 -8
- package/docs/MapValueInner.md +4 -6
- package/docs/{MaskTransformation.md → MaskRule.md} +8 -8
- package/docs/{RegexTarget.md → ModelEntity.md} +8 -8
- package/docs/{EntitySpanResult.md → ModelSpan.md} +9 -9
- package/docs/RedactRule.md +36 -0
- package/docs/{EntityTarget.md → RegexEntity.md} +8 -8
- package/docs/{RegexSpanResult.md → RegexSpan.md} +8 -8
- package/docs/{ReplaceTransformation.md → ReplaceRule.md} +8 -8
- package/docs/SHA256Rule.md +36 -0
- package/docs/SHA512Rule.md +36 -0
- package/package.json +2 -1
- package/docs/SHA256Transformation.md +0 -36
- package/docs/SHA512Transformation.md +0 -36
- package/docs/TargetsAnyOfInner.md +0 -38
package/README.md
CHANGED
|
@@ -58,25 +58,25 @@ All URIs are relative to *https://app.quba.ae/api/sdp*
|
|
|
58
58
|
### Models
|
|
59
59
|
|
|
60
60
|
- [AnonymizeRequestBody](docs/AnonymizeRequestBody.md)
|
|
61
|
-
- [
|
|
61
|
+
- [AnonymizeRequestBodyRulesInner](docs/AnonymizeRequestBodyRulesInner.md)
|
|
62
62
|
- [AnonymizeResponseBody](docs/AnonymizeResponseBody.md)
|
|
63
|
-
- [
|
|
64
|
-
- [
|
|
65
|
-
- [
|
|
63
|
+
- [EncryptRule](docs/EncryptRule.md)
|
|
64
|
+
- [Entities](docs/Entities.md)
|
|
65
|
+
- [EntitiesAnyOfInner](docs/EntitiesAnyOfInner.md)
|
|
66
66
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
67
67
|
- [MapValueInner](docs/MapValueInner.md)
|
|
68
|
-
- [
|
|
69
|
-
- [
|
|
70
|
-
- [
|
|
71
|
-
- [
|
|
72
|
-
- [
|
|
73
|
-
- [
|
|
74
|
-
- [
|
|
68
|
+
- [MaskRule](docs/MaskRule.md)
|
|
69
|
+
- [ModelEntity](docs/ModelEntity.md)
|
|
70
|
+
- [ModelSpan](docs/ModelSpan.md)
|
|
71
|
+
- [RedactRule](docs/RedactRule.md)
|
|
72
|
+
- [RegexEntity](docs/RegexEntity.md)
|
|
73
|
+
- [RegexSpan](docs/RegexSpan.md)
|
|
74
|
+
- [ReplaceRule](docs/ReplaceRule.md)
|
|
75
|
+
- [SHA256Rule](docs/SHA256Rule.md)
|
|
76
|
+
- [SHA512Rule](docs/SHA512Rule.md)
|
|
75
77
|
- [ScanRequestBody](docs/ScanRequestBody.md)
|
|
76
78
|
- [ScanResponseBody](docs/ScanResponseBody.md)
|
|
77
79
|
- [ScanResult](docs/ScanResult.md)
|
|
78
|
-
- [Targets](docs/Targets.md)
|
|
79
|
-
- [TargetsAnyOfInner](docs/TargetsAnyOfInner.md)
|
|
80
80
|
- [ValidationError](docs/ValidationError.md)
|
|
81
81
|
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
82
82
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`text` | string
|
|
10
|
-
`
|
|
10
|
+
`rules` | [Array<AnonymizeRequestBodyRulesInner>](AnonymizeRequestBodyRulesInner.md)
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ import type { AnonymizeRequestBody } from '@quba/sensitive-data-protection'
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"text": null,
|
|
20
|
-
"
|
|
20
|
+
"rules": null,
|
|
21
21
|
} satisfies AnonymizeRequestBody
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
package/docs/{AnonymizeRequestBodyTransformationsInner.md → AnonymizeRequestBodyRulesInner.md}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# AnonymizeRequestBodyRulesInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
11
|
`replacement` | string
|
|
12
12
|
`key` | string
|
|
13
13
|
`masking_char` | string
|
|
@@ -17,18 +17,18 @@ Name | Type
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import type {
|
|
20
|
+
import type { AnonymizeRequestBodyRulesInner } from '@quba/sensitive-data-protection'
|
|
21
21
|
|
|
22
22
|
// TODO: Update the object below with actual values
|
|
23
23
|
const example = {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"type": null,
|
|
25
|
+
"entities": null,
|
|
26
26
|
"replacement": null,
|
|
27
27
|
"key": null,
|
|
28
28
|
"masking_char": null,
|
|
29
29
|
"chars_to_mask": null,
|
|
30
30
|
"from_end": null,
|
|
31
|
-
} satisfies
|
|
31
|
+
} satisfies AnonymizeRequestBodyRulesInner
|
|
32
32
|
|
|
33
33
|
console.log(example)
|
|
34
34
|
|
|
@@ -37,7 +37,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
37
37
|
console.log(exampleJSON)
|
|
38
38
|
|
|
39
39
|
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as AnonymizeRequestBodyRulesInner
|
|
41
41
|
console.log(exampleParsed)
|
|
42
42
|
```
|
|
43
43
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# EncryptRule
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
11
|
`key` | string
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { EncryptRule } from '@quba/sensitive-data-protection'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"type": null,
|
|
21
|
+
"entities": null,
|
|
22
22
|
"key": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies EncryptRule
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as EncryptRule
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# Entities
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -10,11 +10,11 @@ Name | Type
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import type {
|
|
13
|
+
import type { Entities } from '@quba/sensitive-data-protection'
|
|
14
14
|
|
|
15
15
|
// TODO: Update the object below with actual values
|
|
16
16
|
const example = {
|
|
17
|
-
} satisfies
|
|
17
|
+
} satisfies Entities
|
|
18
18
|
|
|
19
19
|
console.log(example)
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
23
|
console.log(exampleJSON)
|
|
24
24
|
|
|
25
25
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as Entities
|
|
27
27
|
console.log(exampleParsed)
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# EntitiesAnyOfInner
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`value` | string
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { EntitiesAnyOfInner } from '@quba/sensitive-data-protection'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
} satisfies
|
|
19
|
+
"type": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies EntitiesAnyOfInner
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as EntitiesAnyOfInner
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
package/docs/MapValueInner.md
CHANGED
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`type` | string
|
|
10
10
|
`start` | number
|
|
11
11
|
`end` | number
|
|
12
|
-
`
|
|
12
|
+
`value` | string
|
|
13
13
|
`text` | string
|
|
14
14
|
`score` | number
|
|
15
|
-
`pattern` | string
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|
|
@@ -21,13 +20,12 @@ import type { MapValueInner } from '@quba/sensitive-data-protection'
|
|
|
21
20
|
|
|
22
21
|
// TODO: Update the object below with actual values
|
|
23
22
|
const example = {
|
|
24
|
-
"
|
|
23
|
+
"type": null,
|
|
25
24
|
"start": null,
|
|
26
25
|
"end": null,
|
|
27
|
-
"
|
|
26
|
+
"value": null,
|
|
28
27
|
"text": null,
|
|
29
28
|
"score": null,
|
|
30
|
-
"pattern": null,
|
|
31
29
|
} satisfies MapValueInner
|
|
32
30
|
|
|
33
31
|
console.log(example)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# MaskRule
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
11
|
`masking_char` | string
|
|
12
12
|
`chars_to_mask` | number
|
|
13
13
|
`from_end` | boolean
|
|
@@ -15,16 +15,16 @@ Name | Type
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import type {
|
|
18
|
+
import type { MaskRule } from '@quba/sensitive-data-protection'
|
|
19
19
|
|
|
20
20
|
// TODO: Update the object below with actual values
|
|
21
21
|
const example = {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"type": null,
|
|
23
|
+
"entities": null,
|
|
24
24
|
"masking_char": null,
|
|
25
25
|
"chars_to_mask": null,
|
|
26
26
|
"from_end": null,
|
|
27
|
-
} satisfies
|
|
27
|
+
} satisfies MaskRule
|
|
28
28
|
|
|
29
29
|
console.log(example)
|
|
30
30
|
|
|
@@ -33,7 +33,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
33
33
|
console.log(exampleJSON)
|
|
34
34
|
|
|
35
35
|
// Parse the JSON string back to an object
|
|
36
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as MaskRule
|
|
37
37
|
console.log(exampleParsed)
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelEntity
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`value` | string
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { ModelEntity } from '@quba/sensitive-data-protection'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
} satisfies
|
|
19
|
+
"type": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ModelEntity
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelEntity
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ModelSpan
|
|
3
3
|
|
|
4
|
-
A detected
|
|
4
|
+
A detected model span.
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
|
-
`
|
|
10
|
+
`type` | string
|
|
11
11
|
`start` | number
|
|
12
12
|
`end` | number
|
|
13
|
-
`
|
|
13
|
+
`value` | string
|
|
14
14
|
`text` | string
|
|
15
15
|
`score` | number
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import type {
|
|
20
|
+
import type { ModelSpan } from '@quba/sensitive-data-protection'
|
|
21
21
|
|
|
22
22
|
// TODO: Update the object below with actual values
|
|
23
23
|
const example = {
|
|
24
|
-
"
|
|
24
|
+
"type": null,
|
|
25
25
|
"start": null,
|
|
26
26
|
"end": null,
|
|
27
|
-
"
|
|
27
|
+
"value": null,
|
|
28
28
|
"text": null,
|
|
29
29
|
"score": null,
|
|
30
|
-
} satisfies
|
|
30
|
+
} satisfies ModelSpan
|
|
31
31
|
|
|
32
32
|
console.log(example)
|
|
33
33
|
|
|
@@ -36,7 +36,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
36
36
|
console.log(exampleJSON)
|
|
37
37
|
|
|
38
38
|
// Parse the JSON string back to an object
|
|
39
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelSpan
|
|
40
40
|
console.log(exampleParsed)
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# RedactRule
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RedactRule } from '@quba/sensitive-data-protection'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"entities": null,
|
|
21
|
+
} satisfies RedactRule
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as RedactRule
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RegexEntity
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`value` | string
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { RegexEntity } from '@quba/sensitive-data-protection'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
} satisfies
|
|
19
|
+
"type": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies RegexEntity
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as RegexEntity
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RegexSpan
|
|
3
3
|
|
|
4
4
|
A detected regex span.
|
|
5
5
|
|
|
@@ -7,25 +7,25 @@ A detected regex span.
|
|
|
7
7
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
|
-
`
|
|
10
|
+
`type` | string
|
|
11
11
|
`start` | number
|
|
12
12
|
`end` | number
|
|
13
|
-
`
|
|
13
|
+
`value` | string
|
|
14
14
|
`text` | string
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import type {
|
|
19
|
+
import type { RegexSpan } from '@quba/sensitive-data-protection'
|
|
20
20
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
|
-
"
|
|
23
|
+
"type": null,
|
|
24
24
|
"start": null,
|
|
25
25
|
"end": null,
|
|
26
|
-
"
|
|
26
|
+
"value": null,
|
|
27
27
|
"text": null,
|
|
28
|
-
} satisfies
|
|
28
|
+
} satisfies RegexSpan
|
|
29
29
|
|
|
30
30
|
console.log(example)
|
|
31
31
|
|
|
@@ -34,7 +34,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
34
34
|
console.log(exampleJSON)
|
|
35
35
|
|
|
36
36
|
// Parse the JSON string back to an object
|
|
37
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as RegexSpan
|
|
38
38
|
console.log(exampleParsed)
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ReplaceRule
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
11
|
`replacement` | string
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import type {
|
|
16
|
+
import type { ReplaceRule } from '@quba/sensitive-data-protection'
|
|
17
17
|
|
|
18
18
|
// TODO: Update the object below with actual values
|
|
19
19
|
const example = {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"type": null,
|
|
21
|
+
"entities": null,
|
|
22
22
|
"replacement": null,
|
|
23
|
-
} satisfies
|
|
23
|
+
} satisfies ReplaceRule
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
29
29
|
console.log(exampleJSON)
|
|
30
30
|
|
|
31
31
|
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReplaceRule
|
|
33
33
|
console.log(exampleParsed)
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SHA256Rule
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { SHA256Rule } from '@quba/sensitive-data-protection'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"entities": null,
|
|
21
|
+
} satisfies SHA256Rule
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as SHA256Rule
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# SHA512Rule
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | string
|
|
10
|
+
`entities` | [Entities](Entities.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { SHA512Rule } from '@quba/sensitive-data-protection'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"entities": null,
|
|
21
|
+
} satisfies SHA512Rule
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as SHA512Rule
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package",
|
|
2
3
|
"name": "@quba/sensitive-data-protection",
|
|
3
4
|
"description": "SDK for Sensitive Data Protection Service",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"homepage": "https://quba.ae",
|
|
7
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.5",
|
|
8
9
|
"keywords": [
|
|
9
10
|
"sensitive data protection",
|
|
10
11
|
"sdp",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SHA256Transformation
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | string
|
|
10
|
-
`targets` | [Targets](Targets.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { SHA256Transformation } from '@quba/sensitive-data-protection'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"id": null,
|
|
20
|
-
"targets": null,
|
|
21
|
-
} satisfies SHA256Transformation
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as SHA256Transformation
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SHA512Transformation
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | string
|
|
10
|
-
`targets` | [Targets](Targets.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { SHA512Transformation } from '@quba/sensitive-data-protection'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"id": null,
|
|
20
|
-
"targets": null,
|
|
21
|
-
} satisfies SHA512Transformation
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as SHA512Transformation
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# TargetsAnyOfInner
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | string
|
|
10
|
-
`entity_type` | string
|
|
11
|
-
`pattern` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { TargetsAnyOfInner } from '@quba/sensitive-data-protection'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"id": null,
|
|
21
|
-
"entity_type": null,
|
|
22
|
-
"pattern": null,
|
|
23
|
-
} satisfies TargetsAnyOfInner
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as TargetsAnyOfInner
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|