@faable/auth-sdk 2.9.25 → 2.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FaableAuthApi.d.ts +76 -0
- package/dist/api/generated-client.d.ts +200 -3
- package/dist/api/types.d.ts +201 -70
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +602 -88
package/dist/api/types.d.ts
CHANGED
|
@@ -3,75 +3,6 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/webhooks/postmark": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
|
-
get?: never;
|
|
14
|
-
put?: never;
|
|
15
|
-
post: {
|
|
16
|
-
parameters: {
|
|
17
|
-
query?: never;
|
|
18
|
-
header?: never;
|
|
19
|
-
path?: never;
|
|
20
|
-
cookie?: never;
|
|
21
|
-
};
|
|
22
|
-
requestBody?: never;
|
|
23
|
-
responses: {
|
|
24
|
-
/** @description Default Response */
|
|
25
|
-
200: {
|
|
26
|
-
headers: {
|
|
27
|
-
[name: string]: unknown;
|
|
28
|
-
};
|
|
29
|
-
content?: never;
|
|
30
|
-
};
|
|
31
|
-
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
32
|
-
404: {
|
|
33
|
-
headers: {
|
|
34
|
-
[name: string]: unknown;
|
|
35
|
-
};
|
|
36
|
-
content: {
|
|
37
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
38
|
-
/** @enum {string} */
|
|
39
|
-
error_code?: "account_not_found";
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
44
|
-
429: {
|
|
45
|
-
headers: {
|
|
46
|
-
[name: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
content: {
|
|
49
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
50
|
-
/** @enum {string} */
|
|
51
|
-
error_code?: "too_many_requests";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
56
|
-
500: {
|
|
57
|
-
headers: {
|
|
58
|
-
[name: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
content: {
|
|
61
|
-
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
62
|
-
/** @enum {string} */
|
|
63
|
-
error_code?: "internal_error";
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
delete?: never;
|
|
70
|
-
options?: never;
|
|
71
|
-
head?: never;
|
|
72
|
-
patch?: never;
|
|
73
|
-
trace?: never;
|
|
74
|
-
};
|
|
75
6
|
"/account/current": {
|
|
76
7
|
parameters: {
|
|
77
8
|
query?: never;
|
|
@@ -6169,6 +6100,30 @@ export interface components {
|
|
|
6169
6100
|
grant_types?: string[];
|
|
6170
6101
|
response_types?: string[];
|
|
6171
6102
|
token_endpoint_auth_method?: string;
|
|
6103
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
6104
|
+
jwks?: {
|
|
6105
|
+
keys: ({
|
|
6106
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
6107
|
+
kty: string;
|
|
6108
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
6109
|
+
kid?: string;
|
|
6110
|
+
use?: string;
|
|
6111
|
+
alg?: string;
|
|
6112
|
+
n?: string;
|
|
6113
|
+
e?: string;
|
|
6114
|
+
crv?: string;
|
|
6115
|
+
x?: string;
|
|
6116
|
+
y?: string;
|
|
6117
|
+
} & {
|
|
6118
|
+
[key: string]: unknown;
|
|
6119
|
+
})[];
|
|
6120
|
+
} | null;
|
|
6121
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
6122
|
+
jwks_usage?: {
|
|
6123
|
+
kid: string;
|
|
6124
|
+
/** Format: date-time */
|
|
6125
|
+
last_used_at: string;
|
|
6126
|
+
}[] | null;
|
|
6172
6127
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
6173
6128
|
consent_required?: boolean;
|
|
6174
6129
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -6335,7 +6290,26 @@ export interface components {
|
|
|
6335
6290
|
/** @description Grants this client may use at the token endpoint. Empty allows every grant except `password`, which must be listed to be used. */
|
|
6336
6291
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
6337
6292
|
response_types?: string[];
|
|
6293
|
+
/** @description How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client). */
|
|
6338
6294
|
token_endpoint_auth_method?: string;
|
|
6295
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
6296
|
+
jwks?: {
|
|
6297
|
+
keys: ({
|
|
6298
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
6299
|
+
kty: string;
|
|
6300
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
6301
|
+
kid?: string;
|
|
6302
|
+
use?: string;
|
|
6303
|
+
alg?: string;
|
|
6304
|
+
n?: string;
|
|
6305
|
+
e?: string;
|
|
6306
|
+
crv?: string;
|
|
6307
|
+
x?: string;
|
|
6308
|
+
y?: string;
|
|
6309
|
+
} & {
|
|
6310
|
+
[key: string]: unknown;
|
|
6311
|
+
})[];
|
|
6312
|
+
} | null;
|
|
6339
6313
|
application_type?: string;
|
|
6340
6314
|
software_id?: string | null;
|
|
6341
6315
|
software_version?: string | null;
|
|
@@ -8602,6 +8576,10 @@ export interface components {
|
|
|
8602
8576
|
grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
|
|
8603
8577
|
client_id?: string;
|
|
8604
8578
|
client_secret?: string;
|
|
8579
|
+
/** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
|
|
8580
|
+
client_assertion?: string;
|
|
8581
|
+
/** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
|
|
8582
|
+
client_assertion_type?: string;
|
|
8605
8583
|
scope?: string;
|
|
8606
8584
|
code?: string;
|
|
8607
8585
|
code_verifier?: string;
|
|
@@ -8763,6 +8741,8 @@ export interface components {
|
|
|
8763
8741
|
* - `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.
|
|
8764
8742
|
* - `saml_sp_mismatch` (400): The AuthnRequest does not match the client's SAML configuration: its Issuer is not the configured entity_id, or it asks for another Assertion Consumer Service URL or binding.
|
|
8765
8743
|
* - `saml_not_enabled` (404): This client does not have SAML enabled.
|
|
8744
|
+
* - `invalid_client_jwks` (400): The client `jwks` is not a valid set of public signing keys: RSA (2048 bits or more), EC (P-256, P-384, P-521) or Ed25519, public members only, up to 5, each with a `kid` when there is more than one.
|
|
8745
|
+
* - `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.
|
|
8766
8746
|
* - `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.
|
|
8767
8747
|
* - `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.
|
|
8768
8748
|
* - `audience_not_found` (403): The `audience` does not name an API registered in this account.
|
|
@@ -8847,7 +8827,7 @@ export interface components {
|
|
|
8847
8827
|
* - `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.
|
|
8848
8828
|
* @enum {string}
|
|
8849
8829
|
*/
|
|
8850
|
-
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
|
|
8830
|
+
ErrorCode: "bad_request" | "validation_error" | "unauthorized" | "payment_required" | "forbidden" | "not_found" | "method_not_allowed" | "conflict" | "last_sign_in_method" | "payload_too_large" | "unsupported_media_type" | "unprocessable_entity" | "too_many_requests" | "internal_error" | "already_exists" | "invalid_id" | "account_not_found" | "invalid_query" | "search_not_supported" | "invalid_expand" | "access_denied" | "insufficient_scope" | "team_required" | "account_limit_reached" | "invalid_project_id" | "account_transfer_refused" | "email_sender_domain_not_allowed" | "plan_required" | "invalid_canonical_host" | "canonical_host_breaks_passkeys" | "not_logged_in" | "session_already_revoked" | "invalid_token" | "not_owner" | "user_suspended" | "invalid_credentials" | "login_denied" | "signup_denied" | "client_credentials_denied" | "m2m_quota_exceeded" | "signup_disabled" | "email_taken" | "username_taken" | "invalid_username" | "invalid_email" | "invalid_name" | "same_email" | "user_has_no_email" | "password_too_weak" | "invalid_password_hash" | "weak_password_hash" | "invalid_code" | "invalid_phone" | "phone_changed" | "phone_already_verified" | "sms_unavailable" | "sms_failed" | "invalid_state" | "state_mismatch" | "invalid_ticket" | "ticket_used" | "ticket_expired" | "ticket_not_found" | "credential_not_found" | "invalid_link" | "expired_link" | "invalid_otp" | "invalid_client" | "client_not_found" | "client_mismatch" | "invalid_client_metadata" | "invalid_connection" | "no_database_connection" | "connection_required" | "connection_misconfigured" | "passwordless_unavailable" | "ambiguous_connection" | "invalid_redirect_uri" | "invalid_saml_request" | "saml_sp_mismatch" | "saml_not_enabled" | "invalid_client_jwks" | "client_jwks_required" | "invalid_saml_sp" | "origin_not_allowed" | "audience_not_found" | "system_resource" | "invalid_request" | "invalid_device_code" | "provider_error" | "identity_already_linked" | "identity_link_denied" | "identity_conflict" | "identity_orphaned" | "no_provider_token" | "no_refresh_token" | "action_unavailable" | "login_flow_misconfigured" | "mfa_required" | "step_up_required" | "reauth_required" | "invalid_current_password" | "email_not_verified" | "invalid_profile_field" | "interaction_required" | "passkey_login_disabled" | "mfa_pending" | "mfa_invalid_code" | "mfa_invalid_recovery_code" | "too_many_attempts" | "too_many_login_attempts" | "totp_not_allowed" | "no_usable_factor" | "factor_not_found" | "factor_already_confirmed" | "invalid_factor" | "session_missing" | "passkey_verification_failed" | "no_passkey_enrolled" | "malformed_credential" | "unknown_passkey" | "invalid_passkey" | "invalid_invite_url" | "invite_email_mismatch" | "invite_email_unverified" | "invite_not_found" | "invite_used" | "already_member" | "not_a_member" | "consent_options_unavailable" | "consent_choice_invalid" | "oauth21_required" | "registration_disabled" | "invalid_email_domain" | "public_email_domain" | "organization_domain_not_found" | "organization_domain_taken" | "organization_domain_unverified" | "plan_unavailable" | "organization_domain_mismatch" | "team_not_in_organization" | "organization_has_no_idp" | "organization_not_found" | "invalid_user" | "not_an_organization_admin" | "last_organization_admin" | "team_id_unavailable" | "use_team_member_route" | "role_not_found" | "invalid_role" | "invalid_permission" | "flow_not_found" | "revision_not_found" | "invalid_webhook_event" | "invalid_webhook_url" | "not_a_webhook" | "delivery_not_found" | "delivery_in_progress" | "account_mismatch" | "connect_redirect_uri_missing" | "invalid_site_url" | "handoff_not_found" | "handoff_expired" | "handoff_used" | "invalid_code_verifier";
|
|
8851
8831
|
/** @description Every error response has this shape. Branch on `error_code`, never on `message`: the message is written for a person and may change. */
|
|
8852
8832
|
ErrorResponse: {
|
|
8853
8833
|
/** @description The HTTP status, repeated. */
|
|
@@ -13079,6 +13059,30 @@ export interface operations {
|
|
|
13079
13059
|
grant_types?: string[];
|
|
13080
13060
|
response_types?: string[];
|
|
13081
13061
|
token_endpoint_auth_method?: string;
|
|
13062
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
13063
|
+
jwks?: {
|
|
13064
|
+
keys: ({
|
|
13065
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
13066
|
+
kty: string;
|
|
13067
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
13068
|
+
kid?: string;
|
|
13069
|
+
use?: string;
|
|
13070
|
+
alg?: string;
|
|
13071
|
+
n?: string;
|
|
13072
|
+
e?: string;
|
|
13073
|
+
crv?: string;
|
|
13074
|
+
x?: string;
|
|
13075
|
+
y?: string;
|
|
13076
|
+
} & {
|
|
13077
|
+
[key: string]: unknown;
|
|
13078
|
+
})[];
|
|
13079
|
+
} | null;
|
|
13080
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
13081
|
+
jwks_usage?: {
|
|
13082
|
+
kid: string;
|
|
13083
|
+
/** Format: date-time */
|
|
13084
|
+
last_used_at: string;
|
|
13085
|
+
}[] | null;
|
|
13082
13086
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
13083
13087
|
consent_required?: boolean;
|
|
13084
13088
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -13318,6 +13322,30 @@ export interface operations {
|
|
|
13318
13322
|
grant_types?: string[];
|
|
13319
13323
|
response_types?: string[];
|
|
13320
13324
|
token_endpoint_auth_method?: string;
|
|
13325
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
13326
|
+
jwks?: {
|
|
13327
|
+
keys: ({
|
|
13328
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
13329
|
+
kty: string;
|
|
13330
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
13331
|
+
kid?: string;
|
|
13332
|
+
use?: string;
|
|
13333
|
+
alg?: string;
|
|
13334
|
+
n?: string;
|
|
13335
|
+
e?: string;
|
|
13336
|
+
crv?: string;
|
|
13337
|
+
x?: string;
|
|
13338
|
+
y?: string;
|
|
13339
|
+
} & {
|
|
13340
|
+
[key: string]: unknown;
|
|
13341
|
+
})[];
|
|
13342
|
+
} | null;
|
|
13343
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
13344
|
+
jwks_usage?: {
|
|
13345
|
+
kid: string;
|
|
13346
|
+
/** Format: date-time */
|
|
13347
|
+
last_used_at: string;
|
|
13348
|
+
}[] | null;
|
|
13321
13349
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
13322
13350
|
consent_required?: boolean;
|
|
13323
13351
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -13558,7 +13586,26 @@ export interface operations {
|
|
|
13558
13586
|
/** @description Grants this client may use at the token endpoint. Empty allows every grant except `password`, which must be listed to be used. */
|
|
13559
13587
|
grant_types?: ("authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code")[];
|
|
13560
13588
|
response_types?: string[];
|
|
13589
|
+
/** @description How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client). */
|
|
13561
13590
|
token_endpoint_auth_method?: string;
|
|
13591
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
13592
|
+
jwks?: {
|
|
13593
|
+
keys: ({
|
|
13594
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
13595
|
+
kty: string;
|
|
13596
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
13597
|
+
kid?: string;
|
|
13598
|
+
use?: string;
|
|
13599
|
+
alg?: string;
|
|
13600
|
+
n?: string;
|
|
13601
|
+
e?: string;
|
|
13602
|
+
crv?: string;
|
|
13603
|
+
x?: string;
|
|
13604
|
+
y?: string;
|
|
13605
|
+
} & {
|
|
13606
|
+
[key: string]: unknown;
|
|
13607
|
+
})[];
|
|
13608
|
+
} | null;
|
|
13562
13609
|
application_type?: string;
|
|
13563
13610
|
software_id?: string | null;
|
|
13564
13611
|
software_version?: string | null;
|
|
@@ -13686,6 +13733,30 @@ export interface operations {
|
|
|
13686
13733
|
grant_types?: string[];
|
|
13687
13734
|
response_types?: string[];
|
|
13688
13735
|
token_endpoint_auth_method?: string;
|
|
13736
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
13737
|
+
jwks?: {
|
|
13738
|
+
keys: ({
|
|
13739
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
13740
|
+
kty: string;
|
|
13741
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
13742
|
+
kid?: string;
|
|
13743
|
+
use?: string;
|
|
13744
|
+
alg?: string;
|
|
13745
|
+
n?: string;
|
|
13746
|
+
e?: string;
|
|
13747
|
+
crv?: string;
|
|
13748
|
+
x?: string;
|
|
13749
|
+
y?: string;
|
|
13750
|
+
} & {
|
|
13751
|
+
[key: string]: unknown;
|
|
13752
|
+
})[];
|
|
13753
|
+
} | null;
|
|
13754
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
13755
|
+
jwks_usage?: {
|
|
13756
|
+
kid: string;
|
|
13757
|
+
/** Format: date-time */
|
|
13758
|
+
last_used_at: string;
|
|
13759
|
+
}[] | null;
|
|
13689
13760
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
13690
13761
|
consent_required?: boolean;
|
|
13691
13762
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -13931,6 +14002,30 @@ export interface operations {
|
|
|
13931
14002
|
grant_types?: string[];
|
|
13932
14003
|
response_types?: string[];
|
|
13933
14004
|
token_endpoint_auth_method?: string;
|
|
14005
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
14006
|
+
jwks?: {
|
|
14007
|
+
keys: ({
|
|
14008
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
14009
|
+
kty: string;
|
|
14010
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
14011
|
+
kid?: string;
|
|
14012
|
+
use?: string;
|
|
14013
|
+
alg?: string;
|
|
14014
|
+
n?: string;
|
|
14015
|
+
e?: string;
|
|
14016
|
+
crv?: string;
|
|
14017
|
+
x?: string;
|
|
14018
|
+
y?: string;
|
|
14019
|
+
} & {
|
|
14020
|
+
[key: string]: unknown;
|
|
14021
|
+
})[];
|
|
14022
|
+
} | null;
|
|
14023
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
14024
|
+
jwks_usage?: {
|
|
14025
|
+
kid: string;
|
|
14026
|
+
/** Format: date-time */
|
|
14027
|
+
last_used_at: string;
|
|
14028
|
+
}[] | null;
|
|
13934
14029
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
13935
14030
|
consent_required?: boolean;
|
|
13936
14031
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -14174,6 +14269,30 @@ export interface operations {
|
|
|
14174
14269
|
grant_types?: string[];
|
|
14175
14270
|
response_types?: string[];
|
|
14176
14271
|
token_endpoint_auth_method?: string;
|
|
14272
|
+
/** @description Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime. */
|
|
14273
|
+
jwks?: {
|
|
14274
|
+
keys: ({
|
|
14275
|
+
/** @description `RSA`, `EC` or `OKP`. */
|
|
14276
|
+
kty: string;
|
|
14277
|
+
/** @description Key id. Required when the set has more than one key; the assertion names it in its header. */
|
|
14278
|
+
kid?: string;
|
|
14279
|
+
use?: string;
|
|
14280
|
+
alg?: string;
|
|
14281
|
+
n?: string;
|
|
14282
|
+
e?: string;
|
|
14283
|
+
crv?: string;
|
|
14284
|
+
x?: string;
|
|
14285
|
+
y?: string;
|
|
14286
|
+
} & {
|
|
14287
|
+
[key: string]: unknown;
|
|
14288
|
+
})[];
|
|
14289
|
+
} | null;
|
|
14290
|
+
/** @description When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only. */
|
|
14291
|
+
jwks_usage?: {
|
|
14292
|
+
kid: string;
|
|
14293
|
+
/** Format: date-time */
|
|
14294
|
+
last_used_at: string;
|
|
14295
|
+
}[] | null;
|
|
14177
14296
|
/** @description When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration). */
|
|
14178
14297
|
consent_required?: boolean;
|
|
14179
14298
|
/** @description For a client identified by a Client ID Metadata Document: the URL (also its client_id) its metadata was fetched from. */
|
|
@@ -35867,6 +35986,10 @@ export interface operations {
|
|
|
35867
35986
|
grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
|
|
35868
35987
|
client_id?: string;
|
|
35869
35988
|
client_secret?: string;
|
|
35989
|
+
/** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
|
|
35990
|
+
client_assertion?: string;
|
|
35991
|
+
/** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
|
|
35992
|
+
client_assertion_type?: string;
|
|
35870
35993
|
scope?: string;
|
|
35871
35994
|
code?: string;
|
|
35872
35995
|
code_verifier?: string;
|
|
@@ -35971,6 +36094,10 @@ export interface operations {
|
|
|
35971
36094
|
grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
|
|
35972
36095
|
client_id?: string;
|
|
35973
36096
|
client_secret?: string;
|
|
36097
|
+
/** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
|
|
36098
|
+
client_assertion?: string;
|
|
36099
|
+
/** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
|
|
36100
|
+
client_assertion_type?: string;
|
|
35974
36101
|
scope?: string;
|
|
35975
36102
|
code?: string;
|
|
35976
36103
|
code_verifier?: string;
|
|
@@ -36006,6 +36133,10 @@ export interface operations {
|
|
|
36006
36133
|
grant_type?: "authorization_code" | "client_credentials" | "refresh_token" | "password" | "http://auth0.com/oauth/grant-type/mfa-otp" | "http://auth0.com/oauth/grant-type/mfa-recovery-code" | "http://auth0.com/oauth/grant-type/passwordless/otp" | "urn:ietf:params:oauth:grant-type:token-exchange" | "urn:ietf:params:oauth:grant-type:device_code";
|
|
36007
36134
|
client_id?: string;
|
|
36008
36135
|
client_secret?: string;
|
|
36136
|
+
/** @description For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only. */
|
|
36137
|
+
client_assertion?: string;
|
|
36138
|
+
/** @description With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`. */
|
|
36139
|
+
client_assertion_type?: string;
|
|
36009
36140
|
scope?: string;
|
|
36010
36141
|
code?: string;
|
|
36011
36142
|
code_verifier?: string;
|
package/dist/version.js
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
// login pages could not import the SDK at all. Same pattern as auth-js.
|
|
10
10
|
//
|
|
11
11
|
// The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
|
|
12
|
-
export const version = "2.9.
|
|
12
|
+
export const version = "2.9.27";
|
|
13
13
|
// Short git SHA of the released commit. The version dates a build; this names
|
|
14
14
|
// the exact tree, so a canonical log line or an audit entry leads straight to
|
|
15
15
|
// `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
|
|
16
16
|
// link) cannot be mistaken for a real commit — auth only records values that
|
|
17
17
|
// look like a SHA, and this one never will.
|
|
18
|
-
export const commit = "
|
|
18
|
+
export const commit = "426e2c0";
|
|
19
19
|
// What this SDK writes in `x-faable-client`. Exported for a consumer that
|
|
20
20
|
// builds a strategy on its own (outside `FaableAuthApi`) and still wants the
|
|
21
21
|
// token request attributed — a bare `authClientCredentials` stamps only what
|