@quba/sensitive-data-protection 0.0.8 → 0.0.11

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 CHANGED
@@ -1,6 +1,6 @@
1
- # @quba/sensitive-data-protection
1
+ # @quba/sensitive-data-protection@0.1.0
2
2
 
3
- A TypeScript SDK client for the app.quba.ae API.
3
+ A TypeScript SDK client for the www.quba.co API.
4
4
 
5
5
  ## Usage
6
6
 
@@ -16,21 +16,25 @@ Next, try it out.
16
16
  ```ts
17
17
  import {
18
18
  Configuration,
19
- SensitiveDataProtectionApi,
19
+ PoliciesApi,
20
20
  } from '@quba/sensitive-data-protection';
21
- import type { AnonymizeTextRequest } from '@quba/sensitive-data-protection';
21
+ import type { CreatePolicyOperationRequest } from '@quba/sensitive-data-protection';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @quba/sensitive-data-protection SDK...");
25
- const api = new SensitiveDataProtectionApi();
25
+ const config = new Configuration({
26
+ // To configure API key authorization: ApiKeyAuth
27
+ apiKey: "YOUR API KEY",
28
+ });
29
+ const api = new PoliciesApi(config);
26
30
 
27
31
  const body = {
28
- // AnonymizeRequestBody
29
- AnonymizeRequestBody: ...,
30
- } satisfies AnonymizeTextRequest;
32
+ // CreatePolicyRequest
33
+ CreatePolicyRequest: ...,
34
+ } satisfies CreatePolicyOperationRequest;
31
35
 
32
36
  try {
33
- const data = await api.anonymizeText(body);
37
+ const data = await api.createPolicy(body);
34
38
  console.log(data);
35
39
  } catch (error) {
36
40
  console.error(error);
@@ -46,10 +50,15 @@ example().catch(console.error);
46
50
 
47
51
  ### API Endpoints
48
52
 
49
- All URIs are relative to *https://app.quba.ae/api/sdp*
53
+ All URIs are relative to *https://www.quba.co/api/sdp*
50
54
 
51
55
  | Class | Method | HTTP request | Description
52
56
  | ----- | ------ | ------------ | -------------
57
+ *PoliciesApi* | [**createPolicy**](docs/PoliciesApi.md#createpolicyoperation) | **POST** /policies | Create a policy
58
+ *PoliciesApi* | [**deletePolicy**](docs/PoliciesApi.md#deletepolicy) | **DELETE** /policies/{id} | Delete a policy
59
+ *PoliciesApi* | [**getPolicy**](docs/PoliciesApi.md#getpolicy) | **GET** /policies/{id} | Read a policy
60
+ *PoliciesApi* | [**listPolicies**](docs/PoliciesApi.md#listpolicies) | **GET** /policies | List policies
61
+ *PoliciesApi* | [**updatePolicy**](docs/PoliciesApi.md#updatepolicyoperation) | **PUT** /policies/{id} | Update a policy
53
62
  *SensitiveDataProtectionApi* | [**anonymizeText**](docs/SensitiveDataProtectionApi.md#anonymizetext) | **POST** /anonymize | Anonymize Text
54
63
  *SensitiveDataProtectionApi* | [**healthCheck**](docs/SensitiveDataProtectionApi.md#healthcheck) | **GET** /health | Health
55
64
  *SensitiveDataProtectionApi* | [**scanText**](docs/SensitiveDataProtectionApi.md#scantext) | **POST** /scan | Scan Text
@@ -61,13 +70,19 @@ All URIs are relative to *https://app.quba.ae/api/sdp*
61
70
  - [AnonymizeRequestBodyRulesInner](docs/AnonymizeRequestBodyRulesInner.md)
62
71
  - [AnonymizeResponseBody](docs/AnonymizeResponseBody.md)
63
72
  - [AnonymizeResponseBodyResultsInner](docs/AnonymizeResponseBodyResultsInner.md)
73
+ - [CreatePolicyRequest](docs/CreatePolicyRequest.md)
74
+ - [DetectRule](docs/DetectRule.md)
75
+ - [DetectRuleEntitiesInner](docs/DetectRuleEntitiesInner.md)
64
76
  - [EncryptRule](docs/EncryptRule.md)
65
- - [Entities](docs/Entities.md)
66
- - [EntitiesAnyOfInner](docs/EntitiesAnyOfInner.md)
67
77
  - [HTTPValidationError](docs/HTTPValidationError.md)
78
+ - [ListPolicies200Response](docs/ListPolicies200Response.md)
68
79
  - [MaskRule](docs/MaskRule.md)
69
80
  - [ModelEntity](docs/ModelEntity.md)
70
81
  - [ModelResult](docs/ModelResult.md)
82
+ - [Policy](docs/Policy.md)
83
+ - [PolicyDocument](docs/PolicyDocument.md)
84
+ - [PolicyDocumentRulesInner](docs/PolicyDocumentRulesInner.md)
85
+ - [PolicySummary](docs/PolicySummary.md)
71
86
  - [RedactRule](docs/RedactRule.md)
72
87
  - [RegexEntity](docs/RegexEntity.md)
73
88
  - [RegexResult](docs/RegexResult.md)
@@ -78,5 +93,68 @@ All URIs are relative to *https://app.quba.ae/api/sdp*
78
93
  - [ScanResponseBody](docs/ScanResponseBody.md)
79
94
  - [ScanResult](docs/ScanResult.md)
80
95
  - [TextRange](docs/TextRange.md)
96
+ - [UpdatePolicyRequest](docs/UpdatePolicyRequest.md)
97
+ - [Usage](docs/Usage.md)
81
98
  - [ValidationError](docs/ValidationError.md)
82
99
  - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
100
+
101
+ ### Authorization
102
+
103
+
104
+ Authentication schemes defined for the API:
105
+ <a id="ApiKeyAuth"></a>
106
+ #### ApiKeyAuth
107
+
108
+
109
+ - **Type**: API key
110
+ - **API key parameter name**: `x-api-key`
111
+ - **Location**: HTTP header
112
+
113
+ ## About
114
+
115
+ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
116
+ and is automatically generated by the
117
+ [OpenAPI Generator](https://openapi-generator.tech) project:
118
+
119
+ - API version: `0.1.0`
120
+ - Package version: `0.1.0`
121
+ - Generator version: `7.18.0`
122
+ - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
123
+
124
+ The generated npm module supports the following:
125
+
126
+ - Environments
127
+ * Node.js
128
+ * Webpack
129
+ * Browserify
130
+ - Language levels
131
+ * ES5 - you must have a Promises/A+ library installed
132
+ * ES6
133
+ - Module systems
134
+ * CommonJS
135
+ * ES6 module system
136
+
137
+
138
+ ## Development
139
+
140
+ ### Building
141
+
142
+ To build the TypeScript source code, you need to have Node.js and npm installed.
143
+ After cloning the repository, navigate to the project directory and run:
144
+
145
+ ```bash
146
+ npm install
147
+ npm run build
148
+ ```
149
+
150
+ ### Publishing
151
+
152
+ Once you've built the package, you can publish it to npm:
153
+
154
+ ```bash
155
+ npm publish
156
+ ```
157
+
158
+ ## License
159
+
160
+ []()