@lumeweb/portal-sdk 0.0.2 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,760 @@
1
+ //#region src/account/generated/default.ts
2
+ const getDeleteApiAccountUrl = () => {
3
+ return `/api/account`;
4
+ };
5
+ /**
6
+ * Initiates the process to delete the authenticated user's account.
7
+ * @summary Request account deletion
8
+ */
9
+ const deleteApiAccount = async (options) => {
10
+ const res = await fetch(getDeleteApiAccountUrl(), {
11
+ ...options,
12
+ method: "DELETE"
13
+ });
14
+ const body = [
15
+ 204,
16
+ 205,
17
+ 304
18
+ ].includes(res.status) ? null : await res.text();
19
+ return {
20
+ data: body ? JSON.parse(body) : void 0,
21
+ status: res.status,
22
+ headers: res.headers
23
+ };
24
+ };
25
+ const getGetApiAccountUrl = () => {
26
+ return `/api/account`;
27
+ };
28
+ /**
29
+ * Retrieves information about the authenticated user's account.
30
+ * @summary Get account information
31
+ */
32
+ const getApiAccount = async (options) => {
33
+ const res = await fetch(getGetApiAccountUrl(), {
34
+ ...options,
35
+ method: "GET"
36
+ });
37
+ const body = [
38
+ 204,
39
+ 205,
40
+ 304
41
+ ].includes(res.status) ? null : await res.text();
42
+ return {
43
+ data: body ? JSON.parse(body) : {},
44
+ status: res.status,
45
+ headers: res.headers
46
+ };
47
+ };
48
+ const getPatchApiAccountUrl = () => {
49
+ return `/api/account`;
50
+ };
51
+ /**
52
+ * Updates the authenticated user's profile information. Email cannot be updated through this endpoint.
53
+ * @summary Update profile information
54
+ */
55
+ const patchApiAccount = async (updateProfileRequest, options) => {
56
+ const res = await fetch(getPatchApiAccountUrl(), {
57
+ ...options,
58
+ method: "PATCH",
59
+ headers: {
60
+ "Content-Type": "application/json",
61
+ ...options?.headers
62
+ },
63
+ body: JSON.stringify(updateProfileRequest)
64
+ });
65
+ const body = [
66
+ 204,
67
+ 205,
68
+ 304
69
+ ].includes(res.status) ? null : await res.text();
70
+ return {
71
+ data: body ? JSON.parse(body) : void 0,
72
+ status: res.status,
73
+ headers: res.headers
74
+ };
75
+ };
76
+ const getGetApiAccountAvatarUrl = () => {
77
+ return `/api/account/avatar`;
78
+ };
79
+ /**
80
+ * Retrieves the authenticated user's profile picture
81
+ * @summary Get Avatar
82
+ */
83
+ const getApiAccountAvatar = async (options) => {
84
+ const res = await fetch(getGetApiAccountAvatarUrl(), {
85
+ ...options,
86
+ method: "GET"
87
+ });
88
+ const body = [
89
+ 204,
90
+ 205,
91
+ 304
92
+ ].includes(res.status) ? null : await res.text();
93
+ return {
94
+ data: body ? JSON.parse(body) : void 0,
95
+ status: res.status,
96
+ headers: res.headers
97
+ };
98
+ };
99
+ const getPostApiAccountAvatarUrl = () => {
100
+ return `/api/account/avatar`;
101
+ };
102
+ /**
103
+ * Uploads a profile picture/avatar
104
+ * @summary Upload Avatar
105
+ */
106
+ const postApiAccountAvatar = async (postApiAccountAvatarBody, options) => {
107
+ const formData = new FormData();
108
+ formData.append(`file`, postApiAccountAvatarBody.file);
109
+ const res = await fetch(getPostApiAccountAvatarUrl(), {
110
+ ...options,
111
+ method: "POST",
112
+ body: formData
113
+ });
114
+ const body = [
115
+ 204,
116
+ 205,
117
+ 304
118
+ ].includes(res.status) ? null : await res.text();
119
+ return {
120
+ data: body ? JSON.parse(body) : {},
121
+ status: res.status,
122
+ headers: res.headers
123
+ };
124
+ };
125
+ const getGetApiAccountKeysUrl = (params) => {
126
+ const normalizedParams = new URLSearchParams();
127
+ Object.entries(params || {}).forEach(([key, value]) => {
128
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
129
+ });
130
+ const stringifiedParams = normalizedParams.toString();
131
+ return stringifiedParams.length > 0 ? `/api/account/keys?${stringifiedParams}` : `/api/account/keys`;
132
+ };
133
+ /**
134
+ * Retrieves a list of API keys for the authenticated user.
135
+ * @summary List API Keys
136
+ */
137
+ const getApiAccountKeys = async (params, options) => {
138
+ const res = await fetch(getGetApiAccountKeysUrl(params), {
139
+ ...options,
140
+ method: "GET"
141
+ });
142
+ const body = [
143
+ 204,
144
+ 205,
145
+ 304
146
+ ].includes(res.status) ? null : await res.text();
147
+ return {
148
+ data: body ? JSON.parse(body) : {},
149
+ status: res.status,
150
+ headers: res.headers
151
+ };
152
+ };
153
+ const getPostApiAccountKeysUrl = () => {
154
+ return `/api/account/keys`;
155
+ };
156
+ /**
157
+ * Creates a new API key for the authenticated user.
158
+ * @summary Create API Key
159
+ */
160
+ const postApiAccountKeys = async (aPIKeyCreateRequest, options) => {
161
+ const res = await fetch(getPostApiAccountKeysUrl(), {
162
+ ...options,
163
+ method: "POST",
164
+ headers: {
165
+ "Content-Type": "application/json",
166
+ ...options?.headers
167
+ },
168
+ body: JSON.stringify(aPIKeyCreateRequest)
169
+ });
170
+ const body = [
171
+ 204,
172
+ 205,
173
+ 304
174
+ ].includes(res.status) ? null : await res.text();
175
+ return {
176
+ data: body ? JSON.parse(body) : {},
177
+ status: res.status,
178
+ headers: res.headers
179
+ };
180
+ };
181
+ const getDeleteApiAccountKeysKeyIDUrl = (keyID) => {
182
+ return `/api/account/keys/${keyID}`;
183
+ };
184
+ /**
185
+ * Deletes a specific API key for the authenticated user.
186
+ * @summary Delete API Key
187
+ */
188
+ const deleteApiAccountKeysKeyID = async (keyID, options) => {
189
+ const res = await fetch(getDeleteApiAccountKeysKeyIDUrl(keyID), {
190
+ ...options,
191
+ method: "DELETE"
192
+ });
193
+ const body = [
194
+ 204,
195
+ 205,
196
+ 304
197
+ ].includes(res.status) ? null : await res.text();
198
+ return {
199
+ data: body ? JSON.parse(body) : void 0,
200
+ status: res.status,
201
+ headers: res.headers
202
+ };
203
+ };
204
+ const getPostApiAccountPasswordResetConfirmUrl = () => {
205
+ return `/api/account/password-reset/confirm`;
206
+ };
207
+ /**
208
+ * Resets the user's password using a token received via email.
209
+ * @summary Confirm password reset
210
+ */
211
+ const postApiAccountPasswordResetConfirm = async (passwordResetVerifyRequest, options) => {
212
+ const res = await fetch(getPostApiAccountPasswordResetConfirmUrl(), {
213
+ ...options,
214
+ method: "POST",
215
+ headers: {
216
+ "Content-Type": "application/json",
217
+ ...options?.headers
218
+ },
219
+ body: JSON.stringify(passwordResetVerifyRequest)
220
+ });
221
+ const body = [
222
+ 204,
223
+ 205,
224
+ 304
225
+ ].includes(res.status) ? null : await res.text();
226
+ return {
227
+ data: body ? JSON.parse(body) : void 0,
228
+ status: res.status,
229
+ headers: res.headers
230
+ };
231
+ };
232
+ const getPostApiAccountPasswordResetRequestUrl = () => {
233
+ return `/api/account/password-reset/request`;
234
+ };
235
+ /**
236
+ * Initiates the password reset process by sending a reset link to the user's email.
237
+ * @summary Request password reset
238
+ */
239
+ const postApiAccountPasswordResetRequest = async (passwordResetRequest, options) => {
240
+ const res = await fetch(getPostApiAccountPasswordResetRequestUrl(), {
241
+ ...options,
242
+ method: "POST",
243
+ headers: {
244
+ "Content-Type": "application/json",
245
+ ...options?.headers
246
+ },
247
+ body: JSON.stringify(passwordResetRequest)
248
+ });
249
+ const body = [
250
+ 204,
251
+ 205,
252
+ 304
253
+ ].includes(res.status) ? null : await res.text();
254
+ return {
255
+ data: body ? JSON.parse(body) : void 0,
256
+ status: res.status,
257
+ headers: res.headers
258
+ };
259
+ };
260
+ const getGetApiAccountPermissionsUrl = () => {
261
+ return `/api/account/permissions`;
262
+ };
263
+ /**
264
+ * Retrieves the access control policies and model for the authenticated user.
265
+ * @summary Get account permissions
266
+ */
267
+ const getApiAccountPermissions = async (options) => {
268
+ const res = await fetch(getGetApiAccountPermissionsUrl(), {
269
+ ...options,
270
+ method: "GET"
271
+ });
272
+ const body = [
273
+ 204,
274
+ 205,
275
+ 304
276
+ ].includes(res.status) ? null : await res.text();
277
+ return {
278
+ data: body ? JSON.parse(body) : {},
279
+ status: res.status,
280
+ headers: res.headers
281
+ };
282
+ };
283
+ const getGetApiAccountQuotaHistoryUrl = (params) => {
284
+ const normalizedParams = new URLSearchParams();
285
+ Object.entries(params || {}).forEach(([key, value]) => {
286
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
287
+ });
288
+ const stringifiedParams = normalizedParams.toString();
289
+ return stringifiedParams.length > 0 ? `/api/account/quota/history?${stringifiedParams}` : `/api/account/quota/history`;
290
+ };
291
+ /**
292
+ * Retrieves historical quota usage data for charting and analytics.
293
+ * @summary Get quota usage history
294
+ */
295
+ const getApiAccountQuotaHistory = async (params, options) => {
296
+ const res = await fetch(getGetApiAccountQuotaHistoryUrl(params), {
297
+ ...options,
298
+ method: "GET"
299
+ });
300
+ const body = [
301
+ 204,
302
+ 205,
303
+ 304
304
+ ].includes(res.status) ? null : await res.text();
305
+ return {
306
+ data: body ? JSON.parse(body) : {},
307
+ status: res.status,
308
+ headers: res.headers
309
+ };
310
+ };
311
+ const getPostApiAccountUpdateEmailUrl = () => {
312
+ return `/api/account/update-email`;
313
+ };
314
+ /**
315
+ * Updates the authenticated user's email address.
316
+ * @summary Update email address
317
+ */
318
+ const postApiAccountUpdateEmail = async (updateEmailRequest, options) => {
319
+ const res = await fetch(getPostApiAccountUpdateEmailUrl(), {
320
+ ...options,
321
+ method: "POST",
322
+ headers: {
323
+ "Content-Type": "application/json",
324
+ ...options?.headers
325
+ },
326
+ body: JSON.stringify(updateEmailRequest)
327
+ });
328
+ const body = [
329
+ 204,
330
+ 205,
331
+ 304
332
+ ].includes(res.status) ? null : await res.text();
333
+ return {
334
+ data: body ? JSON.parse(body) : void 0,
335
+ status: res.status,
336
+ headers: res.headers
337
+ };
338
+ };
339
+ const getPostApiAccountUpdatePasswordUrl = () => {
340
+ return `/api/account/update-password`;
341
+ };
342
+ /**
343
+ * Updates the authenticated user's password.
344
+ * @summary Update password
345
+ */
346
+ const postApiAccountUpdatePassword = async (updatePasswordRequest, options) => {
347
+ const res = await fetch(getPostApiAccountUpdatePasswordUrl(), {
348
+ ...options,
349
+ method: "POST",
350
+ headers: {
351
+ "Content-Type": "application/json",
352
+ ...options?.headers
353
+ },
354
+ body: JSON.stringify(updatePasswordRequest)
355
+ });
356
+ const body = [
357
+ 204,
358
+ 205,
359
+ 304
360
+ ].includes(res.status) ? null : await res.text();
361
+ return {
362
+ data: body ? JSON.parse(body) : void 0,
363
+ status: res.status,
364
+ headers: res.headers
365
+ };
366
+ };
367
+ const getPostApiAccountVerifyEmailUrl = (params) => {
368
+ const normalizedParams = new URLSearchParams();
369
+ Object.entries(params || {}).forEach(([key, value]) => {
370
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
371
+ });
372
+ const stringifiedParams = normalizedParams.toString();
373
+ return stringifiedParams.length > 0 ? `/api/account/verify-email?${stringifiedParams}` : `/api/account/verify-email`;
374
+ };
375
+ /**
376
+ * Verifies a user's email address using a token sent via email. Optionally auto-login user if they don't have 2FA enabled.
377
+ * @summary Verify email address
378
+ */
379
+ const postApiAccountVerifyEmail = async (verifyEmailRequest, params, options) => {
380
+ const res = await fetch(getPostApiAccountVerifyEmailUrl(params), {
381
+ ...options,
382
+ method: "POST",
383
+ headers: {
384
+ "Content-Type": "application/json",
385
+ ...options?.headers
386
+ },
387
+ body: JSON.stringify(verifyEmailRequest)
388
+ });
389
+ const body = [
390
+ 204,
391
+ 205,
392
+ 304
393
+ ].includes(res.status) ? null : await res.text();
394
+ return {
395
+ data: body ? JSON.parse(body) : void 0,
396
+ status: res.status,
397
+ headers: res.headers
398
+ };
399
+ };
400
+ const getPostApiAccountVerifyEmailResendUrl = () => {
401
+ return `/api/account/verify-email/resend`;
402
+ };
403
+ /**
404
+ * Resends the email verification link to the user's email address.
405
+ * @summary Resend email verification
406
+ */
407
+ const postApiAccountVerifyEmailResend = async (resendVerifyEmailRequest, options) => {
408
+ const res = await fetch(getPostApiAccountVerifyEmailResendUrl(), {
409
+ ...options,
410
+ method: "POST",
411
+ headers: {
412
+ "Content-Type": "application/json",
413
+ ...options?.headers
414
+ },
415
+ body: JSON.stringify(resendVerifyEmailRequest)
416
+ });
417
+ const body = [
418
+ 204,
419
+ 205,
420
+ 304
421
+ ].includes(res.status) ? null : await res.text();
422
+ return {
423
+ data: body ? JSON.parse(body) : void 0,
424
+ status: res.status,
425
+ headers: res.headers
426
+ };
427
+ };
428
+ const getPostApiAuthKeyUrl = () => {
429
+ return `/api/auth/key`;
430
+ };
431
+ /**
432
+ * Exchanges an API key for a JWT.
433
+ * @summary Authenticate with API Key
434
+ */
435
+ const postApiAuthKey = async (options) => {
436
+ const res = await fetch(getPostApiAuthKeyUrl(), {
437
+ ...options,
438
+ method: "POST"
439
+ });
440
+ const body = [
441
+ 204,
442
+ 205,
443
+ 304
444
+ ].includes(res.status) ? null : await res.text();
445
+ return {
446
+ data: body ? JSON.parse(body) : {},
447
+ status: res.status,
448
+ headers: res.headers
449
+ };
450
+ };
451
+ const getPostApiAuthLoginUrl = () => {
452
+ return `/api/auth/login`;
453
+ };
454
+ /**
455
+ * Authenticates a user using email and password.
456
+ * @summary Login with email and password
457
+ */
458
+ const postApiAuthLogin = async (loginRequest, options) => {
459
+ const res = await fetch(getPostApiAuthLoginUrl(), {
460
+ ...options,
461
+ method: "POST",
462
+ headers: {
463
+ "Content-Type": "application/json",
464
+ ...options?.headers
465
+ },
466
+ body: JSON.stringify(loginRequest)
467
+ });
468
+ const body = [
469
+ 204,
470
+ 205,
471
+ 304
472
+ ].includes(res.status) ? null : await res.text();
473
+ return {
474
+ data: body ? JSON.parse(body) : {},
475
+ status: res.status,
476
+ headers: res.headers
477
+ };
478
+ };
479
+ const getPostApiAuthLogoutUrl = () => {
480
+ return `/api/auth/logout`;
481
+ };
482
+ /**
483
+ * Logs out the current user by clearing the authentication cookie.
484
+ * @summary Logout
485
+ */
486
+ const postApiAuthLogout = async (options) => {
487
+ const res = await fetch(getPostApiAuthLogoutUrl(), {
488
+ ...options,
489
+ method: "POST"
490
+ });
491
+ const body = [
492
+ 204,
493
+ 205,
494
+ 304
495
+ ].includes(res.status) ? null : await res.text();
496
+ return {
497
+ data: body ? JSON.parse(body) : void 0,
498
+ status: res.status,
499
+ headers: res.headers
500
+ };
501
+ };
502
+ const getPostApiAuthOtpDisableUrl = () => {
503
+ return `/api/auth/otp/disable`;
504
+ };
505
+ /**
506
+ * Disables 2FA for the authenticated user.
507
+ * @summary Disable OTP
508
+ */
509
+ const postApiAuthOtpDisable = async (oTPDisableRequest, options) => {
510
+ const res = await fetch(getPostApiAuthOtpDisableUrl(), {
511
+ ...options,
512
+ method: "POST",
513
+ headers: {
514
+ "Content-Type": "application/json",
515
+ ...options?.headers
516
+ },
517
+ body: JSON.stringify(oTPDisableRequest)
518
+ });
519
+ const body = [
520
+ 204,
521
+ 205,
522
+ 304
523
+ ].includes(res.status) ? null : await res.text();
524
+ return {
525
+ data: body ? JSON.parse(body) : {},
526
+ status: res.status,
527
+ headers: res.headers
528
+ };
529
+ };
530
+ const getPostApiAuthOtpGenerateUrl = () => {
531
+ return `/api/auth/otp/generate`;
532
+ };
533
+ /**
534
+ * Generates a new OTP secret for the authenticated user.
535
+ * @summary Generate OTP secret
536
+ */
537
+ const postApiAuthOtpGenerate = async (options) => {
538
+ const res = await fetch(getPostApiAuthOtpGenerateUrl(), {
539
+ ...options,
540
+ method: "POST"
541
+ });
542
+ const body = [
543
+ 204,
544
+ 205,
545
+ 304
546
+ ].includes(res.status) ? null : await res.text();
547
+ return {
548
+ data: body ? JSON.parse(body) : {},
549
+ status: res.status,
550
+ headers: res.headers
551
+ };
552
+ };
553
+ const getPostApiAuthOtpValidateUrl = () => {
554
+ return `/api/auth/otp/validate`;
555
+ };
556
+ /**
557
+ * Validates an OTP code to complete 2FA login.
558
+ * @summary Validate OTP code
559
+ */
560
+ const postApiAuthOtpValidate = async (oTPValidateRequest, options) => {
561
+ const res = await fetch(getPostApiAuthOtpValidateUrl(), {
562
+ ...options,
563
+ method: "POST",
564
+ headers: {
565
+ "Content-Type": "application/json",
566
+ ...options?.headers
567
+ },
568
+ body: JSON.stringify(oTPValidateRequest)
569
+ });
570
+ const body = [
571
+ 204,
572
+ 205,
573
+ 304
574
+ ].includes(res.status) ? null : await res.text();
575
+ return {
576
+ data: body ? JSON.parse(body) : {},
577
+ status: res.status,
578
+ headers: res.headers
579
+ };
580
+ };
581
+ const getPostApiAuthOtpVerifyUrl = () => {
582
+ return `/api/auth/otp/verify`;
583
+ };
584
+ /**
585
+ * Verifies an OTP code and enables 2FA for the authenticated user.
586
+ * @summary Verify and enable OTP
587
+ */
588
+ const postApiAuthOtpVerify = async (oTPVerifyRequest, options) => {
589
+ const res = await fetch(getPostApiAuthOtpVerifyUrl(), {
590
+ ...options,
591
+ method: "POST",
592
+ headers: {
593
+ "Content-Type": "application/json",
594
+ ...options?.headers
595
+ },
596
+ body: JSON.stringify(oTPVerifyRequest)
597
+ });
598
+ const body = [
599
+ 204,
600
+ 205,
601
+ 304
602
+ ].includes(res.status) ? null : await res.text();
603
+ return {
604
+ data: body ? JSON.parse(body) : {},
605
+ status: res.status,
606
+ headers: res.headers
607
+ };
608
+ };
609
+ const getPostApiAuthPingUrl = () => {
610
+ return `/api/auth/ping`;
611
+ };
612
+ /**
613
+ * Checks if the user is authenticated and returns a pong response.
614
+ * @summary Ping authenticated endpoint
615
+ */
616
+ const postApiAuthPing = async (options) => {
617
+ const res = await fetch(getPostApiAuthPingUrl(), {
618
+ ...options,
619
+ method: "POST"
620
+ });
621
+ const body = [
622
+ 204,
623
+ 205,
624
+ 304
625
+ ].includes(res.status) ? null : await res.text();
626
+ return {
627
+ data: body ? JSON.parse(body) : {},
628
+ status: res.status,
629
+ headers: res.headers
630
+ };
631
+ };
632
+ const getPostApiAuthRegisterUrl = () => {
633
+ return `/api/auth/register`;
634
+ };
635
+ /**
636
+ * Creates a new user account with email and password.
637
+ * @summary Register a new account
638
+ */
639
+ const postApiAuthRegister = async (registerRequest, options) => {
640
+ const res = await fetch(getPostApiAuthRegisterUrl(), {
641
+ ...options,
642
+ method: "POST",
643
+ headers: {
644
+ "Content-Type": "application/json",
645
+ ...options?.headers
646
+ },
647
+ body: JSON.stringify(registerRequest)
648
+ });
649
+ const body = [
650
+ 204,
651
+ 205,
652
+ 304
653
+ ].includes(res.status) ? null : await res.text();
654
+ return {
655
+ data: body ? JSON.parse(body) : void 0,
656
+ status: res.status,
657
+ headers: res.headers
658
+ };
659
+ };
660
+ const getGetApiOperationsUrl = (params) => {
661
+ const normalizedParams = new URLSearchParams();
662
+ Object.entries(params || {}).forEach(([key, value]) => {
663
+ if (value !== void 0) normalizedParams.append(key, value === null ? "null" : value.toString());
664
+ });
665
+ const stringifiedParams = normalizedParams.toString();
666
+ return stringifiedParams.length > 0 ? `/api/operations?${stringifiedParams}` : `/api/operations`;
667
+ };
668
+ /**
669
+ * Retrieve a list of operations, with filtering, searching, and pagination support.
670
+ * @summary List Operations
671
+ */
672
+ const getApiOperations = async (params, options) => {
673
+ const res = await fetch(getGetApiOperationsUrl(params), {
674
+ ...options,
675
+ method: "GET"
676
+ });
677
+ const body = [
678
+ 204,
679
+ 205,
680
+ 304
681
+ ].includes(res.status) ? null : await res.text();
682
+ return {
683
+ data: body ? JSON.parse(body) : {},
684
+ status: res.status,
685
+ headers: res.headers
686
+ };
687
+ };
688
+ const getGetApiOperationsIdUrl = (id) => {
689
+ return `/api/operations/${id}`;
690
+ };
691
+ /**
692
+ * Retrieve detailed information for a specific operation by its ID.
693
+ * @summary Get Operation Details
694
+ */
695
+ const getApiOperationsId = async (id, options) => {
696
+ const res = await fetch(getGetApiOperationsIdUrl(id), {
697
+ ...options,
698
+ method: "GET"
699
+ });
700
+ const body = [
701
+ 204,
702
+ 205,
703
+ 304
704
+ ].includes(res.status) ? null : await res.text();
705
+ return {
706
+ data: body ? JSON.parse(body) : {},
707
+ status: res.status,
708
+ headers: res.headers
709
+ };
710
+ };
711
+ const getGetApiOperationsFiltersUrl = () => {
712
+ return `/api/operations/filters`;
713
+ };
714
+ /**
715
+ * Retrieves distinct filter values for operations (statuses, operations, protocols)
716
+ * @summary Get Operation Filters
717
+ */
718
+ const getApiOperationsFilters = async (options) => {
719
+ const res = await fetch(getGetApiOperationsFiltersUrl(), {
720
+ ...options,
721
+ method: "GET"
722
+ });
723
+ const body = [
724
+ 204,
725
+ 205,
726
+ 304
727
+ ].includes(res.status) ? null : await res.text();
728
+ return {
729
+ data: body ? JSON.parse(body) : {},
730
+ status: res.status,
731
+ headers: res.headers
732
+ };
733
+ };
734
+ const getGetApiUploadLimitUrl = () => {
735
+ return `/api/upload-limit`;
736
+ };
737
+ /**
738
+ * Retrieves the maximum allowed upload size.
739
+ * @summary Get upload limit
740
+ */
741
+ const getApiUploadLimit = async (options) => {
742
+ const res = await fetch(getGetApiUploadLimitUrl(), {
743
+ ...options,
744
+ method: "GET"
745
+ });
746
+ const body = [
747
+ 204,
748
+ 205,
749
+ 304
750
+ ].includes(res.status) ? null : await res.text();
751
+ return {
752
+ data: body ? JSON.parse(body) : {},
753
+ status: res.status,
754
+ headers: res.headers
755
+ };
756
+ };
757
+
758
+ //#endregion
759
+ export { deleteApiAccount, deleteApiAccountKeysKeyID, getApiAccount, getApiAccountAvatar, getApiAccountKeys, getApiAccountPermissions, getApiAccountQuotaHistory, getApiOperations, getApiOperationsFilters, getApiOperationsId, getApiUploadLimit, getDeleteApiAccountKeysKeyIDUrl, getDeleteApiAccountUrl, getGetApiAccountAvatarUrl, getGetApiAccountKeysUrl, getGetApiAccountPermissionsUrl, getGetApiAccountQuotaHistoryUrl, getGetApiAccountUrl, getGetApiOperationsFiltersUrl, getGetApiOperationsIdUrl, getGetApiOperationsUrl, getGetApiUploadLimitUrl, getPatchApiAccountUrl, getPostApiAccountAvatarUrl, getPostApiAccountKeysUrl, getPostApiAccountPasswordResetConfirmUrl, getPostApiAccountPasswordResetRequestUrl, getPostApiAccountUpdateEmailUrl, getPostApiAccountUpdatePasswordUrl, getPostApiAccountVerifyEmailResendUrl, getPostApiAccountVerifyEmailUrl, getPostApiAuthKeyUrl, getPostApiAuthLoginUrl, getPostApiAuthLogoutUrl, getPostApiAuthOtpDisableUrl, getPostApiAuthOtpGenerateUrl, getPostApiAuthOtpValidateUrl, getPostApiAuthOtpVerifyUrl, getPostApiAuthPingUrl, getPostApiAuthRegisterUrl, patchApiAccount, postApiAccountAvatar, postApiAccountKeys, postApiAccountPasswordResetConfirm, postApiAccountPasswordResetRequest, postApiAccountUpdateEmail, postApiAccountUpdatePassword, postApiAccountVerifyEmail, postApiAccountVerifyEmailResend, postApiAuthKey, postApiAuthLogin, postApiAuthLogout, postApiAuthOtpDisable, postApiAuthOtpGenerate, postApiAuthOtpValidate, postApiAuthOtpVerify, postApiAuthPing, postApiAuthRegister };
760
+ //# sourceMappingURL=default.js.map