@faable/auth-sdk 2.8.13 → 2.8.15
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/api/generated-client.d.ts +3 -51
- package/dist/api/types.d.ts +139 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +223 -2
|
@@ -482,23 +482,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
482
482
|
body?: string | null | undefined;
|
|
483
483
|
social_links?: {
|
|
484
484
|
label: string;
|
|
485
|
-
url: string;
|
|
486
|
-
* `GET /user` — operationId: `user/list`
|
|
487
|
-
*
|
|
488
|
-
* List Users
|
|
489
|
-
*
|
|
490
|
-
* @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
|
|
491
|
-
* @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
|
|
492
|
-
* @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
|
|
493
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
494
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
495
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
496
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
497
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
498
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
499
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
500
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
501
|
-
*/
|
|
485
|
+
url: string;
|
|
502
486
|
}[] | null | undefined;
|
|
503
487
|
} | null | undefined;
|
|
504
488
|
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
@@ -568,23 +552,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
568
552
|
body?: string | null | undefined;
|
|
569
553
|
social_links?: {
|
|
570
554
|
label: string;
|
|
571
|
-
url: string;
|
|
572
|
-
* `GET /user` — operationId: `user/list`
|
|
573
|
-
*
|
|
574
|
-
* List Users
|
|
575
|
-
*
|
|
576
|
-
* @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
|
|
577
|
-
* @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
|
|
578
|
-
* @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
|
|
579
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
580
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
581
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
582
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
583
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
584
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
585
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
586
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
587
|
-
*/
|
|
555
|
+
url: string;
|
|
588
556
|
}[] | null | undefined;
|
|
589
557
|
} | null | undefined;
|
|
590
558
|
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
@@ -657,23 +625,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
657
625
|
body?: string | null | undefined;
|
|
658
626
|
social_links?: {
|
|
659
627
|
label: string;
|
|
660
|
-
url: string;
|
|
661
|
-
* `GET /user` — operationId: `user/list`
|
|
662
|
-
*
|
|
663
|
-
* List Users
|
|
664
|
-
*
|
|
665
|
-
* @throws {FaableApiError} `invalid_query` (400) — The `?query=` FaableQL expression could not be parsed.
|
|
666
|
-
* @throws {FaableApiError} `invalid_expand` (400) — An `?expand=` path is not allowed on this resource.
|
|
667
|
-
* @throws {FaableApiError} `search_not_supported` (400) — This resource does not support `?search=`.
|
|
668
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
669
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
670
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
671
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
672
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
673
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
674
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
675
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
676
|
-
*/
|
|
628
|
+
url: string;
|
|
677
629
|
}[] | null | undefined;
|
|
678
630
|
} | null | undefined;
|
|
679
631
|
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -4597,6 +4597,26 @@ export interface paths {
|
|
|
4597
4597
|
patch?: never;
|
|
4598
4598
|
trace?: never;
|
|
4599
4599
|
};
|
|
4600
|
+
"/me/identities/{connection_id}": {
|
|
4601
|
+
parameters: {
|
|
4602
|
+
query?: never;
|
|
4603
|
+
header?: never;
|
|
4604
|
+
path?: never;
|
|
4605
|
+
cookie?: never;
|
|
4606
|
+
};
|
|
4607
|
+
get?: never;
|
|
4608
|
+
put?: never;
|
|
4609
|
+
post?: never;
|
|
4610
|
+
/**
|
|
4611
|
+
* Unlink a social or enterprise account from the current User
|
|
4612
|
+
* @description Removes the identities that link the User behind the session or bearer token to a connection (e.g. their GitHub account), with the provider tokens they hold. Refused with `last_sign_in_method` when the User would be left with no way to sign in: no password, no identity on another connection, and no passwordless email sign-in. The User's sessions stay. A Bearer token must belong to this Account and be a user token.
|
|
4613
|
+
*/
|
|
4614
|
+
delete: operations["session/me_unlink_identity"];
|
|
4615
|
+
options?: never;
|
|
4616
|
+
head?: never;
|
|
4617
|
+
patch?: never;
|
|
4618
|
+
trace?: never;
|
|
4619
|
+
};
|
|
4600
4620
|
"/me/password": {
|
|
4601
4621
|
parameters: {
|
|
4602
4622
|
query?: never;
|
|
@@ -8387,6 +8407,7 @@ export interface components {
|
|
|
8387
8407
|
* - `not_found` (404): The resource does not exist in this account.
|
|
8388
8408
|
* - `method_not_allowed` (405): The HTTP method is not supported on this path.
|
|
8389
8409
|
* - `conflict` (409): The request conflicts with the current state of the resource.
|
|
8410
|
+
* - `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.
|
|
8390
8411
|
* - `payload_too_large` (413): The request body exceeds the size limit.
|
|
8391
8412
|
* - `unsupported_media_type` (415): The `Content-Type` is not accepted by this endpoint.
|
|
8392
8413
|
* - `unprocessable_entity` (422): The request is well-formed but cannot be processed.
|
|
@@ -8534,7 +8555,7 @@ export interface components {
|
|
|
8534
8555
|
* - `delivery_in_progress` (409): The delivery is being attempted right now; retry the redeliver in a minute.
|
|
8535
8556
|
* @enum {string}
|
|
8536
8557
|
*/
|
|
8537
|
-
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "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" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress";
|
|
8558
|
+
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "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" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress";
|
|
8538
8559
|
/** @description Every error response has this shape. Branch on `error_code`, never on `message`: the message is written for a person and may change. */
|
|
8539
8560
|
ErrorResponse: {
|
|
8540
8561
|
/** @description The HTTP status, repeated. */
|
|
@@ -32827,6 +32848,123 @@ export interface operations {
|
|
|
32827
32848
|
};
|
|
32828
32849
|
};
|
|
32829
32850
|
};
|
|
32851
|
+
"session/me_unlink_identity": {
|
|
32852
|
+
parameters: {
|
|
32853
|
+
query?: never;
|
|
32854
|
+
header?: never;
|
|
32855
|
+
path: {
|
|
32856
|
+
connection_id: string;
|
|
32857
|
+
};
|
|
32858
|
+
cookie?: never;
|
|
32859
|
+
};
|
|
32860
|
+
requestBody?: never;
|
|
32861
|
+
responses: {
|
|
32862
|
+
/** @description Default Response */
|
|
32863
|
+
200: {
|
|
32864
|
+
headers: {
|
|
32865
|
+
[name: string]: unknown;
|
|
32866
|
+
};
|
|
32867
|
+
content: {
|
|
32868
|
+
"application/json": {
|
|
32869
|
+
/** @description How many identities of the user on that connection were removed. */
|
|
32870
|
+
unlinked: number;
|
|
32871
|
+
};
|
|
32872
|
+
};
|
|
32873
|
+
};
|
|
32874
|
+
/** @description `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field. */
|
|
32875
|
+
400: {
|
|
32876
|
+
headers: {
|
|
32877
|
+
[name: string]: unknown;
|
|
32878
|
+
};
|
|
32879
|
+
content: {
|
|
32880
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32881
|
+
/** @enum {string} */
|
|
32882
|
+
error_code?: "validation_error";
|
|
32883
|
+
};
|
|
32884
|
+
};
|
|
32885
|
+
};
|
|
32886
|
+
/**
|
|
32887
|
+
* @description `mfa_pending` — A second-factor challenge is pending; answer it before continuing.
|
|
32888
|
+
*
|
|
32889
|
+
* `not_logged_in` — There is no signed-in session for this request.
|
|
32890
|
+
*/
|
|
32891
|
+
401: {
|
|
32892
|
+
headers: {
|
|
32893
|
+
[name: string]: unknown;
|
|
32894
|
+
};
|
|
32895
|
+
content: {
|
|
32896
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32897
|
+
/** @enum {string} */
|
|
32898
|
+
error_code?: "mfa_pending" | "not_logged_in";
|
|
32899
|
+
};
|
|
32900
|
+
};
|
|
32901
|
+
};
|
|
32902
|
+
/** @description `forbidden` — The credentials are valid but do not allow this operation. */
|
|
32903
|
+
403: {
|
|
32904
|
+
headers: {
|
|
32905
|
+
[name: string]: unknown;
|
|
32906
|
+
};
|
|
32907
|
+
content: {
|
|
32908
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32909
|
+
/** @enum {string} */
|
|
32910
|
+
error_code?: "forbidden";
|
|
32911
|
+
};
|
|
32912
|
+
};
|
|
32913
|
+
};
|
|
32914
|
+
/**
|
|
32915
|
+
* @description `not_found` — The resource does not exist in this account.
|
|
32916
|
+
*
|
|
32917
|
+
* `account_not_found` — No Auth Account matches the request (domain, header or token).
|
|
32918
|
+
*/
|
|
32919
|
+
404: {
|
|
32920
|
+
headers: {
|
|
32921
|
+
[name: string]: unknown;
|
|
32922
|
+
};
|
|
32923
|
+
content: {
|
|
32924
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32925
|
+
/** @enum {string} */
|
|
32926
|
+
error_code?: "not_found" | "account_not_found";
|
|
32927
|
+
};
|
|
32928
|
+
};
|
|
32929
|
+
};
|
|
32930
|
+
/** @description `last_sign_in_method` — Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first. */
|
|
32931
|
+
409: {
|
|
32932
|
+
headers: {
|
|
32933
|
+
[name: string]: unknown;
|
|
32934
|
+
};
|
|
32935
|
+
content: {
|
|
32936
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32937
|
+
/** @enum {string} */
|
|
32938
|
+
error_code?: "last_sign_in_method";
|
|
32939
|
+
};
|
|
32940
|
+
};
|
|
32941
|
+
};
|
|
32942
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
32943
|
+
429: {
|
|
32944
|
+
headers: {
|
|
32945
|
+
[name: string]: unknown;
|
|
32946
|
+
};
|
|
32947
|
+
content: {
|
|
32948
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32949
|
+
/** @enum {string} */
|
|
32950
|
+
error_code?: "too_many_requests";
|
|
32951
|
+
};
|
|
32952
|
+
};
|
|
32953
|
+
};
|
|
32954
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
32955
|
+
500: {
|
|
32956
|
+
headers: {
|
|
32957
|
+
[name: string]: unknown;
|
|
32958
|
+
};
|
|
32959
|
+
content: {
|
|
32960
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
32961
|
+
/** @enum {string} */
|
|
32962
|
+
error_code?: "internal_error";
|
|
32963
|
+
};
|
|
32964
|
+
};
|
|
32965
|
+
};
|
|
32966
|
+
};
|
|
32967
|
+
};
|
|
32830
32968
|
"session/me_password": {
|
|
32831
32969
|
parameters: {
|
|
32832
32970
|
query?: never;
|
package/dist/version.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// login pages could not import the SDK at all. Same pattern as auth-js.
|
|
10
10
|
//
|
|
11
11
|
// The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
|
|
12
|
-
export const version = "2.8.
|
|
12
|
+
export const version = "2.8.15";
|
|
13
13
|
// Short git SHA of the released commit. The version dates a build; this names
|
|
14
14
|
// the exact tree, so a canonical log line or an audit entry leads straight to
|
|
15
15
|
// `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
|
|
16
16
|
// link) cannot be mistaken for a real commit — auth only records values that
|
|
17
17
|
// look like a SHA, and this one never will.
|
|
18
|
-
export const commit = "
|
|
18
|
+
export const commit = "6a95c99";
|
|
19
19
|
// What this SDK writes in `x-faable-client`. Exported for a consumer that
|
|
20
20
|
// builds a strategy on its own (outside `FaableAuthApi`) and still wants the
|
|
21
21
|
// token request attributed — a bare `authClientCredentials` stamps only what
|
package/package.json
CHANGED
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.85.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -9400,7 +9400,7 @@
|
|
|
9400
9400
|
},
|
|
9401
9401
|
"ErrorCode": {
|
|
9402
9402
|
"type": "string",
|
|
9403
|
-
"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- `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` (401): 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- `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; the number cannot be swapped from the screen.\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): Dynamic client registration rejected a field (RFC 7591). `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_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- `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- `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.",
|
|
9403
|
+
"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` (401): 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- `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; the number cannot be swapped from the screen.\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): Dynamic client registration rejected a field (RFC 7591). `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_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- `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- `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.",
|
|
9404
9404
|
"enum": [
|
|
9405
9405
|
"bad_request",
|
|
9406
9406
|
"validation_error",
|
|
@@ -9410,6 +9410,7 @@
|
|
|
9410
9410
|
"not_found",
|
|
9411
9411
|
"method_not_allowed",
|
|
9412
9412
|
"conflict",
|
|
9413
|
+
"last_sign_in_method",
|
|
9413
9414
|
"payload_too_large",
|
|
9414
9415
|
"unsupported_media_type",
|
|
9415
9416
|
"unprocessable_entity",
|
|
@@ -70790,6 +70791,226 @@
|
|
|
70790
70791
|
}
|
|
70791
70792
|
}
|
|
70792
70793
|
},
|
|
70794
|
+
"/me/identities/{connection_id}": {
|
|
70795
|
+
"delete": {
|
|
70796
|
+
"operationId": "session/me_unlink_identity",
|
|
70797
|
+
"summary": "Unlink a social or enterprise account from the current User",
|
|
70798
|
+
"tags": [
|
|
70799
|
+
"session"
|
|
70800
|
+
],
|
|
70801
|
+
"description": "Removes the identities that link the User behind the session or bearer token to a connection (e.g. their GitHub account), with the provider tokens they hold. Refused with `last_sign_in_method` when the User would be left with no way to sign in: no password, no identity on another connection, and no passwordless email sign-in. The User's sessions stay. A Bearer token must belong to this Account and be a user token.",
|
|
70802
|
+
"parameters": [
|
|
70803
|
+
{
|
|
70804
|
+
"schema": {
|
|
70805
|
+
"type": "string",
|
|
70806
|
+
"minLength": 1,
|
|
70807
|
+
"maxLength": 64
|
|
70808
|
+
},
|
|
70809
|
+
"in": "path",
|
|
70810
|
+
"name": "connection_id",
|
|
70811
|
+
"required": true
|
|
70812
|
+
}
|
|
70813
|
+
],
|
|
70814
|
+
"responses": {
|
|
70815
|
+
"200": {
|
|
70816
|
+
"description": "Default Response",
|
|
70817
|
+
"content": {
|
|
70818
|
+
"application/json": {
|
|
70819
|
+
"schema": {
|
|
70820
|
+
"type": "object",
|
|
70821
|
+
"required": [
|
|
70822
|
+
"unlinked"
|
|
70823
|
+
],
|
|
70824
|
+
"properties": {
|
|
70825
|
+
"unlinked": {
|
|
70826
|
+
"type": "number",
|
|
70827
|
+
"description": "How many identities of the user on that connection were removed."
|
|
70828
|
+
}
|
|
70829
|
+
}
|
|
70830
|
+
}
|
|
70831
|
+
}
|
|
70832
|
+
}
|
|
70833
|
+
},
|
|
70834
|
+
"400": {
|
|
70835
|
+
"description": "`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
70836
|
+
"content": {
|
|
70837
|
+
"application/json": {
|
|
70838
|
+
"schema": {
|
|
70839
|
+
"allOf": [
|
|
70840
|
+
{
|
|
70841
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70842
|
+
},
|
|
70843
|
+
{
|
|
70844
|
+
"type": "object",
|
|
70845
|
+
"properties": {
|
|
70846
|
+
"error_code": {
|
|
70847
|
+
"type": "string",
|
|
70848
|
+
"enum": [
|
|
70849
|
+
"validation_error"
|
|
70850
|
+
]
|
|
70851
|
+
}
|
|
70852
|
+
}
|
|
70853
|
+
}
|
|
70854
|
+
]
|
|
70855
|
+
}
|
|
70856
|
+
}
|
|
70857
|
+
}
|
|
70858
|
+
},
|
|
70859
|
+
"401": {
|
|
70860
|
+
"description": "`mfa_pending` — A second-factor challenge is pending; answer it before continuing.\n\n`not_logged_in` — There is no signed-in session for this request.",
|
|
70861
|
+
"content": {
|
|
70862
|
+
"application/json": {
|
|
70863
|
+
"schema": {
|
|
70864
|
+
"allOf": [
|
|
70865
|
+
{
|
|
70866
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70867
|
+
},
|
|
70868
|
+
{
|
|
70869
|
+
"type": "object",
|
|
70870
|
+
"properties": {
|
|
70871
|
+
"error_code": {
|
|
70872
|
+
"type": "string",
|
|
70873
|
+
"enum": [
|
|
70874
|
+
"mfa_pending",
|
|
70875
|
+
"not_logged_in"
|
|
70876
|
+
]
|
|
70877
|
+
}
|
|
70878
|
+
}
|
|
70879
|
+
}
|
|
70880
|
+
]
|
|
70881
|
+
}
|
|
70882
|
+
}
|
|
70883
|
+
}
|
|
70884
|
+
},
|
|
70885
|
+
"403": {
|
|
70886
|
+
"description": "`forbidden` — The credentials are valid but do not allow this operation.",
|
|
70887
|
+
"content": {
|
|
70888
|
+
"application/json": {
|
|
70889
|
+
"schema": {
|
|
70890
|
+
"allOf": [
|
|
70891
|
+
{
|
|
70892
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70893
|
+
},
|
|
70894
|
+
{
|
|
70895
|
+
"type": "object",
|
|
70896
|
+
"properties": {
|
|
70897
|
+
"error_code": {
|
|
70898
|
+
"type": "string",
|
|
70899
|
+
"enum": [
|
|
70900
|
+
"forbidden"
|
|
70901
|
+
]
|
|
70902
|
+
}
|
|
70903
|
+
}
|
|
70904
|
+
}
|
|
70905
|
+
]
|
|
70906
|
+
}
|
|
70907
|
+
}
|
|
70908
|
+
}
|
|
70909
|
+
},
|
|
70910
|
+
"404": {
|
|
70911
|
+
"description": "`not_found` — The resource does not exist in this account.\n\n`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
70912
|
+
"content": {
|
|
70913
|
+
"application/json": {
|
|
70914
|
+
"schema": {
|
|
70915
|
+
"allOf": [
|
|
70916
|
+
{
|
|
70917
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70918
|
+
},
|
|
70919
|
+
{
|
|
70920
|
+
"type": "object",
|
|
70921
|
+
"properties": {
|
|
70922
|
+
"error_code": {
|
|
70923
|
+
"type": "string",
|
|
70924
|
+
"enum": [
|
|
70925
|
+
"not_found",
|
|
70926
|
+
"account_not_found"
|
|
70927
|
+
]
|
|
70928
|
+
}
|
|
70929
|
+
}
|
|
70930
|
+
}
|
|
70931
|
+
]
|
|
70932
|
+
}
|
|
70933
|
+
}
|
|
70934
|
+
}
|
|
70935
|
+
},
|
|
70936
|
+
"409": {
|
|
70937
|
+
"description": "`last_sign_in_method` — Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first.",
|
|
70938
|
+
"content": {
|
|
70939
|
+
"application/json": {
|
|
70940
|
+
"schema": {
|
|
70941
|
+
"allOf": [
|
|
70942
|
+
{
|
|
70943
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70944
|
+
},
|
|
70945
|
+
{
|
|
70946
|
+
"type": "object",
|
|
70947
|
+
"properties": {
|
|
70948
|
+
"error_code": {
|
|
70949
|
+
"type": "string",
|
|
70950
|
+
"enum": [
|
|
70951
|
+
"last_sign_in_method"
|
|
70952
|
+
]
|
|
70953
|
+
}
|
|
70954
|
+
}
|
|
70955
|
+
}
|
|
70956
|
+
]
|
|
70957
|
+
}
|
|
70958
|
+
}
|
|
70959
|
+
}
|
|
70960
|
+
},
|
|
70961
|
+
"429": {
|
|
70962
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
70963
|
+
"content": {
|
|
70964
|
+
"application/json": {
|
|
70965
|
+
"schema": {
|
|
70966
|
+
"allOf": [
|
|
70967
|
+
{
|
|
70968
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70969
|
+
},
|
|
70970
|
+
{
|
|
70971
|
+
"type": "object",
|
|
70972
|
+
"properties": {
|
|
70973
|
+
"error_code": {
|
|
70974
|
+
"type": "string",
|
|
70975
|
+
"enum": [
|
|
70976
|
+
"too_many_requests"
|
|
70977
|
+
]
|
|
70978
|
+
}
|
|
70979
|
+
}
|
|
70980
|
+
}
|
|
70981
|
+
]
|
|
70982
|
+
}
|
|
70983
|
+
}
|
|
70984
|
+
}
|
|
70985
|
+
},
|
|
70986
|
+
"500": {
|
|
70987
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
70988
|
+
"content": {
|
|
70989
|
+
"application/json": {
|
|
70990
|
+
"schema": {
|
|
70991
|
+
"allOf": [
|
|
70992
|
+
{
|
|
70993
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
70994
|
+
},
|
|
70995
|
+
{
|
|
70996
|
+
"type": "object",
|
|
70997
|
+
"properties": {
|
|
70998
|
+
"error_code": {
|
|
70999
|
+
"type": "string",
|
|
71000
|
+
"enum": [
|
|
71001
|
+
"internal_error"
|
|
71002
|
+
]
|
|
71003
|
+
}
|
|
71004
|
+
}
|
|
71005
|
+
}
|
|
71006
|
+
]
|
|
71007
|
+
}
|
|
71008
|
+
}
|
|
71009
|
+
}
|
|
71010
|
+
}
|
|
71011
|
+
}
|
|
71012
|
+
}
|
|
71013
|
+
},
|
|
70793
71014
|
"/me/password": {
|
|
70794
71015
|
"post": {
|
|
70795
71016
|
"operationId": "session/me_password",
|