authula 0.7.16 → 0.8.0-beta.0

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.

Potentially problematic release.


This version of authula might be problematic. Click here for more details.

Files changed (40) hide show
  1. package/README.md +196 -40
  2. package/dist/{index.js → core-Csdt31Tx.js} +6 -17
  3. package/dist/core-Csdt31Tx.js.map +1 -0
  4. package/dist/core.d.ts +2 -0
  5. package/dist/core.js +4 -0
  6. package/dist/{custom-fetch-CXJ4-i7I.js → custom-fetch-DJxn7nVP.js} +26 -10
  7. package/dist/custom-fetch-DJxn7nVP.js.map +1 -0
  8. package/dist/framework-client-CsGjKPXl.d.ts +8 -0
  9. package/dist/framework-client-D-yGjqAx.js +50 -0
  10. package/dist/framework-client-D-yGjqAx.js.map +1 -0
  11. package/dist/{index-xeVPFZn7.d.ts → index-Cuok0NWW.d.ts} +2 -448
  12. package/dist/models.d.ts +2 -0
  13. package/dist/models.js +11 -0
  14. package/dist/models.js.map +1 -0
  15. package/dist/plugins.d.ts +513 -0
  16. package/dist/plugins.js +2472 -0
  17. package/dist/plugins.js.map +1 -0
  18. package/dist/react.d.ts +3728 -0
  19. package/dist/{plugins/index.js → react.js} +975 -1256
  20. package/dist/react.js.map +1 -0
  21. package/dist/{rolldown-runtime-w6R9maHv.js → rolldown-runtime-CNh9ExCG.js} +1 -2
  22. package/dist/sdk-Cu28BXFh.d.ts +102 -0
  23. package/dist/solid.d.ts +3955 -0
  24. package/dist/solid.js +5461 -0
  25. package/dist/solid.js.map +1 -0
  26. package/dist/svelte.d.ts +3368 -0
  27. package/dist/svelte.js +5500 -0
  28. package/dist/svelte.js.map +1 -0
  29. package/dist/vue.d.ts +3289 -0
  30. package/dist/vue.js +5644 -0
  31. package/dist/vue.js.map +1 -0
  32. package/dist/zod.d.ts +3862 -0
  33. package/dist/zod.js +1480 -0
  34. package/dist/zod.js.map +1 -0
  35. package/package.json +61 -9
  36. package/dist/custom-fetch-CXJ4-i7I.js.map +0 -1
  37. package/dist/index.d.ts +0 -2
  38. package/dist/index.js.map +0 -1
  39. package/dist/plugins/index.d.ts +0 -4908
  40. package/dist/plugins/index.js.map +0 -1
@@ -1,4 +1,3 @@
1
- //#region src/gen/models/accept-organization-invitation-params.d.ts
2
1
  /**
3
2
  * Generated by orval 🍺
4
3
  * Do not edit manually.
@@ -9,8 +8,6 @@
9
8
  type AcceptOrganizationInvitationParams = {
10
9
  redirectUrl?: string;
11
10
  };
12
- //#endregion
13
- //#region src/gen/models/accept-organization-invitation-query.d.ts
14
11
  /**
15
12
  * Generated by orval 🍺
16
13
  * Do not edit manually.
@@ -22,8 +19,6 @@ type AcceptOrganizationInvitationQuery = {
22
19
  /** @nullable */
23
20
  redirectUrl?: string | null;
24
21
  };
25
- //#endregion
26
- //#region src/gen/models/account.d.ts
27
22
  /**
28
23
  * Generated by orval 🍺
29
24
  * Do not edit manually.
@@ -53,8 +48,6 @@ type Account = {
53
48
  updatedAt: string;
54
49
  userId: string;
55
50
  };
56
- //#endregion
57
- //#region src/gen/models/add-organization-member-request.d.ts
58
51
  /**
59
52
  * Generated by orval 🍺
60
53
  * Do not edit manually.
@@ -66,8 +59,6 @@ type AddOrganizationMemberRequest = {
66
59
  role: string;
67
60
  userId: string;
68
61
  };
69
- //#endregion
70
- //#region src/gen/models/add-organization-team-member-request.d.ts
71
62
  /**
72
63
  * Generated by orval 🍺
73
64
  * Do not edit manually.
@@ -78,8 +69,6 @@ type AddOrganizationMemberRequest = {
78
69
  type AddOrganizationTeamMemberRequest = {
79
70
  memberId: string;
80
71
  };
81
- //#endregion
82
- //#region src/gen/models/add-role-permission-request.d.ts
83
72
  /**
84
73
  * Generated by orval 🍺
85
74
  * Do not edit manually.
@@ -90,8 +79,6 @@ type AddOrganizationTeamMemberRequest = {
90
79
  type AddRolePermissionRequest = {
91
80
  permissionId: string;
92
81
  };
93
- //#endregion
94
- //#region src/gen/models/add-role-permission-response.d.ts
95
82
  /**
96
83
  * Generated by orval 🍺
97
84
  * Do not edit manually.
@@ -102,8 +89,6 @@ type AddRolePermissionRequest = {
102
89
  type AddRolePermissionResponse = {
103
90
  message: string;
104
91
  };
105
- //#endregion
106
- //#region src/gen/models/admin-session-state.d.ts
107
92
  /**
108
93
  * Generated by orval 🍺
109
94
  * Do not edit manually.
@@ -130,8 +115,6 @@ type AdminSessionState = {
130
115
  sessionId: string;
131
116
  updatedAt: string;
132
117
  };
133
- //#endregion
134
- //#region src/gen/models/session.d.ts
135
118
  /**
136
119
  * Generated by orval 🍺
137
120
  * Do not edit manually.
@@ -151,14 +134,10 @@ type Session = {
151
134
  userAgent?: string | null;
152
135
  userId: string;
153
136
  };
154
- //#endregion
155
- //#region src/gen/models/admin-user-session.d.ts
156
137
  type AdminUserSession = {
157
138
  session: Session;
158
139
  state?: null | AdminSessionState;
159
140
  };
160
- //#endregion
161
- //#region src/gen/models/admin-user-state.d.ts
162
141
  /**
163
142
  * Generated by orval 🍺
164
143
  * Do not edit manually.
@@ -180,8 +159,6 @@ type AdminUserState = {
180
159
  updatedAt: string;
181
160
  userId: string;
182
161
  };
183
- //#endregion
184
- //#region src/gen/models/api-key-metadata.d.ts
185
162
  /**
186
163
  * Generated by orval 🍺
187
164
  * Do not edit manually.
@@ -195,8 +172,6 @@ type AdminUserState = {
195
172
  type ApiKeyMetadata = {
196
173
  [key: string]: unknown;
197
174
  } | null;
198
- //#endregion
199
- //#region src/gen/models/api-key.d.ts
200
175
  type ApiKey = {
201
176
  createdAt: string;
202
177
  enabled: boolean;
@@ -220,8 +195,6 @@ type ApiKey = {
220
195
  start: string;
221
196
  updatedAt: string;
222
197
  };
223
- //#endregion
224
- //#region src/gen/models/assign-user-role-request.d.ts
225
198
  /**
226
199
  * Generated by orval 🍺
227
200
  * Do not edit manually.
@@ -234,8 +207,6 @@ type AssignUserRoleRequest = {
234
207
  expiresAt?: string | null;
235
208
  roleId: string;
236
209
  };
237
- //#endregion
238
- //#region src/gen/models/assign-user-role-response.d.ts
239
210
  /**
240
211
  * Generated by orval 🍺
241
212
  * Do not edit manually.
@@ -246,8 +217,6 @@ type AssignUserRoleRequest = {
246
217
  type AssignUserRoleResponse = {
247
218
  message: string;
248
219
  };
249
- //#endregion
250
- //#region src/gen/models/authorize-response.d.ts
251
220
  /**
252
221
  * Generated by orval 🍺
253
222
  * Do not edit manually.
@@ -258,8 +227,6 @@ type AssignUserRoleResponse = {
258
227
  type AuthorizeResponse = {
259
228
  authUrl: string;
260
229
  };
261
- //#endregion
262
- //#region src/gen/models/ban-user-request.d.ts
263
230
  /**
264
231
  * Generated by orval 🍺
265
232
  * Do not edit manually.
@@ -273,13 +240,9 @@ type BanUserRequest = {
273
240
  /** @nullable */
274
241
  reason?: string | null;
275
242
  };
276
- //#endregion
277
- //#region src/gen/models/ban-user-response.d.ts
278
243
  type BanUserResponse = {
279
244
  state: AdminUserState;
280
245
  };
281
- //#endregion
282
- //#region src/gen/models/user-metadata.d.ts
283
246
  /**
284
247
  * Generated by orval 🍺
285
248
  * Do not edit manually.
@@ -293,8 +256,6 @@ type BanUserResponse = {
293
256
  type UserMetadata = {
294
257
  [key: string]: unknown;
295
258
  } | null;
296
- //#endregion
297
- //#region src/gen/models/user.d.ts
298
259
  type User = {
299
260
  createdAt: string;
300
261
  email: string;
@@ -307,14 +268,10 @@ type User = {
307
268
  name: string;
308
269
  updatedAt: string;
309
270
  };
310
- //#endregion
311
- //#region src/gen/models/callback-response.d.ts
312
271
  type CallbackResponse = {
313
272
  session: Session;
314
273
  user: User;
315
274
  };
316
- //#endregion
317
- //#region src/gen/models/change-email-response.d.ts
318
275
  /**
319
276
  * Generated by orval 🍺
320
277
  * Do not edit manually.
@@ -325,8 +282,6 @@ type CallbackResponse = {
325
282
  type ChangeEmailResponse = {
326
283
  message: string;
327
284
  };
328
- //#endregion
329
- //#region src/gen/models/change-password-request.d.ts
330
285
  /**
331
286
  * Generated by orval 🍺
332
287
  * Do not edit manually.
@@ -338,8 +293,6 @@ type ChangePasswordRequest = {
338
293
  password: string;
339
294
  token: string;
340
295
  };
341
- //#endregion
342
- //#region src/gen/models/change-password-response.d.ts
343
296
  /**
344
297
  * Generated by orval 🍺
345
298
  * Do not edit manually.
@@ -350,8 +303,6 @@ type ChangePasswordRequest = {
350
303
  type ChangePasswordResponse = {
351
304
  message: string;
352
305
  };
353
- //#endregion
354
- //#region src/gen/models/check-user-permissions-request.d.ts
355
306
  /**
356
307
  * Generated by orval 🍺
357
308
  * Do not edit manually.
@@ -362,8 +313,6 @@ type ChangePasswordResponse = {
362
313
  type CheckUserPermissionsRequest = {
363
314
  permissionKeys: string[];
364
315
  };
365
- //#endregion
366
- //#region src/gen/models/check-user-permissions-response.d.ts
367
316
  /**
368
317
  * Generated by orval 🍺
369
318
  * Do not edit manually.
@@ -374,8 +323,6 @@ type CheckUserPermissionsRequest = {
374
323
  type CheckUserPermissionsResponse = {
375
324
  hasPermissions: boolean;
376
325
  };
377
- //#endregion
378
- //#region src/gen/models/create-account-request.d.ts
379
326
  /**
380
327
  * Generated by orval 🍺
381
328
  * Do not edit manually.
@@ -401,13 +348,9 @@ type CreateAccountRequest = {
401
348
  /** @nullable */
402
349
  scope?: string | null;
403
350
  };
404
- //#endregion
405
- //#region src/gen/models/create-account-response.d.ts
406
351
  type CreateAccountResponse = {
407
352
  account: Account;
408
353
  };
409
- //#endregion
410
- //#region src/gen/models/create-api-key-request-metadata.d.ts
411
354
  /**
412
355
  * Generated by orval 🍺
413
356
  * Do not edit manually.
@@ -421,8 +364,6 @@ type CreateAccountResponse = {
421
364
  type CreateApiKeyRequestMetadata = {
422
365
  [key: string]: unknown;
423
366
  } | null;
424
- //#endregion
425
- //#region src/gen/models/create-api-key-request.d.ts
426
367
  type CreateApiKeyRequest = {
427
368
  /** @nullable */
428
369
  enabled?: boolean | null;
@@ -444,14 +385,10 @@ type CreateApiKeyRequest = {
444
385
  /** @nullable */
445
386
  rateLimitTimeWindow?: number | null;
446
387
  };
447
- //#endregion
448
- //#region src/gen/models/create-api-key-response.d.ts
449
388
  type CreateApiKeyResponse = {
450
389
  apiKey: ApiKey;
451
390
  rawApiKey: string;
452
391
  };
453
- //#endregion
454
- //#region src/gen/models/create-organization-invitation-params.d.ts
455
392
  /**
456
393
  * Generated by orval 🍺
457
394
  * Do not edit manually.
@@ -462,8 +399,6 @@ type CreateApiKeyResponse = {
462
399
  type CreateOrganizationInvitationParams = {
463
400
  redirectUrl?: string;
464
401
  };
465
- //#endregion
466
- //#region src/gen/models/create-organization-invitation-query.d.ts
467
402
  /**
468
403
  * Generated by orval 🍺
469
404
  * Do not edit manually.
@@ -475,8 +410,6 @@ type CreateOrganizationInvitationQuery = {
475
410
  /** @nullable */
476
411
  redirectUrl?: string | null;
477
412
  };
478
- //#endregion
479
- //#region src/gen/models/create-organization-invitation-request.d.ts
480
413
  /**
481
414
  * Generated by orval 🍺
482
415
  * Do not edit manually.
@@ -488,8 +421,6 @@ type CreateOrganizationInvitationRequest = {
488
421
  email: string;
489
422
  role: string;
490
423
  };
491
- //#endregion
492
- //#region src/gen/models/create-organization-request-metadata.d.ts
493
424
  /**
494
425
  * Generated by orval 🍺
495
426
  * Do not edit manually.
@@ -503,8 +434,6 @@ type CreateOrganizationInvitationRequest = {
503
434
  type CreateOrganizationRequestMetadata = {
504
435
  [key: string]: unknown;
505
436
  } | null;
506
- //#endregion
507
- //#region src/gen/models/create-organization-request.d.ts
508
437
  type CreateOrganizationRequest = {
509
438
  /** @nullable */
510
439
  logo?: string | null;
@@ -515,8 +444,6 @@ type CreateOrganizationRequest = {
515
444
  /** @nullable */
516
445
  slug?: string | null;
517
446
  };
518
- //#endregion
519
- //#region src/gen/models/create-organization-team-request-metadata.d.ts
520
447
  /**
521
448
  * Generated by orval 🍺
522
449
  * Do not edit manually.
@@ -530,8 +457,6 @@ type CreateOrganizationRequest = {
530
457
  type CreateOrganizationTeamRequestMetadata = {
531
458
  [key: string]: unknown;
532
459
  } | null;
533
- //#endregion
534
- //#region src/gen/models/create-organization-team-request.d.ts
535
460
  type CreateOrganizationTeamRequest = {
536
461
  /** @nullable */
537
462
  description?: string | null;
@@ -541,8 +466,6 @@ type CreateOrganizationTeamRequest = {
541
466
  /** @nullable */
542
467
  slug?: string | null;
543
468
  };
544
- //#endregion
545
- //#region src/gen/models/create-permission-request.d.ts
546
469
  /**
547
470
  * Generated by orval 🍺
548
471
  * Do not edit manually.
@@ -556,8 +479,6 @@ type CreatePermissionRequest = {
556
479
  isSystem?: boolean;
557
480
  key: string;
558
481
  };
559
- //#endregion
560
- //#region src/gen/models/permission.d.ts
561
482
  /**
562
483
  * Generated by orval 🍺
563
484
  * Do not edit manually.
@@ -574,13 +495,9 @@ type Permission = {
574
495
  key: string;
575
496
  updatedAt: string;
576
497
  };
577
- //#endregion
578
- //#region src/gen/models/create-permission-response.d.ts
579
498
  type CreatePermissionResponse = {
580
499
  permission: Permission;
581
500
  };
582
- //#endregion
583
- //#region src/gen/models/create-role-request.d.ts
584
501
  /**
585
502
  * Generated by orval 🍺
586
503
  * Do not edit manually.
@@ -596,8 +513,6 @@ type CreateRoleRequest = {
596
513
  /** @nullable */
597
514
  weight?: number | null;
598
515
  };
599
- //#endregion
600
- //#region src/gen/models/role.d.ts
601
516
  /**
602
517
  * Generated by orval 🍺
603
518
  * Do not edit manually.
@@ -615,13 +530,9 @@ type Role = {
615
530
  updatedAt: string;
616
531
  weight: number;
617
532
  };
618
- //#endregion
619
- //#region src/gen/models/create-role-response.d.ts
620
533
  type CreateRoleResponse = {
621
534
  role: Role;
622
535
  };
623
- //#endregion
624
- //#region src/gen/models/create-session-state-request.d.ts
625
536
  /**
626
537
  * Generated by orval 🍺
627
538
  * Do not edit manually.
@@ -640,8 +551,6 @@ type CreateSessionStateRequest = {
640
551
  /** @nullable */
641
552
  revokedReason?: string | null;
642
553
  };
643
- //#endregion
644
- //#region src/gen/models/create-user-request-metadata.d.ts
645
554
  /**
646
555
  * Generated by orval 🍺
647
556
  * Do not edit manually.
@@ -655,8 +564,6 @@ type CreateSessionStateRequest = {
655
564
  type CreateUserRequestMetadata = {
656
565
  [key: string]: unknown;
657
566
  } | null;
658
- //#endregion
659
- //#region src/gen/models/create-user-request.d.ts
660
567
  type CreateUserRequest = {
661
568
  email: string;
662
569
  /** @nullable */
@@ -667,13 +574,9 @@ type CreateUserRequest = {
667
574
  metadata?: CreateUserRequestMetadata;
668
575
  name: string;
669
576
  };
670
- //#endregion
671
- //#region src/gen/models/create-user-response.d.ts
672
577
  type CreateUserResponse = {
673
578
  user: User;
674
579
  };
675
- //#endregion
676
- //#region src/gen/models/create-user-state-request.d.ts
677
580
  /**
678
581
  * Generated by orval 🍺
679
582
  * Do not edit manually.
@@ -688,8 +591,6 @@ type CreateUserStateRequest = {
688
591
  /** @nullable */
689
592
  bannedUntil?: string | null;
690
593
  };
691
- //#endregion
692
- //#region src/gen/models/delete-account-response.d.ts
693
594
  /**
694
595
  * Generated by orval 🍺
695
596
  * Do not edit manually.
@@ -700,8 +601,6 @@ type CreateUserStateRequest = {
700
601
  type DeleteAccountResponse = {
701
602
  message: string;
702
603
  };
703
- //#endregion
704
- //#region src/gen/models/delete-api-key-response.d.ts
705
604
  /**
706
605
  * Generated by orval 🍺
707
606
  * Do not edit manually.
@@ -712,8 +611,6 @@ type DeleteAccountResponse = {
712
611
  type DeleteApiKeyResponse = {
713
612
  message: string;
714
613
  };
715
- //#endregion
716
- //#region src/gen/models/delete-organization-member-response.d.ts
717
614
  /**
718
615
  * Generated by orval 🍺
719
616
  * Do not edit manually.
@@ -724,8 +621,6 @@ type DeleteApiKeyResponse = {
724
621
  type DeleteOrganizationMemberResponse = {
725
622
  message: string;
726
623
  };
727
- //#endregion
728
- //#region src/gen/models/delete-organization-response.d.ts
729
624
  /**
730
625
  * Generated by orval 🍺
731
626
  * Do not edit manually.
@@ -736,8 +631,6 @@ type DeleteOrganizationMemberResponse = {
736
631
  type DeleteOrganizationResponse = {
737
632
  message: string;
738
633
  };
739
- //#endregion
740
- //#region src/gen/models/delete-organization-team-member-response.d.ts
741
634
  /**
742
635
  * Generated by orval 🍺
743
636
  * Do not edit manually.
@@ -748,8 +641,6 @@ type DeleteOrganizationResponse = {
748
641
  type DeleteOrganizationTeamMemberResponse = {
749
642
  message: string;
750
643
  };
751
- //#endregion
752
- //#region src/gen/models/delete-organization-team-response.d.ts
753
644
  /**
754
645
  * Generated by orval 🍺
755
646
  * Do not edit manually.
@@ -760,8 +651,6 @@ type DeleteOrganizationTeamMemberResponse = {
760
651
  type DeleteOrganizationTeamResponse = {
761
652
  message: string;
762
653
  };
763
- //#endregion
764
- //#region src/gen/models/delete-permission-response.d.ts
765
654
  /**
766
655
  * Generated by orval 🍺
767
656
  * Do not edit manually.
@@ -772,8 +661,6 @@ type DeleteOrganizationTeamResponse = {
772
661
  type DeletePermissionResponse = {
773
662
  message: string;
774
663
  };
775
- //#endregion
776
- //#region src/gen/models/delete-role-response.d.ts
777
664
  /**
778
665
  * Generated by orval 🍺
779
666
  * Do not edit manually.
@@ -784,8 +671,6 @@ type DeletePermissionResponse = {
784
671
  type DeleteRoleResponse = {
785
672
  message: string;
786
673
  };
787
- //#endregion
788
- //#region src/gen/models/delete-session-state-response.d.ts
789
674
  /**
790
675
  * Generated by orval 🍺
791
676
  * Do not edit manually.
@@ -796,8 +681,6 @@ type DeleteRoleResponse = {
796
681
  type DeleteSessionStateResponse = {
797
682
  message: string;
798
683
  };
799
- //#endregion
800
- //#region src/gen/models/delete-user-response.d.ts
801
684
  /**
802
685
  * Generated by orval 🍺
803
686
  * Do not edit manually.
@@ -808,8 +691,6 @@ type DeleteSessionStateResponse = {
808
691
  type DeleteUserResponse = {
809
692
  message: string;
810
693
  };
811
- //#endregion
812
- //#region src/gen/models/delete-user-state-response.d.ts
813
694
  /**
814
695
  * Generated by orval 🍺
815
696
  * Do not edit manually.
@@ -820,8 +701,6 @@ type DeleteUserResponse = {
820
701
  type DeleteUserStateResponse = {
821
702
  message: string;
822
703
  };
823
- //#endregion
824
- //#region src/gen/models/disable-response.d.ts
825
704
  /**
826
705
  * Generated by orval 🍺
827
706
  * Do not edit manually.
@@ -832,8 +711,6 @@ type DeleteUserStateResponse = {
832
711
  type DisableResponse = {
833
712
  message: string;
834
713
  };
835
- //#endregion
836
- //#region src/gen/models/enable-response.d.ts
837
714
  /**
838
715
  * Generated by orval 🍺
839
716
  * Do not edit manually.
@@ -845,8 +722,6 @@ type EnableResponse = {
845
722
  backupCodes: string[];
846
723
  totpUri: string;
847
724
  };
848
- //#endregion
849
- //#region src/gen/models/generate-backup-codes-response.d.ts
850
725
  /**
851
726
  * Generated by orval 🍺
852
727
  * Do not edit manually.
@@ -857,26 +732,18 @@ type EnableResponse = {
857
732
  type GenerateBackupCodesResponse = {
858
733
  backupCodes: string[];
859
734
  };
860
- //#endregion
861
- //#region src/gen/models/get-account-by-id-response.d.ts
862
735
  type GetAccountByIDResponse = {
863
736
  account: Account;
864
737
  };
865
- //#endregion
866
- //#region src/gen/models/get-all-api-keys-response.d.ts
867
738
  type GetAllApiKeysResponse = {
868
739
  items: ApiKey[];
869
740
  limit: number;
870
741
  page: number;
871
742
  total: number;
872
743
  };
873
- //#endregion
874
- //#region src/gen/models/get-api-key-response.d.ts
875
744
  type GetApiKeyResponse = {
876
745
  apiKey: ApiKey;
877
746
  };
878
- //#endregion
879
- //#region src/gen/models/impersonation.d.ts
880
747
  /**
881
748
  * Generated by orval 🍺
882
749
  * Do not edit manually.
@@ -902,19 +769,13 @@ type Impersonation = {
902
769
  targetUserId: string;
903
770
  updatedAt: string;
904
771
  };
905
- //#endregion
906
- //#region src/gen/models/get-impersonation-by-id-response.d.ts
907
772
  type GetImpersonationByIDResponse = {
908
773
  impersonation: Impersonation;
909
774
  };
910
- //#endregion
911
- //#region src/gen/models/get-me-response.d.ts
912
775
  type GetMeResponse = {
913
776
  session: Session;
914
777
  user: User;
915
778
  };
916
- //#endregion
917
- //#region src/gen/models/organization-invitation-status.d.ts
918
779
  /**
919
780
  * Generated by orval 🍺
920
781
  * Do not edit manually.
@@ -933,8 +794,6 @@ declare const OrganizationInvitationStatus: {
933
794
  readonly revoked: "revoked";
934
795
  readonly expired: "expired";
935
796
  };
936
- //#endregion
937
- //#region src/gen/models/organization-invitation.d.ts
938
797
  type OrganizationInvitation = {
939
798
  createdAt: string;
940
799
  email: string;
@@ -945,8 +804,6 @@ type OrganizationInvitation = {
945
804
  role: string;
946
805
  status: OrganizationInvitationStatus;
947
806
  };
948
- //#endregion
949
- //#region src/gen/models/organization-summary-metadata.d.ts
950
807
  /**
951
808
  * Generated by orval 🍺
952
809
  * Do not edit manually.
@@ -960,8 +817,6 @@ type OrganizationInvitation = {
960
817
  type OrganizationSummaryMetadata = {
961
818
  [key: string]: unknown;
962
819
  } | null;
963
- //#endregion
964
- //#region src/gen/models/organization-summary.d.ts
965
820
  type OrganizationSummary = {
966
821
  id: string;
967
822
  /** @nullable */
@@ -972,19 +827,13 @@ type OrganizationSummary = {
972
827
  ownerId: string;
973
828
  slug: string;
974
829
  };
975
- //#endregion
976
- //#region src/gen/models/get-organization-invitation-response.d.ts
977
830
  type GetOrganizationInvitationResponse = {
978
831
  invitation: OrganizationInvitation;
979
832
  organization: OrganizationSummary;
980
833
  };
981
- //#endregion
982
- //#region src/gen/models/get-session-state-response.d.ts
983
834
  type GetSessionStateResponse = {
984
835
  state: AdminSessionState;
985
836
  };
986
- //#endregion
987
- //#region src/gen/models/get-totpuri-response.d.ts
988
837
  /**
989
838
  * Generated by orval 🍺
990
839
  * Do not edit manually.
@@ -995,13 +844,9 @@ type GetSessionStateResponse = {
995
844
  type GetTOTPURIResponse = {
996
845
  totpUri: string;
997
846
  };
998
- //#endregion
999
- //#region src/gen/models/get-user-by-id-response.d.ts
1000
847
  type GetUserByIDResponse = {
1001
848
  user: User;
1002
849
  };
1003
- //#endregion
1004
- //#region src/gen/models/permission-grant-source.d.ts
1005
850
  /**
1006
851
  * Generated by orval 🍺
1007
852
  * Do not edit manually.
@@ -1017,8 +862,6 @@ type PermissionGrantSource = {
1017
862
  roleId: string;
1018
863
  roleName: string;
1019
864
  };
1020
- //#endregion
1021
- //#region src/gen/models/user-permission-info.d.ts
1022
865
  type UserPermissionInfo = {
1023
866
  /** @nullable */
1024
867
  grantedAt?: string | null;
@@ -1031,18 +874,12 @@ type UserPermissionInfo = {
1031
874
  /** @nullable */
1032
875
  sources?: PermissionGrantSource[] | null;
1033
876
  };
1034
- //#endregion
1035
- //#region src/gen/models/get-user-permissions-response.d.ts
1036
877
  type GetUserPermissionsResponse = {
1037
878
  permissions: UserPermissionInfo[];
1038
879
  };
1039
- //#endregion
1040
- //#region src/gen/models/get-user-state-response.d.ts
1041
880
  type GetUserStateResponse = {
1042
881
  state: AdminUserState;
1043
882
  };
1044
- //#endregion
1045
- //#region src/gen/models/jwk.d.ts
1046
883
  /**
1047
884
  * Generated by orval 🍺
1048
885
  * Do not edit manually.
@@ -1060,8 +897,6 @@ type Jwk = {
1060
897
  use?: string;
1061
898
  x?: string;
1062
899
  };
1063
- //#endregion
1064
- //#region src/gen/models/list-api-keys-params.d.ts
1065
900
  /**
1066
901
  * Generated by orval 🍺
1067
902
  * Do not edit manually.
@@ -1087,8 +922,6 @@ type ListApiKeysParams = {
1087
922
  */
1088
923
  limit?: number | null;
1089
924
  };
1090
- //#endregion
1091
- //#region src/gen/models/list-organization-invitations-params.d.ts
1092
925
  /**
1093
926
  * Generated by orval 🍺
1094
927
  * Do not edit manually.
@@ -1100,8 +933,6 @@ type ListOrganizationInvitationsParams = {
1100
933
  page?: number;
1101
934
  limit?: number;
1102
935
  };
1103
- //#endregion
1104
- //#region src/gen/models/pagination.d.ts
1105
936
  /**
1106
937
  * Generated by orval 🍺
1107
938
  * Do not edit manually.
@@ -1116,14 +947,10 @@ type Pagination = {
1116
947
  total: number;
1117
948
  totalPages: number;
1118
949
  };
1119
- //#endregion
1120
- //#region src/gen/models/list-organization-invitations-response.d.ts
1121
950
  type ListOrganizationInvitationsResponse = {
1122
951
  data: GetOrganizationInvitationResponse[];
1123
952
  pagination: Pagination;
1124
953
  };
1125
- //#endregion
1126
- //#region src/gen/models/list-organization-members-params.d.ts
1127
954
  /**
1128
955
  * Generated by orval 🍺
1129
956
  * Do not edit manually.
@@ -1135,8 +962,6 @@ type ListOrganizationMembersParams = {
1135
962
  page?: number;
1136
963
  limit?: number;
1137
964
  };
1138
- //#endregion
1139
- //#region src/gen/models/organization-member-response.d.ts
1140
965
  type OrganizationMemberResponse = {
1141
966
  createdAt: string;
1142
967
  id: string;
@@ -1145,14 +970,10 @@ type OrganizationMemberResponse = {
1145
970
  updatedAt: string;
1146
971
  user: User;
1147
972
  };
1148
- //#endregion
1149
- //#region src/gen/models/list-organization-members-response.d.ts
1150
973
  type ListOrganizationMembersResponse = {
1151
974
  data: OrganizationMemberResponse[];
1152
975
  pagination: Pagination;
1153
976
  };
1154
- //#endregion
1155
- //#region src/gen/models/list-organization-team-members-params.d.ts
1156
977
  /**
1157
978
  * Generated by orval 🍺
1158
979
  * Do not edit manually.
@@ -1164,22 +985,16 @@ type ListOrganizationTeamMembersParams = {
1164
985
  page?: number;
1165
986
  limit?: number;
1166
987
  };
1167
- //#endregion
1168
- //#region src/gen/models/organization-team-member-response.d.ts
1169
988
  type OrganizationTeamMemberResponse = {
1170
989
  createdAt: string;
1171
990
  id: string;
1172
991
  member: OrganizationMemberResponse;
1173
992
  teamId: string;
1174
993
  };
1175
- //#endregion
1176
- //#region src/gen/models/list-organization-team-members-response.d.ts
1177
994
  type ListOrganizationTeamMembersResponse = {
1178
995
  data: OrganizationTeamMemberResponse[];
1179
996
  pagination: Pagination;
1180
997
  };
1181
- //#endregion
1182
- //#region src/gen/models/list-organization-teams-params.d.ts
1183
998
  /**
1184
999
  * Generated by orval 🍺
1185
1000
  * Do not edit manually.
@@ -1191,8 +1006,6 @@ type ListOrganizationTeamsParams = {
1191
1006
  page?: number;
1192
1007
  limit?: number;
1193
1008
  };
1194
- //#endregion
1195
- //#region src/gen/models/organization-team-metadata.d.ts
1196
1009
  /**
1197
1010
  * Generated by orval 🍺
1198
1011
  * Do not edit manually.
@@ -1206,8 +1019,6 @@ type ListOrganizationTeamsParams = {
1206
1019
  type OrganizationTeamMetadata = {
1207
1020
  [key: string]: unknown;
1208
1021
  } | null;
1209
- //#endregion
1210
- //#region src/gen/models/organization-team.d.ts
1211
1022
  type OrganizationTeam = {
1212
1023
  createdAt: string;
1213
1024
  /** @nullable */
@@ -1220,14 +1031,10 @@ type OrganizationTeam = {
1220
1031
  slug: string;
1221
1032
  updatedAt: string;
1222
1033
  };
1223
- //#endregion
1224
- //#region src/gen/models/list-organization-teams-response.d.ts
1225
1034
  type ListOrganizationTeamsResponse = {
1226
1035
  data: OrganizationTeam[];
1227
1036
  pagination: Pagination;
1228
1037
  };
1229
- //#endregion
1230
- //#region src/gen/models/list-organizations-params.d.ts
1231
1038
  /**
1232
1039
  * Generated by orval 🍺
1233
1040
  * Do not edit manually.
@@ -1239,8 +1046,6 @@ type ListOrganizationsParams = {
1239
1046
  page?: number;
1240
1047
  limit?: number;
1241
1048
  };
1242
- //#endregion
1243
- //#region src/gen/models/organization-metadata.d.ts
1244
1049
  /**
1245
1050
  * Generated by orval 🍺
1246
1051
  * Do not edit manually.
@@ -1254,8 +1059,6 @@ type ListOrganizationsParams = {
1254
1059
  type OrganizationMetadata = {
1255
1060
  [key: string]: unknown;
1256
1061
  } | null;
1257
- //#endregion
1258
- //#region src/gen/models/organization.d.ts
1259
1062
  type Organization = {
1260
1063
  createdAt: string;
1261
1064
  /** @nullable */
@@ -1270,14 +1073,10 @@ type Organization = {
1270
1073
  slug: string;
1271
1074
  updatedAt: string;
1272
1075
  };
1273
- //#endregion
1274
- //#region src/gen/models/list-organizations-response.d.ts
1275
1076
  type ListOrganizationsResponse = {
1276
1077
  data: Organization[];
1277
1078
  pagination: Pagination;
1278
1079
  };
1279
- //#endregion
1280
- //#region src/gen/models/list-users-params.d.ts
1281
1080
  /**
1282
1081
  * Generated by orval 🍺
1283
1082
  * Do not edit manually.
@@ -1295,8 +1094,6 @@ type ListUsersParams = {
1295
1094
  */
1296
1095
  limit?: number | null;
1297
1096
  };
1298
- //#endregion
1299
- //#region src/gen/models/magic-link-exchange-request.d.ts
1300
1097
  /**
1301
1098
  * Generated by orval 🍺
1302
1099
  * Do not edit manually.
@@ -1307,14 +1104,10 @@ type ListUsersParams = {
1307
1104
  type MagicLinkExchangeRequest = {
1308
1105
  token: string;
1309
1106
  };
1310
- //#endregion
1311
- //#region src/gen/models/magic-link-exchange-response.d.ts
1312
1107
  type MagicLinkExchangeResponse = {
1313
1108
  session: Session;
1314
1109
  user: User;
1315
1110
  };
1316
- //#endregion
1317
- //#region src/gen/models/magic-link-sign-in-request.d.ts
1318
1111
  /**
1319
1112
  * Generated by orval 🍺
1320
1113
  * Do not edit manually.
@@ -1329,8 +1122,6 @@ type MagicLinkSignInRequest = {
1329
1122
  /** @nullable */
1330
1123
  name?: string | null;
1331
1124
  };
1332
- //#endregion
1333
- //#region src/gen/models/magic-link-sign-in-response.d.ts
1334
1125
  /**
1335
1126
  * Generated by orval 🍺
1336
1127
  * Do not edit manually.
@@ -1341,8 +1132,6 @@ type MagicLinkSignInRequest = {
1341
1132
  type MagicLinkSignInResponse = {
1342
1133
  message: string;
1343
1134
  };
1344
- //#endregion
1345
- //#region src/gen/models/magic-link-verify-response.d.ts
1346
1135
  /**
1347
1136
  * Generated by orval 🍺
1348
1137
  * Do not edit manually.
@@ -1354,8 +1143,6 @@ type MagicLinkVerifyResponse = {
1354
1143
  message: string;
1355
1144
  token?: string;
1356
1145
  };
1357
- //#endregion
1358
- //#region src/gen/models/oauth-authorize-params.d.ts
1359
1146
  /**
1360
1147
  * Generated by orval 🍺
1361
1148
  * Do not edit manually.
@@ -1366,8 +1153,6 @@ type MagicLinkVerifyResponse = {
1366
1153
  type OauthAuthorizeParams = {
1367
1154
  redirectTo?: string;
1368
1155
  };
1369
- //#endregion
1370
- //#region src/gen/models/oauth-callback-params.d.ts
1371
1156
  /**
1372
1157
  * Generated by orval 🍺
1373
1158
  * Do not edit manually.
@@ -1380,8 +1165,6 @@ type OauthCallbackParams = {
1380
1165
  state: string;
1381
1166
  error?: string;
1382
1167
  };
1383
- //#endregion
1384
- //#region src/gen/models/organization-member.d.ts
1385
1168
  /**
1386
1169
  * Generated by orval 🍺
1387
1170
  * Do not edit manually.
@@ -1397,8 +1180,6 @@ type OrganizationMember = {
1397
1180
  updatedAt: string;
1398
1181
  userId: string;
1399
1182
  };
1400
- //#endregion
1401
- //#region src/gen/models/organization-team-member.d.ts
1402
1183
  /**
1403
1184
  * Generated by orval 🍺
1404
1185
  * Do not edit manually.
@@ -1412,8 +1193,6 @@ type OrganizationTeamMember = {
1412
1193
  memberId: string;
1413
1194
  teamId: string;
1414
1195
  };
1415
- //#endregion
1416
- //#region src/gen/models/refresh-token-request.d.ts
1417
1196
  /**
1418
1197
  * Generated by orval 🍺
1419
1198
  * Do not edit manually.
@@ -1424,8 +1203,6 @@ type OrganizationTeamMember = {
1424
1203
  type RefreshTokenRequest = {
1425
1204
  refreshToken: string;
1426
1205
  };
1427
- //#endregion
1428
- //#region src/gen/models/refresh-token-response.d.ts
1429
1206
  /**
1430
1207
  * Generated by orval 🍺
1431
1208
  * Do not edit manually.
@@ -1437,8 +1214,6 @@ type RefreshTokenResponse = {
1437
1214
  accessToken: string;
1438
1215
  refreshToken: string;
1439
1216
  };
1440
- //#endregion
1441
- //#region src/gen/models/remove-role-permission-response.d.ts
1442
1217
  /**
1443
1218
  * Generated by orval 🍺
1444
1219
  * Do not edit manually.
@@ -1449,8 +1224,6 @@ type RefreshTokenResponse = {
1449
1224
  type RemoveRolePermissionResponse = {
1450
1225
  message: string;
1451
1226
  };
1452
- //#endregion
1453
- //#region src/gen/models/remove-user-role-response.d.ts
1454
1227
  /**
1455
1228
  * Generated by orval 🍺
1456
1229
  * Do not edit manually.
@@ -1461,8 +1234,6 @@ type RemoveRolePermissionResponse = {
1461
1234
  type RemoveUserRoleResponse = {
1462
1235
  message: string;
1463
1236
  };
1464
- //#endregion
1465
- //#region src/gen/models/replace-role-permission-response.d.ts
1466
1237
  /**
1467
1238
  * Generated by orval 🍺
1468
1239
  * Do not edit manually.
@@ -1473,8 +1244,6 @@ type RemoveUserRoleResponse = {
1473
1244
  type ReplaceRolePermissionResponse = {
1474
1245
  message: string;
1475
1246
  };
1476
- //#endregion
1477
- //#region src/gen/models/replace-role-permissions-request.d.ts
1478
1247
  /**
1479
1248
  * Generated by orval 🍺
1480
1249
  * Do not edit manually.
@@ -1485,8 +1254,6 @@ type ReplaceRolePermissionResponse = {
1485
1254
  type ReplaceRolePermissionsRequest = {
1486
1255
  permissionIds: string[];
1487
1256
  };
1488
- //#endregion
1489
- //#region src/gen/models/replace-user-roles-request.d.ts
1490
1257
  /**
1491
1258
  * Generated by orval 🍺
1492
1259
  * Do not edit manually.
@@ -1497,8 +1264,6 @@ type ReplaceRolePermissionsRequest = {
1497
1264
  type ReplaceUserRolesRequest = {
1498
1265
  roleIds: string[];
1499
1266
  };
1500
- //#endregion
1501
- //#region src/gen/models/replace-user-roles-response.d.ts
1502
1267
  /**
1503
1268
  * Generated by orval 🍺
1504
1269
  * Do not edit manually.
@@ -1509,8 +1274,6 @@ type ReplaceUserRolesRequest = {
1509
1274
  type ReplaceUserRolesResponse = {
1510
1275
  message: string;
1511
1276
  };
1512
- //#endregion
1513
- //#region src/gen/models/request-email-change-request.d.ts
1514
1277
  /**
1515
1278
  * Generated by orval 🍺
1516
1279
  * Do not edit manually.
@@ -1523,8 +1286,6 @@ type RequestEmailChangeRequest = {
1523
1286
  callbackUrl?: string | null;
1524
1287
  newEmail: string;
1525
1288
  };
1526
- //#endregion
1527
- //#region src/gen/models/request-password-reset-request.d.ts
1528
1289
  /**
1529
1290
  * Generated by orval 🍺
1530
1291
  * Do not edit manually.
@@ -1537,8 +1298,6 @@ type RequestPasswordResetRequest = {
1537
1298
  callbackUrl?: string | null;
1538
1299
  email: string;
1539
1300
  };
1540
- //#endregion
1541
- //#region src/gen/models/revoke-session-request.d.ts
1542
1301
  /**
1543
1302
  * Generated by orval 🍺
1544
1303
  * Do not edit manually.
@@ -1550,19 +1309,13 @@ type RevokeSessionRequest = {
1550
1309
  /** @nullable */
1551
1310
  reason?: string | null;
1552
1311
  };
1553
- //#endregion
1554
- //#region src/gen/models/revoke-session-response.d.ts
1555
1312
  type RevokeSessionResponse = {
1556
1313
  state: AdminSessionState;
1557
1314
  };
1558
- //#endregion
1559
- //#region src/gen/models/role-details.d.ts
1560
1315
  type RoleDetails = {
1561
1316
  permissions: UserPermissionInfo[];
1562
1317
  role: Role;
1563
1318
  };
1564
- //#endregion
1565
- //#region src/gen/models/send-email-verification-request.d.ts
1566
1319
  /**
1567
1320
  * Generated by orval 🍺
1568
1321
  * Do not edit manually.
@@ -1574,8 +1327,6 @@ type SendEmailVerificationRequest = {
1574
1327
  /** @nullable */
1575
1328
  callbackUrl?: string | null;
1576
1329
  };
1577
- //#endregion
1578
- //#region src/gen/models/sign-in-request.d.ts
1579
1330
  /**
1580
1331
  * Generated by orval 🍺
1581
1332
  * Do not edit manually.
@@ -1589,14 +1340,10 @@ type SignInRequest = {
1589
1340
  email: string;
1590
1341
  password: string;
1591
1342
  };
1592
- //#endregion
1593
- //#region src/gen/models/sign-in-response.d.ts
1594
1343
  type SignInResponse = {
1595
1344
  session: Session;
1596
1345
  user: User;
1597
1346
  };
1598
- //#endregion
1599
- //#region src/gen/models/sign-out-request.d.ts
1600
1347
  /**
1601
1348
  * Generated by orval 🍺
1602
1349
  * Do not edit manually.
@@ -1610,8 +1357,6 @@ type SignOutRequest = {
1610
1357
  /** @nullable */
1611
1358
  signOutAll?: boolean | null;
1612
1359
  };
1613
- //#endregion
1614
- //#region src/gen/models/sign-out-response.d.ts
1615
1360
  /**
1616
1361
  * Generated by orval 🍺
1617
1362
  * Do not edit manually.
@@ -1622,8 +1367,6 @@ type SignOutRequest = {
1622
1367
  type SignOutResponse = {
1623
1368
  message: string;
1624
1369
  };
1625
- //#endregion
1626
- //#region src/gen/models/sign-up-request-metadata.d.ts
1627
1370
  /**
1628
1371
  * Generated by orval 🍺
1629
1372
  * Do not edit manually.
@@ -1637,8 +1380,6 @@ type SignOutResponse = {
1637
1380
  type SignUpRequestMetadata = {
1638
1381
  [key: string]: unknown;
1639
1382
  } | null;
1640
- //#endregion
1641
- //#region src/gen/models/sign-up-request.d.ts
1642
1383
  type SignUpRequest = {
1643
1384
  /** @nullable */
1644
1385
  callbackUrl?: string | null;
@@ -1650,14 +1391,10 @@ type SignUpRequest = {
1650
1391
  name: string;
1651
1392
  password: string;
1652
1393
  };
1653
- //#endregion
1654
- //#region src/gen/models/sign-up-response.d.ts
1655
1394
  type SignUpResponse = {
1656
1395
  session: Session;
1657
1396
  user: User;
1658
1397
  };
1659
- //#endregion
1660
- //#region src/gen/models/start-impersonation-request.d.ts
1661
1398
  /**
1662
1399
  * Generated by orval 🍺
1663
1400
  * Do not edit manually.
@@ -1671,13 +1408,9 @@ type StartImpersonationRequest = {
1671
1408
  reason: string;
1672
1409
  targetUserId: string;
1673
1410
  };
1674
- //#endregion
1675
- //#region src/gen/models/start-impersonation-response.d.ts
1676
1411
  type StartImpersonationResponse = {
1677
1412
  impersonation: Impersonation;
1678
1413
  };
1679
- //#endregion
1680
- //#region src/gen/models/stop-impersonation-response.d.ts
1681
1414
  /**
1682
1415
  * Generated by orval 🍺
1683
1416
  * Do not edit manually.
@@ -1688,13 +1421,9 @@ type StartImpersonationResponse = {
1688
1421
  type StopImpersonationResponse = {
1689
1422
  message: string;
1690
1423
  };
1691
- //#endregion
1692
- //#region src/gen/models/unban-user-response.d.ts
1693
1424
  type UnbanUserResponse = {
1694
1425
  state: AdminUserState;
1695
1426
  };
1696
- //#endregion
1697
- //#region src/gen/models/update-account-request.d.ts
1698
1427
  /**
1699
1428
  * Generated by orval 🍺
1700
1429
  * Do not edit manually.
@@ -1722,13 +1451,9 @@ type UpdateAccountRequest = {
1722
1451
  /** @nullable */
1723
1452
  scope?: string | null;
1724
1453
  };
1725
- //#endregion
1726
- //#region src/gen/models/update-account-response.d.ts
1727
1454
  type UpdateAccountResponse = {
1728
1455
  account: Account;
1729
1456
  };
1730
- //#endregion
1731
- //#region src/gen/models/update-api-key-request-metadata.d.ts
1732
1457
  /**
1733
1458
  * Generated by orval 🍺
1734
1459
  * Do not edit manually.
@@ -1742,8 +1467,6 @@ type UpdateAccountResponse = {
1742
1467
  type UpdateApiKeyRequestMetadata = {
1743
1468
  [key: string]: unknown;
1744
1469
  } | null;
1745
- //#endregion
1746
- //#region src/gen/models/update-api-key-request.d.ts
1747
1470
  type UpdateApiKeyRequest = {
1748
1471
  /** @nullable */
1749
1472
  enabled?: boolean | null;
@@ -1762,13 +1485,9 @@ type UpdateApiKeyRequest = {
1762
1485
  /** @nullable */
1763
1486
  rateLimitTimeWindow?: number | null;
1764
1487
  };
1765
- //#endregion
1766
- //#region src/gen/models/update-api-key-response.d.ts
1767
1488
  type UpdateApiKeyResponse = {
1768
1489
  apiKey: ApiKey;
1769
1490
  };
1770
- //#endregion
1771
- //#region src/gen/models/update-organization-member-request.d.ts
1772
1491
  /**
1773
1492
  * Generated by orval 🍺
1774
1493
  * Do not edit manually.
@@ -1779,8 +1498,6 @@ type UpdateApiKeyResponse = {
1779
1498
  type UpdateOrganizationMemberRequest = {
1780
1499
  role: string;
1781
1500
  };
1782
- //#endregion
1783
- //#region src/gen/models/update-organization-request-metadata.d.ts
1784
1501
  /**
1785
1502
  * Generated by orval 🍺
1786
1503
  * Do not edit manually.
@@ -1794,8 +1511,6 @@ type UpdateOrganizationMemberRequest = {
1794
1511
  type UpdateOrganizationRequestMetadata = {
1795
1512
  [key: string]: unknown;
1796
1513
  } | null;
1797
- //#endregion
1798
- //#region src/gen/models/update-organization-request.d.ts
1799
1514
  type UpdateOrganizationRequest = {
1800
1515
  /** @nullable */
1801
1516
  logo?: string | null;
@@ -1806,8 +1521,6 @@ type UpdateOrganizationRequest = {
1806
1521
  /** @nullable */
1807
1522
  slug?: string | null;
1808
1523
  };
1809
- //#endregion
1810
- //#region src/gen/models/update-organization-team-request-metadata.d.ts
1811
1524
  /**
1812
1525
  * Generated by orval 🍺
1813
1526
  * Do not edit manually.
@@ -1821,8 +1534,6 @@ type UpdateOrganizationRequest = {
1821
1534
  type UpdateOrganizationTeamRequestMetadata = {
1822
1535
  [key: string]: unknown;
1823
1536
  } | null;
1824
- //#endregion
1825
- //#region src/gen/models/update-organization-team-request.d.ts
1826
1537
  type UpdateOrganizationTeamRequest = {
1827
1538
  /** @nullable */
1828
1539
  description?: string | null;
@@ -1832,8 +1543,6 @@ type UpdateOrganizationTeamRequest = {
1832
1543
  /** @nullable */
1833
1544
  slug?: string | null;
1834
1545
  };
1835
- //#endregion
1836
- //#region src/gen/models/update-permission-request.d.ts
1837
1546
  /**
1838
1547
  * Generated by orval 🍺
1839
1548
  * Do not edit manually.
@@ -1845,13 +1554,9 @@ type UpdatePermissionRequest = {
1845
1554
  /** @nullable */
1846
1555
  description?: string | null;
1847
1556
  };
1848
- //#endregion
1849
- //#region src/gen/models/update-permission-response.d.ts
1850
1557
  type UpdatePermissionResponse = {
1851
1558
  permission: Permission;
1852
1559
  };
1853
- //#endregion
1854
- //#region src/gen/models/update-role-request.d.ts
1855
1560
  /**
1856
1561
  * Generated by orval 🍺
1857
1562
  * Do not edit manually.
@@ -1867,13 +1572,9 @@ type UpdateRoleRequest = {
1867
1572
  /** @nullable */
1868
1573
  weight?: number | null;
1869
1574
  };
1870
- //#endregion
1871
- //#region src/gen/models/update-role-response.d.ts
1872
1575
  type UpdateRoleResponse = {
1873
1576
  role: Role;
1874
1577
  };
1875
- //#endregion
1876
- //#region src/gen/models/update-user-request-metadata.d.ts
1877
1578
  /**
1878
1579
  * Generated by orval 🍺
1879
1580
  * Do not edit manually.
@@ -1887,8 +1588,6 @@ type UpdateRoleResponse = {
1887
1588
  type UpdateUserRequestMetadata = {
1888
1589
  [key: string]: unknown;
1889
1590
  } | null;
1890
- //#endregion
1891
- //#region src/gen/models/update-user-request.d.ts
1892
1591
  type UpdateUserRequest = {
1893
1592
  /** @nullable */
1894
1593
  email?: string | null;
@@ -1901,13 +1600,9 @@ type UpdateUserRequest = {
1901
1600
  /** @nullable */
1902
1601
  name?: string | null;
1903
1602
  };
1904
- //#endregion
1905
- //#region src/gen/models/update-user-response.d.ts
1906
1603
  type UpdateUserResponse = {
1907
1604
  user: User;
1908
1605
  };
1909
- //#endregion
1910
- //#region src/gen/models/upsert-session-state-request.d.ts
1911
1606
  /**
1912
1607
  * Generated by orval 🍺
1913
1608
  * Do not edit manually.
@@ -1926,13 +1621,9 @@ type UpsertSessionStateRequest = {
1926
1621
  /** @nullable */
1927
1622
  revokedReason?: string | null;
1928
1623
  };
1929
- //#endregion
1930
- //#region src/gen/models/upsert-session-state-response.d.ts
1931
1624
  type UpsertSessionStateResponse = {
1932
1625
  state: AdminSessionState;
1933
1626
  };
1934
- //#endregion
1935
- //#region src/gen/models/upsert-user-state-request.d.ts
1936
1627
  /**
1937
1628
  * Generated by orval 🍺
1938
1629
  * Do not edit manually.
@@ -1947,18 +1638,12 @@ type UpsertUserStateRequest = {
1947
1638
  /** @nullable */
1948
1639
  bannedUntil?: string | null;
1949
1640
  };
1950
- //#endregion
1951
- //#region src/gen/models/upsert-user-state-response.d.ts
1952
1641
  type UpsertUserStateResponse = {
1953
1642
  state: AdminUserState;
1954
1643
  };
1955
- //#endregion
1956
- //#region src/gen/models/user-accounts-response.d.ts
1957
1644
  type UserAccountsResponse = {
1958
1645
  accounts: Account[];
1959
1646
  };
1960
- //#endregion
1961
- //#region src/gen/models/user-role-info.d.ts
1962
1647
  /**
1963
1648
  * Generated by orval 🍺
1964
1649
  * Do not edit manually.
@@ -1979,15 +1664,11 @@ type UserRoleInfo = {
1979
1664
  roleName: string;
1980
1665
  roleWeight: number;
1981
1666
  };
1982
- //#endregion
1983
- //#region src/gen/models/users-page.d.ts
1984
1667
  type UsersPage = {
1985
1668
  /** @nullable */
1986
1669
  nextCursor?: string | null;
1987
1670
  users: User[];
1988
1671
  };
1989
- //#endregion
1990
- //#region src/gen/models/verify-api-key-request.d.ts
1991
1672
  /**
1992
1673
  * Generated by orval 🍺
1993
1674
  * Do not edit manually.
@@ -1998,13 +1679,9 @@ type UsersPage = {
1998
1679
  type VerifyApiKeyRequest = {
1999
1680
  key: string;
2000
1681
  };
2001
- //#endregion
2002
- //#region src/gen/models/verify-api-key-response.d.ts
2003
1682
  type VerifyApiKeyResponse = {
2004
1683
  apiKey: ApiKey;
2005
1684
  };
2006
- //#endregion
2007
- //#region src/gen/models/verify-backup-code-request.d.ts
2008
1685
  /**
2009
1686
  * Generated by orval 🍺
2010
1687
  * Do not edit manually.
@@ -2016,14 +1693,10 @@ type VerifyBackupCodeRequest = {
2016
1693
  code: string;
2017
1694
  trustDevice?: boolean;
2018
1695
  };
2019
- //#endregion
2020
- //#region src/gen/models/verify-backup-code-response.d.ts
2021
1696
  type VerifyBackupCodeResponse = {
2022
1697
  session: Session;
2023
1698
  user: User;
2024
1699
  };
2025
- //#endregion
2026
- //#region src/gen/models/verify-magic-link-params.d.ts
2027
1700
  /**
2028
1701
  * Generated by orval 🍺
2029
1702
  * Do not edit manually.
@@ -2035,8 +1708,6 @@ type VerifyMagicLinkParams = {
2035
1708
  token: string;
2036
1709
  callbackUrl?: string;
2037
1710
  };
2038
- //#endregion
2039
- //#region src/gen/models/verify-totp-request.d.ts
2040
1711
  /**
2041
1712
  * Generated by orval 🍺
2042
1713
  * Do not edit manually.
@@ -2048,129 +1719,12 @@ type VerifyTOTPRequest = {
2048
1719
  code: string;
2049
1720
  trustDevice?: boolean;
2050
1721
  };
2051
- //#endregion
2052
- //#region src/gen/models/verify-totp-response.d.ts
2053
1722
  type VerifyTOTPResponse = {
2054
1723
  session: Session;
2055
1724
  user: User;
2056
1725
  };
2057
- //#endregion
2058
- //#region src/gen/models/well-known-jwks-response.d.ts
2059
1726
  type WellKnownJWKSResponse = {
2060
1727
  keys: Jwk[];
2061
1728
  };
2062
- //#endregion
2063
- //#region src/types/http.d.ts
2064
- type FetchContext = {
2065
- url: string;
2066
- init: RequestInit;
2067
- /** internal metadata for plugins */
2068
- meta: {
2069
- retry?: boolean;
2070
- };
2071
- /** resolved cookies available during the request lifecycle */
2072
- cookies?: Record<string, string | undefined>;
2073
- };
2074
- type BeforeFetchHook = (ctx: FetchContext) => Promise<void> | void;
2075
- type AfterFetchHook = (ctx: FetchContext, res: Response) => Promise<"retry" | void> | "retry" | void;
2076
- //#endregion
2077
- //#region src/client.d.ts
2078
- declare class AuthulaClient {
2079
- readonly config: AuthulaClientConfig;
2080
- private readonly plugins;
2081
- private readonly beforeFetchHooks;
2082
- private readonly afterFetchHooks;
2083
- constructor(options: AuthulaClientOptions);
2084
- registerBeforeFetch(hook: BeforeFetchHook): void;
2085
- registerAfterFetch(hook: AfterFetchHook): void;
2086
- runBeforeFetch(ctx: FetchContext): Promise<void>;
2087
- runAfterFetch(ctx: FetchContext, res: Response): Promise<"retry" | undefined>;
2088
- getPlugin<T extends Plugin>(id: string): T | undefined;
2089
- getCookie(name: string): Promise<string | undefined>;
2090
- getAllCookies(): Promise<Record<string, string | undefined> | undefined>;
2091
- }
2092
- //#endregion
2093
- //#region src/types/plugins.d.ts
2094
- interface Plugin {
2095
- readonly id: string;
2096
- init(client: AuthulaClient): any;
2097
- }
2098
- //#endregion
2099
- //#region src/types/config.d.ts
2100
- type FetchOptions = {
2101
- /**
2102
- * Additional headers to include in every request made by the client
2103
- */
2104
- headers?: Record<string, string>;
2105
- /**
2106
- * The abort timeout in seconds
2107
- */
2108
- abortTimeout?: number;
2109
- };
2110
- type CookieAttributes = {
2111
- path?: string;
2112
- domain?: string;
2113
- expires?: Date;
2114
- maxAge?: number;
2115
- httpOnly?: boolean;
2116
- secure?: boolean;
2117
- sameSite?: "lax" | "strict" | "none";
2118
- };
2119
- interface CookieStore {
2120
- getAll(): {
2121
- name: string;
2122
- value: string;
2123
- }[];
2124
- set(name: string, value: string, options?: CookieAttributes): void;
2125
- }
2126
- type AuthulaClientConfig = {
2127
- /**
2128
- * The URL of your Authula server
2129
- * @example 'http://localhost:8080/api/auth'
2130
- */
2131
- url: string;
2132
- fetchOptions?: FetchOptions;
2133
- /**
2134
- * Optional cookie store for SSR environments.
2135
- * In the browser, cookies are handled automatically via document.cookie.
2136
- * In SSR (Next.js, Tanstack Start, etc.), provide a function that returns a CookieStore
2137
- * compatible with the framework's cookies API.
2138
- *
2139
- * @example Next.js
2140
- * cookies: () => import('next/headers').then(m => m.cookies())
2141
- */
2142
- cookies?: () => CookieStore | Promise<CookieStore>;
2143
- };
2144
- type AuthulaClientOptions = AuthulaClientConfig & {
2145
- /**
2146
- * The list of plugins to use
2147
- */
2148
- plugins: Array<Plugin>;
2149
- };
2150
- //#endregion
2151
- //#region src/mutators/custom-fetch.d.ts
2152
- declare class ApiError extends Error {
2153
- status: number;
2154
- data: any;
2155
- headers: Headers;
2156
- constructor(message: string, status: number, data: any, headers: Headers);
2157
- }
2158
- declare function customFetch<T>(url: string, options?: RequestInit & {
2159
- method?: string;
2160
- baseUrl?: string;
2161
- cookies?: () => CookieStore | Promise<CookieStore>;
2162
- onBeforeFetch?: (ctx: FetchContext) => Promise<void>;
2163
- onAfterFetch?: (ctx: FetchContext, res: Response) => Promise<"retry" | void>;
2164
- }): Promise<T>;
2165
- //#endregion
2166
- //#region src/sdk.d.ts
2167
- type InferPluginMethods<P> = P extends {
2168
- init: (client: any) => infer M;
2169
- } ? M : never;
2170
- type ClientWithPlugins<T extends readonly Plugin[]> = AuthulaClient & { [P in T[number] as P["id"]]: InferPluginMethods<P>; };
2171
- declare function createClient<const T extends readonly Plugin[]>(options: Omit<AuthulaClientOptions, "plugins"> & {
2172
- plugins: T;
2173
- }): ClientWithPlugins<T>;
2174
- //#endregion
2175
- export { SignUpRequestMetadata as $, CallbackResponse as $n, GetSessionStateResponse as $t, UpdateUserResponse as A, CreateRoleResponse as An, OrganizationMetadata as At, UpdateOrganizationRequestMetadata as B, CreateOrganizationInvitationRequest as Bn, OrganizationMemberResponse as Bt, UsersPage as C, DeleteApiKeyResponse as Cn, MagicLinkSignInResponse as Ct, UpsertUserStateRequest as D, CreateUserRequest as Dn, ListUsersParams as Dt, UpsertUserStateResponse as E, CreateUserResponse as En, MagicLinkExchangeRequest as Et, UpdatePermissionResponse as F, CreatePermissionRequest as Fn, ListOrganizationTeamsParams as Ft, UpdateAccountResponse as G, CreateApiKeyRequestMetadata as Gn, ListApiKeysParams as Gt, UpdateApiKeyResponse as H, CreateOrganizationInvitationParams as Hn, ListOrganizationInvitationsResponse as Ht, UpdatePermissionRequest as I, CreateOrganizationTeamRequest as In, ListOrganizationTeamMembersResponse as It, StopImpersonationResponse as J, CheckUserPermissionsResponse as Jn, GetUserPermissionsResponse as Jt, UpdateAccountRequest as K, CreateAccountResponse as Kn, Jwk as Kt, UpdateOrganizationTeamRequest as L, CreateOrganizationTeamRequestMetadata as Ln, OrganizationTeamMemberResponse as Lt, UpdateUserRequestMetadata as M, CreateRoleRequest as Mn, ListOrganizationTeamsResponse as Mt, UpdateRoleResponse as N, CreatePermissionResponse as Nn, OrganizationTeam as Nt, UpsertSessionStateResponse as O, CreateUserRequestMetadata as On, ListOrganizationsResponse as Ot, UpdateRoleRequest as P, Permission as Pn, OrganizationTeamMetadata as Pt, SignUpRequest as Q, ChangeEmailResponse as Qn, GetTOTPURIResponse as Qt, UpdateOrganizationTeamRequestMetadata as R, CreateOrganizationRequest as Rn, ListOrganizationTeamMembersParams as Rt, VerifyApiKeyRequest as S, DeleteOrganizationMemberResponse as Sn, MagicLinkVerifyResponse as St, UserAccountsResponse as T, CreateUserStateRequest as Tn, MagicLinkExchangeResponse as Tt, UpdateApiKeyRequest as U, CreateApiKeyResponse as Un, Pagination as Ut, UpdateOrganizationMemberRequest as V, CreateOrganizationInvitationQuery as Vn, ListOrganizationMembersParams as Vt, UpdateApiKeyRequestMetadata as W, CreateApiKeyRequest as Wn, ListOrganizationInvitationsParams as Wt, StartImpersonationRequest as X, ChangePasswordResponse as Xn, PermissionGrantSource as Xt, StartImpersonationResponse as Y, CheckUserPermissionsRequest as Yn, UserPermissionInfo as Yt, SignUpResponse as Z, ChangePasswordRequest as Zn, GetUserByIDResponse as Zt, VerifyTOTPRequest as _, DeleteRoleResponse as _n, Account as _r, RefreshTokenRequest as _t, AuthulaClientConfig as a, GetMeResponse as an, AssignUserRoleResponse as ar, RoleDetails as at, VerifyBackupCodeRequest as b, DeleteOrganizationTeamMemberResponse as bn, OauthCallbackParams as bt, CookieStore as c, GetApiKeyResponse as cn, ApiKeyMetadata as cr, RequestPasswordResetRequest as ct, AuthulaClient as d, GenerateBackupCodesResponse as dn, Session as dr, ReplaceUserRolesRequest as dt, GetOrganizationInvitationResponse as en, User as er, SignOutResponse as et, AfterFetchHook as f, EnableResponse as fn, AdminSessionState as fr, ReplaceRolePermissionsRequest as ft, VerifyTOTPResponse as g, DeleteSessionStateResponse as gn, AddOrganizationMemberRequest as gr, RefreshTokenResponse as gt, WellKnownJWKSResponse as h, DeleteUserResponse as hn, AddOrganizationTeamMemberRequest as hr, RemoveRolePermissionResponse as ht, customFetch as i, OrganizationInvitationStatus as in, AuthorizeResponse as ir, SendEmailVerificationRequest as it, UpdateUserRequest as j, Role as jn, ListOrganizationsParams as jt, UpsertSessionStateRequest as k, CreateSessionStateRequest as kn, Organization as kt, FetchOptions as l, GetAllApiKeysResponse as ln, AdminUserState as lr, RequestEmailChangeRequest as lt, FetchContext as m, DeleteUserStateResponse as mn, AddRolePermissionRequest as mr, RemoveUserRoleResponse as mt, createClient as n, OrganizationSummaryMetadata as nn, BanUserResponse as nr, SignInResponse as nt, AuthulaClientOptions as o, GetImpersonationByIDResponse as on, AssignUserRoleRequest as or, RevokeSessionResponse as ot, BeforeFetchHook as p, DisableResponse as pn, AddRolePermissionResponse as pr, ReplaceRolePermissionResponse as pt, UnbanUserResponse as q, CreateAccountRequest as qn, GetUserStateResponse as qt, ApiError as r, OrganizationInvitation as rn, BanUserRequest as rr, SignInRequest as rt, CookieAttributes as s, Impersonation as sn, ApiKey as sr, RevokeSessionRequest as st, ClientWithPlugins as t, OrganizationSummary as tn, UserMetadata as tr, SignOutRequest as tt, Plugin as u, GetAccountByIDResponse as un, AdminUserSession as ur, ReplaceUserRolesResponse as ut, VerifyMagicLinkParams as v, DeletePermissionResponse as vn, AcceptOrganizationInvitationQuery as vr, OrganizationTeamMember as vt, UserRoleInfo as w, DeleteAccountResponse as wn, MagicLinkSignInRequest as wt, VerifyApiKeyResponse as x, DeleteOrganizationResponse as xn, OauthAuthorizeParams as xt, VerifyBackupCodeResponse as y, DeleteOrganizationTeamResponse as yn, AcceptOrganizationInvitationParams as yr, OrganizationMember as yt, UpdateOrganizationRequest as z, CreateOrganizationRequestMetadata as zn, ListOrganizationMembersResponse as zt };
2176
- //# sourceMappingURL=index-xeVPFZn7.d.ts.map
1729
+ export { ReplaceRolePermissionResponse as $, AddRolePermissionResponse as $n, DisableResponse as $t, UpdateApiKeyRequestMetadata as A, CreateApiKeyRequest as An, ListOrganizationInvitationsParams as At, SignOutResponse as B, User as Bn, GetOrganizationInvitationResponse as Bt, UpdateOrganizationTeamRequest as C, CreateOrganizationTeamRequestMetadata as Cn, OrganizationTeamMemberResponse as Ct, UpdateOrganizationMemberRequest as D, CreateOrganizationInvitationQuery as Dn, ListOrganizationMembersParams as Dt, UpdateOrganizationRequestMetadata as E, CreateOrganizationInvitationRequest as En, OrganizationMemberResponse as Et, StartImpersonationResponse as F, CheckUserPermissionsRequest as Fn, UserPermissionInfo as Ft, RoleDetails as G, AssignUserRoleResponse as Gn, GetMeResponse as Gt, SignInResponse as H, BanUserResponse as Hn, OrganizationSummaryMetadata as Ht, StartImpersonationRequest as I, ChangePasswordResponse as In, PermissionGrantSource as It, RequestPasswordResetRequest as J, ApiKeyMetadata as Jn, GetApiKeyResponse as Jt, RevokeSessionResponse as K, AssignUserRoleRequest as Kn, GetImpersonationByIDResponse as Kt, SignUpResponse as L, ChangePasswordRequest as Ln, GetUserByIDResponse as Lt, UpdateAccountRequest as M, CreateAccountResponse as Mn, Jwk as Mt, UnbanUserResponse as N, CreateAccountRequest as Nn, GetUserStateResponse as Nt, UpdateApiKeyResponse as O, CreateOrganizationInvitationParams as On, ListOrganizationInvitationsResponse as Ot, StopImpersonationResponse as P, CheckUserPermissionsResponse as Pn, GetUserPermissionsResponse as Pt, ReplaceRolePermissionsRequest as Q, AdminSessionState as Qn, EnableResponse as Qt, SignUpRequest as R, ChangeEmailResponse as Rn, GetTOTPURIResponse as Rt, UpdatePermissionRequest as S, CreateOrganizationTeamRequest as Sn, ListOrganizationTeamMembersResponse as St, UpdateOrganizationRequest as T, CreateOrganizationRequestMetadata as Tn, ListOrganizationMembersResponse as Tt, SignInRequest as U, BanUserRequest as Un, OrganizationInvitation as Ut, SignOutRequest as V, UserMetadata as Vn, OrganizationSummary as Vt, SendEmailVerificationRequest as W, AuthorizeResponse as Wn, OrganizationInvitationStatus as Wt, ReplaceUserRolesResponse as X, AdminUserSession as Xn, GetAccountByIDResponse as Xt, RequestEmailChangeRequest as Y, AdminUserState as Yn, GetAllApiKeysResponse as Yt, ReplaceUserRolesRequest as Z, Session as Zn, GenerateBackupCodesResponse as Zt, UpdateUserRequest as _, Role as _n, ListOrganizationsParams as _t, VerifyBackupCodeResponse as a, DeleteOrganizationTeamResponse as an, AcceptOrganizationInvitationParams as ar, OrganizationMember as at, UpdateRoleRequest as b, Permission as bn, OrganizationTeamMetadata as bt, VerifyApiKeyRequest as c, DeleteOrganizationMemberResponse as cn, MagicLinkVerifyResponse as ct, UserAccountsResponse as d, CreateUserStateRequest as dn, MagicLinkExchangeResponse as dt, DeleteUserStateResponse as en, AddRolePermissionRequest as er, RemoveUserRoleResponse as et, UpsertUserStateResponse as f, CreateUserResponse as fn, MagicLinkExchangeRequest as ft, UpdateUserResponse as g, CreateRoleResponse as gn, OrganizationMetadata as gt, UpsertSessionStateRequest as h, CreateSessionStateRequest as hn, Organization as ht, VerifyMagicLinkParams as i, DeletePermissionResponse as in, AcceptOrganizationInvitationQuery as ir, OrganizationTeamMember as it, UpdateAccountResponse as j, CreateApiKeyRequestMetadata as jn, ListApiKeysParams as jt, UpdateApiKeyRequest as k, CreateApiKeyResponse as kn, Pagination as kt, UsersPage as l, DeleteApiKeyResponse as ln, MagicLinkSignInResponse as lt, UpsertSessionStateResponse as m, CreateUserRequestMetadata as mn, ListOrganizationsResponse as mt, VerifyTOTPResponse as n, DeleteSessionStateResponse as nn, AddOrganizationMemberRequest as nr, RefreshTokenResponse as nt, VerifyBackupCodeRequest as o, DeleteOrganizationTeamMemberResponse as on, OauthCallbackParams as ot, UpsertUserStateRequest as p, CreateUserRequest as pn, ListUsersParams as pt, RevokeSessionRequest as q, ApiKey as qn, Impersonation as qt, VerifyTOTPRequest as r, DeleteRoleResponse as rn, Account as rr, RefreshTokenRequest as rt, VerifyApiKeyResponse as s, DeleteOrganizationResponse as sn, OauthAuthorizeParams as st, WellKnownJWKSResponse as t, DeleteUserResponse as tn, AddOrganizationTeamMemberRequest as tr, RemoveRolePermissionResponse as tt, UserRoleInfo as u, DeleteAccountResponse as un, MagicLinkSignInRequest as ut, UpdateUserRequestMetadata as v, CreateRoleRequest as vn, ListOrganizationTeamsResponse as vt, UpdateOrganizationTeamRequestMetadata as w, CreateOrganizationRequest as wn, ListOrganizationTeamMembersParams as wt, UpdatePermissionResponse as x, CreatePermissionRequest as xn, ListOrganizationTeamsParams as xt, UpdateRoleResponse as y, CreatePermissionResponse as yn, OrganizationTeam as yt, SignUpRequestMetadata as z, CallbackResponse as zn, GetSessionStateResponse as zt };
1730
+ //# sourceMappingURL=index-Cuok0NWW.d.ts.map