@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/dist/api/types.d.ts
CHANGED
|
@@ -275,6 +275,86 @@ export interface paths {
|
|
|
275
275
|
patch?: never;
|
|
276
276
|
trace?: never;
|
|
277
277
|
};
|
|
278
|
+
"/account/{account_id}/disable": {
|
|
279
|
+
parameters: {
|
|
280
|
+
query?: never;
|
|
281
|
+
header?: never;
|
|
282
|
+
path?: never;
|
|
283
|
+
cookie?: never;
|
|
284
|
+
};
|
|
285
|
+
get?: never;
|
|
286
|
+
put?: never;
|
|
287
|
+
/**
|
|
288
|
+
* Disable an Account
|
|
289
|
+
* @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`.
|
|
290
|
+
*/
|
|
291
|
+
post: operations["account/disable"];
|
|
292
|
+
delete?: never;
|
|
293
|
+
options?: never;
|
|
294
|
+
head?: never;
|
|
295
|
+
patch?: never;
|
|
296
|
+
trace?: never;
|
|
297
|
+
};
|
|
298
|
+
"/account/{account_id}/enable": {
|
|
299
|
+
parameters: {
|
|
300
|
+
query?: never;
|
|
301
|
+
header?: never;
|
|
302
|
+
path?: never;
|
|
303
|
+
cookie?: never;
|
|
304
|
+
};
|
|
305
|
+
get?: never;
|
|
306
|
+
put?: never;
|
|
307
|
+
/**
|
|
308
|
+
* Enable a disabled Account
|
|
309
|
+
* @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.
|
|
310
|
+
*/
|
|
311
|
+
post: operations["account/enable"];
|
|
312
|
+
delete?: never;
|
|
313
|
+
options?: never;
|
|
314
|
+
head?: never;
|
|
315
|
+
patch?: never;
|
|
316
|
+
trace?: never;
|
|
317
|
+
};
|
|
318
|
+
"/internal/account/{account_id}/disable": {
|
|
319
|
+
parameters: {
|
|
320
|
+
query?: never;
|
|
321
|
+
header?: never;
|
|
322
|
+
path?: never;
|
|
323
|
+
cookie?: never;
|
|
324
|
+
};
|
|
325
|
+
get?: never;
|
|
326
|
+
put?: never;
|
|
327
|
+
/**
|
|
328
|
+
* Disable an Account as Faable staff (platform)
|
|
329
|
+
* @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.
|
|
330
|
+
*/
|
|
331
|
+
post: operations["internal/accountDisable"];
|
|
332
|
+
delete?: never;
|
|
333
|
+
options?: never;
|
|
334
|
+
head?: never;
|
|
335
|
+
patch?: never;
|
|
336
|
+
trace?: never;
|
|
337
|
+
};
|
|
338
|
+
"/internal/account/{account_id}/enable": {
|
|
339
|
+
parameters: {
|
|
340
|
+
query?: never;
|
|
341
|
+
header?: never;
|
|
342
|
+
path?: never;
|
|
343
|
+
cookie?: never;
|
|
344
|
+
};
|
|
345
|
+
get?: never;
|
|
346
|
+
put?: never;
|
|
347
|
+
/**
|
|
348
|
+
* Enable an Account as Faable staff (platform)
|
|
349
|
+
* @description Enables the tenant whoever disabled it. Platform token with `update:accounts`.
|
|
350
|
+
*/
|
|
351
|
+
post: operations["internal/accountEnable"];
|
|
352
|
+
delete?: never;
|
|
353
|
+
options?: never;
|
|
354
|
+
head?: never;
|
|
355
|
+
patch?: never;
|
|
356
|
+
trace?: never;
|
|
357
|
+
};
|
|
278
358
|
"/connection": {
|
|
279
359
|
parameters: {
|
|
280
360
|
query?: never;
|
|
@@ -5819,6 +5899,10 @@ export interface components {
|
|
|
5819
5899
|
client_id_metadata_documents_enabled?: boolean;
|
|
5820
5900
|
/** @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. */
|
|
5821
5901
|
canonical_host?: string | null;
|
|
5902
|
+
/** @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. */
|
|
5903
|
+
disabled_at?: string | null;
|
|
5904
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
5905
|
+
disabled_by?: "owner" | "staff" | null;
|
|
5822
5906
|
/** @description AuthAccount creation date */
|
|
5823
5907
|
createdAt: string;
|
|
5824
5908
|
/** @description AuthAccount updated date */
|
|
@@ -6237,6 +6321,8 @@ export interface components {
|
|
|
6237
6321
|
login_flow?: string | null;
|
|
6238
6322
|
/** @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`. */
|
|
6239
6323
|
default_audience?: string | null;
|
|
6324
|
+
/** @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. */
|
|
6325
|
+
include_roles_in_id_token?: boolean;
|
|
6240
6326
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
6241
6327
|
management_scopes?: string[];
|
|
6242
6328
|
saml_sp?: {
|
|
@@ -6290,6 +6376,8 @@ export interface components {
|
|
|
6290
6376
|
/** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
|
|
6291
6377
|
signup_protection?: "off" | "on_risk" | "always";
|
|
6292
6378
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
6379
|
+
/** @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. */
|
|
6380
|
+
include_roles_in_id_token?: boolean;
|
|
6293
6381
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
|
|
6294
6382
|
management_scopes?: string[];
|
|
6295
6383
|
/** @description Add Metadata */
|
|
@@ -6427,6 +6515,8 @@ export interface components {
|
|
|
6427
6515
|
login_flow?: string | null;
|
|
6428
6516
|
/** @description Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it. */
|
|
6429
6517
|
default_audience?: string | null;
|
|
6518
|
+
/** @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. */
|
|
6519
|
+
include_roles_in_id_token?: boolean;
|
|
6430
6520
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Replaces the whole list; `[]` removes all. Only scopes your own token holds can be added. */
|
|
6431
6521
|
management_scopes?: string[];
|
|
6432
6522
|
saml_sp?: {
|
|
@@ -8794,6 +8884,8 @@ export interface components {
|
|
|
8794
8884
|
* - `invalid_token` (401): The bearer token is missing, malformed, expired or has no subject.
|
|
8795
8885
|
* - `not_owner` (403): The caller may only perform this operation on their own user.
|
|
8796
8886
|
* - `user_suspended` (403): The user is suspended and cannot sign in or be modified.
|
|
8887
|
+
* - `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).
|
|
8888
|
+
* - `account_protected` (409): A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it.
|
|
8797
8889
|
* - `invalid_credentials` (400): The email/username or password is incorrect.
|
|
8798
8890
|
* - `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`.
|
|
8799
8891
|
* - `signup_denied` (403): A pre-signup Action or an active block denied the sign-up. `message` carries the reason.
|
|
@@ -8933,7 +9025,7 @@ export interface components {
|
|
|
8933
9025
|
* - `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.
|
|
8934
9026
|
* @enum {string}
|
|
8935
9027
|
*/
|
|
8936
|
-
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "challenge_required" | "challenge_invalid" | "challenge_unsupported" | "challenge_unavailable" | "origin_required" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "phone_change_requires_verification" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_client_jwks" | "client_jwks_required" | "invalid_origin_branding" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
|
|
9028
|
+
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "account_disabled" | "account_protected" | "invalid_credentials" | "login_denied" | "signup_denied" | "challenge_required" | "challenge_invalid" | "challenge_unsupported" | "challenge_unavailable" | "origin_required" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "phone_change_requires_verification" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_client_jwks" | "client_jwks_required" | "invalid_origin_branding" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
|
|
8937
9029
|
/** @description Every error response has this shape. Branch on `error_code`, never on `message`: the message is written for a person and may change. */
|
|
8938
9030
|
ErrorResponse: {
|
|
8939
9031
|
/** @description The HTTP status, repeated. */
|
|
@@ -9126,6 +9218,10 @@ export interface operations {
|
|
|
9126
9218
|
client_id_metadata_documents_enabled?: boolean;
|
|
9127
9219
|
/** @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. */
|
|
9128
9220
|
canonical_host?: string | null;
|
|
9221
|
+
/** @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. */
|
|
9222
|
+
disabled_at?: string | null;
|
|
9223
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
9224
|
+
disabled_by?: "owner" | "staff" | null;
|
|
9129
9225
|
/** @description AuthAccount creation date */
|
|
9130
9226
|
createdAt: string;
|
|
9131
9227
|
/** @description AuthAccount updated date */
|
|
@@ -9512,6 +9608,10 @@ export interface operations {
|
|
|
9512
9608
|
client_id_metadata_documents_enabled?: boolean;
|
|
9513
9609
|
/** @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. */
|
|
9514
9610
|
canonical_host?: string | null;
|
|
9611
|
+
/** @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. */
|
|
9612
|
+
disabled_at?: string | null;
|
|
9613
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
9614
|
+
disabled_by?: "owner" | "staff" | null;
|
|
9515
9615
|
/** @description AuthAccount creation date */
|
|
9516
9616
|
createdAt: string;
|
|
9517
9617
|
/** @description AuthAccount updated date */
|
|
@@ -9786,6 +9886,10 @@ export interface operations {
|
|
|
9786
9886
|
client_id_metadata_documents_enabled?: boolean;
|
|
9787
9887
|
/** @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. */
|
|
9788
9888
|
canonical_host?: string | null;
|
|
9889
|
+
/** @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. */
|
|
9890
|
+
disabled_at?: string | null;
|
|
9891
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
9892
|
+
disabled_by?: "owner" | "staff" | null;
|
|
9789
9893
|
/** @description AuthAccount creation date */
|
|
9790
9894
|
createdAt: string;
|
|
9791
9895
|
/** @description AuthAccount updated date */
|
|
@@ -10161,6 +10265,10 @@ export interface operations {
|
|
|
10161
10265
|
client_id_metadata_documents_enabled?: boolean;
|
|
10162
10266
|
/** @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. */
|
|
10163
10267
|
canonical_host?: string | null;
|
|
10268
|
+
/** @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. */
|
|
10269
|
+
disabled_at?: string | null;
|
|
10270
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
10271
|
+
disabled_by?: "owner" | "staff" | null;
|
|
10164
10272
|
/** @description AuthAccount creation date */
|
|
10165
10273
|
createdAt: string;
|
|
10166
10274
|
/** @description AuthAccount updated date */
|
|
@@ -11159,6 +11267,9 @@ export interface operations {
|
|
|
11159
11267
|
clients: number;
|
|
11160
11268
|
connections: number;
|
|
11161
11269
|
custom_domain_verified: boolean;
|
|
11270
|
+
disabled_at: string | null;
|
|
11271
|
+
disabled_by: "owner" | "staff" | null;
|
|
11272
|
+
disabled_reason: string | null;
|
|
11162
11273
|
}[];
|
|
11163
11274
|
};
|
|
11164
11275
|
};
|
|
@@ -11558,6 +11669,10 @@ export interface operations {
|
|
|
11558
11669
|
client_id_metadata_documents_enabled?: boolean;
|
|
11559
11670
|
/** @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. */
|
|
11560
11671
|
canonical_host?: string | null;
|
|
11672
|
+
/** @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. */
|
|
11673
|
+
disabled_at?: string | null;
|
|
11674
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
11675
|
+
disabled_by?: "owner" | "staff" | null;
|
|
11561
11676
|
/** @description AuthAccount creation date */
|
|
11562
11677
|
createdAt: string;
|
|
11563
11678
|
/** @description AuthAccount updated date */
|
|
@@ -11649,55 +11764,828 @@ export interface operations {
|
|
|
11649
11764
|
};
|
|
11650
11765
|
};
|
|
11651
11766
|
};
|
|
11652
|
-
"
|
|
11767
|
+
"account/disable": {
|
|
11653
11768
|
parameters: {
|
|
11654
|
-
query?:
|
|
11655
|
-
/** @description Number of items per page (max 200) */
|
|
11656
|
-
pageSize?: number;
|
|
11657
|
-
/** @description Cursor for next page */
|
|
11658
|
-
cursor?: string;
|
|
11659
|
-
/** @description Cursor returned by the previous page */
|
|
11660
|
-
next?: string;
|
|
11661
|
-
/** @description Exact match on `connection_type`. Equivalent to `?query=connection_type:<value>`. */
|
|
11662
|
-
connection_type?: string;
|
|
11663
|
-
/** @description Exact match on `enabled`. Equivalent to `?query=enabled:<value>`. */
|
|
11664
|
-
enabled?: string;
|
|
11665
|
-
/** @description Exact match on `category`. Equivalent to `?query=category:<value>`. */
|
|
11666
|
-
category?: string;
|
|
11667
|
-
/** @description Also return `total`: the rows matching the whole filter, across every page. */
|
|
11668
|
-
count?: boolean;
|
|
11669
|
-
/** @description Filter using a FaableQL query */
|
|
11670
|
-
query?: string;
|
|
11671
|
-
/** @description Full-text search across: `connection_name`, `connection_type`. */
|
|
11672
|
-
q?: string;
|
|
11673
|
-
};
|
|
11769
|
+
query?: never;
|
|
11674
11770
|
header?: never;
|
|
11675
|
-
path
|
|
11771
|
+
path: {
|
|
11772
|
+
account_id: string;
|
|
11773
|
+
};
|
|
11676
11774
|
cookie?: never;
|
|
11677
11775
|
};
|
|
11678
11776
|
requestBody?: never;
|
|
11679
11777
|
responses: {
|
|
11680
|
-
/** @description
|
|
11778
|
+
/** @description AuthAccount */
|
|
11681
11779
|
200: {
|
|
11682
11780
|
headers: {
|
|
11683
11781
|
[name: string]: unknown;
|
|
11684
11782
|
};
|
|
11685
11783
|
content: {
|
|
11686
11784
|
"application/json": {
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11785
|
+
/** @description AuthAccount ID */
|
|
11786
|
+
id: string;
|
|
11787
|
+
name: string;
|
|
11788
|
+
domain: string;
|
|
11789
|
+
slug: string;
|
|
11790
|
+
logo_src?: string | null;
|
|
11791
|
+
icon_src?: string | null;
|
|
11792
|
+
callback_hostnames: string[];
|
|
11793
|
+
/** @description Shared HMAC secret. Used when token_signing_alg is an HS* algorithm; ignored for RS*\/ES*\/PS*. */
|
|
11794
|
+
token_signature: string;
|
|
11795
|
+
/** @description JWA algorithm used to sign tokens issued by this Account. Today only RS256 is implemented. */
|
|
11796
|
+
token_signing_alg: "RS256";
|
|
11797
|
+
default_connection?: components["schemas"]["Connection"] | string | unknown;
|
|
11798
|
+
enabled_locales: string[];
|
|
11799
|
+
/** @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`). */
|
|
11800
|
+
tags?: string[];
|
|
11801
|
+
team?: string | null;
|
|
11802
|
+
notification_settings: {
|
|
11803
|
+
/**
|
|
11804
|
+
* @description Send the built-in welcome email on user.created
|
|
11805
|
+
* @default false
|
|
11806
|
+
*/
|
|
11807
|
+
welcome_email_enabled: boolean;
|
|
11808
|
+
/**
|
|
11809
|
+
* @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`.
|
|
11810
|
+
* @default false
|
|
11811
|
+
*/
|
|
11812
|
+
verify_email_auto_send: boolean;
|
|
11813
|
+
};
|
|
11814
|
+
/**
|
|
11815
|
+
* Format: email
|
|
11816
|
+
* @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.
|
|
11817
|
+
*/
|
|
11818
|
+
email_reply_to?: string | null;
|
|
11819
|
+
/** @description Display name on every email this tenant sends to its users. Absent = the account `name`. */
|
|
11820
|
+
email_from_name?: string | null;
|
|
11821
|
+
/** @description Sender address of every email this tenant sends to its users. Absent = the platform default. Set by Faable only. */
|
|
11822
|
+
email_from_address?: string | null;
|
|
11823
|
+
welcome_email?: {
|
|
11824
|
+
/**
|
|
11825
|
+
* Format: uri
|
|
11826
|
+
* @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.
|
|
11827
|
+
*/
|
|
11828
|
+
cta_url?: string | null;
|
|
11829
|
+
/** @description Replaces the default one-line body ("Your account on … is ready to go."). Plain text, sent verbatim in every enabled locale. */
|
|
11830
|
+
body?: string | null;
|
|
11831
|
+
/** @description Rendered as a "Follow <account>" block after the button — GitHub, LinkedIn, X, YouTube… Empty or absent hides the block. */
|
|
11832
|
+
social_links?: {
|
|
11833
|
+
label: string;
|
|
11834
|
+
/** Format: uri */
|
|
11835
|
+
url: string;
|
|
11836
|
+
}[] | null;
|
|
11837
|
+
} | null;
|
|
11838
|
+
/** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
|
|
11839
|
+
email_footer?: {
|
|
11840
|
+
/** @description The footer line, e.g. «Kirbic Booking». */
|
|
11841
|
+
text: string;
|
|
11842
|
+
/**
|
|
11843
|
+
* Format: uri
|
|
11844
|
+
* @description Where the footer line links to.
|
|
11845
|
+
*/
|
|
11846
|
+
url?: string;
|
|
11847
|
+
/** @description A small emblem above the line (24 px). PNG or JPG, https. */
|
|
11848
|
+
logo_src?: string;
|
|
11849
|
+
} | null;
|
|
11850
|
+
/** @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. */
|
|
11851
|
+
email_change_verification_mode?: "new_only" | "old_and_new";
|
|
11852
|
+
/**
|
|
11853
|
+
* @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).
|
|
11854
|
+
*
|
|
11855
|
+
* - `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.
|
|
11856
|
+
* - `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.).
|
|
11857
|
+
*/
|
|
11858
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync";
|
|
11859
|
+
/** @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. */
|
|
11860
|
+
login_methods?: {
|
|
11861
|
+
/** @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(). */
|
|
11862
|
+
order?: string[];
|
|
11863
|
+
/** @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. */
|
|
11864
|
+
disabled_connections?: string[];
|
|
11865
|
+
/** @description Offer passkey (WebAuthn) as a primary login method on the hosted login screen. Defaults to false. */
|
|
11866
|
+
passkey_login_enabled?: boolean;
|
|
11867
|
+
/** @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. */
|
|
11868
|
+
identifier_first?: boolean;
|
|
11869
|
+
/** @description Surface the method the returning user chose last time. Defaults to false. */
|
|
11870
|
+
remember_last_method?: boolean;
|
|
11871
|
+
/** @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`. */
|
|
11872
|
+
passkey_promotion?: "off" | "offer";
|
|
11873
|
+
/** @description Days to wait before offering a passkey again to a user who dismissed it. Defaults to 30. */
|
|
11874
|
+
passkey_promotion_snooze_days?: number;
|
|
11875
|
+
/** @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. */
|
|
11876
|
+
passkey_promotion_max_prompts?: number;
|
|
11877
|
+
/** @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. */
|
|
11878
|
+
remember_me?: "off" | "optional";
|
|
11879
|
+
/** @description How long a session lasts when the user ticked "Remember me". Defaults to 30. */
|
|
11880
|
+
remember_me_days?: number;
|
|
11881
|
+
/** @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. */
|
|
11882
|
+
theme?: "system" | "light" | "dark";
|
|
11883
|
+
};
|
|
11884
|
+
/** @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. */
|
|
11885
|
+
profile_fields?: {
|
|
11886
|
+
/** @description The field key, as it is stored in `user_metadata["faable.com/fields"]`. */
|
|
11887
|
+
key: string;
|
|
11888
|
+
/** @description `string`: free text up to `max_length`. `enum`: one of `options`. */
|
|
11889
|
+
type: "string" | "enum";
|
|
11890
|
+
/** @description The accepted values when `type` is `enum`. */
|
|
11891
|
+
options?: string[];
|
|
11892
|
+
/** @description Longest accepted value for a `string` field. Default 200. */
|
|
11893
|
+
max_length?: number;
|
|
11894
|
+
}[] | null;
|
|
11895
|
+
/** @description The login flow bound to this account (`loginflow_xxx`). Absent = the flow compiled from the settings. A Client may bind its own. */
|
|
11896
|
+
login_flow?: string | null;
|
|
11897
|
+
/** @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. */
|
|
11898
|
+
mfa_policy?: {
|
|
11899
|
+
/** @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. */
|
|
11900
|
+
mode?: "off" | "optional" | "required";
|
|
11901
|
+
/** @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. */
|
|
11902
|
+
allowed_factors?: ("totp" | "webauthn")[];
|
|
11903
|
+
/** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
|
|
11904
|
+
remember_device_days?: number;
|
|
11905
|
+
};
|
|
11906
|
+
/** @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`. */
|
|
11907
|
+
recovery_channels?: {
|
|
11908
|
+
/** @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. */
|
|
11909
|
+
enabled?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
11910
|
+
/** @description The channel used when the user is not asked to choose. Falls back to `email` when it is not available for that user. */
|
|
11911
|
+
default?: "email" | "sms" | "whatsapp" | "factor";
|
|
11912
|
+
/** @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. */
|
|
11913
|
+
visible?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
11914
|
+
};
|
|
11915
|
+
/** @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. */
|
|
11916
|
+
default_country_iso?: string | null;
|
|
11917
|
+
/** @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. */
|
|
11918
|
+
webauthn_rp_id?: string | null;
|
|
11919
|
+
/** @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). */
|
|
11920
|
+
logout_confirm_required?: boolean;
|
|
11921
|
+
/** @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`. */
|
|
11922
|
+
dynamic_client_registration_enabled?: boolean;
|
|
11923
|
+
/** @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. */
|
|
11924
|
+
oauth21_enabled?: boolean;
|
|
11925
|
+
/** @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. */
|
|
11926
|
+
oauth_link_verified_email?: boolean;
|
|
11927
|
+
/** @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. */
|
|
11928
|
+
client_id_metadata_documents_enabled?: boolean;
|
|
11929
|
+
/** @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. */
|
|
11930
|
+
canonical_host?: string | null;
|
|
11931
|
+
/** @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. */
|
|
11932
|
+
disabled_at?: string | null;
|
|
11933
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
11934
|
+
disabled_by?: "owner" | "staff" | null;
|
|
11935
|
+
/** @description AuthAccount creation date */
|
|
11936
|
+
createdAt: string;
|
|
11937
|
+
/** @description AuthAccount updated date */
|
|
11938
|
+
updatedAt?: string;
|
|
11691
11939
|
};
|
|
11692
11940
|
};
|
|
11693
11941
|
};
|
|
11694
|
-
/**
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11942
|
+
/** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
|
|
11943
|
+
400: {
|
|
11944
|
+
headers: {
|
|
11945
|
+
[name: string]: unknown;
|
|
11946
|
+
};
|
|
11947
|
+
content: {
|
|
11948
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
11949
|
+
/** @enum {string} */
|
|
11950
|
+
error_code?: "validation_error";
|
|
11951
|
+
};
|
|
11952
|
+
};
|
|
11953
|
+
};
|
|
11954
|
+
/** @description `unauthorized` — The request carries no valid credentials. */
|
|
11955
|
+
401: {
|
|
11956
|
+
headers: {
|
|
11957
|
+
[name: string]: unknown;
|
|
11958
|
+
};
|
|
11959
|
+
content: {
|
|
11960
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
11961
|
+
/** @enum {string} */
|
|
11962
|
+
error_code?: "unauthorized";
|
|
11963
|
+
};
|
|
11964
|
+
};
|
|
11965
|
+
};
|
|
11966
|
+
/**
|
|
11967
|
+
* @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).
|
|
11968
|
+
*
|
|
11969
|
+
* `forbidden` — The credentials are valid but do not allow this operation.
|
|
11970
|
+
*
|
|
11971
|
+
* `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
|
|
11972
|
+
*
|
|
11973
|
+
* `user_suspended` — The user is suspended and cannot sign in or be modified.
|
|
11974
|
+
*/
|
|
11975
|
+
403: {
|
|
11976
|
+
headers: {
|
|
11977
|
+
[name: string]: unknown;
|
|
11978
|
+
};
|
|
11979
|
+
content: {
|
|
11980
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
11981
|
+
/** @enum {string} */
|
|
11982
|
+
error_code?: "account_disabled" | "forbidden" | "insufficient_scope" | "user_suspended";
|
|
11983
|
+
};
|
|
11984
|
+
};
|
|
11985
|
+
};
|
|
11986
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
11987
|
+
404: {
|
|
11988
|
+
headers: {
|
|
11989
|
+
[name: string]: unknown;
|
|
11990
|
+
};
|
|
11991
|
+
content: {
|
|
11992
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
11993
|
+
/** @enum {string} */
|
|
11994
|
+
error_code?: "account_not_found";
|
|
11995
|
+
};
|
|
11996
|
+
};
|
|
11997
|
+
};
|
|
11998
|
+
/** @description `account_protected` — A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it. */
|
|
11999
|
+
409: {
|
|
12000
|
+
headers: {
|
|
12001
|
+
[name: string]: unknown;
|
|
12002
|
+
};
|
|
12003
|
+
content: {
|
|
12004
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12005
|
+
/** @enum {string} */
|
|
12006
|
+
error_code?: "account_protected";
|
|
12007
|
+
};
|
|
12008
|
+
};
|
|
12009
|
+
};
|
|
12010
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12011
|
+
429: {
|
|
12012
|
+
headers: {
|
|
12013
|
+
[name: string]: unknown;
|
|
12014
|
+
};
|
|
12015
|
+
content: {
|
|
12016
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12017
|
+
/** @enum {string} */
|
|
12018
|
+
error_code?: "too_many_requests";
|
|
12019
|
+
};
|
|
12020
|
+
};
|
|
12021
|
+
};
|
|
12022
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12023
|
+
500: {
|
|
12024
|
+
headers: {
|
|
12025
|
+
[name: string]: unknown;
|
|
12026
|
+
};
|
|
12027
|
+
content: {
|
|
12028
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12029
|
+
/** @enum {string} */
|
|
12030
|
+
error_code?: "internal_error";
|
|
12031
|
+
};
|
|
12032
|
+
};
|
|
12033
|
+
};
|
|
12034
|
+
};
|
|
12035
|
+
};
|
|
12036
|
+
"account/enable": {
|
|
12037
|
+
parameters: {
|
|
12038
|
+
query?: never;
|
|
12039
|
+
header?: never;
|
|
12040
|
+
path: {
|
|
12041
|
+
account_id: string;
|
|
12042
|
+
};
|
|
12043
|
+
cookie?: never;
|
|
12044
|
+
};
|
|
12045
|
+
requestBody?: never;
|
|
12046
|
+
responses: {
|
|
12047
|
+
/** @description AuthAccount */
|
|
12048
|
+
200: {
|
|
12049
|
+
headers: {
|
|
12050
|
+
[name: string]: unknown;
|
|
12051
|
+
};
|
|
12052
|
+
content: {
|
|
12053
|
+
"application/json": {
|
|
12054
|
+
/** @description AuthAccount ID */
|
|
12055
|
+
id: string;
|
|
12056
|
+
name: string;
|
|
12057
|
+
domain: string;
|
|
12058
|
+
slug: string;
|
|
12059
|
+
logo_src?: string | null;
|
|
12060
|
+
icon_src?: string | null;
|
|
12061
|
+
callback_hostnames: string[];
|
|
12062
|
+
/** @description Shared HMAC secret. Used when token_signing_alg is an HS* algorithm; ignored for RS*\/ES*\/PS*. */
|
|
12063
|
+
token_signature: string;
|
|
12064
|
+
/** @description JWA algorithm used to sign tokens issued by this Account. Today only RS256 is implemented. */
|
|
12065
|
+
token_signing_alg: "RS256";
|
|
12066
|
+
default_connection?: components["schemas"]["Connection"] | string | unknown;
|
|
12067
|
+
enabled_locales: string[];
|
|
12068
|
+
/** @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`). */
|
|
12069
|
+
tags?: string[];
|
|
12070
|
+
team?: string | null;
|
|
12071
|
+
notification_settings: {
|
|
12072
|
+
/**
|
|
12073
|
+
* @description Send the built-in welcome email on user.created
|
|
12074
|
+
* @default false
|
|
12075
|
+
*/
|
|
12076
|
+
welcome_email_enabled: boolean;
|
|
12077
|
+
/**
|
|
12078
|
+
* @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`.
|
|
12079
|
+
* @default false
|
|
12080
|
+
*/
|
|
12081
|
+
verify_email_auto_send: boolean;
|
|
12082
|
+
};
|
|
12083
|
+
/**
|
|
12084
|
+
* Format: email
|
|
12085
|
+
* @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.
|
|
12086
|
+
*/
|
|
12087
|
+
email_reply_to?: string | null;
|
|
12088
|
+
/** @description Display name on every email this tenant sends to its users. Absent = the account `name`. */
|
|
12089
|
+
email_from_name?: string | null;
|
|
12090
|
+
/** @description Sender address of every email this tenant sends to its users. Absent = the platform default. Set by Faable only. */
|
|
12091
|
+
email_from_address?: string | null;
|
|
12092
|
+
welcome_email?: {
|
|
12093
|
+
/**
|
|
12094
|
+
* Format: uri
|
|
12095
|
+
* @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.
|
|
12096
|
+
*/
|
|
12097
|
+
cta_url?: string | null;
|
|
12098
|
+
/** @description Replaces the default one-line body ("Your account on … is ready to go."). Plain text, sent verbatim in every enabled locale. */
|
|
12099
|
+
body?: string | null;
|
|
12100
|
+
/** @description Rendered as a "Follow <account>" block after the button — GitHub, LinkedIn, X, YouTube… Empty or absent hides the block. */
|
|
12101
|
+
social_links?: {
|
|
12102
|
+
label: string;
|
|
12103
|
+
/** Format: uri */
|
|
12104
|
+
url: string;
|
|
12105
|
+
}[] | null;
|
|
12106
|
+
} | null;
|
|
12107
|
+
/** @description The footer of every email this tenant sends to its users, in place of «Powered by Faable Auth». Absent = that line. */
|
|
12108
|
+
email_footer?: {
|
|
12109
|
+
/** @description The footer line, e.g. «Kirbic Booking». */
|
|
12110
|
+
text: string;
|
|
12111
|
+
/**
|
|
12112
|
+
* Format: uri
|
|
12113
|
+
* @description Where the footer line links to.
|
|
12114
|
+
*/
|
|
12115
|
+
url?: string;
|
|
12116
|
+
/** @description A small emblem above the line (24 px). PNG or JPG, https. */
|
|
12117
|
+
logo_src?: string;
|
|
12118
|
+
} | null;
|
|
12119
|
+
/** @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. */
|
|
12120
|
+
email_change_verification_mode?: "new_only" | "old_and_new";
|
|
12121
|
+
/**
|
|
12122
|
+
* @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).
|
|
12123
|
+
*
|
|
12124
|
+
* - `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.
|
|
12125
|
+
* - `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.).
|
|
12126
|
+
*/
|
|
12127
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync";
|
|
12128
|
+
/** @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. */
|
|
12129
|
+
login_methods?: {
|
|
12130
|
+
/** @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(). */
|
|
12131
|
+
order?: string[];
|
|
12132
|
+
/** @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. */
|
|
12133
|
+
disabled_connections?: string[];
|
|
12134
|
+
/** @description Offer passkey (WebAuthn) as a primary login method on the hosted login screen. Defaults to false. */
|
|
12135
|
+
passkey_login_enabled?: boolean;
|
|
12136
|
+
/** @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. */
|
|
12137
|
+
identifier_first?: boolean;
|
|
12138
|
+
/** @description Surface the method the returning user chose last time. Defaults to false. */
|
|
12139
|
+
remember_last_method?: boolean;
|
|
12140
|
+
/** @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`. */
|
|
12141
|
+
passkey_promotion?: "off" | "offer";
|
|
12142
|
+
/** @description Days to wait before offering a passkey again to a user who dismissed it. Defaults to 30. */
|
|
12143
|
+
passkey_promotion_snooze_days?: number;
|
|
12144
|
+
/** @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. */
|
|
12145
|
+
passkey_promotion_max_prompts?: number;
|
|
12146
|
+
/** @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. */
|
|
12147
|
+
remember_me?: "off" | "optional";
|
|
12148
|
+
/** @description How long a session lasts when the user ticked "Remember me". Defaults to 30. */
|
|
12149
|
+
remember_me_days?: number;
|
|
12150
|
+
/** @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. */
|
|
12151
|
+
theme?: "system" | "light" | "dark";
|
|
12152
|
+
};
|
|
12153
|
+
/** @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. */
|
|
12154
|
+
profile_fields?: {
|
|
12155
|
+
/** @description The field key, as it is stored in `user_metadata["faable.com/fields"]`. */
|
|
12156
|
+
key: string;
|
|
12157
|
+
/** @description `string`: free text up to `max_length`. `enum`: one of `options`. */
|
|
12158
|
+
type: "string" | "enum";
|
|
12159
|
+
/** @description The accepted values when `type` is `enum`. */
|
|
12160
|
+
options?: string[];
|
|
12161
|
+
/** @description Longest accepted value for a `string` field. Default 200. */
|
|
12162
|
+
max_length?: number;
|
|
12163
|
+
}[] | null;
|
|
12164
|
+
/** @description The login flow bound to this account (`loginflow_xxx`). Absent = the flow compiled from the settings. A Client may bind its own. */
|
|
12165
|
+
login_flow?: string | null;
|
|
12166
|
+
/** @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. */
|
|
12167
|
+
mfa_policy?: {
|
|
12168
|
+
/** @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. */
|
|
12169
|
+
mode?: "off" | "optional" | "required";
|
|
12170
|
+
/** @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. */
|
|
12171
|
+
allowed_factors?: ("totp" | "webauthn")[];
|
|
12172
|
+
/** @description How long a browser that already passed a challenge may skip the next one. 0 (default) challenges every time. */
|
|
12173
|
+
remember_device_days?: number;
|
|
12174
|
+
};
|
|
12175
|
+
/** @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`. */
|
|
12176
|
+
recovery_channels?: {
|
|
12177
|
+
/** @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. */
|
|
12178
|
+
enabled?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
12179
|
+
/** @description The channel used when the user is not asked to choose. Falls back to `email` when it is not available for that user. */
|
|
12180
|
+
default?: "email" | "sms" | "whatsapp" | "factor";
|
|
12181
|
+
/** @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. */
|
|
12182
|
+
visible?: ("email" | "sms" | "whatsapp" | "factor")[];
|
|
12183
|
+
};
|
|
12184
|
+
/** @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. */
|
|
12185
|
+
default_country_iso?: string | null;
|
|
12186
|
+
/** @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. */
|
|
12187
|
+
webauthn_rp_id?: string | null;
|
|
12188
|
+
/** @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). */
|
|
12189
|
+
logout_confirm_required?: boolean;
|
|
12190
|
+
/** @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`. */
|
|
12191
|
+
dynamic_client_registration_enabled?: boolean;
|
|
12192
|
+
/** @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. */
|
|
12193
|
+
oauth21_enabled?: boolean;
|
|
12194
|
+
/** @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. */
|
|
12195
|
+
oauth_link_verified_email?: boolean;
|
|
12196
|
+
/** @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. */
|
|
12197
|
+
client_id_metadata_documents_enabled?: boolean;
|
|
12198
|
+
/** @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. */
|
|
12199
|
+
canonical_host?: string | null;
|
|
12200
|
+
/** @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. */
|
|
12201
|
+
disabled_at?: string | null;
|
|
12202
|
+
/** @description Who disabled the tenant: `owner` (from the dashboard; the owner can enable it again) or `staff` (Faable; only Faable support can enable it). */
|
|
12203
|
+
disabled_by?: "owner" | "staff" | null;
|
|
12204
|
+
/** @description AuthAccount creation date */
|
|
12205
|
+
createdAt: string;
|
|
12206
|
+
/** @description AuthAccount updated date */
|
|
12207
|
+
updatedAt?: string;
|
|
12208
|
+
};
|
|
12209
|
+
};
|
|
12210
|
+
};
|
|
12211
|
+
/** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
|
|
12212
|
+
400: {
|
|
12213
|
+
headers: {
|
|
12214
|
+
[name: string]: unknown;
|
|
12215
|
+
};
|
|
12216
|
+
content: {
|
|
12217
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12218
|
+
/** @enum {string} */
|
|
12219
|
+
error_code?: "validation_error";
|
|
12220
|
+
};
|
|
12221
|
+
};
|
|
12222
|
+
};
|
|
12223
|
+
/** @description `unauthorized` — The request carries no valid credentials. */
|
|
12224
|
+
401: {
|
|
12225
|
+
headers: {
|
|
12226
|
+
[name: string]: unknown;
|
|
12227
|
+
};
|
|
12228
|
+
content: {
|
|
12229
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12230
|
+
/** @enum {string} */
|
|
12231
|
+
error_code?: "unauthorized";
|
|
12232
|
+
};
|
|
12233
|
+
};
|
|
12234
|
+
};
|
|
12235
|
+
/**
|
|
12236
|
+
* @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).
|
|
12237
|
+
*
|
|
12238
|
+
* `forbidden` — The credentials are valid but do not allow this operation.
|
|
12239
|
+
*
|
|
12240
|
+
* `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
|
|
12241
|
+
*
|
|
12242
|
+
* `user_suspended` — The user is suspended and cannot sign in or be modified.
|
|
12243
|
+
*/
|
|
12244
|
+
403: {
|
|
12245
|
+
headers: {
|
|
12246
|
+
[name: string]: unknown;
|
|
12247
|
+
};
|
|
12248
|
+
content: {
|
|
12249
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12250
|
+
/** @enum {string} */
|
|
12251
|
+
error_code?: "account_disabled" | "forbidden" | "insufficient_scope" | "user_suspended";
|
|
12252
|
+
};
|
|
12253
|
+
};
|
|
12254
|
+
};
|
|
12255
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
12256
|
+
404: {
|
|
12257
|
+
headers: {
|
|
12258
|
+
[name: string]: unknown;
|
|
12259
|
+
};
|
|
12260
|
+
content: {
|
|
12261
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12262
|
+
/** @enum {string} */
|
|
12263
|
+
error_code?: "account_not_found";
|
|
12264
|
+
};
|
|
12265
|
+
};
|
|
12266
|
+
};
|
|
12267
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12268
|
+
429: {
|
|
12269
|
+
headers: {
|
|
12270
|
+
[name: string]: unknown;
|
|
12271
|
+
};
|
|
12272
|
+
content: {
|
|
12273
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12274
|
+
/** @enum {string} */
|
|
12275
|
+
error_code?: "too_many_requests";
|
|
12276
|
+
};
|
|
12277
|
+
};
|
|
12278
|
+
};
|
|
12279
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12280
|
+
500: {
|
|
12281
|
+
headers: {
|
|
12282
|
+
[name: string]: unknown;
|
|
12283
|
+
};
|
|
12284
|
+
content: {
|
|
12285
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12286
|
+
/** @enum {string} */
|
|
12287
|
+
error_code?: "internal_error";
|
|
12288
|
+
};
|
|
12289
|
+
};
|
|
12290
|
+
};
|
|
12291
|
+
};
|
|
12292
|
+
};
|
|
12293
|
+
"internal/accountDisable": {
|
|
12294
|
+
parameters: {
|
|
12295
|
+
query?: never;
|
|
12296
|
+
header?: never;
|
|
12297
|
+
path: {
|
|
12298
|
+
account_id: string;
|
|
12299
|
+
};
|
|
12300
|
+
cookie?: never;
|
|
12301
|
+
};
|
|
12302
|
+
requestBody: {
|
|
12303
|
+
content: {
|
|
12304
|
+
"application/json": {
|
|
12305
|
+
/** @description Why staff disabled it. Internal: never shown to the tenant. */
|
|
12306
|
+
reason: string;
|
|
12307
|
+
/** @description The `sub` of the staff member who did it. */
|
|
12308
|
+
actor: string;
|
|
12309
|
+
};
|
|
12310
|
+
};
|
|
12311
|
+
};
|
|
12312
|
+
responses: {
|
|
12313
|
+
/** @description Default Response */
|
|
12314
|
+
200: {
|
|
12315
|
+
headers: {
|
|
12316
|
+
[name: string]: unknown;
|
|
12317
|
+
};
|
|
12318
|
+
content: {
|
|
12319
|
+
"application/json": {
|
|
12320
|
+
account_id: string;
|
|
12321
|
+
team: string | null;
|
|
12322
|
+
name: string;
|
|
12323
|
+
disabled_at: string | null;
|
|
12324
|
+
disabled_by: "owner" | "staff" | null;
|
|
12325
|
+
disabled_reason: string | null;
|
|
12326
|
+
disabled_actor: string | null;
|
|
12327
|
+
/** @description False when the tenant was already in the requested state. */
|
|
12328
|
+
changed: boolean;
|
|
12329
|
+
};
|
|
12330
|
+
};
|
|
12331
|
+
};
|
|
12332
|
+
/** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
|
|
12333
|
+
400: {
|
|
12334
|
+
headers: {
|
|
12335
|
+
[name: string]: unknown;
|
|
12336
|
+
};
|
|
12337
|
+
content: {
|
|
12338
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12339
|
+
/** @enum {string} */
|
|
12340
|
+
error_code?: "validation_error";
|
|
12341
|
+
};
|
|
12342
|
+
};
|
|
12343
|
+
};
|
|
12344
|
+
/** @description `unauthorized` — The request carries no valid credentials. */
|
|
12345
|
+
401: {
|
|
12346
|
+
headers: {
|
|
12347
|
+
[name: string]: unknown;
|
|
12348
|
+
};
|
|
12349
|
+
content: {
|
|
12350
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12351
|
+
/** @enum {string} */
|
|
12352
|
+
error_code?: "unauthorized";
|
|
12353
|
+
};
|
|
12354
|
+
};
|
|
12355
|
+
};
|
|
12356
|
+
/**
|
|
12357
|
+
* @description `forbidden` — The credentials are valid but do not allow this operation.
|
|
12358
|
+
*
|
|
12359
|
+
* `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
|
|
12360
|
+
*
|
|
12361
|
+
* `user_suspended` — The user is suspended and cannot sign in or be modified.
|
|
12362
|
+
*/
|
|
12363
|
+
403: {
|
|
12364
|
+
headers: {
|
|
12365
|
+
[name: string]: unknown;
|
|
12366
|
+
};
|
|
12367
|
+
content: {
|
|
12368
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12369
|
+
/** @enum {string} */
|
|
12370
|
+
error_code?: "forbidden" | "insufficient_scope" | "user_suspended";
|
|
12371
|
+
};
|
|
12372
|
+
};
|
|
12373
|
+
};
|
|
12374
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
12375
|
+
404: {
|
|
12376
|
+
headers: {
|
|
12377
|
+
[name: string]: unknown;
|
|
12378
|
+
};
|
|
12379
|
+
content: {
|
|
12380
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12381
|
+
/** @enum {string} */
|
|
12382
|
+
error_code?: "account_not_found";
|
|
12383
|
+
};
|
|
12384
|
+
};
|
|
12385
|
+
};
|
|
12386
|
+
/** @description `account_protected` — A platform tenant (Faable's own) cannot be disabled: everyone, staff included, signs in through it. */
|
|
12387
|
+
409: {
|
|
12388
|
+
headers: {
|
|
12389
|
+
[name: string]: unknown;
|
|
12390
|
+
};
|
|
12391
|
+
content: {
|
|
12392
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12393
|
+
/** @enum {string} */
|
|
12394
|
+
error_code?: "account_protected";
|
|
12395
|
+
};
|
|
12396
|
+
};
|
|
12397
|
+
};
|
|
12398
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12399
|
+
429: {
|
|
12400
|
+
headers: {
|
|
12401
|
+
[name: string]: unknown;
|
|
12402
|
+
};
|
|
12403
|
+
content: {
|
|
12404
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12405
|
+
/** @enum {string} */
|
|
12406
|
+
error_code?: "too_many_requests";
|
|
12407
|
+
};
|
|
12408
|
+
};
|
|
12409
|
+
};
|
|
12410
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12411
|
+
500: {
|
|
12412
|
+
headers: {
|
|
12413
|
+
[name: string]: unknown;
|
|
12414
|
+
};
|
|
12415
|
+
content: {
|
|
12416
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12417
|
+
/** @enum {string} */
|
|
12418
|
+
error_code?: "internal_error";
|
|
12419
|
+
};
|
|
12420
|
+
};
|
|
12421
|
+
};
|
|
12422
|
+
};
|
|
12423
|
+
};
|
|
12424
|
+
"internal/accountEnable": {
|
|
12425
|
+
parameters: {
|
|
12426
|
+
query?: never;
|
|
12427
|
+
header?: never;
|
|
12428
|
+
path: {
|
|
12429
|
+
account_id: string;
|
|
12430
|
+
};
|
|
12431
|
+
cookie?: never;
|
|
12432
|
+
};
|
|
12433
|
+
requestBody: {
|
|
12434
|
+
content: {
|
|
12435
|
+
"application/json": {
|
|
12436
|
+
actor: string;
|
|
12437
|
+
};
|
|
12438
|
+
};
|
|
12439
|
+
};
|
|
12440
|
+
responses: {
|
|
12441
|
+
/** @description Default Response */
|
|
12442
|
+
200: {
|
|
12443
|
+
headers: {
|
|
12444
|
+
[name: string]: unknown;
|
|
12445
|
+
};
|
|
12446
|
+
content: {
|
|
12447
|
+
"application/json": {
|
|
12448
|
+
account_id: string;
|
|
12449
|
+
team: string | null;
|
|
12450
|
+
name: string;
|
|
12451
|
+
disabled_at: string | null;
|
|
12452
|
+
disabled_by: "owner" | "staff" | null;
|
|
12453
|
+
disabled_reason: string | null;
|
|
12454
|
+
disabled_actor: string | null;
|
|
12455
|
+
/** @description False when the tenant was already in the requested state. */
|
|
12456
|
+
changed: boolean;
|
|
12457
|
+
};
|
|
12458
|
+
};
|
|
12459
|
+
};
|
|
12460
|
+
/** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
|
|
12461
|
+
400: {
|
|
12462
|
+
headers: {
|
|
12463
|
+
[name: string]: unknown;
|
|
12464
|
+
};
|
|
12465
|
+
content: {
|
|
12466
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12467
|
+
/** @enum {string} */
|
|
12468
|
+
error_code?: "validation_error";
|
|
12469
|
+
};
|
|
12470
|
+
};
|
|
12471
|
+
};
|
|
12472
|
+
/** @description `unauthorized` — The request carries no valid credentials. */
|
|
12473
|
+
401: {
|
|
12474
|
+
headers: {
|
|
12475
|
+
[name: string]: unknown;
|
|
12476
|
+
};
|
|
12477
|
+
content: {
|
|
12478
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12479
|
+
/** @enum {string} */
|
|
12480
|
+
error_code?: "unauthorized";
|
|
12481
|
+
};
|
|
12482
|
+
};
|
|
12483
|
+
};
|
|
12484
|
+
/**
|
|
12485
|
+
* @description `forbidden` — The credentials are valid but do not allow this operation.
|
|
12486
|
+
*
|
|
12487
|
+
* `insufficient_scope` — The token lacks a scope this operation requires. `message` names it.
|
|
12488
|
+
*
|
|
12489
|
+
* `user_suspended` — The user is suspended and cannot sign in or be modified.
|
|
12490
|
+
*/
|
|
12491
|
+
403: {
|
|
12492
|
+
headers: {
|
|
12493
|
+
[name: string]: unknown;
|
|
12494
|
+
};
|
|
12495
|
+
content: {
|
|
12496
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12497
|
+
/** @enum {string} */
|
|
12498
|
+
error_code?: "forbidden" | "insufficient_scope" | "user_suspended";
|
|
12499
|
+
};
|
|
12500
|
+
};
|
|
12501
|
+
};
|
|
12502
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
12503
|
+
404: {
|
|
12504
|
+
headers: {
|
|
12505
|
+
[name: string]: unknown;
|
|
12506
|
+
};
|
|
12507
|
+
content: {
|
|
12508
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12509
|
+
/** @enum {string} */
|
|
12510
|
+
error_code?: "account_not_found";
|
|
12511
|
+
};
|
|
12512
|
+
};
|
|
12513
|
+
};
|
|
12514
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12515
|
+
429: {
|
|
12516
|
+
headers: {
|
|
12517
|
+
[name: string]: unknown;
|
|
12518
|
+
};
|
|
12519
|
+
content: {
|
|
12520
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12521
|
+
/** @enum {string} */
|
|
12522
|
+
error_code?: "too_many_requests";
|
|
12523
|
+
};
|
|
12524
|
+
};
|
|
12525
|
+
};
|
|
12526
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12527
|
+
500: {
|
|
12528
|
+
headers: {
|
|
12529
|
+
[name: string]: unknown;
|
|
12530
|
+
};
|
|
12531
|
+
content: {
|
|
12532
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12533
|
+
/** @enum {string} */
|
|
12534
|
+
error_code?: "internal_error";
|
|
12535
|
+
};
|
|
12536
|
+
};
|
|
12537
|
+
};
|
|
12538
|
+
};
|
|
12539
|
+
};
|
|
12540
|
+
"connection/list": {
|
|
12541
|
+
parameters: {
|
|
12542
|
+
query?: {
|
|
12543
|
+
/** @description Number of items per page (max 200) */
|
|
12544
|
+
pageSize?: number;
|
|
12545
|
+
/** @description Cursor for next page */
|
|
12546
|
+
cursor?: string;
|
|
12547
|
+
/** @description Cursor returned by the previous page */
|
|
12548
|
+
next?: string;
|
|
12549
|
+
/** @description Exact match on `connection_type`. Equivalent to `?query=connection_type:<value>`. */
|
|
12550
|
+
connection_type?: string;
|
|
12551
|
+
/** @description Exact match on `enabled`. Equivalent to `?query=enabled:<value>`. */
|
|
12552
|
+
enabled?: string;
|
|
12553
|
+
/** @description Exact match on `category`. Equivalent to `?query=category:<value>`. */
|
|
12554
|
+
category?: string;
|
|
12555
|
+
/** @description Also return `total`: the rows matching the whole filter, across every page. */
|
|
12556
|
+
count?: boolean;
|
|
12557
|
+
/** @description Filter using a FaableQL query */
|
|
12558
|
+
query?: string;
|
|
12559
|
+
/** @description Full-text search across: `connection_name`, `connection_type`. */
|
|
12560
|
+
q?: string;
|
|
12561
|
+
};
|
|
12562
|
+
header?: never;
|
|
12563
|
+
path?: never;
|
|
12564
|
+
cookie?: never;
|
|
12565
|
+
};
|
|
12566
|
+
requestBody?: never;
|
|
12567
|
+
responses: {
|
|
12568
|
+
/** @description Default Response */
|
|
12569
|
+
200: {
|
|
12570
|
+
headers: {
|
|
12571
|
+
[name: string]: unknown;
|
|
12572
|
+
};
|
|
12573
|
+
content: {
|
|
12574
|
+
"application/json": {
|
|
12575
|
+
next: string | null;
|
|
12576
|
+
results: components["schemas"]["Connection"][];
|
|
12577
|
+
/** @description Rows matching the whole filter, across every page. Only with `?count=true`. */
|
|
12578
|
+
total?: number;
|
|
12579
|
+
};
|
|
12580
|
+
};
|
|
12581
|
+
};
|
|
12582
|
+
/**
|
|
12583
|
+
* @description `invalid_query` — The `?query=` FaableQL expression could not be parsed.
|
|
12584
|
+
*
|
|
12585
|
+
* `invalid_expand` — An `?expand=` path is not allowed on this resource.
|
|
12586
|
+
*
|
|
12587
|
+
* `search_not_supported` — This resource does not support `?search=`.
|
|
12588
|
+
*
|
|
11701
12589
|
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
11702
12590
|
*/
|
|
11703
12591
|
400: {
|
|
@@ -13280,6 +14168,8 @@ export interface operations {
|
|
|
13280
14168
|
/** @description Bot protection for this client's signups and passwordless codes: `off` (Actions only), `on_risk` (a proof-of-work challenge when the request looks risky) or `always` (every signup solves it; clients that cannot are refused). New clients start at `on_risk`. */
|
|
13281
14169
|
signup_protection?: "off" | "on_risk" | "always";
|
|
13282
14170
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
14171
|
+
/** @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. */
|
|
14172
|
+
include_roles_in_id_token?: boolean;
|
|
13283
14173
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Only scopes your own token holds can be granted. */
|
|
13284
14174
|
management_scopes?: string[];
|
|
13285
14175
|
/** @description Add Metadata */
|
|
@@ -13432,6 +14322,8 @@ export interface operations {
|
|
|
13432
14322
|
login_flow?: string | null;
|
|
13433
14323
|
/** @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`. */
|
|
13434
14324
|
default_audience?: string | null;
|
|
14325
|
+
/** @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. */
|
|
14326
|
+
include_roles_in_id_token?: boolean;
|
|
13435
14327
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
13436
14328
|
management_scopes?: string[];
|
|
13437
14329
|
saml_sp?: {
|
|
@@ -13706,6 +14598,8 @@ export interface operations {
|
|
|
13706
14598
|
login_flow?: string | null;
|
|
13707
14599
|
/** @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`. */
|
|
13708
14600
|
default_audience?: string | null;
|
|
14601
|
+
/** @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. */
|
|
14602
|
+
include_roles_in_id_token?: boolean;
|
|
13709
14603
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
13710
14604
|
management_scopes?: string[];
|
|
13711
14605
|
saml_sp?: {
|
|
@@ -13968,6 +14862,8 @@ export interface operations {
|
|
|
13968
14862
|
login_flow?: string | null;
|
|
13969
14863
|
/** @description Audience a client_credentials token request gets when it sends none. An explicit `audience` wins. `null` removes it. */
|
|
13970
14864
|
default_audience?: string | null;
|
|
14865
|
+
/** @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. */
|
|
14866
|
+
include_roles_in_id_token?: boolean;
|
|
13971
14867
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. Replaces the whole list; `[]` removes all. Only scopes your own token holds can be added. */
|
|
13972
14868
|
management_scopes?: string[];
|
|
13973
14869
|
saml_sp?: {
|
|
@@ -14139,6 +15035,8 @@ export interface operations {
|
|
|
14139
15035
|
login_flow?: string | null;
|
|
14140
15036
|
/** @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`. */
|
|
14141
15037
|
default_audience?: string | null;
|
|
15038
|
+
/** @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. */
|
|
15039
|
+
include_roles_in_id_token?: boolean;
|
|
14142
15040
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
14143
15041
|
management_scopes?: string[];
|
|
14144
15042
|
saml_sp?: {
|
|
@@ -14419,6 +15317,8 @@ export interface operations {
|
|
|
14419
15317
|
login_flow?: string | null;
|
|
14420
15318
|
/** @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`. */
|
|
14421
15319
|
default_audience?: string | null;
|
|
15320
|
+
/** @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. */
|
|
15321
|
+
include_roles_in_id_token?: boolean;
|
|
14422
15322
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
14423
15323
|
management_scopes?: string[];
|
|
14424
15324
|
saml_sp?: {
|
|
@@ -14697,6 +15597,8 @@ export interface operations {
|
|
|
14697
15597
|
login_flow?: string | null;
|
|
14698
15598
|
/** @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`. */
|
|
14699
15599
|
default_audience?: string | null;
|
|
15600
|
+
/** @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. */
|
|
15601
|
+
include_roles_in_id_token?: boolean;
|
|
14700
15602
|
/** @description Management API scopes (e.g. `read:rolemembers`) this client may obtain with client_credentials for the audience `faable:management:<account_id>`. A token request gets the requested scopes that are in this list, or the whole list when it asks for none. Empty = the client cannot obtain Management API tokens. */
|
|
14701
15603
|
management_scopes?: string[];
|
|
14702
15604
|
saml_sp?: {
|