@openfilz-sdk/typescript-ee 1.12.20 → 1.13.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 +4 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +6 -2
- package/api/ownership-api.ts +164 -0
- package/dist/api/ownership-api.d.ts +74 -0
- package/dist/api/ownership-api.js +154 -0
- package/dist/esm/api/ownership-api.d.ts +74 -0
- package/dist/esm/api/ownership-api.js +154 -0
- package/dist/esm/models/create-delegated-grant-request.d.ts +1 -0
- package/dist/esm/models/create-delegated-grant-request.js +1 -0
- package/dist/esm/models/delegated-grant-dto.d.ts +1 -0
- package/dist/esm/models/delegated-grant-dto.js +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/notification-dto.d.ts +2 -0
- package/dist/esm/models/notification-dto.js +2 -0
- package/dist/esm/models/ownership-consent-request.d.ts +20 -0
- package/dist/esm/models/ownership-consent-request.js +14 -0
- package/dist/esm/models/ownership-consent.d.ts +23 -0
- package/dist/esm/models/ownership-consent.js +14 -0
- package/dist/esm/models/ownership-eligibility.d.ts +4 -0
- package/dist/models/create-delegated-grant-request.d.ts +1 -0
- package/dist/models/create-delegated-grant-request.js +1 -0
- package/dist/models/delegated-grant-dto.d.ts +1 -0
- package/dist/models/delegated-grant-dto.js +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/notification-dto.d.ts +2 -0
- package/dist/models/notification-dto.js +2 -0
- package/dist/models/ownership-consent-request.d.ts +20 -0
- package/dist/models/ownership-consent-request.js +15 -0
- package/dist/models/ownership-consent.d.ts +23 -0
- package/dist/models/ownership-consent.js +15 -0
- package/dist/models/ownership-eligibility.d.ts +4 -0
- package/docs/OwnershipApi.md +114 -0
- package/docs/OwnershipConsent.md +33 -0
- package/docs/OwnershipConsentRequest.md +21 -0
- package/docs/OwnershipEligibility.md +6 -0
- package/models/create-delegated-grant-request.ts +1 -0
- package/models/delegated-grant-dto.ts +1 -0
- package/models/index.ts +2 -0
- package/models/notification-dto.ts +2 -0
- package/models/ownership-consent-request.ts +26 -0
- package/models/ownership-consent.ts +29 -0
- package/models/ownership-eligibility.ts +6 -0
- package/package.json +1 -1
|
@@ -273,6 +273,44 @@ const OwnershipApiAxiosParamCreator = function (configuration) {
|
|
|
273
273
|
options: localVarRequestOptions,
|
|
274
274
|
};
|
|
275
275
|
}),
|
|
276
|
+
/**
|
|
277
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
278
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
279
|
+
* @param {string} userId
|
|
280
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
adminRequestOwnershipConsent: (userId_1, ownershipConsentRequest_1, ...args_1) => __awaiter(this, [userId_1, ownershipConsentRequest_1, ...args_1], void 0, function* (userId, ownershipConsentRequest, options = {}) {
|
|
285
|
+
// verify required parameter 'userId' is not null or undefined
|
|
286
|
+
(0, common_1.assertParamExists)('adminRequestOwnershipConsent', 'userId', userId);
|
|
287
|
+
// verify required parameter 'ownershipConsentRequest' is not null or undefined
|
|
288
|
+
(0, common_1.assertParamExists)('adminRequestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest);
|
|
289
|
+
const localVarPath = `/api/v1/admin/ownership/users/{userId}/consent`
|
|
290
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
291
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
292
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
293
|
+
let baseOptions;
|
|
294
|
+
if (configuration) {
|
|
295
|
+
baseOptions = configuration.baseOptions;
|
|
296
|
+
}
|
|
297
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
298
|
+
const localVarHeaderParameter = {};
|
|
299
|
+
const localVarQueryParameter = {};
|
|
300
|
+
// authentication keycloak_auth required
|
|
301
|
+
// http bearer authentication required
|
|
302
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
303
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
304
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
308
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ownershipConsentRequest, localVarRequestOptions, configuration);
|
|
309
|
+
return {
|
|
310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions,
|
|
312
|
+
};
|
|
313
|
+
}),
|
|
276
314
|
/**
|
|
277
315
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
278
316
|
* @summary Transfer documents to another user
|
|
@@ -546,6 +584,44 @@ const OwnershipApiAxiosParamCreator = function (configuration) {
|
|
|
546
584
|
options: localVarRequestOptions,
|
|
547
585
|
};
|
|
548
586
|
}),
|
|
587
|
+
/**
|
|
588
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
589
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
590
|
+
* @param {string} userId
|
|
591
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
requestOwnershipConsent: (userId_1, ownershipConsentRequest_1, ...args_1) => __awaiter(this, [userId_1, ownershipConsentRequest_1, ...args_1], void 0, function* (userId, ownershipConsentRequest, options = {}) {
|
|
596
|
+
// verify required parameter 'userId' is not null or undefined
|
|
597
|
+
(0, common_1.assertParamExists)('requestOwnershipConsent', 'userId', userId);
|
|
598
|
+
// verify required parameter 'ownershipConsentRequest' is not null or undefined
|
|
599
|
+
(0, common_1.assertParamExists)('requestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest);
|
|
600
|
+
const localVarPath = `/api/v1/users/ownership/users/{userId}/consent`
|
|
601
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
609
|
+
const localVarHeaderParameter = {};
|
|
610
|
+
const localVarQueryParameter = {};
|
|
611
|
+
// authentication keycloak_auth required
|
|
612
|
+
// http bearer authentication required
|
|
613
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
614
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
615
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
616
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
619
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ownershipConsentRequest, localVarRequestOptions, configuration);
|
|
620
|
+
return {
|
|
621
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
622
|
+
options: localVarRequestOptions,
|
|
623
|
+
};
|
|
624
|
+
}),
|
|
549
625
|
/**
|
|
550
626
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
551
627
|
* @summary Transfer documents to another user
|
|
@@ -685,6 +761,23 @@ const OwnershipApiFp = function (configuration) {
|
|
|
685
761
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
686
762
|
});
|
|
687
763
|
},
|
|
764
|
+
/**
|
|
765
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
766
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
767
|
+
* @param {string} userId
|
|
768
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
773
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
774
|
+
var _a, _b, _c;
|
|
775
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options);
|
|
776
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
777
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OwnershipApi.adminRequestOwnershipConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
778
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
779
|
+
});
|
|
780
|
+
},
|
|
688
781
|
/**
|
|
689
782
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
690
783
|
* @summary Transfer documents to another user
|
|
@@ -797,6 +890,23 @@ const OwnershipApiFp = function (configuration) {
|
|
|
797
890
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
798
891
|
});
|
|
799
892
|
},
|
|
893
|
+
/**
|
|
894
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
895
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
896
|
+
* @param {string} userId
|
|
897
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
898
|
+
* @param {*} [options] Override http request option.
|
|
899
|
+
* @throws {RequiredError}
|
|
900
|
+
*/
|
|
901
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
903
|
+
var _a, _b, _c;
|
|
904
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOwnershipConsent(userId, ownershipConsentRequest, options);
|
|
905
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
906
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OwnershipApi.requestOwnershipConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
907
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
908
|
+
});
|
|
909
|
+
},
|
|
800
910
|
/**
|
|
801
911
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
802
912
|
* @summary Transfer documents to another user
|
|
@@ -888,6 +998,17 @@ const OwnershipApiFactory = function (configuration, basePath, axios) {
|
|
|
888
998
|
adminListOwnershipTransfers(userId, options) {
|
|
889
999
|
return localVarFp.adminListOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
890
1000
|
},
|
|
1001
|
+
/**
|
|
1002
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1003
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1004
|
+
* @param {string} userId
|
|
1005
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1006
|
+
* @param {*} [options] Override http request option.
|
|
1007
|
+
* @throws {RequiredError}
|
|
1008
|
+
*/
|
|
1009
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1010
|
+
return localVarFp.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
|
|
1011
|
+
},
|
|
891
1012
|
/**
|
|
892
1013
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
893
1014
|
* @summary Transfer documents to another user
|
|
@@ -964,6 +1085,17 @@ const OwnershipApiFactory = function (configuration, basePath, axios) {
|
|
|
964
1085
|
listOwnershipTransfers(userId, options) {
|
|
965
1086
|
return localVarFp.listOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
966
1087
|
},
|
|
1088
|
+
/**
|
|
1089
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1090
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1091
|
+
* @param {string} userId
|
|
1092
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1097
|
+
return localVarFp.requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
|
|
1098
|
+
},
|
|
967
1099
|
/**
|
|
968
1100
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
969
1101
|
* @summary Transfer documents to another user
|
|
@@ -1047,6 +1179,17 @@ class OwnershipApi extends base_1.BaseAPI {
|
|
|
1047
1179
|
adminListOwnershipTransfers(userId, options) {
|
|
1048
1180
|
return (0, exports.OwnershipApiFp)(this.configuration).adminListOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1049
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1184
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1185
|
+
* @param {string} userId
|
|
1186
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1191
|
+
return (0, exports.OwnershipApiFp)(this.configuration).adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
1050
1193
|
/**
|
|
1051
1194
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
1052
1195
|
* @summary Transfer documents to another user
|
|
@@ -1123,6 +1266,17 @@ class OwnershipApi extends base_1.BaseAPI {
|
|
|
1123
1266
|
listOwnershipTransfers(userId, options) {
|
|
1124
1267
|
return (0, exports.OwnershipApiFp)(this.configuration).listOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1125
1268
|
}
|
|
1269
|
+
/**
|
|
1270
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1271
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1272
|
+
* @param {string} userId
|
|
1273
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1278
|
+
return (0, exports.OwnershipApiFp)(this.configuration).requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1279
|
+
}
|
|
1126
1280
|
/**
|
|
1127
1281
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
1128
1282
|
* @summary Transfer documents to another user
|
|
@@ -13,6 +13,8 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { OwnedDocument } from '../models';
|
|
16
|
+
import type { OwnershipConsent } from '../models';
|
|
17
|
+
import type { OwnershipConsentRequest } from '../models';
|
|
16
18
|
import type { OwnershipEligibility } from '../models';
|
|
17
19
|
import type { OwnershipTransferReport } from '../models';
|
|
18
20
|
import type { OwnershipTransferRequest } from '../models';
|
|
@@ -76,6 +78,15 @@ export declare const OwnershipApiAxiosParamCreator: (configuration?: Configurati
|
|
|
76
78
|
* @throws {RequiredError}
|
|
77
79
|
*/
|
|
78
80
|
adminListOwnershipTransfers: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
|
+
/**
|
|
82
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
83
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
84
|
+
* @param {string} userId
|
|
85
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
adminRequestOwnershipConsent: (userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
90
|
/**
|
|
80
91
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
81
92
|
* @summary Transfer documents to another user
|
|
@@ -140,6 +151,15 @@ export declare const OwnershipApiAxiosParamCreator: (configuration?: Configurati
|
|
|
140
151
|
* @throws {RequiredError}
|
|
141
152
|
*/
|
|
142
153
|
listOwnershipTransfers: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
154
|
+
/**
|
|
155
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
156
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
157
|
+
* @param {string} userId
|
|
158
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
requestOwnershipConsent: (userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
143
163
|
/**
|
|
144
164
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
145
165
|
* @summary Transfer documents to another user
|
|
@@ -209,6 +229,15 @@ export declare const OwnershipApiFp: (configuration?: Configuration) => {
|
|
|
209
229
|
* @throws {RequiredError}
|
|
210
230
|
*/
|
|
211
231
|
adminListOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OwnershipTransferReport>>>;
|
|
232
|
+
/**
|
|
233
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
234
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
235
|
+
* @param {string} userId
|
|
236
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnershipConsent>>;
|
|
212
241
|
/**
|
|
213
242
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
214
243
|
* @summary Transfer documents to another user
|
|
@@ -273,6 +302,15 @@ export declare const OwnershipApiFp: (configuration?: Configuration) => {
|
|
|
273
302
|
* @throws {RequiredError}
|
|
274
303
|
*/
|
|
275
304
|
listOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OwnershipTransferReport>>>;
|
|
305
|
+
/**
|
|
306
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
307
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
308
|
+
* @param {string} userId
|
|
309
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
310
|
+
* @param {*} [options] Override http request option.
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
*/
|
|
313
|
+
requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnershipConsent>>;
|
|
276
314
|
/**
|
|
277
315
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
278
316
|
* @summary Transfer documents to another user
|
|
@@ -342,6 +380,15 @@ export declare const OwnershipApiFactory: (configuration?: Configuration, basePa
|
|
|
342
380
|
* @throws {RequiredError}
|
|
343
381
|
*/
|
|
344
382
|
adminListOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OwnershipTransferReport>>;
|
|
383
|
+
/**
|
|
384
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
385
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
386
|
+
* @param {string} userId
|
|
387
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<OwnershipConsent>;
|
|
345
392
|
/**
|
|
346
393
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
347
394
|
* @summary Transfer documents to another user
|
|
@@ -406,6 +453,15 @@ export declare const OwnershipApiFactory: (configuration?: Configuration, basePa
|
|
|
406
453
|
* @throws {RequiredError}
|
|
407
454
|
*/
|
|
408
455
|
listOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OwnershipTransferReport>>;
|
|
456
|
+
/**
|
|
457
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
458
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
459
|
+
* @param {string} userId
|
|
460
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<OwnershipConsent>;
|
|
409
465
|
/**
|
|
410
466
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
411
467
|
* @summary Transfer documents to another user
|
|
@@ -475,6 +531,15 @@ export declare class OwnershipApi extends BaseAPI {
|
|
|
475
531
|
* @throws {RequiredError}
|
|
476
532
|
*/
|
|
477
533
|
adminListOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnershipTransferReport[], any, {}, any>>;
|
|
534
|
+
/**
|
|
535
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
536
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
537
|
+
* @param {string} userId
|
|
538
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnershipConsent, any, {}, any>>;
|
|
478
543
|
/**
|
|
479
544
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
480
545
|
* @summary Transfer documents to another user
|
|
@@ -539,6 +604,15 @@ export declare class OwnershipApi extends BaseAPI {
|
|
|
539
604
|
* @throws {RequiredError}
|
|
540
605
|
*/
|
|
541
606
|
listOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnershipTransferReport[], any, {}, any>>;
|
|
607
|
+
/**
|
|
608
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
609
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
610
|
+
* @param {string} userId
|
|
611
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnershipConsent, any, {}, any>>;
|
|
542
616
|
/**
|
|
543
617
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
544
618
|
* @summary Transfer documents to another user
|
|
@@ -270,6 +270,44 @@ export const OwnershipApiAxiosParamCreator = function (configuration) {
|
|
|
270
270
|
options: localVarRequestOptions,
|
|
271
271
|
};
|
|
272
272
|
}),
|
|
273
|
+
/**
|
|
274
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
275
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
276
|
+
* @param {string} userId
|
|
277
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
adminRequestOwnershipConsent: (userId_1, ownershipConsentRequest_1, ...args_1) => __awaiter(this, [userId_1, ownershipConsentRequest_1, ...args_1], void 0, function* (userId, ownershipConsentRequest, options = {}) {
|
|
282
|
+
// verify required parameter 'userId' is not null or undefined
|
|
283
|
+
assertParamExists('adminRequestOwnershipConsent', 'userId', userId);
|
|
284
|
+
// verify required parameter 'ownershipConsentRequest' is not null or undefined
|
|
285
|
+
assertParamExists('adminRequestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest);
|
|
286
|
+
const localVarPath = `/api/v1/admin/ownership/users/{userId}/consent`
|
|
287
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
289
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
290
|
+
let baseOptions;
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
}
|
|
294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
295
|
+
const localVarHeaderParameter = {};
|
|
296
|
+
const localVarQueryParameter = {};
|
|
297
|
+
// authentication keycloak_auth required
|
|
298
|
+
// http bearer authentication required
|
|
299
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
300
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
301
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
302
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
305
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ownershipConsentRequest, localVarRequestOptions, configuration);
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
}),
|
|
273
311
|
/**
|
|
274
312
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
275
313
|
* @summary Transfer documents to another user
|
|
@@ -543,6 +581,44 @@ export const OwnershipApiAxiosParamCreator = function (configuration) {
|
|
|
543
581
|
options: localVarRequestOptions,
|
|
544
582
|
};
|
|
545
583
|
}),
|
|
584
|
+
/**
|
|
585
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
586
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
587
|
+
* @param {string} userId
|
|
588
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
requestOwnershipConsent: (userId_1, ownershipConsentRequest_1, ...args_1) => __awaiter(this, [userId_1, ownershipConsentRequest_1, ...args_1], void 0, function* (userId, ownershipConsentRequest, options = {}) {
|
|
593
|
+
// verify required parameter 'userId' is not null or undefined
|
|
594
|
+
assertParamExists('requestOwnershipConsent', 'userId', userId);
|
|
595
|
+
// verify required parameter 'ownershipConsentRequest' is not null or undefined
|
|
596
|
+
assertParamExists('requestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest);
|
|
597
|
+
const localVarPath = `/api/v1/users/ownership/users/{userId}/consent`
|
|
598
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
601
|
+
let baseOptions;
|
|
602
|
+
if (configuration) {
|
|
603
|
+
baseOptions = configuration.baseOptions;
|
|
604
|
+
}
|
|
605
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
606
|
+
const localVarHeaderParameter = {};
|
|
607
|
+
const localVarQueryParameter = {};
|
|
608
|
+
// authentication keycloak_auth required
|
|
609
|
+
// http bearer authentication required
|
|
610
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
611
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
612
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
615
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ownershipConsentRequest, localVarRequestOptions, configuration);
|
|
617
|
+
return {
|
|
618
|
+
url: toPathString(localVarUrlObj),
|
|
619
|
+
options: localVarRequestOptions,
|
|
620
|
+
};
|
|
621
|
+
}),
|
|
546
622
|
/**
|
|
547
623
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
548
624
|
* @summary Transfer documents to another user
|
|
@@ -681,6 +757,23 @@ export const OwnershipApiFp = function (configuration) {
|
|
|
681
757
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
682
758
|
});
|
|
683
759
|
},
|
|
760
|
+
/**
|
|
761
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
762
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
763
|
+
* @param {string} userId
|
|
764
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
+
var _a, _b, _c;
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options);
|
|
772
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
773
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.adminRequestOwnershipConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
774
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
775
|
+
});
|
|
776
|
+
},
|
|
684
777
|
/**
|
|
685
778
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
686
779
|
* @summary Transfer documents to another user
|
|
@@ -793,6 +886,23 @@ export const OwnershipApiFp = function (configuration) {
|
|
|
793
886
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
794
887
|
});
|
|
795
888
|
},
|
|
889
|
+
/**
|
|
890
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
891
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
892
|
+
* @param {string} userId
|
|
893
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
899
|
+
var _a, _b, _c;
|
|
900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOwnershipConsent(userId, ownershipConsentRequest, options);
|
|
901
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
902
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OwnershipApi.requestOwnershipConsent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
904
|
+
});
|
|
905
|
+
},
|
|
796
906
|
/**
|
|
797
907
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
798
908
|
* @summary Transfer documents to another user
|
|
@@ -883,6 +993,17 @@ export const OwnershipApiFactory = function (configuration, basePath, axios) {
|
|
|
883
993
|
adminListOwnershipTransfers(userId, options) {
|
|
884
994
|
return localVarFp.adminListOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
885
995
|
},
|
|
996
|
+
/**
|
|
997
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
998
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
999
|
+
* @param {string} userId
|
|
1000
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1005
|
+
return localVarFp.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
|
|
1006
|
+
},
|
|
886
1007
|
/**
|
|
887
1008
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
888
1009
|
* @summary Transfer documents to another user
|
|
@@ -959,6 +1080,17 @@ export const OwnershipApiFactory = function (configuration, basePath, axios) {
|
|
|
959
1080
|
listOwnershipTransfers(userId, options) {
|
|
960
1081
|
return localVarFp.listOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
|
|
961
1082
|
},
|
|
1083
|
+
/**
|
|
1084
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1085
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1086
|
+
* @param {string} userId
|
|
1087
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
*/
|
|
1091
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1092
|
+
return localVarFp.requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
|
|
1093
|
+
},
|
|
962
1094
|
/**
|
|
963
1095
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
964
1096
|
* @summary Transfer documents to another user
|
|
@@ -1041,6 +1173,17 @@ export class OwnershipApi extends BaseAPI {
|
|
|
1041
1173
|
adminListOwnershipTransfers(userId, options) {
|
|
1042
1174
|
return OwnershipApiFp(this.configuration).adminListOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1043
1175
|
}
|
|
1176
|
+
/**
|
|
1177
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1178
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1179
|
+
* @param {string} userId
|
|
1180
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1181
|
+
* @param {*} [options] Override http request option.
|
|
1182
|
+
* @throws {RequiredError}
|
|
1183
|
+
*/
|
|
1184
|
+
adminRequestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1185
|
+
return OwnershipApiFp(this.configuration).adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1186
|
+
}
|
|
1044
1187
|
/**
|
|
1045
1188
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
1046
1189
|
* @summary Transfer documents to another user
|
|
@@ -1117,6 +1260,17 @@ export class OwnershipApi extends BaseAPI {
|
|
|
1117
1260
|
listOwnershipTransfers(userId, options) {
|
|
1118
1261
|
return OwnershipApiFp(this.configuration).listOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1119
1262
|
}
|
|
1263
|
+
/**
|
|
1264
|
+
* For an active user (or under consent-bypass NEVER): the user gets a bell notification and an e-mail and answers in the web app. Once they approve, the caller (only them) may list their documents and make ONE transfer, which uses the consent up; the eligibility endpoint shows its status. 201 = request sent; 200 = the caller already has an open request to this user (pending, or approved and not used), returned as is.
|
|
1265
|
+
* @summary Ask the user for their consent to transfer their documents
|
|
1266
|
+
* @param {string} userId
|
|
1267
|
+
* @param {OwnershipConsentRequest} ownershipConsentRequest
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
requestOwnershipConsent(userId, ownershipConsentRequest, options) {
|
|
1272
|
+
return OwnershipApiFp(this.configuration).requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1273
|
+
}
|
|
1120
1274
|
/**
|
|
1121
1275
|
* dryRun=true reports what would happen. Otherwise 200 with status DONE, or 202 with status RUNNING for a large scope (poll GET …/transfers/{jobId}). 409 QUOTA_EXCEEDED carries usedBytes, transferBytes, limitBytes.
|
|
1122
1276
|
* @summary Transfer documents to another user
|
|
@@ -18,5 +18,6 @@ export interface CreateDelegatedGrantRequest {
|
|
|
18
18
|
export declare const CreateDelegatedGrantRequestPurposeEnum: {
|
|
19
19
|
readonly WebhookSubscription: "WEBHOOK_SUBSCRIPTION";
|
|
20
20
|
readonly AiFolderPick: "AI_FOLDER_PICK";
|
|
21
|
+
readonly OwnershipTransfer: "OWNERSHIP_TRANSFER";
|
|
21
22
|
};
|
|
22
23
|
export type CreateDelegatedGrantRequestPurposeEnum = typeof CreateDelegatedGrantRequestPurposeEnum[keyof typeof CreateDelegatedGrantRequestPurposeEnum];
|
|
@@ -31,6 +31,7 @@ export interface DelegatedGrantDTO {
|
|
|
31
31
|
export declare const DelegatedGrantDTOPurposeEnum: {
|
|
32
32
|
readonly WebhookSubscription: "WEBHOOK_SUBSCRIPTION";
|
|
33
33
|
readonly AiFolderPick: "AI_FOLDER_PICK";
|
|
34
|
+
readonly OwnershipTransfer: "OWNERSHIP_TRANSFER";
|
|
34
35
|
};
|
|
35
36
|
export type DelegatedGrantDTOPurposeEnum = typeof DelegatedGrantDTOPurposeEnum[keyof typeof DelegatedGrantDTOPurposeEnum];
|
|
36
37
|
export declare const DelegatedGrantDTOStatusEnum: {
|
|
@@ -116,6 +116,8 @@ export * from './organize-request';
|
|
|
116
116
|
export * from './output-target';
|
|
117
117
|
export * from './owned-document';
|
|
118
118
|
export * from './owned-documents-filter';
|
|
119
|
+
export * from './ownership-consent';
|
|
120
|
+
export * from './ownership-consent-request';
|
|
119
121
|
export * from './ownership-eligibility';
|
|
120
122
|
export * from './ownership-transfer-report';
|
|
121
123
|
export * from './ownership-transfer-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -116,6 +116,8 @@ export * from './organize-request';
|
|
|
116
116
|
export * from './output-target';
|
|
117
117
|
export * from './owned-document';
|
|
118
118
|
export * from './owned-documents-filter';
|
|
119
|
+
export * from './ownership-consent';
|
|
120
|
+
export * from './ownership-consent-request';
|
|
119
121
|
export * from './ownership-eligibility';
|
|
120
122
|
export * from './ownership-transfer-report';
|
|
121
123
|
export * from './ownership-transfer-request';
|
|
@@ -37,5 +37,7 @@ export declare const NotificationDTOTypeEnum: {
|
|
|
37
37
|
readonly WorkflowCancelled: "WORKFLOW_CANCELLED";
|
|
38
38
|
readonly OwnershipReceived: "OWNERSHIP_RECEIVED";
|
|
39
39
|
readonly OwnershipRemoved: "OWNERSHIP_REMOVED";
|
|
40
|
+
readonly OwnershipConsentAccepted: "OWNERSHIP_CONSENT_ACCEPTED";
|
|
41
|
+
readonly OwnershipConsentDeclined: "OWNERSHIP_CONSENT_DECLINED";
|
|
40
42
|
};
|
|
41
43
|
export type NotificationDTOTypeEnum = typeof NotificationDTOTypeEnum[keyof typeof NotificationDTOTypeEnum];
|
|
@@ -28,4 +28,6 @@ export const NotificationDTOTypeEnum = {
|
|
|
28
28
|
WorkflowCancelled: 'WORKFLOW_CANCELLED',
|
|
29
29
|
OwnershipReceived: 'OWNERSHIP_RECEIVED',
|
|
30
30
|
OwnershipRemoved: 'OWNERSHIP_REMOVED',
|
|
31
|
+
OwnershipConsentAccepted: 'OWNERSHIP_CONSENT_ACCEPTED',
|
|
32
|
+
OwnershipConsentDeclined: 'OWNERSHIP_CONSENT_DECLINED',
|
|
31
33
|
};
|