@openfilz-sdk/typescript-ee 1.12.17 → 1.12.18
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 +18 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +21 -2
- package/api/ownership-api.ts +1076 -0
- package/api/sharing-api.ts +210 -0
- package/api.ts +2 -0
- package/dist/api/ownership-api.d.ts +505 -0
- package/dist/api/ownership-api.js +1015 -0
- package/dist/api/sharing-api.d.ts +104 -0
- package/dist/api/sharing-api.js +209 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/ownership-api.d.ts +505 -0
- package/dist/esm/api/ownership-api.js +1008 -0
- package/dist/esm/api/sharing-api.d.ts +104 -0
- package/dist/esm/api/sharing-api.js +202 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/enriched-audit-log.d.ts +9 -0
- package/dist/esm/models/enriched-audit-log.js +9 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/models/notification-dto.d.ts +2 -0
- package/dist/esm/models/notification-dto.js +2 -0
- package/dist/esm/models/owned-document.d.ts +25 -0
- package/dist/esm/models/owned-document.js +17 -0
- package/dist/esm/models/owned-documents-filter.d.ts +45 -0
- package/dist/esm/models/owned-documents-filter.js +17 -0
- package/dist/esm/models/ownership-transfer-report.d.ts +29 -0
- package/dist/esm/models/ownership-transfer-report.js +14 -0
- package/dist/esm/models/ownership-transfer-request.d.ts +53 -0
- package/dist/esm/models/ownership-transfer-request.js +18 -0
- package/dist/esm/models/quota-check.d.ts +17 -0
- package/dist/esm/models/quota-check.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/esm/models/search-by-audit-log-request.js +9 -0
- package/dist/esm/models/share-inheritance-request.d.ts +14 -0
- package/dist/esm/models/share-inheritance-request.js +14 -0
- package/dist/esm/models/share-inheritance.d.ts +16 -0
- package/dist/esm/models/share-inheritance.js +14 -0
- package/dist/esm/models/user-registration-request.d.ts +1 -0
- package/dist/models/enriched-audit-log.d.ts +9 -0
- package/dist/models/enriched-audit-log.js +9 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/notification-dto.d.ts +2 -0
- package/dist/models/notification-dto.js +2 -0
- package/dist/models/owned-document.d.ts +25 -0
- package/dist/models/owned-document.js +20 -0
- package/dist/models/owned-documents-filter.d.ts +45 -0
- package/dist/models/owned-documents-filter.js +20 -0
- package/dist/models/ownership-transfer-report.d.ts +29 -0
- package/dist/models/ownership-transfer-report.js +15 -0
- package/dist/models/ownership-transfer-request.d.ts +53 -0
- package/dist/models/ownership-transfer-request.js +21 -0
- package/dist/models/quota-check.d.ts +17 -0
- package/dist/models/quota-check.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +9 -0
- package/dist/models/search-by-audit-log-request.js +9 -0
- package/dist/models/share-inheritance-request.d.ts +14 -0
- package/dist/models/share-inheritance-request.js +15 -0
- package/dist/models/share-inheritance.d.ts +16 -0
- package/dist/models/share-inheritance.js +15 -0
- package/dist/models/user-registration-request.d.ts +1 -0
- package/docs/OwnedDocument.md +32 -0
- package/docs/OwnedDocumentsFilter.md +31 -0
- package/docs/OwnershipApi.md +621 -0
- package/docs/OwnershipTransferReport.md +48 -0
- package/docs/OwnershipTransferRequest.md +37 -0
- package/docs/QuotaCheck.md +26 -0
- package/docs/ShareInheritance.md +24 -0
- package/docs/ShareInheritanceRequest.md +20 -0
- package/docs/SharingApi.md +114 -0
- package/docs/UserRegistrationRequest.md +2 -0
- package/models/enriched-audit-log-details.ts +26 -0
- package/models/enriched-audit-log.ts +9 -0
- package/models/index.ts +7 -0
- package/models/notification-dto.ts +2 -0
- package/models/owned-document.ts +34 -0
- package/models/owned-documents-filter.ts +54 -0
- package/models/ownership-transfer-report.ts +37 -0
- package/models/ownership-transfer-request.ts +64 -0
- package/models/quota-check.ts +23 -0
- package/models/search-by-audit-log-request.ts +9 -0
- package/models/share-inheritance-request.ts +20 -0
- package/models/share-inheritance.ts +22 -0
- package/models/user-registration-request.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OwnedDocument
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**parentId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**size** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**active** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { OwnedDocument } from '@openfilz-sdk/typescript-ee';
|
|
20
|
+
|
|
21
|
+
const instance: OwnedDocument = {
|
|
22
|
+
id,
|
|
23
|
+
name,
|
|
24
|
+
type,
|
|
25
|
+
parentId,
|
|
26
|
+
size,
|
|
27
|
+
updatedAt,
|
|
28
|
+
active,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,31 @@
|
|
|
1
|
+
# OwnedDocumentsFilter
|
|
2
|
+
|
|
3
|
+
Filter on the documents owned by a user
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**parentId** | **string** | Children of this folder (owned by the user) | [optional] [default to undefined]
|
|
10
|
+
**recursive** | **boolean** | With parentId: every descendant; without: every owned document | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | FILE or FOLDER | [optional] [default to undefined]
|
|
12
|
+
**name** | **string** | Case-insensitive part of the name | [optional] [default to undefined]
|
|
13
|
+
**updatedAfter** | **string** | Last modified at or after | [optional] [default to undefined]
|
|
14
|
+
**updatedBefore** | **string** | Last modified at or before | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { OwnedDocumentsFilter } from '@openfilz-sdk/typescript-ee';
|
|
20
|
+
|
|
21
|
+
const instance: OwnedDocumentsFilter = {
|
|
22
|
+
parentId,
|
|
23
|
+
recursive,
|
|
24
|
+
type,
|
|
25
|
+
name,
|
|
26
|
+
updatedAfter,
|
|
27
|
+
updatedBefore,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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,621 @@
|
|
|
1
|
+
# OwnershipApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**adminCountOwnedDocuments**](#admincountowneddocuments) | **GET** /api/v1/admin/ownership/users/{userId}/documents/count | Count the documents a user owns (same filter as the listing)|
|
|
8
|
+
|[**adminGetOwnershipTransfer**](#admingetownershiptransfer) | **GET** /api/v1/admin/ownership/transfers/{jobId} | A transfer\'s progress and outcome|
|
|
9
|
+
|[**adminListOwnedDocuments**](#adminlistowneddocuments) | **GET** /api/v1/admin/ownership/users/{userId}/documents | List the documents a user owns|
|
|
10
|
+
|[**adminListOwnershipTransfers**](#adminlistownershiptransfers) | **GET** /api/v1/admin/ownership/transfers | The last 50 transfers from or to a user|
|
|
11
|
+
|[**adminTransferOwnership**](#admintransferownership) | **POST** /api/v1/admin/ownership/transfers | Transfer documents to another user|
|
|
12
|
+
|[**countOwnedDocuments**](#countowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents/count | Count the documents a user owns (same filter as the listing)|
|
|
13
|
+
|[**getOwnershipTransfer**](#getownershiptransfer) | **GET** /api/v1/users/ownership/transfers/{jobId} | A transfer\'s progress and outcome|
|
|
14
|
+
|[**listOwnedDocuments**](#listowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents | List the documents a user owns|
|
|
15
|
+
|[**listOwnershipTransfers**](#listownershiptransfers) | **GET** /api/v1/users/ownership/transfers | The last 50 transfers from or to a user|
|
|
16
|
+
|[**transferOwnership**](#transferownership) | **POST** /api/v1/users/ownership/transfers | Transfer documents to another user|
|
|
17
|
+
|
|
18
|
+
# **adminCountOwnedDocuments**
|
|
19
|
+
> number adminCountOwnedDocuments()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
OwnershipApi,
|
|
27
|
+
Configuration
|
|
28
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
29
|
+
|
|
30
|
+
const configuration = new Configuration();
|
|
31
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
32
|
+
|
|
33
|
+
let userId: string; // (default to undefined)
|
|
34
|
+
let parentId: string; // (optional) (default to undefined)
|
|
35
|
+
let recursive: boolean; // (optional) (default to undefined)
|
|
36
|
+
let type: 'FILE' | 'FOLDER'; // (optional) (default to undefined)
|
|
37
|
+
let name: string; // (optional) (default to undefined)
|
|
38
|
+
let updatedAfter: string; // (optional) (default to undefined)
|
|
39
|
+
let updatedBefore: string; // (optional) (default to undefined)
|
|
40
|
+
let xOpenFilzReason: string; //Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason (optional) (default to undefined)
|
|
41
|
+
|
|
42
|
+
const { status, data } = await apiInstance.adminCountOwnedDocuments(
|
|
43
|
+
userId,
|
|
44
|
+
parentId,
|
|
45
|
+
recursive,
|
|
46
|
+
type,
|
|
47
|
+
name,
|
|
48
|
+
updatedAfter,
|
|
49
|
+
updatedBefore,
|
|
50
|
+
xOpenFilzReason
|
|
51
|
+
);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Parameters
|
|
55
|
+
|
|
56
|
+
|Name | Type | Description | Notes|
|
|
57
|
+
|------------- | ------------- | ------------- | -------------|
|
|
58
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
59
|
+
| **parentId** | [**string**] | | (optional) defaults to undefined|
|
|
60
|
+
| **recursive** | [**boolean**] | | (optional) defaults to undefined|
|
|
61
|
+
| **type** | [**'FILE' | 'FOLDER'**]**Array<'FILE' | 'FOLDER'>** | | (optional) defaults to undefined|
|
|
62
|
+
| **name** | [**string**] | | (optional) defaults to undefined|
|
|
63
|
+
| **updatedAfter** | [**string**] | | (optional) defaults to undefined|
|
|
64
|
+
| **updatedBefore** | [**string**] | | (optional) defaults to undefined|
|
|
65
|
+
| **xOpenFilzReason** | [**string**] | Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason | (optional) defaults to undefined|
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
**number**
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: Not defined
|
|
79
|
+
- **Accept**: */*
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### HTTP response details
|
|
83
|
+
| Status code | Description | Response headers |
|
|
84
|
+
|-------------|-------------|------------------|
|
|
85
|
+
|**200** | OK | - |
|
|
86
|
+
|
|
87
|
+
[[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)
|
|
88
|
+
|
|
89
|
+
# **adminGetOwnershipTransfer**
|
|
90
|
+
> OwnershipTransferReport adminGetOwnershipTransfer()
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import {
|
|
97
|
+
OwnershipApi,
|
|
98
|
+
Configuration
|
|
99
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
100
|
+
|
|
101
|
+
const configuration = new Configuration();
|
|
102
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
103
|
+
|
|
104
|
+
let jobId: string; // (default to undefined)
|
|
105
|
+
|
|
106
|
+
const { status, data } = await apiInstance.adminGetOwnershipTransfer(
|
|
107
|
+
jobId
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
|Name | Type | Description | Notes|
|
|
114
|
+
|------------- | ------------- | ------------- | -------------|
|
|
115
|
+
| **jobId** | [**string**] | | defaults to undefined|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
**OwnershipTransferReport**
|
|
121
|
+
|
|
122
|
+
### Authorization
|
|
123
|
+
|
|
124
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: Not defined
|
|
129
|
+
- **Accept**: */*
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### HTTP response details
|
|
133
|
+
| Status code | Description | Response headers |
|
|
134
|
+
|-------------|-------------|------------------|
|
|
135
|
+
|**200** | OK | - |
|
|
136
|
+
|
|
137
|
+
[[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)
|
|
138
|
+
|
|
139
|
+
# **adminListOwnedDocuments**
|
|
140
|
+
> Array<OwnedDocument> adminListOwnedDocuments()
|
|
141
|
+
|
|
142
|
+
Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
143
|
+
|
|
144
|
+
### Example
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import {
|
|
148
|
+
OwnershipApi,
|
|
149
|
+
Configuration
|
|
150
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
151
|
+
|
|
152
|
+
const configuration = new Configuration();
|
|
153
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
154
|
+
|
|
155
|
+
let userId: string; // (default to undefined)
|
|
156
|
+
let parentId: string; // (optional) (default to undefined)
|
|
157
|
+
let recursive: boolean; // (optional) (default to undefined)
|
|
158
|
+
let type: 'FILE' | 'FOLDER'; // (optional) (default to undefined)
|
|
159
|
+
let name: string; // (optional) (default to undefined)
|
|
160
|
+
let updatedAfter: string; // (optional) (default to undefined)
|
|
161
|
+
let updatedBefore: string; // (optional) (default to undefined)
|
|
162
|
+
let page: number; // (optional) (default to 0)
|
|
163
|
+
let size: number; // (optional) (default to 50)
|
|
164
|
+
let xOpenFilzReason: string; //Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason (optional) (default to undefined)
|
|
165
|
+
|
|
166
|
+
const { status, data } = await apiInstance.adminListOwnedDocuments(
|
|
167
|
+
userId,
|
|
168
|
+
parentId,
|
|
169
|
+
recursive,
|
|
170
|
+
type,
|
|
171
|
+
name,
|
|
172
|
+
updatedAfter,
|
|
173
|
+
updatedBefore,
|
|
174
|
+
page,
|
|
175
|
+
size,
|
|
176
|
+
xOpenFilzReason
|
|
177
|
+
);
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
|
|
182
|
+
|Name | Type | Description | Notes|
|
|
183
|
+
|------------- | ------------- | ------------- | -------------|
|
|
184
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
185
|
+
| **parentId** | [**string**] | | (optional) defaults to undefined|
|
|
186
|
+
| **recursive** | [**boolean**] | | (optional) defaults to undefined|
|
|
187
|
+
| **type** | [**'FILE' | 'FOLDER'**]**Array<'FILE' | 'FOLDER'>** | | (optional) defaults to undefined|
|
|
188
|
+
| **name** | [**string**] | | (optional) defaults to undefined|
|
|
189
|
+
| **updatedAfter** | [**string**] | | (optional) defaults to undefined|
|
|
190
|
+
| **updatedBefore** | [**string**] | | (optional) defaults to undefined|
|
|
191
|
+
| **page** | [**number**] | | (optional) defaults to 0|
|
|
192
|
+
| **size** | [**number**] | | (optional) defaults to 50|
|
|
193
|
+
| **xOpenFilzReason** | [**string**] | Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason | (optional) defaults to undefined|
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Return type
|
|
197
|
+
|
|
198
|
+
**Array<OwnedDocument>**
|
|
199
|
+
|
|
200
|
+
### Authorization
|
|
201
|
+
|
|
202
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
203
|
+
|
|
204
|
+
### HTTP request headers
|
|
205
|
+
|
|
206
|
+
- **Content-Type**: Not defined
|
|
207
|
+
- **Accept**: */*
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### HTTP response details
|
|
211
|
+
| Status code | Description | Response headers |
|
|
212
|
+
|-------------|-------------|------------------|
|
|
213
|
+
|**200** | OK | - |
|
|
214
|
+
|
|
215
|
+
[[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)
|
|
216
|
+
|
|
217
|
+
# **adminListOwnershipTransfers**
|
|
218
|
+
> Array<OwnershipTransferReport> adminListOwnershipTransfers()
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Example
|
|
222
|
+
|
|
223
|
+
```typescript
|
|
224
|
+
import {
|
|
225
|
+
OwnershipApi,
|
|
226
|
+
Configuration
|
|
227
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
228
|
+
|
|
229
|
+
const configuration = new Configuration();
|
|
230
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
231
|
+
|
|
232
|
+
let userId: string; // (default to undefined)
|
|
233
|
+
|
|
234
|
+
const { status, data } = await apiInstance.adminListOwnershipTransfers(
|
|
235
|
+
userId
|
|
236
|
+
);
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Parameters
|
|
240
|
+
|
|
241
|
+
|Name | Type | Description | Notes|
|
|
242
|
+
|------------- | ------------- | ------------- | -------------|
|
|
243
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Return type
|
|
247
|
+
|
|
248
|
+
**Array<OwnershipTransferReport>**
|
|
249
|
+
|
|
250
|
+
### Authorization
|
|
251
|
+
|
|
252
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
253
|
+
|
|
254
|
+
### HTTP request headers
|
|
255
|
+
|
|
256
|
+
- **Content-Type**: Not defined
|
|
257
|
+
- **Accept**: */*
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### HTTP response details
|
|
261
|
+
| Status code | Description | Response headers |
|
|
262
|
+
|-------------|-------------|------------------|
|
|
263
|
+
|**200** | OK | - |
|
|
264
|
+
|
|
265
|
+
[[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)
|
|
266
|
+
|
|
267
|
+
# **adminTransferOwnership**
|
|
268
|
+
> OwnershipTransferReport adminTransferOwnership(ownershipTransferRequest)
|
|
269
|
+
|
|
270
|
+
dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
271
|
+
|
|
272
|
+
### Example
|
|
273
|
+
|
|
274
|
+
```typescript
|
|
275
|
+
import {
|
|
276
|
+
OwnershipApi,
|
|
277
|
+
Configuration,
|
|
278
|
+
OwnershipTransferRequest
|
|
279
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
280
|
+
|
|
281
|
+
const configuration = new Configuration();
|
|
282
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
283
|
+
|
|
284
|
+
let ownershipTransferRequest: OwnershipTransferRequest; //
|
|
285
|
+
|
|
286
|
+
const { status, data } = await apiInstance.adminTransferOwnership(
|
|
287
|
+
ownershipTransferRequest
|
|
288
|
+
);
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Parameters
|
|
292
|
+
|
|
293
|
+
|Name | Type | Description | Notes|
|
|
294
|
+
|------------- | ------------- | ------------- | -------------|
|
|
295
|
+
| **ownershipTransferRequest** | **OwnershipTransferRequest**| | |
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### Return type
|
|
299
|
+
|
|
300
|
+
**OwnershipTransferReport**
|
|
301
|
+
|
|
302
|
+
### Authorization
|
|
303
|
+
|
|
304
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
305
|
+
|
|
306
|
+
### HTTP request headers
|
|
307
|
+
|
|
308
|
+
- **Content-Type**: application/json
|
|
309
|
+
- **Accept**: */*
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### HTTP response details
|
|
313
|
+
| Status code | Description | Response headers |
|
|
314
|
+
|-------------|-------------|------------------|
|
|
315
|
+
|**200** | Done (status DONE), or the dry run\'s report | - |
|
|
316
|
+
|**202** | Large scope: running in the background (status RUNNING) | - |
|
|
317
|
+
|
|
318
|
+
[[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)
|
|
319
|
+
|
|
320
|
+
# **countOwnedDocuments**
|
|
321
|
+
> number countOwnedDocuments()
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Example
|
|
325
|
+
|
|
326
|
+
```typescript
|
|
327
|
+
import {
|
|
328
|
+
OwnershipApi,
|
|
329
|
+
Configuration
|
|
330
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
331
|
+
|
|
332
|
+
const configuration = new Configuration();
|
|
333
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
334
|
+
|
|
335
|
+
let userId: string; // (default to undefined)
|
|
336
|
+
let parentId: string; // (optional) (default to undefined)
|
|
337
|
+
let recursive: boolean; // (optional) (default to undefined)
|
|
338
|
+
let type: 'FILE' | 'FOLDER'; // (optional) (default to undefined)
|
|
339
|
+
let name: string; // (optional) (default to undefined)
|
|
340
|
+
let updatedAfter: string; // (optional) (default to undefined)
|
|
341
|
+
let updatedBefore: string; // (optional) (default to undefined)
|
|
342
|
+
let xOpenFilzReason: string; //Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason (optional) (default to undefined)
|
|
343
|
+
|
|
344
|
+
const { status, data } = await apiInstance.countOwnedDocuments(
|
|
345
|
+
userId,
|
|
346
|
+
parentId,
|
|
347
|
+
recursive,
|
|
348
|
+
type,
|
|
349
|
+
name,
|
|
350
|
+
updatedAfter,
|
|
351
|
+
updatedBefore,
|
|
352
|
+
xOpenFilzReason
|
|
353
|
+
);
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Parameters
|
|
357
|
+
|
|
358
|
+
|Name | Type | Description | Notes|
|
|
359
|
+
|------------- | ------------- | ------------- | -------------|
|
|
360
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
361
|
+
| **parentId** | [**string**] | | (optional) defaults to undefined|
|
|
362
|
+
| **recursive** | [**boolean**] | | (optional) defaults to undefined|
|
|
363
|
+
| **type** | [**'FILE' | 'FOLDER'**]**Array<'FILE' | 'FOLDER'>** | | (optional) defaults to undefined|
|
|
364
|
+
| **name** | [**string**] | | (optional) defaults to undefined|
|
|
365
|
+
| **updatedAfter** | [**string**] | | (optional) defaults to undefined|
|
|
366
|
+
| **updatedBefore** | [**string**] | | (optional) defaults to undefined|
|
|
367
|
+
| **xOpenFilzReason** | [**string**] | Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason | (optional) defaults to undefined|
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Return type
|
|
371
|
+
|
|
372
|
+
**number**
|
|
373
|
+
|
|
374
|
+
### Authorization
|
|
375
|
+
|
|
376
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
377
|
+
|
|
378
|
+
### HTTP request headers
|
|
379
|
+
|
|
380
|
+
- **Content-Type**: Not defined
|
|
381
|
+
- **Accept**: */*
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### HTTP response details
|
|
385
|
+
| Status code | Description | Response headers |
|
|
386
|
+
|-------------|-------------|------------------|
|
|
387
|
+
|**200** | OK | - |
|
|
388
|
+
|
|
389
|
+
[[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)
|
|
390
|
+
|
|
391
|
+
# **getOwnershipTransfer**
|
|
392
|
+
> OwnershipTransferReport getOwnershipTransfer()
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
### Example
|
|
396
|
+
|
|
397
|
+
```typescript
|
|
398
|
+
import {
|
|
399
|
+
OwnershipApi,
|
|
400
|
+
Configuration
|
|
401
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
402
|
+
|
|
403
|
+
const configuration = new Configuration();
|
|
404
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
405
|
+
|
|
406
|
+
let jobId: string; // (default to undefined)
|
|
407
|
+
|
|
408
|
+
const { status, data } = await apiInstance.getOwnershipTransfer(
|
|
409
|
+
jobId
|
|
410
|
+
);
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
### Parameters
|
|
414
|
+
|
|
415
|
+
|Name | Type | Description | Notes|
|
|
416
|
+
|------------- | ------------- | ------------- | -------------|
|
|
417
|
+
| **jobId** | [**string**] | | defaults to undefined|
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
### Return type
|
|
421
|
+
|
|
422
|
+
**OwnershipTransferReport**
|
|
423
|
+
|
|
424
|
+
### Authorization
|
|
425
|
+
|
|
426
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
427
|
+
|
|
428
|
+
### HTTP request headers
|
|
429
|
+
|
|
430
|
+
- **Content-Type**: Not defined
|
|
431
|
+
- **Accept**: */*
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
### HTTP response details
|
|
435
|
+
| Status code | Description | Response headers |
|
|
436
|
+
|-------------|-------------|------------------|
|
|
437
|
+
|**200** | OK | - |
|
|
438
|
+
|
|
439
|
+
[[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)
|
|
440
|
+
|
|
441
|
+
# **listOwnedDocuments**
|
|
442
|
+
> Array<OwnedDocument> listOwnedDocuments()
|
|
443
|
+
|
|
444
|
+
Without parentId and recursive: the user\'s top level (no parent, or a parent they do not own). Subject to the consent-bypass setting (except type=FOLDER, used to pick a transfer\'s destination): send the reason in the X-OpenFilz-Reason header, percent-encoded (UTF-8) if not ASCII.
|
|
445
|
+
|
|
446
|
+
### Example
|
|
447
|
+
|
|
448
|
+
```typescript
|
|
449
|
+
import {
|
|
450
|
+
OwnershipApi,
|
|
451
|
+
Configuration
|
|
452
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
453
|
+
|
|
454
|
+
const configuration = new Configuration();
|
|
455
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
456
|
+
|
|
457
|
+
let userId: string; // (default to undefined)
|
|
458
|
+
let parentId: string; // (optional) (default to undefined)
|
|
459
|
+
let recursive: boolean; // (optional) (default to undefined)
|
|
460
|
+
let type: 'FILE' | 'FOLDER'; // (optional) (default to undefined)
|
|
461
|
+
let name: string; // (optional) (default to undefined)
|
|
462
|
+
let updatedAfter: string; // (optional) (default to undefined)
|
|
463
|
+
let updatedBefore: string; // (optional) (default to undefined)
|
|
464
|
+
let page: number; // (optional) (default to 0)
|
|
465
|
+
let size: number; // (optional) (default to 50)
|
|
466
|
+
let xOpenFilzReason: string; //Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason (optional) (default to undefined)
|
|
467
|
+
|
|
468
|
+
const { status, data } = await apiInstance.listOwnedDocuments(
|
|
469
|
+
userId,
|
|
470
|
+
parentId,
|
|
471
|
+
recursive,
|
|
472
|
+
type,
|
|
473
|
+
name,
|
|
474
|
+
updatedAfter,
|
|
475
|
+
updatedBefore,
|
|
476
|
+
page,
|
|
477
|
+
size,
|
|
478
|
+
xOpenFilzReason
|
|
479
|
+
);
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Parameters
|
|
483
|
+
|
|
484
|
+
|Name | Type | Description | Notes|
|
|
485
|
+
|------------- | ------------- | ------------- | -------------|
|
|
486
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
487
|
+
| **parentId** | [**string**] | | (optional) defaults to undefined|
|
|
488
|
+
| **recursive** | [**boolean**] | | (optional) defaults to undefined|
|
|
489
|
+
| **type** | [**'FILE' | 'FOLDER'**]**Array<'FILE' | 'FOLDER'>** | | (optional) defaults to undefined|
|
|
490
|
+
| **name** | [**string**] | | (optional) defaults to undefined|
|
|
491
|
+
| **updatedAfter** | [**string**] | | (optional) defaults to undefined|
|
|
492
|
+
| **updatedBefore** | [**string**] | | (optional) defaults to undefined|
|
|
493
|
+
| **page** | [**number**] | | (optional) defaults to 0|
|
|
494
|
+
| **size** | [**number**] | | (optional) defaults to 50|
|
|
495
|
+
| **xOpenFilzReason** | [**string**] | Why the administrator looks at this user\'s documents — required when the consent bypass applies; percent-encode (UTF-8) a non-ASCII reason | (optional) defaults to undefined|
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
### Return type
|
|
499
|
+
|
|
500
|
+
**Array<OwnedDocument>**
|
|
501
|
+
|
|
502
|
+
### Authorization
|
|
503
|
+
|
|
504
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
505
|
+
|
|
506
|
+
### HTTP request headers
|
|
507
|
+
|
|
508
|
+
- **Content-Type**: Not defined
|
|
509
|
+
- **Accept**: */*
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
### HTTP response details
|
|
513
|
+
| Status code | Description | Response headers |
|
|
514
|
+
|-------------|-------------|------------------|
|
|
515
|
+
|**200** | OK | - |
|
|
516
|
+
|
|
517
|
+
[[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)
|
|
518
|
+
|
|
519
|
+
# **listOwnershipTransfers**
|
|
520
|
+
> Array<OwnershipTransferReport> listOwnershipTransfers()
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Example
|
|
524
|
+
|
|
525
|
+
```typescript
|
|
526
|
+
import {
|
|
527
|
+
OwnershipApi,
|
|
528
|
+
Configuration
|
|
529
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
530
|
+
|
|
531
|
+
const configuration = new Configuration();
|
|
532
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
533
|
+
|
|
534
|
+
let userId: string; // (default to undefined)
|
|
535
|
+
|
|
536
|
+
const { status, data } = await apiInstance.listOwnershipTransfers(
|
|
537
|
+
userId
|
|
538
|
+
);
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### Parameters
|
|
542
|
+
|
|
543
|
+
|Name | Type | Description | Notes|
|
|
544
|
+
|------------- | ------------- | ------------- | -------------|
|
|
545
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
### Return type
|
|
549
|
+
|
|
550
|
+
**Array<OwnershipTransferReport>**
|
|
551
|
+
|
|
552
|
+
### Authorization
|
|
553
|
+
|
|
554
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
555
|
+
|
|
556
|
+
### HTTP request headers
|
|
557
|
+
|
|
558
|
+
- **Content-Type**: Not defined
|
|
559
|
+
- **Accept**: */*
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
### HTTP response details
|
|
563
|
+
| Status code | Description | Response headers |
|
|
564
|
+
|-------------|-------------|------------------|
|
|
565
|
+
|**200** | OK | - |
|
|
566
|
+
|
|
567
|
+
[[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)
|
|
568
|
+
|
|
569
|
+
# **transferOwnership**
|
|
570
|
+
> OwnershipTransferReport transferOwnership(ownershipTransferRequest)
|
|
571
|
+
|
|
572
|
+
dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
573
|
+
|
|
574
|
+
### Example
|
|
575
|
+
|
|
576
|
+
```typescript
|
|
577
|
+
import {
|
|
578
|
+
OwnershipApi,
|
|
579
|
+
Configuration,
|
|
580
|
+
OwnershipTransferRequest
|
|
581
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
582
|
+
|
|
583
|
+
const configuration = new Configuration();
|
|
584
|
+
const apiInstance = new OwnershipApi(configuration);
|
|
585
|
+
|
|
586
|
+
let ownershipTransferRequest: OwnershipTransferRequest; //
|
|
587
|
+
|
|
588
|
+
const { status, data } = await apiInstance.transferOwnership(
|
|
589
|
+
ownershipTransferRequest
|
|
590
|
+
);
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
### Parameters
|
|
594
|
+
|
|
595
|
+
|Name | Type | Description | Notes|
|
|
596
|
+
|------------- | ------------- | ------------- | -------------|
|
|
597
|
+
| **ownershipTransferRequest** | **OwnershipTransferRequest**| | |
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
### Return type
|
|
601
|
+
|
|
602
|
+
**OwnershipTransferReport**
|
|
603
|
+
|
|
604
|
+
### Authorization
|
|
605
|
+
|
|
606
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
607
|
+
|
|
608
|
+
### HTTP request headers
|
|
609
|
+
|
|
610
|
+
- **Content-Type**: application/json
|
|
611
|
+
- **Accept**: */*
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
### HTTP response details
|
|
615
|
+
| Status code | Description | Response headers |
|
|
616
|
+
|-------------|-------------|------------------|
|
|
617
|
+
|**200** | Done (status DONE), or the dry run\'s report | - |
|
|
618
|
+
|**202** | Large scope: running in the background (status RUNNING) | - |
|
|
619
|
+
|
|
620
|
+
[[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)
|
|
621
|
+
|