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