@openfilz-sdk/typescript-ee 1.3.5 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.openapi-generator/FILES +32 -6
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +36 -7
  4. package/api/{audit-controller-api.ts → collaboration-audit-controller-api.ts} +42 -42
  5. package/api/delegated-browse-grants-admin-api.ts +452 -0
  6. package/api/delegated-browse-grants-end-user-api.ts +426 -0
  7. package/api/upload-token-controller-api.ts +219 -0
  8. package/api/user-privacy-api.ts +196 -0
  9. package/api/webhook-proxy-controller-api.ts +523 -0
  10. package/api.ts +6 -1
  11. package/dist/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
  12. package/dist/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +41 -41
  13. package/dist/api/delegated-browse-grants-admin-api.d.ts +215 -0
  14. package/dist/api/delegated-browse-grants-admin-api.js +434 -0
  15. package/dist/api/delegated-browse-grants-end-user-api.d.ts +204 -0
  16. package/dist/api/delegated-browse-grants-end-user-api.js +416 -0
  17. package/dist/api/upload-token-controller-api.d.ts +105 -0
  18. package/dist/api/upload-token-controller-api.js +214 -0
  19. package/dist/api/user-privacy-api.d.ts +96 -0
  20. package/dist/api/user-privacy-api.js +195 -0
  21. package/dist/api/webhook-proxy-controller-api.d.ts +230 -0
  22. package/dist/api/webhook-proxy-controller-api.js +511 -0
  23. package/dist/api.d.ts +6 -1
  24. package/dist/api.js +6 -1
  25. package/dist/esm/api/{audit-controller-api.d.ts → collaboration-audit-controller-api.d.ts} +35 -35
  26. package/dist/esm/api/{audit-controller-api.js → collaboration-audit-controller-api.js} +36 -36
  27. package/dist/esm/api/delegated-browse-grants-admin-api.d.ts +215 -0
  28. package/dist/esm/api/delegated-browse-grants-admin-api.js +427 -0
  29. package/dist/esm/api/delegated-browse-grants-end-user-api.d.ts +204 -0
  30. package/dist/esm/api/delegated-browse-grants-end-user-api.js +409 -0
  31. package/dist/esm/api/upload-token-controller-api.d.ts +105 -0
  32. package/dist/esm/api/upload-token-controller-api.js +207 -0
  33. package/dist/esm/api/user-privacy-api.d.ts +96 -0
  34. package/dist/esm/api/user-privacy-api.js +188 -0
  35. package/dist/esm/api/webhook-proxy-controller-api.d.ts +230 -0
  36. package/dist/esm/api/webhook-proxy-controller-api.js +504 -0
  37. package/dist/esm/api.d.ts +6 -1
  38. package/dist/esm/api.js +6 -1
  39. package/dist/esm/models/consume-delegated-grant-request.d.ts +15 -0
  40. package/dist/esm/models/create-delegated-grant-request.d.ts +21 -0
  41. package/dist/esm/models/create-delegated-grant-request.js +16 -0
  42. package/dist/esm/models/delegated-folder-node.d.ts +16 -0
  43. package/dist/esm/models/delegated-folder-node.js +14 -0
  44. package/dist/esm/models/delegated-grant-dto.d.ts +43 -0
  45. package/dist/esm/models/delegated-grant-dto.js +24 -0
  46. package/dist/esm/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
  47. package/dist/esm/models/enriched-audit-log-details.js +14 -0
  48. package/dist/esm/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
  49. package/dist/{models/audit-log.js → esm/models/enriched-audit-log.js} +17 -11
  50. package/dist/esm/models/index.d.ts +10 -2
  51. package/dist/esm/models/index.js +10 -2
  52. package/dist/esm/models/mint-upload-token-request.d.ts +17 -0
  53. package/dist/esm/models/mint-upload-token-request.js +14 -0
  54. package/dist/esm/models/notification-dto.d.ts +3 -0
  55. package/dist/esm/models/notification-dto.js +4 -1
  56. package/dist/esm/models/search-by-audit-log-request.d.ts +15 -6
  57. package/dist/esm/models/search-by-audit-log-request.js +15 -6
  58. package/dist/esm/models/update-user-privacy-request.d.ts +14 -0
  59. package/dist/esm/models/update-user-privacy-request.js +14 -0
  60. package/dist/esm/models/upload-token-response.d.ts +18 -0
  61. package/dist/esm/models/upload-token-response.js +14 -0
  62. package/dist/esm/models/user-privacy-dto.d.ts +14 -0
  63. package/dist/esm/models/user-privacy-dto.js +14 -0
  64. package/dist/models/consume-delegated-grant-request.d.ts +15 -0
  65. package/dist/models/create-delegated-grant-request.d.ts +21 -0
  66. package/dist/models/create-delegated-grant-request.js +19 -0
  67. package/dist/models/delegated-folder-node.d.ts +16 -0
  68. package/dist/models/delegated-folder-node.js +15 -0
  69. package/dist/models/delegated-grant-dto.d.ts +43 -0
  70. package/dist/models/delegated-grant-dto.js +27 -0
  71. package/dist/models/{audit-log-details-one-of.d.ts → enriched-audit-log-details.d.ts} +2 -2
  72. package/dist/models/enriched-audit-log-details.js +15 -0
  73. package/dist/models/{audit-log.d.ts → enriched-audit-log.d.ts} +27 -16
  74. package/dist/{esm/models/audit-log.js → models/enriched-audit-log.js} +20 -8
  75. package/dist/models/index.d.ts +10 -2
  76. package/dist/models/index.js +10 -2
  77. package/dist/models/mint-upload-token-request.d.ts +17 -0
  78. package/dist/models/mint-upload-token-request.js +15 -0
  79. package/dist/models/notification-dto.d.ts +3 -0
  80. package/dist/models/notification-dto.js +4 -1
  81. package/dist/models/search-by-audit-log-request.d.ts +15 -6
  82. package/dist/models/search-by-audit-log-request.js +15 -6
  83. package/dist/models/update-user-privacy-request.d.ts +14 -0
  84. package/dist/models/update-user-privacy-request.js +15 -0
  85. package/dist/models/upload-token-response.d.ts +18 -0
  86. package/dist/models/upload-token-response.js +15 -0
  87. package/dist/models/user-privacy-dto.d.ts +14 -0
  88. package/dist/models/user-privacy-dto.js +15 -0
  89. package/docs/{AuditControllerApi.md → CollaborationAuditControllerApi.md} +16 -16
  90. package/docs/ConsumeDelegatedGrantRequest.md +22 -0
  91. package/docs/CreateDelegatedGrantRequest.md +26 -0
  92. package/docs/DelegatedBrowseGrantsAdminApi.md +275 -0
  93. package/docs/DelegatedBrowseGrantsEndUserApi.md +266 -0
  94. package/docs/DelegatedFolderNode.md +24 -0
  95. package/docs/DelegatedGrantDTO.md +52 -0
  96. package/docs/{AuditLog.md → EnrichedAuditLog.md} +9 -5
  97. package/docs/{AuditLogDetailsOneOf.md → EnrichedAuditLogDetails.md} +3 -3
  98. package/docs/MintUploadTokenRequest.md +26 -0
  99. package/docs/UpdateUserPrivacyRequest.md +20 -0
  100. package/docs/UploadTokenControllerApi.md +115 -0
  101. package/docs/UploadTokenResponse.md +28 -0
  102. package/docs/UserPrivacyApi.md +104 -0
  103. package/docs/UserPrivacyDTO.md +20 -0
  104. package/docs/WebhookProxyControllerApi.md +364 -0
  105. package/models/consume-delegated-grant-request.ts +21 -0
  106. package/models/create-delegated-grant-request.ts +30 -0
  107. package/models/delegated-folder-node.ts +22 -0
  108. package/models/delegated-grant-dto.ts +53 -0
  109. package/models/{audit-log-details-one-of.ts → enriched-audit-log-details.ts} +2 -20
  110. package/models/{audit-log.ts → enriched-audit-log.ts} +27 -16
  111. package/models/index.ts +10 -2
  112. package/models/mint-upload-token-request.ts +23 -0
  113. package/models/notification-dto.ts +4 -1
  114. package/models/search-by-audit-log-request.ts +15 -6
  115. package/models/update-user-privacy-request.ts +20 -0
  116. package/models/upload-token-response.ts +24 -0
  117. package/models/user-privacy-dto.ts +20 -0
  118. package/package.json +1 -1
  119. /package/dist/esm/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
  120. /package/dist/models/{audit-log-details-one-of.js → consume-delegated-grant-request.js} +0 -0
@@ -12,16 +12,16 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
- import type { AuditLog } from '../models';
16
15
  import type { AuditVerificationResult } from '../models';
16
+ import type { EnrichedAuditLog } from '../models';
17
17
  import type { SearchByAuditLogRequest } from '../models';
18
18
  /**
19
- * AuditControllerApi - axios parameter creator
19
+ * CollaborationAuditControllerApi - axios parameter creator
20
20
  */
21
- export declare const AuditControllerApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ export declare const CollaborationAuditControllerApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
- * Retrieves the audit trail for a given resource.
24
- * @summary Get audit trail for a resource
23
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
24
+ * @summary Get audit trail for a resource (enriched with actor azp)
25
25
  * @param {string} id ID of the resource to get the audit trail for
26
26
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \'ASC\' or \'DESC\'. Default is \'DESC\'
27
27
  * @param {*} [options] Override http request option.
@@ -29,15 +29,15 @@ export declare const AuditControllerApiAxiosParamCreator: (configuration?: Confi
29
29
  */
30
30
  getAuditTrail: (id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
31
  /**
32
- * Retrieves the audit trail according to the search parameters
33
- * @summary Search for audit trails
32
+ * EE variant same as core, returns rows enriched with actor azp.
33
+ * @summary Search audit trail (enriched with actor azp)
34
34
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
37
37
  */
38
38
  searchAuditTrail: (searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
39
  /**
40
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
40
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
41
41
  * @summary Verify audit chain integrity
42
42
  * @param {*} [options] Override http request option.
43
43
  * @throws {RequiredError}
@@ -45,28 +45,28 @@ export declare const AuditControllerApiAxiosParamCreator: (configuration?: Confi
45
45
  verifyChain: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
46
  };
47
47
  /**
48
- * AuditControllerApi - functional programming interface
48
+ * CollaborationAuditControllerApi - functional programming interface
49
49
  */
50
- export declare const AuditControllerApiFp: (configuration?: Configuration) => {
50
+ export declare const CollaborationAuditControllerApiFp: (configuration?: Configuration) => {
51
51
  /**
52
- * Retrieves the audit trail for a given resource.
53
- * @summary Get audit trail for a resource
52
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
53
+ * @summary Get audit trail for a resource (enriched with actor azp)
54
54
  * @param {string} id ID of the resource to get the audit trail for
55
55
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
59
- getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuditLog>>>;
59
+ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EnrichedAuditLog>>>;
60
60
  /**
61
- * Retrieves the audit trail according to the search parameters
62
- * @summary Search for audit trails
61
+ * EE variant same as core, returns rows enriched with actor azp.
62
+ * @summary Search audit trail (enriched with actor azp)
63
63
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
67
- searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuditLog>>>;
67
+ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EnrichedAuditLog>>>;
68
68
  /**
69
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
69
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
70
70
  * @summary Verify audit chain integrity
71
71
  * @param {*} [options] Override http request option.
72
72
  * @throws {RequiredError}
@@ -74,28 +74,28 @@ export declare const AuditControllerApiFp: (configuration?: Configuration) => {
74
74
  verifyChain(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditVerificationResult>>;
75
75
  };
76
76
  /**
77
- * AuditControllerApi - factory interface
77
+ * CollaborationAuditControllerApi - factory interface
78
78
  */
79
- export declare const AuditControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
79
+ export declare const CollaborationAuditControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
80
  /**
81
- * Retrieves the audit trail for a given resource.
82
- * @summary Get audit trail for a resource
81
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
82
+ * @summary Get audit trail for a resource (enriched with actor azp)
83
83
  * @param {string} id ID of the resource to get the audit trail for
84
84
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
85
85
  * @param {*} [options] Override http request option.
86
86
  * @throws {RequiredError}
87
87
  */
88
- getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<AuditLog>>;
88
+ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<EnrichedAuditLog>>;
89
89
  /**
90
- * Retrieves the audit trail according to the search parameters
91
- * @summary Search for audit trails
90
+ * EE variant same as core, returns rows enriched with actor azp.
91
+ * @summary Search audit trail (enriched with actor azp)
92
92
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
96
- searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AuditLog>>;
96
+ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<EnrichedAuditLog>>;
97
97
  /**
98
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
98
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
99
99
  * @summary Verify audit chain integrity
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
@@ -103,28 +103,28 @@ export declare const AuditControllerApiFactory: (configuration?: Configuration,
103
103
  verifyChain(options?: RawAxiosRequestConfig): AxiosPromise<AuditVerificationResult>;
104
104
  };
105
105
  /**
106
- * AuditControllerApi - object-oriented interface
106
+ * CollaborationAuditControllerApi - object-oriented interface
107
107
  */
108
- export declare class AuditControllerApi extends BaseAPI {
108
+ export declare class CollaborationAuditControllerApi extends BaseAPI {
109
109
  /**
110
- * Retrieves the audit trail for a given resource.
111
- * @summary Get audit trail for a resource
110
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
111
+ * @summary Get audit trail for a resource (enriched with actor azp)
112
112
  * @param {string} id ID of the resource to get the audit trail for
113
113
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
114
114
  * @param {*} [options] Override http request option.
115
115
  * @throws {RequiredError}
116
116
  */
117
- getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuditLog[], any, {}>>;
117
+ getAuditTrail(id: string, sort?: GetAuditTrailSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrichedAuditLog[], any, {}>>;
118
118
  /**
119
- * Retrieves the audit trail according to the search parameters
120
- * @summary Search for audit trails
119
+ * EE variant same as core, returns rows enriched with actor azp.
120
+ * @summary Search audit trail (enriched with actor azp)
121
121
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
122
122
  * @param {*} [options] Override http request option.
123
123
  * @throws {RequiredError}
124
124
  */
125
- searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuditLog[], any, {}>>;
125
+ searchAuditTrail(searchByAuditLogRequest: SearchByAuditLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EnrichedAuditLog[], any, {}>>;
126
126
  /**
127
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
127
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
128
128
  * @summary Verify audit chain integrity
129
129
  * @param {*} [options] Override http request option.
130
130
  * @throws {RequiredError}
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.GetAuditTrailSortEnum = exports.AuditControllerApi = exports.AuditControllerApiFactory = exports.AuditControllerApiFp = exports.AuditControllerApiAxiosParamCreator = void 0;
25
+ exports.GetAuditTrailSortEnum = exports.CollaborationAuditControllerApi = exports.CollaborationAuditControllerApiFactory = exports.CollaborationAuditControllerApiFp = exports.CollaborationAuditControllerApiAxiosParamCreator = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -30,13 +30,13 @@ const common_1 = require("../common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("../base");
32
32
  /**
33
- * AuditControllerApi - axios parameter creator
33
+ * CollaborationAuditControllerApi - axios parameter creator
34
34
  */
35
- const AuditControllerApiAxiosParamCreator = function (configuration) {
35
+ const CollaborationAuditControllerApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * Retrieves the audit trail for a given resource.
39
- * @summary Get audit trail for a resource
38
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
39
+ * @summary Get audit trail for a resource (enriched with actor azp)
40
40
  * @param {string} id ID of the resource to get the audit trail for
41
41
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
42
42
  * @param {*} [options] Override http request option.
@@ -72,8 +72,8 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
72
72
  };
73
73
  }),
74
74
  /**
75
- * Retrieves the audit trail according to the search parameters
76
- * @summary Search for audit trails
75
+ * EE variant same as core, returns rows enriched with actor azp.
76
+ * @summary Search audit trail (enriched with actor azp)
77
77
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
78
78
  * @param {*} [options] Override http request option.
79
79
  * @throws {RequiredError}
@@ -106,7 +106,7 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
106
106
  };
107
107
  }),
108
108
  /**
109
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
109
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
110
110
  * @summary Verify audit chain integrity
111
111
  * @param {*} [options] Override http request option.
112
112
  * @throws {RequiredError}
@@ -136,16 +136,16 @@ const AuditControllerApiAxiosParamCreator = function (configuration) {
136
136
  }),
137
137
  };
138
138
  };
139
- exports.AuditControllerApiAxiosParamCreator = AuditControllerApiAxiosParamCreator;
139
+ exports.CollaborationAuditControllerApiAxiosParamCreator = CollaborationAuditControllerApiAxiosParamCreator;
140
140
  /**
141
- * AuditControllerApi - functional programming interface
141
+ * CollaborationAuditControllerApi - functional programming interface
142
142
  */
143
- const AuditControllerApiFp = function (configuration) {
144
- const localVarAxiosParamCreator = (0, exports.AuditControllerApiAxiosParamCreator)(configuration);
143
+ const CollaborationAuditControllerApiFp = function (configuration) {
144
+ const localVarAxiosParamCreator = (0, exports.CollaborationAuditControllerApiAxiosParamCreator)(configuration);
145
145
  return {
146
146
  /**
147
- * Retrieves the audit trail for a given resource.
148
- * @summary Get audit trail for a resource
147
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
148
+ * @summary Get audit trail for a resource (enriched with actor azp)
149
149
  * @param {string} id ID of the resource to get the audit trail for
150
150
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
151
151
  * @param {*} [options] Override http request option.
@@ -156,13 +156,13 @@ const AuditControllerApiFp = function (configuration) {
156
156
  var _a, _b, _c;
157
157
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getAuditTrail(id, sort, options);
158
158
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
159
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.getAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
159
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.getAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
160
160
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
161
161
  });
162
162
  },
163
163
  /**
164
- * Retrieves the audit trail according to the search parameters
165
- * @summary Search for audit trails
164
+ * EE variant same as core, returns rows enriched with actor azp.
165
+ * @summary Search audit trail (enriched with actor azp)
166
166
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
@@ -172,12 +172,12 @@ const AuditControllerApiFp = function (configuration) {
172
172
  var _a, _b, _c;
173
173
  const localVarAxiosArgs = yield localVarAxiosParamCreator.searchAuditTrail(searchByAuditLogRequest, options);
174
174
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
175
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.searchAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
175
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.searchAuditTrail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
176
176
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
177
177
  });
178
178
  },
179
179
  /**
180
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
180
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
181
181
  * @summary Verify audit chain integrity
182
182
  * @param {*} [options] Override http request option.
183
183
  * @throws {RequiredError}
@@ -187,22 +187,22 @@ const AuditControllerApiFp = function (configuration) {
187
187
  var _a, _b, _c;
188
188
  const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyChain(options);
189
189
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
190
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuditControllerApi.verifyChain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
190
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollaborationAuditControllerApi.verifyChain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
191
191
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
192
192
  });
193
193
  },
194
194
  };
195
195
  };
196
- exports.AuditControllerApiFp = AuditControllerApiFp;
196
+ exports.CollaborationAuditControllerApiFp = CollaborationAuditControllerApiFp;
197
197
  /**
198
- * AuditControllerApi - factory interface
198
+ * CollaborationAuditControllerApi - factory interface
199
199
  */
200
- const AuditControllerApiFactory = function (configuration, basePath, axios) {
201
- const localVarFp = (0, exports.AuditControllerApiFp)(configuration);
200
+ const CollaborationAuditControllerApiFactory = function (configuration, basePath, axios) {
201
+ const localVarFp = (0, exports.CollaborationAuditControllerApiFp)(configuration);
202
202
  return {
203
203
  /**
204
- * Retrieves the audit trail for a given resource.
205
- * @summary Get audit trail for a resource
204
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
205
+ * @summary Get audit trail for a resource (enriched with actor azp)
206
206
  * @param {string} id ID of the resource to get the audit trail for
207
207
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
208
208
  * @param {*} [options] Override http request option.
@@ -212,8 +212,8 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
212
212
  return localVarFp.getAuditTrail(id, sort, options).then((request) => request(axios, basePath));
213
213
  },
214
214
  /**
215
- * Retrieves the audit trail according to the search parameters
216
- * @summary Search for audit trails
215
+ * EE variant same as core, returns rows enriched with actor azp.
216
+ * @summary Search audit trail (enriched with actor azp)
217
217
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
218
218
  * @param {*} [options] Override http request option.
219
219
  * @throws {RequiredError}
@@ -222,7 +222,7 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
222
222
  return localVarFp.searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(axios, basePath));
223
223
  },
224
224
  /**
225
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
225
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
226
226
  * @summary Verify audit chain integrity
227
227
  * @param {*} [options] Override http request option.
228
228
  * @throws {RequiredError}
@@ -232,43 +232,43 @@ const AuditControllerApiFactory = function (configuration, basePath, axios) {
232
232
  },
233
233
  };
234
234
  };
235
- exports.AuditControllerApiFactory = AuditControllerApiFactory;
235
+ exports.CollaborationAuditControllerApiFactory = CollaborationAuditControllerApiFactory;
236
236
  /**
237
- * AuditControllerApi - object-oriented interface
237
+ * CollaborationAuditControllerApi - object-oriented interface
238
238
  */
239
- class AuditControllerApi extends base_1.BaseAPI {
239
+ class CollaborationAuditControllerApi extends base_1.BaseAPI {
240
240
  /**
241
- * Retrieves the audit trail for a given resource.
242
- * @summary Get audit trail for a resource
241
+ * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
242
+ * @summary Get audit trail for a resource (enriched with actor azp)
243
243
  * @param {string} id ID of the resource to get the audit trail for
244
244
  * @param {GetAuditTrailSortEnum} [sort] Sort order for the audit trail. Can be \&#39;ASC\&#39; or \&#39;DESC\&#39;. Default is \&#39;DESC\&#39;
245
245
  * @param {*} [options] Override http request option.
246
246
  * @throws {RequiredError}
247
247
  */
248
248
  getAuditTrail(id, sort, options) {
249
- return (0, exports.AuditControllerApiFp)(this.configuration).getAuditTrail(id, sort, options).then((request) => request(this.axios, this.basePath));
249
+ return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).getAuditTrail(id, sort, options).then((request) => request(this.axios, this.basePath));
250
250
  }
251
251
  /**
252
- * Retrieves the audit trail according to the search parameters
253
- * @summary Search for audit trails
252
+ * EE variant same as core, returns rows enriched with actor azp.
253
+ * @summary Search audit trail (enriched with actor azp)
254
254
  * @param {SearchByAuditLogRequest} searchByAuditLogRequest
255
255
  * @param {*} [options] Override http request option.
256
256
  * @throws {RequiredError}
257
257
  */
258
258
  searchAuditTrail(searchByAuditLogRequest, options) {
259
- return (0, exports.AuditControllerApiFp)(this.configuration).searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(this.axios, this.basePath));
259
+ return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).searchAuditTrail(searchByAuditLogRequest, options).then((request) => request(this.axios, this.basePath));
260
260
  }
261
261
  /**
262
- * Verifies the cryptographic hash chain of the audit log to detect any tampering.
262
+ * Verifies the cryptographic hash chain of the audit log. Identical to the core variant — actor enrichment is read-side only and does not affect chain hashes.
263
263
  * @summary Verify audit chain integrity
264
264
  * @param {*} [options] Override http request option.
265
265
  * @throws {RequiredError}
266
266
  */
267
267
  verifyChain(options) {
268
- return (0, exports.AuditControllerApiFp)(this.configuration).verifyChain(options).then((request) => request(this.axios, this.basePath));
268
+ return (0, exports.CollaborationAuditControllerApiFp)(this.configuration).verifyChain(options).then((request) => request(this.axios, this.basePath));
269
269
  }
270
270
  }
271
- exports.AuditControllerApi = AuditControllerApi;
271
+ exports.CollaborationAuditControllerApi = CollaborationAuditControllerApi;
272
272
  exports.GetAuditTrailSortEnum = {
273
273
  Asc: 'ASC',
274
274
  Desc: 'DESC'
@@ -0,0 +1,215 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ConsumeDelegatedGrantRequest } from '../models';
16
+ import type { CreateDelegatedGrantRequest } from '../models';
17
+ import type { DelegatedFolderNode } from '../models';
18
+ import type { DelegatedGrantDTO } from '../models';
19
+ /**
20
+ * DelegatedBrowseGrantsAdminApi - axios parameter creator
21
+ */
22
+ export declare const DelegatedBrowseGrantsAdminApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * List folders under {parent} in the grantor\'s tree. Omit {parent} to list the grantor\'s root-level folders. Returns only name/id/hasChildren — no files, no metadata, no content-types.
25
+ * @summary Browse folders on behalf of the grantor
26
+ * @param {string} grantId
27
+ * @param {string} [parent]
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ browseFolders: (grantId: string, parent?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
34
+ * @summary Mark grant as consumed
35
+ * @param {string} id
36
+ * @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ consume: (id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ * Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
43
+ * @summary Poll grant status
44
+ * @param {string} id
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ getGrant: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ * Optionally filter by ?status=PENDING|ACCEPTED|...
51
+ * @summary List grants I requested
52
+ * @param {ListMineStatusEnum} [status]
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ listMine: (status?: ListMineStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ * Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
59
+ * @summary Request a grant
60
+ * @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ requestGrant: (createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
+ };
66
+ /**
67
+ * DelegatedBrowseGrantsAdminApi - functional programming interface
68
+ */
69
+ export declare const DelegatedBrowseGrantsAdminApiFp: (configuration?: Configuration) => {
70
+ /**
71
+ * List folders under {parent} in the grantor\'s tree. Omit {parent} to list the grantor\'s root-level folders. Returns only name/id/hasChildren — no files, no metadata, no content-types.
72
+ * @summary Browse folders on behalf of the grantor
73
+ * @param {string} grantId
74
+ * @param {string} [parent]
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DelegatedFolderNode>>>;
79
+ /**
80
+ * Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
81
+ * @summary Mark grant as consumed
82
+ * @param {string} id
83
+ * @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
88
+ /**
89
+ * Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
90
+ * @summary Poll grant status
91
+ * @param {string} id
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ getGrant(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
96
+ /**
97
+ * Optionally filter by ?status=PENDING|ACCEPTED|...
98
+ * @summary List grants I requested
99
+ * @param {ListMineStatusEnum} [status]
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DelegatedGrantDTO>>>;
104
+ /**
105
+ * Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
106
+ * @summary Request a grant
107
+ * @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegatedGrantDTO>>;
112
+ };
113
+ /**
114
+ * DelegatedBrowseGrantsAdminApi - factory interface
115
+ */
116
+ export declare const DelegatedBrowseGrantsAdminApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
117
+ /**
118
+ * List folders under {parent} in the grantor\'s tree. Omit {parent} to list the grantor\'s root-level folders. Returns only name/id/hasChildren — no files, no metadata, no content-types.
119
+ * @summary Browse folders on behalf of the grantor
120
+ * @param {string} grantId
121
+ * @param {string} [parent]
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DelegatedFolderNode>>;
126
+ /**
127
+ * Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
128
+ * @summary Mark grant as consumed
129
+ * @param {string} id
130
+ * @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
135
+ /**
136
+ * Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
137
+ * @summary Poll grant status
138
+ * @param {string} id
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getGrant(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
143
+ /**
144
+ * Optionally filter by ?status=PENDING|ACCEPTED|...
145
+ * @summary List grants I requested
146
+ * @param {ListMineStatusEnum} [status]
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<DelegatedGrantDTO>>;
151
+ /**
152
+ * Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
153
+ * @summary Request a grant
154
+ * @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): AxiosPromise<DelegatedGrantDTO>;
159
+ };
160
+ /**
161
+ * DelegatedBrowseGrantsAdminApi - object-oriented interface
162
+ */
163
+ export declare class DelegatedBrowseGrantsAdminApi extends BaseAPI {
164
+ /**
165
+ * List folders under {parent} in the grantor\'s tree. Omit {parent} to list the grantor\'s root-level folders. Returns only name/id/hasChildren — no files, no metadata, no content-types.
166
+ * @summary Browse folders on behalf of the grantor
167
+ * @param {string} grantId
168
+ * @param {string} [parent]
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ browseFolders(grantId: string, parent?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedFolderNode[], any, {}>>;
173
+ /**
174
+ * Flip an ACCEPTED grant to CONSUMED after using it to create a webhook. Single-use: subsequent browse calls return 410 Gone.
175
+ * @summary Mark grant as consumed
176
+ * @param {string} id
177
+ * @param {ConsumeDelegatedGrantRequest} consumeDelegatedGrantRequest
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ consume(id: string, consumeDelegatedGrantRequest: ConsumeDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
182
+ /**
183
+ * Admin UI polls this after creation to learn when the grantor has accepted/declined. 404 if the grant isn\'t yours.
184
+ * @summary Poll grant status
185
+ * @param {string} id
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ getGrant(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
190
+ /**
191
+ * Optionally filter by ?status=PENDING|ACCEPTED|...
192
+ * @summary List grants I requested
193
+ * @param {ListMineStatusEnum} [status]
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ listMine(status?: ListMineStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO[], any, {}>>;
198
+ /**
199
+ * Create a PENDING grant. Notifies the grantor via in-app + email. Grantor has 15 min to accept or the grant auto-expires.
200
+ * @summary Request a grant
201
+ * @param {CreateDelegatedGrantRequest} createDelegatedGrantRequest
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ requestGrant(createDelegatedGrantRequest: CreateDelegatedGrantRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DelegatedGrantDTO, any, {}>>;
206
+ }
207
+ export declare const ListMineStatusEnum: {
208
+ readonly Pending: "PENDING";
209
+ readonly Accepted: "ACCEPTED";
210
+ readonly Declined: "DECLINED";
211
+ readonly Revoked: "REVOKED";
212
+ readonly Expired: "EXPIRED";
213
+ readonly Consumed: "CONSUMED";
214
+ };
215
+ export type ListMineStatusEnum = typeof ListMineStatusEnum[keyof typeof ListMineStatusEnum];