@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
@@ -0,0 +1,196 @@
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
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { UpdateUserPrivacyRequest } from '../models';
26
+ // @ts-ignore
27
+ import type { UserPrivacyDTO } from '../models';
28
+ /**
29
+ * UserPrivacyApi - axios parameter creator
30
+ */
31
+ export const UserPrivacyApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Read my privacy preferences
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ get: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40
+ const localVarPath = `/api/v1/users/me/privacy`;
41
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43
+ let baseOptions;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ }
47
+
48
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
49
+ const localVarHeaderParameter = {} as any;
50
+ const localVarQueryParameter = {} as any;
51
+
52
+ // authentication keycloak_auth required
53
+ // http bearer authentication required
54
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
55
+
56
+ localVarHeaderParameter['Accept'] = 'application/json';
57
+
58
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
61
+
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ },
67
+ /**
68
+ * Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
69
+ * @summary Update my privacy preferences
70
+ * @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ update: async (updateUserPrivacyRequest: UpdateUserPrivacyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
75
+ // verify required parameter 'updateUserPrivacyRequest' is not null or undefined
76
+ assertParamExists('update', 'updateUserPrivacyRequest', updateUserPrivacyRequest)
77
+ const localVarPath = `/api/v1/users/me/privacy`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+
85
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
86
+ const localVarHeaderParameter = {} as any;
87
+ const localVarQueryParameter = {} as any;
88
+
89
+ // authentication keycloak_auth required
90
+ // http bearer authentication required
91
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
92
+
93
+ localVarHeaderParameter['Content-Type'] = 'application/json';
94
+ localVarHeaderParameter['Accept'] = 'application/json';
95
+
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
99
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserPrivacyRequest, localVarRequestOptions, configuration)
100
+
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ },
106
+ }
107
+ };
108
+
109
+ /**
110
+ * UserPrivacyApi - functional programming interface
111
+ */
112
+ export const UserPrivacyApiFp = function(configuration?: Configuration) {
113
+ const localVarAxiosParamCreator = UserPrivacyApiAxiosParamCreator(configuration)
114
+ return {
115
+ /**
116
+ *
117
+ * @summary Read my privacy preferences
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ async get(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPrivacyDTO>> {
122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.get(options);
123
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
124
+ const localVarOperationServerBasePath = operationServerMap['UserPrivacyApi.get']?.[localVarOperationServerIndex]?.url;
125
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
126
+ },
127
+ /**
128
+ * Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
129
+ * @summary Update my privacy preferences
130
+ * @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ async update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPrivacyDTO>> {
135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.update(updateUserPrivacyRequest, options);
136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
137
+ const localVarOperationServerBasePath = operationServerMap['UserPrivacyApi.update']?.[localVarOperationServerIndex]?.url;
138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
139
+ },
140
+ }
141
+ };
142
+
143
+ /**
144
+ * UserPrivacyApi - factory interface
145
+ */
146
+ export const UserPrivacyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
147
+ const localVarFp = UserPrivacyApiFp(configuration)
148
+ return {
149
+ /**
150
+ *
151
+ * @summary Read my privacy preferences
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ get(options?: RawAxiosRequestConfig): AxiosPromise<UserPrivacyDTO> {
156
+ return localVarFp.get(options).then((request) => request(axios, basePath));
157
+ },
158
+ /**
159
+ * Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
160
+ * @summary Update my privacy preferences
161
+ * @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPrivacyDTO> {
166
+ return localVarFp.update(updateUserPrivacyRequest, options).then((request) => request(axios, basePath));
167
+ },
168
+ };
169
+ };
170
+
171
+ /**
172
+ * UserPrivacyApi - object-oriented interface
173
+ */
174
+ export class UserPrivacyApi extends BaseAPI {
175
+ /**
176
+ *
177
+ * @summary Read my privacy preferences
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ public get(options?: RawAxiosRequestConfig) {
182
+ return UserPrivacyApiFp(this.configuration).get(options).then((request) => request(this.axios, this.basePath));
183
+ }
184
+
185
+ /**
186
+ * Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
187
+ * @summary Update my privacy preferences
188
+ * @param {UpdateUserPrivacyRequest} updateUserPrivacyRequest
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ public update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig) {
193
+ return UserPrivacyApiFp(this.configuration).update(updateUserPrivacyRequest, options).then((request) => request(this.axios, this.basePath));
194
+ }
195
+ }
196
+