@openfilz-sdk/typescript-ee 1.10.5 → 1.11.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.
- package/.openapi-generator/FILES +8 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +12 -3
- package/api/storage-encryption-administration-api.ts +391 -0
- package/api/workflows-api.ts +100 -11
- package/api.ts +1 -0
- package/dist/api/storage-encryption-administration-api.d.ts +198 -0
- package/dist/api/storage-encryption-administration-api.js +381 -0
- package/dist/api/workflows-api.d.ts +48 -8
- package/dist/api/workflows-api.js +94 -11
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/storage-encryption-administration-api.d.ts +198 -0
- package/dist/esm/api/storage-encryption-administration-api.js +374 -0
- package/dist/esm/api/workflows-api.d.ts +48 -8
- package/dist/esm/api/workflows-api.js +94 -11
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/job-status.d.ts +29 -0
- package/dist/esm/models/job-status.js +18 -0
- package/dist/esm/models/reencrypt-request.d.ts +31 -0
- package/dist/esm/models/reencrypt-request.js +18 -0
- package/dist/esm/models/storage-encryption-status.d.ts +36 -0
- package/dist/esm/models/storage-encryption-status.js +14 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/job-status.d.ts +29 -0
- package/dist/models/job-status.js +21 -0
- package/dist/models/reencrypt-request.d.ts +31 -0
- package/dist/models/reencrypt-request.js +21 -0
- package/dist/models/storage-encryption-status.d.ts +36 -0
- package/dist/models/storage-encryption-status.js +15 -0
- package/docs/JobStatus.md +38 -0
- package/docs/ReencryptRequest.md +24 -0
- package/docs/StorageEncryptionAdministrationApi.md +239 -0
- package/docs/StorageEncryptionStatus.md +45 -0
- package/docs/WorkflowsApi.md +60 -2
- package/graphql/document.graphqls +6 -0
- package/models/index.ts +3 -0
- package/models/job-status.ts +38 -0
- package/models/reencrypt-request.ts +40 -0
- package/models/storage-encryption-status.ts +44 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -44,6 +44,7 @@ api/scanner-proxy-api.ts
|
|
|
44
44
|
api/search-administration-api.ts
|
|
45
45
|
api/settings-api.ts
|
|
46
46
|
api/smart-filing-api.ts
|
|
47
|
+
api/storage-encryption-administration-api.ts
|
|
47
48
|
api/tus-controller-api.ts
|
|
48
49
|
api/upload-token-controller-api.ts
|
|
49
50
|
api/user-privacy-api.ts
|
|
@@ -179,6 +180,7 @@ docs/Insights.md
|
|
|
179
180
|
docs/InstantiateTemplateRequest.md
|
|
180
181
|
docs/Item.md
|
|
181
182
|
docs/ItemResult.md
|
|
183
|
+
docs/JobStatus.md
|
|
182
184
|
docs/KeyCount.md
|
|
183
185
|
docs/LicenseInfo.md
|
|
184
186
|
docs/ListAiModelsRequest.md
|
|
@@ -208,6 +210,7 @@ docs/PdfTransformAudit.md
|
|
|
208
210
|
docs/PerDefinition.md
|
|
209
211
|
docs/PublicSignatureView.md
|
|
210
212
|
docs/ReassignTaskRequest.md
|
|
213
|
+
docs/ReencryptRequest.md
|
|
211
214
|
docs/RenameAudit.md
|
|
212
215
|
docs/RenameRequest.md
|
|
213
216
|
docs/ReorganizationApplyRequest.md
|
|
@@ -257,6 +260,8 @@ docs/SplitOutput.md
|
|
|
257
260
|
docs/SplitRequest.md
|
|
258
261
|
docs/StartWorkflowRequest.md
|
|
259
262
|
docs/StorageBreakdown.md
|
|
263
|
+
docs/StorageEncryptionAdministrationApi.md
|
|
264
|
+
docs/StorageEncryptionStatus.md
|
|
260
265
|
docs/Suggest.md
|
|
261
266
|
docs/SyncBackfillStatus.md
|
|
262
267
|
docs/SyncChangesResponse.md
|
|
@@ -408,6 +413,7 @@ models/insights.ts
|
|
|
408
413
|
models/instantiate-template-request.ts
|
|
409
414
|
models/item-result.ts
|
|
410
415
|
models/item.ts
|
|
416
|
+
models/job-status.ts
|
|
411
417
|
models/key-count.ts
|
|
412
418
|
models/license-info.ts
|
|
413
419
|
models/list-ai-models-request.ts
|
|
@@ -433,6 +439,7 @@ models/pdf-transform-audit.ts
|
|
|
433
439
|
models/per-definition.ts
|
|
434
440
|
models/public-signature-view.ts
|
|
435
441
|
models/reassign-task-request.ts
|
|
442
|
+
models/reencrypt-request.ts
|
|
436
443
|
models/rename-audit.ts
|
|
437
444
|
models/rename-request.ts
|
|
438
445
|
models/reorganization-apply-request.ts
|
|
@@ -477,6 +484,7 @@ models/split-output.ts
|
|
|
477
484
|
models/split-request.ts
|
|
478
485
|
models/start-workflow-request.ts
|
|
479
486
|
models/storage-breakdown.ts
|
|
487
|
+
models/storage-encryption-status.ts
|
|
480
488
|
models/suggest.ts
|
|
481
489
|
models/sync-backfill-status.ts
|
|
482
490
|
models/sync-changes-response.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
74e4f35c94ee72e15821816d856c91ca99619adb606fbbdab2d992bf9d086915
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript-ee@1.
|
|
1
|
+
## @openfilz-sdk/typescript-ee@1.11.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript-ee@1.
|
|
39
|
+
npm install @openfilz-sdk/typescript-ee@1.11.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -248,6 +248,11 @@ Class | Method | HTTP request | Description
|
|
|
248
248
|
*SmartFilingApi* | [**lastFiling**](docs/SmartFilingApi.md#lastfiling) | **GET** /api/v1/ai/auto-file/document/{documentId} | The latest filing record of a document (the \"Filed by OpenFilz\" chip)
|
|
249
249
|
*SmartFilingApi* | [**undo**](docs/SmartFilingApi.md#undo) | **POST** /api/v1/ai/auto-file/{jobId}/undo | Move every document the job filed back where it came from
|
|
250
250
|
*SmartFilingApi* | [**undoFiling**](docs/SmartFilingApi.md#undofiling) | **POST** /api/v1/ai/auto-file/filing/{planId}/undo | Move one filed document back (the chip\'s \"Move back\")
|
|
251
|
+
*StorageEncryptionAdministrationApi* | [**attest**](docs/StorageEncryptionAdministrationApi.md#attest) | **POST** /api/v1/admin/storage/encryption/attest | Prove the customer\'s KEK is usable right now
|
|
252
|
+
*StorageEncryptionAdministrationApi* | [**reencrypt**](docs/StorageEncryptionAdministrationApi.md#reencrypt) | **POST** /api/v1/admin/storage/encryption/reencrypt | Run the re-encryption pass in the background
|
|
253
|
+
*StorageEncryptionAdministrationApi* | [**rewrap**](docs/StorageEncryptionAdministrationApi.md#rewrap) | **POST** /api/v1/admin/storage/encryption/rewrap | Re-wrap every master key under the provider\'s current KEK
|
|
254
|
+
*StorageEncryptionAdministrationApi* | [**rotateMasterKey**](docs/StorageEncryptionAdministrationApi.md#rotatemasterkey) | **POST** /api/v1/admin/storage/encryption/rotate-master-key | Create a new active master key
|
|
255
|
+
*StorageEncryptionAdministrationApi* | [**status1**](docs/StorageEncryptionAdministrationApi.md#status1) | **GET** /api/v1/admin/storage/encryption/status | Configuration, master key ring state and re-encryption pass progress
|
|
251
256
|
*TusControllerApi* | [**_options**](docs/TusControllerApi.md#_options) | **OPTIONS** /api/v1/tus | TUS capability discovery
|
|
252
257
|
*TusControllerApi* | [**cancelUpload**](docs/TusControllerApi.md#cancelupload) | **DELETE** /api/v1/tus/{uploadId} | Cancel upload
|
|
253
258
|
*TusControllerApi* | [**createUpload**](docs/TusControllerApi.md#createupload) | **POST** /api/v1/tus | Create new TUS upload
|
|
@@ -274,13 +279,14 @@ Class | Method | HTTP request | Description
|
|
|
274
279
|
*WorkflowsApi* | [**deleteDefinition**](docs/WorkflowsApi.md#deletedefinition) | **DELETE** /api/v1/workflows/definitions/{id} | Delete a workflow definition (409 while instances are running)
|
|
275
280
|
*WorkflowsApi* | [**getDefinition**](docs/WorkflowsApi.md#getdefinition) | **GET** /api/v1/workflows/definitions/{id} | Get a workflow definition
|
|
276
281
|
*WorkflowsApi* | [**getInstance**](docs/WorkflowsApi.md#getinstance) | **GET** /api/v1/workflows/instances/{id} | One instance with its snapshot spec, open task and history
|
|
277
|
-
*WorkflowsApi* | [**listDefinitions**](docs/WorkflowsApi.md#listdefinitions) | **GET** /api/v1/workflows/definitions | List workflow definitions
|
|
282
|
+
*WorkflowsApi* | [**listDefinitions**](docs/WorkflowsApi.md#listdefinitions) | **GET** /api/v1/workflows/definitions | List the workflow definitions the caller may see (mine = created by the caller)
|
|
278
283
|
*WorkflowsApi* | [**listInstances**](docs/WorkflowsApi.md#listinstances) | **GET** /api/v1/workflows/instances | List instances (monitor), newest first
|
|
279
284
|
*WorkflowsApi* | [**myTasks**](docs/WorkflowsApi.md#mytasks) | **GET** /api/v1/workflows/tasks/mine | Open tasks I can act on (by e-mail or role)
|
|
280
285
|
*WorkflowsApi* | [**myTasksCount**](docs/WorkflowsApi.md#mytaskscount) | **GET** /api/v1/workflows/tasks/mine/count | Number of open tasks I can act on (sidebar badge)
|
|
281
286
|
*WorkflowsApi* | [**reassign**](docs/WorkflowsApi.md#reassign) | **POST** /api/v1/workflows/tasks/{id}/reassign | Hand a task to other people (initiator or current candidate)
|
|
282
287
|
*WorkflowsApi* | [**start**](docs/WorkflowsApi.md#start) | **POST** /api/v1/workflows/instances | Start a workflow on a document (409 when one is already running)
|
|
283
288
|
*WorkflowsApi* | [**summary**](docs/WorkflowsApi.md#summary) | **GET** /api/v1/workflows/instances/summary | Counts for the monitor header
|
|
289
|
+
*WorkflowsApi* | [**teamDefinitions**](docs/WorkflowsApi.md#teamdefinitions) | **GET** /api/v1/workflows/team-definitions | Workflow definitions authored by the caller\'s teammates
|
|
284
290
|
*WorkflowsApi* | [**updateDefinition**](docs/WorkflowsApi.md#updatedefinition) | **PUT** /api/v1/workflows/definitions/{id} | Update a workflow definition (running instances keep their snapshot)
|
|
285
291
|
*WorkflowsApi* | [**validateDefinition**](docs/WorkflowsApi.md#validatedefinition) | **POST** /api/v1/workflows/definitions/validate | Validate a definition without saving it
|
|
286
292
|
|
|
@@ -382,6 +388,7 @@ Class | Method | HTTP request | Description
|
|
|
382
388
|
- [InstantiateTemplateRequest](docs/InstantiateTemplateRequest.md)
|
|
383
389
|
- [Item](docs/Item.md)
|
|
384
390
|
- [ItemResult](docs/ItemResult.md)
|
|
391
|
+
- [JobStatus](docs/JobStatus.md)
|
|
385
392
|
- [KeyCount](docs/KeyCount.md)
|
|
386
393
|
- [LicenseInfo](docs/LicenseInfo.md)
|
|
387
394
|
- [ListAiModelsRequest](docs/ListAiModelsRequest.md)
|
|
@@ -407,6 +414,7 @@ Class | Method | HTTP request | Description
|
|
|
407
414
|
- [PerDefinition](docs/PerDefinition.md)
|
|
408
415
|
- [PublicSignatureView](docs/PublicSignatureView.md)
|
|
409
416
|
- [ReassignTaskRequest](docs/ReassignTaskRequest.md)
|
|
417
|
+
- [ReencryptRequest](docs/ReencryptRequest.md)
|
|
410
418
|
- [RenameAudit](docs/RenameAudit.md)
|
|
411
419
|
- [RenameRequest](docs/RenameRequest.md)
|
|
412
420
|
- [ReorganizationApplyRequest](docs/ReorganizationApplyRequest.md)
|
|
@@ -451,6 +459,7 @@ Class | Method | HTTP request | Description
|
|
|
451
459
|
- [SplitRequest](docs/SplitRequest.md)
|
|
452
460
|
- [StartWorkflowRequest](docs/StartWorkflowRequest.md)
|
|
453
461
|
- [StorageBreakdown](docs/StorageBreakdown.md)
|
|
462
|
+
- [StorageEncryptionStatus](docs/StorageEncryptionStatus.md)
|
|
454
463
|
- [Suggest](docs/Suggest.md)
|
|
455
464
|
- [SyncBackfillStatus](docs/SyncBackfillStatus.md)
|
|
456
465
|
- [SyncChangesResponse](docs/SyncChangesResponse.md)
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ReencryptRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { StorageEncryptionStatus } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* StorageEncryptionAdministrationApi - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const StorageEncryptionAdministrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* One unwrap through the provider. Unlocks a locked ring when it succeeds; locks it when the provider refuses.
|
|
35
|
+
* @summary Prove the customer\'s KEK is usable right now
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
attest: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
const localVarPath = `/api/v1/admin/storage/encryption/attest`;
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
49
|
+
const localVarHeaderParameter = {} as any;
|
|
50
|
+
const localVarQueryParameter = {} as any;
|
|
51
|
+
|
|
52
|
+
// authentication keycloak_auth required
|
|
53
|
+
// http bearer authentication required
|
|
54
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
55
|
+
|
|
56
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
57
|
+
|
|
58
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
url: toPathString(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* 202 with the status once started; 409 while a pass is in progress (or nothing to resume).
|
|
69
|
+
* @summary Run the re-encryption pass in the background
|
|
70
|
+
* @param {ReencryptRequest} reencryptRequest
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
reencrypt: async (reencryptRequest: ReencryptRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
75
|
+
// verify required parameter 'reencryptRequest' is not null or undefined
|
|
76
|
+
assertParamExists('reencrypt', 'reencryptRequest', reencryptRequest)
|
|
77
|
+
const localVarPath = `/api/v1/admin/storage/encryption/reencrypt`;
|
|
78
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
80
|
+
let baseOptions;
|
|
81
|
+
if (configuration) {
|
|
82
|
+
baseOptions = configuration.baseOptions;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
86
|
+
const localVarHeaderParameter = {} as any;
|
|
87
|
+
const localVarQueryParameter = {} as any;
|
|
88
|
+
|
|
89
|
+
// authentication keycloak_auth required
|
|
90
|
+
// http bearer authentication required
|
|
91
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
92
|
+
|
|
93
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
95
|
+
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reencryptRequest, localVarRequestOptions, configuration)
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
url: toPathString(localVarUrlObj),
|
|
103
|
+
options: localVarRequestOptions,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* After the customer rotated the KEK in their KMS. One wrap per master key; no object is touched.
|
|
108
|
+
* @summary Re-wrap every master key under the provider\'s current KEK
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
rewrap: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
113
|
+
const localVarPath = `/api/v1/admin/storage/encryption/rewrap`;
|
|
114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
116
|
+
let baseOptions;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
122
|
+
const localVarHeaderParameter = {} as any;
|
|
123
|
+
const localVarQueryParameter = {} as any;
|
|
124
|
+
|
|
125
|
+
// authentication keycloak_auth required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
128
|
+
|
|
129
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
130
|
+
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
url: toPathString(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
/**
|
|
141
|
+
* New objects are wrapped with it; every older key stays readable. No object is rewritten.
|
|
142
|
+
* @summary Create a new active master key
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
rotateMasterKey: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
|
+
const localVarPath = `/api/v1/admin/storage/encryption/rotate-master-key`;
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
if (configuration) {
|
|
152
|
+
baseOptions = configuration.baseOptions;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
156
|
+
const localVarHeaderParameter = {} as any;
|
|
157
|
+
const localVarQueryParameter = {} as any;
|
|
158
|
+
|
|
159
|
+
// authentication keycloak_auth required
|
|
160
|
+
// http bearer authentication required
|
|
161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
|
+
|
|
163
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
164
|
+
|
|
165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary Configuration, master key ring state and re-encryption pass progress
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
status1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
181
|
+
const localVarPath = `/api/v1/admin/storage/encryption/status`;
|
|
182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
184
|
+
let baseOptions;
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
190
|
+
const localVarHeaderParameter = {} as any;
|
|
191
|
+
const localVarQueryParameter = {} as any;
|
|
192
|
+
|
|
193
|
+
// authentication keycloak_auth required
|
|
194
|
+
// http bearer authentication required
|
|
195
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
196
|
+
|
|
197
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
198
|
+
|
|
199
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
202
|
+
|
|
203
|
+
return {
|
|
204
|
+
url: toPathString(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* StorageEncryptionAdministrationApi - functional programming interface
|
|
213
|
+
*/
|
|
214
|
+
export const StorageEncryptionAdministrationApiFp = function(configuration?: Configuration) {
|
|
215
|
+
const localVarAxiosParamCreator = StorageEncryptionAdministrationApiAxiosParamCreator(configuration)
|
|
216
|
+
return {
|
|
217
|
+
/**
|
|
218
|
+
* One unwrap through the provider. Unlocks a locked ring when it succeeds; locks it when the provider refuses.
|
|
219
|
+
* @summary Prove the customer\'s KEK is usable right now
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
async attest(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attest(options);
|
|
225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
226
|
+
const localVarOperationServerBasePath = operationServerMap['StorageEncryptionAdministrationApi.attest']?.[localVarOperationServerIndex]?.url;
|
|
227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* 202 with the status once started; 409 while a pass is in progress (or nothing to resume).
|
|
231
|
+
* @summary Run the re-encryption pass in the background
|
|
232
|
+
* @param {ReencryptRequest} reencryptRequest
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
async reencrypt(reencryptRequest: ReencryptRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageEncryptionStatus>> {
|
|
237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reencrypt(reencryptRequest, options);
|
|
238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
239
|
+
const localVarOperationServerBasePath = operationServerMap['StorageEncryptionAdministrationApi.reencrypt']?.[localVarOperationServerIndex]?.url;
|
|
240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* After the customer rotated the KEK in their KMS. One wrap per master key; no object is touched.
|
|
244
|
+
* @summary Re-wrap every master key under the provider\'s current KEK
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
async rewrap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: number; }>> {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rewrap(options);
|
|
250
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
251
|
+
const localVarOperationServerBasePath = operationServerMap['StorageEncryptionAdministrationApi.rewrap']?.[localVarOperationServerIndex]?.url;
|
|
252
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* New objects are wrapped with it; every older key stays readable. No object is rewritten.
|
|
256
|
+
* @summary Create a new active master key
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
async rotateMasterKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: string; }>> {
|
|
261
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rotateMasterKey(options);
|
|
262
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
263
|
+
const localVarOperationServerBasePath = operationServerMap['StorageEncryptionAdministrationApi.rotateMasterKey']?.[localVarOperationServerIndex]?.url;
|
|
264
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @summary Configuration, master key ring state and re-encryption pass progress
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
async status1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorageEncryptionStatus>> {
|
|
273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.status1(options);
|
|
274
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
275
|
+
const localVarOperationServerBasePath = operationServerMap['StorageEncryptionAdministrationApi.status1']?.[localVarOperationServerIndex]?.url;
|
|
276
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
|
+
},
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* StorageEncryptionAdministrationApi - factory interface
|
|
283
|
+
*/
|
|
284
|
+
export const StorageEncryptionAdministrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
285
|
+
const localVarFp = StorageEncryptionAdministrationApiFp(configuration)
|
|
286
|
+
return {
|
|
287
|
+
/**
|
|
288
|
+
* One unwrap through the provider. Unlocks a locked ring when it succeeds; locks it when the provider refuses.
|
|
289
|
+
* @summary Prove the customer\'s KEK is usable right now
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
attest(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
294
|
+
return localVarFp.attest(options).then((request) => request(axios, basePath));
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* 202 with the status once started; 409 while a pass is in progress (or nothing to resume).
|
|
298
|
+
* @summary Run the re-encryption pass in the background
|
|
299
|
+
* @param {ReencryptRequest} reencryptRequest
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
reencrypt(reencryptRequest: ReencryptRequest, options?: RawAxiosRequestConfig): AxiosPromise<StorageEncryptionStatus> {
|
|
304
|
+
return localVarFp.reencrypt(reencryptRequest, options).then((request) => request(axios, basePath));
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* After the customer rotated the KEK in their KMS. One wrap per master key; no object is touched.
|
|
308
|
+
* @summary Re-wrap every master key under the provider\'s current KEK
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
rewrap(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: number; }> {
|
|
313
|
+
return localVarFp.rewrap(options).then((request) => request(axios, basePath));
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* New objects are wrapped with it; every older key stays readable. No object is rewritten.
|
|
317
|
+
* @summary Create a new active master key
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
rotateMasterKey(options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: string; }> {
|
|
322
|
+
return localVarFp.rotateMasterKey(options).then((request) => request(axios, basePath));
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Configuration, master key ring state and re-encryption pass progress
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
status1(options?: RawAxiosRequestConfig): AxiosPromise<StorageEncryptionStatus> {
|
|
331
|
+
return localVarFp.status1(options).then((request) => request(axios, basePath));
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* StorageEncryptionAdministrationApi - object-oriented interface
|
|
338
|
+
*/
|
|
339
|
+
export class StorageEncryptionAdministrationApi extends BaseAPI {
|
|
340
|
+
/**
|
|
341
|
+
* One unwrap through the provider. Unlocks a locked ring when it succeeds; locks it when the provider refuses.
|
|
342
|
+
* @summary Prove the customer\'s KEK is usable right now
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
public attest(options?: RawAxiosRequestConfig) {
|
|
347
|
+
return StorageEncryptionAdministrationApiFp(this.configuration).attest(options).then((request) => request(this.axios, this.basePath));
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* 202 with the status once started; 409 while a pass is in progress (or nothing to resume).
|
|
352
|
+
* @summary Run the re-encryption pass in the background
|
|
353
|
+
* @param {ReencryptRequest} reencryptRequest
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
public reencrypt(reencryptRequest: ReencryptRequest, options?: RawAxiosRequestConfig) {
|
|
358
|
+
return StorageEncryptionAdministrationApiFp(this.configuration).reencrypt(reencryptRequest, options).then((request) => request(this.axios, this.basePath));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* After the customer rotated the KEK in their KMS. One wrap per master key; no object is touched.
|
|
363
|
+
* @summary Re-wrap every master key under the provider\'s current KEK
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
public rewrap(options?: RawAxiosRequestConfig) {
|
|
368
|
+
return StorageEncryptionAdministrationApiFp(this.configuration).rewrap(options).then((request) => request(this.axios, this.basePath));
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* New objects are wrapped with it; every older key stays readable. No object is rewritten.
|
|
373
|
+
* @summary Create a new active master key
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
public rotateMasterKey(options?: RawAxiosRequestConfig) {
|
|
378
|
+
return StorageEncryptionAdministrationApiFp(this.configuration).rotateMasterKey(options).then((request) => request(this.axios, this.basePath));
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @summary Configuration, master key ring state and re-encryption pass progress
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
public status1(options?: RawAxiosRequestConfig) {
|
|
388
|
+
return StorageEncryptionAdministrationApiFp(this.configuration).status1(options).then((request) => request(this.axios, this.basePath));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|