@openfilz-sdk/typescript-ee 1.3.5 → 1.4.1
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 +32 -6
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +36 -7
- package/api/{audit-controller-api.ts → collaboration-audit-controller-api.ts} +42 -42
- package/api/delegated-browse-grants-admin-api.ts +452 -0
- package/api/delegated-browse-grants-end-user-api.ts +426 -0
- package/api/upload-token-controller-api.ts +219 -0
- package/api/user-privacy-api.ts +196 -0
- package/api/webhook-proxy-controller-api.ts +523 -0
- package/api.ts +6 -1
- package/dist/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
- package/dist/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +41 -41
- package/dist/api/delegated-browse-grants-admin-api.d.ts +215 -0
- package/dist/api/delegated-browse-grants-admin-api.js +434 -0
- package/dist/api/delegated-browse-grants-end-user-api.d.ts +204 -0
- package/dist/api/delegated-browse-grants-end-user-api.js +416 -0
- package/dist/api/upload-token-controller-api.d.ts +105 -0
- package/dist/api/upload-token-controller-api.js +214 -0
- package/dist/api/user-privacy-api.d.ts +96 -0
- package/dist/api/user-privacy-api.js +195 -0
- package/dist/api/webhook-proxy-controller-api.d.ts +230 -0
- package/dist/api/webhook-proxy-controller-api.js +511 -0
- package/dist/api.d.ts +6 -1
- package/dist/api.js +6 -1
- package/dist/esm/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
- package/dist/esm/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +36 -36
- package/dist/esm/api/delegated-browse-grants-admin-api.d.ts +215 -0
- package/dist/esm/api/delegated-browse-grants-admin-api.js +427 -0
- package/dist/esm/api/delegated-browse-grants-end-user-api.d.ts +204 -0
- package/dist/esm/api/delegated-browse-grants-end-user-api.js +409 -0
- package/dist/esm/api/upload-token-controller-api.d.ts +105 -0
- package/dist/esm/api/upload-token-controller-api.js +207 -0
- package/dist/esm/api/user-privacy-api.d.ts +96 -0
- package/dist/esm/api/user-privacy-api.js +188 -0
- package/dist/esm/api/webhook-proxy-controller-api.d.ts +230 -0
- package/dist/esm/api/webhook-proxy-controller-api.js +504 -0
- package/dist/esm/api.d.ts +6 -1
- package/dist/esm/api.js +6 -1
- package/dist/esm/models/consume-delegated-grant-request.d.ts +15 -0
- package/dist/esm/models/create-delegated-grant-request.d.ts +21 -0
- package/dist/esm/models/create-delegated-grant-request.js +16 -0
- package/dist/esm/models/delegated-folder-node.d.ts +16 -0
- package/dist/esm/models/delegated-folder-node.js +14 -0
- package/dist/esm/models/delegated-grant-dto.d.ts +43 -0
- package/dist/esm/models/delegated-grant-dto.js +24 -0
- package/dist/esm/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
- package/dist/esm/models/enriched-audit-log-details.js +14 -0
- package/dist/esm/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
- package/dist/{models/audit-log.js → esm/models/enriched-audit-log.js} +17 -11
- package/dist/esm/models/index.d.ts +10 -2
- package/dist/esm/models/index.js +10 -2
- package/dist/esm/models/mint-upload-token-request.d.ts +17 -0
- package/dist/esm/models/mint-upload-token-request.js +14 -0
- package/dist/esm/models/notification-dto.d.ts +3 -0
- package/dist/esm/models/notification-dto.js +4 -1
- package/dist/esm/models/search-by-audit-log-request.d.ts +15 -6
- package/dist/esm/models/search-by-audit-log-request.js +15 -6
- package/dist/esm/models/update-user-privacy-request.d.ts +14 -0
- package/dist/esm/models/update-user-privacy-request.js +14 -0
- package/dist/esm/models/upload-token-response.d.ts +18 -0
- package/dist/esm/models/upload-token-response.js +14 -0
- package/dist/esm/models/user-privacy-dto.d.ts +14 -0
- package/dist/esm/models/user-privacy-dto.js +14 -0
- package/dist/models/consume-delegated-grant-request.d.ts +15 -0
- package/dist/models/create-delegated-grant-request.d.ts +21 -0
- package/dist/models/create-delegated-grant-request.js +19 -0
- package/dist/models/delegated-folder-node.d.ts +16 -0
- package/dist/models/delegated-folder-node.js +15 -0
- package/dist/models/delegated-grant-dto.d.ts +43 -0
- package/dist/models/delegated-grant-dto.js +27 -0
- package/dist/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
- package/dist/models/enriched-audit-log-details.js +15 -0
- package/dist/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
- package/dist/{esm/models/audit-log.js → models/enriched-audit-log.js} +20 -8
- package/dist/models/index.d.ts +10 -2
- package/dist/models/index.js +10 -2
- package/dist/models/mint-upload-token-request.d.ts +17 -0
- package/dist/models/mint-upload-token-request.js +15 -0
- package/dist/models/notification-dto.d.ts +3 -0
- package/dist/models/notification-dto.js +4 -1
- package/dist/models/search-by-audit-log-request.d.ts +15 -6
- package/dist/models/search-by-audit-log-request.js +15 -6
- package/dist/models/update-user-privacy-request.d.ts +14 -0
- package/dist/models/update-user-privacy-request.js +15 -0
- package/dist/models/upload-token-response.d.ts +18 -0
- package/dist/models/upload-token-response.js +15 -0
- package/dist/models/user-privacy-dto.d.ts +14 -0
- package/dist/models/user-privacy-dto.js +15 -0
- package/docs/{AuditControllerApi.md → CollaborationAuditControllerApi.md} +16 -16
- package/docs/ConsumeDelegatedGrantRequest.md +22 -0
- package/docs/CreateDelegatedGrantRequest.md +26 -0
- package/docs/DelegatedBrowseGrantsAdminApi.md +275 -0
- package/docs/DelegatedBrowseGrantsEndUserApi.md +266 -0
- package/docs/DelegatedFolderNode.md +24 -0
- package/docs/DelegatedGrantDTO.md +52 -0
- package/docs/{AuditLog.md → EnrichedAuditLog.md} +9 -5
- package/docs/{AuditLogDetailsOneOf.md → EnrichedAuditLogDetails.md} +3 -3
- package/docs/MintUploadTokenRequest.md +26 -0
- package/docs/UpdateUserPrivacyRequest.md +20 -0
- package/docs/UploadTokenControllerApi.md +115 -0
- package/docs/UploadTokenResponse.md +28 -0
- package/docs/UserPrivacyApi.md +104 -0
- package/docs/UserPrivacyDTO.md +20 -0
- package/docs/WebhookProxyControllerApi.md +364 -0
- package/models/consume-delegated-grant-request.ts +21 -0
- package/models/create-delegated-grant-request.ts +30 -0
- package/models/delegated-folder-node.ts +22 -0
- package/models/delegated-grant-dto.ts +53 -0
- package/models/{audit-log-details-one-of.ts → enriched-audit-log-details.ts} +2 -20
- package/models/{audit-log.ts → enriched-audit-log.ts} +27 -16
- package/models/index.ts +10 -2
- package/models/mint-upload-token-request.ts +23 -0
- package/models/notification-dto.ts +4 -1
- package/models/search-by-audit-log-request.ts +15 -6
- package/models/update-user-privacy-request.ts +20 -0
- package/models/upload-token-response.ts +24 -0
- package/models/user-privacy-dto.ts +20 -0
- package/package.json +1 -1
- /package/dist/esm/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
- /package/dist/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DelegatedFolderNode
|
|
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
|
+
**hasChildren** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DelegatedFolderNode } from '@openfilz-sdk/typescript-ee';
|
|
16
|
+
|
|
17
|
+
const instance: DelegatedFolderNode = {
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
hasChildren,
|
|
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,52 @@
|
|
|
1
|
+
# DelegatedGrantDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**grantor** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**grantee** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**purposeNote** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**acceptDeadline** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**useDeadline** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**acceptedAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**declinedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**revokedAt** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**consumedAt** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**consumedSubscriptionId** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**consumedFolderId** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**targetUrl** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**subscriptionRevokedAt** | **string** | | [optional] [default to undefined]
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { DelegatedGrantDTO } from '@openfilz-sdk/typescript-ee';
|
|
30
|
+
|
|
31
|
+
const instance: DelegatedGrantDTO = {
|
|
32
|
+
id,
|
|
33
|
+
grantor,
|
|
34
|
+
grantee,
|
|
35
|
+
purpose,
|
|
36
|
+
purposeNote,
|
|
37
|
+
status,
|
|
38
|
+
createdAt,
|
|
39
|
+
acceptDeadline,
|
|
40
|
+
useDeadline,
|
|
41
|
+
acceptedAt,
|
|
42
|
+
declinedAt,
|
|
43
|
+
revokedAt,
|
|
44
|
+
consumedAt,
|
|
45
|
+
consumedSubscriptionId,
|
|
46
|
+
consumedFolderId,
|
|
47
|
+
targetUrl,
|
|
48
|
+
subscriptionRevokedAt,
|
|
49
|
+
};
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EnrichedAuditLog
|
|
2
2
|
|
|
3
|
-
Audit information
|
|
3
|
+
Audit information enriched with the actor (azp) provenance — EE only.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -11,16 +11,18 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**username** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**action** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**resourceType** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**details** | [**
|
|
14
|
+
**details** | [**EnrichedAuditLogDetails**](EnrichedAuditLogDetails.md) | | [optional] [default to undefined]
|
|
15
15
|
**previousHash** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**hash** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**azp** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**actedViaIntegration** | **boolean** | | [optional] [default to undefined]
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
20
22
|
```typescript
|
|
21
|
-
import {
|
|
23
|
+
import { EnrichedAuditLog } from '@openfilz-sdk/typescript-ee';
|
|
22
24
|
|
|
23
|
-
const instance:
|
|
25
|
+
const instance: EnrichedAuditLog = {
|
|
24
26
|
id,
|
|
25
27
|
timestamp,
|
|
26
28
|
username,
|
|
@@ -29,6 +31,8 @@ const instance: AuditLog = {
|
|
|
29
31
|
details,
|
|
30
32
|
previousHash,
|
|
31
33
|
hash,
|
|
34
|
+
azp,
|
|
35
|
+
actedViaIntegration,
|
|
32
36
|
};
|
|
33
37
|
```
|
|
34
38
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# EnrichedAuditLogDetails
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -21,9 +21,9 @@ Name | Type | Description | Notes
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import {
|
|
24
|
+
import { EnrichedAuditLogDetails } from '@openfilz-sdk/typescript-ee';
|
|
25
25
|
|
|
26
|
-
const instance:
|
|
26
|
+
const instance: EnrichedAuditLogDetails = {
|
|
27
27
|
type,
|
|
28
28
|
sourceFileId,
|
|
29
29
|
targetFolderId,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# MintUploadTokenRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**targetFolderId** | **string** | | [default to undefined]
|
|
9
|
+
**maxSizeBytes** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**allowedMimeTypes** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**ttlSeconds** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { MintUploadTokenRequest } from '@openfilz-sdk/typescript-ee';
|
|
17
|
+
|
|
18
|
+
const instance: MintUploadTokenRequest = {
|
|
19
|
+
targetFolderId,
|
|
20
|
+
maxSizeBytes,
|
|
21
|
+
allowedMimeTypes,
|
|
22
|
+
ttlSeconds,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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,20 @@
|
|
|
1
|
+
# UpdateUserPrivacyRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**adminMonitoringOptOut** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateUserPrivacyRequest } from '@openfilz-sdk/typescript-ee';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateUserPrivacyRequest = {
|
|
16
|
+
adminMonitoringOptOut,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,115 @@
|
|
|
1
|
+
# UploadTokenControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**mintUploadToken**](#mintuploadtoken) | **POST** /api/v1/upload-tokens | Mint a scoped upload token|
|
|
8
|
+
|[**uploadWithToken**](#uploadwithtoken) | **POST** /api/v1/upload-tokens/upload | Upload a single document with a scoped upload token|
|
|
9
|
+
|
|
10
|
+
# **mintUploadToken**
|
|
11
|
+
> UploadTokenResponse mintUploadToken(mintUploadTokenRequest)
|
|
12
|
+
|
|
13
|
+
Issues a one-shot HS256 JWT scoped to a single upload into a single folder. Caller must hold the UPLOAD_TOKEN_ISSUER realm role.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
UploadTokenControllerApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
MintUploadTokenRequest
|
|
22
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UploadTokenControllerApi(configuration);
|
|
26
|
+
|
|
27
|
+
let mintUploadTokenRequest: MintUploadTokenRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.mintUploadToken(
|
|
30
|
+
mintUploadTokenRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **mintUploadTokenRequest** | **MintUploadTokenRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**UploadTokenResponse**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: */*
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | OK | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **uploadWithToken**
|
|
63
|
+
> UploadResponse uploadWithToken()
|
|
64
|
+
|
|
65
|
+
Anonymous-callable endpoint authenticated by the scoped JWT minted via POST /api/v1/upload-tokens. Forces the target folder to the one baked into the token. One-shot — replays return 401.
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
UploadTokenControllerApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new UploadTokenControllerApi(configuration);
|
|
77
|
+
|
|
78
|
+
let file: File; // (default to undefined)
|
|
79
|
+
let metadata: string; // (optional) (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.uploadWithToken(
|
|
82
|
+
file,
|
|
83
|
+
metadata
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
92
|
+
| **metadata** | [**string**] | | (optional) defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**UploadResponse**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: multipart/form-data
|
|
106
|
+
- **Accept**: */*
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | OK | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UploadTokenResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**expiresAt** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**uploadUrl** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**targetFolderId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**maxSizeBytes** | **number** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UploadTokenResponse } from '@openfilz-sdk/typescript-ee';
|
|
18
|
+
|
|
19
|
+
const instance: UploadTokenResponse = {
|
|
20
|
+
token,
|
|
21
|
+
expiresAt,
|
|
22
|
+
uploadUrl,
|
|
23
|
+
targetFolderId,
|
|
24
|
+
maxSizeBytes,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,104 @@
|
|
|
1
|
+
# UserPrivacyApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**get**](#get) | **GET** /api/v1/users/me/privacy | Read my privacy preferences|
|
|
8
|
+
|[**update**](#update) | **PUT** /api/v1/users/me/privacy | Update my privacy preferences|
|
|
9
|
+
|
|
10
|
+
# **get**
|
|
11
|
+
> UserPrivacyDTO get()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserPrivacyApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UserPrivacyApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.get();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**UserPrivacyDTO**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | OK | - |
|
|
50
|
+
|
|
51
|
+
[[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)
|
|
52
|
+
|
|
53
|
+
# **update**
|
|
54
|
+
> UserPrivacyDTO update(updateUserPrivacyRequest)
|
|
55
|
+
|
|
56
|
+
Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
|
|
57
|
+
|
|
58
|
+
### Example
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import {
|
|
62
|
+
UserPrivacyApi,
|
|
63
|
+
Configuration,
|
|
64
|
+
UpdateUserPrivacyRequest
|
|
65
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new UserPrivacyApi(configuration);
|
|
69
|
+
|
|
70
|
+
let updateUserPrivacyRequest: UpdateUserPrivacyRequest; //
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.update(
|
|
73
|
+
updateUserPrivacyRequest
|
|
74
|
+
);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
|Name | Type | Description | Notes|
|
|
80
|
+
|------------- | ------------- | ------------- | -------------|
|
|
81
|
+
| **updateUserPrivacyRequest** | **UpdateUserPrivacyRequest**| | |
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
**UserPrivacyDTO**
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: application/json
|
|
95
|
+
- **Accept**: application/json
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### HTTP response details
|
|
99
|
+
| Status code | Description | Response headers |
|
|
100
|
+
|-------------|-------------|------------------|
|
|
101
|
+
|**200** | OK | - |
|
|
102
|
+
|
|
103
|
+
[[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)
|
|
104
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserPrivacyDTO
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**adminMonitoringOptOut** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserPrivacyDTO } from '@openfilz-sdk/typescript-ee';
|
|
14
|
+
|
|
15
|
+
const instance: UserPrivacyDTO = {
|
|
16
|
+
adminMonitoringOptOut,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|