@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
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { AuditLog } from '../models';
|
|
16
15
|
import type { AuditVerificationResult } from '../models';
|
|
16
|
+
import type { EnrichedAuditLog } from '../models';
|
|
17
17
|
import type { SearchByAuditLogRequest } from '../models';
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* CollaborationAuditControllerApi - axios parameter creator
|
|
20
20
|
*/
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const CollaborationAuditControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @summary Get audit trail for a resource
|
|
23
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
24
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
25
25
|
* @param {string} id ID of the resource to get the audit trail for
|
|
26
26
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
@@ -29,15 +29,15 @@ export declare const AuditControllerApiAxiosParamCreator: (configuration?: Confi
|
|
|
29
29
|
*/
|
|
30
30
|
getAuditTrail: (id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @summary Search
|
|
32
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
33
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
34
34
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
38
|
searchAuditTrail: (searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
/**
|
|
40
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
40
|
+
* 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.
|
|
41
41
|
* @summary Verify audit chain integrity
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
@@ -45,28 +45,28 @@ export declare const AuditControllerApiAxiosParamCreator: (configuration?: Confi
|
|
|
45
45
|
verifyChain: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* CollaborationAuditControllerApi - functional programming interface
|
|
49
49
|
*/
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const CollaborationAuditControllerApiFp: (configuration?: Configuration) => {
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @summary Get audit trail for a resource
|
|
52
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
53
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
54
54
|
* @param {string} id ID of the resource to get the audit trail for
|
|
55
55
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
59
|
+
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EnrichedAuditLog>>>;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @summary Search
|
|
61
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
62
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
63
63
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
67
|
+
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EnrichedAuditLog>>>;
|
|
68
68
|
/**
|
|
69
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
69
|
+
* 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.
|
|
70
70
|
* @summary Verify audit chain integrity
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
@@ -74,28 +74,28 @@ export declare const AuditControllerApiFp: (configuration?: Configuration) => {
|
|
|
74
74
|
verifyChain(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditVerificationResult>>;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* CollaborationAuditControllerApi - factory interface
|
|
78
78
|
*/
|
|
79
|
-
export declare const
|
|
79
|
+
export declare const CollaborationAuditControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
82
|
-
* @summary Get audit trail for a resource
|
|
81
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
82
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
83
83
|
* @param {string} id ID of the resource to get the audit trail for
|
|
84
84
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
85
85
|
* @param {*} [options] Override http request option.
|
|
86
86
|
* @throws {RequiredError}
|
|
87
87
|
*/
|
|
88
|
-
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
88
|
+
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<EnrichedAuditLog>>;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @summary Search
|
|
90
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
91
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
92
92
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
93
93
|
* @param {*} [options] Override http request option.
|
|
94
94
|
* @throws {RequiredError}
|
|
95
95
|
*/
|
|
96
|
-
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
96
|
+
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<EnrichedAuditLog>>;
|
|
97
97
|
/**
|
|
98
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
98
|
+
* 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.
|
|
99
99
|
* @summary Verify audit chain integrity
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
@@ -103,28 +103,28 @@ export declare const AuditControllerApiFactory: (configuration?: Configuration,
|
|
|
103
103
|
verifyChain(options?: RawAxiosRequestConfig): AxiosPromise<AuditVerificationResult>;
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* CollaborationAuditControllerApi - object-oriented interface
|
|
107
107
|
*/
|
|
108
|
-
export declare class
|
|
108
|
+
export declare class CollaborationAuditControllerApi extends BaseAPI {
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @summary Get audit trail for a resource
|
|
110
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
111
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
112
112
|
* @param {string} id ID of the resource to get the audit trail for
|
|
113
113
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
114
114
|
* @param {*} [options] Override http request option.
|
|
115
115
|
* @throws {RequiredError}
|
|
116
116
|
*/
|
|
117
|
-
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
117
|
+
getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrichedAuditLog[], any, {}>>;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @summary Search
|
|
119
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
120
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
121
121
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
*/
|
|
125
|
-
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
125
|
+
searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrichedAuditLog[], any, {}>>;
|
|
126
126
|
/**
|
|
127
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
127
|
+
* 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.
|
|
128
128
|
* @summary Verify audit chain integrity
|
|
129
129
|
* @param {*} [options] Override http request option.
|
|
130
130
|
* @throws {RequiredError}
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetAuditTrailSortEnum = exports.
|
|
25
|
+
exports.GetAuditTrailSortEnum = exports.CollaborationAuditControllerApi = exports.CollaborationAuditControllerApiFactory = exports.CollaborationAuditControllerApiFp = exports.CollaborationAuditControllerApiAxiosParamCreator = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -30,13 +30,13 @@ const common_1 = require("../common");
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("../base");
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* CollaborationAuditControllerApi - axios parameter creator
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const CollaborationAuditControllerApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary Get audit trail for a resource
|
|
38
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
39
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
40
40
|
* @param {string} id ID of the resource to get the audit trail for
|
|
41
41
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
@@ -72,8 +72,8 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
|
|
|
72
72
|
};
|
|
73
73
|
}),
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @summary Search
|
|
75
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
76
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
77
77
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
@@ -106,7 +106,7 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
|
|
|
106
106
|
};
|
|
107
107
|
}),
|
|
108
108
|
/**
|
|
109
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
109
|
+
* 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.
|
|
110
110
|
* @summary Verify audit chain integrity
|
|
111
111
|
* @param {*} [options] Override http request option.
|
|
112
112
|
* @throws {RequiredError}
|
|
@@ -136,16 +136,16 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
}),
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
-
exports.
|
|
139
|
+
exports.CollaborationAuditControllerApiAxiosParamCreator = CollaborationAuditControllerApiAxiosParamCreator;
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* CollaborationAuditControllerApi - functional programming interface
|
|
142
142
|
*/
|
|
143
|
-
const
|
|
144
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
143
|
+
const CollaborationAuditControllerApiFp = function (configuration) {
|
|
144
|
+
const localVarAxiosParamCreator = (0, exports.CollaborationAuditControllerApiAxiosParamCreator)(configuration);
|
|
145
145
|
return {
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
148
|
-
* @summary Get audit trail for a resource
|
|
147
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
148
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
149
149
|
* @param {string} id ID of the resource to get the audit trail for
|
|
150
150
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
@@ -156,13 +156,13 @@ const AuditControllerApiFp = function (configuration) {
|
|
|
156
156
|
var _a, _b, _c;
|
|
157
157
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuditTrail(id, sort, options);
|
|
158
158
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
159
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
159
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.getAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
160
160
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
161
161
|
});
|
|
162
162
|
},
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
165
|
-
* @summary Search
|
|
164
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
165
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
166
166
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
@@ -172,12 +172,12 @@ const AuditControllerApiFp = function (configuration) {
|
|
|
172
172
|
var _a, _b, _c;
|
|
173
173
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchAuditTrail(searchByAuditLogRequest, options);
|
|
174
174
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
175
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
175
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.searchAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
176
176
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
177
177
|
});
|
|
178
178
|
},
|
|
179
179
|
/**
|
|
180
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
180
|
+
* 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.
|
|
181
181
|
* @summary Verify audit chain integrity
|
|
182
182
|
* @param {*} [options] Override http request option.
|
|
183
183
|
* @throws {RequiredError}
|
|
@@ -187,22 +187,22 @@ const AuditControllerApiFp = function (configuration) {
|
|
|
187
187
|
var _a, _b, _c;
|
|
188
188
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyChain(options);
|
|
189
189
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
190
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
190
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.verifyChain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
191
191
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
192
192
|
});
|
|
193
193
|
},
|
|
194
194
|
};
|
|
195
195
|
};
|
|
196
|
-
exports.
|
|
196
|
+
exports.CollaborationAuditControllerApiFp = CollaborationAuditControllerApiFp;
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
198
|
+
* CollaborationAuditControllerApi - factory interface
|
|
199
199
|
*/
|
|
200
|
-
const
|
|
201
|
-
const localVarFp = (0, exports.
|
|
200
|
+
const CollaborationAuditControllerApiFactory = function (configuration, basePath, axios) {
|
|
201
|
+
const localVarFp = (0, exports.CollaborationAuditControllerApiFp)(configuration);
|
|
202
202
|
return {
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
205
|
-
* @summary Get audit trail for a resource
|
|
204
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
205
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
206
206
|
* @param {string} id ID of the resource to get the audit trail for
|
|
207
207
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
@@ -212,8 +212,8 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
|
|
|
212
212
|
return localVarFp.getAuditTrail(id, sort, options).then((request) => request(axios, basePath));
|
|
213
213
|
},
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
216
|
-
* @summary Search
|
|
215
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
216
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
217
217
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
219
219
|
* @throws {RequiredError}
|
|
@@ -222,7 +222,7 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
|
|
|
222
222
|
return localVarFp.searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(axios, basePath));
|
|
223
223
|
},
|
|
224
224
|
/**
|
|
225
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
225
|
+
* 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.
|
|
226
226
|
* @summary Verify audit chain integrity
|
|
227
227
|
* @param {*} [options] Override http request option.
|
|
228
228
|
* @throws {RequiredError}
|
|
@@ -232,43 +232,43 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
|
|
|
232
232
|
},
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
exports.
|
|
235
|
+
exports.CollaborationAuditControllerApiFactory = CollaborationAuditControllerApiFactory;
|
|
236
236
|
/**
|
|
237
|
-
*
|
|
237
|
+
* CollaborationAuditControllerApi - object-oriented interface
|
|
238
238
|
*/
|
|
239
|
-
class
|
|
239
|
+
class CollaborationAuditControllerApi extends base_1.BaseAPI {
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
242
|
-
* @summary Get audit trail for a resource
|
|
241
|
+
* EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
|
|
242
|
+
* @summary Get audit trail for a resource (enriched with actor azp)
|
|
243
243
|
* @param {string} id ID of the resource to get the audit trail for
|
|
244
244
|
* @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
|
|
245
245
|
* @param {*} [options] Override http request option.
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
*/
|
|
248
248
|
getAuditTrail(id, sort, options) {
|
|
249
|
-
return (0, exports.
|
|
249
|
+
return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).getAuditTrail(id, sort, options).then((request) => request(this.axios, this.basePath));
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
253
|
-
* @summary Search
|
|
252
|
+
* EE variant — same as core, returns rows enriched with actor azp.
|
|
253
|
+
* @summary Search audit trail (enriched with actor azp)
|
|
254
254
|
* @param {SearchByAuditLogRequest} searchByAuditLogRequest
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
258
258
|
searchAuditTrail(searchByAuditLogRequest, options) {
|
|
259
|
-
return (0, exports.
|
|
259
|
+
return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(this.axios, this.basePath));
|
|
260
260
|
}
|
|
261
261
|
/**
|
|
262
|
-
* Verifies the cryptographic hash chain of the audit log to
|
|
262
|
+
* 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.
|
|
263
263
|
* @summary Verify audit chain integrity
|
|
264
264
|
* @param {*} [options] Override http request option.
|
|
265
265
|
* @throws {RequiredError}
|
|
266
266
|
*/
|
|
267
267
|
verifyChain(options) {
|
|
268
|
-
return (0, exports.
|
|
268
|
+
return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).verifyChain(options).then((request) => request(this.axios, this.basePath));
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
exports.
|
|
271
|
+
exports.CollaborationAuditControllerApi = CollaborationAuditControllerApi;
|
|
272
272
|
exports.GetAuditTrailSortEnum = {
|
|
273
273
|
Asc: 'ASC',
|
|
274
274
|
Desc: 'DESC'
|
|
@@ -0,0 +1,215 @@
|
|
|
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 { ConsumeDelegatedGrantRequest } from '../models';
|
|
16
|
+
import type { CreateDelegatedGrantRequest } from '../models';
|
|
17
|
+
import type { DelegatedFolderNode } from '../models';
|
|
18
|
+
import type { DelegatedGrantDTO } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* DelegatedBrowseGrantsAdminApi - axios parameter creator
|
|
21
|
+
*/
|
|
22
|
+
export declare const DelegatedBrowseGrantsAdminApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
* @summary Browse folders on behalf of the grantor
|
|
26
|
+
* @param {string} grantId
|
|
27
|
+
* @param {string} [parent]
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
browseFolders: (grantId: string, parent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
34
|
+
* @summary Mark grant as consumed
|
|
35
|
+
* @param {string} id
|
|
36
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
consume: (id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
43
|
+
* @summary Poll grant status
|
|
44
|
+
* @param {string} id
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
getGrant: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
51
|
+
* @summary List grants I requested
|
|
52
|
+
* @param {ListMineStatusEnum} [status]
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
listMine: (status?: ListMineStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
59
|
+
* @summary Request a grant
|
|
60
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
requestGrant: (createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* DelegatedBrowseGrantsAdminApi - functional programming interface
|
|
68
|
+
*/
|
|
69
|
+
export declare const DelegatedBrowseGrantsAdminApiFp: (configuration?: Configuration) => {
|
|
70
|
+
/**
|
|
71
|
+
* 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.
|
|
72
|
+
* @summary Browse folders on behalf of the grantor
|
|
73
|
+
* @param {string} grantId
|
|
74
|
+
* @param {string} [parent]
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DelegatedFolderNode>>>;
|
|
79
|
+
/**
|
|
80
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
81
|
+
* @summary Mark grant as consumed
|
|
82
|
+
* @param {string} id
|
|
83
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
88
|
+
/**
|
|
89
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
90
|
+
* @summary Poll grant status
|
|
91
|
+
* @param {string} id
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
getGrant(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
96
|
+
/**
|
|
97
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
98
|
+
* @summary List grants I requested
|
|
99
|
+
* @param {ListMineStatusEnum} [status]
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DelegatedGrantDTO>>>;
|
|
104
|
+
/**
|
|
105
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
106
|
+
* @summary Request a grant
|
|
107
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* DelegatedBrowseGrantsAdminApi - factory interface
|
|
115
|
+
*/
|
|
116
|
+
export declare const DelegatedBrowseGrantsAdminApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
117
|
+
/**
|
|
118
|
+
* 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.
|
|
119
|
+
* @summary Browse folders on behalf of the grantor
|
|
120
|
+
* @param {string} grantId
|
|
121
|
+
* @param {string} [parent]
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DelegatedFolderNode>>;
|
|
126
|
+
/**
|
|
127
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
128
|
+
* @summary Mark grant as consumed
|
|
129
|
+
* @param {string} id
|
|
130
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
135
|
+
/**
|
|
136
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
137
|
+
* @summary Poll grant status
|
|
138
|
+
* @param {string} id
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getGrant(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
143
|
+
/**
|
|
144
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
145
|
+
* @summary List grants I requested
|
|
146
|
+
* @param {ListMineStatusEnum} [status]
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<DelegatedGrantDTO>>;
|
|
151
|
+
/**
|
|
152
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
153
|
+
* @summary Request a grant
|
|
154
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* DelegatedBrowseGrantsAdminApi - object-oriented interface
|
|
162
|
+
*/
|
|
163
|
+
export declare class DelegatedBrowseGrantsAdminApi extends BaseAPI {
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
* @summary Browse folders on behalf of the grantor
|
|
167
|
+
* @param {string} grantId
|
|
168
|
+
* @param {string} [parent]
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedFolderNode[], any, {}>>;
|
|
173
|
+
/**
|
|
174
|
+
* Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
|
|
175
|
+
* @summary Mark grant as consumed
|
|
176
|
+
* @param {string} id
|
|
177
|
+
* @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
182
|
+
/**
|
|
183
|
+
* Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
|
|
184
|
+
* @summary Poll grant status
|
|
185
|
+
* @param {string} id
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
getGrant(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
190
|
+
/**
|
|
191
|
+
* Optionally filter by ?status=PENDING|ACCEPTED|...
|
|
192
|
+
* @summary List grants I requested
|
|
193
|
+
* @param {ListMineStatusEnum} [status]
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO[], any, {}>>;
|
|
198
|
+
/**
|
|
199
|
+
* Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
|
|
200
|
+
* @summary Request a grant
|
|
201
|
+
* @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
|
|
206
|
+
}
|
|
207
|
+
export declare const ListMineStatusEnum: {
|
|
208
|
+
readonly Pending: "PENDING";
|
|
209
|
+
readonly Accepted: "ACCEPTED";
|
|
210
|
+
readonly Declined: "DECLINED";
|
|
211
|
+
readonly Revoked: "REVOKED";
|
|
212
|
+
readonly Expired: "EXPIRED";
|
|
213
|
+
readonly Consumed: "CONSUMED";
|
|
214
|
+
};
|
|
215
|
+
export type ListMineStatusEnum = typeof ListMineStatusEnum[keyof typeof ListMineStatusEnum];
|