@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ReencryptRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**mode** | **string** | LEGACY: plaintext objects only (after switching the feature on); MASTER_KEY: objects written under targetKeyId; ALL: everything | [default to undefined]
|
|
9
|
+
**targetKeyId** | **string** | MASTER_KEY mode: the master key whose objects are rewritten under the active key | [optional] [default to undefined]
|
|
10
|
+
**resume** | **boolean** | Continue an unfinished or failed pass of the same mode instead of starting over | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReencryptRequest } from '@openfilz-sdk/typescript-ee';
|
|
16
|
+
|
|
17
|
+
const instance: ReencryptRequest = {
|
|
18
|
+
mode,
|
|
19
|
+
targetKeyId,
|
|
20
|
+
resume,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
# StorageEncryptionAdministrationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**attest**](#attest) | **POST** /api/v1/admin/storage/encryption/attest | Prove the customer\'s KEK is usable right now|
|
|
8
|
+
|[**reencrypt**](#reencrypt) | **POST** /api/v1/admin/storage/encryption/reencrypt | Run the re-encryption pass in the background|
|
|
9
|
+
|[**rewrap**](#rewrap) | **POST** /api/v1/admin/storage/encryption/rewrap | Re-wrap every master key under the provider\'s current KEK|
|
|
10
|
+
|[**rotateMasterKey**](#rotatemasterkey) | **POST** /api/v1/admin/storage/encryption/rotate-master-key | Create a new active master key|
|
|
11
|
+
|[**status1**](#status1) | **GET** /api/v1/admin/storage/encryption/status | Configuration, master key ring state and re-encryption pass progress|
|
|
12
|
+
|
|
13
|
+
# **attest**
|
|
14
|
+
> { [key: string]: any; } attest()
|
|
15
|
+
|
|
16
|
+
One unwrap through the provider. Unlocks a locked ring when it succeeds; locks it when the provider refuses.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
StorageEncryptionAdministrationApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new StorageEncryptionAdministrationApi(configuration);
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.attest();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
This endpoint does not have any parameters.
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Return type
|
|
37
|
+
|
|
38
|
+
**{ [key: string]: any; }**
|
|
39
|
+
|
|
40
|
+
### Authorization
|
|
41
|
+
|
|
42
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
43
|
+
|
|
44
|
+
### HTTP request headers
|
|
45
|
+
|
|
46
|
+
- **Content-Type**: Not defined
|
|
47
|
+
- **Accept**: */*
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### HTTP response details
|
|
51
|
+
| Status code | Description | Response headers |
|
|
52
|
+
|-------------|-------------|------------------|
|
|
53
|
+
|**200** | OK | - |
|
|
54
|
+
|
|
55
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
56
|
+
|
|
57
|
+
# **reencrypt**
|
|
58
|
+
> StorageEncryptionStatus reencrypt(reencryptRequest)
|
|
59
|
+
|
|
60
|
+
202 with the status once started; 409 while a pass is in progress (or nothing to resume).
|
|
61
|
+
|
|
62
|
+
### Example
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import {
|
|
66
|
+
StorageEncryptionAdministrationApi,
|
|
67
|
+
Configuration,
|
|
68
|
+
ReencryptRequest
|
|
69
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
70
|
+
|
|
71
|
+
const configuration = new Configuration();
|
|
72
|
+
const apiInstance = new StorageEncryptionAdministrationApi(configuration);
|
|
73
|
+
|
|
74
|
+
let reencryptRequest: ReencryptRequest; //
|
|
75
|
+
|
|
76
|
+
const { status, data } = await apiInstance.reencrypt(
|
|
77
|
+
reencryptRequest
|
|
78
|
+
);
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Parameters
|
|
82
|
+
|
|
83
|
+
|Name | Type | Description | Notes|
|
|
84
|
+
|------------- | ------------- | ------------- | -------------|
|
|
85
|
+
| **reencryptRequest** | **ReencryptRequest**| | |
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Return type
|
|
89
|
+
|
|
90
|
+
**StorageEncryptionStatus**
|
|
91
|
+
|
|
92
|
+
### Authorization
|
|
93
|
+
|
|
94
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
95
|
+
|
|
96
|
+
### HTTP request headers
|
|
97
|
+
|
|
98
|
+
- **Content-Type**: application/json
|
|
99
|
+
- **Accept**: */*
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### HTTP response details
|
|
103
|
+
| Status code | Description | Response headers |
|
|
104
|
+
|-------------|-------------|------------------|
|
|
105
|
+
|**200** | OK | - |
|
|
106
|
+
|
|
107
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
108
|
+
|
|
109
|
+
# **rewrap**
|
|
110
|
+
> { [key: string]: number; } rewrap()
|
|
111
|
+
|
|
112
|
+
After the customer rotated the KEK in their KMS. One wrap per master key; no object is touched.
|
|
113
|
+
|
|
114
|
+
### Example
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
import {
|
|
118
|
+
StorageEncryptionAdministrationApi,
|
|
119
|
+
Configuration
|
|
120
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
121
|
+
|
|
122
|
+
const configuration = new Configuration();
|
|
123
|
+
const apiInstance = new StorageEncryptionAdministrationApi(configuration);
|
|
124
|
+
|
|
125
|
+
const { status, data } = await apiInstance.rewrap();
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Parameters
|
|
129
|
+
This endpoint does not have any parameters.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
**{ [key: string]: number; }**
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: */*
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### HTTP response details
|
|
147
|
+
| Status code | Description | Response headers |
|
|
148
|
+
|-------------|-------------|------------------|
|
|
149
|
+
|**200** | OK | - |
|
|
150
|
+
|
|
151
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
152
|
+
|
|
153
|
+
# **rotateMasterKey**
|
|
154
|
+
> { [key: string]: string; } rotateMasterKey()
|
|
155
|
+
|
|
156
|
+
New objects are wrapped with it; every older key stays readable. No object is rewritten.
|
|
157
|
+
|
|
158
|
+
### Example
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
import {
|
|
162
|
+
StorageEncryptionAdministrationApi,
|
|
163
|
+
Configuration
|
|
164
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
165
|
+
|
|
166
|
+
const configuration = new Configuration();
|
|
167
|
+
const apiInstance = new StorageEncryptionAdministrationApi(configuration);
|
|
168
|
+
|
|
169
|
+
const { status, data } = await apiInstance.rotateMasterKey();
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Parameters
|
|
173
|
+
This endpoint does not have any parameters.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Return type
|
|
177
|
+
|
|
178
|
+
**{ [key: string]: string; }**
|
|
179
|
+
|
|
180
|
+
### Authorization
|
|
181
|
+
|
|
182
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
183
|
+
|
|
184
|
+
### HTTP request headers
|
|
185
|
+
|
|
186
|
+
- **Content-Type**: Not defined
|
|
187
|
+
- **Accept**: */*
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### HTTP response details
|
|
191
|
+
| Status code | Description | Response headers |
|
|
192
|
+
|-------------|-------------|------------------|
|
|
193
|
+
|**200** | OK | - |
|
|
194
|
+
|
|
195
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
196
|
+
|
|
197
|
+
# **status1**
|
|
198
|
+
> StorageEncryptionStatus status1()
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Example
|
|
202
|
+
|
|
203
|
+
```typescript
|
|
204
|
+
import {
|
|
205
|
+
StorageEncryptionAdministrationApi,
|
|
206
|
+
Configuration
|
|
207
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
208
|
+
|
|
209
|
+
const configuration = new Configuration();
|
|
210
|
+
const apiInstance = new StorageEncryptionAdministrationApi(configuration);
|
|
211
|
+
|
|
212
|
+
const { status, data } = await apiInstance.status1();
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
This endpoint does not have any parameters.
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Return type
|
|
220
|
+
|
|
221
|
+
**StorageEncryptionStatus**
|
|
222
|
+
|
|
223
|
+
### Authorization
|
|
224
|
+
|
|
225
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
226
|
+
|
|
227
|
+
### HTTP request headers
|
|
228
|
+
|
|
229
|
+
- **Content-Type**: Not defined
|
|
230
|
+
- **Accept**: */*
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### HTTP response details
|
|
234
|
+
| Status code | Description | Response headers |
|
|
235
|
+
|-------------|-------------|------------------|
|
|
236
|
+
|**200** | OK | - |
|
|
237
|
+
|
|
238
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
239
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# StorageEncryptionStatus
|
|
2
|
+
|
|
3
|
+
Storage encryption: configuration, master key ring state and the re-encryption pass
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**provider** | **string** | Key-wrap provider: local, vault-transit, aws-kms, azure-keyvault, scaleway-kms | [optional] [default to undefined]
|
|
11
|
+
**chunkSize** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**masterKeyTtl** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**attestationInterval** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**attestationGrace** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**locked** | **boolean** | True while the customer\'s KEK is unavailable: content answers 423 Locked | [optional] [default to undefined]
|
|
16
|
+
**lockReason** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**lockedSince** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**activeKeyId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**keysLoaded** | **number** | | [optional] [default to undefined]
|
|
20
|
+
**lastAttestation** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**job** | [**JobStatus**](JobStatus.md) | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { StorageEncryptionStatus } from '@openfilz-sdk/typescript-ee';
|
|
27
|
+
|
|
28
|
+
const instance: StorageEncryptionStatus = {
|
|
29
|
+
enabled,
|
|
30
|
+
provider,
|
|
31
|
+
chunkSize,
|
|
32
|
+
masterKeyTtl,
|
|
33
|
+
attestationInterval,
|
|
34
|
+
attestationGrace,
|
|
35
|
+
locked,
|
|
36
|
+
lockReason,
|
|
37
|
+
lockedSince,
|
|
38
|
+
activeKeyId,
|
|
39
|
+
keysLoaded,
|
|
40
|
+
lastAttestation,
|
|
41
|
+
job,
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/WorkflowsApi.md
CHANGED
|
@@ -10,13 +10,14 @@ All URIs are relative to *http://localhost:8081*
|
|
|
10
10
|
|[**deleteDefinition**](#deletedefinition) | **DELETE** /api/v1/workflows/definitions/{id} | Delete a workflow definition (409 while instances are running)|
|
|
11
11
|
|[**getDefinition**](#getdefinition) | **GET** /api/v1/workflows/definitions/{id} | Get a workflow definition|
|
|
12
12
|
|[**getInstance**](#getinstance) | **GET** /api/v1/workflows/instances/{id} | One instance with its snapshot spec, open task and history|
|
|
13
|
-
|[**listDefinitions**](#listdefinitions) | **GET** /api/v1/workflows/definitions | List workflow definitions|
|
|
13
|
+
|[**listDefinitions**](#listdefinitions) | **GET** /api/v1/workflows/definitions | List the workflow definitions the caller may see (mine = created by the caller)|
|
|
14
14
|
|[**listInstances**](#listinstances) | **GET** /api/v1/workflows/instances | List instances (monitor), newest first|
|
|
15
15
|
|[**myTasks**](#mytasks) | **GET** /api/v1/workflows/tasks/mine | Open tasks I can act on (by e-mail or role)|
|
|
16
16
|
|[**myTasksCount**](#mytaskscount) | **GET** /api/v1/workflows/tasks/mine/count | Number of open tasks I can act on (sidebar badge)|
|
|
17
17
|
|[**reassign**](#reassign) | **POST** /api/v1/workflows/tasks/{id}/reassign | Hand a task to other people (initiator or current candidate)|
|
|
18
18
|
|[**start**](#start) | **POST** /api/v1/workflows/instances | Start a workflow on a document (409 when one is already running)|
|
|
19
19
|
|[**summary**](#summary) | **GET** /api/v1/workflows/instances/summary | Counts for the monitor header|
|
|
20
|
+
|[**teamDefinitions**](#teamdefinitions) | **GET** /api/v1/workflows/team-definitions | Workflow definitions authored by the caller\'s teammates|
|
|
20
21
|
|[**updateDefinition**](#updatedefinition) | **PUT** /api/v1/workflows/definitions/{id} | Update a workflow definition (running instances keep their snapshot)|
|
|
21
22
|
|[**validateDefinition**](#validatedefinition) | **POST** /api/v1/workflows/definitions/validate | Validate a definition without saving it|
|
|
22
23
|
|
|
@@ -345,9 +346,11 @@ const configuration = new Configuration();
|
|
|
345
346
|
const apiInstance = new WorkflowsApi(configuration);
|
|
346
347
|
|
|
347
348
|
let active: boolean; // (optional) (default to undefined)
|
|
349
|
+
let mine: boolean; // (optional) (default to false)
|
|
348
350
|
|
|
349
351
|
const { status, data } = await apiInstance.listDefinitions(
|
|
350
|
-
active
|
|
352
|
+
active,
|
|
353
|
+
mine
|
|
351
354
|
);
|
|
352
355
|
```
|
|
353
356
|
|
|
@@ -356,6 +359,7 @@ const { status, data } = await apiInstance.listDefinitions(
|
|
|
356
359
|
|Name | Type | Description | Notes|
|
|
357
360
|
|------------- | ------------- | ------------- | -------------|
|
|
358
361
|
| **active** | [**boolean**] | | (optional) defaults to undefined|
|
|
362
|
+
| **mine** | [**boolean**] | | (optional) defaults to false|
|
|
359
363
|
|
|
360
364
|
|
|
361
365
|
### Return type
|
|
@@ -677,6 +681,60 @@ This endpoint does not have any parameters.
|
|
|
677
681
|
- **Accept**: application/json
|
|
678
682
|
|
|
679
683
|
|
|
684
|
+
### HTTP response details
|
|
685
|
+
| Status code | Description | Response headers |
|
|
686
|
+
|-------------|-------------|------------------|
|
|
687
|
+
|**200** | OK | - |
|
|
688
|
+
|
|
689
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
690
|
+
|
|
691
|
+
# **teamDefinitions**
|
|
692
|
+
> Array<WorkflowDefinitionDTO> teamDefinitions()
|
|
693
|
+
|
|
694
|
+
All of the caller\'s teams, or only teamId (404 when the caller is not a member of it). The caller\'s own definitions are not included — see GET /definitions?mine=true.
|
|
695
|
+
|
|
696
|
+
### Example
|
|
697
|
+
|
|
698
|
+
```typescript
|
|
699
|
+
import {
|
|
700
|
+
WorkflowsApi,
|
|
701
|
+
Configuration
|
|
702
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
703
|
+
|
|
704
|
+
const configuration = new Configuration();
|
|
705
|
+
const apiInstance = new WorkflowsApi(configuration);
|
|
706
|
+
|
|
707
|
+
let teamId: string; // (optional) (default to undefined)
|
|
708
|
+
let active: boolean; // (optional) (default to undefined)
|
|
709
|
+
|
|
710
|
+
const { status, data } = await apiInstance.teamDefinitions(
|
|
711
|
+
teamId,
|
|
712
|
+
active
|
|
713
|
+
);
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
### Parameters
|
|
717
|
+
|
|
718
|
+
|Name | Type | Description | Notes|
|
|
719
|
+
|------------- | ------------- | ------------- | -------------|
|
|
720
|
+
| **teamId** | [**string**] | | (optional) defaults to undefined|
|
|
721
|
+
| **active** | [**boolean**] | | (optional) defaults to undefined|
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
### Return type
|
|
725
|
+
|
|
726
|
+
**Array<WorkflowDefinitionDTO>**
|
|
727
|
+
|
|
728
|
+
### Authorization
|
|
729
|
+
|
|
730
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
731
|
+
|
|
732
|
+
### HTTP request headers
|
|
733
|
+
|
|
734
|
+
- **Content-Type**: Not defined
|
|
735
|
+
- **Accept**: application/json
|
|
736
|
+
|
|
737
|
+
|
|
680
738
|
### HTTP response details
|
|
681
739
|
| Status code | Description | Response headers |
|
|
682
740
|
|-------------|-------------|------------------|
|
|
@@ -13,6 +13,12 @@ type Query {
|
|
|
13
13
|
count(request: ListFolderRequest): Long
|
|
14
14
|
listFavorites(request: FavoriteRequest!): [FolderElementInfo]
|
|
15
15
|
countFavorites(request: FavoriteRequest): Long
|
|
16
|
+
"Count the documents across all folders (listAllFolder's filters; favorite: true counts the favorites)"
|
|
17
|
+
countAllFolder(request: ListFolderRequest): Long
|
|
18
|
+
"0-based index of a document in the listFolder listing the request describes (same filters and sort, paging ignored); null when the listing does not contain it"
|
|
19
|
+
listFolderPosition(request: ListFolderRequest!, documentId: UUID!): Long
|
|
20
|
+
"0-based index of a document in the listAllFolder listing the request describes (same filters and sort, paging ignored); null when the listing does not contain it"
|
|
21
|
+
listAllFolderPosition(request: ListFolderRequest!, documentId: UUID!): Long
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
type FolderElementInfo {
|
package/models/index.ts
CHANGED
|
@@ -93,6 +93,7 @@ export * from './insights';
|
|
|
93
93
|
export * from './instantiate-template-request';
|
|
94
94
|
export * from './item';
|
|
95
95
|
export * from './item-result';
|
|
96
|
+
export * from './job-status';
|
|
96
97
|
export * from './key-count';
|
|
97
98
|
export * from './license-info';
|
|
98
99
|
export * from './list-ai-models-request';
|
|
@@ -118,6 +119,7 @@ export * from './pdf-transform-audit';
|
|
|
118
119
|
export * from './per-definition';
|
|
119
120
|
export * from './public-signature-view';
|
|
120
121
|
export * from './reassign-task-request';
|
|
122
|
+
export * from './reencrypt-request';
|
|
121
123
|
export * from './rename-audit';
|
|
122
124
|
export * from './rename-request';
|
|
123
125
|
export * from './reorganization-apply-request';
|
|
@@ -162,6 +164,7 @@ export * from './split-output';
|
|
|
162
164
|
export * from './split-request';
|
|
163
165
|
export * from './start-workflow-request';
|
|
164
166
|
export * from './storage-breakdown';
|
|
167
|
+
export * from './storage-encryption-status';
|
|
165
168
|
export * from './suggest';
|
|
166
169
|
export * from './sync-backfill-status';
|
|
167
170
|
export * from './sync-changes-response';
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
17
|
+
export interface JobStatus {
|
|
18
|
+
'status'?: string;
|
|
19
|
+
'mode'?: JobStatusModeEnum;
|
|
20
|
+
'targetKeyId'?: string;
|
|
21
|
+
'startedAt'?: string;
|
|
22
|
+
'finishedAt'?: string;
|
|
23
|
+
'files'?: number;
|
|
24
|
+
'reencrypted'?: number;
|
|
25
|
+
'skipped'?: number;
|
|
26
|
+
'failures'?: number;
|
|
27
|
+
'lastError'?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const JobStatusModeEnum = {
|
|
31
|
+
Legacy: 'LEGACY',
|
|
32
|
+
MasterKey: 'MASTER_KEY',
|
|
33
|
+
All: 'ALL',
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
export type JobStatusModeEnum = typeof JobStatusModeEnum[keyof typeof JobStatusModeEnum];
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
17
|
+
export interface ReencryptRequest {
|
|
18
|
+
/**
|
|
19
|
+
* LEGACY: plaintext objects only (after switching the feature on); MASTER_KEY: objects written under targetKeyId; ALL: everything
|
|
20
|
+
*/
|
|
21
|
+
'mode': ReencryptRequestModeEnum;
|
|
22
|
+
/**
|
|
23
|
+
* MASTER_KEY mode: the master key whose objects are rewritten under the active key
|
|
24
|
+
*/
|
|
25
|
+
'targetKeyId'?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Continue an unfinished or failed pass of the same mode instead of starting over
|
|
28
|
+
*/
|
|
29
|
+
'resume'?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const ReencryptRequestModeEnum = {
|
|
33
|
+
Legacy: 'LEGACY',
|
|
34
|
+
MasterKey: 'MASTER_KEY',
|
|
35
|
+
All: 'ALL',
|
|
36
|
+
} as const;
|
|
37
|
+
|
|
38
|
+
export type ReencryptRequestModeEnum = typeof ReencryptRequestModeEnum[keyof typeof ReencryptRequestModeEnum];
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { JobStatus } from './job-status';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Storage encryption: configuration, master key ring state and the re-encryption pass
|
|
22
|
+
*/
|
|
23
|
+
export interface StorageEncryptionStatus {
|
|
24
|
+
'enabled'?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Key-wrap provider: local, vault-transit, aws-kms, azure-keyvault, scaleway-kms
|
|
27
|
+
*/
|
|
28
|
+
'provider'?: string;
|
|
29
|
+
'chunkSize'?: number;
|
|
30
|
+
'masterKeyTtl'?: string;
|
|
31
|
+
'attestationInterval'?: string;
|
|
32
|
+
'attestationGrace'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* True while the customer\'s KEK is unavailable: content answers 423 Locked
|
|
35
|
+
*/
|
|
36
|
+
'locked'?: boolean;
|
|
37
|
+
'lockReason'?: string;
|
|
38
|
+
'lockedSince'?: string;
|
|
39
|
+
'activeKeyId'?: string;
|
|
40
|
+
'keysLoaded'?: number;
|
|
41
|
+
'lastAttestation'?: string;
|
|
42
|
+
'job'?: JobStatus;
|
|
43
|
+
}
|
|
44
|
+
|