@openfilz-sdk/typescript-ee 1.12.0 → 1.12.2

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 (158) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +37 -9
  4. package/api/ai-archiving-admin-controller-api.ts +10 -10
  5. package/api/aifiling-rules-api.ts +18 -18
  6. package/api/aimaintenance-api.ts +334 -0
  7. package/api/aiteam-inboxes-api.ts +18 -18
  8. package/api/esign-templates-api.ts +8 -8
  9. package/api/mcp-token-admin-controller-api.ts +75 -8
  10. package/api/organisation-settings-api.ts +266 -0
  11. package/api/quota-administration-api.ts +677 -0
  12. package/api/quotas-api.ts +121 -0
  13. package/api/tus-controller-api.ts +8 -4
  14. package/api.ts +4 -0
  15. package/dist/api/ai-archiving-admin-controller-api.d.ts +4 -4
  16. package/dist/api/ai-archiving-admin-controller-api.js +10 -10
  17. package/dist/api/aifiling-rules-api.d.ts +8 -8
  18. package/dist/api/aifiling-rules-api.js +18 -18
  19. package/dist/api/aimaintenance-api.d.ts +162 -0
  20. package/dist/api/aimaintenance-api.js +327 -0
  21. package/dist/api/aiteam-inboxes-api.d.ts +8 -8
  22. package/dist/api/aiteam-inboxes-api.js +18 -18
  23. package/dist/api/esign-templates-api.d.ts +4 -4
  24. package/dist/api/esign-templates-api.js +8 -8
  25. package/dist/api/mcp-token-admin-controller-api.d.ts +33 -4
  26. package/dist/api/mcp-token-admin-controller-api.js +70 -8
  27. package/dist/api/organisation-settings-api.d.ts +135 -0
  28. package/dist/api/organisation-settings-api.js +264 -0
  29. package/dist/api/quota-administration-api.d.ts +312 -0
  30. package/dist/api/quota-administration-api.js +645 -0
  31. package/dist/api/quotas-api.d.ts +63 -0
  32. package/dist/api/quotas-api.js +125 -0
  33. package/dist/api/tus-controller-api.d.ts +6 -6
  34. package/dist/api/tus-controller-api.js +2 -0
  35. package/dist/api.d.ts +4 -0
  36. package/dist/api.js +4 -0
  37. package/dist/esm/api/ai-archiving-admin-controller-api.d.ts +4 -4
  38. package/dist/esm/api/ai-archiving-admin-controller-api.js +10 -10
  39. package/dist/esm/api/aifiling-rules-api.d.ts +8 -8
  40. package/dist/esm/api/aifiling-rules-api.js +18 -18
  41. package/dist/esm/api/aimaintenance-api.d.ts +162 -0
  42. package/dist/esm/api/aimaintenance-api.js +320 -0
  43. package/dist/esm/api/aiteam-inboxes-api.d.ts +8 -8
  44. package/dist/esm/api/aiteam-inboxes-api.js +18 -18
  45. package/dist/esm/api/esign-templates-api.d.ts +4 -4
  46. package/dist/esm/api/esign-templates-api.js +8 -8
  47. package/dist/esm/api/mcp-token-admin-controller-api.d.ts +33 -4
  48. package/dist/esm/api/mcp-token-admin-controller-api.js +70 -8
  49. package/dist/esm/api/organisation-settings-api.d.ts +135 -0
  50. package/dist/esm/api/organisation-settings-api.js +257 -0
  51. package/dist/esm/api/quota-administration-api.d.ts +312 -0
  52. package/dist/esm/api/quota-administration-api.js +638 -0
  53. package/dist/esm/api/quotas-api.d.ts +63 -0
  54. package/dist/esm/api/quotas-api.js +118 -0
  55. package/dist/esm/api/tus-controller-api.d.ts +6 -6
  56. package/dist/esm/api/tus-controller-api.js +2 -0
  57. package/dist/esm/api.d.ts +4 -0
  58. package/dist/esm/api.js +4 -0
  59. package/dist/esm/models/enriched-audit-log.d.ts +4 -0
  60. package/dist/esm/models/enriched-audit-log.js +4 -0
  61. package/dist/esm/models/error-response.d.ts +16 -0
  62. package/dist/esm/models/error-response.js +14 -0
  63. package/dist/esm/models/index.d.ts +11 -0
  64. package/dist/esm/models/index.js +11 -0
  65. package/dist/esm/models/mcp-agent-token-config.d.ts +31 -0
  66. package/dist/esm/models/mcp-agent-token-config.js +14 -0
  67. package/dist/esm/models/mcp-agent-token-info.d.ts +1 -0
  68. package/dist/esm/models/my-storage-quota.d.ts +24 -0
  69. package/dist/esm/models/my-storage-quota.js +18 -0
  70. package/dist/esm/models/quota-overview.d.ts +19 -0
  71. package/dist/esm/models/quota-overview.js +14 -0
  72. package/dist/esm/models/quota-usage.d.ts +27 -0
  73. package/dist/esm/models/quota-usage.js +18 -0
  74. package/dist/esm/models/quota-user-page.d.ts +18 -0
  75. package/dist/esm/models/quota-user-page.js +14 -0
  76. package/dist/esm/models/search-by-audit-log-request.d.ts +4 -0
  77. package/dist/esm/models/search-by-audit-log-request.js +4 -0
  78. package/dist/esm/models/setting-dto.d.ts +26 -0
  79. package/dist/esm/models/setting-dto.js +14 -0
  80. package/dist/esm/models/start-request.d.ts +14 -0
  81. package/dist/esm/models/start-request.js +14 -0
  82. package/dist/esm/models/storage-breakdown.d.ts +2 -0
  83. package/dist/esm/models/team-quota-request.d.ts +17 -0
  84. package/dist/esm/models/team-quota-request.js +14 -0
  85. package/dist/esm/models/team-quota-view.d.ts +19 -0
  86. package/dist/esm/models/team-quota-view.js +14 -0
  87. package/dist/esm/models/user-quota-request.d.ts +17 -0
  88. package/dist/esm/models/user-quota-request.js +14 -0
  89. package/dist/models/enriched-audit-log.d.ts +4 -0
  90. package/dist/models/enriched-audit-log.js +4 -0
  91. package/dist/models/error-response.d.ts +16 -0
  92. package/dist/models/error-response.js +15 -0
  93. package/dist/models/index.d.ts +11 -0
  94. package/dist/models/index.js +11 -0
  95. package/dist/models/mcp-agent-token-config.d.ts +31 -0
  96. package/dist/models/mcp-agent-token-config.js +15 -0
  97. package/dist/models/mcp-agent-token-info.d.ts +1 -0
  98. package/dist/models/my-storage-quota.d.ts +24 -0
  99. package/dist/models/my-storage-quota.js +21 -0
  100. package/dist/models/quota-overview.d.ts +19 -0
  101. package/dist/models/quota-overview.js +15 -0
  102. package/dist/models/quota-usage.d.ts +27 -0
  103. package/dist/models/quota-usage.js +21 -0
  104. package/dist/models/quota-user-page.d.ts +18 -0
  105. package/dist/models/quota-user-page.js +15 -0
  106. package/dist/models/search-by-audit-log-request.d.ts +4 -0
  107. package/dist/models/search-by-audit-log-request.js +4 -0
  108. package/dist/models/setting-dto.d.ts +26 -0
  109. package/dist/models/setting-dto.js +15 -0
  110. package/dist/models/start-request.d.ts +14 -0
  111. package/dist/models/start-request.js +15 -0
  112. package/dist/models/storage-breakdown.d.ts +2 -0
  113. package/dist/models/team-quota-request.d.ts +17 -0
  114. package/dist/models/team-quota-request.js +15 -0
  115. package/dist/models/team-quota-view.d.ts +19 -0
  116. package/dist/models/team-quota-view.js +15 -0
  117. package/dist/models/user-quota-request.d.ts +17 -0
  118. package/dist/models/user-quota-request.js +15 -0
  119. package/docs/AIFilingRulesApi.md +8 -8
  120. package/docs/AIMaintenanceApi.md +201 -0
  121. package/docs/AITeamInboxesApi.md +8 -8
  122. package/docs/AiArchivingAdminControllerApi.md +4 -4
  123. package/docs/ESignTemplatesApi.md +4 -4
  124. package/docs/ErrorResponse.md +24 -0
  125. package/docs/McpAgentTokenConfig.md +30 -0
  126. package/docs/McpAgentTokenInfo.md +2 -0
  127. package/docs/McpTokenAdminControllerApi.md +48 -4
  128. package/docs/MyStorageQuota.md +28 -0
  129. package/docs/OrganisationSettingsApi.md +153 -0
  130. package/docs/QuotaAdministrationApi.md +427 -0
  131. package/docs/QuotaOverview.md +30 -0
  132. package/docs/QuotaUsage.md +34 -0
  133. package/docs/QuotaUserPage.md +26 -0
  134. package/docs/QuotasApi.md +52 -0
  135. package/docs/SettingDto.md +44 -0
  136. package/docs/StartRequest.md +20 -0
  137. package/docs/StorageBreakdown.md +2 -0
  138. package/docs/TeamQuotaRequest.md +20 -0
  139. package/docs/TeamQuotaView.md +30 -0
  140. package/docs/TusControllerApi.md +8 -7
  141. package/docs/UserQuotaRequest.md +20 -0
  142. package/models/enriched-audit-log.ts +4 -0
  143. package/models/error-response.ts +22 -0
  144. package/models/index.ts +11 -0
  145. package/models/mcp-agent-token-config.ts +37 -0
  146. package/models/mcp-agent-token-info.ts +1 -0
  147. package/models/my-storage-quota.ts +33 -0
  148. package/models/quota-overview.ts +25 -0
  149. package/models/quota-usage.ts +36 -0
  150. package/models/quota-user-page.ts +26 -0
  151. package/models/search-by-audit-log-request.ts +4 -0
  152. package/models/setting-dto.ts +32 -0
  153. package/models/start-request.ts +20 -0
  154. package/models/storage-breakdown.ts +4 -0
  155. package/models/team-quota-request.ts +23 -0
  156. package/models/team-quota-view.ts +25 -0
  157. package/models/user-quota-request.ts +23 -0
  158. package/package.json +1 -1
@@ -0,0 +1,638 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * QuotaAdministrationApi - axios parameter creator
31
+ */
32
+ export const QuotaAdministrationApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Its members fall back to their other teams or the default.
36
+ * @summary Remove a team\'s limit
37
+ * @param {string} teamId
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ clear: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
42
+ // verify required parameter 'teamId' is not null or undefined
43
+ assertParamExists('clear', 'teamId', teamId);
44
+ const localVarPath = `/api/v1/admin/quotas/teams/{teamId}`
45
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Accept'] = '*/*';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ * The group or default limit applies again.
69
+ * @summary Remove one user\'s own limit
70
+ * @param {string} username
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ clearUserQuota: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
75
+ // verify required parameter 'username' is not null or undefined
76
+ assertParamExists('clearUserQuota', 'username', username);
77
+ const localVarPath = `/api/v1/admin/quotas/users/{username}`
78
+ .replace('{username}', encodeURIComponent(String(username)));
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication keycloak_auth required
89
+ // http bearer authentication required
90
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
91
+ localVarHeaderParameter['Accept'] = '*/*';
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ }),
100
+ /**
101
+ *
102
+ * @summary Get one user\'s storage
103
+ * @param {string} username
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getUser: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
108
+ // verify required parameter 'username' is not null or undefined
109
+ assertParamExists('getUser', 'username', username);
110
+ const localVarPath = `/api/v1/admin/quotas/users/{username}`
111
+ .replace('{username}', encodeURIComponent(String(username)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication keycloak_auth required
122
+ // http bearer authentication required
123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
124
+ localVarHeaderParameter['Accept'] = '*/*';
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ }),
133
+ /**
134
+ *
135
+ * @summary List teams with their per-member limit and their members\' usage
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ list5: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
140
+ const localVarPath = `/api/v1/admin/quotas/teams`;
141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
143
+ let baseOptions;
144
+ if (configuration) {
145
+ baseOptions = configuration.baseOptions;
146
+ }
147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
148
+ const localVarHeaderParameter = {};
149
+ const localVarQueryParameter = {};
150
+ // authentication keycloak_auth required
151
+ // http bearer authentication required
152
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
153
+ localVarHeaderParameter['Accept'] = '*/*';
154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
157
+ return {
158
+ url: toPathString(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ }),
162
+ /**
163
+ * Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
164
+ * @summary List users\' storage
165
+ * @param {string} [search] Case-insensitive filter on the user name
166
+ * @param {string} [sort] usage | percent | limit | name
167
+ * @param {string} [order] asc | desc
168
+ * @param {number} [page]
169
+ * @param {number} [size]
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ listUsers: (search_1, sort_1, order_1, page_1, size_1, ...args_1) => __awaiter(this, [search_1, sort_1, order_1, page_1, size_1, ...args_1], void 0, function* (search, sort, order, page, size, options = {}) {
174
+ const localVarPath = `/api/v1/admin/quotas/users`;
175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
177
+ let baseOptions;
178
+ if (configuration) {
179
+ baseOptions = configuration.baseOptions;
180
+ }
181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
182
+ const localVarHeaderParameter = {};
183
+ const localVarQueryParameter = {};
184
+ // authentication keycloak_auth required
185
+ // http bearer authentication required
186
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
187
+ if (search !== undefined) {
188
+ localVarQueryParameter['search'] = search;
189
+ }
190
+ if (sort !== undefined) {
191
+ localVarQueryParameter['sort'] = sort;
192
+ }
193
+ if (order !== undefined) {
194
+ localVarQueryParameter['order'] = order;
195
+ }
196
+ if (page !== undefined) {
197
+ localVarQueryParameter['page'] = page;
198
+ }
199
+ if (size !== undefined) {
200
+ localVarQueryParameter['size'] = size;
201
+ }
202
+ localVarHeaderParameter['Accept'] = '*/*';
203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ }),
211
+ /**
212
+ * Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
213
+ * @summary Quota overview
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ overview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
218
+ const localVarPath = `/api/v1/admin/quotas`;
219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
+ let baseOptions;
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
226
+ const localVarHeaderParameter = {};
227
+ const localVarQueryParameter = {};
228
+ // authentication keycloak_auth required
229
+ // http bearer authentication required
230
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
231
+ localVarHeaderParameter['Accept'] = '*/*';
232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ };
239
+ }),
240
+ /**
241
+ * quotaMb > 0 = limit per member, 0 = members exempt.
242
+ * @summary Set a team\'s per-member limit
243
+ * @param {string} teamId
244
+ * @param {TeamQuotaRequest} teamQuotaRequest
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ set: (teamId_1, teamQuotaRequest_1, ...args_1) => __awaiter(this, [teamId_1, teamQuotaRequest_1, ...args_1], void 0, function* (teamId, teamQuotaRequest, options = {}) {
249
+ // verify required parameter 'teamId' is not null or undefined
250
+ assertParamExists('set', 'teamId', teamId);
251
+ // verify required parameter 'teamQuotaRequest' is not null or undefined
252
+ assertParamExists('set', 'teamQuotaRequest', teamQuotaRequest);
253
+ const localVarPath = `/api/v1/admin/quotas/teams/{teamId}`
254
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
257
+ let baseOptions;
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ }
261
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
262
+ const localVarHeaderParameter = {};
263
+ const localVarQueryParameter = {};
264
+ // authentication keycloak_auth required
265
+ // http bearer authentication required
266
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
267
+ localVarHeaderParameter['Content-Type'] = 'application/json';
268
+ localVarHeaderParameter['Accept'] = '*/*';
269
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
270
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
272
+ localVarRequestOptions.data = serializeDataIfNeeded(teamQuotaRequest, localVarRequestOptions, configuration);
273
+ return {
274
+ url: toPathString(localVarUrlObj),
275
+ options: localVarRequestOptions,
276
+ };
277
+ }),
278
+ /**
279
+ * quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
280
+ * @summary Set one user\'s own limit
281
+ * @param {string} username
282
+ * @param {UserQuotaRequest} userQuotaRequest
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ setUserQuota: (username_1, userQuotaRequest_1, ...args_1) => __awaiter(this, [username_1, userQuotaRequest_1, ...args_1], void 0, function* (username, userQuotaRequest, options = {}) {
287
+ // verify required parameter 'username' is not null or undefined
288
+ assertParamExists('setUserQuota', 'username', username);
289
+ // verify required parameter 'userQuotaRequest' is not null or undefined
290
+ assertParamExists('setUserQuota', 'userQuotaRequest', userQuotaRequest);
291
+ const localVarPath = `/api/v1/admin/quotas/users/{username}`
292
+ .replace('{username}', encodeURIComponent(String(username)));
293
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
294
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
295
+ let baseOptions;
296
+ if (configuration) {
297
+ baseOptions = configuration.baseOptions;
298
+ }
299
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
300
+ const localVarHeaderParameter = {};
301
+ const localVarQueryParameter = {};
302
+ // authentication keycloak_auth required
303
+ // http bearer authentication required
304
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
305
+ localVarHeaderParameter['Content-Type'] = 'application/json';
306
+ localVarHeaderParameter['Accept'] = '*/*';
307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
310
+ localVarRequestOptions.data = serializeDataIfNeeded(userQuotaRequest, localVarRequestOptions, configuration);
311
+ return {
312
+ url: toPathString(localVarUrlObj),
313
+ options: localVarRequestOptions,
314
+ };
315
+ }),
316
+ };
317
+ };
318
+ /**
319
+ * QuotaAdministrationApi - functional programming interface
320
+ */
321
+ export const QuotaAdministrationApiFp = function (configuration) {
322
+ const localVarAxiosParamCreator = QuotaAdministrationApiAxiosParamCreator(configuration);
323
+ return {
324
+ /**
325
+ * Its members fall back to their other teams or the default.
326
+ * @summary Remove a team\'s limit
327
+ * @param {string} teamId
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ clear(teamId, options) {
332
+ return __awaiter(this, void 0, void 0, function* () {
333
+ var _a, _b, _c;
334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clear(teamId, options);
335
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
336
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.clear']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
337
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
338
+ });
339
+ },
340
+ /**
341
+ * The group or default limit applies again.
342
+ * @summary Remove one user\'s own limit
343
+ * @param {string} username
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ clearUserQuota(username, options) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ var _a, _b, _c;
350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clearUserQuota(username, options);
351
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
352
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.clearUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
353
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
354
+ });
355
+ },
356
+ /**
357
+ *
358
+ * @summary Get one user\'s storage
359
+ * @param {string} username
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ getUser(username, options) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ var _a, _b, _c;
366
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(username, options);
367
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
368
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.getUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
369
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
370
+ });
371
+ },
372
+ /**
373
+ *
374
+ * @summary List teams with their per-member limit and their members\' usage
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ list5(options) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ var _a, _b, _c;
381
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.list5(options);
382
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
383
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.list5']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
384
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
385
+ });
386
+ },
387
+ /**
388
+ * Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
389
+ * @summary List users\' storage
390
+ * @param {string} [search] Case-insensitive filter on the user name
391
+ * @param {string} [sort] usage | percent | limit | name
392
+ * @param {string} [order] asc | desc
393
+ * @param {number} [page]
394
+ * @param {number} [size]
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ listUsers(search, sort, order, page, size, options) {
399
+ return __awaiter(this, void 0, void 0, function* () {
400
+ var _a, _b, _c;
401
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(search, sort, order, page, size, options);
402
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
403
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
404
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
405
+ });
406
+ },
407
+ /**
408
+ * Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
409
+ * @summary Quota overview
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ overview(options) {
414
+ return __awaiter(this, void 0, void 0, function* () {
415
+ var _a, _b, _c;
416
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.overview(options);
417
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
418
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.overview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
419
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
420
+ });
421
+ },
422
+ /**
423
+ * quotaMb > 0 = limit per member, 0 = members exempt.
424
+ * @summary Set a team\'s per-member limit
425
+ * @param {string} teamId
426
+ * @param {TeamQuotaRequest} teamQuotaRequest
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ set(teamId, teamQuotaRequest, options) {
431
+ return __awaiter(this, void 0, void 0, function* () {
432
+ var _a, _b, _c;
433
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.set(teamId, teamQuotaRequest, options);
434
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
435
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.set']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
436
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
437
+ });
438
+ },
439
+ /**
440
+ * quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
441
+ * @summary Set one user\'s own limit
442
+ * @param {string} username
443
+ * @param {UserQuotaRequest} userQuotaRequest
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ setUserQuota(username, userQuotaRequest, options) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ var _a, _b, _c;
450
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setUserQuota(username, userQuotaRequest, options);
451
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
452
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuotaAdministrationApi.setUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
454
+ });
455
+ },
456
+ };
457
+ };
458
+ /**
459
+ * QuotaAdministrationApi - factory interface
460
+ */
461
+ export const QuotaAdministrationApiFactory = function (configuration, basePath, axios) {
462
+ const localVarFp = QuotaAdministrationApiFp(configuration);
463
+ return {
464
+ /**
465
+ * Its members fall back to their other teams or the default.
466
+ * @summary Remove a team\'s limit
467
+ * @param {string} teamId
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ clear(teamId, options) {
472
+ return localVarFp.clear(teamId, options).then((request) => request(axios, basePath));
473
+ },
474
+ /**
475
+ * The group or default limit applies again.
476
+ * @summary Remove one user\'s own limit
477
+ * @param {string} username
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ clearUserQuota(username, options) {
482
+ return localVarFp.clearUserQuota(username, options).then((request) => request(axios, basePath));
483
+ },
484
+ /**
485
+ *
486
+ * @summary Get one user\'s storage
487
+ * @param {string} username
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ getUser(username, options) {
492
+ return localVarFp.getUser(username, options).then((request) => request(axios, basePath));
493
+ },
494
+ /**
495
+ *
496
+ * @summary List teams with their per-member limit and their members\' usage
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ list5(options) {
501
+ return localVarFp.list5(options).then((request) => request(axios, basePath));
502
+ },
503
+ /**
504
+ * Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
505
+ * @summary List users\' storage
506
+ * @param {string} [search] Case-insensitive filter on the user name
507
+ * @param {string} [sort] usage | percent | limit | name
508
+ * @param {string} [order] asc | desc
509
+ * @param {number} [page]
510
+ * @param {number} [size]
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ listUsers(search, sort, order, page, size, options) {
515
+ return localVarFp.listUsers(search, sort, order, page, size, options).then((request) => request(axios, basePath));
516
+ },
517
+ /**
518
+ * Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
519
+ * @summary Quota overview
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ overview(options) {
524
+ return localVarFp.overview(options).then((request) => request(axios, basePath));
525
+ },
526
+ /**
527
+ * quotaMb > 0 = limit per member, 0 = members exempt.
528
+ * @summary Set a team\'s per-member limit
529
+ * @param {string} teamId
530
+ * @param {TeamQuotaRequest} teamQuotaRequest
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ set(teamId, teamQuotaRequest, options) {
535
+ return localVarFp.set(teamId, teamQuotaRequest, options).then((request) => request(axios, basePath));
536
+ },
537
+ /**
538
+ * quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
539
+ * @summary Set one user\'s own limit
540
+ * @param {string} username
541
+ * @param {UserQuotaRequest} userQuotaRequest
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ setUserQuota(username, userQuotaRequest, options) {
546
+ return localVarFp.setUserQuota(username, userQuotaRequest, options).then((request) => request(axios, basePath));
547
+ },
548
+ };
549
+ };
550
+ /**
551
+ * QuotaAdministrationApi - object-oriented interface
552
+ */
553
+ export class QuotaAdministrationApi extends BaseAPI {
554
+ /**
555
+ * Its members fall back to their other teams or the default.
556
+ * @summary Remove a team\'s limit
557
+ * @param {string} teamId
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ clear(teamId, options) {
562
+ return QuotaAdministrationApiFp(this.configuration).clear(teamId, options).then((request) => request(this.axios, this.basePath));
563
+ }
564
+ /**
565
+ * The group or default limit applies again.
566
+ * @summary Remove one user\'s own limit
567
+ * @param {string} username
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ clearUserQuota(username, options) {
572
+ return QuotaAdministrationApiFp(this.configuration).clearUserQuota(username, options).then((request) => request(this.axios, this.basePath));
573
+ }
574
+ /**
575
+ *
576
+ * @summary Get one user\'s storage
577
+ * @param {string} username
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ getUser(username, options) {
582
+ return QuotaAdministrationApiFp(this.configuration).getUser(username, options).then((request) => request(this.axios, this.basePath));
583
+ }
584
+ /**
585
+ *
586
+ * @summary List teams with their per-member limit and their members\' usage
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ list5(options) {
591
+ return QuotaAdministrationApiFp(this.configuration).list5(options).then((request) => request(this.axios, this.basePath));
592
+ }
593
+ /**
594
+ * Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
595
+ * @summary List users\' storage
596
+ * @param {string} [search] Case-insensitive filter on the user name
597
+ * @param {string} [sort] usage | percent | limit | name
598
+ * @param {string} [order] asc | desc
599
+ * @param {number} [page]
600
+ * @param {number} [size]
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ listUsers(search, sort, order, page, size, options) {
605
+ return QuotaAdministrationApiFp(this.configuration).listUsers(search, sort, order, page, size, options).then((request) => request(this.axios, this.basePath));
606
+ }
607
+ /**
608
+ * Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
609
+ * @summary Quota overview
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ */
613
+ overview(options) {
614
+ return QuotaAdministrationApiFp(this.configuration).overview(options).then((request) => request(this.axios, this.basePath));
615
+ }
616
+ /**
617
+ * quotaMb > 0 = limit per member, 0 = members exempt.
618
+ * @summary Set a team\'s per-member limit
619
+ * @param {string} teamId
620
+ * @param {TeamQuotaRequest} teamQuotaRequest
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ set(teamId, teamQuotaRequest, options) {
625
+ return QuotaAdministrationApiFp(this.configuration).set(teamId, teamQuotaRequest, options).then((request) => request(this.axios, this.basePath));
626
+ }
627
+ /**
628
+ * quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
629
+ * @summary Set one user\'s own limit
630
+ * @param {string} username
631
+ * @param {UserQuotaRequest} userQuotaRequest
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ setUserQuota(username, userQuotaRequest, options) {
636
+ return QuotaAdministrationApiFp(this.configuration).setUserQuota(username, userQuotaRequest, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+ }