@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.
Files changed (120) hide show
  1. package/.openapi-generator/FILES +32 -6
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +36 -7
  4. package/api/{audit-controller-api.ts → collaboration-audit-controller-api.ts} +42 -42
  5. package/api/delegated-browse-grants-admin-api.ts +452 -0
  6. package/api/delegated-browse-grants-end-user-api.ts +426 -0
  7. package/api/upload-token-controller-api.ts +219 -0
  8. package/api/user-privacy-api.ts +196 -0
  9. package/api/webhook-proxy-controller-api.ts +523 -0
  10. package/api.ts +6 -1
  11. package/dist/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
  12. package/dist/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +41 -41
  13. package/dist/api/delegated-browse-grants-admin-api.d.ts +215 -0
  14. package/dist/api/delegated-browse-grants-admin-api.js +434 -0
  15. package/dist/api/delegated-browse-grants-end-user-api.d.ts +204 -0
  16. package/dist/api/delegated-browse-grants-end-user-api.js +416 -0
  17. package/dist/api/upload-token-controller-api.d.ts +105 -0
  18. package/dist/api/upload-token-controller-api.js +214 -0
  19. package/dist/api/user-privacy-api.d.ts +96 -0
  20. package/dist/api/user-privacy-api.js +195 -0
  21. package/dist/api/webhook-proxy-controller-api.d.ts +230 -0
  22. package/dist/api/webhook-proxy-controller-api.js +511 -0
  23. package/dist/api.d.ts +6 -1
  24. package/dist/api.js +6 -1
  25. package/dist/esm/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
  26. package/dist/esm/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +36 -36
  27. package/dist/esm/api/delegated-browse-grants-admin-api.d.ts +215 -0
  28. package/dist/esm/api/delegated-browse-grants-admin-api.js +427 -0
  29. package/dist/esm/api/delegated-browse-grants-end-user-api.d.ts +204 -0
  30. package/dist/esm/api/delegated-browse-grants-end-user-api.js +409 -0
  31. package/dist/esm/api/upload-token-controller-api.d.ts +105 -0
  32. package/dist/esm/api/upload-token-controller-api.js +207 -0
  33. package/dist/esm/api/user-privacy-api.d.ts +96 -0
  34. package/dist/esm/api/user-privacy-api.js +188 -0
  35. package/dist/esm/api/webhook-proxy-controller-api.d.ts +230 -0
  36. package/dist/esm/api/webhook-proxy-controller-api.js +504 -0
  37. package/dist/esm/api.d.ts +6 -1
  38. package/dist/esm/api.js +6 -1
  39. package/dist/esm/models/consume-delegated-grant-request.d.ts +15 -0
  40. package/dist/esm/models/create-delegated-grant-request.d.ts +21 -0
  41. package/dist/esm/models/create-delegated-grant-request.js +16 -0
  42. package/dist/esm/models/delegated-folder-node.d.ts +16 -0
  43. package/dist/esm/models/delegated-folder-node.js +14 -0
  44. package/dist/esm/models/delegated-grant-dto.d.ts +43 -0
  45. package/dist/esm/models/delegated-grant-dto.js +24 -0
  46. package/dist/esm/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
  47. package/dist/esm/models/enriched-audit-log-details.js +14 -0
  48. package/dist/esm/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
  49. package/dist/{models/audit-log.js → esm/models/enriched-audit-log.js} +17 -11
  50. package/dist/esm/models/index.d.ts +10 -2
  51. package/dist/esm/models/index.js +10 -2
  52. package/dist/esm/models/mint-upload-token-request.d.ts +17 -0
  53. package/dist/esm/models/mint-upload-token-request.js +14 -0
  54. package/dist/esm/models/notification-dto.d.ts +3 -0
  55. package/dist/esm/models/notification-dto.js +4 -1
  56. package/dist/esm/models/search-by-audit-log-request.d.ts +15 -6
  57. package/dist/esm/models/search-by-audit-log-request.js +15 -6
  58. package/dist/esm/models/update-user-privacy-request.d.ts +14 -0
  59. package/dist/esm/models/update-user-privacy-request.js +14 -0
  60. package/dist/esm/models/upload-token-response.d.ts +18 -0
  61. package/dist/esm/models/upload-token-response.js +14 -0
  62. package/dist/esm/models/user-privacy-dto.d.ts +14 -0
  63. package/dist/esm/models/user-privacy-dto.js +14 -0
  64. package/dist/models/consume-delegated-grant-request.d.ts +15 -0
  65. package/dist/models/create-delegated-grant-request.d.ts +21 -0
  66. package/dist/models/create-delegated-grant-request.js +19 -0
  67. package/dist/models/delegated-folder-node.d.ts +16 -0
  68. package/dist/models/delegated-folder-node.js +15 -0
  69. package/dist/models/delegated-grant-dto.d.ts +43 -0
  70. package/dist/models/delegated-grant-dto.js +27 -0
  71. package/dist/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
  72. package/dist/models/enriched-audit-log-details.js +15 -0
  73. package/dist/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
  74. package/dist/{esm/models/audit-log.js → models/enriched-audit-log.js} +20 -8
  75. package/dist/models/index.d.ts +10 -2
  76. package/dist/models/index.js +10 -2
  77. package/dist/models/mint-upload-token-request.d.ts +17 -0
  78. package/dist/models/mint-upload-token-request.js +15 -0
  79. package/dist/models/notification-dto.d.ts +3 -0
  80. package/dist/models/notification-dto.js +4 -1
  81. package/dist/models/search-by-audit-log-request.d.ts +15 -6
  82. package/dist/models/search-by-audit-log-request.js +15 -6
  83. package/dist/models/update-user-privacy-request.d.ts +14 -0
  84. package/dist/models/update-user-privacy-request.js +15 -0
  85. package/dist/models/upload-token-response.d.ts +18 -0
  86. package/dist/models/upload-token-response.js +15 -0
  87. package/dist/models/user-privacy-dto.d.ts +14 -0
  88. package/dist/models/user-privacy-dto.js +15 -0
  89. package/docs/{AuditControllerApi.md → CollaborationAuditControllerApi.md} +16 -16
  90. package/docs/ConsumeDelegatedGrantRequest.md +22 -0
  91. package/docs/CreateDelegatedGrantRequest.md +26 -0
  92. package/docs/DelegatedBrowseGrantsAdminApi.md +275 -0
  93. package/docs/DelegatedBrowseGrantsEndUserApi.md +266 -0
  94. package/docs/DelegatedFolderNode.md +24 -0
  95. package/docs/DelegatedGrantDTO.md +52 -0
  96. package/docs/{AuditLog.md → EnrichedAuditLog.md} +9 -5
  97. package/docs/{AuditLogDetailsOneOf.md → EnrichedAuditLogDetails.md} +3 -3
  98. package/docs/MintUploadTokenRequest.md +26 -0
  99. package/docs/UpdateUserPrivacyRequest.md +20 -0
  100. package/docs/UploadTokenControllerApi.md +115 -0
  101. package/docs/UploadTokenResponse.md +28 -0
  102. package/docs/UserPrivacyApi.md +104 -0
  103. package/docs/UserPrivacyDTO.md +20 -0
  104. package/docs/WebhookProxyControllerApi.md +364 -0
  105. package/models/consume-delegated-grant-request.ts +21 -0
  106. package/models/create-delegated-grant-request.ts +30 -0
  107. package/models/delegated-folder-node.ts +22 -0
  108. package/models/delegated-grant-dto.ts +53 -0
  109. package/models/{audit-log-details-one-of.ts → enriched-audit-log-details.ts} +2 -20
  110. package/models/{audit-log.ts → enriched-audit-log.ts} +27 -16
  111. package/models/index.ts +10 -2
  112. package/models/mint-upload-token-request.ts +23 -0
  113. package/models/notification-dto.ts +4 -1
  114. package/models/search-by-audit-log-request.ts +15 -6
  115. package/models/update-user-privacy-request.ts +20 -0
  116. package/models/upload-token-response.ts +24 -0
  117. package/models/user-privacy-dto.ts +20 -0
  118. package/package.json +1 -1
  119. /package/dist/esm/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
  120. /package/dist/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
@@ -1,28 +1,28 @@
1
- # AuditControllerApi
1
+ # CollaborationAuditControllerApi
2
2
 
3
3
  All URIs are relative to *http://localhost:8081*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getAuditTrail**](#getaudittrail) | **GET** /api/v1/audit/{id} | Get audit trail for a resource|
8
- |[**searchAuditTrail**](#searchaudittrail) | **POST** /api/v1/audit/search | Search for audit trails|
7
+ |[**getAuditTrail**](#getaudittrail) | **GET** /api/v1/audit/{id} | Get audit trail for a resource (enriched with actor azp)|
8
+ |[**searchAuditTrail**](#searchaudittrail) | **POST** /api/v1/audit/search | Search audit trail (enriched with actor azp)|
9
9
  |[**verifyChain**](#verifychain) | **GET** /api/v1/audit/verify | Verify audit chain integrity|
10
10
 
11
11
  # **getAuditTrail**
12
- > Array<AuditLog> getAuditTrail()
12
+ > Array<EnrichedAuditLog> getAuditTrail()
13
13
 
14
- Retrieves the audit trail for a given resource.
14
+ EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
15
15
 
16
16
  ### Example
17
17
 
18
18
  ```typescript
19
19
  import {
20
- AuditControllerApi,
20
+ CollaborationAuditControllerApi,
21
21
  Configuration
22
22
  } from '@openfilz-sdk/typescript-ee';
23
23
 
24
24
  const configuration = new Configuration();
25
- const apiInstance = new AuditControllerApi(configuration);
25
+ const apiInstance = new CollaborationAuditControllerApi(configuration);
26
26
 
27
27
  let id: string; //ID of the resource to get the audit trail for (default to undefined)
28
28
  let sort: 'ASC' | 'DESC'; //Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\' (optional) (default to undefined)
@@ -43,7 +43,7 @@ const { status, data } = await apiInstance.getAuditTrail(
43
43
 
44
44
  ### Return type
45
45
 
46
- **Array<AuditLog>**
46
+ **Array<EnrichedAuditLog>**
47
47
 
48
48
  ### Authorization
49
49
 
@@ -63,21 +63,21 @@ const { status, data } = await apiInstance.getAuditTrail(
63
63
  [[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)
64
64
 
65
65
  # **searchAuditTrail**
66
- > Array<AuditLog> searchAuditTrail(searchByAuditLogRequest)
66
+ > Array<EnrichedAuditLog> searchAuditTrail(searchByAuditLogRequest)
67
67
 
68
- Retrieves the audit trail according to the search parameters
68
+ EE variant same as core, returns rows enriched with actor azp.
69
69
 
70
70
  ### Example
71
71
 
72
72
  ```typescript
73
73
  import {
74
- AuditControllerApi,
74
+ CollaborationAuditControllerApi,
75
75
  Configuration,
76
76
  SearchByAuditLogRequest
77
77
  } from '@openfilz-sdk/typescript-ee';
78
78
 
79
79
  const configuration = new Configuration();
80
- const apiInstance = new AuditControllerApi(configuration);
80
+ const apiInstance = new CollaborationAuditControllerApi(configuration);
81
81
 
82
82
  let searchByAuditLogRequest: SearchByAuditLogRequest; //
83
83
 
@@ -95,7 +95,7 @@ const { status, data } = await apiInstance.searchAuditTrail(
95
95
 
96
96
  ### Return type
97
97
 
98
- **Array<AuditLog>**
98
+ **Array<EnrichedAuditLog>**
99
99
 
100
100
  ### Authorization
101
101
 
@@ -117,18 +117,18 @@ const { status, data } = await apiInstance.searchAuditTrail(
117
117
  # **verifyChain**
118
118
  > AuditVerificationResult verifyChain()
119
119
 
120
- Verifies the cryptographic hash chain of the audit log to detect any tampering.
120
+ Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
121
121
 
122
122
  ### Example
123
123
 
124
124
  ```typescript
125
125
  import {
126
- AuditControllerApi,
126
+ CollaborationAuditControllerApi,
127
127
  Configuration
128
128
  } from '@openfilz-sdk/typescript-ee';
129
129
 
130
130
  const configuration = new Configuration();
131
- const apiInstance = new AuditControllerApi(configuration);
131
+ const apiInstance = new CollaborationAuditControllerApi(configuration);
132
132
 
133
133
  const { status, data } = await apiInstance.verifyChain();
134
134
  ```
@@ -0,0 +1,22 @@
1
+ # ConsumeDelegatedGrantRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptionId** | **string** | | [default to undefined]
9
+ **folderId** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConsumeDelegatedGrantRequest } from '@openfilz-sdk/typescript-ee';
15
+
16
+ const instance: ConsumeDelegatedGrantRequest = {
17
+ subscriptionId,
18
+ folderId,
19
+ };
20
+ ```
21
+
22
+ [[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,26 @@
1
+ # CreateDelegatedGrantRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **grantor** | **string** | | [default to undefined]
9
+ **purpose** | **string** | | [default to undefined]
10
+ **note** | **string** | | [optional] [default to undefined]
11
+ **targetUrl** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { CreateDelegatedGrantRequest } from '@openfilz-sdk/typescript-ee';
17
+
18
+ const instance: CreateDelegatedGrantRequest = {
19
+ grantor,
20
+ purpose,
21
+ note,
22
+ targetUrl,
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,275 @@
1
+ # DelegatedBrowseGrantsAdminApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**browseFolders**](#browsefolders) | **GET** /api/v1/admin/delegated/folders | Browse folders on behalf of the grantor|
8
+ |[**consume**](#consume) | **POST** /api/v1/admin/delegated/grants/{id}/consume | Mark grant as consumed|
9
+ |[**getGrant**](#getgrant) | **GET** /api/v1/admin/delegated/grants/{id} | Poll grant status|
10
+ |[**listMine**](#listmine) | **GET** /api/v1/admin/delegated/grants | List grants I requested|
11
+ |[**requestGrant**](#requestgrant) | **POST** /api/v1/admin/delegated/grants | Request a grant|
12
+
13
+ # **browseFolders**
14
+ > Array<DelegatedFolderNode> browseFolders()
15
+
16
+ List folders under {parent} in the grantor\'s tree. Omit {parent} to list the grantor\'s root-level folders. Returns only name/id/hasChildren — no files, no metadata, no content-types.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ DelegatedBrowseGrantsAdminApi,
23
+ Configuration
24
+ } from '@openfilz-sdk/typescript-ee';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new DelegatedBrowseGrantsAdminApi(configuration);
28
+
29
+ let grantId: string; // (default to undefined)
30
+ let parent: string; // (optional) (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.browseFolders(
33
+ grantId,
34
+ parent
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **grantId** | [**string**] | | defaults to undefined|
43
+ | **parent** | [**string**] | | (optional) defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **Array<DelegatedFolderNode>**
49
+
50
+ ### Authorization
51
+
52
+ [keycloak_auth](../README.md#keycloak_auth)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | OK | - |
64
+
65
+ [[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)
66
+
67
+ # **consume**
68
+ > DelegatedGrantDTO consume(consumeDelegatedGrantRequest)
69
+
70
+ Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ DelegatedBrowseGrantsAdminApi,
77
+ Configuration,
78
+ ConsumeDelegatedGrantRequest
79
+ } from '@openfilz-sdk/typescript-ee';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new DelegatedBrowseGrantsAdminApi(configuration);
83
+
84
+ let id: string; // (default to undefined)
85
+ let consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest; //
86
+
87
+ const { status, data } = await apiInstance.consume(
88
+ id,
89
+ consumeDelegatedGrantRequest
90
+ );
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ |Name | Type | Description | Notes|
96
+ |------------- | ------------- | ------------- | -------------|
97
+ | **consumeDelegatedGrantRequest** | **ConsumeDelegatedGrantRequest**| | |
98
+ | **id** | [**string**] | | defaults to undefined|
99
+
100
+
101
+ ### Return type
102
+
103
+ **DelegatedGrantDTO**
104
+
105
+ ### Authorization
106
+
107
+ [keycloak_auth](../README.md#keycloak_auth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: application/json
112
+ - **Accept**: */*
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | OK | - |
119
+
120
+ [[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)
121
+
122
+ # **getGrant**
123
+ > DelegatedGrantDTO getGrant()
124
+
125
+ Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ DelegatedBrowseGrantsAdminApi,
132
+ Configuration
133
+ } from '@openfilz-sdk/typescript-ee';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new DelegatedBrowseGrantsAdminApi(configuration);
137
+
138
+ let id: string; // (default to undefined)
139
+
140
+ const { status, data } = await apiInstance.getGrant(
141
+ id
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **id** | [**string**] | | defaults to undefined|
150
+
151
+
152
+ ### Return type
153
+
154
+ **DelegatedGrantDTO**
155
+
156
+ ### Authorization
157
+
158
+ [keycloak_auth](../README.md#keycloak_auth)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ |**200** | OK | - |
170
+
171
+ [[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)
172
+
173
+ # **listMine**
174
+ > Array<DelegatedGrantDTO> listMine()
175
+
176
+ Optionally filter by ?status=PENDING|ACCEPTED|...
177
+
178
+ ### Example
179
+
180
+ ```typescript
181
+ import {
182
+ DelegatedBrowseGrantsAdminApi,
183
+ Configuration
184
+ } from '@openfilz-sdk/typescript-ee';
185
+
186
+ const configuration = new Configuration();
187
+ const apiInstance = new DelegatedBrowseGrantsAdminApi(configuration);
188
+
189
+ let status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'REVOKED' | 'EXPIRED' | 'CONSUMED'; // (optional) (default to undefined)
190
+
191
+ const { status, data } = await apiInstance.listMine(
192
+ status
193
+ );
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ |Name | Type | Description | Notes|
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **status** | [**&#39;PENDING&#39; | &#39;ACCEPTED&#39; | &#39;DECLINED&#39; | &#39;REVOKED&#39; | &#39;EXPIRED&#39; | &#39;CONSUMED&#39;**]**Array<&#39;PENDING&#39; &#124; &#39;ACCEPTED&#39; &#124; &#39;DECLINED&#39; &#124; &#39;REVOKED&#39; &#124; &#39;EXPIRED&#39; &#124; &#39;CONSUMED&#39;>** | | (optional) defaults to undefined|
201
+
202
+
203
+ ### Return type
204
+
205
+ **Array<DelegatedGrantDTO>**
206
+
207
+ ### Authorization
208
+
209
+ [keycloak_auth](../README.md#keycloak_auth)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: application/json
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ |**200** | OK | - |
221
+
222
+ [[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)
223
+
224
+ # **requestGrant**
225
+ > DelegatedGrantDTO requestGrant(createDelegatedGrantRequest)
226
+
227
+ Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
228
+
229
+ ### Example
230
+
231
+ ```typescript
232
+ import {
233
+ DelegatedBrowseGrantsAdminApi,
234
+ Configuration,
235
+ CreateDelegatedGrantRequest
236
+ } from '@openfilz-sdk/typescript-ee';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new DelegatedBrowseGrantsAdminApi(configuration);
240
+
241
+ let createDelegatedGrantRequest: CreateDelegatedGrantRequest; //
242
+
243
+ const { status, data } = await apiInstance.requestGrant(
244
+ createDelegatedGrantRequest
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **createDelegatedGrantRequest** | **CreateDelegatedGrantRequest**| | |
253
+
254
+
255
+ ### Return type
256
+
257
+ **DelegatedGrantDTO**
258
+
259
+ ### Authorization
260
+
261
+ [keycloak_auth](../README.md#keycloak_auth)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: */*
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ |**200** | OK | - |
273
+
274
+ [[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)
275
+
@@ -0,0 +1,266 @@
1
+ # DelegatedBrowseGrantsEndUserApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**accept**](#accept) | **POST** /api/v1/users/me/delegated/grants/{id}/accept | Approve a pending grant|
8
+ |[**decline**](#decline) | **POST** /api/v1/users/me/delegated/grants/{id}/decline | Refuse a pending grant|
9
+ |[**disableLinkedWebhook**](#disablelinkedwebhook) | **POST** /api/v1/users/me/delegated/grants/{id}/disable-webhook | Disable the webhook created from this grant|
10
+ |[**listIncoming**](#listincoming) | **GET** /api/v1/users/me/delegated/grants | List grants addressed to me|
11
+ |[**revoke**](#revoke) | **POST** /api/v1/users/me/delegated/grants/{id}/revoke | Revoke an accepted grant|
12
+
13
+ # **accept**
14
+ > DelegatedGrantDTO accept()
15
+
16
+ Flip PENDING → ACCEPTED. Admin may then browse my folders for the next 2 hours. Client MUST force a step-up (prompt=login) before calling this — a valid session alone is NOT enough security to approve cross-user browsing.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ DelegatedBrowseGrantsEndUserApi,
23
+ Configuration
24
+ } from '@openfilz-sdk/typescript-ee';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new DelegatedBrowseGrantsEndUserApi(configuration);
28
+
29
+ let id: string; // (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.accept(
32
+ id
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **id** | [**string**] | | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **DelegatedGrantDTO**
46
+
47
+ ### Authorization
48
+
49
+ [keycloak_auth](../README.md#keycloak_auth)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | OK | - |
61
+
62
+ [[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)
63
+
64
+ # **decline**
65
+ > DelegatedGrantDTO decline()
66
+
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ DelegatedBrowseGrantsEndUserApi,
73
+ Configuration
74
+ } from '@openfilz-sdk/typescript-ee';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new DelegatedBrowseGrantsEndUserApi(configuration);
78
+
79
+ let id: string; // (default to undefined)
80
+
81
+ const { status, data } = await apiInstance.decline(
82
+ id
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **id** | [**string**] | | defaults to undefined|
91
+
92
+
93
+ ### Return type
94
+
95
+ **DelegatedGrantDTO**
96
+
97
+ ### Authorization
98
+
99
+ [keycloak_auth](../README.md#keycloak_auth)
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | OK | - |
111
+
112
+ [[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)
113
+
114
+ # **disableLinkedWebhook**
115
+ > DelegatedGrantDTO disableLinkedWebhook()
116
+
117
+ Grantor-only consent withdrawal. Requires status = CONSUMED. Deletes the linked webhook subscription via webhooks-api; the grant row stays CONSUMED with consumedSubscriptionId preserved as an audit pointer. 409 if the grant is not CONSUMED or has no linked subscription id.
118
+
119
+ ### Example
120
+
121
+ ```typescript
122
+ import {
123
+ DelegatedBrowseGrantsEndUserApi,
124
+ Configuration
125
+ } from '@openfilz-sdk/typescript-ee';
126
+
127
+ const configuration = new Configuration();
128
+ const apiInstance = new DelegatedBrowseGrantsEndUserApi(configuration);
129
+
130
+ let id: string; // (default to undefined)
131
+
132
+ const { status, data } = await apiInstance.disableLinkedWebhook(
133
+ id
134
+ );
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ |Name | Type | Description | Notes|
140
+ |------------- | ------------- | ------------- | -------------|
141
+ | **id** | [**string**] | | defaults to undefined|
142
+
143
+
144
+ ### Return type
145
+
146
+ **DelegatedGrantDTO**
147
+
148
+ ### Authorization
149
+
150
+ [keycloak_auth](../README.md#keycloak_auth)
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: application/json
156
+
157
+
158
+ ### HTTP response details
159
+ | Status code | Description | Response headers |
160
+ |-------------|-------------|------------------|
161
+ |**200** | OK | - |
162
+
163
+ [[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)
164
+
165
+ # **listIncoming**
166
+ > Array<DelegatedGrantDTO> listIncoming()
167
+
168
+ Optionally filter by ?status=PENDING|ACCEPTED|...
169
+
170
+ ### Example
171
+
172
+ ```typescript
173
+ import {
174
+ DelegatedBrowseGrantsEndUserApi,
175
+ Configuration
176
+ } from '@openfilz-sdk/typescript-ee';
177
+
178
+ const configuration = new Configuration();
179
+ const apiInstance = new DelegatedBrowseGrantsEndUserApi(configuration);
180
+
181
+ let status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'REVOKED' | 'EXPIRED' | 'CONSUMED'; // (optional) (default to undefined)
182
+
183
+ const { status, data } = await apiInstance.listIncoming(
184
+ status
185
+ );
186
+ ```
187
+
188
+ ### Parameters
189
+
190
+ |Name | Type | Description | Notes|
191
+ |------------- | ------------- | ------------- | -------------|
192
+ | **status** | [**&#39;PENDING&#39; | &#39;ACCEPTED&#39; | &#39;DECLINED&#39; | &#39;REVOKED&#39; | &#39;EXPIRED&#39; | &#39;CONSUMED&#39;**]**Array<&#39;PENDING&#39; &#124; &#39;ACCEPTED&#39; &#124; &#39;DECLINED&#39; &#124; &#39;REVOKED&#39; &#124; &#39;EXPIRED&#39; &#124; &#39;CONSUMED&#39;>** | | (optional) defaults to undefined|
193
+
194
+
195
+ ### Return type
196
+
197
+ **Array<DelegatedGrantDTO>**
198
+
199
+ ### Authorization
200
+
201
+ [keycloak_auth](../README.md#keycloak_auth)
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: Not defined
206
+ - **Accept**: application/json
207
+
208
+
209
+ ### HTTP response details
210
+ | Status code | Description | Response headers |
211
+ |-------------|-------------|------------------|
212
+ |**200** | OK | - |
213
+
214
+ [[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)
215
+
216
+ # **revoke**
217
+ > DelegatedGrantDTO revoke()
218
+
219
+ Flip ACCEPTED → REVOKED. Immediate — any in-flight admin browse becomes 410 on its next call.
220
+
221
+ ### Example
222
+
223
+ ```typescript
224
+ import {
225
+ DelegatedBrowseGrantsEndUserApi,
226
+ Configuration
227
+ } from '@openfilz-sdk/typescript-ee';
228
+
229
+ const configuration = new Configuration();
230
+ const apiInstance = new DelegatedBrowseGrantsEndUserApi(configuration);
231
+
232
+ let id: string; // (default to undefined)
233
+
234
+ const { status, data } = await apiInstance.revoke(
235
+ id
236
+ );
237
+ ```
238
+
239
+ ### Parameters
240
+
241
+ |Name | Type | Description | Notes|
242
+ |------------- | ------------- | ------------- | -------------|
243
+ | **id** | [**string**] | | defaults to undefined|
244
+
245
+
246
+ ### Return type
247
+
248
+ **DelegatedGrantDTO**
249
+
250
+ ### Authorization
251
+
252
+ [keycloak_auth](../README.md#keycloak_auth)
253
+
254
+ ### HTTP request headers
255
+
256
+ - **Content-Type**: Not defined
257
+ - **Accept**: application/json
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
+