@absolutejs/auth 0.29.0-beta.1 → 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;
@@ -13488,6 +13488,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13488
13488
  grant_type?: string | undefined;
13489
13489
  code?: string | undefined;
13490
13490
  redirect_uri?: string | undefined;
13491
+ client_assertion?: string | undefined;
13492
+ client_assertion_type?: string | undefined;
13491
13493
  code_verifier?: string | undefined;
13492
13494
  subject_token?: string | undefined;
13493
13495
  subject_token_type?: string | undefined;
@@ -13668,6 +13670,126 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13668
13670
  };
13669
13671
  };
13670
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
+ };
13671
13793
  } & {
13672
13794
  [x: string]: {
13673
13795
  get: {
@@ -13712,13 +13834,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13712
13834
  query: unknown;
13713
13835
  headers: unknown;
13714
13836
  response: {
13837
+ 401: "Authentication required";
13715
13838
  200: {
13716
13839
  readonly organizations: {
13717
13840
  membership: import(".").OrganizationMembership;
13718
13841
  organization: import(".").Organization | undefined;
13719
13842
  }[];
13720
13843
  };
13721
- 401: "Authentication required";
13722
13844
  422: {
13723
13845
  type: "validation";
13724
13846
  on: string;
@@ -13742,11 +13864,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13742
13864
  query: unknown;
13743
13865
  headers: unknown;
13744
13866
  response: {
13867
+ 401: "Authentication required";
13868
+ 403: "Cannot create organizations";
13745
13869
  200: {
13746
13870
  readonly organization: import(".").Organization;
13747
13871
  };
13748
- 401: "Authentication required";
13749
- 403: "Cannot create organizations";
13750
13872
  422: {
13751
13873
  type: "validation";
13752
13874
  on: string;
@@ -13774,12 +13896,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13774
13896
  query: unknown;
13775
13897
  headers: unknown;
13776
13898
  response: {
13899
+ 401: "Authentication required";
13900
+ 403: "Cannot manage members";
13777
13901
  200: {
13778
13902
  readonly invitationId: string;
13779
13903
  readonly token: string;
13780
13904
  };
13781
- 401: "Authentication required";
13782
- 403: "Cannot manage members";
13783
13905
  422: {
13784
13906
  type: "validation";
13785
13907
  on: string;
@@ -13806,6 +13928,8 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13806
13928
  query: unknown;
13807
13929
  headers: unknown;
13808
13930
  response: {
13931
+ 401: "Authentication required";
13932
+ 403: "Cannot manage members";
13809
13933
  200: {
13810
13934
  readonly invitations: {
13811
13935
  email: string;
@@ -13815,8 +13939,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13815
13939
  state: import(".").InvitationState;
13816
13940
  }[];
13817
13941
  };
13818
- 401: "Authentication required";
13819
- 403: "Cannot manage members";
13820
13942
  422: {
13821
13943
  type: "validation";
13822
13944
  on: string;
@@ -13845,12 +13967,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13845
13967
  query: unknown;
13846
13968
  headers: unknown;
13847
13969
  response: {
13848
- 200: {
13849
- readonly revoked: string;
13850
- };
13851
13970
  401: "Authentication required";
13852
13971
  403: "Cannot manage members";
13853
13972
  404: "Invitation not found";
13973
+ 200: {
13974
+ readonly revoked: string;
13975
+ };
13854
13976
  422: {
13855
13977
  type: "validation";
13856
13978
  on: string;
@@ -13878,12 +14000,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13878
14000
  query: unknown;
13879
14001
  headers: unknown;
13880
14002
  response: {
14003
+ 400: "Invalid or expired invitation";
14004
+ 401: "Authentication required";
13881
14005
  200: {
13882
14006
  readonly organizationId: string;
13883
14007
  readonly roles: string[];
13884
14008
  };
13885
- 400: "Invalid or expired invitation";
13886
- 401: "Authentication required";
13887
14009
  422: {
13888
14010
  type: "validation";
13889
14011
  on: string;
@@ -13910,11 +14032,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13910
14032
  query: unknown;
13911
14033
  headers: unknown;
13912
14034
  response: {
14035
+ 401: "Authentication required";
14036
+ 403: "Not a member";
13913
14037
  200: {
13914
14038
  readonly members: import(".").OrganizationMembership[];
13915
14039
  };
13916
- 401: "Authentication required";
13917
- 403: "Not a member";
13918
14040
  422: {
13919
14041
  type: "validation";
13920
14042
  on: string;
@@ -13943,11 +14065,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13943
14065
  query: unknown;
13944
14066
  headers: unknown;
13945
14067
  response: {
14068
+ 401: "Authentication required";
14069
+ 403: "Cannot manage members";
13946
14070
  200: {
13947
14071
  readonly removed: string;
13948
14072
  };
13949
- 401: "Authentication required";
13950
- 403: "Cannot manage members";
13951
14073
  422: {
13952
14074
  type: "validation";
13953
14075
  on: string;
@@ -13974,11 +14096,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
13974
14096
  query: unknown;
13975
14097
  headers: unknown;
13976
14098
  response: {
14099
+ 401: "Authentication required";
14100
+ 403: "Cannot manage roles";
13977
14101
  200: {
13978
14102
  readonly roles: readonly import(".").Role[];
13979
14103
  };
13980
- 401: "Authentication required";
13981
- 403: "Cannot manage roles";
13982
14104
  422: {
13983
14105
  type: "validation";
13984
14106
  on: string;
@@ -14008,12 +14130,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14008
14130
  query: unknown;
14009
14131
  headers: unknown;
14010
14132
  response: {
14011
- 200: {
14012
- readonly roles: string[];
14013
- };
14014
14133
  401: "Authentication required";
14015
14134
  403: "Cannot manage roles";
14016
14135
  404: "Membership not found";
14136
+ 200: {
14137
+ readonly roles: string[];
14138
+ };
14017
14139
  422: {
14018
14140
  type: "validation";
14019
14141
  on: string;
@@ -14038,6 +14160,7 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14038
14160
  query: unknown;
14039
14161
  headers: unknown;
14040
14162
  response: {
14163
+ 401: "Invalid or expired setup link";
14041
14164
  200: {
14042
14165
  readonly capabilities: import(".").SetupCapability[];
14043
14166
  readonly configured: {
@@ -14058,7 +14181,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14058
14181
  baseUrl: string;
14059
14182
  } | undefined;
14060
14183
  };
14061
- 401: "Invalid or expired setup link";
14062
14184
  };
14063
14185
  };
14064
14186
  };
@@ -14078,12 +14200,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14078
14200
  query: unknown;
14079
14201
  headers: unknown;
14080
14202
  response: {
14203
+ 401: "Invalid or expired setup link";
14204
+ 403: "This setup link cannot configure SAML";
14205
+ 501: "SSO is not configured";
14081
14206
  200: {
14082
14207
  readonly configured: true;
14083
14208
  readonly type: "saml";
14084
14209
  };
14085
- 401: "Invalid or expired setup link";
14086
- 403: "This setup link cannot configure SAML";
14087
14210
  422: {
14088
14211
  type: "validation";
14089
14212
  on: string;
@@ -14093,7 +14216,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14093
14216
  property?: string;
14094
14217
  expected?: string;
14095
14218
  };
14096
- 501: "SSO is not configured";
14097
14219
  };
14098
14220
  };
14099
14221
  };
@@ -14115,12 +14237,13 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14115
14237
  query: unknown;
14116
14238
  headers: unknown;
14117
14239
  response: {
14240
+ 401: "Invalid or expired setup link";
14241
+ 403: "This setup link cannot configure OIDC";
14242
+ 501: "SSO is not configured";
14118
14243
  200: {
14119
14244
  readonly configured: true;
14120
14245
  readonly type: "oidc";
14121
14246
  };
14122
- 401: "Invalid or expired setup link";
14123
- 403: "This setup link cannot configure OIDC";
14124
14247
  422: {
14125
14248
  type: "validation";
14126
14249
  on: string;
@@ -14130,7 +14253,6 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14130
14253
  property?: string;
14131
14254
  expected?: string;
14132
14255
  };
14133
- 501: "SSO is not configured";
14134
14256
  };
14135
14257
  };
14136
14258
  };
@@ -14146,14 +14268,14 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14146
14268
  query: unknown;
14147
14269
  headers: unknown;
14148
14270
  response: {
14271
+ 401: "Invalid or expired setup link";
14272
+ 403: "This setup link cannot configure SCIM";
14273
+ 501: "SCIM is not configured";
14149
14274
  200: {
14150
14275
  readonly baseUrl: `${string}/${string}`;
14151
14276
  readonly token: string;
14152
14277
  readonly tokenId: string;
14153
14278
  };
14154
- 401: "Invalid or expired setup link";
14155
- 403: "This setup link cannot configure SCIM";
14156
- 501: "SCIM is not configured";
14157
14279
  };
14158
14280
  };
14159
14281
  };
@@ -14169,10 +14291,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14169
14291
  query: unknown;
14170
14292
  headers: unknown;
14171
14293
  response: {
14294
+ 401: "Authentication required";
14172
14295
  200: {
14173
14296
  [x: string]: unknown;
14174
14297
  };
14175
- 401: "Authentication required";
14176
14298
  422: {
14177
14299
  type: "validation";
14178
14300
  on: string;
@@ -14197,12 +14319,12 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14197
14319
  query: unknown;
14198
14320
  headers: unknown;
14199
14321
  response: {
14322
+ 400: "No registration challenge in progress" | "WebAuthn registration failed";
14323
+ 401: "Authentication required";
14200
14324
  200: {
14201
14325
  readonly credentialId: string;
14202
14326
  readonly verified: true;
14203
14327
  };
14204
- 400: "No registration challenge in progress" | "WebAuthn registration failed";
14205
- 401: "Authentication required";
14206
14328
  422: {
14207
14329
  type: "validation";
14208
14330
  on: string;
@@ -14256,11 +14378,11 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14256
14378
  query: unknown;
14257
14379
  headers: unknown;
14258
14380
  response: {
14381
+ 400: "No authentication challenge in progress";
14382
+ 401: "Unknown credential" | "WebAuthn authentication failed";
14259
14383
  200: {
14260
14384
  readonly status: "authenticated";
14261
14385
  };
14262
- 400: "No authentication challenge in progress";
14263
- 401: "Unknown credential" | "WebAuthn authentication failed";
14264
14386
  422: {
14265
14387
  type: "validation";
14266
14388
  on: string;
@@ -14284,10 +14406,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14284
14406
  query: unknown;
14285
14407
  headers: unknown;
14286
14408
  response: {
14409
+ 401: "Authentication required";
14287
14410
  200: {
14288
14411
  [x: string]: unknown;
14289
14412
  };
14290
- 401: "Authentication required";
14291
14413
  422: {
14292
14414
  type: "validation";
14293
14415
  on: string;
@@ -14309,10 +14431,10 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14309
14431
  query: unknown;
14310
14432
  headers: unknown;
14311
14433
  response: {
14434
+ 401: "Authentication required";
14312
14435
  200: {
14313
14436
  readonly deleted: true;
14314
14437
  };
14315
- 401: "Authentication required";
14316
14438
  422: {
14317
14439
  type: "validation";
14318
14440
  on: string;
@@ -14403,9 +14525,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14403
14525
  query: unknown;
14404
14526
  headers: unknown;
14405
14527
  response: {
14406
- 200: Response;
14407
14528
  400: "Cookies are missing";
14408
14529
  401: "User is not authenticated";
14530
+ 200: Response;
14409
14531
  422: {
14410
14532
  type: "validation";
14411
14533
  on: string;
@@ -14428,9 +14550,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14428
14550
  query: unknown;
14429
14551
  headers: unknown;
14430
14552
  response: {
14431
- 200: Response;
14432
14553
  400: "Cookies are missing";
14433
14554
  401: "User is not authenticated";
14555
+ 200: Response;
14434
14556
  422: {
14435
14557
  type: "validation";
14436
14558
  on: string;
@@ -14453,9 +14575,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14453
14575
  query: unknown;
14454
14576
  headers: unknown;
14455
14577
  response: {
14456
- 200: Response;
14457
14578
  400: "Cookies are missing";
14458
14579
  401: "User is not authenticated";
14580
+ 200: Response;
14459
14581
  422: {
14460
14582
  type: "validation";
14461
14583
  on: string;
@@ -14478,9 +14600,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14478
14600
  query: unknown;
14479
14601
  headers: unknown;
14480
14602
  response: {
14481
- 200: {} | Response;
14482
14603
  400: "Cookies are missing";
14483
14604
  401: "User is not authenticated";
14605
+ 200: {} | Response;
14484
14606
  422: {
14485
14607
  type: "validation";
14486
14608
  on: string;
@@ -14507,9 +14629,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14507
14629
  query: unknown;
14508
14630
  headers: unknown;
14509
14631
  response: {
14510
- 200: {} | Response;
14511
14632
  400: "Cookies are missing";
14512
14633
  401: "User is not authenticated";
14634
+ 200: {} | Response;
14513
14635
  422: {
14514
14636
  type: "validation";
14515
14637
  on: string;
@@ -14537,9 +14659,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14537
14659
  query: unknown;
14538
14660
  headers: unknown;
14539
14661
  response: {
14540
- 200: {} | Response;
14541
14662
  400: "Cookies are missing";
14542
14663
  401: "User is not authenticated";
14664
+ 200: {} | Response;
14543
14665
  422: {
14544
14666
  type: "validation";
14545
14667
  on: string;
@@ -14566,9 +14688,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14566
14688
  query: unknown;
14567
14689
  headers: unknown;
14568
14690
  response: {
14569
- 200: {} | Response;
14570
14691
  400: "Cookies are missing";
14571
14692
  401: "User is not authenticated";
14693
+ 200: {} | Response;
14572
14694
  422: {
14573
14695
  type: "validation";
14574
14696
  on: string;
@@ -14595,9 +14717,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14595
14717
  query: unknown;
14596
14718
  headers: unknown;
14597
14719
  response: {
14598
- 200: {} | Response;
14599
14720
  400: "Cookies are missing";
14600
14721
  401: "User is not authenticated";
14722
+ 200: {} | Response;
14601
14723
  422: {
14602
14724
  type: "validation";
14603
14725
  on: string;
@@ -14621,9 +14743,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14621
14743
  query: unknown;
14622
14744
  headers: unknown;
14623
14745
  response: {
14624
- 200: Response;
14625
14746
  400: "Cookies are missing";
14626
14747
  401: "User is not authenticated";
14748
+ 200: Response;
14627
14749
  422: {
14628
14750
  type: "validation";
14629
14751
  on: string;
@@ -14650,9 +14772,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14650
14772
  query: unknown;
14651
14773
  headers: unknown;
14652
14774
  response: {
14653
- 200: {} | Response;
14654
14775
  400: "Cookies are missing";
14655
14776
  401: "User is not authenticated";
14777
+ 200: {} | Response;
14656
14778
  422: {
14657
14779
  type: "validation";
14658
14780
  on: string;
@@ -14681,9 +14803,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14681
14803
  query: unknown;
14682
14804
  headers: unknown;
14683
14805
  response: {
14684
- 200: {} | Response;
14685
14806
  400: "Cookies are missing";
14686
14807
  401: "User is not authenticated";
14808
+ 200: {} | Response;
14687
14809
  422: {
14688
14810
  type: "validation";
14689
14811
  on: string;
@@ -14731,9 +14853,9 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
14731
14853
  query: unknown;
14732
14854
  headers: unknown;
14733
14855
  response: {
14734
- 200: {} | Response;
14735
14856
  400: "Cookies are missing";
14736
14857
  401: "User is not authenticated";
14858
+ 200: {} | Response;
14737
14859
  422: {
14738
14860
  type: "validation";
14739
14861
  on: string;
@@ -14900,9 +15022,11 @@ export { generateSigningKey, jwkThumbprint, signJwt, toPublicJwk, verifyJwt } fr
14900
15022
  export type { SigningKey } from './oidc/keys';
14901
15023
  export { verifyDpopProof } from './oidc/dpop';
14902
15024
  export type { DpopResult } from './oidc/dpop';
14903
- export { createInMemoryAuthorizationCodeStore, createInMemoryDeviceAuthorizationStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore } from './oidc/inMemoryStores';
15025
+ export { CLIENT_ASSERTION_TYPE, verifyClientAssertion } from './oidc/clientAuth';
15026
+ export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore } from './oidc/inMemoryStores';
14904
15027
  export { fanOutBackchannelLogout, mintLogoutToken, resolvePostLogoutRedirect, verifyIdTokenHint } from './oidc/logout';
14905
- export { createNeonAuthorizationCodeStore, createNeonDeviceAuthorizationStore, createNeonLogoutDeliveryStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresDeviceAuthorizationStore, createPostgresLogoutDeliveryStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, 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';
14906
15030
  export * from './adaptive/config';
14907
15031
  export * from './adaptive/fingerprint';
14908
15032
  export * from './adaptive/types';