@openfilz-sdk/typescript-ee 1.10.6 → 1.12.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 (50) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +13 -3
  4. package/api/search-administration-api.ts +65 -0
  5. package/api/storage-encryption-administration-api.ts +391 -0
  6. package/api/workflows-api.ts +100 -11
  7. package/api.ts +1 -0
  8. package/dist/api/search-administration-api.d.ts +28 -0
  9. package/dist/api/search-administration-api.js +62 -0
  10. package/dist/api/storage-encryption-administration-api.d.ts +198 -0
  11. package/dist/api/storage-encryption-administration-api.js +381 -0
  12. package/dist/api/workflows-api.d.ts +48 -8
  13. package/dist/api/workflows-api.js +94 -11
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/esm/api/search-administration-api.d.ts +28 -0
  17. package/dist/esm/api/search-administration-api.js +62 -0
  18. package/dist/esm/api/storage-encryption-administration-api.d.ts +198 -0
  19. package/dist/esm/api/storage-encryption-administration-api.js +374 -0
  20. package/dist/esm/api/workflows-api.d.ts +48 -8
  21. package/dist/esm/api/workflows-api.js +94 -11
  22. package/dist/esm/api.d.ts +1 -0
  23. package/dist/esm/api.js +1 -0
  24. package/dist/esm/models/index.d.ts +3 -0
  25. package/dist/esm/models/index.js +3 -0
  26. package/dist/esm/models/job-status.d.ts +29 -0
  27. package/dist/esm/models/job-status.js +18 -0
  28. package/dist/esm/models/reencrypt-request.d.ts +31 -0
  29. package/dist/esm/models/reencrypt-request.js +18 -0
  30. package/dist/esm/models/storage-encryption-status.d.ts +36 -0
  31. package/dist/esm/models/storage-encryption-status.js +14 -0
  32. package/dist/models/index.d.ts +3 -0
  33. package/dist/models/index.js +3 -0
  34. package/dist/models/job-status.d.ts +29 -0
  35. package/dist/models/job-status.js +21 -0
  36. package/dist/models/reencrypt-request.d.ts +31 -0
  37. package/dist/models/reencrypt-request.js +21 -0
  38. package/dist/models/storage-encryption-status.d.ts +36 -0
  39. package/dist/models/storage-encryption-status.js +15 -0
  40. package/docs/JobStatus.md +38 -0
  41. package/docs/ReencryptRequest.md +24 -0
  42. package/docs/SearchAdministrationApi.md +45 -0
  43. package/docs/StorageEncryptionAdministrationApi.md +239 -0
  44. package/docs/StorageEncryptionStatus.md +45 -0
  45. package/docs/WorkflowsApi.md +60 -2
  46. package/models/index.ts +3 -0
  47. package/models/job-status.ts +38 -0
  48. package/models/reencrypt-request.ts +40 -0
  49. package/models/storage-encryption-status.ts +44 -0
  50. package/package.json +1 -1
@@ -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
- c9f45289588f38a21ebda595b05e52475deedab330696fc785210b01d60d67f0
1
+ 2c24b3fdacf559e1f4b6efd5995db339719266806676cc522f739eff0921d4db
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript-ee@1.10.6
1
+ ## @openfilz-sdk/typescript-ee@1.12.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.10.6 --save
39
+ npm install @openfilz-sdk/typescript-ee@1.12.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -235,6 +235,7 @@ Class | Method | HTTP request | Description
235
235
  *SearchAdministrationApi* | [**createIndex**](docs/SearchAdministrationApi.md#createindex) | **POST** /api/v1/admin/search | Create search index
236
236
  *SearchAdministrationApi* | [**deleteIndex**](docs/SearchAdministrationApi.md#deleteindex) | **DELETE** /api/v1/admin/search | Delete search index
237
237
  *SearchAdministrationApi* | [**getStatus**](docs/SearchAdministrationApi.md#getstatus) | **GET** /api/v1/admin/search/status | Get reindexation status
238
+ *SearchAdministrationApi* | [**refreshMetadata**](docs/SearchAdministrationApi.md#refreshmetadata) | **POST** /api/v1/admin/search/refresh-metadata | Refresh index metadata
238
239
  *SearchAdministrationApi* | [**reindexAll**](docs/SearchAdministrationApi.md#reindexall) | **POST** /api/v1/admin/search/reindex | Reindex all documents
239
240
  *SettingsApi* | [**get2**](docs/SettingsApi.md#get2) | **GET** /api/v1/settings/ai/preferences | The caller\'s smart-filing preferences
240
241
  *SettingsApi* | [**getLicenseInfo**](docs/SettingsApi.md#getlicenseinfo) | **GET** /api/v1/settings/license | Coarse license info
@@ -248,6 +249,11 @@ Class | Method | HTTP request | Description
248
249
  *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
250
  *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
251
  *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\")
252
+ *StorageEncryptionAdministrationApi* | [**attest**](docs/StorageEncryptionAdministrationApi.md#attest) | **POST** /api/v1/admin/storage/encryption/attest | Prove the customer\'s KEK is usable right now
253
+ *StorageEncryptionAdministrationApi* | [**reencrypt**](docs/StorageEncryptionAdministrationApi.md#reencrypt) | **POST** /api/v1/admin/storage/encryption/reencrypt | Run the re-encryption pass in the background
254
+ *StorageEncryptionAdministrationApi* | [**rewrap**](docs/StorageEncryptionAdministrationApi.md#rewrap) | **POST** /api/v1/admin/storage/encryption/rewrap | Re-wrap every master key under the provider\'s current KEK
255
+ *StorageEncryptionAdministrationApi* | [**rotateMasterKey**](docs/StorageEncryptionAdministrationApi.md#rotatemasterkey) | **POST** /api/v1/admin/storage/encryption/rotate-master-key | Create a new active master key
256
+ *StorageEncryptionAdministrationApi* | [**status1**](docs/StorageEncryptionAdministrationApi.md#status1) | **GET** /api/v1/admin/storage/encryption/status | Configuration, master key ring state and re-encryption pass progress
251
257
  *TusControllerApi* | [**_options**](docs/TusControllerApi.md#_options) | **OPTIONS** /api/v1/tus | TUS capability discovery
252
258
  *TusControllerApi* | [**cancelUpload**](docs/TusControllerApi.md#cancelupload) | **DELETE** /api/v1/tus/{uploadId} | Cancel upload
253
259
  *TusControllerApi* | [**createUpload**](docs/TusControllerApi.md#createupload) | **POST** /api/v1/tus | Create new TUS upload
@@ -274,13 +280,14 @@ Class | Method | HTTP request | Description
274
280
  *WorkflowsApi* | [**deleteDefinition**](docs/WorkflowsApi.md#deletedefinition) | **DELETE** /api/v1/workflows/definitions/{id} | Delete a workflow definition (409 while instances are running)
275
281
  *WorkflowsApi* | [**getDefinition**](docs/WorkflowsApi.md#getdefinition) | **GET** /api/v1/workflows/definitions/{id} | Get a workflow definition
276
282
  *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
283
+ *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
284
  *WorkflowsApi* | [**listInstances**](docs/WorkflowsApi.md#listinstances) | **GET** /api/v1/workflows/instances | List instances (monitor), newest first
279
285
  *WorkflowsApi* | [**myTasks**](docs/WorkflowsApi.md#mytasks) | **GET** /api/v1/workflows/tasks/mine | Open tasks I can act on (by e-mail or role)
280
286
  *WorkflowsApi* | [**myTasksCount**](docs/WorkflowsApi.md#mytaskscount) | **GET** /api/v1/workflows/tasks/mine/count | Number of open tasks I can act on (sidebar badge)
281
287
  *WorkflowsApi* | [**reassign**](docs/WorkflowsApi.md#reassign) | **POST** /api/v1/workflows/tasks/{id}/reassign | Hand a task to other people (initiator or current candidate)
282
288
  *WorkflowsApi* | [**start**](docs/WorkflowsApi.md#start) | **POST** /api/v1/workflows/instances | Start a workflow on a document (409 when one is already running)
283
289
  *WorkflowsApi* | [**summary**](docs/WorkflowsApi.md#summary) | **GET** /api/v1/workflows/instances/summary | Counts for the monitor header
290
+ *WorkflowsApi* | [**teamDefinitions**](docs/WorkflowsApi.md#teamdefinitions) | **GET** /api/v1/workflows/team-definitions | Workflow definitions authored by the caller\'s teammates
284
291
  *WorkflowsApi* | [**updateDefinition**](docs/WorkflowsApi.md#updatedefinition) | **PUT** /api/v1/workflows/definitions/{id} | Update a workflow definition (running instances keep their snapshot)
285
292
  *WorkflowsApi* | [**validateDefinition**](docs/WorkflowsApi.md#validatedefinition) | **POST** /api/v1/workflows/definitions/validate | Validate a definition without saving it
286
293
 
@@ -382,6 +389,7 @@ Class | Method | HTTP request | Description
382
389
  - [InstantiateTemplateRequest](docs/InstantiateTemplateRequest.md)
383
390
  - [Item](docs/Item.md)
384
391
  - [ItemResult](docs/ItemResult.md)
392
+ - [JobStatus](docs/JobStatus.md)
385
393
  - [KeyCount](docs/KeyCount.md)
386
394
  - [LicenseInfo](docs/LicenseInfo.md)
387
395
  - [ListAiModelsRequest](docs/ListAiModelsRequest.md)
@@ -407,6 +415,7 @@ Class | Method | HTTP request | Description
407
415
  - [PerDefinition](docs/PerDefinition.md)
408
416
  - [PublicSignatureView](docs/PublicSignatureView.md)
409
417
  - [ReassignTaskRequest](docs/ReassignTaskRequest.md)
418
+ - [ReencryptRequest](docs/ReencryptRequest.md)
410
419
  - [RenameAudit](docs/RenameAudit.md)
411
420
  - [RenameRequest](docs/RenameRequest.md)
412
421
  - [ReorganizationApplyRequest](docs/ReorganizationApplyRequest.md)
@@ -451,6 +460,7 @@ Class | Method | HTTP request | Description
451
460
  - [SplitRequest](docs/SplitRequest.md)
452
461
  - [StartWorkflowRequest](docs/StartWorkflowRequest.md)
453
462
  - [StorageBreakdown](docs/StorageBreakdown.md)
463
+ - [StorageEncryptionStatus](docs/StorageEncryptionStatus.md)
454
464
  - [Suggest](docs/Suggest.md)
455
465
  - [SyncBackfillStatus](docs/SyncBackfillStatus.md)
456
466
  - [SyncChangesResponse](docs/SyncChangesResponse.md)
@@ -128,6 +128,40 @@ export const SearchAdministrationApiAxiosParamCreator = function (configuration?
128
128
  options: localVarRequestOptions,
129
129
  };
130
130
  },
131
+ /**
132
+ * Rewrites the metadata fields of every indexed document from the database — no text extraction, no AI, no downtime. Runs asynchronously in the background.
133
+ * @summary Refresh index metadata
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ refreshMetadata: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
138
+ const localVarPath = `/api/v1/admin/search/refresh-metadata`;
139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
141
+ let baseOptions;
142
+ if (configuration) {
143
+ baseOptions = configuration.baseOptions;
144
+ }
145
+
146
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
147
+ const localVarHeaderParameter = {} as any;
148
+ const localVarQueryParameter = {} as any;
149
+
150
+ // authentication keycloak_auth required
151
+ // http bearer authentication required
152
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
153
+
154
+ localVarHeaderParameter['Accept'] = '*/*';
155
+
156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
159
+
160
+ return {
161
+ url: toPathString(localVarUrlObj),
162
+ options: localVarRequestOptions,
163
+ };
164
+ },
131
165
  /**
132
166
  * Triggers a full reindexation of all documents. Runs asynchronously in the background.
133
167
  * @summary Reindex all documents
@@ -207,6 +241,18 @@ export const SearchAdministrationApiFp = function(configuration?: Configuration)
207
241
  const localVarOperationServerBasePath = operationServerMap['SearchAdministrationApi.getStatus']?.[localVarOperationServerIndex]?.url;
208
242
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
209
243
  },
244
+ /**
245
+ * Rewrites the metadata fields of every indexed document from the database — no text extraction, no AI, no downtime. Runs asynchronously in the background.
246
+ * @summary Refresh index metadata
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ async refreshMetadata(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.refreshMetadata(options);
252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
253
+ const localVarOperationServerBasePath = operationServerMap['SearchAdministrationApi.refreshMetadata']?.[localVarOperationServerIndex]?.url;
254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
255
+ },
210
256
  /**
211
257
  * Triggers a full reindexation of all documents. Runs asynchronously in the background.
212
258
  * @summary Reindex all documents
@@ -255,6 +301,15 @@ export const SearchAdministrationApiFactory = function (configuration?: Configur
255
301
  getStatus(options?: RawAxiosRequestConfig): AxiosPromise<object> {
256
302
  return localVarFp.getStatus(options).then((request) => request(axios, basePath));
257
303
  },
304
+ /**
305
+ * Rewrites the metadata fields of every indexed document from the database — no text extraction, no AI, no downtime. Runs asynchronously in the background.
306
+ * @summary Refresh index metadata
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ refreshMetadata(options?: RawAxiosRequestConfig): AxiosPromise<object> {
311
+ return localVarFp.refreshMetadata(options).then((request) => request(axios, basePath));
312
+ },
258
313
  /**
259
314
  * Triggers a full reindexation of all documents. Runs asynchronously in the background.
260
315
  * @summary Reindex all documents
@@ -301,6 +356,16 @@ export class SearchAdministrationApi extends BaseAPI {
301
356
  return SearchAdministrationApiFp(this.configuration).getStatus(options).then((request) => request(this.axios, this.basePath));
302
357
  }
303
358
 
359
+ /**
360
+ * Rewrites the metadata fields of every indexed document from the database — no text extraction, no AI, no downtime. Runs asynchronously in the background.
361
+ * @summary Refresh index metadata
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ public refreshMetadata(options?: RawAxiosRequestConfig) {
366
+ return SearchAdministrationApiFp(this.configuration).refreshMetadata(options).then((request) => request(this.axios, this.basePath));
367
+ }
368
+
304
369
  /**
305
370
  * Triggers a full reindexation of all documents. Runs asynchronously in the background.
306
371
  * @summary Reindex all documents
@@ -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
+