@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
@@ -0,0 +1,20 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Ownership consent request
14
+ */
15
+ export interface OwnershipConsentRequest {
16
+ /**
17
+ * Shown to the user with the request: why, and what will happen (3 to 500 characters)
18
+ */
19
+ 'message': string;
20
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A request for a user\'s consent to transfer their documents
14
+ */
15
+ export interface OwnershipConsent {
16
+ 'grantId'?: string;
17
+ 'status'?: string;
18
+ 'message'?: string;
19
+ 'requestedAt'?: string;
20
+ 'acceptDeadline'?: string;
21
+ 'acceptedAt'?: string;
22
+ 'useDeadline'?: string;
23
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { OwnershipConsent } from './ownership-consent';
12
13
  export interface OwnershipEligibility {
13
14
  'userId'?: string;
14
15
  'userStatus'?: string;
@@ -17,4 +18,7 @@ export interface OwnershipEligibility {
17
18
  'refusal'?: string;
18
19
  'recentSignIn'?: boolean;
19
20
  'stepUpMaxAgeSeconds'?: number;
21
+ 'via'?: string;
22
+ 'consent'?: OwnershipConsent;
23
+ 'consentRequestable'?: boolean;
20
24
  }
@@ -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];
@@ -17,4 +17,5 @@ exports.CreateDelegatedGrantRequestPurposeEnum = void 0;
17
17
  exports.CreateDelegatedGrantRequestPurposeEnum = {
18
18
  WebhookSubscription: 'WEBHOOK_SUBSCRIPTION',
19
19
  AiFolderPick: 'AI_FOLDER_PICK',
20
+ OwnershipTransfer: 'OWNERSHIP_TRANSFER',
20
21
  };
@@ -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: {
@@ -17,6 +17,7 @@ exports.DelegatedGrantDTOStatusEnum = exports.DelegatedGrantDTOPurposeEnum = voi
17
17
  exports.DelegatedGrantDTOPurposeEnum = {
18
18
  WebhookSubscription: 'WEBHOOK_SUBSCRIPTION',
19
19
  AiFolderPick: 'AI_FOLDER_PICK',
20
+ OwnershipTransfer: 'OWNERSHIP_TRANSFER',
20
21
  };
21
22
  exports.DelegatedGrantDTOStatusEnum = {
22
23
  Pending: 'PENDING',
@@ -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';
@@ -132,6 +132,8 @@ __exportStar(require("./organize-request"), exports);
132
132
  __exportStar(require("./output-target"), exports);
133
133
  __exportStar(require("./owned-document"), exports);
134
134
  __exportStar(require("./owned-documents-filter"), exports);
135
+ __exportStar(require("./ownership-consent"), exports);
136
+ __exportStar(require("./ownership-consent-request"), exports);
135
137
  __exportStar(require("./ownership-eligibility"), exports);
136
138
  __exportStar(require("./ownership-transfer-report"), exports);
137
139
  __exportStar(require("./ownership-transfer-request"), exports);
@@ -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];
@@ -31,4 +31,6 @@ exports.NotificationDTOTypeEnum = {
31
31
  WorkflowCancelled: 'WORKFLOW_CANCELLED',
32
32
  OwnershipReceived: 'OWNERSHIP_RECEIVED',
33
33
  OwnershipRemoved: 'OWNERSHIP_REMOVED',
34
+ OwnershipConsentAccepted: 'OWNERSHIP_CONSENT_ACCEPTED',
35
+ OwnershipConsentDeclined: 'OWNERSHIP_CONSENT_DECLINED',
34
36
  };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Ownership consent request
14
+ */
15
+ export interface OwnershipConsentRequest {
16
+ /**
17
+ * Shown to the user with the request: why, and what will happen (3 to 500 characters)
18
+ */
19
+ 'message': string;
20
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A request for a user\'s consent to transfer their documents
14
+ */
15
+ export interface OwnershipConsent {
16
+ 'grantId'?: string;
17
+ 'status'?: string;
18
+ 'message'?: string;
19
+ 'requestedAt'?: string;
20
+ 'acceptDeadline'?: string;
21
+ 'acceptedAt'?: string;
22
+ 'useDeadline'?: string;
23
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { OwnershipConsent } from './ownership-consent';
12
13
  export interface OwnershipEligibility {
13
14
  'userId'?: string;
14
15
  'userStatus'?: string;
@@ -17,4 +18,7 @@ export interface OwnershipEligibility {
17
18
  'refusal'?: string;
18
19
  'recentSignIn'?: boolean;
19
20
  'stepUpMaxAgeSeconds'?: number;
21
+ 'via'?: string;
22
+ 'consent'?: OwnershipConsent;
23
+ 'consentRequestable'?: boolean;
20
24
  }
@@ -9,12 +9,14 @@ All URIs are relative to *http://localhost:8081*
9
9
  |[**adminGetOwnershipTransfer**](#admingetownershiptransfer) | **GET** /api/v1/admin/ownership/transfers/{jobId} | A transfer\'s progress and outcome|
10
10
  |[**adminListOwnedDocuments**](#adminlistowneddocuments) | **GET** /api/v1/admin/ownership/users/{userId}/documents | List the documents a user owns|
11
11
  |[**adminListOwnershipTransfers**](#adminlistownershiptransfers) | **GET** /api/v1/admin/ownership/transfers | The last 50 transfers from or to a user|
12
+ |[**adminRequestOwnershipConsent**](#adminrequestownershipconsent) | **POST** /api/v1/admin/ownership/users/{userId}/consent | Ask the user for their consent to transfer their documents|
12
13
  |[**adminTransferOwnership**](#admintransferownership) | **POST** /api/v1/admin/ownership/transfers | Transfer documents to another user|
13
14
  |[**countOwnedDocuments**](#countowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents/count | Count the documents a user owns (same filter as the listing)|
14
15
  |[**getOwnershipEligibility**](#getownershipeligibility) | **GET** /api/v1/users/ownership/users/{userId}/eligibility | May the caller act on this user\'s documents now?|
15
16
  |[**getOwnershipTransfer**](#getownershiptransfer) | **GET** /api/v1/users/ownership/transfers/{jobId} | A transfer\'s progress and outcome|
16
17
  |[**listOwnedDocuments**](#listowneddocuments) | **GET** /api/v1/users/ownership/users/{userId}/documents | List the documents a user owns|
17
18
  |[**listOwnershipTransfers**](#listownershiptransfers) | **GET** /api/v1/users/ownership/transfers | The last 50 transfers from or to a user|
19
+ |[**requestOwnershipConsent**](#requestownershipconsent) | **POST** /api/v1/users/ownership/users/{userId}/consent | Ask the user for their consent to transfer their documents|
18
20
  |[**transferOwnership**](#transferownership) | **POST** /api/v1/users/ownership/transfers | Transfer documents to another user|
19
21
 
20
22
  # **adminCountOwnedDocuments**
@@ -317,6 +319,62 @@ const { status, data } = await apiInstance.adminListOwnershipTransfers(
317
319
 
318
320
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
319
321
 
322
+ # **adminRequestOwnershipConsent**
323
+ > OwnershipConsent adminRequestOwnershipConsent(ownershipConsentRequest)
324
+
325
+ 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.
326
+
327
+ ### Example
328
+
329
+ ```typescript
330
+ import {
331
+ OwnershipApi,
332
+ Configuration,
333
+ OwnershipConsentRequest
334
+ } from '@openfilz-sdk/typescript-ee';
335
+
336
+ const configuration = new Configuration();
337
+ const apiInstance = new OwnershipApi(configuration);
338
+
339
+ let userId: string; // (default to undefined)
340
+ let ownershipConsentRequest: OwnershipConsentRequest; //
341
+
342
+ const { status, data } = await apiInstance.adminRequestOwnershipConsent(
343
+ userId,
344
+ ownershipConsentRequest
345
+ );
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+ |Name | Type | Description | Notes|
351
+ |------------- | ------------- | ------------- | -------------|
352
+ | **ownershipConsentRequest** | **OwnershipConsentRequest**| | |
353
+ | **userId** | [**string**] | | defaults to undefined|
354
+
355
+
356
+ ### Return type
357
+
358
+ **OwnershipConsent**
359
+
360
+ ### Authorization
361
+
362
+ [keycloak_auth](../README.md#keycloak_auth)
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: application/json
367
+ - **Accept**: */*
368
+
369
+
370
+ ### HTTP response details
371
+ | Status code | Description | Response headers |
372
+ |-------------|-------------|------------------|
373
+ |**201** | Request sent | - |
374
+ |**200** | An open request already exists | - |
375
+
376
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
377
+
320
378
  # **adminTransferOwnership**
321
379
  > OwnershipTransferReport adminTransferOwnership(ownershipTransferRequest)
322
380
 
@@ -670,6 +728,62 @@ const { status, data } = await apiInstance.listOwnershipTransfers(
670
728
 
671
729
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
672
730
 
731
+ # **requestOwnershipConsent**
732
+ > OwnershipConsent requestOwnershipConsent(ownershipConsentRequest)
733
+
734
+ 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.
735
+
736
+ ### Example
737
+
738
+ ```typescript
739
+ import {
740
+ OwnershipApi,
741
+ Configuration,
742
+ OwnershipConsentRequest
743
+ } from '@openfilz-sdk/typescript-ee';
744
+
745
+ const configuration = new Configuration();
746
+ const apiInstance = new OwnershipApi(configuration);
747
+
748
+ let userId: string; // (default to undefined)
749
+ let ownershipConsentRequest: OwnershipConsentRequest; //
750
+
751
+ const { status, data } = await apiInstance.requestOwnershipConsent(
752
+ userId,
753
+ ownershipConsentRequest
754
+ );
755
+ ```
756
+
757
+ ### Parameters
758
+
759
+ |Name | Type | Description | Notes|
760
+ |------------- | ------------- | ------------- | -------------|
761
+ | **ownershipConsentRequest** | **OwnershipConsentRequest**| | |
762
+ | **userId** | [**string**] | | defaults to undefined|
763
+
764
+
765
+ ### Return type
766
+
767
+ **OwnershipConsent**
768
+
769
+ ### Authorization
770
+
771
+ [keycloak_auth](../README.md#keycloak_auth)
772
+
773
+ ### HTTP request headers
774
+
775
+ - **Content-Type**: application/json
776
+ - **Accept**: */*
777
+
778
+
779
+ ### HTTP response details
780
+ | Status code | Description | Response headers |
781
+ |-------------|-------------|------------------|
782
+ |**201** | Request sent | - |
783
+ |**200** | An open request already exists | - |
784
+
785
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
786
+
673
787
  # **transferOwnership**
674
788
  > OwnershipTransferReport transferOwnership(ownershipTransferRequest)
675
789
 
@@ -0,0 +1,33 @@
1
+ # OwnershipConsent
2
+
3
+ A request for a user\'s consent to transfer their documents
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **grantId** | **string** | | [optional] [default to undefined]
10
+ **status** | **string** | | [optional] [default to undefined]
11
+ **message** | **string** | | [optional] [default to undefined]
12
+ **requestedAt** | **string** | | [optional] [default to undefined]
13
+ **acceptDeadline** | **string** | | [optional] [default to undefined]
14
+ **acceptedAt** | **string** | | [optional] [default to undefined]
15
+ **useDeadline** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { OwnershipConsent } from '@openfilz-sdk/typescript-ee';
21
+
22
+ const instance: OwnershipConsent = {
23
+ grantId,
24
+ status,
25
+ message,
26
+ requestedAt,
27
+ acceptDeadline,
28
+ acceptedAt,
29
+ useDeadline,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # OwnershipConsentRequest
2
+
3
+ Ownership consent request
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **message** | **string** | Shown to the user with the request: why, and what will happen (3 to 500 characters) | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { OwnershipConsentRequest } from '@openfilz-sdk/typescript-ee';
15
+
16
+ const instance: OwnershipConsentRequest = {
17
+ message,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -12,6 +12,9 @@ Name | Type | Description | Notes
12
12
  **refusal** | **string** | | [optional] [default to undefined]
13
13
  **recentSignIn** | **boolean** | | [optional] [default to undefined]
14
14
  **stepUpMaxAgeSeconds** | **number** | | [optional] [default to undefined]
15
+ **via** | **string** | | [optional] [default to undefined]
16
+ **consent** | [**OwnershipConsent**](OwnershipConsent.md) | | [optional] [default to undefined]
17
+ **consentRequestable** | **boolean** | | [optional] [default to undefined]
15
18
 
16
19
  ## Example
17
20
 
@@ -26,6 +29,9 @@ const instance: OwnershipEligibility = {
26
29
  refusal,
27
30
  recentSignIn,
28
31
  stepUpMaxAgeSeconds,
32
+ via,
33
+ consent,
34
+ consentRequestable,
29
35
  };
30
36
  ```
31
37
 
@@ -24,6 +24,7 @@ export interface CreateDelegatedGrantRequest {
24
24
  export const CreateDelegatedGrantRequestPurposeEnum = {
25
25
  WebhookSubscription: 'WEBHOOK_SUBSCRIPTION',
26
26
  AiFolderPick: 'AI_FOLDER_PICK',
27
+ OwnershipTransfer: 'OWNERSHIP_TRANSFER',
27
28
  } as const;
28
29
 
29
30
  export type CreateDelegatedGrantRequestPurposeEnum = typeof CreateDelegatedGrantRequestPurposeEnum[keyof typeof CreateDelegatedGrantRequestPurposeEnum];
@@ -37,6 +37,7 @@ export interface DelegatedGrantDTO {
37
37
  export const DelegatedGrantDTOPurposeEnum = {
38
38
  WebhookSubscription: 'WEBHOOK_SUBSCRIPTION',
39
39
  AiFolderPick: 'AI_FOLDER_PICK',
40
+ OwnershipTransfer: 'OWNERSHIP_TRANSFER',
40
41
  } as const;
41
42
 
42
43
  export type DelegatedGrantDTOPurposeEnum = typeof DelegatedGrantDTOPurposeEnum[keyof typeof DelegatedGrantDTOPurposeEnum];
package/models/index.ts 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';
@@ -43,6 +43,8 @@ export const NotificationDTOTypeEnum = {
43
43
  WorkflowCancelled: 'WORKFLOW_CANCELLED',
44
44
  OwnershipReceived: 'OWNERSHIP_RECEIVED',
45
45
  OwnershipRemoved: 'OWNERSHIP_REMOVED',
46
+ OwnershipConsentAccepted: 'OWNERSHIP_CONSENT_ACCEPTED',
47
+ OwnershipConsentDeclined: 'OWNERSHIP_CONSENT_DECLINED',
46
48
  } as const;
47
49
 
48
50
  export type NotificationDTOTypeEnum = typeof NotificationDTOTypeEnum[keyof typeof NotificationDTOTypeEnum];
@@ -0,0 +1,26 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Ownership consent request
19
+ */
20
+ export interface OwnershipConsentRequest {
21
+ /**
22
+ * Shown to the user with the request: why, and what will happen (3 to 500 characters)
23
+ */
24
+ 'message': string;
25
+ }
26
+
@@ -0,0 +1,29 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * A request for a user\'s consent to transfer their documents
19
+ */
20
+ export interface OwnershipConsent {
21
+ 'grantId'?: string;
22
+ 'status'?: string;
23
+ 'message'?: string;
24
+ 'requestedAt'?: string;
25
+ 'acceptDeadline'?: string;
26
+ 'acceptedAt'?: string;
27
+ 'useDeadline'?: string;
28
+ }
29
+
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { OwnershipConsent } from './ownership-consent';
16
19
 
17
20
  export interface OwnershipEligibility {
18
21
  'userId'?: string;
@@ -22,5 +25,8 @@ export interface OwnershipEligibility {
22
25
  'refusal'?: string;
23
26
  'recentSignIn'?: boolean;
24
27
  'stepUpMaxAgeSeconds'?: number;
28
+ 'via'?: string;
29
+ 'consent'?: OwnershipConsent;
30
+ 'consentRequestable'?: boolean;
25
31
  }
26
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfilz-sdk/typescript-ee",
3
- "version": "1.12.20",
3
+ "version": "1.13.1",
4
4
  "description": "OpenAPI client for @openfilz-sdk/typescript-ee",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {