@openfilz-sdk/typescript 1.3.28 → 1.3.30

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 (72) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +14 -2
  4. package/api/quota-administration-api.ts +456 -0
  5. package/api/quotas-api.ts +121 -0
  6. package/api/tus-controller-api.ts +8 -4
  7. package/api.ts +2 -0
  8. package/dist/api/quota-administration-api.d.ts +214 -0
  9. package/dist/api/quota-administration-api.js +437 -0
  10. package/dist/api/quotas-api.d.ts +63 -0
  11. package/dist/api/quotas-api.js +125 -0
  12. package/dist/api/tus-controller-api.d.ts +6 -6
  13. package/dist/api/tus-controller-api.js +2 -0
  14. package/dist/api.d.ts +2 -0
  15. package/dist/api.js +2 -0
  16. package/dist/esm/api/quota-administration-api.d.ts +214 -0
  17. package/dist/esm/api/quota-administration-api.js +430 -0
  18. package/dist/esm/api/quotas-api.d.ts +63 -0
  19. package/dist/esm/api/quotas-api.js +118 -0
  20. package/dist/esm/api/tus-controller-api.d.ts +6 -6
  21. package/dist/esm/api/tus-controller-api.js +2 -0
  22. package/dist/esm/api.d.ts +2 -0
  23. package/dist/esm/api.js +2 -0
  24. package/dist/esm/models/error-response.d.ts +16 -0
  25. package/dist/esm/models/error-response.js +14 -0
  26. package/dist/esm/models/index.d.ts +6 -0
  27. package/dist/esm/models/index.js +6 -0
  28. package/dist/esm/models/my-storage-quota.d.ts +24 -0
  29. package/dist/esm/models/my-storage-quota.js +18 -0
  30. package/dist/esm/models/quota-overview.d.ts +19 -0
  31. package/dist/esm/models/quota-overview.js +14 -0
  32. package/dist/esm/models/quota-usage.d.ts +27 -0
  33. package/dist/esm/models/quota-usage.js +18 -0
  34. package/dist/esm/models/quota-user-page.d.ts +18 -0
  35. package/dist/esm/models/quota-user-page.js +14 -0
  36. package/dist/esm/models/storage-breakdown.d.ts +2 -0
  37. package/dist/esm/models/user-quota-request.d.ts +17 -0
  38. package/dist/esm/models/user-quota-request.js +14 -0
  39. package/dist/models/error-response.d.ts +16 -0
  40. package/dist/models/error-response.js +15 -0
  41. package/dist/models/index.d.ts +6 -0
  42. package/dist/models/index.js +6 -0
  43. package/dist/models/my-storage-quota.d.ts +24 -0
  44. package/dist/models/my-storage-quota.js +21 -0
  45. package/dist/models/quota-overview.d.ts +19 -0
  46. package/dist/models/quota-overview.js +15 -0
  47. package/dist/models/quota-usage.d.ts +27 -0
  48. package/dist/models/quota-usage.js +21 -0
  49. package/dist/models/quota-user-page.d.ts +18 -0
  50. package/dist/models/quota-user-page.js +15 -0
  51. package/dist/models/storage-breakdown.d.ts +2 -0
  52. package/dist/models/user-quota-request.d.ts +17 -0
  53. package/dist/models/user-quota-request.js +15 -0
  54. package/docs/ErrorResponse.md +24 -0
  55. package/docs/MyStorageQuota.md +28 -0
  56. package/docs/QuotaAdministrationApi.md +275 -0
  57. package/docs/QuotaOverview.md +30 -0
  58. package/docs/QuotaUsage.md +34 -0
  59. package/docs/QuotaUserPage.md +26 -0
  60. package/docs/QuotasApi.md +52 -0
  61. package/docs/StorageBreakdown.md +2 -0
  62. package/docs/TusControllerApi.md +8 -7
  63. package/docs/UserQuotaRequest.md +20 -0
  64. package/models/error-response.ts +22 -0
  65. package/models/index.ts +6 -0
  66. package/models/my-storage-quota.ts +33 -0
  67. package/models/quota-overview.ts +25 -0
  68. package/models/quota-usage.ts +36 -0
  69. package/models/quota-user-page.ts +26 -0
  70. package/models/storage-breakdown.ts +4 -0
  71. package/models/user-quota-request.ts +23 -0
  72. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ # ErrorResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **number** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+ **error** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ErrorResponse } from '@openfilz-sdk/typescript';
16
+
17
+ const instance: ErrorResponse = {
18
+ status,
19
+ message,
20
+ error,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # MyStorageQuota
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **usedBytes** | **number** | | [optional] [default to undefined]
9
+ **limitBytes** | **number** | | [optional] [default to undefined]
10
+ **source** | **string** | | [optional] [default to undefined]
11
+ **sourceName** | **string** | | [optional] [default to undefined]
12
+ **maxFileSizeBytes** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { MyStorageQuota } from '@openfilz-sdk/typescript';
18
+
19
+ const instance: MyStorageQuota = {
20
+ usedBytes,
21
+ limitBytes,
22
+ source,
23
+ sourceName,
24
+ maxFileSizeBytes,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,275 @@
1
+ # QuotaAdministrationApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**clearUserQuota**](#clearuserquota) | **DELETE** /api/v1/admin/quotas/users/{username} | Remove one user\'s own limit|
8
+ |[**getUser**](#getuser) | **GET** /api/v1/admin/quotas/users/{username} | Get one user\'s storage|
9
+ |[**listUsers**](#listusers) | **GET** /api/v1/admin/quotas/users | List users\' storage|
10
+ |[**overview**](#overview) | **GET** /api/v1/admin/quotas | Quota overview|
11
+ |[**setUserQuota**](#setuserquota) | **PUT** /api/v1/admin/quotas/users/{username} | Set one user\'s own limit|
12
+
13
+ # **clearUserQuota**
14
+ > QuotaUsage clearUserQuota()
15
+
16
+ The group or default limit applies again.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ QuotaAdministrationApi,
23
+ Configuration
24
+ } from '@openfilz-sdk/typescript';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new QuotaAdministrationApi(configuration);
28
+
29
+ let username: string; // (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.clearUserQuota(
32
+ username
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **username** | [**string**] | | defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **QuotaUsage**
46
+
47
+ ### Authorization
48
+
49
+ [keycloak_auth](../README.md#keycloak_auth)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: */*
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | OK | - |
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
+
64
+ # **getUser**
65
+ > QuotaUsage getUser()
66
+
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ QuotaAdministrationApi,
73
+ Configuration
74
+ } from '@openfilz-sdk/typescript';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new QuotaAdministrationApi(configuration);
78
+
79
+ let username: string; // (default to undefined)
80
+
81
+ const { status, data } = await apiInstance.getUser(
82
+ username
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **username** | [**string**] | | defaults to undefined|
91
+
92
+
93
+ ### Return type
94
+
95
+ **QuotaUsage**
96
+
97
+ ### Authorization
98
+
99
+ [keycloak_auth](../README.md#keycloak_auth)
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: */*
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | OK | - |
111
+
112
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
113
+
114
+ # **listUsers**
115
+ > QuotaUserPage listUsers()
116
+
117
+ Every user storage is charged to, with usage, effective limit and its source. Sort by usage (default), percent, limit or name.
118
+
119
+ ### Example
120
+
121
+ ```typescript
122
+ import {
123
+ QuotaAdministrationApi,
124
+ Configuration
125
+ } from '@openfilz-sdk/typescript';
126
+
127
+ const configuration = new Configuration();
128
+ const apiInstance = new QuotaAdministrationApi(configuration);
129
+
130
+ let search: string; //Case-insensitive filter on the user name (optional) (default to undefined)
131
+ let sort: string; //usage | percent | limit | name (optional) (default to 'usage')
132
+ let order: string; //asc | desc (optional) (default to 'desc')
133
+ let page: number; // (optional) (default to 0)
134
+ let size: number; // (optional) (default to 25)
135
+
136
+ const { status, data } = await apiInstance.listUsers(
137
+ search,
138
+ sort,
139
+ order,
140
+ page,
141
+ size
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **search** | [**string**] | Case-insensitive filter on the user name | (optional) defaults to undefined|
150
+ | **sort** | [**string**] | usage | percent | limit | name | (optional) defaults to 'usage'|
151
+ | **order** | [**string**] | asc | desc | (optional) defaults to 'desc'|
152
+ | **page** | [**number**] | | (optional) defaults to 0|
153
+ | **size** | [**number**] | | (optional) defaults to 25|
154
+
155
+
156
+ ### Return type
157
+
158
+ **QuotaUserPage**
159
+
160
+ ### Authorization
161
+
162
+ [keycloak_auth](../README.md#keycloak_auth)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: Not defined
167
+ - **Accept**: */*
168
+
169
+
170
+ ### HTTP response details
171
+ | Status code | Description | Response headers |
172
+ |-------------|-------------|------------------|
173
+ |**200** | OK | - |
174
+
175
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
176
+
177
+ # **overview**
178
+ > QuotaOverview overview()
179
+
180
+ Deployment-wide limits (MB, 0 = no limit), instance usage and the number of user overrides.
181
+
182
+ ### Example
183
+
184
+ ```typescript
185
+ import {
186
+ QuotaAdministrationApi,
187
+ Configuration
188
+ } from '@openfilz-sdk/typescript';
189
+
190
+ const configuration = new Configuration();
191
+ const apiInstance = new QuotaAdministrationApi(configuration);
192
+
193
+ const { status, data } = await apiInstance.overview();
194
+ ```
195
+
196
+ ### Parameters
197
+ This endpoint does not have any parameters.
198
+
199
+
200
+ ### Return type
201
+
202
+ **QuotaOverview**
203
+
204
+ ### Authorization
205
+
206
+ [keycloak_auth](../README.md#keycloak_auth)
207
+
208
+ ### HTTP request headers
209
+
210
+ - **Content-Type**: Not defined
211
+ - **Accept**: */*
212
+
213
+
214
+ ### HTTP response details
215
+ | Status code | Description | Response headers |
216
+ |-------------|-------------|------------------|
217
+ |**200** | OK | - |
218
+
219
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
220
+
221
+ # **setUserQuota**
222
+ > QuotaUsage setUserQuota(userQuotaRequest)
223
+
224
+ quotaMb > 0 = this user\'s limit, 0 = no limit for this user. Takes precedence over group and default limits.
225
+
226
+ ### Example
227
+
228
+ ```typescript
229
+ import {
230
+ QuotaAdministrationApi,
231
+ Configuration,
232
+ UserQuotaRequest
233
+ } from '@openfilz-sdk/typescript';
234
+
235
+ const configuration = new Configuration();
236
+ const apiInstance = new QuotaAdministrationApi(configuration);
237
+
238
+ let username: string; // (default to undefined)
239
+ let userQuotaRequest: UserQuotaRequest; //
240
+
241
+ const { status, data } = await apiInstance.setUserQuota(
242
+ username,
243
+ userQuotaRequest
244
+ );
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+ |Name | Type | Description | Notes|
250
+ |------------- | ------------- | ------------- | -------------|
251
+ | **userQuotaRequest** | **UserQuotaRequest**| | |
252
+ | **username** | [**string**] | | defaults to undefined|
253
+
254
+
255
+ ### Return type
256
+
257
+ **QuotaUsage**
258
+
259
+ ### Authorization
260
+
261
+ [keycloak_auth](../README.md#keycloak_auth)
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: application/json
266
+ - **Accept**: */*
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ |**200** | OK | - |
273
+
274
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
275
+
@@ -0,0 +1,30 @@
1
+ # QuotaOverview
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **fileUploadMb** | **number** | | [optional] [default to undefined]
9
+ **defaultUserMb** | **number** | | [optional] [default to undefined]
10
+ **totalMb** | **number** | | [optional] [default to undefined]
11
+ **instanceUsedBytes** | **number** | | [optional] [default to undefined]
12
+ **instanceLimitBytes** | **number** | | [optional] [default to undefined]
13
+ **userOverrides** | **number** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { QuotaOverview } from '@openfilz-sdk/typescript';
19
+
20
+ const instance: QuotaOverview = {
21
+ fileUploadMb,
22
+ defaultUserMb,
23
+ totalMb,
24
+ instanceUsedBytes,
25
+ instanceLimitBytes,
26
+ userOverrides,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,34 @@
1
+ # QuotaUsage
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **displayName** | **string** | | [optional] [default to undefined]
10
+ **usedBytes** | **number** | | [optional] [default to undefined]
11
+ **limitBytes** | **number** | | [optional] [default to undefined]
12
+ **source** | **string** | | [optional] [default to undefined]
13
+ **sourceName** | **string** | | [optional] [default to undefined]
14
+ **overrideMb** | **number** | | [optional] [default to undefined]
15
+ **usedPercent** | **number** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { QuotaUsage } from '@openfilz-sdk/typescript';
21
+
22
+ const instance: QuotaUsage = {
23
+ username,
24
+ displayName,
25
+ usedBytes,
26
+ limitBytes,
27
+ source,
28
+ sourceName,
29
+ overrideMb,
30
+ usedPercent,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # QuotaUserPage
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **total** | **number** | | [optional] [default to undefined]
9
+ **page** | **number** | | [optional] [default to undefined]
10
+ **size** | **number** | | [optional] [default to undefined]
11
+ **items** | [**Array<QuotaUsage>**](QuotaUsage.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { QuotaUserPage } from '@openfilz-sdk/typescript';
17
+
18
+ const instance: QuotaUserPage = {
19
+ total,
20
+ page,
21
+ size,
22
+ items,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,52 @@
1
+ # QuotasApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**myQuota**](#myquota) | **GET** /api/v1/quotas/me | Get my storage quota|
8
+
9
+ # **myQuota**
10
+ > MyStorageQuota myQuota()
11
+
12
+ The caller\'s used bytes, effective limit (null = unlimited) and where it comes from (USER override, GROUP, DEFAULT), plus the per-file upload limit.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ QuotasApi,
19
+ Configuration
20
+ } from '@openfilz-sdk/typescript';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new QuotasApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.myQuota();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **MyStorageQuota**
35
+
36
+ ### Authorization
37
+
38
+ [keycloak_auth](../README.md#keycloak_auth)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: */*
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | OK | - |
50
+
51
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
52
+
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **totalStorageUsed** | **number** | | [optional] [default to undefined]
9
9
  **totalStorageAvailable** | **number** | | [optional] [default to undefined]
10
10
  **fileTypeBreakdown** | [**Array<FileTypeStats>**](FileTypeStats.md) | | [optional] [default to undefined]
11
+ **quota** | [**MyStorageQuota**](MyStorageQuota.md) | | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ const instance: StorageBreakdown = {
18
19
  totalStorageUsed,
19
20
  totalStorageAvailable,
20
21
  fileTypeBreakdown,
22
+ quota,
21
23
  };
22
24
  ```
23
25
 
@@ -111,7 +111,7 @@ void (empty response body)
111
111
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
112
112
 
113
113
  # **createUpload**
114
- > createUpload()
114
+ > object createUpload()
115
115
 
116
116
  Creates a new TUS upload session. Client must provide Upload-Length header. Upload-Metadata header should contain base64-encoded values for: filename (required), parentFolderId (optional), allowDuplicateFileNames (optional, default false).
117
117
 
@@ -145,7 +145,7 @@ const { status, data } = await apiInstance.createUpload(
145
145
 
146
146
  ### Return type
147
147
 
148
- void (empty response body)
148
+ **object**
149
149
 
150
150
  ### Authorization
151
151
 
@@ -154,7 +154,7 @@ void (empty response body)
154
154
  ### HTTP request headers
155
155
 
156
156
  - **Content-Type**: Not defined
157
- - **Accept**: Not defined
157
+ - **Accept**: */*
158
158
 
159
159
 
160
160
  ### HTTP response details
@@ -162,7 +162,7 @@ void (empty response body)
162
162
  |-------------|-------------|------------------|
163
163
  |**201** | Upload created | * Tus-Resumable - TUS protocol version <br> * Location - URL to upload chunks to <br> |
164
164
  |**413** | Upload size exceeds maximum allowed or file quota exceeded | - |
165
- |**507** | User storage quota exceeded | - |
165
+ |**507** | User or instance storage quota exceeded (error UserQuotaExceeded / InstanceQuotaExceeded) | - |
166
166
  |**404** | Parent folder not found | - |
167
167
  |**409** | Duplicate filename in target folder | - |
168
168
  |**400** | Missing required headers or filename | - |
@@ -430,7 +430,7 @@ const { status, data } = await apiInstance.isUploadComplete(
430
430
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
431
431
 
432
432
  # **uploadChunk**
433
- > uploadChunk(requestBody)
433
+ > object uploadChunk(requestBody)
434
434
 
435
435
  Uploads a chunk of data. Client must send Upload-Offset header matching current offset.
436
436
 
@@ -470,7 +470,7 @@ const { status, data } = await apiInstance.uploadChunk(
470
470
 
471
471
  ### Return type
472
472
 
473
- void (empty response body)
473
+ **object**
474
474
 
475
475
  ### Authorization
476
476
 
@@ -479,7 +479,7 @@ void (empty response body)
479
479
  ### HTTP request headers
480
480
 
481
481
  - **Content-Type**: application/offset+octet-stream
482
- - **Accept**: Not defined
482
+ - **Accept**: */*
483
483
 
484
484
 
485
485
  ### HTTP response details
@@ -487,6 +487,7 @@ void (empty response body)
487
487
  |-------------|-------------|------------------|
488
488
  |**204** | Chunk received successfully | * Tus-Resumable - TUS protocol version <br> * Upload-Offset - New offset after this chunk <br> |
489
489
  |**409** | Offset mismatch - resume from HEAD request | - |
490
+ |**413** | The chunk would go past the declared Upload-Length | - |
490
491
  |**404** | Upload not found | - |
491
492
 
492
493
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # UserQuotaRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **quotaMb** | **number** | Limit in MB; 0 &#x3D; no limit for this user | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserQuotaRequest } from '@openfilz-sdk/typescript';
14
+
15
+ const instance: UserQuotaRequest = {
16
+ quotaMb,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface ErrorResponse {
18
+ 'status'?: number;
19
+ 'message'?: string;
20
+ 'error'?: string;
21
+ }
22
+
package/models/index.ts CHANGED
@@ -42,6 +42,7 @@ export * from './document-version-info';
42
42
  export * from './element-info';
43
43
  export * from './embedding-backfill-request';
44
44
  export * from './embedding-backfill-status';
45
+ export * from './error-response';
45
46
  export * from './facet';
46
47
  export * from './file-type-stats';
47
48
  export * from './filing-outcome';
@@ -60,6 +61,7 @@ export * from './merge-request';
60
61
  export * from './merge-source';
61
62
  export * from './move-audit';
62
63
  export * from './move-request';
64
+ export * from './my-storage-quota';
63
65
  export * from './my-tasks-count-dto';
64
66
  export * from './organize-request';
65
67
  export * from './output-target';
@@ -72,6 +74,9 @@ export * from './pdf-page-info';
72
74
  export * from './pdf-transform-audit';
73
75
  export * from './per-definition';
74
76
  export * from './public-signature-view';
77
+ export * from './quota-overview';
78
+ export * from './quota-usage';
79
+ export * from './quota-user-page';
75
80
  export * from './reassign-task-request';
76
81
  export * from './rename-audit';
77
82
  export * from './rename-request';
@@ -119,6 +124,7 @@ export * from './update-metadata-audit';
119
124
  export * from './update-metadata-request';
120
125
  export * from './upload-audit';
121
126
  export * from './upload-response';
127
+ export * from './user-quota-request';
122
128
  export * from './verify-otp-request';
123
129
  export * from './vote';
124
130
  export * from './workflow-action';
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface MyStorageQuota {
18
+ 'usedBytes'?: number;
19
+ 'limitBytes'?: number;
20
+ 'source'?: MyStorageQuotaSourceEnum;
21
+ 'sourceName'?: string;
22
+ 'maxFileSizeBytes'?: number;
23
+ }
24
+
25
+ export const MyStorageQuotaSourceEnum = {
26
+ User: 'USER',
27
+ Group: 'GROUP',
28
+ Default: 'DEFAULT',
29
+ } as const;
30
+
31
+ export type MyStorageQuotaSourceEnum = typeof MyStorageQuotaSourceEnum[keyof typeof MyStorageQuotaSourceEnum];
32
+
33
+