@faable/auth-sdk 2.9.39 → 2.9.40

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.
@@ -68,6 +68,11 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
68
68
  url: string;
69
69
  }[] | null | undefined;
70
70
  } | null | undefined;
71
+ email_footer?: {
72
+ text: string;
73
+ url?: string | undefined;
74
+ logo_src?: string | undefined;
75
+ } | null | undefined;
71
76
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
72
77
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
73
78
  login_methods?: {
@@ -1041,6 +1046,11 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1041
1046
  callbacks: string[];
1042
1047
  logout_urls: string[];
1043
1048
  web_origins: string[];
1049
+ origin_branding?: {
1050
+ origin: string;
1051
+ name?: string | undefined;
1052
+ logo_src?: string | undefined;
1053
+ }[] | undefined;
1044
1054
  refresh_token: {
1045
1055
  expiration_mode: "expire" | "not-expire";
1046
1056
  infinite_token_lifetime: boolean;
@@ -1146,6 +1156,11 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1146
1156
  callbacks: string[];
1147
1157
  logout_urls: string[];
1148
1158
  web_origins: string[];
1159
+ origin_branding?: {
1160
+ origin: string;
1161
+ name?: string | undefined;
1162
+ logo_src?: string | undefined;
1163
+ }[] | undefined;
1149
1164
  refresh_token: {
1150
1165
  expiration_mode: "expire" | "not-expire";
1151
1166
  infinite_token_lifetime: boolean;
@@ -1254,6 +1269,11 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1254
1269
  callbacks: string[];
1255
1270
  logout_urls: string[];
1256
1271
  web_origins: string[];
1272
+ origin_branding?: {
1273
+ origin: string;
1274
+ name?: string | undefined;
1275
+ logo_src?: string | undefined;
1276
+ }[] | undefined;
1257
1277
  refresh_token: {
1258
1278
  expiration_mode: "expire" | "not-expire";
1259
1279
  infinite_token_lifetime: boolean;
@@ -1361,6 +1381,11 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
1361
1381
  callbacks: string[];
1362
1382
  logout_urls: string[];
1363
1383
  web_origins: string[];
1384
+ origin_branding?: {
1385
+ origin: string;
1386
+ name?: string | undefined;
1387
+ logo_src?: string | undefined;
1388
+ }[] | undefined;
1364
1389
  refresh_token: {
1365
1390
  expiration_mode: "expire" | "not-expire";
1366
1391
  infinite_token_lifetime: boolean;
@@ -67,6 +67,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
67
67
  url: string;
68
68
  }[] | null | undefined;
69
69
  } | null | undefined;
70
+ email_footer?: {
71
+ text: string;
72
+ url?: string | undefined;
73
+ logo_src?: string | undefined;
74
+ } | null | undefined;
70
75
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
71
76
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
72
77
  login_methods?: {
@@ -155,6 +160,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
155
160
  url: string;
156
161
  }[] | null | undefined;
157
162
  } | null | undefined;
163
+ email_footer?: {
164
+ text: string;
165
+ url?: string | undefined;
166
+ logo_src?: string | undefined;
167
+ } | null | undefined;
158
168
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
159
169
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
160
170
  login_methods?: {
@@ -263,6 +273,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
263
273
  url: string;
264
274
  }[] | null | undefined;
265
275
  } | null | undefined;
276
+ email_footer?: {
277
+ text: string;
278
+ url?: string | undefined;
279
+ logo_src?: string | undefined;
280
+ } | null | undefined;
266
281
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
267
282
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
268
283
  login_methods?: {
@@ -354,6 +369,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
354
369
  url: string;
355
370
  }[] | null | undefined;
356
371
  } | null | undefined;
372
+ email_footer?: {
373
+ text: string;
374
+ url?: string | undefined;
375
+ logo_src?: string | undefined;
376
+ } | null | undefined;
357
377
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
358
378
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
359
379
  login_methods?: {
@@ -493,6 +513,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
493
513
  url: string;
494
514
  }[] | null | undefined;
495
515
  } | null | undefined;
516
+ email_footer?: {
517
+ text: string;
518
+ url?: string | undefined;
519
+ logo_src?: string | undefined;
520
+ } | null | undefined;
496
521
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
497
522
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
498
523
  login_methods?: {
@@ -565,6 +590,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
565
590
  url: string;
566
591
  }[] | null | undefined;
567
592
  } | null | undefined;
593
+ email_footer?: {
594
+ text: string;
595
+ url?: string | undefined;
596
+ logo_src?: string | undefined;
597
+ } | null | undefined;
568
598
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
569
599
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
570
600
  login_methods?: {
@@ -640,6 +670,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
640
670
  url: string;
641
671
  }[] | null | undefined;
642
672
  } | null | undefined;
673
+ email_footer?: {
674
+ text: string;
675
+ url?: string | undefined;
676
+ logo_src?: string | undefined;
677
+ } | null | undefined;
643
678
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
644
679
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
645
680
  login_methods?: {
@@ -922,6 +957,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
922
957
  url: string;
923
958
  }[] | null | undefined;
924
959
  } | null | undefined;
960
+ email_footer?: {
961
+ text: string;
962
+ url?: string | undefined;
963
+ logo_src?: string | undefined;
964
+ } | null | undefined;
925
965
  email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
926
966
  email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
927
967
  login_methods?: {
@@ -1541,6 +1581,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1541
1581
  callbacks: string[];
1542
1582
  logout_urls: string[];
1543
1583
  web_origins: string[];
1584
+ origin_branding?: {
1585
+ origin: string;
1586
+ name?: string | undefined;
1587
+ logo_src?: string | undefined;
1588
+ }[] | undefined;
1544
1589
  refresh_token: {
1545
1590
  expiration_mode: "expire" | "not-expire";
1546
1591
  infinite_token_lifetime: boolean;
@@ -1662,6 +1707,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1662
1707
  callbacks: string[];
1663
1708
  logout_urls: string[];
1664
1709
  web_origins: string[];
1710
+ origin_branding?: {
1711
+ origin: string;
1712
+ name?: string | undefined;
1713
+ logo_src?: string | undefined;
1714
+ }[] | undefined;
1665
1715
  refresh_token: {
1666
1716
  expiration_mode: "expire" | "not-expire";
1667
1717
  infinite_token_lifetime: boolean;
@@ -1784,6 +1834,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1784
1834
  callbacks: string[];
1785
1835
  logout_urls: string[];
1786
1836
  web_origins: string[];
1837
+ origin_branding?: {
1838
+ origin: string;
1839
+ name?: string | undefined;
1840
+ logo_src?: string | undefined;
1841
+ }[] | undefined;
1787
1842
  refresh_token: {
1788
1843
  expiration_mode: "expire" | "not-expire";
1789
1844
  infinite_token_lifetime: boolean;
@@ -1907,6 +1962,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1907
1962
  callbacks: string[];
1908
1963
  logout_urls: string[];
1909
1964
  web_origins: string[];
1965
+ origin_branding?: {
1966
+ origin: string;
1967
+ name?: string | undefined;
1968
+ logo_src?: string | undefined;
1969
+ }[] | undefined;
1910
1970
  refresh_token: {
1911
1971
  expiration_mode: "expire" | "not-expire";
1912
1972
  infinite_token_lifetime: boolean;
@@ -2012,6 +2072,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2012
2072
  callbacks: string[];
2013
2073
  logout_urls: string[];
2014
2074
  web_origins: string[];
2075
+ origin_branding?: {
2076
+ origin: string;
2077
+ name?: string | undefined;
2078
+ logo_src?: string | undefined;
2079
+ }[] | undefined;
2015
2080
  refresh_token: {
2016
2081
  expiration_mode: "expire" | "not-expire";
2017
2082
  infinite_token_lifetime: boolean;
@@ -2120,6 +2185,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2120
2185
  callbacks: string[];
2121
2186
  logout_urls: string[];
2122
2187
  web_origins: string[];
2188
+ origin_branding?: {
2189
+ origin: string;
2190
+ name?: string | undefined;
2191
+ logo_src?: string | undefined;
2192
+ }[] | undefined;
2123
2193
  refresh_token: {
2124
2194
  expiration_mode: "expire" | "not-expire";
2125
2195
  infinite_token_lifetime: boolean;
@@ -2244,6 +2314,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2244
2314
  callbacks: string[];
2245
2315
  logout_urls: string[];
2246
2316
  web_origins: string[];
2317
+ origin_branding?: {
2318
+ origin: string;
2319
+ name?: string | undefined;
2320
+ logo_src?: string | undefined;
2321
+ }[] | undefined;
2247
2322
  refresh_token: {
2248
2323
  expiration_mode: "expire" | "not-expire";
2249
2324
  infinite_token_lifetime: boolean;
@@ -2366,6 +2441,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2366
2441
  callbacks: string[];
2367
2442
  logout_urls: string[];
2368
2443
  web_origins: string[];
2444
+ origin_branding?: {
2445
+ origin: string;
2446
+ name?: string | undefined;
2447
+ logo_src?: string | undefined;
2448
+ }[] | undefined;
2369
2449
  refresh_token: {
2370
2450
  expiration_mode: "expire" | "not-expire";
2371
2451
  infinite_token_lifetime: boolean;
@@ -5726,6 +5726,18 @@ export interface components {
5726
5726
  url: string;
5727
5727
  }[] | null;
5728
5728
  } | null;
5729
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
5730
+ email_footer?: {
5731
+ /** @description The footer line, e.g. «Kirbic Booking». */
5732
+ text: string;
5733
+ /**
5734
+ * Format: uri
5735
+ * @description Where the footer line links to.
5736
+ */
5737
+ url?: string;
5738
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
5739
+ logo_src?: string;
5740
+ } | null;
5729
5741
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
5730
5742
  email_change_verification_mode?: "new_only" | "old_and_new";
5731
5743
  /**
@@ -6100,6 +6112,15 @@ export interface components {
6100
6112
  logout_urls: string[];
6101
6113
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
6102
6114
  web_origins: string[];
6115
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
6116
+ origin_branding?: {
6117
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
6118
+ origin: string;
6119
+ /** @description The name the email shows (logo alt text). */
6120
+ name?: string;
6121
+ /** @description The logo at the top of the email. PNG or JPG, https. */
6122
+ logo_src?: string;
6123
+ }[];
6103
6124
  refresh_token: {
6104
6125
  /** @enum {unknown} */
6105
6126
  expiration_mode: "expire" | "not-expire";
@@ -6294,6 +6315,15 @@ export interface components {
6294
6315
  logout_urls?: string[];
6295
6316
  /** @description Whitelist of origins (scheme://host[:port], no path) allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty allows any origin. */
6296
6317
  web_origins?: string[];
6318
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
6319
+ origin_branding?: {
6320
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
6321
+ origin: string;
6322
+ /** @description The name the email shows (logo alt text). */
6323
+ name?: string;
6324
+ /** @description The logo at the top of the email. PNG or JPG, https. */
6325
+ logo_src?: string;
6326
+ }[];
6297
6327
  refresh_token?: {
6298
6328
  /** @enum {unknown} */
6299
6329
  expiration_mode: "expire" | "not-expire";
@@ -8560,6 +8590,17 @@ export interface components {
8560
8590
  url: string;
8561
8591
  }[] | null;
8562
8592
  } | null;
8593
+ email_footer?: {
8594
+ /** @description The footer line, e.g. «Kirbic Booking». */
8595
+ text: string;
8596
+ /**
8597
+ * Format: uri
8598
+ * @description Where the footer line links to.
8599
+ */
8600
+ url?: string;
8601
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
8602
+ logo_src?: string;
8603
+ } | null;
8563
8604
  login_methods?: {
8564
8605
  /** @description Order in which the hosted login screen renders the available methods. Entries are Connection resource ids (`connection_xxx`) or the literal `passkey`. Methods not listed keep the built-in order (passwordless, database, social) after the listed ones; ids that no longer resolve are ignored. Listing an `oidc` connection here is also the only way to surface it on the login screen — see resolveLoginMethods(). */
8565
8606
  order?: string[];
@@ -8807,6 +8848,7 @@ export interface components {
8807
8848
  * - `saml_not_enabled` (404): This client does not have SAML enabled.
8808
8849
  * - `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.
8809
8850
  * - `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.
8851
+ * - `invalid_origin_branding` (400): Every `origin_branding` entry must name an origin of the same client’s `web_origins` (sent in the same update, or already on the client).
8810
8852
  * - `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.
8811
8853
  * - `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.
8812
8854
  * - `audience_not_found` (403): The `audience` does not name an API registered in this account.
@@ -8891,7 +8933,7 @@ export interface components {
8891
8933
  * - `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.
8892
8934
  * @enum {string}
8893
8935
  */
8894
- 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" | "challenge_required" | "challenge_invalid" | "challenge_unsupported" | "challenge_unavailable" | "origin_required" | "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" | "phone_change_requires_verification" | "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";
8936
+ 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" | "challenge_required" | "challenge_invalid" | "challenge_unsupported" | "challenge_unavailable" | "origin_required" | "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" | "phone_change_requires_verification" | "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_origin_branding" | "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";
8895
8937
  /** @description Every error response has this shape. Branch on `error_code`, never on `message`: the message is written for a person and may change. */
8896
8938
  ErrorResponse: {
8897
8939
  /** @description The HTTP status, repeated. */
@@ -8991,6 +9033,18 @@ export interface operations {
8991
9033
  url: string;
8992
9034
  }[] | null;
8993
9035
  } | null;
9036
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
9037
+ email_footer?: {
9038
+ /** @description The footer line, e.g. «Kirbic Booking». */
9039
+ text: string;
9040
+ /**
9041
+ * Format: uri
9042
+ * @description Where the footer line links to.
9043
+ */
9044
+ url?: string;
9045
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
9046
+ logo_src?: string;
9047
+ } | null;
8994
9048
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
8995
9049
  email_change_verification_mode?: "new_only" | "old_and_new";
8996
9050
  /**
@@ -9365,6 +9419,18 @@ export interface operations {
9365
9419
  url: string;
9366
9420
  }[] | null;
9367
9421
  } | null;
9422
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
9423
+ email_footer?: {
9424
+ /** @description The footer line, e.g. «Kirbic Booking». */
9425
+ text: string;
9426
+ /**
9427
+ * Format: uri
9428
+ * @description Where the footer line links to.
9429
+ */
9430
+ url?: string;
9431
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
9432
+ logo_src?: string;
9433
+ } | null;
9368
9434
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
9369
9435
  email_change_verification_mode?: "new_only" | "old_and_new";
9370
9436
  /**
@@ -9627,6 +9693,18 @@ export interface operations {
9627
9693
  url: string;
9628
9694
  }[] | null;
9629
9695
  } | null;
9696
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
9697
+ email_footer?: {
9698
+ /** @description The footer line, e.g. «Kirbic Booking». */
9699
+ text: string;
9700
+ /**
9701
+ * Format: uri
9702
+ * @description Where the footer line links to.
9703
+ */
9704
+ url?: string;
9705
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
9706
+ logo_src?: string;
9707
+ } | null;
9630
9708
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
9631
9709
  email_change_verification_mode?: "new_only" | "old_and_new";
9632
9710
  /**
@@ -9855,6 +9933,17 @@ export interface operations {
9855
9933
  url: string;
9856
9934
  }[] | null;
9857
9935
  } | null;
9936
+ email_footer?: {
9937
+ /** @description The footer line, e.g. «Kirbic Booking». */
9938
+ text: string;
9939
+ /**
9940
+ * Format: uri
9941
+ * @description Where the footer line links to.
9942
+ */
9943
+ url?: string;
9944
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
9945
+ logo_src?: string;
9946
+ } | null;
9858
9947
  login_methods?: {
9859
9948
  /** @description Order in which the hosted login screen renders the available methods. Entries are Connection resource ids (`connection_xxx`) or the literal `passkey`. Methods not listed keep the built-in order (passwordless, database, social) after the listed ones; ids that no longer resolve are ignored. Listing an `oidc` connection here is also the only way to surface it on the login screen — see resolveLoginMethods(). */
9860
9949
  order?: string[];
@@ -9979,6 +10068,18 @@ export interface operations {
9979
10068
  url: string;
9980
10069
  }[] | null;
9981
10070
  } | null;
10071
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
10072
+ email_footer?: {
10073
+ /** @description The footer line, e.g. «Kirbic Booking». */
10074
+ text: string;
10075
+ /**
10076
+ * Format: uri
10077
+ * @description Where the footer line links to.
10078
+ */
10079
+ url?: string;
10080
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
10081
+ logo_src?: string;
10082
+ } | null;
9982
10083
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
9983
10084
  email_change_verification_mode?: "new_only" | "old_and_new";
9984
10085
  /**
@@ -11364,6 +11465,18 @@ export interface operations {
11364
11465
  url: string;
11365
11466
  }[] | null;
11366
11467
  } | null;
11468
+ /** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
11469
+ email_footer?: {
11470
+ /** @description The footer line, e.g. «Kirbic Booking». */
11471
+ text: string;
11472
+ /**
11473
+ * Format: uri
11474
+ * @description Where the footer line links to.
11475
+ */
11476
+ url?: string;
11477
+ /** @description A small emblem above the line (24 px). PNG or JPG, https. */
11478
+ logo_src?: string;
11479
+ } | null;
11367
11480
  /** @description Policy for the user email-change flow. `new_only` (default) sends a single confirmation link to the new email. `old_and_new` requires the user to also click a link sent to the previous email before the swap takes effect — stricter, useful for tenants with higher-risk users. */
11368
11481
  email_change_verification_mode?: "new_only" | "old_and_new";
11369
11482
  /**
@@ -13194,6 +13307,15 @@ export interface operations {
13194
13307
  logout_urls: string[];
13195
13308
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
13196
13309
  web_origins: string[];
13310
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
13311
+ origin_branding?: {
13312
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
13313
+ origin: string;
13314
+ /** @description The name the email shows (logo alt text). */
13315
+ name?: string;
13316
+ /** @description The logo at the top of the email. PNG or JPG, https. */
13317
+ logo_src?: string;
13318
+ }[];
13197
13319
  refresh_token: {
13198
13320
  /** @enum {unknown} */
13199
13321
  expiration_mode: "expire" | "not-expire";
@@ -13459,6 +13581,15 @@ export interface operations {
13459
13581
  logout_urls: string[];
13460
13582
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
13461
13583
  web_origins: string[];
13584
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
13585
+ origin_branding?: {
13586
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
13587
+ origin: string;
13588
+ /** @description The name the email shows (logo alt text). */
13589
+ name?: string;
13590
+ /** @description The logo at the top of the email. PNG or JPG, https. */
13591
+ logo_src?: string;
13592
+ }[];
13462
13593
  refresh_token: {
13463
13594
  /** @enum {unknown} */
13464
13595
  expiration_mode: "expire" | "not-expire";
@@ -13725,6 +13856,15 @@ export interface operations {
13725
13856
  logout_urls?: string[];
13726
13857
  /** @description Whitelist of origins (scheme://host[:port], no path) allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty allows any origin. */
13727
13858
  web_origins?: string[];
13859
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
13860
+ origin_branding?: {
13861
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
13862
+ origin: string;
13863
+ /** @description The name the email shows (logo alt text). */
13864
+ name?: string;
13865
+ /** @description The logo at the top of the email. PNG or JPG, https. */
13866
+ logo_src?: string;
13867
+ }[];
13728
13868
  refresh_token?: {
13729
13869
  /** @enum {unknown} */
13730
13870
  expiration_mode: "expire" | "not-expire";
@@ -13874,6 +14014,15 @@ export interface operations {
13874
14014
  logout_urls: string[];
13875
14015
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
13876
14016
  web_origins: string[];
14017
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
14018
+ origin_branding?: {
14019
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
14020
+ origin: string;
14021
+ /** @description The name the email shows (logo alt text). */
14022
+ name?: string;
14023
+ /** @description The logo at the top of the email. PNG or JPG, https. */
14024
+ logo_src?: string;
14025
+ }[];
13877
14026
  refresh_token: {
13878
14027
  /** @enum {unknown} */
13879
14028
  expiration_mode: "expire" | "not-expire";
@@ -14145,6 +14294,15 @@ export interface operations {
14145
14294
  logout_urls: string[];
14146
14295
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
14147
14296
  web_origins: string[];
14297
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
14298
+ origin_branding?: {
14299
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
14300
+ origin: string;
14301
+ /** @description The name the email shows (logo alt text). */
14302
+ name?: string;
14303
+ /** @description The logo at the top of the email. PNG or JPG, https. */
14304
+ logo_src?: string;
14305
+ }[];
14148
14306
  refresh_token: {
14149
14307
  /** @enum {unknown} */
14150
14308
  expiration_mode: "expire" | "not-expire";
@@ -14414,6 +14572,15 @@ export interface operations {
14414
14572
  logout_urls: string[];
14415
14573
  /** @description Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin. */
14416
14574
  web_origins: string[];
14575
+ /** @description Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry. */
14576
+ origin_branding?: {
14577
+ /** @description An origin of this client’s `web_origins` (scheme://host[:port]). */
14578
+ origin: string;
14579
+ /** @description The name the email shows (logo alt text). */
14580
+ name?: string;
14581
+ /** @description The logo at the top of the email. PNG or JPG, https. */
14582
+ logo_src?: string;
14583
+ }[];
14417
14584
  refresh_token: {
14418
14585
  /** @enum {unknown} */
14419
14586
  expiration_mode: "expire" | "not-expire";
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.39";
12
+ export const version = "2.9.40";
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 = "f7b5494";
18
+ export const commit = "47219e8";
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.39",
3
+ "version": "2.9.40",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "2.115.1",
6
+ "version": "2.116.0",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -205,6 +205,35 @@
205
205
  "additionalProperties": false,
206
206
  "nullable": true
207
207
  },
208
+ "email_footer": {
209
+ "type": "object",
210
+ "required": [
211
+ "text"
212
+ ],
213
+ "properties": {
214
+ "text": {
215
+ "type": "string",
216
+ "minLength": 1,
217
+ "maxLength": 120,
218
+ "description": "The footer line, e.g. «Kirbic Booking»."
219
+ },
220
+ "url": {
221
+ "type": "string",
222
+ "format": "uri",
223
+ "maxLength": 500,
224
+ "description": "Where the footer line links to."
225
+ },
226
+ "logo_src": {
227
+ "type": "string",
228
+ "maxLength": 500,
229
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
230
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
231
+ }
232
+ },
233
+ "additionalProperties": false,
234
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
235
+ "nullable": true
236
+ },
208
237
  "email_change_verification_mode": {
209
238
  "anyOf": [
210
239
  {
@@ -1679,6 +1708,37 @@
1679
1708
  },
1680
1709
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
1681
1710
  },
1711
+ "origin_branding": {
1712
+ "type": "array",
1713
+ "items": {
1714
+ "type": "object",
1715
+ "required": [
1716
+ "origin"
1717
+ ],
1718
+ "properties": {
1719
+ "origin": {
1720
+ "type": "string",
1721
+ "maxLength": 300,
1722
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
1723
+ },
1724
+ "name": {
1725
+ "type": "string",
1726
+ "minLength": 1,
1727
+ "maxLength": 200,
1728
+ "description": "The name the email shows (logo alt text)."
1729
+ },
1730
+ "logo_src": {
1731
+ "type": "string",
1732
+ "maxLength": 500,
1733
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
1734
+ "description": "The logo at the top of the email. PNG or JPG, https."
1735
+ }
1736
+ },
1737
+ "additionalProperties": false
1738
+ },
1739
+ "maxItems": 500,
1740
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
1741
+ },
1682
1742
  "refresh_token": {
1683
1743
  "type": "object",
1684
1744
  "required": [
@@ -2600,6 +2660,37 @@
2600
2660
  },
2601
2661
  "description": "Whitelist of origins (scheme://host[:port], no path) allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty allows any origin."
2602
2662
  },
2663
+ "origin_branding": {
2664
+ "type": "array",
2665
+ "items": {
2666
+ "type": "object",
2667
+ "required": [
2668
+ "origin"
2669
+ ],
2670
+ "properties": {
2671
+ "origin": {
2672
+ "type": "string",
2673
+ "maxLength": 300,
2674
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
2675
+ },
2676
+ "name": {
2677
+ "type": "string",
2678
+ "minLength": 1,
2679
+ "maxLength": 200,
2680
+ "description": "The name the email shows (logo alt text)."
2681
+ },
2682
+ "logo_src": {
2683
+ "type": "string",
2684
+ "maxLength": 500,
2685
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
2686
+ "description": "The logo at the top of the email. PNG or JPG, https."
2687
+ }
2688
+ },
2689
+ "additionalProperties": false
2690
+ },
2691
+ "maxItems": 500,
2692
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
2693
+ },
2603
2694
  "refresh_token": {
2604
2695
  "type": "object",
2605
2696
  "required": [
@@ -9300,6 +9391,41 @@
9300
9391
  }
9301
9392
  ]
9302
9393
  },
9394
+ "email_footer": {
9395
+ "anyOf": [
9396
+ {
9397
+ "type": "object",
9398
+ "required": [
9399
+ "text"
9400
+ ],
9401
+ "properties": {
9402
+ "text": {
9403
+ "type": "string",
9404
+ "minLength": 1,
9405
+ "maxLength": 120,
9406
+ "description": "The footer line, e.g. «Kirbic Booking»."
9407
+ },
9408
+ "url": {
9409
+ "type": "string",
9410
+ "format": "uri",
9411
+ "maxLength": 500,
9412
+ "description": "Where the footer line links to."
9413
+ },
9414
+ "logo_src": {
9415
+ "type": "string",
9416
+ "maxLength": 500,
9417
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
9418
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
9419
+ }
9420
+ },
9421
+ "additionalProperties": false,
9422
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line."
9423
+ },
9424
+ {
9425
+ "type": "null"
9426
+ }
9427
+ ]
9428
+ },
9303
9429
  "login_methods": {
9304
9430
  "anyOf": [
9305
9431
  {
@@ -10041,7 +10167,7 @@
10041
10167
  },
10042
10168
  "ErrorCode": {
10043
10169
  "type": "string",
10044
- "description": "Machine-readable error code. One HTTP status per code.\n\n- `bad_request` (400): The request is malformed. `message` says what is wrong.\n- `validation_error` (400): The body, query or path failed schema validation. `details.issues` lists each failing field.\n- `unauthorized` (401): The request carries no valid credentials.\n- `payment_required` (402): The feature is not included in the current plan.\n- `forbidden` (403): The credentials are valid but do not allow this operation.\n- `not_found` (404): The resource does not exist in this account.\n- `method_not_allowed` (405): The HTTP method is not supported on this path.\n- `conflict` (409): The request conflicts with the current state of the resource.\n- `last_sign_in_method` (409): Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first.\n- `payload_too_large` (413): The request body exceeds the size limit.\n- `unsupported_media_type` (415): The `Content-Type` is not accepted by this endpoint.\n- `unprocessable_entity` (422): The request is well-formed but cannot be processed.\n- `too_many_requests` (429): Rate limit exceeded. Honour the `Retry-After` header.\n- `internal_error` (500): Unexpected server error. Retry later; the request id is logged.\n- `already_exists` (400): A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.\n- `invalid_id` (400): The id in the path is not a valid id for this resource.\n- `account_not_found` (404): No Auth Account matches the request (domain, header or token).\n- `invalid_query` (400): The `?query=` FaableQL expression could not be parsed.\n- `search_not_supported` (400): This resource does not support `?search=`.\n- `invalid_expand` (400): An `?expand=` path is not allowed on this resource.\n- `access_denied` (403): The caller may not access this row (ownership or machine-to-machine restriction).\n- `insufficient_scope` (403): The token lacks a scope this operation requires. `message` names it.\n- `team_required` (400): An Auth Account must belong to a project (team).\n- `account_limit_reached` (409): The project already has the maximum number of Auth Accounts.\n- `invalid_project_id` (400): The project id is not of the form `project_<hex>` or `team_<hex>`.\n- `account_transfer_refused` (409): The Auth Account cannot be moved to that project. `details.blockers` lists why.\n- `email_sender_domain_not_allowed` (400): The sender address is not in a domain this platform signs email for (AUTH_EMAIL_SENDER_DOMAINS).\n- `plan_required` (402): The setting requires a higher plan. `message` says which.\n- `invalid_canonical_host` (400): `canonical_host` must be this account's own platform host or one of its verified custom domains.\n- `canonical_host_breaks_passkeys` (400): `canonical_host` is outside the account's current WebAuthn RP ID — every passkey already enrolled would stop working. Set `webauthn_rp_id` in the same request to a suffix that covers both.\n- `not_logged_in` (401): There is no signed-in session for this request.\n- `session_already_revoked` (409): The session was already revoked.\n- `invalid_token` (401): The bearer token is missing, malformed, expired or has no subject.\n- `not_owner` (403): The caller may only perform this operation on their own user.\n- `user_suspended` (403): The user is suspended and cannot sign in or be modified.\n- `invalid_credentials` (400): The email/username or password is incorrect.\n- `login_denied` (401): A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.\n- `signup_denied` (403): A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n- `challenge_required` (428): The client's signup protection asks for a proof-of-work challenge. `details` carries it (`id`, `kind: 'pow'`, `seed`, `email_hash`, `difficulty`, `expires_at`): find a `nonce` whose sha256(`seed:email_hash:nonce`) starts with `difficulty` zero bits and repeat the request with `challenge: { id, nonce }`. @faable/auth-js >= 3.4.0 does it for you.\n- `challenge_invalid` (428): The challenge answer was not accepted: unknown, expired or already used, issued for another request, or a wrong nonce. `details` carries a fresh challenge to solve.\n- `challenge_unsupported` (403): The client's signup protection requires the challenge on every signup and this client library cannot solve it. `message` names the minimum @faable/auth-js version.\n- `challenge_unavailable` (503): Faable Challenge could not verify the `challenge_token` sent with this user (it did not answer). Nothing was written: retry the request.\n- `origin_required` (403): This client only accepts the request from a browser: it has Allowed Web Origins and signup protection on, and the request carried no `Origin` header.\n- `client_credentials_denied` (401): An Action denied the client_credentials grant. `message` carries the reason.\n- `m2m_quota_exceeded` (402): The project used the machine-to-machine tokens its plan includes this month. Free is capped; Hobby and Pro are billed per token instead.\n- `signup_disabled` (403): Self-service sign-up is disabled on this connection.\n- `email_taken` (409): Another user in this account already uses that email.\n- `username_taken` (409): Another user of this database connection already uses that username.\n- `invalid_username` (400): The username is empty, or contains an `@` or whitespace. `message` says which.\n- `invalid_email` (400): The email address is not valid.\n- `invalid_name` (400): The name contains a link. `message` says which field.\n- `same_email` (400): The new email is the same as the current one.\n- `user_has_no_email` (400): The operation needs an email but the user has none.\n- `password_too_weak` (400): The password does not meet the connection policy. `message` lists each unmet rule.\n- `invalid_password_hash` (400): The imported password hash cannot be read, or its cost is above what a login can afford. `message` names the field.\n- `weak_password_hash` (400): The imported password hash uses a fast digest (MD5, SHA-1, SHA-2) or a cost below the minimum. `message` says which.\n- `invalid_code` (400): The verification code is wrong, expired or already used.\n- `invalid_phone` (400): The phone number is not E.164 and could not be resolved with the account default country. Include the country code.\n- `phone_changed` (400): The phone on the user changed after the code was sent. Start again.\n- `phone_already_verified` (409): The user already has a verified phone, so there is nothing to verify: `POST /verify-phone/restart` will not swap the number of a pending verification. Nothing to retry. Not to be confused with `phone_change_requires_verification`.\n- `phone_change_requires_verification` (409): The user's current phone is verified, so `PATCH /me` will not change or remove it. To change it, verify the new number by SMS with `POST /user/:id/verify-phone/start`. Sending the same number is not an error. Not to be confused with `phone_already_verified`.\n- `sms_unavailable` (409): This account cannot send SMS right now. The suffix says why: `sms_unavailable:plan`, `:quota`, `:provider`.\n- `sms_failed` (409): The SMS provider rejected the message.\n- `invalid_state` (400): The `state` is missing, expired, or does not describe a resumable step.\n- `state_mismatch` (401): The `state` belongs to another account, session, client or ceremony.\n- `invalid_ticket` (400): The ticket does not exist or is not the kind this endpoint accepts.\n- `ticket_used` (400): The ticket was already consumed.\n- `ticket_expired` (400): The ticket is past its expiry.\n- `ticket_not_found` (404): No ticket with that id belongs to this user.\n- `credential_not_found` (404): The user has no password credential on this connection.\n- `invalid_link` (400): The magic link is malformed.\n- `expired_link` (400): The magic link token was not found or has expired.\n- `invalid_otp` (401): The one-time password is wrong or expired.\n- `invalid_client` (400): The `client_id` in the request does not name a client of this account.\n- `client_not_found` (404): No client with that `client_id`.\n- `client_mismatch` (401): The client belongs to a different account.\n- `invalid_client_metadata` (400): A client field was rejected: by dynamic client registration (RFC 7591), or on a client create/update (`initiate_login_uri`). `message` names it.\n- `invalid_connection` (400): The connection does not exist, is disabled, or is not of the type this flow needs.\n- `no_database_connection` (400): The tenant has no database connection, so there is nowhere to store a password. Create one and retry.\n- `connection_required` (400): No connection was given and the client has no `default_connection`.\n- `connection_misconfigured` (400): The connection is missing settings needed to talk to its provider.\n- `passwordless_unavailable` (400): No passwordless connection is configured or enabled for this client.\n- `ambiguous_connection` (400): Several connections match; pass `connection_id`.\n- `invalid_redirect_uri` (400): The redirect URI is not registered for the client.\n- `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.\n- `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.\n- `saml_not_enabled` (404): This client does not have SAML enabled.\n- `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.\n- `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.\n- `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.\n- `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.\n- `audience_not_found` (403): The `audience` does not name an API registered in this account.\n- `system_resource` (403): The resource is managed by Faable and cannot be modified or deleted.\n- `invalid_request` (400): A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n- `invalid_device_code` (400): The device or user code is invalid or expired.\n- `provider_error` (400): The upstream identity provider returned an error. The suffix is the provider’s own code, when it sent one: `provider_error:bad_refresh_token` (the user must re-authorize), `provider_error:incorrect_client_credentials` (our configuration, the user can do nothing). `details.provider_error_description` carries the provider’s sentence.\n- `identity_already_linked` (409): That external identity is already linked to another user.\n- `identity_link_denied` (409): That external identity cannot be linked to this user.\n- `identity_conflict` (409): The user already has a linked identity for this connection.\n- `identity_orphaned` (400): The identity pointed at a user that no longer exists; it was removed. Sign in again.\n- `no_provider_token` (400): The identity holds no provider access token.\n- `no_refresh_token` (400): The identity holds no provider refresh token, so it cannot be refreshed.\n- `action_unavailable` (401): The Action that paused this login is disabled or belongs elsewhere.\n- `login_flow_misconfigured` (500): The login flow of this account cannot run. `message` carries the node error.\n- `mfa_required` (403): The login needs a second factor that this flow cannot collect, or one is still pending on the session.\n- `step_up_required` (403): Confirm an existing factor before changing your factors.\n- `reauth_required` (403): The operation needs a recent sign-in (and the second factor, when the user has one). Sign in again with `max_age=0` and retry with the new token.\n- `invalid_current_password` (400): The current password is wrong.\n- `email_not_verified` (403): The user's email is not verified, and the operation needs it to be.\n- `invalid_profile_field` (400): A profile field is not declared for this application, or its value does not match the declaration. `message` names the key.\n- `interaction_required` (403): An Action asked for a redirect on a non-interactive flow.\n- `passkey_login_disabled` (400): Sign in with a passkey is not enabled for this client.\n- `mfa_pending` (401): A second-factor challenge is pending; answer it before continuing.\n- `mfa_invalid_code` (401): The authenticator code did not verify.\n- `mfa_invalid_recovery_code` (401): The recovery code did not verify.\n- `too_many_attempts` (429): Too many wrong codes. Wait a few minutes and try again.\n- `too_many_login_attempts` (429): Too many failed sign-in attempts for this email or username from this network. Wait a few minutes and try again.\n- `totp_not_allowed` (401): This account does not accept authenticator apps.\n- `no_usable_factor` (400): The user has no confirmed second factor to challenge.\n- `factor_not_found` (400): No factor with that id belongs to this user.\n- `factor_already_confirmed` (400): The factor was already confirmed.\n- `invalid_factor` (400): The factor cannot be verified (no secret material).\n- `session_missing` (401): The session that started this login no longer exists.\n- `passkey_verification_failed` (400): The WebAuthn response could not be verified.\n- `no_passkey_enrolled` (400): The user has no passkey to sign in with.\n- `malformed_credential` (400): The WebAuthn credential is malformed.\n- `unknown_passkey` (401): The passkey is not enrolled for this user.\n- `invalid_passkey` (401): The passkey assertion did not verify.\n- `invalid_invite_url` (400): An invite's `accept_url` or `redirect_uri` is not an http(s) URL at an origin of this tenant's client callbacks or `callback_hostnames`, or it carries a fragment.\n- `invite_email_mismatch` (403): The invite is for another email address than the accepting user's. `details.invited_email` shows it masked.\n- `invite_email_unverified` (403): The accepting user's email matches the invite but is not verified yet.\n- `invite_not_found` (404): No invite with that id in this account.\n- `invite_used` (400): The invite was already accepted.\n- `already_member` (400): The user is already a member of the team.\n- `not_a_member` (404): The user is not a member of the team.\n- `consent_options_unavailable` (502): The consent screen could not load the choices from the API being authorized (its `consent_options.url`). Try again in a moment.\n- `consent_choice_invalid` (400): The choice sent with the consent decision is not one the API offered for this user.\n- `oauth21_required` (400): The tenant enforces OAuth 2.1 (`oauth21_enabled`) and the request is one OAuth 2.1 removed: a `response_type` other than `code`, an authorization request without PKCE (`code_challenge` with `S256`), or the password grant. `message` says which. Update the application (with `@faable/auth-js`, version 3.1.0 or later) or turn `oauth21_enabled` off for the tenant.\n- `registration_disabled` (403): Dynamic client registration is turned off for this tenant. Create the client from the dashboard or the Management API, or turn on `dynamic_client_registration_enabled`.\n- `invalid_email_domain` (400): Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.\n- `public_email_domain` (400): A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.\n- `organization_domain_not_found` (404): The organization has no such domain.\n- `organization_domain_taken` (409): Another organization of this tenant already verified this domain. A domain belongs to one organization.\n- `organization_domain_unverified` (400): The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.\n- `plan_unavailable` (503): The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.\n- `organization_domain_mismatch` (403): This organization's identity provider can only sign in addresses of the organization's verified email domains.\n- `team_not_in_organization` (400): Auto-join can only put people in teams of the same organization. `details.teams` lists the others.\n- `organization_has_no_idp` (400): Requiring SSO needs an identity provider: bind an `oidc` connection to the organization first.\n- `organization_not_found` (404): No organization with that id in this account.\n- `invalid_user` (400): The user does not exist in this account.\n- `not_an_organization_admin` (404): The user is not an admin of the organization.\n- `last_organization_admin` (409): An organization keeps at least one admin. Add another admin before removing this one.\n- `team_id_unavailable` (409): The team id cannot be used in this tenant. Pick another id or let the API generate one.\n- `use_team_member_route` (400): This generic route cannot create memberships. Use `POST /team/{team_id}/member` for team members or `POST /role/{role_id}/users` for role grants.\n- `role_not_found` (404): No role with that id in this account.\n- `invalid_role` (400): The role belongs to another account.\n- `invalid_permission` (400): A permission is not in the catalog of its Api, or the Api is not in this account. `details.permissions` lists the ones refused.\n- `flow_not_found` (400): The login flow does not exist in this account.\n- `revision_not_found` (404): The revision is not in the flow history.\n- `invalid_webhook_event` (400): An event is not in the webhook event catalog. `message` and `details.valid_events` list the valid ones.\n- `invalid_webhook_url` (400): The webhook URL must be an absolute `https` URL.\n- `not_a_webhook` (400): The operation only applies to `webhook` subscriptions.\n- `delivery_not_found` (404): No webhook delivery with that id for this subscription.\n- `delivery_in_progress` (409): The delivery is being attempted right now; retry the redeliver in a minute.\n- `account_mismatch` (400): The `account_id` in the body is not the account the request is scoped to (`x-faableauth-account`).\n- `connect_redirect_uri_missing` (400): The client's callbacks do not include `<site_url>/wp-login.php?faable-auth=callback`.\n- `invalid_site_url` (400): `site_url` is not an absolute http(s) URL without query string or fragment.\n- `handoff_not_found` (404): No connect handoff matches that code.\n- `handoff_expired` (410): The connect handoff is past its expiry. Start again.\n- `handoff_used` (410): The connect handoff was already redeemed.\n- `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.",
10170
+ "description": "Machine-readable error code. One HTTP status per code.\n\n- `bad_request` (400): The request is malformed. `message` says what is wrong.\n- `validation_error` (400): The body, query or path failed schema validation. `details.issues` lists each failing field.\n- `unauthorized` (401): The request carries no valid credentials.\n- `payment_required` (402): The feature is not included in the current plan.\n- `forbidden` (403): The credentials are valid but do not allow this operation.\n- `not_found` (404): The resource does not exist in this account.\n- `method_not_allowed` (405): The HTTP method is not supported on this path.\n- `conflict` (409): The request conflicts with the current state of the resource.\n- `last_sign_in_method` (409): Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first.\n- `payload_too_large` (413): The request body exceeds the size limit.\n- `unsupported_media_type` (415): The `Content-Type` is not accepted by this endpoint.\n- `unprocessable_entity` (422): The request is well-formed but cannot be processed.\n- `too_many_requests` (429): Rate limit exceeded. Honour the `Retry-After` header.\n- `internal_error` (500): Unexpected server error. Retry later; the request id is logged.\n- `already_exists` (400): A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.\n- `invalid_id` (400): The id in the path is not a valid id for this resource.\n- `account_not_found` (404): No Auth Account matches the request (domain, header or token).\n- `invalid_query` (400): The `?query=` FaableQL expression could not be parsed.\n- `search_not_supported` (400): This resource does not support `?search=`.\n- `invalid_expand` (400): An `?expand=` path is not allowed on this resource.\n- `access_denied` (403): The caller may not access this row (ownership or machine-to-machine restriction).\n- `insufficient_scope` (403): The token lacks a scope this operation requires. `message` names it.\n- `team_required` (400): An Auth Account must belong to a project (team).\n- `account_limit_reached` (409): The project already has the maximum number of Auth Accounts.\n- `invalid_project_id` (400): The project id is not of the form `project_<hex>` or `team_<hex>`.\n- `account_transfer_refused` (409): The Auth Account cannot be moved to that project. `details.blockers` lists why.\n- `email_sender_domain_not_allowed` (400): The sender address is not in a domain this platform signs email for (AUTH_EMAIL_SENDER_DOMAINS).\n- `plan_required` (402): The setting requires a higher plan. `message` says which.\n- `invalid_canonical_host` (400): `canonical_host` must be this account's own platform host or one of its verified custom domains.\n- `canonical_host_breaks_passkeys` (400): `canonical_host` is outside the account's current WebAuthn RP ID — every passkey already enrolled would stop working. Set `webauthn_rp_id` in the same request to a suffix that covers both.\n- `not_logged_in` (401): There is no signed-in session for this request.\n- `session_already_revoked` (409): The session was already revoked.\n- `invalid_token` (401): The bearer token is missing, malformed, expired or has no subject.\n- `not_owner` (403): The caller may only perform this operation on their own user.\n- `user_suspended` (403): The user is suspended and cannot sign in or be modified.\n- `invalid_credentials` (400): The email/username or password is incorrect.\n- `login_denied` (401): A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.\n- `signup_denied` (403): A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n- `challenge_required` (428): The client's signup protection asks for a proof-of-work challenge. `details` carries it (`id`, `kind: 'pow'`, `seed`, `email_hash`, `difficulty`, `expires_at`): find a `nonce` whose sha256(`seed:email_hash:nonce`) starts with `difficulty` zero bits and repeat the request with `challenge: { id, nonce }`. @faable/auth-js >= 3.4.0 does it for you.\n- `challenge_invalid` (428): The challenge answer was not accepted: unknown, expired or already used, issued for another request, or a wrong nonce. `details` carries a fresh challenge to solve.\n- `challenge_unsupported` (403): The client's signup protection requires the challenge on every signup and this client library cannot solve it. `message` names the minimum @faable/auth-js version.\n- `challenge_unavailable` (503): Faable Challenge could not verify the `challenge_token` sent with this user (it did not answer). Nothing was written: retry the request.\n- `origin_required` (403): This client only accepts the request from a browser: it has Allowed Web Origins and signup protection on, and the request carried no `Origin` header.\n- `client_credentials_denied` (401): An Action denied the client_credentials grant. `message` carries the reason.\n- `m2m_quota_exceeded` (402): The project used the machine-to-machine tokens its plan includes this month. Free is capped; Hobby and Pro are billed per token instead.\n- `signup_disabled` (403): Self-service sign-up is disabled on this connection.\n- `email_taken` (409): Another user in this account already uses that email.\n- `username_taken` (409): Another user of this database connection already uses that username.\n- `invalid_username` (400): The username is empty, or contains an `@` or whitespace. `message` says which.\n- `invalid_email` (400): The email address is not valid.\n- `invalid_name` (400): The name contains a link. `message` says which field.\n- `same_email` (400): The new email is the same as the current one.\n- `user_has_no_email` (400): The operation needs an email but the user has none.\n- `password_too_weak` (400): The password does not meet the connection policy. `message` lists each unmet rule.\n- `invalid_password_hash` (400): The imported password hash cannot be read, or its cost is above what a login can afford. `message` names the field.\n- `weak_password_hash` (400): The imported password hash uses a fast digest (MD5, SHA-1, SHA-2) or a cost below the minimum. `message` says which.\n- `invalid_code` (400): The verification code is wrong, expired or already used.\n- `invalid_phone` (400): The phone number is not E.164 and could not be resolved with the account default country. Include the country code.\n- `phone_changed` (400): The phone on the user changed after the code was sent. Start again.\n- `phone_already_verified` (409): The user already has a verified phone, so there is nothing to verify: `POST /verify-phone/restart` will not swap the number of a pending verification. Nothing to retry. Not to be confused with `phone_change_requires_verification`.\n- `phone_change_requires_verification` (409): The user's current phone is verified, so `PATCH /me` will not change or remove it. To change it, verify the new number by SMS with `POST /user/:id/verify-phone/start`. Sending the same number is not an error. Not to be confused with `phone_already_verified`.\n- `sms_unavailable` (409): This account cannot send SMS right now. The suffix says why: `sms_unavailable:plan`, `:quota`, `:provider`.\n- `sms_failed` (409): The SMS provider rejected the message.\n- `invalid_state` (400): The `state` is missing, expired, or does not describe a resumable step.\n- `state_mismatch` (401): The `state` belongs to another account, session, client or ceremony.\n- `invalid_ticket` (400): The ticket does not exist or is not the kind this endpoint accepts.\n- `ticket_used` (400): The ticket was already consumed.\n- `ticket_expired` (400): The ticket is past its expiry.\n- `ticket_not_found` (404): No ticket with that id belongs to this user.\n- `credential_not_found` (404): The user has no password credential on this connection.\n- `invalid_link` (400): The magic link is malformed.\n- `expired_link` (400): The magic link token was not found or has expired.\n- `invalid_otp` (401): The one-time password is wrong or expired.\n- `invalid_client` (400): The `client_id` in the request does not name a client of this account.\n- `client_not_found` (404): No client with that `client_id`.\n- `client_mismatch` (401): The client belongs to a different account.\n- `invalid_client_metadata` (400): A client field was rejected: by dynamic client registration (RFC 7591), or on a client create/update (`initiate_login_uri`). `message` names it.\n- `invalid_connection` (400): The connection does not exist, is disabled, or is not of the type this flow needs.\n- `no_database_connection` (400): The tenant has no database connection, so there is nowhere to store a password. Create one and retry.\n- `connection_required` (400): No connection was given and the client has no `default_connection`.\n- `connection_misconfigured` (400): The connection is missing settings needed to talk to its provider.\n- `passwordless_unavailable` (400): No passwordless connection is configured or enabled for this client.\n- `ambiguous_connection` (400): Several connections match; pass `connection_id`.\n- `invalid_redirect_uri` (400): The redirect URI is not registered for the client.\n- `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.\n- `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.\n- `saml_not_enabled` (404): This client does not have SAML enabled.\n- `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.\n- `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.\n- `invalid_origin_branding` (400): Every `origin_branding` entry must name an origin of the same client’s `web_origins` (sent in the same update, or already on the client).\n- `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.\n- `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.\n- `audience_not_found` (403): The `audience` does not name an API registered in this account.\n- `system_resource` (403): The resource is managed by Faable and cannot be modified or deleted.\n- `invalid_request` (400): A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n- `invalid_device_code` (400): The device or user code is invalid or expired.\n- `provider_error` (400): The upstream identity provider returned an error. The suffix is the provider’s own code, when it sent one: `provider_error:bad_refresh_token` (the user must re-authorize), `provider_error:incorrect_client_credentials` (our configuration, the user can do nothing). `details.provider_error_description` carries the provider’s sentence.\n- `identity_already_linked` (409): That external identity is already linked to another user.\n- `identity_link_denied` (409): That external identity cannot be linked to this user.\n- `identity_conflict` (409): The user already has a linked identity for this connection.\n- `identity_orphaned` (400): The identity pointed at a user that no longer exists; it was removed. Sign in again.\n- `no_provider_token` (400): The identity holds no provider access token.\n- `no_refresh_token` (400): The identity holds no provider refresh token, so it cannot be refreshed.\n- `action_unavailable` (401): The Action that paused this login is disabled or belongs elsewhere.\n- `login_flow_misconfigured` (500): The login flow of this account cannot run. `message` carries the node error.\n- `mfa_required` (403): The login needs a second factor that this flow cannot collect, or one is still pending on the session.\n- `step_up_required` (403): Confirm an existing factor before changing your factors.\n- `reauth_required` (403): The operation needs a recent sign-in (and the second factor, when the user has one). Sign in again with `max_age=0` and retry with the new token.\n- `invalid_current_password` (400): The current password is wrong.\n- `email_not_verified` (403): The user's email is not verified, and the operation needs it to be.\n- `invalid_profile_field` (400): A profile field is not declared for this application, or its value does not match the declaration. `message` names the key.\n- `interaction_required` (403): An Action asked for a redirect on a non-interactive flow.\n- `passkey_login_disabled` (400): Sign in with a passkey is not enabled for this client.\n- `mfa_pending` (401): A second-factor challenge is pending; answer it before continuing.\n- `mfa_invalid_code` (401): The authenticator code did not verify.\n- `mfa_invalid_recovery_code` (401): The recovery code did not verify.\n- `too_many_attempts` (429): Too many wrong codes. Wait a few minutes and try again.\n- `too_many_login_attempts` (429): Too many failed sign-in attempts for this email or username from this network. Wait a few minutes and try again.\n- `totp_not_allowed` (401): This account does not accept authenticator apps.\n- `no_usable_factor` (400): The user has no confirmed second factor to challenge.\n- `factor_not_found` (400): No factor with that id belongs to this user.\n- `factor_already_confirmed` (400): The factor was already confirmed.\n- `invalid_factor` (400): The factor cannot be verified (no secret material).\n- `session_missing` (401): The session that started this login no longer exists.\n- `passkey_verification_failed` (400): The WebAuthn response could not be verified.\n- `no_passkey_enrolled` (400): The user has no passkey to sign in with.\n- `malformed_credential` (400): The WebAuthn credential is malformed.\n- `unknown_passkey` (401): The passkey is not enrolled for this user.\n- `invalid_passkey` (401): The passkey assertion did not verify.\n- `invalid_invite_url` (400): An invite's `accept_url` or `redirect_uri` is not an http(s) URL at an origin of this tenant's client callbacks or `callback_hostnames`, or it carries a fragment.\n- `invite_email_mismatch` (403): The invite is for another email address than the accepting user's. `details.invited_email` shows it masked.\n- `invite_email_unverified` (403): The accepting user's email matches the invite but is not verified yet.\n- `invite_not_found` (404): No invite with that id in this account.\n- `invite_used` (400): The invite was already accepted.\n- `already_member` (400): The user is already a member of the team.\n- `not_a_member` (404): The user is not a member of the team.\n- `consent_options_unavailable` (502): The consent screen could not load the choices from the API being authorized (its `consent_options.url`). Try again in a moment.\n- `consent_choice_invalid` (400): The choice sent with the consent decision is not one the API offered for this user.\n- `oauth21_required` (400): The tenant enforces OAuth 2.1 (`oauth21_enabled`) and the request is one OAuth 2.1 removed: a `response_type` other than `code`, an authorization request without PKCE (`code_challenge` with `S256`), or the password grant. `message` says which. Update the application (with `@faable/auth-js`, version 3.1.0 or later) or turn `oauth21_enabled` off for the tenant.\n- `registration_disabled` (403): Dynamic client registration is turned off for this tenant. Create the client from the dashboard or the Management API, or turn on `dynamic_client_registration_enabled`.\n- `invalid_email_domain` (400): Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.\n- `public_email_domain` (400): A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.\n- `organization_domain_not_found` (404): The organization has no such domain.\n- `organization_domain_taken` (409): Another organization of this tenant already verified this domain. A domain belongs to one organization.\n- `organization_domain_unverified` (400): The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.\n- `plan_unavailable` (503): The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.\n- `organization_domain_mismatch` (403): This organization's identity provider can only sign in addresses of the organization's verified email domains.\n- `team_not_in_organization` (400): Auto-join can only put people in teams of the same organization. `details.teams` lists the others.\n- `organization_has_no_idp` (400): Requiring SSO needs an identity provider: bind an `oidc` connection to the organization first.\n- `organization_not_found` (404): No organization with that id in this account.\n- `invalid_user` (400): The user does not exist in this account.\n- `not_an_organization_admin` (404): The user is not an admin of the organization.\n- `last_organization_admin` (409): An organization keeps at least one admin. Add another admin before removing this one.\n- `team_id_unavailable` (409): The team id cannot be used in this tenant. Pick another id or let the API generate one.\n- `use_team_member_route` (400): This generic route cannot create memberships. Use `POST /team/{team_id}/member` for team members or `POST /role/{role_id}/users` for role grants.\n- `role_not_found` (404): No role with that id in this account.\n- `invalid_role` (400): The role belongs to another account.\n- `invalid_permission` (400): A permission is not in the catalog of its Api, or the Api is not in this account. `details.permissions` lists the ones refused.\n- `flow_not_found` (400): The login flow does not exist in this account.\n- `revision_not_found` (404): The revision is not in the flow history.\n- `invalid_webhook_event` (400): An event is not in the webhook event catalog. `message` and `details.valid_events` list the valid ones.\n- `invalid_webhook_url` (400): The webhook URL must be an absolute `https` URL.\n- `not_a_webhook` (400): The operation only applies to `webhook` subscriptions.\n- `delivery_not_found` (404): No webhook delivery with that id for this subscription.\n- `delivery_in_progress` (409): The delivery is being attempted right now; retry the redeliver in a minute.\n- `account_mismatch` (400): The `account_id` in the body is not the account the request is scoped to (`x-faableauth-account`).\n- `connect_redirect_uri_missing` (400): The client's callbacks do not include `<site_url>/wp-login.php?faable-auth=callback`.\n- `invalid_site_url` (400): `site_url` is not an absolute http(s) URL without query string or fragment.\n- `handoff_not_found` (404): No connect handoff matches that code.\n- `handoff_expired` (410): The connect handoff is past its expiry. Start again.\n- `handoff_used` (410): The connect handoff was already redeemed.\n- `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.",
10045
10171
  "enum": [
10046
10172
  "bad_request",
10047
10173
  "validation_error",
@@ -10132,6 +10258,7 @@
10132
10258
  "saml_not_enabled",
10133
10259
  "invalid_client_jwks",
10134
10260
  "client_jwks_required",
10261
+ "invalid_origin_branding",
10135
10262
  "invalid_saml_sp",
10136
10263
  "origin_not_allowed",
10137
10264
  "audience_not_found",
@@ -10455,6 +10582,35 @@
10455
10582
  "additionalProperties": false,
10456
10583
  "nullable": true
10457
10584
  },
10585
+ "email_footer": {
10586
+ "type": "object",
10587
+ "required": [
10588
+ "text"
10589
+ ],
10590
+ "properties": {
10591
+ "text": {
10592
+ "type": "string",
10593
+ "minLength": 1,
10594
+ "maxLength": 120,
10595
+ "description": "The footer line, e.g. «Kirbic Booking»."
10596
+ },
10597
+ "url": {
10598
+ "type": "string",
10599
+ "format": "uri",
10600
+ "maxLength": 500,
10601
+ "description": "Where the footer line links to."
10602
+ },
10603
+ "logo_src": {
10604
+ "type": "string",
10605
+ "maxLength": 500,
10606
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
10607
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
10608
+ }
10609
+ },
10610
+ "additionalProperties": false,
10611
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
10612
+ "nullable": true
10613
+ },
10458
10614
  "email_change_verification_mode": {
10459
10615
  "anyOf": [
10460
10616
  {
@@ -11270,6 +11426,35 @@
11270
11426
  "additionalProperties": false,
11271
11427
  "nullable": true
11272
11428
  },
11429
+ "email_footer": {
11430
+ "type": "object",
11431
+ "required": [
11432
+ "text"
11433
+ ],
11434
+ "properties": {
11435
+ "text": {
11436
+ "type": "string",
11437
+ "minLength": 1,
11438
+ "maxLength": 120,
11439
+ "description": "The footer line, e.g. «Kirbic Booking»."
11440
+ },
11441
+ "url": {
11442
+ "type": "string",
11443
+ "format": "uri",
11444
+ "maxLength": 500,
11445
+ "description": "Where the footer line links to."
11446
+ },
11447
+ "logo_src": {
11448
+ "type": "string",
11449
+ "maxLength": 500,
11450
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
11451
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
11452
+ }
11453
+ },
11454
+ "additionalProperties": false,
11455
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
11456
+ "nullable": true
11457
+ },
11273
11458
  "email_change_verification_mode": {
11274
11459
  "anyOf": [
11275
11460
  {
@@ -12322,6 +12507,35 @@
12322
12507
  "additionalProperties": false,
12323
12508
  "nullable": true
12324
12509
  },
12510
+ "email_footer": {
12511
+ "type": "object",
12512
+ "required": [
12513
+ "text"
12514
+ ],
12515
+ "properties": {
12516
+ "text": {
12517
+ "type": "string",
12518
+ "minLength": 1,
12519
+ "maxLength": 120,
12520
+ "description": "The footer line, e.g. «Kirbic Booking»."
12521
+ },
12522
+ "url": {
12523
+ "type": "string",
12524
+ "format": "uri",
12525
+ "maxLength": 500,
12526
+ "description": "Where the footer line links to."
12527
+ },
12528
+ "logo_src": {
12529
+ "type": "string",
12530
+ "maxLength": 500,
12531
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
12532
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
12533
+ }
12534
+ },
12535
+ "additionalProperties": false,
12536
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
12537
+ "nullable": true
12538
+ },
12325
12539
  "email_change_verification_mode": {
12326
12540
  "anyOf": [
12327
12541
  {
@@ -13026,6 +13240,41 @@
13026
13240
  }
13027
13241
  ]
13028
13242
  },
13243
+ "email_footer": {
13244
+ "anyOf": [
13245
+ {
13246
+ "type": "object",
13247
+ "required": [
13248
+ "text"
13249
+ ],
13250
+ "properties": {
13251
+ "text": {
13252
+ "type": "string",
13253
+ "minLength": 1,
13254
+ "maxLength": 120,
13255
+ "description": "The footer line, e.g. «Kirbic Booking»."
13256
+ },
13257
+ "url": {
13258
+ "type": "string",
13259
+ "format": "uri",
13260
+ "maxLength": 500,
13261
+ "description": "Where the footer line links to."
13262
+ },
13263
+ "logo_src": {
13264
+ "type": "string",
13265
+ "maxLength": 500,
13266
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
13267
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
13268
+ }
13269
+ },
13270
+ "additionalProperties": false,
13271
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line."
13272
+ },
13273
+ {
13274
+ "type": "null"
13275
+ }
13276
+ ]
13277
+ },
13029
13278
  "login_methods": {
13030
13279
  "anyOf": [
13031
13280
  {
@@ -13621,6 +13870,35 @@
13621
13870
  "additionalProperties": false,
13622
13871
  "nullable": true
13623
13872
  },
13873
+ "email_footer": {
13874
+ "type": "object",
13875
+ "required": [
13876
+ "text"
13877
+ ],
13878
+ "properties": {
13879
+ "text": {
13880
+ "type": "string",
13881
+ "minLength": 1,
13882
+ "maxLength": 120,
13883
+ "description": "The footer line, e.g. «Kirbic Booking»."
13884
+ },
13885
+ "url": {
13886
+ "type": "string",
13887
+ "format": "uri",
13888
+ "maxLength": 500,
13889
+ "description": "Where the footer line links to."
13890
+ },
13891
+ "logo_src": {
13892
+ "type": "string",
13893
+ "maxLength": 500,
13894
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
13895
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
13896
+ }
13897
+ },
13898
+ "additionalProperties": false,
13899
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
13900
+ "nullable": true
13901
+ },
13624
13902
  "email_change_verification_mode": {
13625
13903
  "anyOf": [
13626
13904
  {
@@ -16890,6 +17168,35 @@
16890
17168
  "additionalProperties": false,
16891
17169
  "nullable": true
16892
17170
  },
17171
+ "email_footer": {
17172
+ "type": "object",
17173
+ "required": [
17174
+ "text"
17175
+ ],
17176
+ "properties": {
17177
+ "text": {
17178
+ "type": "string",
17179
+ "minLength": 1,
17180
+ "maxLength": 120,
17181
+ "description": "The footer line, e.g. «Kirbic Booking»."
17182
+ },
17183
+ "url": {
17184
+ "type": "string",
17185
+ "format": "uri",
17186
+ "maxLength": 500,
17187
+ "description": "Where the footer line links to."
17188
+ },
17189
+ "logo_src": {
17190
+ "type": "string",
17191
+ "maxLength": 500,
17192
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
17193
+ "description": "A small emblem above the line (24 px). PNG or JPG, https."
17194
+ }
17195
+ },
17196
+ "additionalProperties": false,
17197
+ "description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
17198
+ "nullable": true
17199
+ },
16893
17200
  "email_change_verification_mode": {
16894
17201
  "anyOf": [
16895
17202
  {
@@ -21575,6 +21882,37 @@
21575
21882
  },
21576
21883
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
21577
21884
  },
21885
+ "origin_branding": {
21886
+ "type": "array",
21887
+ "items": {
21888
+ "type": "object",
21889
+ "required": [
21890
+ "origin"
21891
+ ],
21892
+ "properties": {
21893
+ "origin": {
21894
+ "type": "string",
21895
+ "maxLength": 300,
21896
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
21897
+ },
21898
+ "name": {
21899
+ "type": "string",
21900
+ "minLength": 1,
21901
+ "maxLength": 200,
21902
+ "description": "The name the email shows (logo alt text)."
21903
+ },
21904
+ "logo_src": {
21905
+ "type": "string",
21906
+ "maxLength": 500,
21907
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
21908
+ "description": "The logo at the top of the email. PNG or JPG, https."
21909
+ }
21910
+ },
21911
+ "additionalProperties": false
21912
+ },
21913
+ "maxItems": 500,
21914
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
21915
+ },
21578
21916
  "refresh_token": {
21579
21917
  "type": "object",
21580
21918
  "required": [
@@ -22493,6 +22831,37 @@
22493
22831
  },
22494
22832
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
22495
22833
  },
22834
+ "origin_branding": {
22835
+ "type": "array",
22836
+ "items": {
22837
+ "type": "object",
22838
+ "required": [
22839
+ "origin"
22840
+ ],
22841
+ "properties": {
22842
+ "origin": {
22843
+ "type": "string",
22844
+ "maxLength": 300,
22845
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
22846
+ },
22847
+ "name": {
22848
+ "type": "string",
22849
+ "minLength": 1,
22850
+ "maxLength": 200,
22851
+ "description": "The name the email shows (logo alt text)."
22852
+ },
22853
+ "logo_src": {
22854
+ "type": "string",
22855
+ "maxLength": 500,
22856
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
22857
+ "description": "The logo at the top of the email. PNG or JPG, https."
22858
+ }
22859
+ },
22860
+ "additionalProperties": false
22861
+ },
22862
+ "maxItems": 500,
22863
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
22864
+ },
22496
22865
  "refresh_token": {
22497
22866
  "type": "object",
22498
22867
  "required": [
@@ -23376,6 +23745,37 @@
23376
23745
  },
23377
23746
  "description": "Whitelist of origins (scheme://host[:port], no path) allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty allows any origin."
23378
23747
  },
23748
+ "origin_branding": {
23749
+ "type": "array",
23750
+ "items": {
23751
+ "type": "object",
23752
+ "required": [
23753
+ "origin"
23754
+ ],
23755
+ "properties": {
23756
+ "origin": {
23757
+ "type": "string",
23758
+ "maxLength": 300,
23759
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
23760
+ },
23761
+ "name": {
23762
+ "type": "string",
23763
+ "minLength": 1,
23764
+ "maxLength": 200,
23765
+ "description": "The name the email shows (logo alt text)."
23766
+ },
23767
+ "logo_src": {
23768
+ "type": "string",
23769
+ "maxLength": 500,
23770
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
23771
+ "description": "The logo at the top of the email. PNG or JPG, https."
23772
+ }
23773
+ },
23774
+ "additionalProperties": false
23775
+ },
23776
+ "maxItems": 500,
23777
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
23778
+ },
23379
23779
  "refresh_token": {
23380
23780
  "type": "object",
23381
23781
  "required": [
@@ -24174,6 +24574,37 @@
24174
24574
  },
24175
24575
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
24176
24576
  },
24577
+ "origin_branding": {
24578
+ "type": "array",
24579
+ "items": {
24580
+ "type": "object",
24581
+ "required": [
24582
+ "origin"
24583
+ ],
24584
+ "properties": {
24585
+ "origin": {
24586
+ "type": "string",
24587
+ "maxLength": 300,
24588
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
24589
+ },
24590
+ "name": {
24591
+ "type": "string",
24592
+ "minLength": 1,
24593
+ "maxLength": 200,
24594
+ "description": "The name the email shows (logo alt text)."
24595
+ },
24596
+ "logo_src": {
24597
+ "type": "string",
24598
+ "maxLength": 500,
24599
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
24600
+ "description": "The logo at the top of the email. PNG or JPG, https."
24601
+ }
24602
+ },
24603
+ "additionalProperties": false
24604
+ },
24605
+ "maxItems": 500,
24606
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
24607
+ },
24177
24608
  "refresh_token": {
24178
24609
  "type": "object",
24179
24610
  "required": [
@@ -25092,6 +25523,37 @@
25092
25523
  },
25093
25524
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
25094
25525
  },
25526
+ "origin_branding": {
25527
+ "type": "array",
25528
+ "items": {
25529
+ "type": "object",
25530
+ "required": [
25531
+ "origin"
25532
+ ],
25533
+ "properties": {
25534
+ "origin": {
25535
+ "type": "string",
25536
+ "maxLength": 300,
25537
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
25538
+ },
25539
+ "name": {
25540
+ "type": "string",
25541
+ "minLength": 1,
25542
+ "maxLength": 200,
25543
+ "description": "The name the email shows (logo alt text)."
25544
+ },
25545
+ "logo_src": {
25546
+ "type": "string",
25547
+ "maxLength": 500,
25548
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
25549
+ "description": "The logo at the top of the email. PNG or JPG, https."
25550
+ }
25551
+ },
25552
+ "additionalProperties": false
25553
+ },
25554
+ "maxItems": 500,
25555
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
25556
+ },
25095
25557
  "refresh_token": {
25096
25558
  "type": "object",
25097
25559
  "required": [
@@ -26011,6 +26473,37 @@
26011
26473
  },
26012
26474
  "description": "Origins allowed to make cross-origin (CORS) requests to the token and passwordless endpoints. Empty = any origin."
26013
26475
  },
26476
+ "origin_branding": {
26477
+ "type": "array",
26478
+ "items": {
26479
+ "type": "object",
26480
+ "required": [
26481
+ "origin"
26482
+ ],
26483
+ "properties": {
26484
+ "origin": {
26485
+ "type": "string",
26486
+ "maxLength": 300,
26487
+ "description": "An origin of this client’s `web_origins` (scheme://host[:port])."
26488
+ },
26489
+ "name": {
26490
+ "type": "string",
26491
+ "minLength": 1,
26492
+ "maxLength": 200,
26493
+ "description": "The name the email shows (logo alt text)."
26494
+ },
26495
+ "logo_src": {
26496
+ "type": "string",
26497
+ "maxLength": 500,
26498
+ "pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
26499
+ "description": "The logo at the top of the email. PNG or JPG, https."
26500
+ }
26501
+ },
26502
+ "additionalProperties": false
26503
+ },
26504
+ "maxItems": 500,
26505
+ "description": "Per-origin branding of the passwordless code email: when `/passwordless/start` comes from one of these origins, the email carries its name and logo instead of the tenant’s. Each origin must be in `web_origins`; removing an origin from `web_origins` drops its entry."
26506
+ },
26014
26507
  "refresh_token": {
26015
26508
  "type": "object",
26016
26509
  "required": [