@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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +6 -2
  4. package/api/ownership-api.ts +164 -0
  5. package/dist/api/ownership-api.d.ts +74 -0
  6. package/dist/api/ownership-api.js +154 -0
  7. package/dist/esm/api/ownership-api.d.ts +74 -0
  8. package/dist/esm/api/ownership-api.js +154 -0
  9. package/dist/esm/models/create-delegated-grant-request.d.ts +1 -0
  10. package/dist/esm/models/create-delegated-grant-request.js +1 -0
  11. package/dist/esm/models/delegated-grant-dto.d.ts +1 -0
  12. package/dist/esm/models/delegated-grant-dto.js +1 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/esm/models/notification-dto.d.ts +2 -0
  16. package/dist/esm/models/notification-dto.js +2 -0
  17. package/dist/esm/models/ownership-consent-request.d.ts +20 -0
  18. package/dist/esm/models/ownership-consent-request.js +14 -0
  19. package/dist/esm/models/ownership-consent.d.ts +23 -0
  20. package/dist/esm/models/ownership-consent.js +14 -0
  21. package/dist/esm/models/ownership-eligibility.d.ts +4 -0
  22. package/dist/models/create-delegated-grant-request.d.ts +1 -0
  23. package/dist/models/create-delegated-grant-request.js +1 -0
  24. package/dist/models/delegated-grant-dto.d.ts +1 -0
  25. package/dist/models/delegated-grant-dto.js +1 -0
  26. package/dist/models/index.d.ts +2 -0
  27. package/dist/models/index.js +2 -0
  28. package/dist/models/notification-dto.d.ts +2 -0
  29. package/dist/models/notification-dto.js +2 -0
  30. package/dist/models/ownership-consent-request.d.ts +20 -0
  31. package/dist/models/ownership-consent-request.js +15 -0
  32. package/dist/models/ownership-consent.d.ts +23 -0
  33. package/dist/models/ownership-consent.js +15 -0
  34. package/dist/models/ownership-eligibility.d.ts +4 -0
  35. package/docs/OwnershipApi.md +114 -0
  36. package/docs/OwnershipConsent.md +33 -0
  37. package/docs/OwnershipConsentRequest.md +21 -0
  38. package/docs/OwnershipEligibility.md +6 -0
  39. package/models/create-delegated-grant-request.ts +1 -0
  40. package/models/delegated-grant-dto.ts +1 -0
  41. package/models/index.ts +2 -0
  42. package/models/notification-dto.ts +2 -0
  43. package/models/ownership-consent-request.ts +26 -0
  44. package/models/ownership-consent.ts +29 -0
  45. package/models/ownership-eligibility.ts +6 -0
  46. package/package.json +1 -1
@@ -215,6 +215,8 @@ docs/OutputTarget.md
215
215
  docs/OwnedDocument.md
216
216
  docs/OwnedDocumentsFilter.md
217
217
  docs/OwnershipApi.md
218
+ docs/OwnershipConsent.md
219
+ docs/OwnershipConsentRequest.md
218
220
  docs/OwnershipEligibility.md
219
221
  docs/OwnershipTransferReport.md
220
222
  docs/OwnershipTransferRequest.md
@@ -469,6 +471,8 @@ models/organize-request.ts
469
471
  models/output-target.ts
470
472
  models/owned-document.ts
471
473
  models/owned-documents-filter.ts
474
+ models/ownership-consent-request.ts
475
+ models/ownership-consent.ts
472
476
  models/ownership-eligibility.ts
473
477
  models/ownership-transfer-report.ts
474
478
  models/ownership-transfer-request.ts
@@ -1 +1 @@
1
- a491f2ec6f09824af727e90b29e5e2dde27244ba2a8e8f7ade37bf92407106c6
1
+ ae3c397c412a95f8b9ddbb0f68c8969895766d32fc3970a10b011b92a8300634
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript-ee@1.12.20
1
+ ## @openfilz-sdk/typescript-ee@1.13.1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @openfilz-sdk/typescript-ee@1.12.20 --save
39
+ npm install @openfilz-sdk/typescript-ee@1.13.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -234,12 +234,14 @@ Class | Method | HTTP request | Description
234
234
  *OwnershipApi* | [**adminGetOwnershipTransfer**](docs/OwnershipApi.md#admingetownershiptransfer) | **GET** /api/v1/admin/ownership/transfers/{jobId} | A transfer\'s progress and outcome
235
235
  *OwnershipApi* | [**adminListOwnedDocuments**](docs/OwnershipApi.md#adminlistowneddocuments) | **GET** /api/v1/admin/ownership/users/{userId}/documents | List the documents a user owns
236
236
  *OwnershipApi* | [**adminListOwnershipTransfers**](docs/OwnershipApi.md#adminlistownershiptransfers) | **GET** /api/v1/admin/ownership/transfers | The last 50 transfers from or to a user
237
+ *OwnershipApi* | [**adminRequestOwnershipConsent**](docs/OwnershipApi.md#adminrequestownershipconsent) | **POST** /api/v1/admin/ownership/users/{userId}/consent | Ask the user for their consent to transfer their documents
237
238
  *OwnershipApi* | [**adminTransferOwnership**](docs/OwnershipApi.md#admintransferownership) | **POST** /api/v1/admin/ownership/transfers | Transfer documents to another user
238
239
  *OwnershipApi* | [**countOwnedDocuments**](docs/OwnershipApi.md#countowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents/count | Count the documents a user owns (same filter as the listing)
239
240
  *OwnershipApi* | [**getOwnershipEligibility**](docs/OwnershipApi.md#getownershipeligibility) | **GET** /api/v1/users/ownership/users/{userId}/eligibility | May the caller act on this user\'s documents now?
240
241
  *OwnershipApi* | [**getOwnershipTransfer**](docs/OwnershipApi.md#getownershiptransfer) | **GET** /api/v1/users/ownership/transfers/{jobId} | A transfer\'s progress and outcome
241
242
  *OwnershipApi* | [**listOwnedDocuments**](docs/OwnershipApi.md#listowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents | List the documents a user owns
242
243
  *OwnershipApi* | [**listOwnershipTransfers**](docs/OwnershipApi.md#listownershiptransfers) | **GET** /api/v1/users/ownership/transfers | The last 50 transfers from or to a user
244
+ *OwnershipApi* | [**requestOwnershipConsent**](docs/OwnershipApi.md#requestownershipconsent) | **POST** /api/v1/users/ownership/users/{userId}/consent | Ask the user for their consent to transfer their documents
243
245
  *OwnershipApi* | [**transferOwnership**](docs/OwnershipApi.md#transferownership) | **POST** /api/v1/users/ownership/transfers | Transfer documents to another user
244
246
  *PDFToolsApi* | [**info**](docs/PDFToolsApi.md#info) | **GET** /api/v1/pdf/{documentId}/info | Describe a stored PDF
245
247
  *PDFToolsApi* | [**merge**](docs/PDFToolsApi.md#merge) | **POST** /api/v1/pdf/merge | Merge PDFs
@@ -444,6 +446,8 @@ Class | Method | HTTP request | Description
444
446
  - [OutputTarget](docs/OutputTarget.md)
445
447
  - [OwnedDocument](docs/OwnedDocument.md)
446
448
  - [OwnedDocumentsFilter](docs/OwnedDocumentsFilter.md)
449
+ - [OwnershipConsent](docs/OwnershipConsent.md)
450
+ - [OwnershipConsentRequest](docs/OwnershipConsentRequest.md)
447
451
  - [OwnershipEligibility](docs/OwnershipEligibility.md)
448
452
  - [OwnershipTransferReport](docs/OwnershipTransferReport.md)
449
453
  - [OwnershipTransferRequest](docs/OwnershipTransferRequest.md)
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { OwnedDocument } from '../models';
26
26
  // @ts-ignore
27
+ import type { OwnershipConsent } from '../models';
28
+ // @ts-ignore
29
+ import type { OwnershipConsentRequest } from '../models';
30
+ // @ts-ignore
27
31
  import type { OwnershipEligibility } from '../models';
28
32
  // @ts-ignore
29
33
  import type { OwnershipTransferReport } from '../models';
@@ -313,6 +317,49 @@ export const OwnershipApiAxiosParamCreator = function (configuration?: Configura
313
317
  options: localVarRequestOptions,
314
318
  };
315
319
  },
320
+ /**
321
+ * 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.
322
+ * @summary Ask the user for their consent to transfer their documents
323
+ * @param {string} userId
324
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ adminRequestOwnershipConsent: async (userId: string, ownershipConsentRequest: OwnershipConsentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
329
+ // verify required parameter 'userId' is not null or undefined
330
+ assertParamExists('adminRequestOwnershipConsent', 'userId', userId)
331
+ // verify required parameter 'ownershipConsentRequest' is not null or undefined
332
+ assertParamExists('adminRequestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest)
333
+ const localVarPath = `/api/v1/admin/ownership/users/{userId}/consent`
334
+ .replace('{userId}', encodeURIComponent(String(userId)));
335
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
337
+ let baseOptions;
338
+ if (configuration) {
339
+ baseOptions = configuration.baseOptions;
340
+ }
341
+
342
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
343
+ const localVarHeaderParameter = {} as any;
344
+ const localVarQueryParameter = {} as any;
345
+
346
+ // authentication keycloak_auth required
347
+ // http bearer authentication required
348
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
349
+
350
+ localVarHeaderParameter['Content-Type'] = 'application/json';
351
+ localVarHeaderParameter['Accept'] = '*/*';
352
+
353
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
354
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
355
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
356
+ localVarRequestOptions.data = serializeDataIfNeeded(ownershipConsentRequest, localVarRequestOptions, configuration)
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
316
363
  /**
317
364
  * 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.
318
365
  * @summary Transfer documents to another user
@@ -631,6 +678,49 @@ export const OwnershipApiAxiosParamCreator = function (configuration?: Configura
631
678
  options: localVarRequestOptions,
632
679
  };
633
680
  },
681
+ /**
682
+ * 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.
683
+ * @summary Ask the user for their consent to transfer their documents
684
+ * @param {string} userId
685
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ requestOwnershipConsent: async (userId: string, ownershipConsentRequest: OwnershipConsentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
690
+ // verify required parameter 'userId' is not null or undefined
691
+ assertParamExists('requestOwnershipConsent', 'userId', userId)
692
+ // verify required parameter 'ownershipConsentRequest' is not null or undefined
693
+ assertParamExists('requestOwnershipConsent', 'ownershipConsentRequest', ownershipConsentRequest)
694
+ const localVarPath = `/api/v1/users/ownership/users/{userId}/consent`
695
+ .replace('{userId}', encodeURIComponent(String(userId)));
696
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
697
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
698
+ let baseOptions;
699
+ if (configuration) {
700
+ baseOptions = configuration.baseOptions;
701
+ }
702
+
703
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
704
+ const localVarHeaderParameter = {} as any;
705
+ const localVarQueryParameter = {} as any;
706
+
707
+ // authentication keycloak_auth required
708
+ // http bearer authentication required
709
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
710
+
711
+ localVarHeaderParameter['Content-Type'] = 'application/json';
712
+ localVarHeaderParameter['Accept'] = '*/*';
713
+
714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
717
+ localVarRequestOptions.data = serializeDataIfNeeded(ownershipConsentRequest, localVarRequestOptions, configuration)
718
+
719
+ return {
720
+ url: toPathString(localVarUrlObj),
721
+ options: localVarRequestOptions,
722
+ };
723
+ },
634
724
  /**
635
725
  * 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.
636
726
  * @summary Transfer documents to another user
@@ -760,6 +850,20 @@ export const OwnershipApiFp = function(configuration?: Configuration) {
760
850
  const localVarOperationServerBasePath = operationServerMap['OwnershipApi.adminListOwnershipTransfers']?.[localVarOperationServerIndex]?.url;
761
851
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
852
  },
853
+ /**
854
+ * 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.
855
+ * @summary Ask the user for their consent to transfer their documents
856
+ * @param {string} userId
857
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ async adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnershipConsent>> {
862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options);
863
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
864
+ const localVarOperationServerBasePath = operationServerMap['OwnershipApi.adminRequestOwnershipConsent']?.[localVarOperationServerIndex]?.url;
865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
866
+ },
763
867
  /**
764
868
  * 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.
765
869
  * @summary Transfer documents to another user
@@ -854,6 +958,20 @@ export const OwnershipApiFp = function(configuration?: Configuration) {
854
958
  const localVarOperationServerBasePath = operationServerMap['OwnershipApi.listOwnershipTransfers']?.[localVarOperationServerIndex]?.url;
855
959
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
856
960
  },
961
+ /**
962
+ * 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.
963
+ * @summary Ask the user for their consent to transfer their documents
964
+ * @param {string} userId
965
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ async requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnershipConsent>> {
970
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestOwnershipConsent(userId, ownershipConsentRequest, options);
971
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
972
+ const localVarOperationServerBasePath = operationServerMap['OwnershipApi.requestOwnershipConsent']?.[localVarOperationServerIndex]?.url;
973
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
974
+ },
857
975
  /**
858
976
  * 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.
859
977
  * @summary Transfer documents to another user
@@ -942,6 +1060,17 @@ export const OwnershipApiFactory = function (configuration?: Configuration, base
942
1060
  adminListOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OwnershipTransferReport>> {
943
1061
  return localVarFp.adminListOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
944
1062
  },
1063
+ /**
1064
+ * 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.
1065
+ * @summary Ask the user for their consent to transfer their documents
1066
+ * @param {string} userId
1067
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<OwnershipConsent> {
1072
+ return localVarFp.adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
1073
+ },
945
1074
  /**
946
1075
  * 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.
947
1076
  * @summary Transfer documents to another user
@@ -1018,6 +1147,17 @@ export const OwnershipApiFactory = function (configuration?: Configuration, base
1018
1147
  listOwnershipTransfers(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OwnershipTransferReport>> {
1019
1148
  return localVarFp.listOwnershipTransfers(userId, options).then((request) => request(axios, basePath));
1020
1149
  },
1150
+ /**
1151
+ * 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.
1152
+ * @summary Ask the user for their consent to transfer their documents
1153
+ * @param {string} userId
1154
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig): AxiosPromise<OwnershipConsent> {
1159
+ return localVarFp.requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(axios, basePath));
1160
+ },
1021
1161
  /**
1022
1162
  * 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.
1023
1163
  * @summary Transfer documents to another user
@@ -1106,6 +1246,18 @@ export class OwnershipApi extends BaseAPI {
1106
1246
  return OwnershipApiFp(this.configuration).adminListOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
1107
1247
  }
1108
1248
 
1249
+ /**
1250
+ * 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.
1251
+ * @summary Ask the user for their consent to transfer their documents
1252
+ * @param {string} userId
1253
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
1254
+ * @param {*} [options] Override http request option.
1255
+ * @throws {RequiredError}
1256
+ */
1257
+ public adminRequestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig) {
1258
+ return OwnershipApiFp(this.configuration).adminRequestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
1259
+ }
1260
+
1109
1261
  /**
1110
1262
  * 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.
1111
1263
  * @summary Transfer documents to another user
@@ -1188,6 +1340,18 @@ export class OwnershipApi extends BaseAPI {
1188
1340
  return OwnershipApiFp(this.configuration).listOwnershipTransfers(userId, options).then((request) => request(this.axios, this.basePath));
1189
1341
  }
1190
1342
 
1343
+ /**
1344
+ * 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.
1345
+ * @summary Ask the user for their consent to transfer their documents
1346
+ * @param {string} userId
1347
+ * @param {OwnershipConsentRequest} ownershipConsentRequest
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ public requestOwnershipConsent(userId: string, ownershipConsentRequest: OwnershipConsentRequest, options?: RawAxiosRequestConfig) {
1352
+ return OwnershipApiFp(this.configuration).requestOwnershipConsent(userId, ownershipConsentRequest, options).then((request) => request(this.axios, this.basePath));
1353
+ }
1354
+
1191
1355
  /**
1192
1356
  * 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.
1193
1357
  * @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