@faable/auth-sdk 2.9.46 → 2.9.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FaableAuthApi.d.ts +6 -0
- package/dist/api/generated-client.d.ts +324 -3
- package/dist/api/generated-client.js +84 -0
- package/dist/api/types.d.ts +937 -35
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +2618 -96
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.
|
|
6
|
+
"version": "2.121.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -637,6 +637,31 @@
|
|
|
637
637
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
638
638
|
"nullable": true
|
|
639
639
|
},
|
|
640
|
+
"disabled_at": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
643
|
+
"nullable": true
|
|
644
|
+
},
|
|
645
|
+
"disabled_by": {
|
|
646
|
+
"anyOf": [
|
|
647
|
+
{
|
|
648
|
+
"type": "string",
|
|
649
|
+
"enum": [
|
|
650
|
+
"owner"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"type": "string",
|
|
655
|
+
"enum": [
|
|
656
|
+
"staff"
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"type": "null"
|
|
661
|
+
}
|
|
662
|
+
],
|
|
663
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
664
|
+
},
|
|
640
665
|
"createdAt": {
|
|
641
666
|
"type": "string",
|
|
642
667
|
"description": "AuthAccount creation date"
|
|
@@ -2288,6 +2313,10 @@
|
|
|
2288
2313
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
2289
2314
|
"nullable": true
|
|
2290
2315
|
},
|
|
2316
|
+
"include_roles_in_id_token": {
|
|
2317
|
+
"type": "boolean",
|
|
2318
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
2319
|
+
},
|
|
2291
2320
|
"management_scopes": {
|
|
2292
2321
|
"type": "array",
|
|
2293
2322
|
"items": {
|
|
@@ -2545,6 +2574,10 @@
|
|
|
2545
2574
|
},
|
|
2546
2575
|
"uniqueItems": true
|
|
2547
2576
|
},
|
|
2577
|
+
"include_roles_in_id_token": {
|
|
2578
|
+
"type": "boolean",
|
|
2579
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
2580
|
+
},
|
|
2548
2581
|
"management_scopes": {
|
|
2549
2582
|
"type": "array",
|
|
2550
2583
|
"items": {
|
|
@@ -3288,6 +3321,10 @@
|
|
|
3288
3321
|
"description": "Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it.",
|
|
3289
3322
|
"nullable": true
|
|
3290
3323
|
},
|
|
3324
|
+
"include_roles_in_id_token": {
|
|
3325
|
+
"type": "boolean",
|
|
3326
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
3327
|
+
},
|
|
3291
3328
|
"management_scopes": {
|
|
3292
3329
|
"type": "array",
|
|
3293
3330
|
"items": {
|
|
@@ -10167,7 +10204,7 @@
|
|
|
10167
10204
|
},
|
|
10168
10205
|
"ErrorCode": {
|
|
10169
10206
|
"type": "string",
|
|
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.",
|
|
10207
|
+
"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- `account_disabled` (403): The Auth tenant is disabled: nobody can sign in and management writes are refused; reads keep working. `details.disabled_by` is `owner` (enable it again from the dashboard) or `staff` (contact support@faable.com).\n- `account_protected` (409): A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it.\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.",
|
|
10171
10208
|
"enum": [
|
|
10172
10209
|
"bad_request",
|
|
10173
10210
|
"validation_error",
|
|
@@ -10204,6 +10241,8 @@
|
|
|
10204
10241
|
"invalid_token",
|
|
10205
10242
|
"not_owner",
|
|
10206
10243
|
"user_suspended",
|
|
10244
|
+
"account_disabled",
|
|
10245
|
+
"account_protected",
|
|
10207
10246
|
"invalid_credentials",
|
|
10208
10247
|
"login_denied",
|
|
10209
10248
|
"signup_denied",
|
|
@@ -11014,6 +11053,31 @@
|
|
|
11014
11053
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
11015
11054
|
"nullable": true
|
|
11016
11055
|
},
|
|
11056
|
+
"disabled_at": {
|
|
11057
|
+
"type": "string",
|
|
11058
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
11059
|
+
"nullable": true
|
|
11060
|
+
},
|
|
11061
|
+
"disabled_by": {
|
|
11062
|
+
"anyOf": [
|
|
11063
|
+
{
|
|
11064
|
+
"type": "string",
|
|
11065
|
+
"enum": [
|
|
11066
|
+
"owner"
|
|
11067
|
+
]
|
|
11068
|
+
},
|
|
11069
|
+
{
|
|
11070
|
+
"type": "string",
|
|
11071
|
+
"enum": [
|
|
11072
|
+
"staff"
|
|
11073
|
+
]
|
|
11074
|
+
},
|
|
11075
|
+
{
|
|
11076
|
+
"type": "null"
|
|
11077
|
+
}
|
|
11078
|
+
],
|
|
11079
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
11080
|
+
},
|
|
11017
11081
|
"createdAt": {
|
|
11018
11082
|
"type": "string",
|
|
11019
11083
|
"description": "AuthAccount creation date"
|
|
@@ -11858,6 +11922,31 @@
|
|
|
11858
11922
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
11859
11923
|
"nullable": true
|
|
11860
11924
|
},
|
|
11925
|
+
"disabled_at": {
|
|
11926
|
+
"type": "string",
|
|
11927
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
11928
|
+
"nullable": true
|
|
11929
|
+
},
|
|
11930
|
+
"disabled_by": {
|
|
11931
|
+
"anyOf": [
|
|
11932
|
+
{
|
|
11933
|
+
"type": "string",
|
|
11934
|
+
"enum": [
|
|
11935
|
+
"owner"
|
|
11936
|
+
]
|
|
11937
|
+
},
|
|
11938
|
+
{
|
|
11939
|
+
"type": "string",
|
|
11940
|
+
"enum": [
|
|
11941
|
+
"staff"
|
|
11942
|
+
]
|
|
11943
|
+
},
|
|
11944
|
+
{
|
|
11945
|
+
"type": "null"
|
|
11946
|
+
}
|
|
11947
|
+
],
|
|
11948
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
11949
|
+
},
|
|
11861
11950
|
"createdAt": {
|
|
11862
11951
|
"type": "string",
|
|
11863
11952
|
"description": "AuthAccount creation date"
|
|
@@ -12939,6 +13028,31 @@
|
|
|
12939
13028
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
12940
13029
|
"nullable": true
|
|
12941
13030
|
},
|
|
13031
|
+
"disabled_at": {
|
|
13032
|
+
"type": "string",
|
|
13033
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
13034
|
+
"nullable": true
|
|
13035
|
+
},
|
|
13036
|
+
"disabled_by": {
|
|
13037
|
+
"anyOf": [
|
|
13038
|
+
{
|
|
13039
|
+
"type": "string",
|
|
13040
|
+
"enum": [
|
|
13041
|
+
"owner"
|
|
13042
|
+
]
|
|
13043
|
+
},
|
|
13044
|
+
{
|
|
13045
|
+
"type": "string",
|
|
13046
|
+
"enum": [
|
|
13047
|
+
"staff"
|
|
13048
|
+
]
|
|
13049
|
+
},
|
|
13050
|
+
{
|
|
13051
|
+
"type": "null"
|
|
13052
|
+
}
|
|
13053
|
+
],
|
|
13054
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
13055
|
+
},
|
|
12942
13056
|
"createdAt": {
|
|
12943
13057
|
"type": "string",
|
|
12944
13058
|
"description": "AuthAccount creation date"
|
|
@@ -14302,6 +14416,31 @@
|
|
|
14302
14416
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
14303
14417
|
"nullable": true
|
|
14304
14418
|
},
|
|
14419
|
+
"disabled_at": {
|
|
14420
|
+
"type": "string",
|
|
14421
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
14422
|
+
"nullable": true
|
|
14423
|
+
},
|
|
14424
|
+
"disabled_by": {
|
|
14425
|
+
"anyOf": [
|
|
14426
|
+
{
|
|
14427
|
+
"type": "string",
|
|
14428
|
+
"enum": [
|
|
14429
|
+
"owner"
|
|
14430
|
+
]
|
|
14431
|
+
},
|
|
14432
|
+
{
|
|
14433
|
+
"type": "string",
|
|
14434
|
+
"enum": [
|
|
14435
|
+
"staff"
|
|
14436
|
+
]
|
|
14437
|
+
},
|
|
14438
|
+
{
|
|
14439
|
+
"type": "null"
|
|
14440
|
+
}
|
|
14441
|
+
],
|
|
14442
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
14443
|
+
},
|
|
14305
14444
|
"createdAt": {
|
|
14306
14445
|
"type": "string",
|
|
14307
14446
|
"description": "AuthAccount creation date"
|
|
@@ -16411,7 +16550,10 @@
|
|
|
16411
16550
|
"last_login",
|
|
16412
16551
|
"clients",
|
|
16413
16552
|
"connections",
|
|
16414
|
-
"custom_domain_verified"
|
|
16553
|
+
"custom_domain_verified",
|
|
16554
|
+
"disabled_at",
|
|
16555
|
+
"disabled_by",
|
|
16556
|
+
"disabled_reason"
|
|
16415
16557
|
],
|
|
16416
16558
|
"properties": {
|
|
16417
16559
|
"account_id": {
|
|
@@ -16475,6 +16617,45 @@
|
|
|
16475
16617
|
},
|
|
16476
16618
|
"custom_domain_verified": {
|
|
16477
16619
|
"type": "boolean"
|
|
16620
|
+
},
|
|
16621
|
+
"disabled_at": {
|
|
16622
|
+
"anyOf": [
|
|
16623
|
+
{
|
|
16624
|
+
"type": "string"
|
|
16625
|
+
},
|
|
16626
|
+
{
|
|
16627
|
+
"type": "null"
|
|
16628
|
+
}
|
|
16629
|
+
]
|
|
16630
|
+
},
|
|
16631
|
+
"disabled_by": {
|
|
16632
|
+
"anyOf": [
|
|
16633
|
+
{
|
|
16634
|
+
"type": "string",
|
|
16635
|
+
"enum": [
|
|
16636
|
+
"owner"
|
|
16637
|
+
]
|
|
16638
|
+
},
|
|
16639
|
+
{
|
|
16640
|
+
"type": "string",
|
|
16641
|
+
"enum": [
|
|
16642
|
+
"staff"
|
|
16643
|
+
]
|
|
16644
|
+
},
|
|
16645
|
+
{
|
|
16646
|
+
"type": "null"
|
|
16647
|
+
}
|
|
16648
|
+
]
|
|
16649
|
+
},
|
|
16650
|
+
"disabled_reason": {
|
|
16651
|
+
"anyOf": [
|
|
16652
|
+
{
|
|
16653
|
+
"type": "string"
|
|
16654
|
+
},
|
|
16655
|
+
{
|
|
16656
|
+
"type": "null"
|
|
16657
|
+
}
|
|
16658
|
+
]
|
|
16478
16659
|
}
|
|
16479
16660
|
}
|
|
16480
16661
|
}
|
|
@@ -17600,6 +17781,31 @@
|
|
|
17600
17781
|
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
17601
17782
|
"nullable": true
|
|
17602
17783
|
},
|
|
17784
|
+
"disabled_at": {
|
|
17785
|
+
"type": "string",
|
|
17786
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
17787
|
+
"nullable": true
|
|
17788
|
+
},
|
|
17789
|
+
"disabled_by": {
|
|
17790
|
+
"anyOf": [
|
|
17791
|
+
{
|
|
17792
|
+
"type": "string",
|
|
17793
|
+
"enum": [
|
|
17794
|
+
"owner"
|
|
17795
|
+
]
|
|
17796
|
+
},
|
|
17797
|
+
{
|
|
17798
|
+
"type": "string",
|
|
17799
|
+
"enum": [
|
|
17800
|
+
"staff"
|
|
17801
|
+
]
|
|
17802
|
+
},
|
|
17803
|
+
{
|
|
17804
|
+
"type": "null"
|
|
17805
|
+
}
|
|
17806
|
+
],
|
|
17807
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
17808
|
+
},
|
|
17603
17809
|
"createdAt": {
|
|
17604
17810
|
"type": "string",
|
|
17605
17811
|
"description": "AuthAccount creation date"
|
|
@@ -17770,99 +17976,22 @@
|
|
|
17770
17976
|
}
|
|
17771
17977
|
}
|
|
17772
17978
|
},
|
|
17773
|
-
"/
|
|
17774
|
-
"
|
|
17775
|
-
"operationId": "
|
|
17776
|
-
"summary": "
|
|
17979
|
+
"/account/{account_id}/disable": {
|
|
17980
|
+
"post": {
|
|
17981
|
+
"operationId": "account/disable",
|
|
17982
|
+
"summary": "Disable an Account",
|
|
17777
17983
|
"tags": [
|
|
17778
|
-
"
|
|
17984
|
+
"account"
|
|
17779
17985
|
],
|
|
17780
|
-
"description": "
|
|
17986
|
+
"description": "Switches the tenant off without deleting anything: nobody can sign in, management writes are refused (403 `account_disabled`) and reads keep working. Sessions are not revoked — they work again once the tenant is enabled. Idempotent. A tenant disabled by Faable staff answers 403 `account_disabled` with `details.disabled_by: staff`.",
|
|
17781
17987
|
"parameters": [
|
|
17782
|
-
{
|
|
17783
|
-
"schema": {
|
|
17784
|
-
"type": "number",
|
|
17785
|
-
"minimum": 1,
|
|
17786
|
-
"maximum": 200
|
|
17787
|
-
},
|
|
17788
|
-
"in": "query",
|
|
17789
|
-
"name": "pageSize",
|
|
17790
|
-
"required": false,
|
|
17791
|
-
"description": "Number of items per page (max 200)"
|
|
17792
|
-
},
|
|
17793
|
-
{
|
|
17794
|
-
"schema": {
|
|
17795
|
-
"type": "string"
|
|
17796
|
-
},
|
|
17797
|
-
"in": "query",
|
|
17798
|
-
"name": "cursor",
|
|
17799
|
-
"required": false,
|
|
17800
|
-
"description": "Cursor for next page"
|
|
17801
|
-
},
|
|
17802
|
-
{
|
|
17803
|
-
"schema": {
|
|
17804
|
-
"type": "string"
|
|
17805
|
-
},
|
|
17806
|
-
"in": "query",
|
|
17807
|
-
"name": "next",
|
|
17808
|
-
"required": false,
|
|
17809
|
-
"description": "Cursor returned by the previous page"
|
|
17810
|
-
},
|
|
17811
|
-
{
|
|
17812
|
-
"schema": {
|
|
17813
|
-
"type": "string"
|
|
17814
|
-
},
|
|
17815
|
-
"in": "query",
|
|
17816
|
-
"name": "connection_type",
|
|
17817
|
-
"required": false,
|
|
17818
|
-
"description": "Exact match on `connection_type`. Equivalent to `?query=connection_type:<value>`."
|
|
17819
|
-
},
|
|
17820
|
-
{
|
|
17821
|
-
"schema": {
|
|
17822
|
-
"type": "string"
|
|
17823
|
-
},
|
|
17824
|
-
"in": "query",
|
|
17825
|
-
"name": "enabled",
|
|
17826
|
-
"required": false,
|
|
17827
|
-
"description": "Exact match on `enabled`. Equivalent to `?query=enabled:<value>`."
|
|
17828
|
-
},
|
|
17829
|
-
{
|
|
17830
|
-
"schema": {
|
|
17831
|
-
"type": "string"
|
|
17832
|
-
},
|
|
17833
|
-
"in": "query",
|
|
17834
|
-
"name": "category",
|
|
17835
|
-
"required": false,
|
|
17836
|
-
"description": "Exact match on `category`. Equivalent to `?query=category:<value>`."
|
|
17837
|
-
},
|
|
17838
|
-
{
|
|
17839
|
-
"schema": {
|
|
17840
|
-
"type": "boolean"
|
|
17841
|
-
},
|
|
17842
|
-
"in": "query",
|
|
17843
|
-
"name": "count",
|
|
17844
|
-
"required": false,
|
|
17845
|
-
"description": "Also return `total`: the rows matching the whole filter, across every page."
|
|
17846
|
-
},
|
|
17847
17988
|
{
|
|
17848
17989
|
"schema": {
|
|
17849
17990
|
"type": "string"
|
|
17850
17991
|
},
|
|
17851
|
-
"in": "
|
|
17852
|
-
"name": "
|
|
17853
|
-
"required":
|
|
17854
|
-
"description": "Filter using a FaableQL query"
|
|
17855
|
-
},
|
|
17856
|
-
{
|
|
17857
|
-
"schema": {
|
|
17858
|
-
"type": "string",
|
|
17859
|
-
"minLength": 1,
|
|
17860
|
-
"maxLength": 200
|
|
17861
|
-
},
|
|
17862
|
-
"in": "query",
|
|
17863
|
-
"name": "q",
|
|
17864
|
-
"required": false,
|
|
17865
|
-
"description": "Full-text search across: `connection_name`, `connection_type`."
|
|
17992
|
+
"in": "path",
|
|
17993
|
+
"name": "account_id",
|
|
17994
|
+
"required": true
|
|
17866
17995
|
}
|
|
17867
17996
|
],
|
|
17868
17997
|
"security": [
|
|
@@ -17872,18 +18001,2383 @@
|
|
|
17872
18001
|
],
|
|
17873
18002
|
"responses": {
|
|
17874
18003
|
"200": {
|
|
17875
|
-
"description": "
|
|
18004
|
+
"description": "AuthAccount",
|
|
17876
18005
|
"content": {
|
|
17877
18006
|
"application/json": {
|
|
17878
18007
|
"schema": {
|
|
17879
18008
|
"type": "object",
|
|
17880
18009
|
"required": [
|
|
17881
|
-
"
|
|
17882
|
-
"
|
|
17883
|
-
|
|
17884
|
-
|
|
17885
|
-
"
|
|
17886
|
-
|
|
18010
|
+
"id",
|
|
18011
|
+
"name",
|
|
18012
|
+
"domain",
|
|
18013
|
+
"slug",
|
|
18014
|
+
"callback_hostnames",
|
|
18015
|
+
"token_signature",
|
|
18016
|
+
"token_signing_alg",
|
|
18017
|
+
"enabled_locales",
|
|
18018
|
+
"notification_settings",
|
|
18019
|
+
"createdAt"
|
|
18020
|
+
],
|
|
18021
|
+
"properties": {
|
|
18022
|
+
"id": {
|
|
18023
|
+
"type": "string",
|
|
18024
|
+
"description": "AuthAccount ID"
|
|
18025
|
+
},
|
|
18026
|
+
"name": {
|
|
18027
|
+
"type": "string"
|
|
18028
|
+
},
|
|
18029
|
+
"domain": {
|
|
18030
|
+
"type": "string"
|
|
18031
|
+
},
|
|
18032
|
+
"slug": {
|
|
18033
|
+
"type": "string"
|
|
18034
|
+
},
|
|
18035
|
+
"logo_src": {
|
|
18036
|
+
"type": "string",
|
|
18037
|
+
"nullable": true
|
|
18038
|
+
},
|
|
18039
|
+
"icon_src": {
|
|
18040
|
+
"type": "string",
|
|
18041
|
+
"nullable": true
|
|
18042
|
+
},
|
|
18043
|
+
"callback_hostnames": {
|
|
18044
|
+
"type": "array",
|
|
18045
|
+
"items": {
|
|
18046
|
+
"type": "string"
|
|
18047
|
+
}
|
|
18048
|
+
},
|
|
18049
|
+
"token_signature": {
|
|
18050
|
+
"type": "string",
|
|
18051
|
+
"description": "Shared HMAC secret. Used when token_signing_alg is an HS* algorithm; ignored for RS*/ES*/PS*."
|
|
18052
|
+
},
|
|
18053
|
+
"token_signing_alg": {
|
|
18054
|
+
"anyOf": [
|
|
18055
|
+
{
|
|
18056
|
+
"type": "string",
|
|
18057
|
+
"enum": [
|
|
18058
|
+
"RS256"
|
|
18059
|
+
]
|
|
18060
|
+
}
|
|
18061
|
+
],
|
|
18062
|
+
"description": "JWA algorithm used to sign tokens issued by this Account. Today only RS256 is implemented."
|
|
18063
|
+
},
|
|
18064
|
+
"default_connection": {
|
|
18065
|
+
"anyOf": [
|
|
18066
|
+
{
|
|
18067
|
+
"$ref": "#/components/schemas/Connection"
|
|
18068
|
+
},
|
|
18069
|
+
{
|
|
18070
|
+
"type": "string"
|
|
18071
|
+
},
|
|
18072
|
+
{}
|
|
18073
|
+
]
|
|
18074
|
+
},
|
|
18075
|
+
"enabled_locales": {
|
|
18076
|
+
"type": "array",
|
|
18077
|
+
"items": {
|
|
18078
|
+
"type": "string"
|
|
18079
|
+
}
|
|
18080
|
+
},
|
|
18081
|
+
"tags": {
|
|
18082
|
+
"type": "array",
|
|
18083
|
+
"items": {
|
|
18084
|
+
"type": "string"
|
|
18085
|
+
},
|
|
18086
|
+
"description": "Free-form labels on the account. The dashboard stores the environment as an `env:<name>` tag (e.g. `env:production`, `env:staging`, `env:test`)."
|
|
18087
|
+
},
|
|
18088
|
+
"team": {
|
|
18089
|
+
"type": "string",
|
|
18090
|
+
"nullable": true
|
|
18091
|
+
},
|
|
18092
|
+
"notification_settings": {
|
|
18093
|
+
"type": "object",
|
|
18094
|
+
"required": [
|
|
18095
|
+
"welcome_email_enabled",
|
|
18096
|
+
"verify_email_auto_send"
|
|
18097
|
+
],
|
|
18098
|
+
"properties": {
|
|
18099
|
+
"welcome_email_enabled": {
|
|
18100
|
+
"type": "boolean",
|
|
18101
|
+
"description": "Send the built-in welcome email on user.created",
|
|
18102
|
+
"default": false
|
|
18103
|
+
},
|
|
18104
|
+
"verify_email_auto_send": {
|
|
18105
|
+
"type": "boolean",
|
|
18106
|
+
"description": "Send a verification email automatically when a user is created with `email_verified=false` and an email address. The link in the email lands on `GET /verify-email?ticket=...` and flips `email_verified=true` with `email_verified_method=verification_flow`. When `false`, verification emails must be requested explicitly via `POST /user/:id/verify-email/start`.",
|
|
18107
|
+
"default": false
|
|
18108
|
+
}
|
|
18109
|
+
},
|
|
18110
|
+
"additionalProperties": false
|
|
18111
|
+
},
|
|
18112
|
+
"email_reply_to": {
|
|
18113
|
+
"type": "string",
|
|
18114
|
+
"format": "email",
|
|
18115
|
+
"maxLength": 320,
|
|
18116
|
+
"description": "Reply-To on every email this tenant sends to its users. Absent = no Reply-To, so a reply goes to the From address — which is a `no-reply@` mailbox nobody reads. Set it to your own support address if you want your users to be able to answer.",
|
|
18117
|
+
"nullable": true
|
|
18118
|
+
},
|
|
18119
|
+
"email_from_name": {
|
|
18120
|
+
"type": "string",
|
|
18121
|
+
"maxLength": 100,
|
|
18122
|
+
"description": "Display name on every email this tenant sends to its users. Absent = the account `name`.",
|
|
18123
|
+
"nullable": true
|
|
18124
|
+
},
|
|
18125
|
+
"email_from_address": {
|
|
18126
|
+
"type": "string",
|
|
18127
|
+
"description": "Sender address of every email this tenant sends to its users. Absent = the platform default. Set by Faable only.",
|
|
18128
|
+
"nullable": true
|
|
18129
|
+
},
|
|
18130
|
+
"welcome_email": {
|
|
18131
|
+
"type": "object",
|
|
18132
|
+
"properties": {
|
|
18133
|
+
"cta_url": {
|
|
18134
|
+
"type": "string",
|
|
18135
|
+
"format": "uri",
|
|
18136
|
+
"maxLength": 500,
|
|
18137
|
+
"description": "Where the welcome button sends the user. Defaults to `https://<first callback hostname>`. Point it at your app (not your marketing site) so a fresh user lands somewhere useful.",
|
|
18138
|
+
"nullable": true
|
|
18139
|
+
},
|
|
18140
|
+
"body": {
|
|
18141
|
+
"type": "string",
|
|
18142
|
+
"maxLength": 600,
|
|
18143
|
+
"description": "Replaces the default one-line body (\"Your account on … is ready to go.\"). Plain text, sent verbatim in every enabled locale.",
|
|
18144
|
+
"nullable": true
|
|
18145
|
+
},
|
|
18146
|
+
"social_links": {
|
|
18147
|
+
"type": "array",
|
|
18148
|
+
"items": {
|
|
18149
|
+
"type": "object",
|
|
18150
|
+
"required": [
|
|
18151
|
+
"label",
|
|
18152
|
+
"url"
|
|
18153
|
+
],
|
|
18154
|
+
"properties": {
|
|
18155
|
+
"label": {
|
|
18156
|
+
"type": "string",
|
|
18157
|
+
"minLength": 1,
|
|
18158
|
+
"maxLength": 40
|
|
18159
|
+
},
|
|
18160
|
+
"url": {
|
|
18161
|
+
"type": "string",
|
|
18162
|
+
"format": "uri",
|
|
18163
|
+
"maxLength": 500
|
|
18164
|
+
}
|
|
18165
|
+
},
|
|
18166
|
+
"additionalProperties": false
|
|
18167
|
+
},
|
|
18168
|
+
"maxItems": 6,
|
|
18169
|
+
"description": "Rendered as a \"Follow <account>\" block after the button — GitHub, LinkedIn, X, YouTube… Empty or absent hides the block.",
|
|
18170
|
+
"nullable": true
|
|
18171
|
+
}
|
|
18172
|
+
},
|
|
18173
|
+
"additionalProperties": false,
|
|
18174
|
+
"nullable": true
|
|
18175
|
+
},
|
|
18176
|
+
"email_footer": {
|
|
18177
|
+
"type": "object",
|
|
18178
|
+
"required": [
|
|
18179
|
+
"text"
|
|
18180
|
+
],
|
|
18181
|
+
"properties": {
|
|
18182
|
+
"text": {
|
|
18183
|
+
"type": "string",
|
|
18184
|
+
"minLength": 1,
|
|
18185
|
+
"maxLength": 120,
|
|
18186
|
+
"description": "The footer line, e.g. «Kirbic Booking»."
|
|
18187
|
+
},
|
|
18188
|
+
"url": {
|
|
18189
|
+
"type": "string",
|
|
18190
|
+
"format": "uri",
|
|
18191
|
+
"maxLength": 500,
|
|
18192
|
+
"description": "Where the footer line links to."
|
|
18193
|
+
},
|
|
18194
|
+
"logo_src": {
|
|
18195
|
+
"type": "string",
|
|
18196
|
+
"maxLength": 500,
|
|
18197
|
+
"pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
|
|
18198
|
+
"description": "A small emblem above the line (24 px). PNG or JPG, https."
|
|
18199
|
+
}
|
|
18200
|
+
},
|
|
18201
|
+
"additionalProperties": false,
|
|
18202
|
+
"description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
|
|
18203
|
+
"nullable": true
|
|
18204
|
+
},
|
|
18205
|
+
"email_change_verification_mode": {
|
|
18206
|
+
"anyOf": [
|
|
18207
|
+
{
|
|
18208
|
+
"type": "string",
|
|
18209
|
+
"enum": [
|
|
18210
|
+
"new_only"
|
|
18211
|
+
]
|
|
18212
|
+
},
|
|
18213
|
+
{
|
|
18214
|
+
"type": "string",
|
|
18215
|
+
"enum": [
|
|
18216
|
+
"old_and_new"
|
|
18217
|
+
]
|
|
18218
|
+
}
|
|
18219
|
+
],
|
|
18220
|
+
"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."
|
|
18221
|
+
},
|
|
18222
|
+
"email_oauth_sync_policy": {
|
|
18223
|
+
"anyOf": [
|
|
18224
|
+
{
|
|
18225
|
+
"type": "string",
|
|
18226
|
+
"enum": [
|
|
18227
|
+
"preserve_manual"
|
|
18228
|
+
]
|
|
18229
|
+
},
|
|
18230
|
+
{
|
|
18231
|
+
"type": "string",
|
|
18232
|
+
"enum": [
|
|
18233
|
+
"always_sync"
|
|
18234
|
+
]
|
|
18235
|
+
}
|
|
18236
|
+
],
|
|
18237
|
+
"description": "Controls what happens to `user.email` on subsequent OAuth/federated logins when the user previously changed their email manually through this auth server (i.e. `user.email_change_locked_at` is set).\n\n- `preserve_manual` (default): the manually-set email wins. The federated provider's email is ignored on re-sync; `email` and `email_verified` are not touched. The identity link stays valid via `provider_user_id`, so the user can still log in with Google/etc.\n- `always_sync`: the federated provider's email is always written back, overwriting any manual change. Useful for tenants whose source of truth for identity is the IdP (corporate SSO, etc.)."
|
|
18238
|
+
},
|
|
18239
|
+
"login_methods": {
|
|
18240
|
+
"type": "object",
|
|
18241
|
+
"properties": {
|
|
18242
|
+
"order": {
|
|
18243
|
+
"type": "array",
|
|
18244
|
+
"items": {
|
|
18245
|
+
"type": "string"
|
|
18246
|
+
},
|
|
18247
|
+
"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()."
|
|
18248
|
+
},
|
|
18249
|
+
"disabled_connections": {
|
|
18250
|
+
"type": "array",
|
|
18251
|
+
"items": {
|
|
18252
|
+
"type": "string"
|
|
18253
|
+
},
|
|
18254
|
+
"description": "Connection resource ids (`connection_xxx`) this client does NOT offer. Removing a method here is enforced, not cosmetic: the connection disappears from the login screen AND `/authorize?connection=<id>` is refused for this client, the same as a connection whose `enabled_clients` excludes it. Use it to say \"this app does not do Google\"; use `enabled_clients` on the connection itself to say \"that connection is not for this app\". A connection has to pass both."
|
|
18255
|
+
},
|
|
18256
|
+
"passkey_login_enabled": {
|
|
18257
|
+
"type": "boolean",
|
|
18258
|
+
"description": "Offer passkey (WebAuthn) as a primary login method on the hosted login screen. Defaults to false."
|
|
18259
|
+
},
|
|
18260
|
+
"identifier_first": {
|
|
18261
|
+
"type": "boolean",
|
|
18262
|
+
"description": "Ask for the email first and only then reveal the methods that apply to it, instead of showing every method up front. Defaults to false."
|
|
18263
|
+
},
|
|
18264
|
+
"remember_last_method": {
|
|
18265
|
+
"type": "boolean",
|
|
18266
|
+
"description": "Surface the method the returning user chose last time. Defaults to false."
|
|
18267
|
+
},
|
|
18268
|
+
"passkey_promotion": {
|
|
18269
|
+
"anyOf": [
|
|
18270
|
+
{
|
|
18271
|
+
"type": "string",
|
|
18272
|
+
"enum": [
|
|
18273
|
+
"off"
|
|
18274
|
+
]
|
|
18275
|
+
},
|
|
18276
|
+
{
|
|
18277
|
+
"type": "string",
|
|
18278
|
+
"enum": [
|
|
18279
|
+
"offer"
|
|
18280
|
+
]
|
|
18281
|
+
}
|
|
18282
|
+
],
|
|
18283
|
+
"description": "Invite users to create a passkey right after a successful login with another method. `offer` shows a hosted screen once per `passkey_promotion_snooze_days`, at most `passkey_promotion_max_prompts` times, to users who have no second factor yet; it never blocks the login. Requires `passkey_login_enabled`. Defaults to `off`."
|
|
18284
|
+
},
|
|
18285
|
+
"passkey_promotion_snooze_days": {
|
|
18286
|
+
"type": "integer",
|
|
18287
|
+
"minimum": 0,
|
|
18288
|
+
"maximum": 365,
|
|
18289
|
+
"description": "Days to wait before offering a passkey again to a user who dismissed it. Defaults to 30."
|
|
18290
|
+
},
|
|
18291
|
+
"passkey_promotion_max_prompts": {
|
|
18292
|
+
"type": "integer",
|
|
18293
|
+
"minimum": 0,
|
|
18294
|
+
"maximum": 10,
|
|
18295
|
+
"description": "How many times a user is offered a passkey over their lifetime. `0` switches the offer off for this tenant without changing `passkey_promotion`. Defaults to 3."
|
|
18296
|
+
},
|
|
18297
|
+
"remember_me": {
|
|
18298
|
+
"anyOf": [
|
|
18299
|
+
{
|
|
18300
|
+
"type": "string",
|
|
18301
|
+
"enum": [
|
|
18302
|
+
"off"
|
|
18303
|
+
]
|
|
18304
|
+
},
|
|
18305
|
+
{
|
|
18306
|
+
"type": "string",
|
|
18307
|
+
"enum": [
|
|
18308
|
+
"optional"
|
|
18309
|
+
]
|
|
18310
|
+
}
|
|
18311
|
+
],
|
|
18312
|
+
"description": "Show a \"Remember me on this device\" checkbox on the password and email-code forms. `optional`: unchecked, the session ends when the browser closes; checked, it lasts `remember_me_days`. `off` (the default): no checkbox, every session lasts the built-in 30 days."
|
|
18313
|
+
},
|
|
18314
|
+
"remember_me_days": {
|
|
18315
|
+
"type": "integer",
|
|
18316
|
+
"minimum": 1,
|
|
18317
|
+
"maximum": 365,
|
|
18318
|
+
"description": "How long a session lasts when the user ticked \"Remember me\". Defaults to 30."
|
|
18319
|
+
},
|
|
18320
|
+
"theme": {
|
|
18321
|
+
"anyOf": [
|
|
18322
|
+
{
|
|
18323
|
+
"type": "string",
|
|
18324
|
+
"enum": [
|
|
18325
|
+
"system"
|
|
18326
|
+
]
|
|
18327
|
+
},
|
|
18328
|
+
{
|
|
18329
|
+
"type": "string",
|
|
18330
|
+
"enum": [
|
|
18331
|
+
"light"
|
|
18332
|
+
]
|
|
18333
|
+
},
|
|
18334
|
+
{
|
|
18335
|
+
"type": "string",
|
|
18336
|
+
"enum": [
|
|
18337
|
+
"dark"
|
|
18338
|
+
]
|
|
18339
|
+
}
|
|
18340
|
+
],
|
|
18341
|
+
"description": "Colour theme of the hosted login screens. `system` (the default): the visitor's OS decides, and the visitor can switch it from the screen. `light` / `dark`: forced, and the switch is hidden — for applications whose own pages are only one of the two. A `theme` query parameter on `/authorize` overrides this for that login."
|
|
18342
|
+
}
|
|
18343
|
+
},
|
|
18344
|
+
"additionalProperties": false,
|
|
18345
|
+
"description": "Which login methods the hosted login screen offers and in what order. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so a client can flip one flag without restating the rest. Absent everywhere = built-in defaults."
|
|
18346
|
+
},
|
|
18347
|
+
"profile_fields": {
|
|
18348
|
+
"type": "array",
|
|
18349
|
+
"items": {
|
|
18350
|
+
"type": "object",
|
|
18351
|
+
"required": [
|
|
18352
|
+
"key",
|
|
18353
|
+
"type"
|
|
18354
|
+
],
|
|
18355
|
+
"properties": {
|
|
18356
|
+
"key": {
|
|
18357
|
+
"type": "string",
|
|
18358
|
+
"pattern": "^[a-z0-9_]{1,40}$",
|
|
18359
|
+
"description": "The field key, as it is stored in `user_metadata[\"faable.com/fields\"]`."
|
|
18360
|
+
},
|
|
18361
|
+
"type": {
|
|
18362
|
+
"anyOf": [
|
|
18363
|
+
{
|
|
18364
|
+
"type": "string",
|
|
18365
|
+
"enum": [
|
|
18366
|
+
"string"
|
|
18367
|
+
]
|
|
18368
|
+
},
|
|
18369
|
+
{
|
|
18370
|
+
"type": "string",
|
|
18371
|
+
"enum": [
|
|
18372
|
+
"enum"
|
|
18373
|
+
]
|
|
18374
|
+
}
|
|
18375
|
+
],
|
|
18376
|
+
"description": "`string`: free text up to `max_length`. `enum`: one of `options`."
|
|
18377
|
+
},
|
|
18378
|
+
"options": {
|
|
18379
|
+
"type": "array",
|
|
18380
|
+
"items": {
|
|
18381
|
+
"type": "string",
|
|
18382
|
+
"minLength": 1,
|
|
18383
|
+
"maxLength": 200
|
|
18384
|
+
},
|
|
18385
|
+
"minItems": 1,
|
|
18386
|
+
"maxItems": 100,
|
|
18387
|
+
"description": "The accepted values when `type` is `enum`."
|
|
18388
|
+
},
|
|
18389
|
+
"max_length": {
|
|
18390
|
+
"type": "integer",
|
|
18391
|
+
"minimum": 1,
|
|
18392
|
+
"maximum": 1000,
|
|
18393
|
+
"description": "Longest accepted value for a `string` field. Default 200."
|
|
18394
|
+
}
|
|
18395
|
+
},
|
|
18396
|
+
"additionalProperties": false
|
|
18397
|
+
},
|
|
18398
|
+
"maxItems": 20,
|
|
18399
|
+
"description": "Profile fields the user may write on themselves with `PATCH /me` (`fields`), stored in `user_metadata[\"faable.com/fields\"]`. On a Client it replaces the account's list entirely; absent = inherit.",
|
|
18400
|
+
"nullable": true
|
|
18401
|
+
},
|
|
18402
|
+
"login_flow": {
|
|
18403
|
+
"type": "string",
|
|
18404
|
+
"description": "The login flow bound to this account (`loginflow_xxx`). Absent = the flow compiled from the settings. A Client may bind its own.",
|
|
18405
|
+
"nullable": true
|
|
18406
|
+
},
|
|
18407
|
+
"mfa_policy": {
|
|
18408
|
+
"type": "object",
|
|
18409
|
+
"properties": {
|
|
18410
|
+
"mode": {
|
|
18411
|
+
"anyOf": [
|
|
18412
|
+
{
|
|
18413
|
+
"anyOf": [
|
|
18414
|
+
{
|
|
18415
|
+
"type": "string",
|
|
18416
|
+
"enum": [
|
|
18417
|
+
"off"
|
|
18418
|
+
]
|
|
18419
|
+
},
|
|
18420
|
+
{
|
|
18421
|
+
"type": "string",
|
|
18422
|
+
"enum": [
|
|
18423
|
+
"optional"
|
|
18424
|
+
]
|
|
18425
|
+
},
|
|
18426
|
+
{
|
|
18427
|
+
"type": "string",
|
|
18428
|
+
"enum": [
|
|
18429
|
+
"required"
|
|
18430
|
+
]
|
|
18431
|
+
}
|
|
18432
|
+
]
|
|
18433
|
+
}
|
|
18434
|
+
],
|
|
18435
|
+
"description": "`off` (default) never challenges. `optional` challenges a user who has enrolled a factor, and lets everyone else in. `required` challenges everyone and sends users with no factor through enrolment during login — it never locks anyone out in place."
|
|
18436
|
+
},
|
|
18437
|
+
"allowed_factors": {
|
|
18438
|
+
"type": "array",
|
|
18439
|
+
"items": {
|
|
18440
|
+
"anyOf": [
|
|
18441
|
+
{
|
|
18442
|
+
"type": "string",
|
|
18443
|
+
"enum": [
|
|
18444
|
+
"totp"
|
|
18445
|
+
]
|
|
18446
|
+
},
|
|
18447
|
+
{
|
|
18448
|
+
"type": "string",
|
|
18449
|
+
"enum": [
|
|
18450
|
+
"webauthn"
|
|
18451
|
+
]
|
|
18452
|
+
}
|
|
18453
|
+
]
|
|
18454
|
+
},
|
|
18455
|
+
"description": "Which kinds of second factor satisfy the policy. Empty or unset means all of them. A user whose only factor is of a kind not listed here is treated as having none."
|
|
18456
|
+
},
|
|
18457
|
+
"remember_device_days": {
|
|
18458
|
+
"type": "integer",
|
|
18459
|
+
"minimum": 0,
|
|
18460
|
+
"maximum": 365,
|
|
18461
|
+
"description": "How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time."
|
|
18462
|
+
}
|
|
18463
|
+
},
|
|
18464
|
+
"additionalProperties": false,
|
|
18465
|
+
"description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
|
|
18466
|
+
},
|
|
18467
|
+
"recovery_channels": {
|
|
18468
|
+
"type": "object",
|
|
18469
|
+
"properties": {
|
|
18470
|
+
"enabled": {
|
|
18471
|
+
"type": "array",
|
|
18472
|
+
"items": {
|
|
18473
|
+
"anyOf": [
|
|
18474
|
+
{
|
|
18475
|
+
"type": "string",
|
|
18476
|
+
"enum": [
|
|
18477
|
+
"email"
|
|
18478
|
+
]
|
|
18479
|
+
},
|
|
18480
|
+
{
|
|
18481
|
+
"type": "string",
|
|
18482
|
+
"enum": [
|
|
18483
|
+
"sms"
|
|
18484
|
+
]
|
|
18485
|
+
},
|
|
18486
|
+
{
|
|
18487
|
+
"type": "string",
|
|
18488
|
+
"enum": [
|
|
18489
|
+
"whatsapp"
|
|
18490
|
+
]
|
|
18491
|
+
},
|
|
18492
|
+
{
|
|
18493
|
+
"type": "string",
|
|
18494
|
+
"enum": [
|
|
18495
|
+
"factor"
|
|
18496
|
+
]
|
|
18497
|
+
}
|
|
18498
|
+
]
|
|
18499
|
+
},
|
|
18500
|
+
"description": "Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it."
|
|
18501
|
+
},
|
|
18502
|
+
"default": {
|
|
18503
|
+
"anyOf": [
|
|
18504
|
+
{
|
|
18505
|
+
"anyOf": [
|
|
18506
|
+
{
|
|
18507
|
+
"type": "string",
|
|
18508
|
+
"enum": [
|
|
18509
|
+
"email"
|
|
18510
|
+
]
|
|
18511
|
+
},
|
|
18512
|
+
{
|
|
18513
|
+
"type": "string",
|
|
18514
|
+
"enum": [
|
|
18515
|
+
"sms"
|
|
18516
|
+
]
|
|
18517
|
+
},
|
|
18518
|
+
{
|
|
18519
|
+
"type": "string",
|
|
18520
|
+
"enum": [
|
|
18521
|
+
"whatsapp"
|
|
18522
|
+
]
|
|
18523
|
+
},
|
|
18524
|
+
{
|
|
18525
|
+
"type": "string",
|
|
18526
|
+
"enum": [
|
|
18527
|
+
"factor"
|
|
18528
|
+
]
|
|
18529
|
+
}
|
|
18530
|
+
]
|
|
18531
|
+
}
|
|
18532
|
+
],
|
|
18533
|
+
"description": "The channel used when the user is not asked to choose. Falls back to `email` when it is not available for that user."
|
|
18534
|
+
},
|
|
18535
|
+
"visible": {
|
|
18536
|
+
"type": "array",
|
|
18537
|
+
"items": {
|
|
18538
|
+
"anyOf": [
|
|
18539
|
+
{
|
|
18540
|
+
"type": "string",
|
|
18541
|
+
"enum": [
|
|
18542
|
+
"email"
|
|
18543
|
+
]
|
|
18544
|
+
},
|
|
18545
|
+
{
|
|
18546
|
+
"type": "string",
|
|
18547
|
+
"enum": [
|
|
18548
|
+
"sms"
|
|
18549
|
+
]
|
|
18550
|
+
},
|
|
18551
|
+
{
|
|
18552
|
+
"type": "string",
|
|
18553
|
+
"enum": [
|
|
18554
|
+
"whatsapp"
|
|
18555
|
+
]
|
|
18556
|
+
},
|
|
18557
|
+
{
|
|
18558
|
+
"type": "string",
|
|
18559
|
+
"enum": [
|
|
18560
|
+
"factor"
|
|
18561
|
+
]
|
|
18562
|
+
}
|
|
18563
|
+
]
|
|
18564
|
+
},
|
|
18565
|
+
"description": "Channels the recovery screen offers the user to pick from, after they enter their identifier. Empty (the default) keeps today's behaviour: the default channel is used silently and the response never reveals whether the account exists. A non-empty list shows a picker with masked destinations — which does reveal that the account exists and which channels it has, the same trade-off Google and Microsoft make. A tenant decision."
|
|
18566
|
+
}
|
|
18567
|
+
},
|
|
18568
|
+
"additionalProperties": false,
|
|
18569
|
+
"description": "Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`."
|
|
18570
|
+
},
|
|
18571
|
+
"default_country_iso": {
|
|
18572
|
+
"type": "string",
|
|
18573
|
+
"minLength": 2,
|
|
18574
|
+
"maxLength": 2,
|
|
18575
|
+
"description": "ISO 3166-1 alpha-2 country assumed for phone numbers written without an international prefix (`636647460` → `+34…` with `ES`). Needed before SMS can reach anyone: most people type their number without a prefix.",
|
|
18576
|
+
"nullable": true
|
|
18577
|
+
},
|
|
18578
|
+
"webauthn_rp_id": {
|
|
18579
|
+
"type": "string",
|
|
18580
|
+
"description": "WebAuthn Relying Party ID for this tenant's passkeys. Defaults to the account domain. Set it to a registrable suffix you own (e.g. `acme.com`) when the login screen is served from more than one host — the RP ID is frozen into every credential at registration, so changing it afterwards invalidates every passkey already enrolled.",
|
|
18581
|
+
"nullable": true
|
|
18582
|
+
},
|
|
18583
|
+
"logout_confirm_required": {
|
|
18584
|
+
"type": "boolean",
|
|
18585
|
+
"description": "When true, `/logout` asks the End-User to confirm before ending the session unless the request carries a verified `id_token_hint`. Off by default — a plain link to `/logout` is otherwise enough to sign anyone out (logout CSRF)."
|
|
18586
|
+
},
|
|
18587
|
+
"dynamic_client_registration_enabled": {
|
|
18588
|
+
"type": "boolean",
|
|
18589
|
+
"description": "When true, anyone can register a client with `POST /oidc/register` (OIDC Dynamic Client Registration / RFC 7591) and the discovery document advertises `registration_endpoint`. Off by default: an open registration lets anyone create a client with their own `redirect_uri`."
|
|
18590
|
+
},
|
|
18591
|
+
"oauth21_enabled": {
|
|
18592
|
+
"type": "boolean",
|
|
18593
|
+
"description": "When true, the tenant enforces OAuth 2.1: `/authorize` accepts only `response_type=code` and requires PKCE (`code_challenge` with `S256`) from every client, a password login without `/authorize` needs PKCE too, and the password grant is refused. Refused requests answer `oauth21_required`. On for new tenants; an existing tenant turns it on when its applications are ready — with `@faable/auth-js` that is version 3.1.0 or later."
|
|
18594
|
+
},
|
|
18595
|
+
"oauth_link_verified_email": {
|
|
18596
|
+
"type": "boolean",
|
|
18597
|
+
"description": "When true, signing in with Google, GitHub, GitLab or Apple for the first time attaches that provider to the existing user with the same email instead of creating a second user — only when the provider attests the email as verified, exactly one user of the tenant has that email verified, that user is not suspended and has no other identity of the same connection. Off by default."
|
|
18598
|
+
},
|
|
18599
|
+
"client_id_metadata_documents_enabled": {
|
|
18600
|
+
"type": "boolean",
|
|
18601
|
+
"description": "When true, /authorize accepts a `client_id` that is an https URL serving a Client ID Metadata Document (the MCP authorization way to identify a client without registering it). Such clients always see the consent screen. Off by default."
|
|
18602
|
+
},
|
|
18603
|
+
"canonical_host": {
|
|
18604
|
+
"type": "string",
|
|
18605
|
+
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
18606
|
+
"nullable": true
|
|
18607
|
+
},
|
|
18608
|
+
"disabled_at": {
|
|
18609
|
+
"type": "string",
|
|
18610
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
18611
|
+
"nullable": true
|
|
18612
|
+
},
|
|
18613
|
+
"disabled_by": {
|
|
18614
|
+
"anyOf": [
|
|
18615
|
+
{
|
|
18616
|
+
"type": "string",
|
|
18617
|
+
"enum": [
|
|
18618
|
+
"owner"
|
|
18619
|
+
]
|
|
18620
|
+
},
|
|
18621
|
+
{
|
|
18622
|
+
"type": "string",
|
|
18623
|
+
"enum": [
|
|
18624
|
+
"staff"
|
|
18625
|
+
]
|
|
18626
|
+
},
|
|
18627
|
+
{
|
|
18628
|
+
"type": "null"
|
|
18629
|
+
}
|
|
18630
|
+
],
|
|
18631
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
18632
|
+
},
|
|
18633
|
+
"createdAt": {
|
|
18634
|
+
"type": "string",
|
|
18635
|
+
"description": "AuthAccount creation date"
|
|
18636
|
+
},
|
|
18637
|
+
"updatedAt": {
|
|
18638
|
+
"type": "string",
|
|
18639
|
+
"description": "AuthAccount updated date"
|
|
18640
|
+
}
|
|
18641
|
+
},
|
|
18642
|
+
"description": "AuthAccount"
|
|
18643
|
+
}
|
|
18644
|
+
}
|
|
18645
|
+
}
|
|
18646
|
+
},
|
|
18647
|
+
"400": {
|
|
18648
|
+
"description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
18649
|
+
"content": {
|
|
18650
|
+
"application/json": {
|
|
18651
|
+
"schema": {
|
|
18652
|
+
"allOf": [
|
|
18653
|
+
{
|
|
18654
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18655
|
+
},
|
|
18656
|
+
{
|
|
18657
|
+
"type": "object",
|
|
18658
|
+
"properties": {
|
|
18659
|
+
"error_code": {
|
|
18660
|
+
"type": "string",
|
|
18661
|
+
"enum": [
|
|
18662
|
+
"validation_error"
|
|
18663
|
+
]
|
|
18664
|
+
}
|
|
18665
|
+
}
|
|
18666
|
+
}
|
|
18667
|
+
]
|
|
18668
|
+
}
|
|
18669
|
+
}
|
|
18670
|
+
}
|
|
18671
|
+
},
|
|
18672
|
+
"401": {
|
|
18673
|
+
"description": "`unauthorized` — The request carries no valid credentials.",
|
|
18674
|
+
"content": {
|
|
18675
|
+
"application/json": {
|
|
18676
|
+
"schema": {
|
|
18677
|
+
"allOf": [
|
|
18678
|
+
{
|
|
18679
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18680
|
+
},
|
|
18681
|
+
{
|
|
18682
|
+
"type": "object",
|
|
18683
|
+
"properties": {
|
|
18684
|
+
"error_code": {
|
|
18685
|
+
"type": "string",
|
|
18686
|
+
"enum": [
|
|
18687
|
+
"unauthorized"
|
|
18688
|
+
]
|
|
18689
|
+
}
|
|
18690
|
+
}
|
|
18691
|
+
}
|
|
18692
|
+
]
|
|
18693
|
+
}
|
|
18694
|
+
}
|
|
18695
|
+
}
|
|
18696
|
+
},
|
|
18697
|
+
"403": {
|
|
18698
|
+
"description": "`account_disabled` — The Auth tenant is disabled: nobody can sign in and management writes are refused; reads keep working. `details.disabled_by` is `owner` (enable it again from the dashboard) or `staff` (contact support@faable.com).\n\n`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
|
|
18699
|
+
"content": {
|
|
18700
|
+
"application/json": {
|
|
18701
|
+
"schema": {
|
|
18702
|
+
"allOf": [
|
|
18703
|
+
{
|
|
18704
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18705
|
+
},
|
|
18706
|
+
{
|
|
18707
|
+
"type": "object",
|
|
18708
|
+
"properties": {
|
|
18709
|
+
"error_code": {
|
|
18710
|
+
"type": "string",
|
|
18711
|
+
"enum": [
|
|
18712
|
+
"account_disabled",
|
|
18713
|
+
"forbidden",
|
|
18714
|
+
"insufficient_scope",
|
|
18715
|
+
"user_suspended"
|
|
18716
|
+
]
|
|
18717
|
+
}
|
|
18718
|
+
}
|
|
18719
|
+
}
|
|
18720
|
+
]
|
|
18721
|
+
}
|
|
18722
|
+
}
|
|
18723
|
+
}
|
|
18724
|
+
},
|
|
18725
|
+
"404": {
|
|
18726
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
18727
|
+
"content": {
|
|
18728
|
+
"application/json": {
|
|
18729
|
+
"schema": {
|
|
18730
|
+
"allOf": [
|
|
18731
|
+
{
|
|
18732
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18733
|
+
},
|
|
18734
|
+
{
|
|
18735
|
+
"type": "object",
|
|
18736
|
+
"properties": {
|
|
18737
|
+
"error_code": {
|
|
18738
|
+
"type": "string",
|
|
18739
|
+
"enum": [
|
|
18740
|
+
"account_not_found"
|
|
18741
|
+
]
|
|
18742
|
+
}
|
|
18743
|
+
}
|
|
18744
|
+
}
|
|
18745
|
+
]
|
|
18746
|
+
}
|
|
18747
|
+
}
|
|
18748
|
+
}
|
|
18749
|
+
},
|
|
18750
|
+
"409": {
|
|
18751
|
+
"description": "`account_protected` — A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it.",
|
|
18752
|
+
"content": {
|
|
18753
|
+
"application/json": {
|
|
18754
|
+
"schema": {
|
|
18755
|
+
"allOf": [
|
|
18756
|
+
{
|
|
18757
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18758
|
+
},
|
|
18759
|
+
{
|
|
18760
|
+
"type": "object",
|
|
18761
|
+
"properties": {
|
|
18762
|
+
"error_code": {
|
|
18763
|
+
"type": "string",
|
|
18764
|
+
"enum": [
|
|
18765
|
+
"account_protected"
|
|
18766
|
+
]
|
|
18767
|
+
}
|
|
18768
|
+
}
|
|
18769
|
+
}
|
|
18770
|
+
]
|
|
18771
|
+
}
|
|
18772
|
+
}
|
|
18773
|
+
}
|
|
18774
|
+
},
|
|
18775
|
+
"429": {
|
|
18776
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
18777
|
+
"content": {
|
|
18778
|
+
"application/json": {
|
|
18779
|
+
"schema": {
|
|
18780
|
+
"allOf": [
|
|
18781
|
+
{
|
|
18782
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18783
|
+
},
|
|
18784
|
+
{
|
|
18785
|
+
"type": "object",
|
|
18786
|
+
"properties": {
|
|
18787
|
+
"error_code": {
|
|
18788
|
+
"type": "string",
|
|
18789
|
+
"enum": [
|
|
18790
|
+
"too_many_requests"
|
|
18791
|
+
]
|
|
18792
|
+
}
|
|
18793
|
+
}
|
|
18794
|
+
}
|
|
18795
|
+
]
|
|
18796
|
+
}
|
|
18797
|
+
}
|
|
18798
|
+
}
|
|
18799
|
+
},
|
|
18800
|
+
"500": {
|
|
18801
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
18802
|
+
"content": {
|
|
18803
|
+
"application/json": {
|
|
18804
|
+
"schema": {
|
|
18805
|
+
"allOf": [
|
|
18806
|
+
{
|
|
18807
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
18808
|
+
},
|
|
18809
|
+
{
|
|
18810
|
+
"type": "object",
|
|
18811
|
+
"properties": {
|
|
18812
|
+
"error_code": {
|
|
18813
|
+
"type": "string",
|
|
18814
|
+
"enum": [
|
|
18815
|
+
"internal_error"
|
|
18816
|
+
]
|
|
18817
|
+
}
|
|
18818
|
+
}
|
|
18819
|
+
}
|
|
18820
|
+
]
|
|
18821
|
+
}
|
|
18822
|
+
}
|
|
18823
|
+
}
|
|
18824
|
+
}
|
|
18825
|
+
}
|
|
18826
|
+
}
|
|
18827
|
+
},
|
|
18828
|
+
"/account/{account_id}/enable": {
|
|
18829
|
+
"post": {
|
|
18830
|
+
"operationId": "account/enable",
|
|
18831
|
+
"summary": "Enable a disabled Account",
|
|
18832
|
+
"tags": [
|
|
18833
|
+
"account"
|
|
18834
|
+
],
|
|
18835
|
+
"description": "Undoes `account/disable`: sign-in, sessions and management writes work again. Idempotent. A tenant disabled by Faable staff cannot be enabled here: 403 `account_disabled` with `details.disabled_by: staff` — contact support@faable.com.",
|
|
18836
|
+
"parameters": [
|
|
18837
|
+
{
|
|
18838
|
+
"schema": {
|
|
18839
|
+
"type": "string"
|
|
18840
|
+
},
|
|
18841
|
+
"in": "path",
|
|
18842
|
+
"name": "account_id",
|
|
18843
|
+
"required": true
|
|
18844
|
+
}
|
|
18845
|
+
],
|
|
18846
|
+
"security": [
|
|
18847
|
+
{
|
|
18848
|
+
"bearerAuth": []
|
|
18849
|
+
}
|
|
18850
|
+
],
|
|
18851
|
+
"responses": {
|
|
18852
|
+
"200": {
|
|
18853
|
+
"description": "AuthAccount",
|
|
18854
|
+
"content": {
|
|
18855
|
+
"application/json": {
|
|
18856
|
+
"schema": {
|
|
18857
|
+
"type": "object",
|
|
18858
|
+
"required": [
|
|
18859
|
+
"id",
|
|
18860
|
+
"name",
|
|
18861
|
+
"domain",
|
|
18862
|
+
"slug",
|
|
18863
|
+
"callback_hostnames",
|
|
18864
|
+
"token_signature",
|
|
18865
|
+
"token_signing_alg",
|
|
18866
|
+
"enabled_locales",
|
|
18867
|
+
"notification_settings",
|
|
18868
|
+
"createdAt"
|
|
18869
|
+
],
|
|
18870
|
+
"properties": {
|
|
18871
|
+
"id": {
|
|
18872
|
+
"type": "string",
|
|
18873
|
+
"description": "AuthAccount ID"
|
|
18874
|
+
},
|
|
18875
|
+
"name": {
|
|
18876
|
+
"type": "string"
|
|
18877
|
+
},
|
|
18878
|
+
"domain": {
|
|
18879
|
+
"type": "string"
|
|
18880
|
+
},
|
|
18881
|
+
"slug": {
|
|
18882
|
+
"type": "string"
|
|
18883
|
+
},
|
|
18884
|
+
"logo_src": {
|
|
18885
|
+
"type": "string",
|
|
18886
|
+
"nullable": true
|
|
18887
|
+
},
|
|
18888
|
+
"icon_src": {
|
|
18889
|
+
"type": "string",
|
|
18890
|
+
"nullable": true
|
|
18891
|
+
},
|
|
18892
|
+
"callback_hostnames": {
|
|
18893
|
+
"type": "array",
|
|
18894
|
+
"items": {
|
|
18895
|
+
"type": "string"
|
|
18896
|
+
}
|
|
18897
|
+
},
|
|
18898
|
+
"token_signature": {
|
|
18899
|
+
"type": "string",
|
|
18900
|
+
"description": "Shared HMAC secret. Used when token_signing_alg is an HS* algorithm; ignored for RS*/ES*/PS*."
|
|
18901
|
+
},
|
|
18902
|
+
"token_signing_alg": {
|
|
18903
|
+
"anyOf": [
|
|
18904
|
+
{
|
|
18905
|
+
"type": "string",
|
|
18906
|
+
"enum": [
|
|
18907
|
+
"RS256"
|
|
18908
|
+
]
|
|
18909
|
+
}
|
|
18910
|
+
],
|
|
18911
|
+
"description": "JWA algorithm used to sign tokens issued by this Account. Today only RS256 is implemented."
|
|
18912
|
+
},
|
|
18913
|
+
"default_connection": {
|
|
18914
|
+
"anyOf": [
|
|
18915
|
+
{
|
|
18916
|
+
"$ref": "#/components/schemas/Connection"
|
|
18917
|
+
},
|
|
18918
|
+
{
|
|
18919
|
+
"type": "string"
|
|
18920
|
+
},
|
|
18921
|
+
{}
|
|
18922
|
+
]
|
|
18923
|
+
},
|
|
18924
|
+
"enabled_locales": {
|
|
18925
|
+
"type": "array",
|
|
18926
|
+
"items": {
|
|
18927
|
+
"type": "string"
|
|
18928
|
+
}
|
|
18929
|
+
},
|
|
18930
|
+
"tags": {
|
|
18931
|
+
"type": "array",
|
|
18932
|
+
"items": {
|
|
18933
|
+
"type": "string"
|
|
18934
|
+
},
|
|
18935
|
+
"description": "Free-form labels on the account. The dashboard stores the environment as an `env:<name>` tag (e.g. `env:production`, `env:staging`, `env:test`)."
|
|
18936
|
+
},
|
|
18937
|
+
"team": {
|
|
18938
|
+
"type": "string",
|
|
18939
|
+
"nullable": true
|
|
18940
|
+
},
|
|
18941
|
+
"notification_settings": {
|
|
18942
|
+
"type": "object",
|
|
18943
|
+
"required": [
|
|
18944
|
+
"welcome_email_enabled",
|
|
18945
|
+
"verify_email_auto_send"
|
|
18946
|
+
],
|
|
18947
|
+
"properties": {
|
|
18948
|
+
"welcome_email_enabled": {
|
|
18949
|
+
"type": "boolean",
|
|
18950
|
+
"description": "Send the built-in welcome email on user.created",
|
|
18951
|
+
"default": false
|
|
18952
|
+
},
|
|
18953
|
+
"verify_email_auto_send": {
|
|
18954
|
+
"type": "boolean",
|
|
18955
|
+
"description": "Send a verification email automatically when a user is created with `email_verified=false` and an email address. The link in the email lands on `GET /verify-email?ticket=...` and flips `email_verified=true` with `email_verified_method=verification_flow`. When `false`, verification emails must be requested explicitly via `POST /user/:id/verify-email/start`.",
|
|
18956
|
+
"default": false
|
|
18957
|
+
}
|
|
18958
|
+
},
|
|
18959
|
+
"additionalProperties": false
|
|
18960
|
+
},
|
|
18961
|
+
"email_reply_to": {
|
|
18962
|
+
"type": "string",
|
|
18963
|
+
"format": "email",
|
|
18964
|
+
"maxLength": 320,
|
|
18965
|
+
"description": "Reply-To on every email this tenant sends to its users. Absent = no Reply-To, so a reply goes to the From address — which is a `no-reply@` mailbox nobody reads. Set it to your own support address if you want your users to be able to answer.",
|
|
18966
|
+
"nullable": true
|
|
18967
|
+
},
|
|
18968
|
+
"email_from_name": {
|
|
18969
|
+
"type": "string",
|
|
18970
|
+
"maxLength": 100,
|
|
18971
|
+
"description": "Display name on every email this tenant sends to its users. Absent = the account `name`.",
|
|
18972
|
+
"nullable": true
|
|
18973
|
+
},
|
|
18974
|
+
"email_from_address": {
|
|
18975
|
+
"type": "string",
|
|
18976
|
+
"description": "Sender address of every email this tenant sends to its users. Absent = the platform default. Set by Faable only.",
|
|
18977
|
+
"nullable": true
|
|
18978
|
+
},
|
|
18979
|
+
"welcome_email": {
|
|
18980
|
+
"type": "object",
|
|
18981
|
+
"properties": {
|
|
18982
|
+
"cta_url": {
|
|
18983
|
+
"type": "string",
|
|
18984
|
+
"format": "uri",
|
|
18985
|
+
"maxLength": 500,
|
|
18986
|
+
"description": "Where the welcome button sends the user. Defaults to `https://<first callback hostname>`. Point it at your app (not your marketing site) so a fresh user lands somewhere useful.",
|
|
18987
|
+
"nullable": true
|
|
18988
|
+
},
|
|
18989
|
+
"body": {
|
|
18990
|
+
"type": "string",
|
|
18991
|
+
"maxLength": 600,
|
|
18992
|
+
"description": "Replaces the default one-line body (\"Your account on … is ready to go.\"). Plain text, sent verbatim in every enabled locale.",
|
|
18993
|
+
"nullable": true
|
|
18994
|
+
},
|
|
18995
|
+
"social_links": {
|
|
18996
|
+
"type": "array",
|
|
18997
|
+
"items": {
|
|
18998
|
+
"type": "object",
|
|
18999
|
+
"required": [
|
|
19000
|
+
"label",
|
|
19001
|
+
"url"
|
|
19002
|
+
],
|
|
19003
|
+
"properties": {
|
|
19004
|
+
"label": {
|
|
19005
|
+
"type": "string",
|
|
19006
|
+
"minLength": 1,
|
|
19007
|
+
"maxLength": 40
|
|
19008
|
+
},
|
|
19009
|
+
"url": {
|
|
19010
|
+
"type": "string",
|
|
19011
|
+
"format": "uri",
|
|
19012
|
+
"maxLength": 500
|
|
19013
|
+
}
|
|
19014
|
+
},
|
|
19015
|
+
"additionalProperties": false
|
|
19016
|
+
},
|
|
19017
|
+
"maxItems": 6,
|
|
19018
|
+
"description": "Rendered as a \"Follow <account>\" block after the button — GitHub, LinkedIn, X, YouTube… Empty or absent hides the block.",
|
|
19019
|
+
"nullable": true
|
|
19020
|
+
}
|
|
19021
|
+
},
|
|
19022
|
+
"additionalProperties": false,
|
|
19023
|
+
"nullable": true
|
|
19024
|
+
},
|
|
19025
|
+
"email_footer": {
|
|
19026
|
+
"type": "object",
|
|
19027
|
+
"required": [
|
|
19028
|
+
"text"
|
|
19029
|
+
],
|
|
19030
|
+
"properties": {
|
|
19031
|
+
"text": {
|
|
19032
|
+
"type": "string",
|
|
19033
|
+
"minLength": 1,
|
|
19034
|
+
"maxLength": 120,
|
|
19035
|
+
"description": "The footer line, e.g. «Kirbic Booking»."
|
|
19036
|
+
},
|
|
19037
|
+
"url": {
|
|
19038
|
+
"type": "string",
|
|
19039
|
+
"format": "uri",
|
|
19040
|
+
"maxLength": 500,
|
|
19041
|
+
"description": "Where the footer line links to."
|
|
19042
|
+
},
|
|
19043
|
+
"logo_src": {
|
|
19044
|
+
"type": "string",
|
|
19045
|
+
"maxLength": 500,
|
|
19046
|
+
"pattern": "^https://(?!.*\\.[sS][vV][gG]([?#]|$))[^\\s\"'<>]+$",
|
|
19047
|
+
"description": "A small emblem above the line (24 px). PNG or JPG, https."
|
|
19048
|
+
}
|
|
19049
|
+
},
|
|
19050
|
+
"additionalProperties": false,
|
|
19051
|
+
"description": "The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line.",
|
|
19052
|
+
"nullable": true
|
|
19053
|
+
},
|
|
19054
|
+
"email_change_verification_mode": {
|
|
19055
|
+
"anyOf": [
|
|
19056
|
+
{
|
|
19057
|
+
"type": "string",
|
|
19058
|
+
"enum": [
|
|
19059
|
+
"new_only"
|
|
19060
|
+
]
|
|
19061
|
+
},
|
|
19062
|
+
{
|
|
19063
|
+
"type": "string",
|
|
19064
|
+
"enum": [
|
|
19065
|
+
"old_and_new"
|
|
19066
|
+
]
|
|
19067
|
+
}
|
|
19068
|
+
],
|
|
19069
|
+
"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."
|
|
19070
|
+
},
|
|
19071
|
+
"email_oauth_sync_policy": {
|
|
19072
|
+
"anyOf": [
|
|
19073
|
+
{
|
|
19074
|
+
"type": "string",
|
|
19075
|
+
"enum": [
|
|
19076
|
+
"preserve_manual"
|
|
19077
|
+
]
|
|
19078
|
+
},
|
|
19079
|
+
{
|
|
19080
|
+
"type": "string",
|
|
19081
|
+
"enum": [
|
|
19082
|
+
"always_sync"
|
|
19083
|
+
]
|
|
19084
|
+
}
|
|
19085
|
+
],
|
|
19086
|
+
"description": "Controls what happens to `user.email` on subsequent OAuth/federated logins when the user previously changed their email manually through this auth server (i.e. `user.email_change_locked_at` is set).\n\n- `preserve_manual` (default): the manually-set email wins. The federated provider's email is ignored on re-sync; `email` and `email_verified` are not touched. The identity link stays valid via `provider_user_id`, so the user can still log in with Google/etc.\n- `always_sync`: the federated provider's email is always written back, overwriting any manual change. Useful for tenants whose source of truth for identity is the IdP (corporate SSO, etc.)."
|
|
19087
|
+
},
|
|
19088
|
+
"login_methods": {
|
|
19089
|
+
"type": "object",
|
|
19090
|
+
"properties": {
|
|
19091
|
+
"order": {
|
|
19092
|
+
"type": "array",
|
|
19093
|
+
"items": {
|
|
19094
|
+
"type": "string"
|
|
19095
|
+
},
|
|
19096
|
+
"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()."
|
|
19097
|
+
},
|
|
19098
|
+
"disabled_connections": {
|
|
19099
|
+
"type": "array",
|
|
19100
|
+
"items": {
|
|
19101
|
+
"type": "string"
|
|
19102
|
+
},
|
|
19103
|
+
"description": "Connection resource ids (`connection_xxx`) this client does NOT offer. Removing a method here is enforced, not cosmetic: the connection disappears from the login screen AND `/authorize?connection=<id>` is refused for this client, the same as a connection whose `enabled_clients` excludes it. Use it to say \"this app does not do Google\"; use `enabled_clients` on the connection itself to say \"that connection is not for this app\". A connection has to pass both."
|
|
19104
|
+
},
|
|
19105
|
+
"passkey_login_enabled": {
|
|
19106
|
+
"type": "boolean",
|
|
19107
|
+
"description": "Offer passkey (WebAuthn) as a primary login method on the hosted login screen. Defaults to false."
|
|
19108
|
+
},
|
|
19109
|
+
"identifier_first": {
|
|
19110
|
+
"type": "boolean",
|
|
19111
|
+
"description": "Ask for the email first and only then reveal the methods that apply to it, instead of showing every method up front. Defaults to false."
|
|
19112
|
+
},
|
|
19113
|
+
"remember_last_method": {
|
|
19114
|
+
"type": "boolean",
|
|
19115
|
+
"description": "Surface the method the returning user chose last time. Defaults to false."
|
|
19116
|
+
},
|
|
19117
|
+
"passkey_promotion": {
|
|
19118
|
+
"anyOf": [
|
|
19119
|
+
{
|
|
19120
|
+
"type": "string",
|
|
19121
|
+
"enum": [
|
|
19122
|
+
"off"
|
|
19123
|
+
]
|
|
19124
|
+
},
|
|
19125
|
+
{
|
|
19126
|
+
"type": "string",
|
|
19127
|
+
"enum": [
|
|
19128
|
+
"offer"
|
|
19129
|
+
]
|
|
19130
|
+
}
|
|
19131
|
+
],
|
|
19132
|
+
"description": "Invite users to create a passkey right after a successful login with another method. `offer` shows a hosted screen once per `passkey_promotion_snooze_days`, at most `passkey_promotion_max_prompts` times, to users who have no second factor yet; it never blocks the login. Requires `passkey_login_enabled`. Defaults to `off`."
|
|
19133
|
+
},
|
|
19134
|
+
"passkey_promotion_snooze_days": {
|
|
19135
|
+
"type": "integer",
|
|
19136
|
+
"minimum": 0,
|
|
19137
|
+
"maximum": 365,
|
|
19138
|
+
"description": "Days to wait before offering a passkey again to a user who dismissed it. Defaults to 30."
|
|
19139
|
+
},
|
|
19140
|
+
"passkey_promotion_max_prompts": {
|
|
19141
|
+
"type": "integer",
|
|
19142
|
+
"minimum": 0,
|
|
19143
|
+
"maximum": 10,
|
|
19144
|
+
"description": "How many times a user is offered a passkey over their lifetime. `0` switches the offer off for this tenant without changing `passkey_promotion`. Defaults to 3."
|
|
19145
|
+
},
|
|
19146
|
+
"remember_me": {
|
|
19147
|
+
"anyOf": [
|
|
19148
|
+
{
|
|
19149
|
+
"type": "string",
|
|
19150
|
+
"enum": [
|
|
19151
|
+
"off"
|
|
19152
|
+
]
|
|
19153
|
+
},
|
|
19154
|
+
{
|
|
19155
|
+
"type": "string",
|
|
19156
|
+
"enum": [
|
|
19157
|
+
"optional"
|
|
19158
|
+
]
|
|
19159
|
+
}
|
|
19160
|
+
],
|
|
19161
|
+
"description": "Show a \"Remember me on this device\" checkbox on the password and email-code forms. `optional`: unchecked, the session ends when the browser closes; checked, it lasts `remember_me_days`. `off` (the default): no checkbox, every session lasts the built-in 30 days."
|
|
19162
|
+
},
|
|
19163
|
+
"remember_me_days": {
|
|
19164
|
+
"type": "integer",
|
|
19165
|
+
"minimum": 1,
|
|
19166
|
+
"maximum": 365,
|
|
19167
|
+
"description": "How long a session lasts when the user ticked \"Remember me\". Defaults to 30."
|
|
19168
|
+
},
|
|
19169
|
+
"theme": {
|
|
19170
|
+
"anyOf": [
|
|
19171
|
+
{
|
|
19172
|
+
"type": "string",
|
|
19173
|
+
"enum": [
|
|
19174
|
+
"system"
|
|
19175
|
+
]
|
|
19176
|
+
},
|
|
19177
|
+
{
|
|
19178
|
+
"type": "string",
|
|
19179
|
+
"enum": [
|
|
19180
|
+
"light"
|
|
19181
|
+
]
|
|
19182
|
+
},
|
|
19183
|
+
{
|
|
19184
|
+
"type": "string",
|
|
19185
|
+
"enum": [
|
|
19186
|
+
"dark"
|
|
19187
|
+
]
|
|
19188
|
+
}
|
|
19189
|
+
],
|
|
19190
|
+
"description": "Colour theme of the hosted login screens. `system` (the default): the visitor's OS decides, and the visitor can switch it from the screen. `light` / `dark`: forced, and the switch is hidden — for applications whose own pages are only one of the two. A `theme` query parameter on `/authorize` overrides this for that login."
|
|
19191
|
+
}
|
|
19192
|
+
},
|
|
19193
|
+
"additionalProperties": false,
|
|
19194
|
+
"description": "Which login methods the hosted login screen offers and in what order. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so a client can flip one flag without restating the rest. Absent everywhere = built-in defaults."
|
|
19195
|
+
},
|
|
19196
|
+
"profile_fields": {
|
|
19197
|
+
"type": "array",
|
|
19198
|
+
"items": {
|
|
19199
|
+
"type": "object",
|
|
19200
|
+
"required": [
|
|
19201
|
+
"key",
|
|
19202
|
+
"type"
|
|
19203
|
+
],
|
|
19204
|
+
"properties": {
|
|
19205
|
+
"key": {
|
|
19206
|
+
"type": "string",
|
|
19207
|
+
"pattern": "^[a-z0-9_]{1,40}$",
|
|
19208
|
+
"description": "The field key, as it is stored in `user_metadata[\"faable.com/fields\"]`."
|
|
19209
|
+
},
|
|
19210
|
+
"type": {
|
|
19211
|
+
"anyOf": [
|
|
19212
|
+
{
|
|
19213
|
+
"type": "string",
|
|
19214
|
+
"enum": [
|
|
19215
|
+
"string"
|
|
19216
|
+
]
|
|
19217
|
+
},
|
|
19218
|
+
{
|
|
19219
|
+
"type": "string",
|
|
19220
|
+
"enum": [
|
|
19221
|
+
"enum"
|
|
19222
|
+
]
|
|
19223
|
+
}
|
|
19224
|
+
],
|
|
19225
|
+
"description": "`string`: free text up to `max_length`. `enum`: one of `options`."
|
|
19226
|
+
},
|
|
19227
|
+
"options": {
|
|
19228
|
+
"type": "array",
|
|
19229
|
+
"items": {
|
|
19230
|
+
"type": "string",
|
|
19231
|
+
"minLength": 1,
|
|
19232
|
+
"maxLength": 200
|
|
19233
|
+
},
|
|
19234
|
+
"minItems": 1,
|
|
19235
|
+
"maxItems": 100,
|
|
19236
|
+
"description": "The accepted values when `type` is `enum`."
|
|
19237
|
+
},
|
|
19238
|
+
"max_length": {
|
|
19239
|
+
"type": "integer",
|
|
19240
|
+
"minimum": 1,
|
|
19241
|
+
"maximum": 1000,
|
|
19242
|
+
"description": "Longest accepted value for a `string` field. Default 200."
|
|
19243
|
+
}
|
|
19244
|
+
},
|
|
19245
|
+
"additionalProperties": false
|
|
19246
|
+
},
|
|
19247
|
+
"maxItems": 20,
|
|
19248
|
+
"description": "Profile fields the user may write on themselves with `PATCH /me` (`fields`), stored in `user_metadata[\"faable.com/fields\"]`. On a Client it replaces the account's list entirely; absent = inherit.",
|
|
19249
|
+
"nullable": true
|
|
19250
|
+
},
|
|
19251
|
+
"login_flow": {
|
|
19252
|
+
"type": "string",
|
|
19253
|
+
"description": "The login flow bound to this account (`loginflow_xxx`). Absent = the flow compiled from the settings. A Client may bind its own.",
|
|
19254
|
+
"nullable": true
|
|
19255
|
+
},
|
|
19256
|
+
"mfa_policy": {
|
|
19257
|
+
"type": "object",
|
|
19258
|
+
"properties": {
|
|
19259
|
+
"mode": {
|
|
19260
|
+
"anyOf": [
|
|
19261
|
+
{
|
|
19262
|
+
"anyOf": [
|
|
19263
|
+
{
|
|
19264
|
+
"type": "string",
|
|
19265
|
+
"enum": [
|
|
19266
|
+
"off"
|
|
19267
|
+
]
|
|
19268
|
+
},
|
|
19269
|
+
{
|
|
19270
|
+
"type": "string",
|
|
19271
|
+
"enum": [
|
|
19272
|
+
"optional"
|
|
19273
|
+
]
|
|
19274
|
+
},
|
|
19275
|
+
{
|
|
19276
|
+
"type": "string",
|
|
19277
|
+
"enum": [
|
|
19278
|
+
"required"
|
|
19279
|
+
]
|
|
19280
|
+
}
|
|
19281
|
+
]
|
|
19282
|
+
}
|
|
19283
|
+
],
|
|
19284
|
+
"description": "`off` (default) never challenges. `optional` challenges a user who has enrolled a factor, and lets everyone else in. `required` challenges everyone and sends users with no factor through enrolment during login — it never locks anyone out in place."
|
|
19285
|
+
},
|
|
19286
|
+
"allowed_factors": {
|
|
19287
|
+
"type": "array",
|
|
19288
|
+
"items": {
|
|
19289
|
+
"anyOf": [
|
|
19290
|
+
{
|
|
19291
|
+
"type": "string",
|
|
19292
|
+
"enum": [
|
|
19293
|
+
"totp"
|
|
19294
|
+
]
|
|
19295
|
+
},
|
|
19296
|
+
{
|
|
19297
|
+
"type": "string",
|
|
19298
|
+
"enum": [
|
|
19299
|
+
"webauthn"
|
|
19300
|
+
]
|
|
19301
|
+
}
|
|
19302
|
+
]
|
|
19303
|
+
},
|
|
19304
|
+
"description": "Which kinds of second factor satisfy the policy. Empty or unset means all of them. A user whose only factor is of a kind not listed here is treated as having none."
|
|
19305
|
+
},
|
|
19306
|
+
"remember_device_days": {
|
|
19307
|
+
"type": "integer",
|
|
19308
|
+
"minimum": 0,
|
|
19309
|
+
"maximum": 365,
|
|
19310
|
+
"description": "How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time."
|
|
19311
|
+
}
|
|
19312
|
+
},
|
|
19313
|
+
"additionalProperties": false,
|
|
19314
|
+
"description": "Second-factor policy. Set on the Account as the tenant default; the same object on a Client overrides it **field by field**, so one app can require MFA without changing the rest."
|
|
19315
|
+
},
|
|
19316
|
+
"recovery_channels": {
|
|
19317
|
+
"type": "object",
|
|
19318
|
+
"properties": {
|
|
19319
|
+
"enabled": {
|
|
19320
|
+
"type": "array",
|
|
19321
|
+
"items": {
|
|
19322
|
+
"anyOf": [
|
|
19323
|
+
{
|
|
19324
|
+
"type": "string",
|
|
19325
|
+
"enum": [
|
|
19326
|
+
"email"
|
|
19327
|
+
]
|
|
19328
|
+
},
|
|
19329
|
+
{
|
|
19330
|
+
"type": "string",
|
|
19331
|
+
"enum": [
|
|
19332
|
+
"sms"
|
|
19333
|
+
]
|
|
19334
|
+
},
|
|
19335
|
+
{
|
|
19336
|
+
"type": "string",
|
|
19337
|
+
"enum": [
|
|
19338
|
+
"whatsapp"
|
|
19339
|
+
]
|
|
19340
|
+
},
|
|
19341
|
+
{
|
|
19342
|
+
"type": "string",
|
|
19343
|
+
"enum": [
|
|
19344
|
+
"factor"
|
|
19345
|
+
]
|
|
19346
|
+
}
|
|
19347
|
+
]
|
|
19348
|
+
},
|
|
19349
|
+
"description": "Channels the tenant has turned on. `email` is always on regardless of this list: it is what every other channel falls back to. A channel listed here is still offered only if the platform can send it, the plan allows it and the user has a verified destination for it."
|
|
19350
|
+
},
|
|
19351
|
+
"default": {
|
|
19352
|
+
"anyOf": [
|
|
19353
|
+
{
|
|
19354
|
+
"anyOf": [
|
|
19355
|
+
{
|
|
19356
|
+
"type": "string",
|
|
19357
|
+
"enum": [
|
|
19358
|
+
"email"
|
|
19359
|
+
]
|
|
19360
|
+
},
|
|
19361
|
+
{
|
|
19362
|
+
"type": "string",
|
|
19363
|
+
"enum": [
|
|
19364
|
+
"sms"
|
|
19365
|
+
]
|
|
19366
|
+
},
|
|
19367
|
+
{
|
|
19368
|
+
"type": "string",
|
|
19369
|
+
"enum": [
|
|
19370
|
+
"whatsapp"
|
|
19371
|
+
]
|
|
19372
|
+
},
|
|
19373
|
+
{
|
|
19374
|
+
"type": "string",
|
|
19375
|
+
"enum": [
|
|
19376
|
+
"factor"
|
|
19377
|
+
]
|
|
19378
|
+
}
|
|
19379
|
+
]
|
|
19380
|
+
}
|
|
19381
|
+
],
|
|
19382
|
+
"description": "The channel used when the user is not asked to choose. Falls back to `email` when it is not available for that user."
|
|
19383
|
+
},
|
|
19384
|
+
"visible": {
|
|
19385
|
+
"type": "array",
|
|
19386
|
+
"items": {
|
|
19387
|
+
"anyOf": [
|
|
19388
|
+
{
|
|
19389
|
+
"type": "string",
|
|
19390
|
+
"enum": [
|
|
19391
|
+
"email"
|
|
19392
|
+
]
|
|
19393
|
+
},
|
|
19394
|
+
{
|
|
19395
|
+
"type": "string",
|
|
19396
|
+
"enum": [
|
|
19397
|
+
"sms"
|
|
19398
|
+
]
|
|
19399
|
+
},
|
|
19400
|
+
{
|
|
19401
|
+
"type": "string",
|
|
19402
|
+
"enum": [
|
|
19403
|
+
"whatsapp"
|
|
19404
|
+
]
|
|
19405
|
+
},
|
|
19406
|
+
{
|
|
19407
|
+
"type": "string",
|
|
19408
|
+
"enum": [
|
|
19409
|
+
"factor"
|
|
19410
|
+
]
|
|
19411
|
+
}
|
|
19412
|
+
]
|
|
19413
|
+
},
|
|
19414
|
+
"description": "Channels the recovery screen offers the user to pick from, after they enter their identifier. Empty (the default) keeps today's behaviour: the default channel is used silently and the response never reveals whether the account exists. A non-empty list shows a picker with masked destinations — which does reveal that the account exists and which channels it has, the same trade-off Google and Microsoft make. A tenant decision."
|
|
19415
|
+
}
|
|
19416
|
+
},
|
|
19417
|
+
"additionalProperties": false,
|
|
19418
|
+
"description": "Password-recovery delivery channels. Set on the Account as the tenant default; the same object on a Client overrides it field by field, like `login_methods` and `mfa_policy`."
|
|
19419
|
+
},
|
|
19420
|
+
"default_country_iso": {
|
|
19421
|
+
"type": "string",
|
|
19422
|
+
"minLength": 2,
|
|
19423
|
+
"maxLength": 2,
|
|
19424
|
+
"description": "ISO 3166-1 alpha-2 country assumed for phone numbers written without an international prefix (`636647460` → `+34…` with `ES`). Needed before SMS can reach anyone: most people type their number without a prefix.",
|
|
19425
|
+
"nullable": true
|
|
19426
|
+
},
|
|
19427
|
+
"webauthn_rp_id": {
|
|
19428
|
+
"type": "string",
|
|
19429
|
+
"description": "WebAuthn Relying Party ID for this tenant's passkeys. Defaults to the account domain. Set it to a registrable suffix you own (e.g. `acme.com`) when the login screen is served from more than one host — the RP ID is frozen into every credential at registration, so changing it afterwards invalidates every passkey already enrolled.",
|
|
19430
|
+
"nullable": true
|
|
19431
|
+
},
|
|
19432
|
+
"logout_confirm_required": {
|
|
19433
|
+
"type": "boolean",
|
|
19434
|
+
"description": "When true, `/logout` asks the End-User to confirm before ending the session unless the request carries a verified `id_token_hint`. Off by default — a plain link to `/logout` is otherwise enough to sign anyone out (logout CSRF)."
|
|
19435
|
+
},
|
|
19436
|
+
"dynamic_client_registration_enabled": {
|
|
19437
|
+
"type": "boolean",
|
|
19438
|
+
"description": "When true, anyone can register a client with `POST /oidc/register` (OIDC Dynamic Client Registration / RFC 7591) and the discovery document advertises `registration_endpoint`. Off by default: an open registration lets anyone create a client with their own `redirect_uri`."
|
|
19439
|
+
},
|
|
19440
|
+
"oauth21_enabled": {
|
|
19441
|
+
"type": "boolean",
|
|
19442
|
+
"description": "When true, the tenant enforces OAuth 2.1: `/authorize` accepts only `response_type=code` and requires PKCE (`code_challenge` with `S256`) from every client, a password login without `/authorize` needs PKCE too, and the password grant is refused. Refused requests answer `oauth21_required`. On for new tenants; an existing tenant turns it on when its applications are ready — with `@faable/auth-js` that is version 3.1.0 or later."
|
|
19443
|
+
},
|
|
19444
|
+
"oauth_link_verified_email": {
|
|
19445
|
+
"type": "boolean",
|
|
19446
|
+
"description": "When true, signing in with Google, GitHub, GitLab or Apple for the first time attaches that provider to the existing user with the same email instead of creating a second user — only when the provider attests the email as verified, exactly one user of the tenant has that email verified, that user is not suspended and has no other identity of the same connection. Off by default."
|
|
19447
|
+
},
|
|
19448
|
+
"client_id_metadata_documents_enabled": {
|
|
19449
|
+
"type": "boolean",
|
|
19450
|
+
"description": "When true, /authorize accepts a `client_id` that is an https URL serving a Client ID Metadata Document (the MCP authorization way to identify a client without registering it). Such clients always see the consent screen. Off by default."
|
|
19451
|
+
},
|
|
19452
|
+
"canonical_host": {
|
|
19453
|
+
"type": "string",
|
|
19454
|
+
"description": "The one host this tenant's OIDC issuer and discovery document are always minted with, regardless of which host actually served the request — must be the account's own platform host or one of its verified custom domains. `/authorize` and `/logout` 302 here from any other host of the tenant. Unset (the default): every URL uses whatever host served the request, as before this field existed. Changing it can invalidate every WebAuthn passkey already enrolled unless `webauthn_rp_id` already covers the new host.",
|
|
19455
|
+
"nullable": true
|
|
19456
|
+
},
|
|
19457
|
+
"disabled_at": {
|
|
19458
|
+
"type": "string",
|
|
19459
|
+
"description": "When the tenant was disabled. While set, nobody can sign in (every end-user endpoint answers 403 `account_disabled`) and management writes are refused; reads keep working. Null or absent: the tenant is active.",
|
|
19460
|
+
"nullable": true
|
|
19461
|
+
},
|
|
19462
|
+
"disabled_by": {
|
|
19463
|
+
"anyOf": [
|
|
19464
|
+
{
|
|
19465
|
+
"type": "string",
|
|
19466
|
+
"enum": [
|
|
19467
|
+
"owner"
|
|
19468
|
+
]
|
|
19469
|
+
},
|
|
19470
|
+
{
|
|
19471
|
+
"type": "string",
|
|
19472
|
+
"enum": [
|
|
19473
|
+
"staff"
|
|
19474
|
+
]
|
|
19475
|
+
},
|
|
19476
|
+
{
|
|
19477
|
+
"type": "null"
|
|
19478
|
+
}
|
|
19479
|
+
],
|
|
19480
|
+
"description": "Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it)."
|
|
19481
|
+
},
|
|
19482
|
+
"createdAt": {
|
|
19483
|
+
"type": "string",
|
|
19484
|
+
"description": "AuthAccount creation date"
|
|
19485
|
+
},
|
|
19486
|
+
"updatedAt": {
|
|
19487
|
+
"type": "string",
|
|
19488
|
+
"description": "AuthAccount updated date"
|
|
19489
|
+
}
|
|
19490
|
+
},
|
|
19491
|
+
"description": "AuthAccount"
|
|
19492
|
+
}
|
|
19493
|
+
}
|
|
19494
|
+
}
|
|
19495
|
+
},
|
|
19496
|
+
"400": {
|
|
19497
|
+
"description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
19498
|
+
"content": {
|
|
19499
|
+
"application/json": {
|
|
19500
|
+
"schema": {
|
|
19501
|
+
"allOf": [
|
|
19502
|
+
{
|
|
19503
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19504
|
+
},
|
|
19505
|
+
{
|
|
19506
|
+
"type": "object",
|
|
19507
|
+
"properties": {
|
|
19508
|
+
"error_code": {
|
|
19509
|
+
"type": "string",
|
|
19510
|
+
"enum": [
|
|
19511
|
+
"validation_error"
|
|
19512
|
+
]
|
|
19513
|
+
}
|
|
19514
|
+
}
|
|
19515
|
+
}
|
|
19516
|
+
]
|
|
19517
|
+
}
|
|
19518
|
+
}
|
|
19519
|
+
}
|
|
19520
|
+
},
|
|
19521
|
+
"401": {
|
|
19522
|
+
"description": "`unauthorized` — The request carries no valid credentials.",
|
|
19523
|
+
"content": {
|
|
19524
|
+
"application/json": {
|
|
19525
|
+
"schema": {
|
|
19526
|
+
"allOf": [
|
|
19527
|
+
{
|
|
19528
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19529
|
+
},
|
|
19530
|
+
{
|
|
19531
|
+
"type": "object",
|
|
19532
|
+
"properties": {
|
|
19533
|
+
"error_code": {
|
|
19534
|
+
"type": "string",
|
|
19535
|
+
"enum": [
|
|
19536
|
+
"unauthorized"
|
|
19537
|
+
]
|
|
19538
|
+
}
|
|
19539
|
+
}
|
|
19540
|
+
}
|
|
19541
|
+
]
|
|
19542
|
+
}
|
|
19543
|
+
}
|
|
19544
|
+
}
|
|
19545
|
+
},
|
|
19546
|
+
"403": {
|
|
19547
|
+
"description": "`account_disabled` — The Auth tenant is disabled: nobody can sign in and management writes are refused; reads keep working. `details.disabled_by` is `owner` (enable it again from the dashboard) or `staff` (contact support@faable.com).\n\n`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
|
|
19548
|
+
"content": {
|
|
19549
|
+
"application/json": {
|
|
19550
|
+
"schema": {
|
|
19551
|
+
"allOf": [
|
|
19552
|
+
{
|
|
19553
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19554
|
+
},
|
|
19555
|
+
{
|
|
19556
|
+
"type": "object",
|
|
19557
|
+
"properties": {
|
|
19558
|
+
"error_code": {
|
|
19559
|
+
"type": "string",
|
|
19560
|
+
"enum": [
|
|
19561
|
+
"account_disabled",
|
|
19562
|
+
"forbidden",
|
|
19563
|
+
"insufficient_scope",
|
|
19564
|
+
"user_suspended"
|
|
19565
|
+
]
|
|
19566
|
+
}
|
|
19567
|
+
}
|
|
19568
|
+
}
|
|
19569
|
+
]
|
|
19570
|
+
}
|
|
19571
|
+
}
|
|
19572
|
+
}
|
|
19573
|
+
},
|
|
19574
|
+
"404": {
|
|
19575
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
19576
|
+
"content": {
|
|
19577
|
+
"application/json": {
|
|
19578
|
+
"schema": {
|
|
19579
|
+
"allOf": [
|
|
19580
|
+
{
|
|
19581
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19582
|
+
},
|
|
19583
|
+
{
|
|
19584
|
+
"type": "object",
|
|
19585
|
+
"properties": {
|
|
19586
|
+
"error_code": {
|
|
19587
|
+
"type": "string",
|
|
19588
|
+
"enum": [
|
|
19589
|
+
"account_not_found"
|
|
19590
|
+
]
|
|
19591
|
+
}
|
|
19592
|
+
}
|
|
19593
|
+
}
|
|
19594
|
+
]
|
|
19595
|
+
}
|
|
19596
|
+
}
|
|
19597
|
+
}
|
|
19598
|
+
},
|
|
19599
|
+
"429": {
|
|
19600
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
19601
|
+
"content": {
|
|
19602
|
+
"application/json": {
|
|
19603
|
+
"schema": {
|
|
19604
|
+
"allOf": [
|
|
19605
|
+
{
|
|
19606
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19607
|
+
},
|
|
19608
|
+
{
|
|
19609
|
+
"type": "object",
|
|
19610
|
+
"properties": {
|
|
19611
|
+
"error_code": {
|
|
19612
|
+
"type": "string",
|
|
19613
|
+
"enum": [
|
|
19614
|
+
"too_many_requests"
|
|
19615
|
+
]
|
|
19616
|
+
}
|
|
19617
|
+
}
|
|
19618
|
+
}
|
|
19619
|
+
]
|
|
19620
|
+
}
|
|
19621
|
+
}
|
|
19622
|
+
}
|
|
19623
|
+
},
|
|
19624
|
+
"500": {
|
|
19625
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
19626
|
+
"content": {
|
|
19627
|
+
"application/json": {
|
|
19628
|
+
"schema": {
|
|
19629
|
+
"allOf": [
|
|
19630
|
+
{
|
|
19631
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19632
|
+
},
|
|
19633
|
+
{
|
|
19634
|
+
"type": "object",
|
|
19635
|
+
"properties": {
|
|
19636
|
+
"error_code": {
|
|
19637
|
+
"type": "string",
|
|
19638
|
+
"enum": [
|
|
19639
|
+
"internal_error"
|
|
19640
|
+
]
|
|
19641
|
+
}
|
|
19642
|
+
}
|
|
19643
|
+
}
|
|
19644
|
+
]
|
|
19645
|
+
}
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19648
|
+
}
|
|
19649
|
+
}
|
|
19650
|
+
}
|
|
19651
|
+
},
|
|
19652
|
+
"/internal/account/{account_id}/disable": {
|
|
19653
|
+
"post": {
|
|
19654
|
+
"operationId": "internal/accountDisable",
|
|
19655
|
+
"summary": "Disable an Account as Faable staff (platform)",
|
|
19656
|
+
"tags": [
|
|
19657
|
+
"account"
|
|
19658
|
+
],
|
|
19659
|
+
"description": "Same effect as `account/disable`, recorded as `disabled_by: staff`: the owner cannot enable it again. Overrides a disable by the owner. Platform token with `update:accounts`; the deploy api calls it after checking the caller is staff.",
|
|
19660
|
+
"requestBody": {
|
|
19661
|
+
"required": true,
|
|
19662
|
+
"content": {
|
|
19663
|
+
"application/json": {
|
|
19664
|
+
"schema": {
|
|
19665
|
+
"type": "object",
|
|
19666
|
+
"required": [
|
|
19667
|
+
"reason",
|
|
19668
|
+
"actor"
|
|
19669
|
+
],
|
|
19670
|
+
"properties": {
|
|
19671
|
+
"reason": {
|
|
19672
|
+
"type": "string",
|
|
19673
|
+
"minLength": 1,
|
|
19674
|
+
"maxLength": 500,
|
|
19675
|
+
"description": "Why staff disabled it. Internal: never shown to the tenant."
|
|
19676
|
+
},
|
|
19677
|
+
"actor": {
|
|
19678
|
+
"type": "string",
|
|
19679
|
+
"minLength": 1,
|
|
19680
|
+
"maxLength": 200,
|
|
19681
|
+
"description": "The `sub` of the staff member who did it."
|
|
19682
|
+
}
|
|
19683
|
+
},
|
|
19684
|
+
"additionalProperties": false
|
|
19685
|
+
}
|
|
19686
|
+
}
|
|
19687
|
+
}
|
|
19688
|
+
},
|
|
19689
|
+
"parameters": [
|
|
19690
|
+
{
|
|
19691
|
+
"schema": {
|
|
19692
|
+
"type": "string"
|
|
19693
|
+
},
|
|
19694
|
+
"in": "path",
|
|
19695
|
+
"name": "account_id",
|
|
19696
|
+
"required": true
|
|
19697
|
+
}
|
|
19698
|
+
],
|
|
19699
|
+
"security": [
|
|
19700
|
+
{
|
|
19701
|
+
"bearerAuth": []
|
|
19702
|
+
}
|
|
19703
|
+
],
|
|
19704
|
+
"responses": {
|
|
19705
|
+
"200": {
|
|
19706
|
+
"description": "Default Response",
|
|
19707
|
+
"content": {
|
|
19708
|
+
"application/json": {
|
|
19709
|
+
"schema": {
|
|
19710
|
+
"type": "object",
|
|
19711
|
+
"required": [
|
|
19712
|
+
"account_id",
|
|
19713
|
+
"team",
|
|
19714
|
+
"name",
|
|
19715
|
+
"disabled_at",
|
|
19716
|
+
"disabled_by",
|
|
19717
|
+
"disabled_reason",
|
|
19718
|
+
"disabled_actor",
|
|
19719
|
+
"changed"
|
|
19720
|
+
],
|
|
19721
|
+
"properties": {
|
|
19722
|
+
"account_id": {
|
|
19723
|
+
"type": "string"
|
|
19724
|
+
},
|
|
19725
|
+
"team": {
|
|
19726
|
+
"anyOf": [
|
|
19727
|
+
{
|
|
19728
|
+
"type": "string"
|
|
19729
|
+
},
|
|
19730
|
+
{
|
|
19731
|
+
"type": "null"
|
|
19732
|
+
}
|
|
19733
|
+
]
|
|
19734
|
+
},
|
|
19735
|
+
"name": {
|
|
19736
|
+
"type": "string"
|
|
19737
|
+
},
|
|
19738
|
+
"disabled_at": {
|
|
19739
|
+
"anyOf": [
|
|
19740
|
+
{
|
|
19741
|
+
"type": "string"
|
|
19742
|
+
},
|
|
19743
|
+
{
|
|
19744
|
+
"type": "null"
|
|
19745
|
+
}
|
|
19746
|
+
]
|
|
19747
|
+
},
|
|
19748
|
+
"disabled_by": {
|
|
19749
|
+
"anyOf": [
|
|
19750
|
+
{
|
|
19751
|
+
"type": "string",
|
|
19752
|
+
"enum": [
|
|
19753
|
+
"owner"
|
|
19754
|
+
]
|
|
19755
|
+
},
|
|
19756
|
+
{
|
|
19757
|
+
"type": "string",
|
|
19758
|
+
"enum": [
|
|
19759
|
+
"staff"
|
|
19760
|
+
]
|
|
19761
|
+
},
|
|
19762
|
+
{
|
|
19763
|
+
"type": "null"
|
|
19764
|
+
}
|
|
19765
|
+
]
|
|
19766
|
+
},
|
|
19767
|
+
"disabled_reason": {
|
|
19768
|
+
"anyOf": [
|
|
19769
|
+
{
|
|
19770
|
+
"type": "string"
|
|
19771
|
+
},
|
|
19772
|
+
{
|
|
19773
|
+
"type": "null"
|
|
19774
|
+
}
|
|
19775
|
+
]
|
|
19776
|
+
},
|
|
19777
|
+
"disabled_actor": {
|
|
19778
|
+
"anyOf": [
|
|
19779
|
+
{
|
|
19780
|
+
"type": "string"
|
|
19781
|
+
},
|
|
19782
|
+
{
|
|
19783
|
+
"type": "null"
|
|
19784
|
+
}
|
|
19785
|
+
]
|
|
19786
|
+
},
|
|
19787
|
+
"changed": {
|
|
19788
|
+
"type": "boolean",
|
|
19789
|
+
"description": "False when the tenant was already in the requested state."
|
|
19790
|
+
}
|
|
19791
|
+
}
|
|
19792
|
+
}
|
|
19793
|
+
}
|
|
19794
|
+
}
|
|
19795
|
+
},
|
|
19796
|
+
"400": {
|
|
19797
|
+
"description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
19798
|
+
"content": {
|
|
19799
|
+
"application/json": {
|
|
19800
|
+
"schema": {
|
|
19801
|
+
"allOf": [
|
|
19802
|
+
{
|
|
19803
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19804
|
+
},
|
|
19805
|
+
{
|
|
19806
|
+
"type": "object",
|
|
19807
|
+
"properties": {
|
|
19808
|
+
"error_code": {
|
|
19809
|
+
"type": "string",
|
|
19810
|
+
"enum": [
|
|
19811
|
+
"validation_error"
|
|
19812
|
+
]
|
|
19813
|
+
}
|
|
19814
|
+
}
|
|
19815
|
+
}
|
|
19816
|
+
]
|
|
19817
|
+
}
|
|
19818
|
+
}
|
|
19819
|
+
}
|
|
19820
|
+
},
|
|
19821
|
+
"401": {
|
|
19822
|
+
"description": "`unauthorized` — The request carries no valid credentials.",
|
|
19823
|
+
"content": {
|
|
19824
|
+
"application/json": {
|
|
19825
|
+
"schema": {
|
|
19826
|
+
"allOf": [
|
|
19827
|
+
{
|
|
19828
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19829
|
+
},
|
|
19830
|
+
{
|
|
19831
|
+
"type": "object",
|
|
19832
|
+
"properties": {
|
|
19833
|
+
"error_code": {
|
|
19834
|
+
"type": "string",
|
|
19835
|
+
"enum": [
|
|
19836
|
+
"unauthorized"
|
|
19837
|
+
]
|
|
19838
|
+
}
|
|
19839
|
+
}
|
|
19840
|
+
}
|
|
19841
|
+
]
|
|
19842
|
+
}
|
|
19843
|
+
}
|
|
19844
|
+
}
|
|
19845
|
+
},
|
|
19846
|
+
"403": {
|
|
19847
|
+
"description": "`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
|
|
19848
|
+
"content": {
|
|
19849
|
+
"application/json": {
|
|
19850
|
+
"schema": {
|
|
19851
|
+
"allOf": [
|
|
19852
|
+
{
|
|
19853
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19854
|
+
},
|
|
19855
|
+
{
|
|
19856
|
+
"type": "object",
|
|
19857
|
+
"properties": {
|
|
19858
|
+
"error_code": {
|
|
19859
|
+
"type": "string",
|
|
19860
|
+
"enum": [
|
|
19861
|
+
"forbidden",
|
|
19862
|
+
"insufficient_scope",
|
|
19863
|
+
"user_suspended"
|
|
19864
|
+
]
|
|
19865
|
+
}
|
|
19866
|
+
}
|
|
19867
|
+
}
|
|
19868
|
+
]
|
|
19869
|
+
}
|
|
19870
|
+
}
|
|
19871
|
+
}
|
|
19872
|
+
},
|
|
19873
|
+
"404": {
|
|
19874
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
19875
|
+
"content": {
|
|
19876
|
+
"application/json": {
|
|
19877
|
+
"schema": {
|
|
19878
|
+
"allOf": [
|
|
19879
|
+
{
|
|
19880
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19881
|
+
},
|
|
19882
|
+
{
|
|
19883
|
+
"type": "object",
|
|
19884
|
+
"properties": {
|
|
19885
|
+
"error_code": {
|
|
19886
|
+
"type": "string",
|
|
19887
|
+
"enum": [
|
|
19888
|
+
"account_not_found"
|
|
19889
|
+
]
|
|
19890
|
+
}
|
|
19891
|
+
}
|
|
19892
|
+
}
|
|
19893
|
+
]
|
|
19894
|
+
}
|
|
19895
|
+
}
|
|
19896
|
+
}
|
|
19897
|
+
},
|
|
19898
|
+
"409": {
|
|
19899
|
+
"description": "`account_protected` — A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it.",
|
|
19900
|
+
"content": {
|
|
19901
|
+
"application/json": {
|
|
19902
|
+
"schema": {
|
|
19903
|
+
"allOf": [
|
|
19904
|
+
{
|
|
19905
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19906
|
+
},
|
|
19907
|
+
{
|
|
19908
|
+
"type": "object",
|
|
19909
|
+
"properties": {
|
|
19910
|
+
"error_code": {
|
|
19911
|
+
"type": "string",
|
|
19912
|
+
"enum": [
|
|
19913
|
+
"account_protected"
|
|
19914
|
+
]
|
|
19915
|
+
}
|
|
19916
|
+
}
|
|
19917
|
+
}
|
|
19918
|
+
]
|
|
19919
|
+
}
|
|
19920
|
+
}
|
|
19921
|
+
}
|
|
19922
|
+
},
|
|
19923
|
+
"429": {
|
|
19924
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
19925
|
+
"content": {
|
|
19926
|
+
"application/json": {
|
|
19927
|
+
"schema": {
|
|
19928
|
+
"allOf": [
|
|
19929
|
+
{
|
|
19930
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19931
|
+
},
|
|
19932
|
+
{
|
|
19933
|
+
"type": "object",
|
|
19934
|
+
"properties": {
|
|
19935
|
+
"error_code": {
|
|
19936
|
+
"type": "string",
|
|
19937
|
+
"enum": [
|
|
19938
|
+
"too_many_requests"
|
|
19939
|
+
]
|
|
19940
|
+
}
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
]
|
|
19944
|
+
}
|
|
19945
|
+
}
|
|
19946
|
+
}
|
|
19947
|
+
},
|
|
19948
|
+
"500": {
|
|
19949
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
19950
|
+
"content": {
|
|
19951
|
+
"application/json": {
|
|
19952
|
+
"schema": {
|
|
19953
|
+
"allOf": [
|
|
19954
|
+
{
|
|
19955
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
19956
|
+
},
|
|
19957
|
+
{
|
|
19958
|
+
"type": "object",
|
|
19959
|
+
"properties": {
|
|
19960
|
+
"error_code": {
|
|
19961
|
+
"type": "string",
|
|
19962
|
+
"enum": [
|
|
19963
|
+
"internal_error"
|
|
19964
|
+
]
|
|
19965
|
+
}
|
|
19966
|
+
}
|
|
19967
|
+
}
|
|
19968
|
+
]
|
|
19969
|
+
}
|
|
19970
|
+
}
|
|
19971
|
+
}
|
|
19972
|
+
}
|
|
19973
|
+
}
|
|
19974
|
+
}
|
|
19975
|
+
},
|
|
19976
|
+
"/internal/account/{account_id}/enable": {
|
|
19977
|
+
"post": {
|
|
19978
|
+
"operationId": "internal/accountEnable",
|
|
19979
|
+
"summary": "Enable an Account as Faable staff (platform)",
|
|
19980
|
+
"tags": [
|
|
19981
|
+
"account"
|
|
19982
|
+
],
|
|
19983
|
+
"description": "Enables the tenant whoever disabled it. Platform token with `update:accounts`.",
|
|
19984
|
+
"requestBody": {
|
|
19985
|
+
"required": true,
|
|
19986
|
+
"content": {
|
|
19987
|
+
"application/json": {
|
|
19988
|
+
"schema": {
|
|
19989
|
+
"type": "object",
|
|
19990
|
+
"required": [
|
|
19991
|
+
"actor"
|
|
19992
|
+
],
|
|
19993
|
+
"properties": {
|
|
19994
|
+
"actor": {
|
|
19995
|
+
"type": "string",
|
|
19996
|
+
"minLength": 1,
|
|
19997
|
+
"maxLength": 200
|
|
19998
|
+
}
|
|
19999
|
+
},
|
|
20000
|
+
"additionalProperties": false
|
|
20001
|
+
}
|
|
20002
|
+
}
|
|
20003
|
+
}
|
|
20004
|
+
},
|
|
20005
|
+
"parameters": [
|
|
20006
|
+
{
|
|
20007
|
+
"schema": {
|
|
20008
|
+
"type": "string"
|
|
20009
|
+
},
|
|
20010
|
+
"in": "path",
|
|
20011
|
+
"name": "account_id",
|
|
20012
|
+
"required": true
|
|
20013
|
+
}
|
|
20014
|
+
],
|
|
20015
|
+
"security": [
|
|
20016
|
+
{
|
|
20017
|
+
"bearerAuth": []
|
|
20018
|
+
}
|
|
20019
|
+
],
|
|
20020
|
+
"responses": {
|
|
20021
|
+
"200": {
|
|
20022
|
+
"description": "Default Response",
|
|
20023
|
+
"content": {
|
|
20024
|
+
"application/json": {
|
|
20025
|
+
"schema": {
|
|
20026
|
+
"type": "object",
|
|
20027
|
+
"required": [
|
|
20028
|
+
"account_id",
|
|
20029
|
+
"team",
|
|
20030
|
+
"name",
|
|
20031
|
+
"disabled_at",
|
|
20032
|
+
"disabled_by",
|
|
20033
|
+
"disabled_reason",
|
|
20034
|
+
"disabled_actor",
|
|
20035
|
+
"changed"
|
|
20036
|
+
],
|
|
20037
|
+
"properties": {
|
|
20038
|
+
"account_id": {
|
|
20039
|
+
"type": "string"
|
|
20040
|
+
},
|
|
20041
|
+
"team": {
|
|
20042
|
+
"anyOf": [
|
|
20043
|
+
{
|
|
20044
|
+
"type": "string"
|
|
20045
|
+
},
|
|
20046
|
+
{
|
|
20047
|
+
"type": "null"
|
|
20048
|
+
}
|
|
20049
|
+
]
|
|
20050
|
+
},
|
|
20051
|
+
"name": {
|
|
20052
|
+
"type": "string"
|
|
20053
|
+
},
|
|
20054
|
+
"disabled_at": {
|
|
20055
|
+
"anyOf": [
|
|
20056
|
+
{
|
|
20057
|
+
"type": "string"
|
|
20058
|
+
},
|
|
20059
|
+
{
|
|
20060
|
+
"type": "null"
|
|
20061
|
+
}
|
|
20062
|
+
]
|
|
20063
|
+
},
|
|
20064
|
+
"disabled_by": {
|
|
20065
|
+
"anyOf": [
|
|
20066
|
+
{
|
|
20067
|
+
"type": "string",
|
|
20068
|
+
"enum": [
|
|
20069
|
+
"owner"
|
|
20070
|
+
]
|
|
20071
|
+
},
|
|
20072
|
+
{
|
|
20073
|
+
"type": "string",
|
|
20074
|
+
"enum": [
|
|
20075
|
+
"staff"
|
|
20076
|
+
]
|
|
20077
|
+
},
|
|
20078
|
+
{
|
|
20079
|
+
"type": "null"
|
|
20080
|
+
}
|
|
20081
|
+
]
|
|
20082
|
+
},
|
|
20083
|
+
"disabled_reason": {
|
|
20084
|
+
"anyOf": [
|
|
20085
|
+
{
|
|
20086
|
+
"type": "string"
|
|
20087
|
+
},
|
|
20088
|
+
{
|
|
20089
|
+
"type": "null"
|
|
20090
|
+
}
|
|
20091
|
+
]
|
|
20092
|
+
},
|
|
20093
|
+
"disabled_actor": {
|
|
20094
|
+
"anyOf": [
|
|
20095
|
+
{
|
|
20096
|
+
"type": "string"
|
|
20097
|
+
},
|
|
20098
|
+
{
|
|
20099
|
+
"type": "null"
|
|
20100
|
+
}
|
|
20101
|
+
]
|
|
20102
|
+
},
|
|
20103
|
+
"changed": {
|
|
20104
|
+
"type": "boolean",
|
|
20105
|
+
"description": "False when the tenant was already in the requested state."
|
|
20106
|
+
}
|
|
20107
|
+
}
|
|
20108
|
+
}
|
|
20109
|
+
}
|
|
20110
|
+
}
|
|
20111
|
+
},
|
|
20112
|
+
"400": {
|
|
20113
|
+
"description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
20114
|
+
"content": {
|
|
20115
|
+
"application/json": {
|
|
20116
|
+
"schema": {
|
|
20117
|
+
"allOf": [
|
|
20118
|
+
{
|
|
20119
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20120
|
+
},
|
|
20121
|
+
{
|
|
20122
|
+
"type": "object",
|
|
20123
|
+
"properties": {
|
|
20124
|
+
"error_code": {
|
|
20125
|
+
"type": "string",
|
|
20126
|
+
"enum": [
|
|
20127
|
+
"validation_error"
|
|
20128
|
+
]
|
|
20129
|
+
}
|
|
20130
|
+
}
|
|
20131
|
+
}
|
|
20132
|
+
]
|
|
20133
|
+
}
|
|
20134
|
+
}
|
|
20135
|
+
}
|
|
20136
|
+
},
|
|
20137
|
+
"401": {
|
|
20138
|
+
"description": "`unauthorized` — The request carries no valid credentials.",
|
|
20139
|
+
"content": {
|
|
20140
|
+
"application/json": {
|
|
20141
|
+
"schema": {
|
|
20142
|
+
"allOf": [
|
|
20143
|
+
{
|
|
20144
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20145
|
+
},
|
|
20146
|
+
{
|
|
20147
|
+
"type": "object",
|
|
20148
|
+
"properties": {
|
|
20149
|
+
"error_code": {
|
|
20150
|
+
"type": "string",
|
|
20151
|
+
"enum": [
|
|
20152
|
+
"unauthorized"
|
|
20153
|
+
]
|
|
20154
|
+
}
|
|
20155
|
+
}
|
|
20156
|
+
}
|
|
20157
|
+
]
|
|
20158
|
+
}
|
|
20159
|
+
}
|
|
20160
|
+
}
|
|
20161
|
+
},
|
|
20162
|
+
"403": {
|
|
20163
|
+
"description": "`forbidden` — The credentials are valid but do not allow this operation.\n\n`insufficient_scope` — The token lacks a scope this operation requires. `message` names it.\n\n`user_suspended` — The user is suspended and cannot sign in or be modified.",
|
|
20164
|
+
"content": {
|
|
20165
|
+
"application/json": {
|
|
20166
|
+
"schema": {
|
|
20167
|
+
"allOf": [
|
|
20168
|
+
{
|
|
20169
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20170
|
+
},
|
|
20171
|
+
{
|
|
20172
|
+
"type": "object",
|
|
20173
|
+
"properties": {
|
|
20174
|
+
"error_code": {
|
|
20175
|
+
"type": "string",
|
|
20176
|
+
"enum": [
|
|
20177
|
+
"forbidden",
|
|
20178
|
+
"insufficient_scope",
|
|
20179
|
+
"user_suspended"
|
|
20180
|
+
]
|
|
20181
|
+
}
|
|
20182
|
+
}
|
|
20183
|
+
}
|
|
20184
|
+
]
|
|
20185
|
+
}
|
|
20186
|
+
}
|
|
20187
|
+
}
|
|
20188
|
+
},
|
|
20189
|
+
"404": {
|
|
20190
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
20191
|
+
"content": {
|
|
20192
|
+
"application/json": {
|
|
20193
|
+
"schema": {
|
|
20194
|
+
"allOf": [
|
|
20195
|
+
{
|
|
20196
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20197
|
+
},
|
|
20198
|
+
{
|
|
20199
|
+
"type": "object",
|
|
20200
|
+
"properties": {
|
|
20201
|
+
"error_code": {
|
|
20202
|
+
"type": "string",
|
|
20203
|
+
"enum": [
|
|
20204
|
+
"account_not_found"
|
|
20205
|
+
]
|
|
20206
|
+
}
|
|
20207
|
+
}
|
|
20208
|
+
}
|
|
20209
|
+
]
|
|
20210
|
+
}
|
|
20211
|
+
}
|
|
20212
|
+
}
|
|
20213
|
+
},
|
|
20214
|
+
"429": {
|
|
20215
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
20216
|
+
"content": {
|
|
20217
|
+
"application/json": {
|
|
20218
|
+
"schema": {
|
|
20219
|
+
"allOf": [
|
|
20220
|
+
{
|
|
20221
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20222
|
+
},
|
|
20223
|
+
{
|
|
20224
|
+
"type": "object",
|
|
20225
|
+
"properties": {
|
|
20226
|
+
"error_code": {
|
|
20227
|
+
"type": "string",
|
|
20228
|
+
"enum": [
|
|
20229
|
+
"too_many_requests"
|
|
20230
|
+
]
|
|
20231
|
+
}
|
|
20232
|
+
}
|
|
20233
|
+
}
|
|
20234
|
+
]
|
|
20235
|
+
}
|
|
20236
|
+
}
|
|
20237
|
+
}
|
|
20238
|
+
},
|
|
20239
|
+
"500": {
|
|
20240
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
20241
|
+
"content": {
|
|
20242
|
+
"application/json": {
|
|
20243
|
+
"schema": {
|
|
20244
|
+
"allOf": [
|
|
20245
|
+
{
|
|
20246
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20247
|
+
},
|
|
20248
|
+
{
|
|
20249
|
+
"type": "object",
|
|
20250
|
+
"properties": {
|
|
20251
|
+
"error_code": {
|
|
20252
|
+
"type": "string",
|
|
20253
|
+
"enum": [
|
|
20254
|
+
"internal_error"
|
|
20255
|
+
]
|
|
20256
|
+
}
|
|
20257
|
+
}
|
|
20258
|
+
}
|
|
20259
|
+
]
|
|
20260
|
+
}
|
|
20261
|
+
}
|
|
20262
|
+
}
|
|
20263
|
+
}
|
|
20264
|
+
}
|
|
20265
|
+
}
|
|
20266
|
+
},
|
|
20267
|
+
"/connection": {
|
|
20268
|
+
"get": {
|
|
20269
|
+
"operationId": "connection/list",
|
|
20270
|
+
"summary": "List Connections",
|
|
20271
|
+
"tags": [
|
|
20272
|
+
"connection"
|
|
20273
|
+
],
|
|
20274
|
+
"description": "List Connections",
|
|
20275
|
+
"parameters": [
|
|
20276
|
+
{
|
|
20277
|
+
"schema": {
|
|
20278
|
+
"type": "number",
|
|
20279
|
+
"minimum": 1,
|
|
20280
|
+
"maximum": 200
|
|
20281
|
+
},
|
|
20282
|
+
"in": "query",
|
|
20283
|
+
"name": "pageSize",
|
|
20284
|
+
"required": false,
|
|
20285
|
+
"description": "Number of items per page (max 200)"
|
|
20286
|
+
},
|
|
20287
|
+
{
|
|
20288
|
+
"schema": {
|
|
20289
|
+
"type": "string"
|
|
20290
|
+
},
|
|
20291
|
+
"in": "query",
|
|
20292
|
+
"name": "cursor",
|
|
20293
|
+
"required": false,
|
|
20294
|
+
"description": "Cursor for next page"
|
|
20295
|
+
},
|
|
20296
|
+
{
|
|
20297
|
+
"schema": {
|
|
20298
|
+
"type": "string"
|
|
20299
|
+
},
|
|
20300
|
+
"in": "query",
|
|
20301
|
+
"name": "next",
|
|
20302
|
+
"required": false,
|
|
20303
|
+
"description": "Cursor returned by the previous page"
|
|
20304
|
+
},
|
|
20305
|
+
{
|
|
20306
|
+
"schema": {
|
|
20307
|
+
"type": "string"
|
|
20308
|
+
},
|
|
20309
|
+
"in": "query",
|
|
20310
|
+
"name": "connection_type",
|
|
20311
|
+
"required": false,
|
|
20312
|
+
"description": "Exact match on `connection_type`. Equivalent to `?query=connection_type:<value>`."
|
|
20313
|
+
},
|
|
20314
|
+
{
|
|
20315
|
+
"schema": {
|
|
20316
|
+
"type": "string"
|
|
20317
|
+
},
|
|
20318
|
+
"in": "query",
|
|
20319
|
+
"name": "enabled",
|
|
20320
|
+
"required": false,
|
|
20321
|
+
"description": "Exact match on `enabled`. Equivalent to `?query=enabled:<value>`."
|
|
20322
|
+
},
|
|
20323
|
+
{
|
|
20324
|
+
"schema": {
|
|
20325
|
+
"type": "string"
|
|
20326
|
+
},
|
|
20327
|
+
"in": "query",
|
|
20328
|
+
"name": "category",
|
|
20329
|
+
"required": false,
|
|
20330
|
+
"description": "Exact match on `category`. Equivalent to `?query=category:<value>`."
|
|
20331
|
+
},
|
|
20332
|
+
{
|
|
20333
|
+
"schema": {
|
|
20334
|
+
"type": "boolean"
|
|
20335
|
+
},
|
|
20336
|
+
"in": "query",
|
|
20337
|
+
"name": "count",
|
|
20338
|
+
"required": false,
|
|
20339
|
+
"description": "Also return `total`: the rows matching the whole filter, across every page."
|
|
20340
|
+
},
|
|
20341
|
+
{
|
|
20342
|
+
"schema": {
|
|
20343
|
+
"type": "string"
|
|
20344
|
+
},
|
|
20345
|
+
"in": "query",
|
|
20346
|
+
"name": "query",
|
|
20347
|
+
"required": false,
|
|
20348
|
+
"description": "Filter using a FaableQL query"
|
|
20349
|
+
},
|
|
20350
|
+
{
|
|
20351
|
+
"schema": {
|
|
20352
|
+
"type": "string",
|
|
20353
|
+
"minLength": 1,
|
|
20354
|
+
"maxLength": 200
|
|
20355
|
+
},
|
|
20356
|
+
"in": "query",
|
|
20357
|
+
"name": "q",
|
|
20358
|
+
"required": false,
|
|
20359
|
+
"description": "Full-text search across: `connection_name`, `connection_type`."
|
|
20360
|
+
}
|
|
20361
|
+
],
|
|
20362
|
+
"security": [
|
|
20363
|
+
{
|
|
20364
|
+
"bearerAuth": []
|
|
20365
|
+
}
|
|
20366
|
+
],
|
|
20367
|
+
"responses": {
|
|
20368
|
+
"200": {
|
|
20369
|
+
"description": "Default Response",
|
|
20370
|
+
"content": {
|
|
20371
|
+
"application/json": {
|
|
20372
|
+
"schema": {
|
|
20373
|
+
"type": "object",
|
|
20374
|
+
"required": [
|
|
20375
|
+
"next",
|
|
20376
|
+
"results"
|
|
20377
|
+
],
|
|
20378
|
+
"properties": {
|
|
20379
|
+
"next": {
|
|
20380
|
+
"anyOf": [
|
|
17887
20381
|
{
|
|
17888
20382
|
"type": "string"
|
|
17889
20383
|
},
|
|
@@ -21799,6 +24293,10 @@
|
|
|
21799
24293
|
},
|
|
21800
24294
|
"uniqueItems": true
|
|
21801
24295
|
},
|
|
24296
|
+
"include_roles_in_id_token": {
|
|
24297
|
+
"type": "boolean",
|
|
24298
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
24299
|
+
},
|
|
21802
24300
|
"management_scopes": {
|
|
21803
24301
|
"type": "array",
|
|
21804
24302
|
"items": {
|
|
@@ -22462,6 +24960,10 @@
|
|
|
22462
24960
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
22463
24961
|
"nullable": true
|
|
22464
24962
|
},
|
|
24963
|
+
"include_roles_in_id_token": {
|
|
24964
|
+
"type": "boolean",
|
|
24965
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
24966
|
+
},
|
|
22465
24967
|
"management_scopes": {
|
|
22466
24968
|
"type": "array",
|
|
22467
24969
|
"items": {
|
|
@@ -23411,6 +25913,10 @@
|
|
|
23411
25913
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
23412
25914
|
"nullable": true
|
|
23413
25915
|
},
|
|
25916
|
+
"include_roles_in_id_token": {
|
|
25917
|
+
"type": "boolean",
|
|
25918
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
25919
|
+
},
|
|
23414
25920
|
"management_scopes": {
|
|
23415
25921
|
"type": "array",
|
|
23416
25922
|
"items": {
|
|
@@ -24373,6 +26879,10 @@
|
|
|
24373
26879
|
"description": "Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it.",
|
|
24374
26880
|
"nullable": true
|
|
24375
26881
|
},
|
|
26882
|
+
"include_roles_in_id_token": {
|
|
26883
|
+
"type": "boolean",
|
|
26884
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
26885
|
+
},
|
|
24376
26886
|
"management_scopes": {
|
|
24377
26887
|
"type": "array",
|
|
24378
26888
|
"items": {
|
|
@@ -25154,6 +27664,10 @@
|
|
|
25154
27664
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
25155
27665
|
"nullable": true
|
|
25156
27666
|
},
|
|
27667
|
+
"include_roles_in_id_token": {
|
|
27668
|
+
"type": "boolean",
|
|
27669
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
27670
|
+
},
|
|
25157
27671
|
"management_scopes": {
|
|
25158
27672
|
"type": "array",
|
|
25159
27673
|
"items": {
|
|
@@ -26103,6 +28617,10 @@
|
|
|
26103
28617
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
26104
28618
|
"nullable": true
|
|
26105
28619
|
},
|
|
28620
|
+
"include_roles_in_id_token": {
|
|
28621
|
+
"type": "boolean",
|
|
28622
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
28623
|
+
},
|
|
26106
28624
|
"management_scopes": {
|
|
26107
28625
|
"type": "array",
|
|
26108
28626
|
"items": {
|
|
@@ -27053,6 +29571,10 @@
|
|
|
27053
29571
|
"description": "Audience used when a client_credentials token request sends none (e.g. `faable:management:<account_id>`). An explicit `audience` in the request wins. Absent = `${iss}/userinfo`.",
|
|
27054
29572
|
"nullable": true
|
|
27055
29573
|
},
|
|
29574
|
+
"include_roles_in_id_token": {
|
|
29575
|
+
"type": "boolean",
|
|
29576
|
+
"description": "The user's role names as a `roles` claim on this client's id_tokens, even when the login requests no `audience`. For OIDC apps that cannot send one and allow in only the users with a role. An Api's `include_roles_in_id_token` does the same for logins that request its audience."
|
|
29577
|
+
},
|
|
27056
29578
|
"management_scopes": {
|
|
27057
29579
|
"type": "array",
|
|
27058
29580
|
"items": {
|