authula 0.7.15 → 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-DVhn7FFt.d.ts → index-Cuok0NWW.d.ts} +4 -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 +68 -16
  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 -4907
  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,10 +1059,10 @@ 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;
1064
+ /** @nullable */
1065
+ deletedAt?: string | null;
1261
1066
  id: string;
1262
1067
  /** @nullable */
1263
1068
  logo?: string | null;
@@ -1268,14 +1073,10 @@ type Organization = {
1268
1073
  slug: string;
1269
1074
  updatedAt: string;
1270
1075
  };
1271
- //#endregion
1272
- //#region src/gen/models/list-organizations-response.d.ts
1273
1076
  type ListOrganizationsResponse = {
1274
1077
  data: Organization[];
1275
1078
  pagination: Pagination;
1276
1079
  };
1277
- //#endregion
1278
- //#region src/gen/models/list-users-params.d.ts
1279
1080
  /**
1280
1081
  * Generated by orval 🍺
1281
1082
  * Do not edit manually.
@@ -1293,8 +1094,6 @@ type ListUsersParams = {
1293
1094
  */
1294
1095
  limit?: number | null;
1295
1096
  };
1296
- //#endregion
1297
- //#region src/gen/models/magic-link-exchange-request.d.ts
1298
1097
  /**
1299
1098
  * Generated by orval 🍺
1300
1099
  * Do not edit manually.
@@ -1305,14 +1104,10 @@ type ListUsersParams = {
1305
1104
  type MagicLinkExchangeRequest = {
1306
1105
  token: string;
1307
1106
  };
1308
- //#endregion
1309
- //#region src/gen/models/magic-link-exchange-response.d.ts
1310
1107
  type MagicLinkExchangeResponse = {
1311
1108
  session: Session;
1312
1109
  user: User;
1313
1110
  };
1314
- //#endregion
1315
- //#region src/gen/models/magic-link-sign-in-request.d.ts
1316
1111
  /**
1317
1112
  * Generated by orval 🍺
1318
1113
  * Do not edit manually.
@@ -1327,8 +1122,6 @@ type MagicLinkSignInRequest = {
1327
1122
  /** @nullable */
1328
1123
  name?: string | null;
1329
1124
  };
1330
- //#endregion
1331
- //#region src/gen/models/magic-link-sign-in-response.d.ts
1332
1125
  /**
1333
1126
  * Generated by orval 🍺
1334
1127
  * Do not edit manually.
@@ -1339,8 +1132,6 @@ type MagicLinkSignInRequest = {
1339
1132
  type MagicLinkSignInResponse = {
1340
1133
  message: string;
1341
1134
  };
1342
- //#endregion
1343
- //#region src/gen/models/magic-link-verify-response.d.ts
1344
1135
  /**
1345
1136
  * Generated by orval 🍺
1346
1137
  * Do not edit manually.
@@ -1352,8 +1143,6 @@ type MagicLinkVerifyResponse = {
1352
1143
  message: string;
1353
1144
  token?: string;
1354
1145
  };
1355
- //#endregion
1356
- //#region src/gen/models/oauth-authorize-params.d.ts
1357
1146
  /**
1358
1147
  * Generated by orval 🍺
1359
1148
  * Do not edit manually.
@@ -1364,8 +1153,6 @@ type MagicLinkVerifyResponse = {
1364
1153
  type OauthAuthorizeParams = {
1365
1154
  redirectTo?: string;
1366
1155
  };
1367
- //#endregion
1368
- //#region src/gen/models/oauth-callback-params.d.ts
1369
1156
  /**
1370
1157
  * Generated by orval 🍺
1371
1158
  * Do not edit manually.
@@ -1378,8 +1165,6 @@ type OauthCallbackParams = {
1378
1165
  state: string;
1379
1166
  error?: string;
1380
1167
  };
1381
- //#endregion
1382
- //#region src/gen/models/organization-member.d.ts
1383
1168
  /**
1384
1169
  * Generated by orval 🍺
1385
1170
  * Do not edit manually.
@@ -1395,8 +1180,6 @@ type OrganizationMember = {
1395
1180
  updatedAt: string;
1396
1181
  userId: string;
1397
1182
  };
1398
- //#endregion
1399
- //#region src/gen/models/organization-team-member.d.ts
1400
1183
  /**
1401
1184
  * Generated by orval 🍺
1402
1185
  * Do not edit manually.
@@ -1410,8 +1193,6 @@ type OrganizationTeamMember = {
1410
1193
  memberId: string;
1411
1194
  teamId: string;
1412
1195
  };
1413
- //#endregion
1414
- //#region src/gen/models/refresh-token-request.d.ts
1415
1196
  /**
1416
1197
  * Generated by orval 🍺
1417
1198
  * Do not edit manually.
@@ -1422,8 +1203,6 @@ type OrganizationTeamMember = {
1422
1203
  type RefreshTokenRequest = {
1423
1204
  refreshToken: string;
1424
1205
  };
1425
- //#endregion
1426
- //#region src/gen/models/refresh-token-response.d.ts
1427
1206
  /**
1428
1207
  * Generated by orval 🍺
1429
1208
  * Do not edit manually.
@@ -1435,8 +1214,6 @@ type RefreshTokenResponse = {
1435
1214
  accessToken: string;
1436
1215
  refreshToken: string;
1437
1216
  };
1438
- //#endregion
1439
- //#region src/gen/models/remove-role-permission-response.d.ts
1440
1217
  /**
1441
1218
  * Generated by orval 🍺
1442
1219
  * Do not edit manually.
@@ -1447,8 +1224,6 @@ type RefreshTokenResponse = {
1447
1224
  type RemoveRolePermissionResponse = {
1448
1225
  message: string;
1449
1226
  };
1450
- //#endregion
1451
- //#region src/gen/models/remove-user-role-response.d.ts
1452
1227
  /**
1453
1228
  * Generated by orval 🍺
1454
1229
  * Do not edit manually.
@@ -1459,8 +1234,6 @@ type RemoveRolePermissionResponse = {
1459
1234
  type RemoveUserRoleResponse = {
1460
1235
  message: string;
1461
1236
  };
1462
- //#endregion
1463
- //#region src/gen/models/replace-role-permission-response.d.ts
1464
1237
  /**
1465
1238
  * Generated by orval 🍺
1466
1239
  * Do not edit manually.
@@ -1471,8 +1244,6 @@ type RemoveUserRoleResponse = {
1471
1244
  type ReplaceRolePermissionResponse = {
1472
1245
  message: string;
1473
1246
  };
1474
- //#endregion
1475
- //#region src/gen/models/replace-role-permissions-request.d.ts
1476
1247
  /**
1477
1248
  * Generated by orval 🍺
1478
1249
  * Do not edit manually.
@@ -1483,8 +1254,6 @@ type ReplaceRolePermissionResponse = {
1483
1254
  type ReplaceRolePermissionsRequest = {
1484
1255
  permissionIds: string[];
1485
1256
  };
1486
- //#endregion
1487
- //#region src/gen/models/replace-user-roles-request.d.ts
1488
1257
  /**
1489
1258
  * Generated by orval 🍺
1490
1259
  * Do not edit manually.
@@ -1495,8 +1264,6 @@ type ReplaceRolePermissionsRequest = {
1495
1264
  type ReplaceUserRolesRequest = {
1496
1265
  roleIds: string[];
1497
1266
  };
1498
- //#endregion
1499
- //#region src/gen/models/replace-user-roles-response.d.ts
1500
1267
  /**
1501
1268
  * Generated by orval 🍺
1502
1269
  * Do not edit manually.
@@ -1507,8 +1274,6 @@ type ReplaceUserRolesRequest = {
1507
1274
  type ReplaceUserRolesResponse = {
1508
1275
  message: string;
1509
1276
  };
1510
- //#endregion
1511
- //#region src/gen/models/request-email-change-request.d.ts
1512
1277
  /**
1513
1278
  * Generated by orval 🍺
1514
1279
  * Do not edit manually.
@@ -1521,8 +1286,6 @@ type RequestEmailChangeRequest = {
1521
1286
  callbackUrl?: string | null;
1522
1287
  newEmail: string;
1523
1288
  };
1524
- //#endregion
1525
- //#region src/gen/models/request-password-reset-request.d.ts
1526
1289
  /**
1527
1290
  * Generated by orval 🍺
1528
1291
  * Do not edit manually.
@@ -1535,8 +1298,6 @@ type RequestPasswordResetRequest = {
1535
1298
  callbackUrl?: string | null;
1536
1299
  email: string;
1537
1300
  };
1538
- //#endregion
1539
- //#region src/gen/models/revoke-session-request.d.ts
1540
1301
  /**
1541
1302
  * Generated by orval 🍺
1542
1303
  * Do not edit manually.
@@ -1548,19 +1309,13 @@ type RevokeSessionRequest = {
1548
1309
  /** @nullable */
1549
1310
  reason?: string | null;
1550
1311
  };
1551
- //#endregion
1552
- //#region src/gen/models/revoke-session-response.d.ts
1553
1312
  type RevokeSessionResponse = {
1554
1313
  state: AdminSessionState;
1555
1314
  };
1556
- //#endregion
1557
- //#region src/gen/models/role-details.d.ts
1558
1315
  type RoleDetails = {
1559
1316
  permissions: UserPermissionInfo[];
1560
1317
  role: Role;
1561
1318
  };
1562
- //#endregion
1563
- //#region src/gen/models/send-email-verification-request.d.ts
1564
1319
  /**
1565
1320
  * Generated by orval 🍺
1566
1321
  * Do not edit manually.
@@ -1572,8 +1327,6 @@ type SendEmailVerificationRequest = {
1572
1327
  /** @nullable */
1573
1328
  callbackUrl?: string | null;
1574
1329
  };
1575
- //#endregion
1576
- //#region src/gen/models/sign-in-request.d.ts
1577
1330
  /**
1578
1331
  * Generated by orval 🍺
1579
1332
  * Do not edit manually.
@@ -1587,14 +1340,10 @@ type SignInRequest = {
1587
1340
  email: string;
1588
1341
  password: string;
1589
1342
  };
1590
- //#endregion
1591
- //#region src/gen/models/sign-in-response.d.ts
1592
1343
  type SignInResponse = {
1593
1344
  session: Session;
1594
1345
  user: User;
1595
1346
  };
1596
- //#endregion
1597
- //#region src/gen/models/sign-out-request.d.ts
1598
1347
  /**
1599
1348
  * Generated by orval 🍺
1600
1349
  * Do not edit manually.
@@ -1608,8 +1357,6 @@ type SignOutRequest = {
1608
1357
  /** @nullable */
1609
1358
  signOutAll?: boolean | null;
1610
1359
  };
1611
- //#endregion
1612
- //#region src/gen/models/sign-out-response.d.ts
1613
1360
  /**
1614
1361
  * Generated by orval 🍺
1615
1362
  * Do not edit manually.
@@ -1620,8 +1367,6 @@ type SignOutRequest = {
1620
1367
  type SignOutResponse = {
1621
1368
  message: string;
1622
1369
  };
1623
- //#endregion
1624
- //#region src/gen/models/sign-up-request-metadata.d.ts
1625
1370
  /**
1626
1371
  * Generated by orval 🍺
1627
1372
  * Do not edit manually.
@@ -1635,8 +1380,6 @@ type SignOutResponse = {
1635
1380
  type SignUpRequestMetadata = {
1636
1381
  [key: string]: unknown;
1637
1382
  } | null;
1638
- //#endregion
1639
- //#region src/gen/models/sign-up-request.d.ts
1640
1383
  type SignUpRequest = {
1641
1384
  /** @nullable */
1642
1385
  callbackUrl?: string | null;
@@ -1648,14 +1391,10 @@ type SignUpRequest = {
1648
1391
  name: string;
1649
1392
  password: string;
1650
1393
  };
1651
- //#endregion
1652
- //#region src/gen/models/sign-up-response.d.ts
1653
1394
  type SignUpResponse = {
1654
1395
  session: Session;
1655
1396
  user: User;
1656
1397
  };
1657
- //#endregion
1658
- //#region src/gen/models/start-impersonation-request.d.ts
1659
1398
  /**
1660
1399
  * Generated by orval 🍺
1661
1400
  * Do not edit manually.
@@ -1669,13 +1408,9 @@ type StartImpersonationRequest = {
1669
1408
  reason: string;
1670
1409
  targetUserId: string;
1671
1410
  };
1672
- //#endregion
1673
- //#region src/gen/models/start-impersonation-response.d.ts
1674
1411
  type StartImpersonationResponse = {
1675
1412
  impersonation: Impersonation;
1676
1413
  };
1677
- //#endregion
1678
- //#region src/gen/models/stop-impersonation-response.d.ts
1679
1414
  /**
1680
1415
  * Generated by orval 🍺
1681
1416
  * Do not edit manually.
@@ -1686,13 +1421,9 @@ type StartImpersonationResponse = {
1686
1421
  type StopImpersonationResponse = {
1687
1422
  message: string;
1688
1423
  };
1689
- //#endregion
1690
- //#region src/gen/models/unban-user-response.d.ts
1691
1424
  type UnbanUserResponse = {
1692
1425
  state: AdminUserState;
1693
1426
  };
1694
- //#endregion
1695
- //#region src/gen/models/update-account-request.d.ts
1696
1427
  /**
1697
1428
  * Generated by orval 🍺
1698
1429
  * Do not edit manually.
@@ -1720,13 +1451,9 @@ type UpdateAccountRequest = {
1720
1451
  /** @nullable */
1721
1452
  scope?: string | null;
1722
1453
  };
1723
- //#endregion
1724
- //#region src/gen/models/update-account-response.d.ts
1725
1454
  type UpdateAccountResponse = {
1726
1455
  account: Account;
1727
1456
  };
1728
- //#endregion
1729
- //#region src/gen/models/update-api-key-request-metadata.d.ts
1730
1457
  /**
1731
1458
  * Generated by orval 🍺
1732
1459
  * Do not edit manually.
@@ -1740,8 +1467,6 @@ type UpdateAccountResponse = {
1740
1467
  type UpdateApiKeyRequestMetadata = {
1741
1468
  [key: string]: unknown;
1742
1469
  } | null;
1743
- //#endregion
1744
- //#region src/gen/models/update-api-key-request.d.ts
1745
1470
  type UpdateApiKeyRequest = {
1746
1471
  /** @nullable */
1747
1472
  enabled?: boolean | null;
@@ -1760,13 +1485,9 @@ type UpdateApiKeyRequest = {
1760
1485
  /** @nullable */
1761
1486
  rateLimitTimeWindow?: number | null;
1762
1487
  };
1763
- //#endregion
1764
- //#region src/gen/models/update-api-key-response.d.ts
1765
1488
  type UpdateApiKeyResponse = {
1766
1489
  apiKey: ApiKey;
1767
1490
  };
1768
- //#endregion
1769
- //#region src/gen/models/update-organization-member-request.d.ts
1770
1491
  /**
1771
1492
  * Generated by orval 🍺
1772
1493
  * Do not edit manually.
@@ -1777,8 +1498,6 @@ type UpdateApiKeyResponse = {
1777
1498
  type UpdateOrganizationMemberRequest = {
1778
1499
  role: string;
1779
1500
  };
1780
- //#endregion
1781
- //#region src/gen/models/update-organization-request-metadata.d.ts
1782
1501
  /**
1783
1502
  * Generated by orval 🍺
1784
1503
  * Do not edit manually.
@@ -1792,8 +1511,6 @@ type UpdateOrganizationMemberRequest = {
1792
1511
  type UpdateOrganizationRequestMetadata = {
1793
1512
  [key: string]: unknown;
1794
1513
  } | null;
1795
- //#endregion
1796
- //#region src/gen/models/update-organization-request.d.ts
1797
1514
  type UpdateOrganizationRequest = {
1798
1515
  /** @nullable */
1799
1516
  logo?: string | null;
@@ -1804,8 +1521,6 @@ type UpdateOrganizationRequest = {
1804
1521
  /** @nullable */
1805
1522
  slug?: string | null;
1806
1523
  };
1807
- //#endregion
1808
- //#region src/gen/models/update-organization-team-request-metadata.d.ts
1809
1524
  /**
1810
1525
  * Generated by orval 🍺
1811
1526
  * Do not edit manually.
@@ -1819,8 +1534,6 @@ type UpdateOrganizationRequest = {
1819
1534
  type UpdateOrganizationTeamRequestMetadata = {
1820
1535
  [key: string]: unknown;
1821
1536
  } | null;
1822
- //#endregion
1823
- //#region src/gen/models/update-organization-team-request.d.ts
1824
1537
  type UpdateOrganizationTeamRequest = {
1825
1538
  /** @nullable */
1826
1539
  description?: string | null;
@@ -1830,8 +1543,6 @@ type UpdateOrganizationTeamRequest = {
1830
1543
  /** @nullable */
1831
1544
  slug?: string | null;
1832
1545
  };
1833
- //#endregion
1834
- //#region src/gen/models/update-permission-request.d.ts
1835
1546
  /**
1836
1547
  * Generated by orval 🍺
1837
1548
  * Do not edit manually.
@@ -1843,13 +1554,9 @@ type UpdatePermissionRequest = {
1843
1554
  /** @nullable */
1844
1555
  description?: string | null;
1845
1556
  };
1846
- //#endregion
1847
- //#region src/gen/models/update-permission-response.d.ts
1848
1557
  type UpdatePermissionResponse = {
1849
1558
  permission: Permission;
1850
1559
  };
1851
- //#endregion
1852
- //#region src/gen/models/update-role-request.d.ts
1853
1560
  /**
1854
1561
  * Generated by orval 🍺
1855
1562
  * Do not edit manually.
@@ -1865,13 +1572,9 @@ type UpdateRoleRequest = {
1865
1572
  /** @nullable */
1866
1573
  weight?: number | null;
1867
1574
  };
1868
- //#endregion
1869
- //#region src/gen/models/update-role-response.d.ts
1870
1575
  type UpdateRoleResponse = {
1871
1576
  role: Role;
1872
1577
  };
1873
- //#endregion
1874
- //#region src/gen/models/update-user-request-metadata.d.ts
1875
1578
  /**
1876
1579
  * Generated by orval 🍺
1877
1580
  * Do not edit manually.
@@ -1885,8 +1588,6 @@ type UpdateRoleResponse = {
1885
1588
  type UpdateUserRequestMetadata = {
1886
1589
  [key: string]: unknown;
1887
1590
  } | null;
1888
- //#endregion
1889
- //#region src/gen/models/update-user-request.d.ts
1890
1591
  type UpdateUserRequest = {
1891
1592
  /** @nullable */
1892
1593
  email?: string | null;
@@ -1899,13 +1600,9 @@ type UpdateUserRequest = {
1899
1600
  /** @nullable */
1900
1601
  name?: string | null;
1901
1602
  };
1902
- //#endregion
1903
- //#region src/gen/models/update-user-response.d.ts
1904
1603
  type UpdateUserResponse = {
1905
1604
  user: User;
1906
1605
  };
1907
- //#endregion
1908
- //#region src/gen/models/upsert-session-state-request.d.ts
1909
1606
  /**
1910
1607
  * Generated by orval 🍺
1911
1608
  * Do not edit manually.
@@ -1924,13 +1621,9 @@ type UpsertSessionStateRequest = {
1924
1621
  /** @nullable */
1925
1622
  revokedReason?: string | null;
1926
1623
  };
1927
- //#endregion
1928
- //#region src/gen/models/upsert-session-state-response.d.ts
1929
1624
  type UpsertSessionStateResponse = {
1930
1625
  state: AdminSessionState;
1931
1626
  };
1932
- //#endregion
1933
- //#region src/gen/models/upsert-user-state-request.d.ts
1934
1627
  /**
1935
1628
  * Generated by orval 🍺
1936
1629
  * Do not edit manually.
@@ -1945,18 +1638,12 @@ type UpsertUserStateRequest = {
1945
1638
  /** @nullable */
1946
1639
  bannedUntil?: string | null;
1947
1640
  };
1948
- //#endregion
1949
- //#region src/gen/models/upsert-user-state-response.d.ts
1950
1641
  type UpsertUserStateResponse = {
1951
1642
  state: AdminUserState;
1952
1643
  };
1953
- //#endregion
1954
- //#region src/gen/models/user-accounts-response.d.ts
1955
1644
  type UserAccountsResponse = {
1956
1645
  accounts: Account[];
1957
1646
  };
1958
- //#endregion
1959
- //#region src/gen/models/user-role-info.d.ts
1960
1647
  /**
1961
1648
  * Generated by orval 🍺
1962
1649
  * Do not edit manually.
@@ -1977,15 +1664,11 @@ type UserRoleInfo = {
1977
1664
  roleName: string;
1978
1665
  roleWeight: number;
1979
1666
  };
1980
- //#endregion
1981
- //#region src/gen/models/users-page.d.ts
1982
1667
  type UsersPage = {
1983
1668
  /** @nullable */
1984
1669
  nextCursor?: string | null;
1985
1670
  users: User[];
1986
1671
  };
1987
- //#endregion
1988
- //#region src/gen/models/verify-api-key-request.d.ts
1989
1672
  /**
1990
1673
  * Generated by orval 🍺
1991
1674
  * Do not edit manually.
@@ -1996,13 +1679,9 @@ type UsersPage = {
1996
1679
  type VerifyApiKeyRequest = {
1997
1680
  key: string;
1998
1681
  };
1999
- //#endregion
2000
- //#region src/gen/models/verify-api-key-response.d.ts
2001
1682
  type VerifyApiKeyResponse = {
2002
1683
  apiKey: ApiKey;
2003
1684
  };
2004
- //#endregion
2005
- //#region src/gen/models/verify-backup-code-request.d.ts
2006
1685
  /**
2007
1686
  * Generated by orval 🍺
2008
1687
  * Do not edit manually.
@@ -2014,14 +1693,10 @@ type VerifyBackupCodeRequest = {
2014
1693
  code: string;
2015
1694
  trustDevice?: boolean;
2016
1695
  };
2017
- //#endregion
2018
- //#region src/gen/models/verify-backup-code-response.d.ts
2019
1696
  type VerifyBackupCodeResponse = {
2020
1697
  session: Session;
2021
1698
  user: User;
2022
1699
  };
2023
- //#endregion
2024
- //#region src/gen/models/verify-magic-link-params.d.ts
2025
1700
  /**
2026
1701
  * Generated by orval 🍺
2027
1702
  * Do not edit manually.
@@ -2033,8 +1708,6 @@ type VerifyMagicLinkParams = {
2033
1708
  token: string;
2034
1709
  callbackUrl?: string;
2035
1710
  };
2036
- //#endregion
2037
- //#region src/gen/models/verify-totp-request.d.ts
2038
1711
  /**
2039
1712
  * Generated by orval 🍺
2040
1713
  * Do not edit manually.
@@ -2046,129 +1719,12 @@ type VerifyTOTPRequest = {
2046
1719
  code: string;
2047
1720
  trustDevice?: boolean;
2048
1721
  };
2049
- //#endregion
2050
- //#region src/gen/models/verify-totp-response.d.ts
2051
1722
  type VerifyTOTPResponse = {
2052
1723
  session: Session;
2053
1724
  user: User;
2054
1725
  };
2055
- //#endregion
2056
- //#region src/gen/models/well-known-jwks-response.d.ts
2057
1726
  type WellKnownJWKSResponse = {
2058
1727
  keys: Jwk[];
2059
1728
  };
2060
- //#endregion
2061
- //#region src/types/http.d.ts
2062
- type FetchContext = {
2063
- url: string;
2064
- init: RequestInit;
2065
- /** internal metadata for plugins */
2066
- meta: {
2067
- retry?: boolean;
2068
- };
2069
- /** resolved cookies available during the request lifecycle */
2070
- cookies?: Record<string, string | undefined>;
2071
- };
2072
- type BeforeFetchHook = (ctx: FetchContext) => Promise<void> | void;
2073
- type AfterFetchHook = (ctx: FetchContext, res: Response) => Promise<"retry" | void> | "retry" | void;
2074
- //#endregion
2075
- //#region src/client.d.ts
2076
- declare class AuthulaClient {
2077
- readonly config: AuthulaClientConfig;
2078
- private readonly plugins;
2079
- private readonly beforeFetchHooks;
2080
- private readonly afterFetchHooks;
2081
- constructor(options: AuthulaClientOptions);
2082
- registerBeforeFetch(hook: BeforeFetchHook): void;
2083
- registerAfterFetch(hook: AfterFetchHook): void;
2084
- runBeforeFetch(ctx: FetchContext): Promise<void>;
2085
- runAfterFetch(ctx: FetchContext, res: Response): Promise<"retry" | undefined>;
2086
- getPlugin<T extends Plugin>(id: string): T | undefined;
2087
- getCookie(name: string): Promise<string | undefined>;
2088
- getAllCookies(): Promise<Record<string, string | undefined> | undefined>;
2089
- }
2090
- //#endregion
2091
- //#region src/types/plugins.d.ts
2092
- interface Plugin {
2093
- readonly id: string;
2094
- init(client: AuthulaClient): any;
2095
- }
2096
- //#endregion
2097
- //#region src/types/config.d.ts
2098
- type FetchOptions = {
2099
- /**
2100
- * Additional headers to include in every request made by the client
2101
- */
2102
- headers?: Record<string, string>;
2103
- /**
2104
- * The abort timeout in seconds
2105
- */
2106
- abortTimeout?: number;
2107
- };
2108
- type CookieAttributes = {
2109
- path?: string;
2110
- domain?: string;
2111
- expires?: Date;
2112
- maxAge?: number;
2113
- httpOnly?: boolean;
2114
- secure?: boolean;
2115
- sameSite?: "lax" | "strict" | "none";
2116
- };
2117
- interface CookieStore {
2118
- getAll(): {
2119
- name: string;
2120
- value: string;
2121
- }[];
2122
- set(name: string, value: string, options?: CookieAttributes): void;
2123
- }
2124
- type AuthulaClientConfig = {
2125
- /**
2126
- * The URL of your Authula server
2127
- * @example 'http://localhost:8080/api/auth'
2128
- */
2129
- url: string;
2130
- fetchOptions?: FetchOptions;
2131
- /**
2132
- * Optional cookie store for SSR environments.
2133
- * In the browser, cookies are handled automatically via document.cookie.
2134
- * In SSR (Next.js, Tanstack Start, etc.), provide a function that returns a CookieStore
2135
- * compatible with the framework's cookies API.
2136
- *
2137
- * @example Next.js
2138
- * cookies: () => import('next/headers').then(m => m.cookies())
2139
- */
2140
- cookies?: () => CookieStore | Promise<CookieStore>;
2141
- };
2142
- type AuthulaClientOptions = AuthulaClientConfig & {
2143
- /**
2144
- * The list of plugins to use
2145
- */
2146
- plugins: Array<Plugin>;
2147
- };
2148
- //#endregion
2149
- //#region src/mutators/custom-fetch.d.ts
2150
- declare class ApiError extends Error {
2151
- status: number;
2152
- data: any;
2153
- headers: Headers;
2154
- constructor(message: string, status: number, data: any, headers: Headers);
2155
- }
2156
- declare function customFetch<T>(url: string, options?: RequestInit & {
2157
- method?: string;
2158
- baseUrl?: string;
2159
- cookies?: () => CookieStore | Promise<CookieStore>;
2160
- onBeforeFetch?: (ctx: FetchContext) => Promise<void>;
2161
- onAfterFetch?: (ctx: FetchContext, res: Response) => Promise<"retry" | void>;
2162
- }): Promise<T>;
2163
- //#endregion
2164
- //#region src/sdk.d.ts
2165
- type InferPluginMethods<P> = P extends {
2166
- init: (client: any) => infer M;
2167
- } ? M : never;
2168
- type ClientWithPlugins<T extends readonly Plugin[]> = AuthulaClient & { [P in T[number] as P["id"]]: InferPluginMethods<P>; };
2169
- declare function createClient<const T extends readonly Plugin[]>(options: Omit<AuthulaClientOptions, "plugins"> & {
2170
- plugins: T;
2171
- }): ClientWithPlugins<T>;
2172
- //#endregion
2173
- 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 };
2174
- //# sourceMappingURL=index-DVhn7FFt.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