@faable/auth-sdk 2.9.26 → 2.9.27

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.
@@ -998,6 +998,25 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
998
998
  grant_types?: string[] | undefined;
999
999
  response_types?: string[] | undefined;
1000
1000
  token_endpoint_auth_method?: string | undefined;
1001
+ jwks?: {
1002
+ keys: ({
1003
+ kty: string;
1004
+ kid?: string | undefined;
1005
+ use?: string | undefined;
1006
+ alg?: string | undefined;
1007
+ n?: string | undefined;
1008
+ e?: string | undefined;
1009
+ crv?: string | undefined;
1010
+ x?: string | undefined;
1011
+ y?: string | undefined;
1012
+ } & {
1013
+ [key: string]: unknown;
1014
+ })[];
1015
+ } | null | undefined;
1016
+ jwks_usage?: {
1017
+ kid: string;
1018
+ last_used_at: string;
1019
+ }[] | null | undefined;
1001
1020
  consent_required?: boolean | undefined;
1002
1021
  metadata_document_url?: string | undefined;
1003
1022
  registered_dynamically?: boolean | undefined;
@@ -1083,6 +1102,25 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1083
1102
  grant_types?: string[] | undefined;
1084
1103
  response_types?: string[] | undefined;
1085
1104
  token_endpoint_auth_method?: string | undefined;
1105
+ jwks?: {
1106
+ keys: ({
1107
+ kty: string;
1108
+ kid?: string | undefined;
1109
+ use?: string | undefined;
1110
+ alg?: string | undefined;
1111
+ n?: string | undefined;
1112
+ e?: string | undefined;
1113
+ crv?: string | undefined;
1114
+ x?: string | undefined;
1115
+ y?: string | undefined;
1116
+ } & {
1117
+ [key: string]: unknown;
1118
+ })[];
1119
+ } | null | undefined;
1120
+ jwks_usage?: {
1121
+ kid: string;
1122
+ last_used_at: string;
1123
+ }[] | null | undefined;
1086
1124
  consent_required?: boolean | undefined;
1087
1125
  metadata_document_url?: string | undefined;
1088
1126
  registered_dynamically?: boolean | undefined;
@@ -1171,6 +1209,25 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1171
1209
  grant_types?: string[] | undefined;
1172
1210
  response_types?: string[] | undefined;
1173
1211
  token_endpoint_auth_method?: string | undefined;
1212
+ jwks?: {
1213
+ keys: ({
1214
+ kty: string;
1215
+ kid?: string | undefined;
1216
+ use?: string | undefined;
1217
+ alg?: string | undefined;
1218
+ n?: string | undefined;
1219
+ e?: string | undefined;
1220
+ crv?: string | undefined;
1221
+ x?: string | undefined;
1222
+ y?: string | undefined;
1223
+ } & {
1224
+ [key: string]: unknown;
1225
+ })[];
1226
+ } | null | undefined;
1227
+ jwks_usage?: {
1228
+ kid: string;
1229
+ last_used_at: string;
1230
+ }[] | null | undefined;
1174
1231
  consent_required?: boolean | undefined;
1175
1232
  metadata_document_url?: string | undefined;
1176
1233
  registered_dynamically?: boolean | undefined;
@@ -1258,6 +1315,25 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1258
1315
  grant_types?: string[] | undefined;
1259
1316
  response_types?: string[] | undefined;
1260
1317
  token_endpoint_auth_method?: string | undefined;
1318
+ jwks?: {
1319
+ keys: ({
1320
+ kty: string;
1321
+ kid?: string | undefined;
1322
+ use?: string | undefined;
1323
+ alg?: string | undefined;
1324
+ n?: string | undefined;
1325
+ e?: string | undefined;
1326
+ crv?: string | undefined;
1327
+ x?: string | undefined;
1328
+ y?: string | undefined;
1329
+ } & {
1330
+ [key: string]: unknown;
1331
+ })[];
1332
+ } | null | undefined;
1333
+ jwks_usage?: {
1334
+ kid: string;
1335
+ last_used_at: string;
1336
+ }[] | null | undefined;
1261
1337
  consent_required?: boolean | undefined;
1262
1338
  metadata_document_url?: string | undefined;
1263
1339
  registered_dynamically?: boolean | undefined;
@@ -1558,6 +1558,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1558
1558
  grant_types?: string[] | undefined;
1559
1559
  response_types?: string[] | undefined;
1560
1560
  token_endpoint_auth_method?: string | undefined;
1561
+ jwks?: {
1562
+ keys: ({
1563
+ kty: string;
1564
+ kid?: string | undefined;
1565
+ use?: string | undefined;
1566
+ alg?: string | undefined;
1567
+ n?: string | undefined;
1568
+ e?: string | undefined;
1569
+ crv?: string | undefined;
1570
+ x?: string | undefined;
1571
+ y?: string | undefined;
1572
+ } & {
1573
+ [key: string]: unknown;
1574
+ })[];
1575
+ } | null | undefined;
1576
+ jwks_usage?: {
1577
+ kid: string;
1578
+ last_used_at: string;
1579
+ }[] | null | undefined;
1561
1580
  consent_required?: boolean | undefined;
1562
1581
  metadata_document_url?: string | undefined;
1563
1582
  registered_dynamically?: boolean | undefined;
@@ -1659,6 +1678,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1659
1678
  grant_types?: string[] | undefined;
1660
1679
  response_types?: string[] | undefined;
1661
1680
  token_endpoint_auth_method?: string | undefined;
1681
+ jwks?: {
1682
+ keys: ({
1683
+ kty: string;
1684
+ kid?: string | undefined;
1685
+ use?: string | undefined;
1686
+ alg?: string | undefined;
1687
+ n?: string | undefined;
1688
+ e?: string | undefined;
1689
+ crv?: string | undefined;
1690
+ x?: string | undefined;
1691
+ y?: string | undefined;
1692
+ } & {
1693
+ [key: string]: unknown;
1694
+ })[];
1695
+ } | null | undefined;
1696
+ jwks_usage?: {
1697
+ kid: string;
1698
+ last_used_at: string;
1699
+ }[] | null | undefined;
1662
1700
  consent_required?: boolean | undefined;
1663
1701
  metadata_document_url?: string | undefined;
1664
1702
  registered_dynamically?: boolean | undefined;
@@ -1761,6 +1799,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1761
1799
  grant_types?: string[] | undefined;
1762
1800
  response_types?: string[] | undefined;
1763
1801
  token_endpoint_auth_method?: string | undefined;
1802
+ jwks?: {
1803
+ keys: ({
1804
+ kty: string;
1805
+ kid?: string | undefined;
1806
+ use?: string | undefined;
1807
+ alg?: string | undefined;
1808
+ n?: string | undefined;
1809
+ e?: string | undefined;
1810
+ crv?: string | undefined;
1811
+ x?: string | undefined;
1812
+ y?: string | undefined;
1813
+ } & {
1814
+ [key: string]: unknown;
1815
+ })[];
1816
+ } | null | undefined;
1817
+ jwks_usage?: {
1818
+ kid: string;
1819
+ last_used_at: string;
1820
+ }[] | null | undefined;
1764
1821
  consent_required?: boolean | undefined;
1765
1822
  metadata_document_url?: string | undefined;
1766
1823
  registered_dynamically?: boolean | undefined;
@@ -1864,6 +1921,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1864
1921
  grant_types?: string[] | undefined;
1865
1922
  response_types?: string[] | undefined;
1866
1923
  token_endpoint_auth_method?: string | undefined;
1924
+ jwks?: {
1925
+ keys: ({
1926
+ kty: string;
1927
+ kid?: string | undefined;
1928
+ use?: string | undefined;
1929
+ alg?: string | undefined;
1930
+ n?: string | undefined;
1931
+ e?: string | undefined;
1932
+ crv?: string | undefined;
1933
+ x?: string | undefined;
1934
+ y?: string | undefined;
1935
+ } & {
1936
+ [key: string]: unknown;
1937
+ })[];
1938
+ } | null | undefined;
1939
+ jwks_usage?: {
1940
+ kid: string;
1941
+ last_used_at: string;
1942
+ }[] | null | undefined;
1867
1943
  consent_required?: boolean | undefined;
1868
1944
  metadata_document_url?: string | undefined;
1869
1945
  registered_dynamically?: boolean | undefined;
@@ -1949,6 +2025,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1949
2025
  grant_types?: string[] | undefined;
1950
2026
  response_types?: string[] | undefined;
1951
2027
  token_endpoint_auth_method?: string | undefined;
2028
+ jwks?: {
2029
+ keys: ({
2030
+ kty: string;
2031
+ kid?: string | undefined;
2032
+ use?: string | undefined;
2033
+ alg?: string | undefined;
2034
+ n?: string | undefined;
2035
+ e?: string | undefined;
2036
+ crv?: string | undefined;
2037
+ x?: string | undefined;
2038
+ y?: string | undefined;
2039
+ } & {
2040
+ [key: string]: unknown;
2041
+ })[];
2042
+ } | null | undefined;
2043
+ jwks_usage?: {
2044
+ kid: string;
2045
+ last_used_at: string;
2046
+ }[] | null | undefined;
1952
2047
  consent_required?: boolean | undefined;
1953
2048
  metadata_document_url?: string | undefined;
1954
2049
  registered_dynamically?: boolean | undefined;
@@ -2037,6 +2132,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2037
2132
  grant_types?: string[] | undefined;
2038
2133
  response_types?: string[] | undefined;
2039
2134
  token_endpoint_auth_method?: string | undefined;
2135
+ jwks?: {
2136
+ keys: ({
2137
+ kty: string;
2138
+ kid?: string | undefined;
2139
+ use?: string | undefined;
2140
+ alg?: string | undefined;
2141
+ n?: string | undefined;
2142
+ e?: string | undefined;
2143
+ crv?: string | undefined;
2144
+ x?: string | undefined;
2145
+ y?: string | undefined;
2146
+ } & {
2147
+ [key: string]: unknown;
2148
+ })[];
2149
+ } | null | undefined;
2150
+ jwks_usage?: {
2151
+ kid: string;
2152
+ last_used_at: string;
2153
+ }[] | null | undefined;
2040
2154
  consent_required?: boolean | undefined;
2041
2155
  metadata_document_url?: string | undefined;
2042
2156
  registered_dynamically?: boolean | undefined;
@@ -2141,6 +2255,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2141
2255
  grant_types?: string[] | undefined;
2142
2256
  response_types?: string[] | undefined;
2143
2257
  token_endpoint_auth_method?: string | undefined;
2258
+ jwks?: {
2259
+ keys: ({
2260
+ kty: string;
2261
+ kid?: string | undefined;
2262
+ use?: string | undefined;
2263
+ alg?: string | undefined;
2264
+ n?: string | undefined;
2265
+ e?: string | undefined;
2266
+ crv?: string | undefined;
2267
+ x?: string | undefined;
2268
+ y?: string | undefined;
2269
+ } & {
2270
+ [key: string]: unknown;
2271
+ })[];
2272
+ } | null | undefined;
2273
+ jwks_usage?: {
2274
+ kid: string;
2275
+ last_used_at: string;
2276
+ }[] | null | undefined;
2144
2277
  consent_required?: boolean | undefined;
2145
2278
  metadata_document_url?: string | undefined;
2146
2279
  registered_dynamically?: boolean | undefined;
@@ -2243,6 +2376,25 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2243
2376
  grant_types?: string[] | undefined;
2244
2377
  response_types?: string[] | undefined;
2245
2378
  token_endpoint_auth_method?: string | undefined;
2379
+ jwks?: {
2380
+ keys: ({
2381
+ kty: string;
2382
+ kid?: string | undefined;
2383
+ use?: string | undefined;
2384
+ alg?: string | undefined;
2385
+ n?: string | undefined;
2386
+ e?: string | undefined;
2387
+ crv?: string | undefined;
2388
+ x?: string | undefined;
2389
+ y?: string | undefined;
2390
+ } & {
2391
+ [key: string]: unknown;
2392
+ })[];
2393
+ } | null | undefined;
2394
+ jwks_usage?: {
2395
+ kid: string;
2396
+ last_used_at: string;
2397
+ }[] | null | undefined;
2246
2398
  consent_required?: boolean | undefined;
2247
2399
  metadata_document_url?: string | undefined;
2248
2400
  registered_dynamically?: boolean | undefined;
@@ -6100,6 +6100,30 @@ export interface components {
6100
6100
  grant_types?: string[];
6101
6101
  response_types?: string[];
6102
6102
  token_endpoint_auth_method?: string;
6103
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
6104
+ jwks?: {
6105
+ keys: ({
6106
+ /** @description `RSA`, `EC` or `OKP`. */
6107
+ kty: string;
6108
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
6109
+ kid?: string;
6110
+ use?: string;
6111
+ alg?: string;
6112
+ n?: string;
6113
+ e?: string;
6114
+ crv?: string;
6115
+ x?: string;
6116
+ y?: string;
6117
+ } & {
6118
+ [key: string]: unknown;
6119
+ })[];
6120
+ } | null;
6121
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
6122
+ jwks_usage?: {
6123
+ kid: string;
6124
+ /** Format: date-time */
6125
+ last_used_at: string;
6126
+ }[] | null;
6103
6127
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
6104
6128
  consent_required?: boolean;
6105
6129
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -6266,7 +6290,26 @@ export interface components {
6266
6290
  /** @description Grants this client may use at the token endpoint. Empty allows every grant except `password`, which must be listed to be used. */
6267
6291
  grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
6268
6292
  response_types?: string[];
6293
+ /** @description How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client). */
6269
6294
  token_endpoint_auth_method?: string;
6295
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
6296
+ jwks?: {
6297
+ keys: ({
6298
+ /** @description `RSA`, `EC` or `OKP`. */
6299
+ kty: string;
6300
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
6301
+ kid?: string;
6302
+ use?: string;
6303
+ alg?: string;
6304
+ n?: string;
6305
+ e?: string;
6306
+ crv?: string;
6307
+ x?: string;
6308
+ y?: string;
6309
+ } & {
6310
+ [key: string]: unknown;
6311
+ })[];
6312
+ } | null;
6270
6313
  application_type?: string;
6271
6314
  software_id?: string | null;
6272
6315
  software_version?: string | null;
@@ -8533,6 +8576,10 @@ export interface components {
8533
8576
  grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
8534
8577
  client_id?: string;
8535
8578
  client_secret?: string;
8579
+ /** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
8580
+ client_assertion?: string;
8581
+ /** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
8582
+ client_assertion_type?: string;
8536
8583
  scope?: string;
8537
8584
  code?: string;
8538
8585
  code_verifier?: string;
@@ -8694,6 +8741,8 @@ export interface components {
8694
8741
  * - `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.
8695
8742
  * - `saml_sp_mismatch` (400): The AuthnRequest does not match the client's SAML configuration: its Issuer is not the configured entity_id, or it asks for another Assertion Consumer Service URL or binding.
8696
8743
  * - `saml_not_enabled` (404): This client does not have SAML enabled.
8744
+ * - `invalid_client_jwks` (400): The client `jwks` is not a valid set of public signing keys: RSA (2048 bits or more), EC (P-256, P-384, P-521) or Ed25519, public members only, up to 5, each with a `kid` when there is more than one.
8745
+ * - `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.
8697
8746
  * - `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.
8698
8747
  * - `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.
8699
8748
  * - `audience_not_found` (403): The `audience` does not name an API registered in this account.
@@ -8778,7 +8827,7 @@ export interface components {
8778
8827
  * - `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.
8779
8828
  * @enum {string}
8780
8829
  */
8781
- ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
8830
+ ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_client_jwks" | "client_jwks_required" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
8782
8831
  /** @description Every error response has this shape. Branch on `error_code`, never on `message`: the message is written for a person and may change. */
8783
8832
  ErrorResponse: {
8784
8833
  /** @description The HTTP status, repeated. */
@@ -13010,6 +13059,30 @@ export interface operations {
13010
13059
  grant_types?: string[];
13011
13060
  response_types?: string[];
13012
13061
  token_endpoint_auth_method?: string;
13062
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
13063
+ jwks?: {
13064
+ keys: ({
13065
+ /** @description `RSA`, `EC` or `OKP`. */
13066
+ kty: string;
13067
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
13068
+ kid?: string;
13069
+ use?: string;
13070
+ alg?: string;
13071
+ n?: string;
13072
+ e?: string;
13073
+ crv?: string;
13074
+ x?: string;
13075
+ y?: string;
13076
+ } & {
13077
+ [key: string]: unknown;
13078
+ })[];
13079
+ } | null;
13080
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
13081
+ jwks_usage?: {
13082
+ kid: string;
13083
+ /** Format: date-time */
13084
+ last_used_at: string;
13085
+ }[] | null;
13013
13086
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
13014
13087
  consent_required?: boolean;
13015
13088
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -13249,6 +13322,30 @@ export interface operations {
13249
13322
  grant_types?: string[];
13250
13323
  response_types?: string[];
13251
13324
  token_endpoint_auth_method?: string;
13325
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
13326
+ jwks?: {
13327
+ keys: ({
13328
+ /** @description `RSA`, `EC` or `OKP`. */
13329
+ kty: string;
13330
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
13331
+ kid?: string;
13332
+ use?: string;
13333
+ alg?: string;
13334
+ n?: string;
13335
+ e?: string;
13336
+ crv?: string;
13337
+ x?: string;
13338
+ y?: string;
13339
+ } & {
13340
+ [key: string]: unknown;
13341
+ })[];
13342
+ } | null;
13343
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
13344
+ jwks_usage?: {
13345
+ kid: string;
13346
+ /** Format: date-time */
13347
+ last_used_at: string;
13348
+ }[] | null;
13252
13349
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
13253
13350
  consent_required?: boolean;
13254
13351
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -13489,7 +13586,26 @@ export interface operations {
13489
13586
  /** @description Grants this client may use at the token endpoint. Empty allows every grant except `password`, which must be listed to be used. */
13490
13587
  grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
13491
13588
  response_types?: string[];
13589
+ /** @description How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client). */
13492
13590
  token_endpoint_auth_method?: string;
13591
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
13592
+ jwks?: {
13593
+ keys: ({
13594
+ /** @description `RSA`, `EC` or `OKP`. */
13595
+ kty: string;
13596
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
13597
+ kid?: string;
13598
+ use?: string;
13599
+ alg?: string;
13600
+ n?: string;
13601
+ e?: string;
13602
+ crv?: string;
13603
+ x?: string;
13604
+ y?: string;
13605
+ } & {
13606
+ [key: string]: unknown;
13607
+ })[];
13608
+ } | null;
13493
13609
  application_type?: string;
13494
13610
  software_id?: string | null;
13495
13611
  software_version?: string | null;
@@ -13617,6 +13733,30 @@ export interface operations {
13617
13733
  grant_types?: string[];
13618
13734
  response_types?: string[];
13619
13735
  token_endpoint_auth_method?: string;
13736
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
13737
+ jwks?: {
13738
+ keys: ({
13739
+ /** @description `RSA`, `EC` or `OKP`. */
13740
+ kty: string;
13741
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
13742
+ kid?: string;
13743
+ use?: string;
13744
+ alg?: string;
13745
+ n?: string;
13746
+ e?: string;
13747
+ crv?: string;
13748
+ x?: string;
13749
+ y?: string;
13750
+ } & {
13751
+ [key: string]: unknown;
13752
+ })[];
13753
+ } | null;
13754
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
13755
+ jwks_usage?: {
13756
+ kid: string;
13757
+ /** Format: date-time */
13758
+ last_used_at: string;
13759
+ }[] | null;
13620
13760
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
13621
13761
  consent_required?: boolean;
13622
13762
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -13862,6 +14002,30 @@ export interface operations {
13862
14002
  grant_types?: string[];
13863
14003
  response_types?: string[];
13864
14004
  token_endpoint_auth_method?: string;
14005
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
14006
+ jwks?: {
14007
+ keys: ({
14008
+ /** @description `RSA`, `EC` or `OKP`. */
14009
+ kty: string;
14010
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
14011
+ kid?: string;
14012
+ use?: string;
14013
+ alg?: string;
14014
+ n?: string;
14015
+ e?: string;
14016
+ crv?: string;
14017
+ x?: string;
14018
+ y?: string;
14019
+ } & {
14020
+ [key: string]: unknown;
14021
+ })[];
14022
+ } | null;
14023
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
14024
+ jwks_usage?: {
14025
+ kid: string;
14026
+ /** Format: date-time */
14027
+ last_used_at: string;
14028
+ }[] | null;
13865
14029
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
13866
14030
  consent_required?: boolean;
13867
14031
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -14105,6 +14269,30 @@ export interface operations {
14105
14269
  grant_types?: string[];
14106
14270
  response_types?: string[];
14107
14271
  token_endpoint_auth_method?: string;
14272
+ /** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
14273
+ jwks?: {
14274
+ keys: ({
14275
+ /** @description `RSA`, `EC` or `OKP`. */
14276
+ kty: string;
14277
+ /** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
14278
+ kid?: string;
14279
+ use?: string;
14280
+ alg?: string;
14281
+ n?: string;
14282
+ e?: string;
14283
+ crv?: string;
14284
+ x?: string;
14285
+ y?: string;
14286
+ } & {
14287
+ [key: string]: unknown;
14288
+ })[];
14289
+ } | null;
14290
+ /** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
14291
+ jwks_usage?: {
14292
+ kid: string;
14293
+ /** Format: date-time */
14294
+ last_used_at: string;
14295
+ }[] | null;
14108
14296
  /** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
14109
14297
  consent_required?: boolean;
14110
14298
  /** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
@@ -35798,6 +35986,10 @@ export interface operations {
35798
35986
  grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
35799
35987
  client_id?: string;
35800
35988
  client_secret?: string;
35989
+ /** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
35990
+ client_assertion?: string;
35991
+ /** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
35992
+ client_assertion_type?: string;
35801
35993
  scope?: string;
35802
35994
  code?: string;
35803
35995
  code_verifier?: string;
@@ -35902,6 +36094,10 @@ export interface operations {
35902
36094
  grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
35903
36095
  client_id?: string;
35904
36096
  client_secret?: string;
36097
+ /** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
36098
+ client_assertion?: string;
36099
+ /** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
36100
+ client_assertion_type?: string;
35905
36101
  scope?: string;
35906
36102
  code?: string;
35907
36103
  code_verifier?: string;
@@ -35937,6 +36133,10 @@ export interface operations {
35937
36133
  grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
35938
36134
  client_id?: string;
35939
36135
  client_secret?: string;
36136
+ /** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
36137
+ client_assertion?: string;
36138
+ /** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
36139
+ client_assertion_type?: string;
35940
36140
  scope?: string;
35941
36141
  code?: string;
35942
36142
  code_verifier?: string;
package/dist/version.js CHANGED
@@ -9,13 +9,13 @@
9
9
  // login pages could not import the SDK at all. Same pattern as auth-js.
10
10
  //
11
11
  // The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
12
- export const version = "2.9.26";
12
+ export const version = "2.9.27";
13
13
  // Short git SHA of the released commit. The version dates a build; this names
14
14
  // the exact tree, so a canonical log line or an audit entry leads straight to
15
15
  // `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
16
16
  // link) cannot be mistaken for a real commit — auth only records values that
17
17
  // look like a SHA, and this one never will.
18
- export const commit = "57c5e96";
18
+ export const commit = "426e2c0";
19
19
  // What this SDK writes in `x-faable-client`. Exported for a consumer that
20
20
  // builds a strategy on its own (outside `FaableAuthApi`) and still wants the
21
21
  // token request attributed — a bare `authClientCredentials` stamps only what
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.9.26",
3
+ "version": "2.9.27",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",