@absolutejs/auth 0.29.0-beta.2 → 0.29.0-beta.3

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
@@ -12452,9 +12452,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12452
12452
  query: unknown;
12453
12453
  headers: unknown;
12454
12454
  response: {
12455
- 200: Response;
12456
12455
  400: "Cookies are missing";
12457
12456
  401: "No auth provider found" | "No user session id found";
12457
+ 200: Response;
12458
12458
  422: {
12459
12459
  type: "validation";
12460
12460
  on: string;
@@ -12476,9 +12476,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12476
12476
  query: unknown;
12477
12477
  headers: unknown;
12478
12478
  response: {
12479
- 200: Response;
12480
12479
  400: "Cookies are missing" | "Invalid provider" | "Session has no access token to revoke";
12481
12480
  401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
12481
+ 501: "Provider does not support revocation";
12482
+ 200: Response;
12482
12483
  422: {
12483
12484
  type: "validation";
12484
12485
  on: string;
@@ -12489,7 +12490,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12489
12490
  expected?: string;
12490
12491
  };
12491
12492
  500: "Failed to revoke token";
12492
- 501: "Provider does not support revocation";
12493
12493
  };
12494
12494
  };
12495
12495
  };
@@ -12501,10 +12501,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12501
12501
  query: unknown;
12502
12502
  headers: unknown;
12503
12503
  response: {
12504
+ 400: "Cookies are missing";
12504
12505
  200: {
12505
12506
  user: NonNullable<UserType> | null;
12506
12507
  };
12507
- 400: "Cookies are missing";
12508
12508
  422: {
12509
12509
  type: "validation";
12510
12510
  on: string;
@@ -12526,9 +12526,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12526
12526
  query: unknown;
12527
12527
  headers: unknown;
12528
12528
  response: {
12529
- 200: Response;
12530
12529
  400: "Cookies are missing" | "Invalid provider" | "No refresh token found";
12531
12530
  401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "No user session found";
12531
+ 501: "Provider is not refreshable";
12532
+ 200: Response;
12532
12533
  422: {
12533
12534
  type: "validation";
12534
12535
  on: string;
@@ -12539,7 +12540,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12539
12540
  expected?: string;
12540
12541
  };
12541
12542
  500: "Failed to refresh token";
12542
- 501: "Provider is not refreshable";
12543
12543
  };
12544
12544
  };
12545
12545
  };
@@ -12557,9 +12557,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12557
12557
  };
12558
12558
  headers: unknown;
12559
12559
  response: {
12560
- 200: Response;
12561
12560
  400: "Cookies are missing" | "Provider is required";
12562
12561
  401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found";
12562
+ 200: Response;
12563
12563
  422: {
12564
12564
  type: "validation";
12565
12565
  on: string;
@@ -12589,9 +12589,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12589
12589
  };
12590
12590
  headers: unknown;
12591
12591
  response: {
12592
- 200: Response;
12593
12592
  400: "Cookies are missing" | "Provider is required";
12594
12593
  401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found";
12594
+ 200: Response;
12595
12595
  422: {
12596
12596
  type: "validation";
12597
12597
  on: string;
@@ -12627,9 +12627,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12627
12627
  query: unknown;
12628
12628
  headers: unknown;
12629
12629
  response: {
12630
- 200: Response;
12631
12630
  400: "Cookies are missing" | "Session has no access token to fetch a profile";
12632
12631
  401: "Provider is required" | "Client provider not found" | "Client variant is required" | "Client variant not found" | "No auth provider found" | "Invalid provider" | "No user session found";
12632
+ 200: Response;
12633
12633
  422: {
12634
12634
  type: "validation";
12635
12635
  on: string;
@@ -12668,10 +12668,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12668
12668
  query: unknown;
12669
12669
  headers: unknown;
12670
12670
  response: {
12671
+ 400: "Invalid or expired verification token";
12671
12672
  200: {
12672
12673
  readonly status: "email_verified";
12673
12674
  };
12674
- 400: "Invalid or expired verification token";
12675
12675
  422: {
12676
12676
  type: "validation";
12677
12677
  on: string;
@@ -12722,16 +12722,16 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12722
12722
  query: unknown;
12723
12723
  headers: unknown;
12724
12724
  response: {
12725
+ 401: "Invalid email or password";
12726
+ 403: {
12727
+ readonly status: "email_not_verified";
12728
+ };
12725
12729
  200: {
12726
12730
  readonly status: "mfa_required";
12727
12731
  } | {
12728
12732
  readonly passwordCompromised: boolean;
12729
12733
  readonly status: "authenticated";
12730
12734
  };
12731
- 401: "Invalid email or password";
12732
- 403: {
12733
- readonly status: "email_not_verified";
12734
- };
12735
12735
  422: {
12736
12736
  type: "validation";
12737
12737
  on: string;
@@ -12786,13 +12786,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12786
12786
  query: unknown;
12787
12787
  headers: unknown;
12788
12788
  response: {
12789
- 200: {
12790
- readonly status: "password_reset";
12791
- };
12792
12789
  400: "Invalid or expired reset token" | {
12793
12790
  readonly message: "Password does not meet the policy";
12794
12791
  readonly violations: import(".").PasswordPolicyViolation[];
12795
12792
  };
12793
+ 200: {
12794
+ readonly status: "password_reset";
12795
+ };
12796
12796
  422: {
12797
12797
  type: "validation";
12798
12798
  on: string;
@@ -12813,11 +12813,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12813
12813
  query: unknown;
12814
12814
  headers: unknown;
12815
12815
  response: {
12816
+ 401: "Authentication required";
12816
12817
  200: {
12817
12818
  readonly secret: string;
12818
12819
  readonly uri: string;
12819
12820
  };
12820
- 401: "Authentication required";
12821
12821
  422: {
12822
12822
  type: "validation";
12823
12823
  on: string;
@@ -12840,11 +12840,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12840
12840
  query: unknown;
12841
12841
  headers: unknown;
12842
12842
  response: {
12843
+ 400: "No TOTP enrollment in progress" | "Invalid TOTP code";
12844
+ 401: "Authentication required";
12843
12845
  200: {
12844
12846
  readonly backupCodes: string[];
12845
12847
  };
12846
- 400: "No TOTP enrollment in progress" | "Invalid TOTP code";
12847
- 401: "Authentication required";
12848
12848
  422: {
12849
12849
  type: "validation";
12850
12850
  on: string;
@@ -12867,10 +12867,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12867
12867
  query: unknown;
12868
12868
  headers: unknown;
12869
12869
  response: {
12870
+ 401: "No MFA challenge in progress" | "Invalid MFA code";
12870
12871
  200: {
12871
12872
  readonly status: "authenticated";
12872
12873
  };
12873
- 401: "No MFA challenge in progress" | "Invalid MFA code";
12874
12874
  422: {
12875
12875
  type: "validation";
12876
12876
  on: string;
@@ -12891,6 +12891,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12891
12891
  query: unknown;
12892
12892
  headers: unknown;
12893
12893
  response: {
12894
+ 401: "Authentication required";
12895
+ 501: "Session management requires an authSessionStore";
12894
12896
  200: {
12895
12897
  readonly sessions: {
12896
12898
  authenticatedAt?: number;
@@ -12899,7 +12901,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12899
12901
  id: import("./types").UserSessionId;
12900
12902
  }[];
12901
12903
  };
12902
- 401: "Authentication required";
12903
12904
  422: {
12904
12905
  type: "validation";
12905
12906
  on: string;
@@ -12909,7 +12910,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12909
12910
  property?: string;
12910
12911
  expected?: string;
12911
12912
  };
12912
- 501: "Session management requires an authSessionStore";
12913
12913
  };
12914
12914
  };
12915
12915
  };
@@ -12924,12 +12924,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12924
12924
  query: unknown;
12925
12925
  headers: unknown;
12926
12926
  response: {
12927
- 200: {
12928
- readonly revoked: `${string}-${string}-${string}-${string}-${string}`;
12929
- };
12930
12927
  400: "Invalid session id";
12931
12928
  401: "Authentication required";
12929
+ 501: "Session management requires an authSessionStore";
12932
12930
  404: "Session not found";
12931
+ 200: {
12932
+ readonly revoked: `${string}-${string}-${string}-${string}-${string}`;
12933
+ };
12933
12934
  422: {
12934
12935
  type: "validation";
12935
12936
  on: string;
@@ -12939,7 +12940,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12939
12940
  property?: string;
12940
12941
  expected?: string;
12941
12942
  };
12942
- 501: "Session management requires an authSessionStore";
12943
12943
  };
12944
12944
  };
12945
12945
  };
@@ -12954,8 +12954,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12954
12954
  query: unknown;
12955
12955
  headers: unknown;
12956
12956
  response: {
12957
- 200: Response;
12958
12957
  404: "No OIDC connection is configured for this organization";
12958
+ 200: Response;
12959
12959
  422: {
12960
12960
  type: "validation";
12961
12961
  on: string;
@@ -12981,9 +12981,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
12981
12981
  };
12982
12982
  headers: unknown;
12983
12983
  response: {
12984
- 200: Response;
12985
12984
  400: "SSO session cookies are missing" | "Invalid SSO callback request" | "SSO organization mismatch" | "OIDC token response is missing an id_token";
12986
12985
  404: "No OIDC connection is configured for this organization";
12986
+ 200: Response;
12987
12987
  422: {
12988
12988
  type: "validation";
12989
12989
  on: string;
@@ -13007,8 +13007,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13007
13007
  query: unknown;
13008
13008
  headers: unknown;
13009
13009
  response: {
13010
- 200: Response;
13011
13010
  404: "No SAML connection is configured for this organization";
13011
+ 200: Response;
13012
13012
  422: {
13013
13013
  type: "validation";
13014
13014
  on: string;
@@ -13034,8 +13034,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13034
13034
  query: unknown;
13035
13035
  headers: unknown;
13036
13036
  response: {
13037
- 200: Response;
13038
13037
  404: "No SAML connection is configured for this organization";
13038
+ 200: Response;
13039
13039
  422: {
13040
13040
  type: "validation";
13041
13041
  on: string;
@@ -13059,8 +13059,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13059
13059
  query: unknown;
13060
13060
  headers: unknown;
13061
13061
  response: {
13062
- 200: Response;
13063
13062
  404: "No SAML connection is configured for this organization";
13063
+ 200: Response;
13064
13064
  422: {
13065
13065
  type: "validation";
13066
13066
  on: string;
@@ -13110,9 +13110,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13110
13110
  };
13111
13111
  headers: unknown;
13112
13112
  response: {
13113
- 200: Response;
13114
13113
  400: "Missing SAMLRequest or SAMLResponse" | "Invalid SAML LogoutRequest";
13114
+ 501: "SAML Single Logout is not configured";
13115
13115
  404: "No SAML connection is configured for this organization";
13116
+ 200: Response;
13116
13117
  422: {
13117
13118
  type: "validation";
13118
13119
  on: string;
@@ -13123,7 +13124,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13123
13124
  expected?: string;
13124
13125
  };
13125
13126
  500: "SAML logout failed";
13126
- 501: "SAML Single Logout is not configured";
13127
13127
  };
13128
13128
  };
13129
13129
  };
@@ -13137,9 +13137,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13137
13137
  };
13138
13138
  headers: unknown;
13139
13139
  response: {
13140
- 200: Response;
13141
13140
  400: "An \"email\" query parameter is required" | "A valid email address is required";
13142
13141
  404: "No SSO organization is configured for this email domain" | "No SSO connection is configured for this organization";
13142
+ 200: Response;
13143
13143
  422: {
13144
13144
  type: "validation";
13145
13145
  on: string;
@@ -13670,6 +13670,126 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13670
13670
  };
13671
13671
  };
13672
13672
  };
13673
+ } & {
13674
+ [x: string]: {
13675
+ post: {
13676
+ body: {
13677
+ jwks?: any;
13678
+ scope?: string | undefined;
13679
+ backchannel_logout_uri?: string | undefined;
13680
+ client_name?: string | undefined;
13681
+ jwks_uri?: string | undefined;
13682
+ post_logout_redirect_uris?: string[] | undefined;
13683
+ redirect_uris?: string[] | undefined;
13684
+ };
13685
+ params: {};
13686
+ query: unknown;
13687
+ headers: {
13688
+ authorization?: string | undefined;
13689
+ };
13690
+ response: {
13691
+ 200: Response;
13692
+ 422: {
13693
+ type: "validation";
13694
+ on: string;
13695
+ summary?: string;
13696
+ message?: string;
13697
+ found?: unknown;
13698
+ property?: string;
13699
+ expected?: string;
13700
+ };
13701
+ };
13702
+ };
13703
+ };
13704
+ } & {
13705
+ [x: string]: {
13706
+ ":clientId": {
13707
+ get: {
13708
+ body: unknown;
13709
+ params: {
13710
+ clientId: string;
13711
+ };
13712
+ query: unknown;
13713
+ headers: {
13714
+ authorization?: string | undefined;
13715
+ };
13716
+ response: {
13717
+ 200: Response;
13718
+ 422: {
13719
+ type: "validation";
13720
+ on: string;
13721
+ summary?: string;
13722
+ message?: string;
13723
+ found?: unknown;
13724
+ property?: string;
13725
+ expected?: string;
13726
+ };
13727
+ };
13728
+ };
13729
+ };
13730
+ };
13731
+ } & {
13732
+ [x: string]: {
13733
+ ":clientId": {
13734
+ put: {
13735
+ body: {
13736
+ jwks?: any;
13737
+ scope?: string | undefined;
13738
+ backchannel_logout_uri?: string | undefined;
13739
+ client_name?: string | undefined;
13740
+ jwks_uri?: string | undefined;
13741
+ post_logout_redirect_uris?: string[] | undefined;
13742
+ redirect_uris?: string[] | undefined;
13743
+ };
13744
+ params: {
13745
+ clientId: string;
13746
+ };
13747
+ query: unknown;
13748
+ headers: {
13749
+ authorization?: string | undefined;
13750
+ };
13751
+ response: {
13752
+ 200: Response;
13753
+ 422: {
13754
+ type: "validation";
13755
+ on: string;
13756
+ summary?: string;
13757
+ message?: string;
13758
+ found?: unknown;
13759
+ property?: string;
13760
+ expected?: string;
13761
+ };
13762
+ };
13763
+ };
13764
+ };
13765
+ };
13766
+ } & {
13767
+ [x: string]: {
13768
+ ":clientId": {
13769
+ delete: {
13770
+ body: unknown;
13771
+ params: {
13772
+ clientId: string;
13773
+ };
13774
+ query: unknown;
13775
+ headers: {
13776
+ authorization?: string | undefined;
13777
+ };
13778
+ response: {
13779
+ 200: Response;
13780
+ 422: {
13781
+ type: "validation";
13782
+ on: string;
13783
+ summary?: string;
13784
+ message?: string;
13785
+ found?: unknown;
13786
+ property?: string;
13787
+ expected?: string;
13788
+ };
13789
+ };
13790
+ };
13791
+ };
13792
+ };
13673
13793
  } & {
13674
13794
  [x: string]: {
13675
13795
  get: {
@@ -13714,13 +13834,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13714
13834
  query: unknown;
13715
13835
  headers: unknown;
13716
13836
  response: {
13837
+ 401: "Authentication required";
13717
13838
  200: {
13718
13839
  readonly organizations: {
13719
13840
  membership: import(".").OrganizationMembership;
13720
13841
  organization: import(".").Organization | undefined;
13721
13842
  }[];
13722
13843
  };
13723
- 401: "Authentication required";
13724
13844
  422: {
13725
13845
  type: "validation";
13726
13846
  on: string;
@@ -13744,11 +13864,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13744
13864
  query: unknown;
13745
13865
  headers: unknown;
13746
13866
  response: {
13867
+ 401: "Authentication required";
13868
+ 403: "Cannot create organizations";
13747
13869
  200: {
13748
13870
  readonly organization: import(".").Organization;
13749
13871
  };
13750
- 401: "Authentication required";
13751
- 403: "Cannot create organizations";
13752
13872
  422: {
13753
13873
  type: "validation";
13754
13874
  on: string;
@@ -13776,12 +13896,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13776
13896
  query: unknown;
13777
13897
  headers: unknown;
13778
13898
  response: {
13899
+ 401: "Authentication required";
13900
+ 403: "Cannot manage members";
13779
13901
  200: {
13780
13902
  readonly invitationId: string;
13781
13903
  readonly token: string;
13782
13904
  };
13783
- 401: "Authentication required";
13784
- 403: "Cannot manage members";
13785
13905
  422: {
13786
13906
  type: "validation";
13787
13907
  on: string;
@@ -13808,6 +13928,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13808
13928
  query: unknown;
13809
13929
  headers: unknown;
13810
13930
  response: {
13931
+ 401: "Authentication required";
13932
+ 403: "Cannot manage members";
13811
13933
  200: {
13812
13934
  readonly invitations: {
13813
13935
  email: string;
@@ -13817,8 +13939,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13817
13939
  state: import(".").InvitationState;
13818
13940
  }[];
13819
13941
  };
13820
- 401: "Authentication required";
13821
- 403: "Cannot manage members";
13822
13942
  422: {
13823
13943
  type: "validation";
13824
13944
  on: string;
@@ -13847,12 +13967,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13847
13967
  query: unknown;
13848
13968
  headers: unknown;
13849
13969
  response: {
13850
- 200: {
13851
- readonly revoked: string;
13852
- };
13853
13970
  401: "Authentication required";
13854
13971
  403: "Cannot manage members";
13855
13972
  404: "Invitation not found";
13973
+ 200: {
13974
+ readonly revoked: string;
13975
+ };
13856
13976
  422: {
13857
13977
  type: "validation";
13858
13978
  on: string;
@@ -13880,12 +14000,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13880
14000
  query: unknown;
13881
14001
  headers: unknown;
13882
14002
  response: {
14003
+ 400: "Invalid or expired invitation";
14004
+ 401: "Authentication required";
13883
14005
  200: {
13884
14006
  readonly organizationId: string;
13885
14007
  readonly roles: string[];
13886
14008
  };
13887
- 400: "Invalid or expired invitation";
13888
- 401: "Authentication required";
13889
14009
  422: {
13890
14010
  type: "validation";
13891
14011
  on: string;
@@ -13912,11 +14032,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13912
14032
  query: unknown;
13913
14033
  headers: unknown;
13914
14034
  response: {
14035
+ 401: "Authentication required";
14036
+ 403: "Not a member";
13915
14037
  200: {
13916
14038
  readonly members: import(".").OrganizationMembership[];
13917
14039
  };
13918
- 401: "Authentication required";
13919
- 403: "Not a member";
13920
14040
  422: {
13921
14041
  type: "validation";
13922
14042
  on: string;
@@ -13945,11 +14065,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13945
14065
  query: unknown;
13946
14066
  headers: unknown;
13947
14067
  response: {
14068
+ 401: "Authentication required";
14069
+ 403: "Cannot manage members";
13948
14070
  200: {
13949
14071
  readonly removed: string;
13950
14072
  };
13951
- 401: "Authentication required";
13952
- 403: "Cannot manage members";
13953
14073
  422: {
13954
14074
  type: "validation";
13955
14075
  on: string;
@@ -13976,11 +14096,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13976
14096
  query: unknown;
13977
14097
  headers: unknown;
13978
14098
  response: {
14099
+ 401: "Authentication required";
14100
+ 403: "Cannot manage roles";
13979
14101
  200: {
13980
14102
  readonly roles: readonly import(".").Role[];
13981
14103
  };
13982
- 401: "Authentication required";
13983
- 403: "Cannot manage roles";
13984
14104
  422: {
13985
14105
  type: "validation";
13986
14106
  on: string;
@@ -14010,12 +14130,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14010
14130
  query: unknown;
14011
14131
  headers: unknown;
14012
14132
  response: {
14013
- 200: {
14014
- readonly roles: string[];
14015
- };
14016
14133
  401: "Authentication required";
14017
14134
  403: "Cannot manage roles";
14018
14135
  404: "Membership not found";
14136
+ 200: {
14137
+ readonly roles: string[];
14138
+ };
14019
14139
  422: {
14020
14140
  type: "validation";
14021
14141
  on: string;
@@ -14040,6 +14160,7 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14040
14160
  query: unknown;
14041
14161
  headers: unknown;
14042
14162
  response: {
14163
+ 401: "Invalid or expired setup link";
14043
14164
  200: {
14044
14165
  readonly capabilities: import(".").SetupCapability[];
14045
14166
  readonly configured: {
@@ -14060,7 +14181,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14060
14181
  baseUrl: string;
14061
14182
  } | undefined;
14062
14183
  };
14063
- 401: "Invalid or expired setup link";
14064
14184
  };
14065
14185
  };
14066
14186
  };
@@ -14080,12 +14200,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14080
14200
  query: unknown;
14081
14201
  headers: unknown;
14082
14202
  response: {
14203
+ 401: "Invalid or expired setup link";
14204
+ 403: "This setup link cannot configure SAML";
14205
+ 501: "SSO is not configured";
14083
14206
  200: {
14084
14207
  readonly configured: true;
14085
14208
  readonly type: "saml";
14086
14209
  };
14087
- 401: "Invalid or expired setup link";
14088
- 403: "This setup link cannot configure SAML";
14089
14210
  422: {
14090
14211
  type: "validation";
14091
14212
  on: string;
@@ -14095,7 +14216,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14095
14216
  property?: string;
14096
14217
  expected?: string;
14097
14218
  };
14098
- 501: "SSO is not configured";
14099
14219
  };
14100
14220
  };
14101
14221
  };
@@ -14117,12 +14237,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14117
14237
  query: unknown;
14118
14238
  headers: unknown;
14119
14239
  response: {
14240
+ 401: "Invalid or expired setup link";
14241
+ 403: "This setup link cannot configure OIDC";
14242
+ 501: "SSO is not configured";
14120
14243
  200: {
14121
14244
  readonly configured: true;
14122
14245
  readonly type: "oidc";
14123
14246
  };
14124
- 401: "Invalid or expired setup link";
14125
- 403: "This setup link cannot configure OIDC";
14126
14247
  422: {
14127
14248
  type: "validation";
14128
14249
  on: string;
@@ -14132,7 +14253,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14132
14253
  property?: string;
14133
14254
  expected?: string;
14134
14255
  };
14135
- 501: "SSO is not configured";
14136
14256
  };
14137
14257
  };
14138
14258
  };
@@ -14148,14 +14268,14 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14148
14268
  query: unknown;
14149
14269
  headers: unknown;
14150
14270
  response: {
14271
+ 401: "Invalid or expired setup link";
14272
+ 403: "This setup link cannot configure SCIM";
14273
+ 501: "SCIM is not configured";
14151
14274
  200: {
14152
14275
  readonly baseUrl: `${string}/${string}`;
14153
14276
  readonly token: string;
14154
14277
  readonly tokenId: string;
14155
14278
  };
14156
- 401: "Invalid or expired setup link";
14157
- 403: "This setup link cannot configure SCIM";
14158
- 501: "SCIM is not configured";
14159
14279
  };
14160
14280
  };
14161
14281
  };
@@ -14171,10 +14291,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14171
14291
  query: unknown;
14172
14292
  headers: unknown;
14173
14293
  response: {
14294
+ 401: "Authentication required";
14174
14295
  200: {
14175
14296
  [x: string]: unknown;
14176
14297
  };
14177
- 401: "Authentication required";
14178
14298
  422: {
14179
14299
  type: "validation";
14180
14300
  on: string;
@@ -14199,12 +14319,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14199
14319
  query: unknown;
14200
14320
  headers: unknown;
14201
14321
  response: {
14322
+ 400: "No registration challenge in progress" | "WebAuthn registration failed";
14323
+ 401: "Authentication required";
14202
14324
  200: {
14203
14325
  readonly credentialId: string;
14204
14326
  readonly verified: true;
14205
14327
  };
14206
- 400: "No registration challenge in progress" | "WebAuthn registration failed";
14207
- 401: "Authentication required";
14208
14328
  422: {
14209
14329
  type: "validation";
14210
14330
  on: string;
@@ -14258,11 +14378,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14258
14378
  query: unknown;
14259
14379
  headers: unknown;
14260
14380
  response: {
14381
+ 400: "No authentication challenge in progress";
14382
+ 401: "Unknown credential" | "WebAuthn authentication failed";
14261
14383
  200: {
14262
14384
  readonly status: "authenticated";
14263
14385
  };
14264
- 400: "No authentication challenge in progress";
14265
- 401: "Unknown credential" | "WebAuthn authentication failed";
14266
14386
  422: {
14267
14387
  type: "validation";
14268
14388
  on: string;
@@ -14286,10 +14406,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14286
14406
  query: unknown;
14287
14407
  headers: unknown;
14288
14408
  response: {
14409
+ 401: "Authentication required";
14289
14410
  200: {
14290
14411
  [x: string]: unknown;
14291
14412
  };
14292
- 401: "Authentication required";
14293
14413
  422: {
14294
14414
  type: "validation";
14295
14415
  on: string;
@@ -14311,10 +14431,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14311
14431
  query: unknown;
14312
14432
  headers: unknown;
14313
14433
  response: {
14434
+ 401: "Authentication required";
14314
14435
  200: {
14315
14436
  readonly deleted: true;
14316
14437
  };
14317
- 401: "Authentication required";
14318
14438
  422: {
14319
14439
  type: "validation";
14320
14440
  on: string;
@@ -14405,9 +14525,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14405
14525
  query: unknown;
14406
14526
  headers: unknown;
14407
14527
  response: {
14408
- 200: Response;
14409
14528
  400: "Cookies are missing";
14410
14529
  401: "User is not authenticated";
14530
+ 200: Response;
14411
14531
  422: {
14412
14532
  type: "validation";
14413
14533
  on: string;
@@ -14430,9 +14550,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14430
14550
  query: unknown;
14431
14551
  headers: unknown;
14432
14552
  response: {
14433
- 200: Response;
14434
14553
  400: "Cookies are missing";
14435
14554
  401: "User is not authenticated";
14555
+ 200: Response;
14436
14556
  422: {
14437
14557
  type: "validation";
14438
14558
  on: string;
@@ -14455,9 +14575,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14455
14575
  query: unknown;
14456
14576
  headers: unknown;
14457
14577
  response: {
14458
- 200: Response;
14459
14578
  400: "Cookies are missing";
14460
14579
  401: "User is not authenticated";
14580
+ 200: Response;
14461
14581
  422: {
14462
14582
  type: "validation";
14463
14583
  on: string;
@@ -14480,9 +14600,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14480
14600
  query: unknown;
14481
14601
  headers: unknown;
14482
14602
  response: {
14483
- 200: {} | Response;
14484
14603
  400: "Cookies are missing";
14485
14604
  401: "User is not authenticated";
14605
+ 200: {} | Response;
14486
14606
  422: {
14487
14607
  type: "validation";
14488
14608
  on: string;
@@ -14509,9 +14629,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14509
14629
  query: unknown;
14510
14630
  headers: unknown;
14511
14631
  response: {
14512
- 200: {} | Response;
14513
14632
  400: "Cookies are missing";
14514
14633
  401: "User is not authenticated";
14634
+ 200: {} | Response;
14515
14635
  422: {
14516
14636
  type: "validation";
14517
14637
  on: string;
@@ -14539,9 +14659,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14539
14659
  query: unknown;
14540
14660
  headers: unknown;
14541
14661
  response: {
14542
- 200: {} | Response;
14543
14662
  400: "Cookies are missing";
14544
14663
  401: "User is not authenticated";
14664
+ 200: {} | Response;
14545
14665
  422: {
14546
14666
  type: "validation";
14547
14667
  on: string;
@@ -14568,9 +14688,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14568
14688
  query: unknown;
14569
14689
  headers: unknown;
14570
14690
  response: {
14571
- 200: {} | Response;
14572
14691
  400: "Cookies are missing";
14573
14692
  401: "User is not authenticated";
14693
+ 200: {} | Response;
14574
14694
  422: {
14575
14695
  type: "validation";
14576
14696
  on: string;
@@ -14597,9 +14717,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14597
14717
  query: unknown;
14598
14718
  headers: unknown;
14599
14719
  response: {
14600
- 200: {} | Response;
14601
14720
  400: "Cookies are missing";
14602
14721
  401: "User is not authenticated";
14722
+ 200: {} | Response;
14603
14723
  422: {
14604
14724
  type: "validation";
14605
14725
  on: string;
@@ -14623,9 +14743,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14623
14743
  query: unknown;
14624
14744
  headers: unknown;
14625
14745
  response: {
14626
- 200: Response;
14627
14746
  400: "Cookies are missing";
14628
14747
  401: "User is not authenticated";
14748
+ 200: Response;
14629
14749
  422: {
14630
14750
  type: "validation";
14631
14751
  on: string;
@@ -14652,9 +14772,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14652
14772
  query: unknown;
14653
14773
  headers: unknown;
14654
14774
  response: {
14655
- 200: {} | Response;
14656
14775
  400: "Cookies are missing";
14657
14776
  401: "User is not authenticated";
14777
+ 200: {} | Response;
14658
14778
  422: {
14659
14779
  type: "validation";
14660
14780
  on: string;
@@ -14683,9 +14803,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14683
14803
  query: unknown;
14684
14804
  headers: unknown;
14685
14805
  response: {
14686
- 200: {} | Response;
14687
14806
  400: "Cookies are missing";
14688
14807
  401: "User is not authenticated";
14808
+ 200: {} | Response;
14689
14809
  422: {
14690
14810
  type: "validation";
14691
14811
  on: string;
@@ -14733,9 +14853,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14733
14853
  query: unknown;
14734
14854
  headers: unknown;
14735
14855
  response: {
14736
- 200: {} | Response;
14737
14856
  400: "Cookies are missing";
14738
14857
  401: "User is not authenticated";
14858
+ 200: {} | Response;
14739
14859
  422: {
14740
14860
  type: "validation";
14741
14861
  on: string;
@@ -14903,9 +15023,10 @@ export type { SigningKey } from './oidc/keys';
14903
15023
  export { verifyDpopProof } from './oidc/dpop';
14904
15024
  export type { DpopResult } from './oidc/dpop';
14905
15025
  export { CLIENT_ASSERTION_TYPE, verifyClientAssertion } from './oidc/clientAuth';
14906
- export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryDeviceAuthorizationStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore } from './oidc/inMemoryStores';
15026
+ export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore } from './oidc/inMemoryStores';
14907
15027
  export { fanOutBackchannelLogout, mintLogoutToken, resolvePostLogoutRedirect, verifyIdTokenHint } from './oidc/logout';
14908
- export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonDeviceAuthorizationStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresDeviceAuthorizationStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, oauthClientAssertionJtisTable, oauthClientsTable, oauthCodesTable, oauthDeviceAuthorizationsTable, oauthLogoutDeliveriesTable, oauthRefreshTokensTable } from './oidc/postgresStores';
15028
+ export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, oauthClientAssertionJtisTable, oauthClientRegistrationTokensTable, oauthClientsTable, oauthCodesTable, oauthDeviceAuthorizationsTable, oauthInitialAccessTokensTable, oauthLogoutDeliveriesTable, oauthRefreshTokensTable } from './oidc/postgresStores';
15029
+ export { deleteRegisteredClient, getRegisteredClient, registerClient, updateRegisteredClient, type ClientRegistrationDecision, type ClientRegistrationMetadata, type OnClientRegistration, type RegisterClientResult } from './oidc/registration';
14909
15030
  export * from './adaptive/config';
14910
15031
  export * from './adaptive/fingerprint';
14911
15032
  export * from './adaptive/types';