@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,434 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ListMineStatusEnum = exports.DelegatedBrowseGrantsAdminApi = exports.DelegatedBrowseGrantsAdminApiFactory = exports.DelegatedBrowseGrantsAdminApiFp = exports.DelegatedBrowseGrantsAdminApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* DelegatedBrowseGrantsAdminApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const DelegatedBrowseGrantsAdminApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* 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.
|
|
39
|
+
* @summary Browse folders on behalf of the grantor
|
|
40
|
+
* @param {string} grantId
|
|
41
|
+
* @param {string} [parent]
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
browseFolders: (grantId_1, parent_1, ...args_1) => __awaiter(this, [grantId_1, parent_1, ...args_1], void 0, function* (grantId, parent, options = {}) {
|
|
46
|
+
// verify required parameter 'grantId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('browseFolders', 'grantId', grantId);
|
|
48
|
+
const localVarPath = `/api/v1/admin/delegated/folders`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
61
|
+
if (grantId !== undefined) {
|
|
62
|
+
localVarQueryParameter['grantId'] = grantId;
|
|
63
|
+
}
|
|
64
|
+
if (parent !== undefined) {
|
|
65
|
+
localVarQueryParameter['parent'] = parent;
|
|
66
|
+
}
|
|
67
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
/**
|
|
77
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
78
|
+
* @summary Mark grant as consumed
|
|
79
|
+
* @param {string} id
|
|
80
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
consume: (id_1, consumeDelegatedGrantRequest_1, ...args_1) => __awaiter(this, [id_1, consumeDelegatedGrantRequest_1, ...args_1], void 0, function* (id, consumeDelegatedGrantRequest, options = {}) {
|
|
85
|
+
// verify required parameter 'id' is not null or undefined
|
|
86
|
+
(0, common_1.assertParamExists)('consume', 'id', id);
|
|
87
|
+
// verify required parameter 'consumeDelegatedGrantRequest' is not null or undefined
|
|
88
|
+
(0, common_1.assertParamExists)('consume', 'consumeDelegatedGrantRequest', consumeDelegatedGrantRequest);
|
|
89
|
+
const localVarPath = `/api/v1/admin/delegated/grants/{id}/consume`
|
|
90
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
91
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
93
|
+
let baseOptions;
|
|
94
|
+
if (configuration) {
|
|
95
|
+
baseOptions = configuration.baseOptions;
|
|
96
|
+
}
|
|
97
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
98
|
+
const localVarHeaderParameter = {};
|
|
99
|
+
const localVarQueryParameter = {};
|
|
100
|
+
// authentication keycloak_auth required
|
|
101
|
+
// http bearer authentication required
|
|
102
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
103
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
104
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
105
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
108
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(consumeDelegatedGrantRequest, localVarRequestOptions, configuration);
|
|
109
|
+
return {
|
|
110
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
111
|
+
options: localVarRequestOptions,
|
|
112
|
+
};
|
|
113
|
+
}),
|
|
114
|
+
/**
|
|
115
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
116
|
+
* @summary Poll grant status
|
|
117
|
+
* @param {string} id
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
getGrant: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
122
|
+
// verify required parameter 'id' is not null or undefined
|
|
123
|
+
(0, common_1.assertParamExists)('getGrant', 'id', id);
|
|
124
|
+
const localVarPath = `/api/v1/admin/delegated/grants/{id}`
|
|
125
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
133
|
+
const localVarHeaderParameter = {};
|
|
134
|
+
const localVarQueryParameter = {};
|
|
135
|
+
// authentication keycloak_auth required
|
|
136
|
+
// http bearer authentication required
|
|
137
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
138
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
139
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
+
return {
|
|
143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
}),
|
|
147
|
+
/**
|
|
148
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
149
|
+
* @summary List grants I requested
|
|
150
|
+
* @param {ListMineStatusEnum} [status]
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
listMine: (status_1, ...args_1) => __awaiter(this, [status_1, ...args_1], void 0, function* (status, options = {}) {
|
|
155
|
+
const localVarPath = `/api/v1/admin/delegated/grants`;
|
|
156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
158
|
+
let baseOptions;
|
|
159
|
+
if (configuration) {
|
|
160
|
+
baseOptions = configuration.baseOptions;
|
|
161
|
+
}
|
|
162
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
163
|
+
const localVarHeaderParameter = {};
|
|
164
|
+
const localVarQueryParameter = {};
|
|
165
|
+
// authentication keycloak_auth required
|
|
166
|
+
// http bearer authentication required
|
|
167
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
168
|
+
if (status !== undefined) {
|
|
169
|
+
localVarQueryParameter['status'] = status;
|
|
170
|
+
}
|
|
171
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
175
|
+
return {
|
|
176
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions,
|
|
178
|
+
};
|
|
179
|
+
}),
|
|
180
|
+
/**
|
|
181
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
182
|
+
* @summary Request a grant
|
|
183
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
requestGrant: (createDelegatedGrantRequest_1, ...args_1) => __awaiter(this, [createDelegatedGrantRequest_1, ...args_1], void 0, function* (createDelegatedGrantRequest, options = {}) {
|
|
188
|
+
// verify required parameter 'createDelegatedGrantRequest' is not null or undefined
|
|
189
|
+
(0, common_1.assertParamExists)('requestGrant', 'createDelegatedGrantRequest', createDelegatedGrantRequest);
|
|
190
|
+
const localVarPath = `/api/v1/admin/delegated/grants`;
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
198
|
+
const localVarHeaderParameter = {};
|
|
199
|
+
const localVarQueryParameter = {};
|
|
200
|
+
// authentication keycloak_auth required
|
|
201
|
+
// http bearer authentication required
|
|
202
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
204
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDelegatedGrantRequest, localVarRequestOptions, configuration);
|
|
209
|
+
return {
|
|
210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
exports.DelegatedBrowseGrantsAdminApiAxiosParamCreator = DelegatedBrowseGrantsAdminApiAxiosParamCreator;
|
|
217
|
+
/**
|
|
218
|
+
* DelegatedBrowseGrantsAdminApi - functional programming interface
|
|
219
|
+
*/
|
|
220
|
+
const DelegatedBrowseGrantsAdminApiFp = function (configuration) {
|
|
221
|
+
const localVarAxiosParamCreator = (0, exports.DelegatedBrowseGrantsAdminApiAxiosParamCreator)(configuration);
|
|
222
|
+
return {
|
|
223
|
+
/**
|
|
224
|
+
* 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.
|
|
225
|
+
* @summary Browse folders on behalf of the grantor
|
|
226
|
+
* @param {string} grantId
|
|
227
|
+
* @param {string} [parent]
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
browseFolders(grantId, parent, options) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a, _b, _c;
|
|
234
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.browseFolders(grantId, parent, options);
|
|
235
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
236
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DelegatedBrowseGrantsAdminApi.browseFolders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
237
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
238
|
+
});
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
242
|
+
* @summary Mark grant as consumed
|
|
243
|
+
* @param {string} id
|
|
244
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
consume(id, consumeDelegatedGrantRequest, options) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
var _a, _b, _c;
|
|
251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.consume(id, consumeDelegatedGrantRequest, options);
|
|
252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
253
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DelegatedBrowseGrantsAdminApi.consume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
259
|
+
* @summary Poll grant status
|
|
260
|
+
* @param {string} id
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
getGrant(id, options) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
var _a, _b, _c;
|
|
267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGrant(id, options);
|
|
268
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
269
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DelegatedBrowseGrantsAdminApi.getGrant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
270
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
275
|
+
* @summary List grants I requested
|
|
276
|
+
* @param {ListMineStatusEnum} [status]
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
listMine(status, options) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
var _a, _b, _c;
|
|
283
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listMine(status, options);
|
|
284
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
285
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DelegatedBrowseGrantsAdminApi.listMine']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
286
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
291
|
+
* @summary Request a grant
|
|
292
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
requestGrant(createDelegatedGrantRequest, options) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
var _a, _b, _c;
|
|
299
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestGrant(createDelegatedGrantRequest, options);
|
|
300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
301
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DelegatedBrowseGrantsAdminApi.requestGrant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
302
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
exports.DelegatedBrowseGrantsAdminApiFp = DelegatedBrowseGrantsAdminApiFp;
|
|
308
|
+
/**
|
|
309
|
+
* DelegatedBrowseGrantsAdminApi - factory interface
|
|
310
|
+
*/
|
|
311
|
+
const DelegatedBrowseGrantsAdminApiFactory = function (configuration, basePath, axios) {
|
|
312
|
+
const localVarFp = (0, exports.DelegatedBrowseGrantsAdminApiFp)(configuration);
|
|
313
|
+
return {
|
|
314
|
+
/**
|
|
315
|
+
* 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.
|
|
316
|
+
* @summary Browse folders on behalf of the grantor
|
|
317
|
+
* @param {string} grantId
|
|
318
|
+
* @param {string} [parent]
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
browseFolders(grantId, parent, options) {
|
|
323
|
+
return localVarFp.browseFolders(grantId, parent, options).then((request) => request(axios, basePath));
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
327
|
+
* @summary Mark grant as consumed
|
|
328
|
+
* @param {string} id
|
|
329
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
consume(id, consumeDelegatedGrantRequest, options) {
|
|
334
|
+
return localVarFp.consume(id, consumeDelegatedGrantRequest, options).then((request) => request(axios, basePath));
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
338
|
+
* @summary Poll grant status
|
|
339
|
+
* @param {string} id
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
getGrant(id, options) {
|
|
344
|
+
return localVarFp.getGrant(id, options).then((request) => request(axios, basePath));
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
348
|
+
* @summary List grants I requested
|
|
349
|
+
* @param {ListMineStatusEnum} [status]
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
listMine(status, options) {
|
|
354
|
+
return localVarFp.listMine(status, options).then((request) => request(axios, basePath));
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
358
|
+
* @summary Request a grant
|
|
359
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
requestGrant(createDelegatedGrantRequest, options) {
|
|
364
|
+
return localVarFp.requestGrant(createDelegatedGrantRequest, options).then((request) => request(axios, basePath));
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
exports.DelegatedBrowseGrantsAdminApiFactory = DelegatedBrowseGrantsAdminApiFactory;
|
|
369
|
+
/**
|
|
370
|
+
* DelegatedBrowseGrantsAdminApi - object-oriented interface
|
|
371
|
+
*/
|
|
372
|
+
class DelegatedBrowseGrantsAdminApi extends base_1.BaseAPI {
|
|
373
|
+
/**
|
|
374
|
+
* 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.
|
|
375
|
+
* @summary Browse folders on behalf of the grantor
|
|
376
|
+
* @param {string} grantId
|
|
377
|
+
* @param {string} [parent]
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
browseFolders(grantId, parent, options) {
|
|
382
|
+
return (0, exports.DelegatedBrowseGrantsAdminApiFp)(this.configuration).browseFolders(grantId, parent, options).then((request) => request(this.axios, this.basePath));
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
386
|
+
* @summary Mark grant as consumed
|
|
387
|
+
* @param {string} id
|
|
388
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
consume(id, consumeDelegatedGrantRequest, options) {
|
|
393
|
+
return (0, exports.DelegatedBrowseGrantsAdminApiFp)(this.configuration).consume(id, consumeDelegatedGrantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
397
|
+
* @summary Poll grant status
|
|
398
|
+
* @param {string} id
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
getGrant(id, options) {
|
|
403
|
+
return (0, exports.DelegatedBrowseGrantsAdminApiFp)(this.configuration).getGrant(id, options).then((request) => request(this.axios, this.basePath));
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
407
|
+
* @summary List grants I requested
|
|
408
|
+
* @param {ListMineStatusEnum} [status]
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
listMine(status, options) {
|
|
413
|
+
return (0, exports.DelegatedBrowseGrantsAdminApiFp)(this.configuration).listMine(status, options).then((request) => request(this.axios, this.basePath));
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
417
|
+
* @summary Request a grant
|
|
418
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
requestGrant(createDelegatedGrantRequest, options) {
|
|
423
|
+
return (0, exports.DelegatedBrowseGrantsAdminApiFp)(this.configuration).requestGrant(createDelegatedGrantRequest, options).then((request) => request(this.axios, this.basePath));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
exports.DelegatedBrowseGrantsAdminApi = DelegatedBrowseGrantsAdminApi;
|
|
427
|
+
exports.ListMineStatusEnum = {
|
|
428
|
+
Pending: 'PENDING',
|
|
429
|
+
Accepted: 'ACCEPTED',
|
|
430
|
+
Declined: 'DECLINED',
|
|
431
|
+
Revoked: 'REVOKED',
|
|
432
|
+
Expired: 'EXPIRED',
|
|
433
|
+
Consumed: 'CONSUMED'
|
|
434
|
+
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { DelegatedGrantDTO } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* DelegatedBrowseGrantsEndUserApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const DelegatedBrowseGrantsEndUserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
* @summary Approve a pending grant
|
|
23
|
+
* @param {string} id
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
accept: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Refuse a pending grant
|
|
31
|
+
* @param {string} id
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
decline: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
* 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.
|
|
38
|
+
* @summary Disable the webhook created from this grant
|
|
39
|
+
* @param {string} id
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
disableLinkedWebhook: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
46
|
+
* @summary List grants addressed to me
|
|
47
|
+
* @param {ListIncomingStatusEnum} [status]
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
listIncoming: (status?: ListIncomingStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
/**
|
|
53
|
+
* Flip ACCEPTED → REVOKED. Immediate — any in-flight admin browse becomes 410 on its next call.
|
|
54
|
+
* @summary Revoke an accepted grant
|
|
55
|
+
* @param {string} id
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
revoke: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* DelegatedBrowseGrantsEndUserApi - functional programming interface
|
|
63
|
+
*/
|
|
64
|
+
export declare const DelegatedBrowseGrantsEndUserApiFp: (configuration?: Configuration) => {
|
|
65
|
+
/**
|
|
66
|
+
* 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.
|
|
67
|
+
* @summary Approve a pending grant
|
|
68
|
+
* @param {string} id
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
accept(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary Refuse a pending grant
|
|
76
|
+
* @param {string} id
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
decline(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
81
|
+
/**
|
|
82
|
+
* 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.
|
|
83
|
+
* @summary Disable the webhook created from this grant
|
|
84
|
+
* @param {string} id
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
disableLinkedWebhook(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
89
|
+
/**
|
|
90
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
91
|
+
* @summary List grants addressed to me
|
|
92
|
+
* @param {ListIncomingStatusEnum} [status]
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
listIncoming(status?: ListIncomingStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DelegatedGrantDTO>>>;
|
|
97
|
+
/**
|
|
98
|
+
* Flip ACCEPTED → REVOKED. Immediate — any in-flight admin browse becomes 410 on its next call.
|
|
99
|
+
* @summary Revoke an accepted grant
|
|
100
|
+
* @param {string} id
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
revoke(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* DelegatedBrowseGrantsEndUserApi - factory interface
|
|
108
|
+
*/
|
|
109
|
+
export declare const DelegatedBrowseGrantsEndUserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
110
|
+
/**
|
|
111
|
+
* 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.
|
|
112
|
+
* @summary Approve a pending grant
|
|
113
|
+
* @param {string} id
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
accept(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @summary Refuse a pending grant
|
|
121
|
+
* @param {string} id
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
decline(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
126
|
+
/**
|
|
127
|
+
* 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.
|
|
128
|
+
* @summary Disable the webhook created from this grant
|
|
129
|
+
* @param {string} id
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
disableLinkedWebhook(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
134
|
+
/**
|
|
135
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
136
|
+
* @summary List grants addressed to me
|
|
137
|
+
* @param {ListIncomingStatusEnum} [status]
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
listIncoming(status?: ListIncomingStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<DelegatedGrantDTO>>;
|
|
142
|
+
/**
|
|
143
|
+
* Flip ACCEPTED → REVOKED. Immediate — any in-flight admin browse becomes 410 on its next call.
|
|
144
|
+
* @summary Revoke an accepted grant
|
|
145
|
+
* @param {string} id
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
revoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* DelegatedBrowseGrantsEndUserApi - object-oriented interface
|
|
153
|
+
*/
|
|
154
|
+
export declare class DelegatedBrowseGrantsEndUserApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
* 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.
|
|
157
|
+
* @summary Approve a pending grant
|
|
158
|
+
* @param {string} id
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
accept(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @summary Refuse a pending grant
|
|
166
|
+
* @param {string} id
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
decline(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
* @summary Disable the webhook created from this grant
|
|
174
|
+
* @param {string} id
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
disableLinkedWebhook(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
179
|
+
/**
|
|
180
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
181
|
+
* @summary List grants addressed to me
|
|
182
|
+
* @param {ListIncomingStatusEnum} [status]
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
listIncoming(status?: ListIncomingStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO[], any, {}>>;
|
|
187
|
+
/**
|
|
188
|
+
* Flip ACCEPTED → REVOKED. Immediate — any in-flight admin browse becomes 410 on its next call.
|
|
189
|
+
* @summary Revoke an accepted grant
|
|
190
|
+
* @param {string} id
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
revoke(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
195
|
+
}
|
|
196
|
+
export declare const ListIncomingStatusEnum: {
|
|
197
|
+
readonly Pending: "PENDING";
|
|
198
|
+
readonly Accepted: "ACCEPTED";
|
|
199
|
+
readonly Declined: "DECLINED";
|
|
200
|
+
readonly Revoked: "REVOKED";
|
|
201
|
+
readonly Expired: "EXPIRED";
|
|
202
|
+
readonly Consumed: "CONSUMED";
|
|
203
|
+
};
|
|
204
|
+
export type ListIncomingStatusEnum = typeof ListIncomingStatusEnum[keyof typeof ListIncomingStatusEnum];
|