@absolutejs/auth 0.68.2 → 0.69.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,13 +7,14 @@ export declare const auth: <UserType>(configuration: AuthConfig<UserType>) => Pr
7
7
  unregisteredSession: import("./types").UnregisteredSessionRecord;
8
8
  };
9
9
  derive: ({
10
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
10
11
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
11
12
  readonly code: "Bad Request";
12
13
  readonly message: "Cookies are missing";
13
14
  } | {
14
15
  readonly code: "Unauthorized";
15
16
  readonly message: "User is not authenticated";
16
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
17
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
17
18
  } & {
18
19
  readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
19
20
  readonly code: "Unauthorized";
@@ -25,13 +26,14 @@ export declare const auth: <UserType>(configuration: AuthConfig<UserType>) => Pr
25
26
  message: "Agent is not authenticated" | "Insufficient agent scopes";
26
27
  }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
27
28
  }) | ({
29
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
28
30
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
29
31
  readonly code: "Bad Request";
30
32
  readonly message: "Cookies are missing";
31
33
  } | {
32
34
  readonly code: "Unauthorized";
33
35
  readonly message: "User is not authenticated";
34
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
36
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
35
37
  } & {
36
38
  readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
37
39
  readonly code: "Unauthorized";
@@ -69,13 +71,14 @@ export declare const auth: <UserType>(configuration: AuthConfig<UserType>) => Pr
69
71
  macroFn: {};
70
72
  parser: {};
71
73
  response: import("elysia/types").ExtractErrorFromHandle<{
74
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
72
75
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
73
76
  readonly code: "Bad Request";
74
77
  readonly message: "Cookies are missing";
75
78
  } | {
76
79
  readonly code: "Unauthorized";
77
80
  readonly message: "User is not authenticated";
78
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
81
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
79
82
  }>;
80
83
  } & ({
81
84
  schema: {};
@@ -144,13 +147,14 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
144
147
  unregisteredSession: import("./types").UnregisteredSessionRecord;
145
148
  };
146
149
  derive: ({
150
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
147
151
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
148
152
  readonly code: "Bad Request";
149
153
  readonly message: "Cookies are missing";
150
154
  } | {
151
155
  readonly code: "Unauthorized";
152
156
  readonly message: "User is not authenticated";
153
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
157
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
154
158
  } & {
155
159
  readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
156
160
  readonly code: "Unauthorized";
@@ -162,13 +166,14 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
162
166
  message: "Agent is not authenticated" | "Insufficient agent scopes";
163
167
  }) => AuthFailReturn_2 | Promise<AuthFailReturn_2>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn_2>>>;
164
168
  }) | ({
169
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
165
170
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
166
171
  readonly code: "Bad Request";
167
172
  readonly message: "Cookies are missing";
168
173
  } | {
169
174
  readonly code: "Unauthorized";
170
175
  readonly message: "User is not authenticated";
171
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
176
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
172
177
  } & {
173
178
  readonly requireRecentAuth: <AuthReturn, AuthFailReturn_1>(maxAgeMs: number, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
174
179
  readonly code: "Unauthorized";
@@ -206,13 +211,14 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
206
211
  macroFn: {};
207
212
  parser: {};
208
213
  response: import("elysia/types").ExtractErrorFromHandle<{
214
+ readonly authPrincipal: import("./principal").AuthPrincipal<UserType> | undefined;
209
215
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
210
216
  readonly code: "Bad Request";
211
217
  readonly message: "Cookies are missing";
212
218
  } | {
213
219
  readonly code: "Unauthorized";
214
220
  readonly message: "User is not authenticated";
215
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
221
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
216
222
  }>;
217
223
  } & ({
218
224
  schema: {};
@@ -718,15 +724,208 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
718
724
  } | {
719
725
  session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
720
726
  unregisteredSession: import("./types").UnregisteredSessionRecord;
727
+ } | {
728
+ session: import("./types").SessionRecord<UserType>;
729
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
730
+ } | {
731
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
732
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
733
+ } | {
734
+ session: import("./types").SessionRecord<UserType>;
735
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
736
+ } | {
737
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
738
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
739
+ } | {
740
+ session: import("./types").SessionRecord<UserType>;
741
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
742
+ } | {
743
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
744
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
745
+ } | {
746
+ session: import("./types").SessionRecord<UserType>;
747
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
748
+ } | {
749
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
750
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
751
+ } | {
752
+ session: import("./types").SessionRecord<UserType>;
753
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
754
+ } | {
755
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
756
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
757
+ } | {
758
+ session: import("./types").SessionRecord<UserType>;
759
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
760
+ } | {
761
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
762
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
763
+ } | {
764
+ session: import("./types").SessionRecord<UserType>;
765
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
766
+ } | {
767
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
768
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
769
+ } | {
770
+ session: import("./types").SessionRecord<UserType>;
771
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
772
+ } | {
773
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
774
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
775
+ } | {
776
+ session: import("./types").SessionRecord<UserType>;
777
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
778
+ } | {
779
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
780
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
781
+ } | {
782
+ session: import("./types").SessionRecord<UserType>;
783
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
784
+ } | {
785
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
786
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
787
+ } | {
788
+ session: import("./types").SessionRecord<UserType>;
789
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
790
+ } | {
791
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
792
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
793
+ } | {
794
+ session: import("./types").SessionRecord<UserType>;
795
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
796
+ } | {
797
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
798
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
799
+ } | {
800
+ session: import("./types").SessionRecord<UserType>;
801
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
802
+ } | {
803
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
804
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
805
+ } | {
806
+ session: import("./types").SessionRecord<UserType>;
807
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
808
+ } | {
809
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
810
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
811
+ } | {
812
+ session: import("./types").SessionRecord<UserType>;
813
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
814
+ } | {
815
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
816
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
817
+ } | {
818
+ session: import("./types").SessionRecord<UserType>;
819
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
820
+ } | {
821
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
822
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
823
+ } | {
824
+ session: import("./types").SessionRecord<UserType>;
825
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
826
+ } | {
827
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
828
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
829
+ } | {
830
+ session: import("./types").SessionRecord<UserType>;
831
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
832
+ } | {
833
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
834
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
835
+ } | {
836
+ session: import("./types").SessionRecord<UserType>;
837
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
838
+ } | {
839
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
840
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
841
+ } | {
842
+ session: import("./types").SessionRecord<UserType>;
843
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
844
+ } | {
845
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
846
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
847
+ } | {
848
+ session: import("./types").SessionRecord<UserType>;
849
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
850
+ } | {
851
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
852
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
853
+ } | {
854
+ session: import("./types").SessionRecord<UserType>;
855
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
856
+ } | {
857
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
858
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
859
+ } | {
860
+ session: import("./types").SessionRecord<UserType>;
861
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
862
+ } | {
863
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
864
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
865
+ } | {
866
+ session: import("./types").SessionRecord<UserType>;
867
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
868
+ } | {
869
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
870
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
871
+ } | {
872
+ session: import("./types").SessionRecord<UserType>;
873
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
874
+ } | {
875
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
876
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
877
+ } | {
878
+ session: import("./types").SessionRecord<UserType>;
879
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
880
+ } | {
881
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
882
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
883
+ } | {
884
+ session: import("./types").SessionRecord<UserType>;
885
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
886
+ } | {
887
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
888
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
889
+ } | {
890
+ session: import("./types").SessionRecord<UserType>;
891
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
892
+ } | {
893
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
894
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
895
+ } | {
896
+ session: import("./types").SessionRecord<UserType>;
897
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
898
+ } | {
899
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
900
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
901
+ } | {
902
+ session: import("./types").SessionRecord<UserType>;
903
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
904
+ } | {
905
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
906
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
907
+ } | {
908
+ session: import("./types").SessionRecord<UserType>;
909
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
910
+ } | {
911
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
912
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
913
+ } | {
914
+ session: import("./types").SessionRecord<UserType>;
915
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
916
+ } | {
917
+ session: import("./types").SessionRecord<UserType> & import("./types").SessionRecord<import(".").AuthHtmxUser>;
918
+ unregisteredSession: import("./types").UnregisteredSessionRecord;
721
919
  };
722
920
  derive: {} | {
921
+ readonly authPrincipal: import("./principal").AuthPrincipal<import(".").AuthHtmxUser> | undefined;
723
922
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: import(".").AuthHtmxUser) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
724
923
  readonly code: "Bad Request";
725
924
  readonly message: "Cookies are missing";
726
925
  } | {
727
926
  readonly code: "Unauthorized";
728
927
  readonly message: "User is not authenticated";
729
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
928
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
730
929
  };
731
930
  }, {
732
931
  typebox: {};
@@ -750,13 +949,14 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
750
949
  macroFn: {};
751
950
  parser: {};
752
951
  response: import("elysia/types").ExtractErrorFromHandle<{
952
+ readonly authPrincipal: import("./principal").AuthPrincipal<import(".").AuthHtmxUser> | undefined;
753
953
  readonly protectRoute: <AuthReturn, AuthFailReturn = never>(handleAuth: (user: import(".").AuthHtmxUser) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
754
954
  readonly code: "Bad Request";
755
955
  readonly message: "Cookies are missing";
756
956
  } | {
757
957
  readonly code: "Unauthorized";
758
958
  readonly message: "User is not authenticated";
759
- }) => AuthFailReturn) | undefined) => Promise<import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn>>;
959
+ }) => AuthFailReturn) | undefined) => import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | AuthReturn | Promise<AuthReturn> | NonNullable<AuthFailReturn>;
760
960
  }>;
761
961
  } & {
762
962
  schema: {};
@@ -3229,9 +3429,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3229
3429
  query: unknown;
3230
3430
  headers: unknown;
3231
3431
  response: {
3232
- 400: "Cookies are missing";
3233
- 401: "User is not authenticated";
3234
- 200: Response;
3432
+ 200: {};
3235
3433
  422: {
3236
3434
  type: "validation";
3237
3435
  title: "Validation Error";
@@ -3260,9 +3458,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3260
3458
  query: unknown;
3261
3459
  headers: unknown;
3262
3460
  response: {
3263
- 400: "Cookies are missing";
3264
- 401: "User is not authenticated";
3265
- 200: Response;
3461
+ 200: {};
3266
3462
  422: {
3267
3463
  type: "validation";
3268
3464
  title: "Validation Error";
@@ -3292,9 +3488,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3292
3488
  query: unknown;
3293
3489
  headers: unknown;
3294
3490
  response: {
3295
- 400: "Cookies are missing";
3296
- 401: "User is not authenticated";
3297
- 200: Response;
3491
+ 200: {};
3298
3492
  422: {
3299
3493
  type: "validation";
3300
3494
  title: "Validation Error";
@@ -3323,9 +3517,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3323
3517
  query: unknown;
3324
3518
  headers: unknown;
3325
3519
  response: {
3326
- 400: "Cookies are missing";
3327
- 401: "User is not authenticated";
3328
- 200: Response;
3520
+ 200: {};
3329
3521
  422: {
3330
3522
  type: "validation";
3331
3523
  title: "Validation Error";
@@ -3354,9 +3546,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3354
3546
  query: unknown;
3355
3547
  headers: unknown;
3356
3548
  response: {
3357
- 400: "Cookies are missing";
3358
- 401: "User is not authenticated";
3359
- 200: Response;
3549
+ 200: {};
3360
3550
  422: {
3361
3551
  type: "validation";
3362
3552
  title: "Validation Error";
@@ -3413,9 +3603,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3413
3603
  query: unknown;
3414
3604
  headers: unknown;
3415
3605
  response: {
3416
- 400: "Cookies are missing";
3417
- 401: "User is not authenticated";
3418
- 200: Response;
3606
+ 200: {};
3419
3607
  422: {
3420
3608
  type: "validation";
3421
3609
  title: "Validation Error";
@@ -3446,9 +3634,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3446
3634
  query: unknown;
3447
3635
  headers: unknown;
3448
3636
  response: {
3449
- 400: "Cookies are missing";
3450
- 401: "User is not authenticated";
3451
- 200: Response;
3637
+ 200: {};
3452
3638
  422: {
3453
3639
  type: "validation";
3454
3640
  title: "Validation Error";
@@ -3500,9 +3686,7 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3500
3686
  query: unknown;
3501
3687
  headers: unknown;
3502
3688
  response: {
3503
- 400: "Cookies are missing";
3504
- 401: "User is not authenticated";
3505
- 200: Response;
3689
+ 200: {};
3506
3690
  422: {
3507
3691
  type: "validation";
3508
3692
  title: "Validation Error";
@@ -3637,10 +3821,13 @@ export declare const createAuthApplications: <UserType>(configuration: AuthConfi
3637
3821
  }>;
3638
3822
  }>;
3639
3823
  export * from './actions';
3824
+ export { consumeSocketTicket, issueSocketTicket } from './oidc/socketTickets';
3825
+ export { ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV, parseAbsoluteNativeAuthClients, withAbsoluteNativeAuthClients, type AbsoluteNativeAuthClient } from './oidc/nativeClients';
3640
3826
  export type AuthApplications<UserType> = Awaited<ReturnType<typeof createAuthApplications<UserType>>>;
3641
3827
  export { createAuthContext } from './authContext';
3642
3828
  export type { AuthInstance } from './authContext';
3643
3829
  export * from './types';
3830
+ export * from './principal';
3644
3831
  export * from './typebox';
3645
3832
  export * from './vault/config';
3646
3833
  export * from './vault/types';
@@ -3788,12 +3975,12 @@ export { CLIENT_ASSERTION_TYPE, verifyClientAssertion, verifyJwtSignedByClient }
3788
3975
  export { parseSignedRequestObject } from './oidc/jar';
3789
3976
  export type { JarParseResult } from './oidc/jar';
3790
3977
  export { computeCertThumbprint, extractRfc9440ClientCert, resolveClientCert, verifyCertificateBoundToken } from './oidc/mtls';
3791
- export { createInMemoryAuthorizationCodeStore, createInMemoryBackchannelAuthStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore, createInMemoryPushedAuthorizationRequestStore } from './oidc/inMemoryStores';
3978
+ export { createInMemoryAuthorizationCodeStore, createInMemoryBackchannelAuthStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore, createInMemoryPushedAuthorizationRequestStore, createInMemorySocketTicketStore } from './oidc/inMemoryStores';
3792
3979
  export { consumePushedRequest, pushAuthorizationRequest, DEFAULT_PAR_TTL_MS, REQUEST_URI_PREFIX } from './oidc/par';
3793
3980
  export { fetchUserInfo, readUserInfoBearer, userInfoChallengeHeader } from './oidc/userinfo';
3794
3981
  export type { UserInfoResult } from './oidc/userinfo';
3795
3982
  export { fanOutBackchannelLogout, mintLogoutToken, resolvePostLogoutRedirect, verifyIdTokenHint } from './oidc/logout';
3796
- export { createNeonAuthorizationCodeStore, createNeonBackchannelAuthStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createNeonPushedAuthorizationRequestStore, createPostgresAuthorizationCodeStore, createPostgresBackchannelAuthStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, createPostgresPushedAuthorizationRequestStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthBackchannelAuthRequestsTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthPushedAuthorizationRequestsTable, oauthRefreshTokensTable } from './oidc/postgresStores';
3983
+ export { createNeonAuthorizationCodeStore, createNeonBackchannelAuthStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createNeonPushedAuthorizationRequestStore, createNeonSocketTicketStore, createPostgresAuthorizationCodeStore, createPostgresBackchannelAuthStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, createPostgresPushedAuthorizationRequestStore, createPostgresSocketTicketStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthBackchannelAuthRequestsTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthPushedAuthorizationRequestsTable, oauthRefreshTokensTable, oauthSocketTicketsTable } from './oidc/postgresStores';
3797
3984
  export { deleteRegisteredClient, getRegisteredClient, registerClient, updateRegisteredClient, type ClientRegistrationDecision, type ClientRegistrationMetadata, type OnClientRegistration, type RegisterClientResult } from './oidc/registration';
3798
3985
  export * from './adaptive/config';
3799
3986
  export * from './adaptive/fingerprint';