@faable/auth-sdk 2.9.32 → 2.9.34
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 +36 -0
- package/dist/api/generated-client.d.ts +50 -48
- package/dist/api/types.d.ts +215 -0
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +401 -1
package/dist/FaableAuthApi.d.ts
CHANGED
|
@@ -125,6 +125,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
125
125
|
email_verified: boolean;
|
|
126
126
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
127
127
|
email_verified_at?: string | null | undefined;
|
|
128
|
+
challenge_passed_at?: string | null | undefined;
|
|
129
|
+
challenge_passed?: {
|
|
130
|
+
method: string;
|
|
131
|
+
difficulty: number;
|
|
132
|
+
client_id?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
128
134
|
email_change_locked_at?: string | null | undefined;
|
|
129
135
|
email_bounced_at?: string | null | undefined;
|
|
130
136
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -213,6 +219,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
213
219
|
email_verified: boolean;
|
|
214
220
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
215
221
|
email_verified_at?: string | null | undefined;
|
|
222
|
+
challenge_passed_at?: string | null | undefined;
|
|
223
|
+
challenge_passed?: {
|
|
224
|
+
method: string;
|
|
225
|
+
difficulty: number;
|
|
226
|
+
client_id?: string | undefined;
|
|
227
|
+
} | undefined;
|
|
216
228
|
email_change_locked_at?: string | null | undefined;
|
|
217
229
|
email_bounced_at?: string | null | undefined;
|
|
218
230
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -304,6 +316,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
304
316
|
email_verified: boolean;
|
|
305
317
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
306
318
|
email_verified_at?: string | null | undefined;
|
|
319
|
+
challenge_passed_at?: string | null | undefined;
|
|
320
|
+
challenge_passed?: {
|
|
321
|
+
method: string;
|
|
322
|
+
difficulty: number;
|
|
323
|
+
client_id?: string | undefined;
|
|
324
|
+
} | undefined;
|
|
307
325
|
email_change_locked_at?: string | null | undefined;
|
|
308
326
|
email_bounced_at?: string | null | undefined;
|
|
309
327
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -394,6 +412,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
394
412
|
email_verified: boolean;
|
|
395
413
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
396
414
|
email_verified_at?: string | null | undefined;
|
|
415
|
+
challenge_passed_at?: string | null | undefined;
|
|
416
|
+
challenge_passed?: {
|
|
417
|
+
method: string;
|
|
418
|
+
difficulty: number;
|
|
419
|
+
client_id?: string | undefined;
|
|
420
|
+
} | undefined;
|
|
397
421
|
email_change_locked_at?: string | null | undefined;
|
|
398
422
|
email_bounced_at?: string | null | undefined;
|
|
399
423
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -483,6 +507,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
483
507
|
email_verified: boolean;
|
|
484
508
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
485
509
|
email_verified_at?: string | null | undefined;
|
|
510
|
+
challenge_passed_at?: string | null | undefined;
|
|
511
|
+
challenge_passed?: {
|
|
512
|
+
method: string;
|
|
513
|
+
difficulty: number;
|
|
514
|
+
client_id?: string | undefined;
|
|
515
|
+
} | undefined;
|
|
486
516
|
email_change_locked_at?: string | null | undefined;
|
|
487
517
|
email_bounced_at?: string | null | undefined;
|
|
488
518
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -572,6 +602,12 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
|
|
|
572
602
|
email_verified: boolean;
|
|
573
603
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
574
604
|
email_verified_at?: string | null | undefined;
|
|
605
|
+
challenge_passed_at?: string | null | undefined;
|
|
606
|
+
challenge_passed?: {
|
|
607
|
+
method: string;
|
|
608
|
+
difficulty: number;
|
|
609
|
+
client_id?: string | undefined;
|
|
610
|
+
} | undefined;
|
|
575
611
|
email_change_locked_at?: string | null | undefined;
|
|
576
612
|
email_bounced_at?: string | null | undefined;
|
|
577
613
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -2709,22 +2709,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2709
2709
|
provider_options?: {
|
|
2710
2710
|
team_id?: string | undefined;
|
|
2711
2711
|
key_id?: string | undefined;
|
|
2712
|
-
} | undefined;
|
|
2713
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2714
|
-
*
|
|
2715
|
-
* Reset a user's passkey offer counter
|
|
2716
|
-
*
|
|
2717
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2718
|
-
*
|
|
2719
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2720
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2721
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2722
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2723
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2724
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2725
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2726
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2727
|
-
*/
|
|
2712
|
+
} | undefined;
|
|
2728
2713
|
claims_mapping?: {
|
|
2729
2714
|
[key: string]: string;
|
|
2730
2715
|
} | undefined;
|
|
@@ -2769,22 +2754,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2769
2754
|
provider_options?: {
|
|
2770
2755
|
team_id?: string | undefined;
|
|
2771
2756
|
key_id?: string | undefined;
|
|
2772
|
-
} | undefined;
|
|
2773
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2774
|
-
*
|
|
2775
|
-
* Reset a user's passkey offer counter
|
|
2776
|
-
*
|
|
2777
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2778
|
-
*
|
|
2779
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2780
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2781
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2782
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2783
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2784
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2785
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2786
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2787
|
-
*/
|
|
2757
|
+
} | undefined;
|
|
2788
2758
|
claims_mapping?: {
|
|
2789
2759
|
[key: string]: string;
|
|
2790
2760
|
} | undefined;
|
|
@@ -2832,22 +2802,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2832
2802
|
provider_options?: {
|
|
2833
2803
|
team_id?: string | undefined;
|
|
2834
2804
|
key_id?: string | undefined;
|
|
2835
|
-
} | undefined;
|
|
2836
|
-
* `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
|
|
2837
|
-
*
|
|
2838
|
-
* Reset a user's passkey offer counter
|
|
2839
|
-
*
|
|
2840
|
-
* The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
|
|
2841
|
-
*
|
|
2842
|
-
* @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
2843
|
-
* @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
|
|
2844
|
-
* @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
|
|
2845
|
-
* @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
|
|
2846
|
-
* @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
|
|
2847
|
-
* @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
|
|
2848
|
-
* @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
|
|
2849
|
-
* @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
|
|
2850
|
-
*/
|
|
2805
|
+
} | undefined;
|
|
2851
2806
|
claims_mapping?: {
|
|
2852
2807
|
[key: string]: string;
|
|
2853
2808
|
} | undefined;
|
|
@@ -6135,6 +6090,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6135
6090
|
client?: unknown;
|
|
6136
6091
|
connection?: unknown;
|
|
6137
6092
|
issuer?: string | undefined;
|
|
6093
|
+
challenge_passed_at?: string | undefined;
|
|
6138
6094
|
last_seen_at: string;
|
|
6139
6095
|
expires_at: string;
|
|
6140
6096
|
revoked_at?: string | undefined;
|
|
@@ -6176,6 +6132,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6176
6132
|
client?: unknown;
|
|
6177
6133
|
connection?: unknown;
|
|
6178
6134
|
issuer?: string | undefined;
|
|
6135
|
+
challenge_passed_at?: string | undefined;
|
|
6179
6136
|
last_seen_at: string;
|
|
6180
6137
|
expires_at: string;
|
|
6181
6138
|
revoked_at?: string | undefined;
|
|
@@ -6199,6 +6156,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6199
6156
|
client?: unknown;
|
|
6200
6157
|
connection?: unknown;
|
|
6201
6158
|
issuer?: string | undefined;
|
|
6159
|
+
challenge_passed_at?: string | undefined;
|
|
6202
6160
|
last_seen_at: string;
|
|
6203
6161
|
expires_at: string;
|
|
6204
6162
|
revoked_at?: string | undefined;
|
|
@@ -6225,6 +6183,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6225
6183
|
client?: unknown;
|
|
6226
6184
|
connection?: unknown;
|
|
6227
6185
|
issuer?: string | undefined;
|
|
6186
|
+
challenge_passed_at?: string | undefined;
|
|
6228
6187
|
last_seen_at: string;
|
|
6229
6188
|
expires_at: string;
|
|
6230
6189
|
revoked_at?: string | undefined;
|
|
@@ -6267,6 +6226,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6267
6226
|
client?: unknown;
|
|
6268
6227
|
connection?: unknown;
|
|
6269
6228
|
issuer?: string | undefined;
|
|
6229
|
+
challenge_passed_at?: string | undefined;
|
|
6270
6230
|
last_seen_at: string;
|
|
6271
6231
|
expires_at: string;
|
|
6272
6232
|
revoked_at?: string | undefined;
|
|
@@ -6989,6 +6949,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
6989
6949
|
email_verified: boolean;
|
|
6990
6950
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
6991
6951
|
email_verified_at?: string | null | undefined;
|
|
6952
|
+
challenge_passed_at?: string | null | undefined;
|
|
6953
|
+
challenge_passed?: {
|
|
6954
|
+
method: string;
|
|
6955
|
+
difficulty: number;
|
|
6956
|
+
client_id?: string | undefined;
|
|
6957
|
+
} | undefined;
|
|
6992
6958
|
email_change_locked_at?: string | null | undefined;
|
|
6993
6959
|
email_bounced_at?: string | null | undefined;
|
|
6994
6960
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7093,6 +7059,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7093
7059
|
email_verified: boolean;
|
|
7094
7060
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7095
7061
|
email_verified_at?: string | null | undefined;
|
|
7062
|
+
challenge_passed_at?: string | null | undefined;
|
|
7063
|
+
challenge_passed?: {
|
|
7064
|
+
method: string;
|
|
7065
|
+
difficulty: number;
|
|
7066
|
+
client_id?: string | undefined;
|
|
7067
|
+
} | undefined;
|
|
7096
7068
|
email_change_locked_at?: string | null | undefined;
|
|
7097
7069
|
email_bounced_at?: string | null | undefined;
|
|
7098
7070
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7290,6 +7262,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7290
7262
|
email_verified: boolean;
|
|
7291
7263
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7292
7264
|
email_verified_at?: string | null | undefined;
|
|
7265
|
+
challenge_passed_at?: string | null | undefined;
|
|
7266
|
+
challenge_passed?: {
|
|
7267
|
+
method: string;
|
|
7268
|
+
difficulty: number;
|
|
7269
|
+
client_id?: string | undefined;
|
|
7270
|
+
} | undefined;
|
|
7293
7271
|
email_change_locked_at?: string | null | undefined;
|
|
7294
7272
|
email_bounced_at?: string | null | undefined;
|
|
7295
7273
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7479,6 +7457,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7479
7457
|
email_verified: boolean;
|
|
7480
7458
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7481
7459
|
email_verified_at?: string | null | undefined;
|
|
7460
|
+
challenge_passed_at?: string | null | undefined;
|
|
7461
|
+
challenge_passed?: {
|
|
7462
|
+
method: string;
|
|
7463
|
+
difficulty: number;
|
|
7464
|
+
client_id?: string | undefined;
|
|
7465
|
+
} | undefined;
|
|
7482
7466
|
email_change_locked_at?: string | null | undefined;
|
|
7483
7467
|
email_bounced_at?: string | null | undefined;
|
|
7484
7468
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7567,6 +7551,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7567
7551
|
email_verified: boolean;
|
|
7568
7552
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7569
7553
|
email_verified_at?: string | null | undefined;
|
|
7554
|
+
challenge_passed_at?: string | null | undefined;
|
|
7555
|
+
challenge_passed?: {
|
|
7556
|
+
method: string;
|
|
7557
|
+
difficulty: number;
|
|
7558
|
+
client_id?: string | undefined;
|
|
7559
|
+
} | undefined;
|
|
7570
7560
|
email_change_locked_at?: string | null | undefined;
|
|
7571
7561
|
email_bounced_at?: string | null | undefined;
|
|
7572
7562
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7658,6 +7648,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7658
7648
|
email_verified: boolean;
|
|
7659
7649
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7660
7650
|
email_verified_at?: string | null | undefined;
|
|
7651
|
+
challenge_passed_at?: string | null | undefined;
|
|
7652
|
+
challenge_passed?: {
|
|
7653
|
+
method: string;
|
|
7654
|
+
difficulty: number;
|
|
7655
|
+
client_id?: string | undefined;
|
|
7656
|
+
} | undefined;
|
|
7661
7657
|
email_change_locked_at?: string | null | undefined;
|
|
7662
7658
|
email_bounced_at?: string | null | undefined;
|
|
7663
7659
|
welcome_sent_at?: string | null | undefined;
|
|
@@ -7953,6 +7949,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
7953
7949
|
email_verified: boolean;
|
|
7954
7950
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
|
|
7955
7951
|
email_verified_at?: string | null | undefined;
|
|
7952
|
+
challenge_passed_at?: string | null | undefined;
|
|
7953
|
+
challenge_passed?: {
|
|
7954
|
+
method: string;
|
|
7955
|
+
difficulty: number;
|
|
7956
|
+
client_id?: string | undefined;
|
|
7957
|
+
} | undefined;
|
|
7956
7958
|
email_change_locked_at?: string | null | undefined;
|
|
7957
7959
|
email_bounced_at?: string | null | undefined;
|
|
7958
7960
|
welcome_sent_at?: string | null | undefined;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -407,6 +407,26 @@ export interface paths {
|
|
|
407
407
|
patch?: never;
|
|
408
408
|
trace?: never;
|
|
409
409
|
};
|
|
410
|
+
"/login/transaction": {
|
|
411
|
+
parameters: {
|
|
412
|
+
query?: never;
|
|
413
|
+
header?: never;
|
|
414
|
+
path?: never;
|
|
415
|
+
cookie?: never;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Start a form transaction
|
|
419
|
+
* @description Mints a short-lived, single-use token for the login or signup form being shown. Send it back as `tx` on `/passwordless/start` or `/dbconnections/signup`. It is bound to this application, network and browser; @faable/auth-js >= 3.6.0 handles it.
|
|
420
|
+
*/
|
|
421
|
+
get: operations["login/transaction"];
|
|
422
|
+
put?: never;
|
|
423
|
+
post?: never;
|
|
424
|
+
delete?: never;
|
|
425
|
+
options?: never;
|
|
426
|
+
head?: never;
|
|
427
|
+
patch?: never;
|
|
428
|
+
trace?: never;
|
|
429
|
+
};
|
|
410
430
|
"/login/identify": {
|
|
411
431
|
parameters: {
|
|
412
432
|
query?: never;
|
|
@@ -6434,6 +6454,17 @@ export interface components {
|
|
|
6434
6454
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
6435
6455
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
6436
6456
|
email_verified_at?: string | null;
|
|
6457
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
6458
|
+
challenge_passed_at?: string | null;
|
|
6459
|
+
/** @description Details of `challenge_passed_at`. */
|
|
6460
|
+
challenge_passed?: {
|
|
6461
|
+
/** @description `pow`: proof of work. */
|
|
6462
|
+
method: string;
|
|
6463
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
6464
|
+
difficulty: number;
|
|
6465
|
+
/** @description Client ID of the form that asked for it. */
|
|
6466
|
+
client_id?: string;
|
|
6467
|
+
};
|
|
6437
6468
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
6438
6469
|
email_change_locked_at?: string | null;
|
|
6439
6470
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -8244,6 +8275,11 @@ export interface components {
|
|
|
8244
8275
|
connection?: components["schemas"]["Connection"] | string | unknown;
|
|
8245
8276
|
/** @description Issuer URL the session was minted on. */
|
|
8246
8277
|
issuer?: string;
|
|
8278
|
+
/**
|
|
8279
|
+
* Format: date-time
|
|
8280
|
+
* @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
|
|
8281
|
+
*/
|
|
8282
|
+
challenge_passed_at?: string;
|
|
8247
8283
|
/**
|
|
8248
8284
|
* Format: date-time
|
|
8249
8285
|
* @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
|
|
@@ -12776,6 +12812,95 @@ export interface operations {
|
|
|
12776
12812
|
};
|
|
12777
12813
|
};
|
|
12778
12814
|
};
|
|
12815
|
+
"login/transaction": {
|
|
12816
|
+
parameters: {
|
|
12817
|
+
query: {
|
|
12818
|
+
client_id: string;
|
|
12819
|
+
};
|
|
12820
|
+
header?: never;
|
|
12821
|
+
path?: never;
|
|
12822
|
+
cookie?: never;
|
|
12823
|
+
};
|
|
12824
|
+
requestBody?: never;
|
|
12825
|
+
responses: {
|
|
12826
|
+
/** @description Default Response */
|
|
12827
|
+
200: {
|
|
12828
|
+
headers: {
|
|
12829
|
+
[name: string]: unknown;
|
|
12830
|
+
};
|
|
12831
|
+
content: {
|
|
12832
|
+
"application/json": {
|
|
12833
|
+
tx: string;
|
|
12834
|
+
expires_at: string;
|
|
12835
|
+
};
|
|
12836
|
+
};
|
|
12837
|
+
};
|
|
12838
|
+
/**
|
|
12839
|
+
* @description `invalid_client` — The `client_id` in the request does not name a client of this account.
|
|
12840
|
+
*
|
|
12841
|
+
* `validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.
|
|
12842
|
+
*/
|
|
12843
|
+
400: {
|
|
12844
|
+
headers: {
|
|
12845
|
+
[name: string]: unknown;
|
|
12846
|
+
};
|
|
12847
|
+
content: {
|
|
12848
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12849
|
+
/** @enum {string} */
|
|
12850
|
+
error_code?: "invalid_client" | "validation_error";
|
|
12851
|
+
};
|
|
12852
|
+
};
|
|
12853
|
+
};
|
|
12854
|
+
/** @description `origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins. */
|
|
12855
|
+
403: {
|
|
12856
|
+
headers: {
|
|
12857
|
+
[name: string]: unknown;
|
|
12858
|
+
};
|
|
12859
|
+
content: {
|
|
12860
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12861
|
+
/** @enum {string} */
|
|
12862
|
+
error_code?: "origin_not_allowed";
|
|
12863
|
+
};
|
|
12864
|
+
};
|
|
12865
|
+
};
|
|
12866
|
+
/** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
|
|
12867
|
+
404: {
|
|
12868
|
+
headers: {
|
|
12869
|
+
[name: string]: unknown;
|
|
12870
|
+
};
|
|
12871
|
+
content: {
|
|
12872
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12873
|
+
/** @enum {string} */
|
|
12874
|
+
error_code?: "account_not_found";
|
|
12875
|
+
};
|
|
12876
|
+
};
|
|
12877
|
+
};
|
|
12878
|
+
/** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
|
|
12879
|
+
429: {
|
|
12880
|
+
headers: {
|
|
12881
|
+
[name: string]: unknown;
|
|
12882
|
+
};
|
|
12883
|
+
content: {
|
|
12884
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12885
|
+
/** @enum {string} */
|
|
12886
|
+
error_code?: "too_many_requests";
|
|
12887
|
+
};
|
|
12888
|
+
};
|
|
12889
|
+
};
|
|
12890
|
+
/** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
|
|
12891
|
+
500: {
|
|
12892
|
+
headers: {
|
|
12893
|
+
[name: string]: unknown;
|
|
12894
|
+
};
|
|
12895
|
+
content: {
|
|
12896
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
12897
|
+
/** @enum {string} */
|
|
12898
|
+
error_code?: "internal_error";
|
|
12899
|
+
};
|
|
12900
|
+
};
|
|
12901
|
+
};
|
|
12902
|
+
};
|
|
12903
|
+
};
|
|
12779
12904
|
"login/identify": {
|
|
12780
12905
|
parameters: {
|
|
12781
12906
|
query?: never;
|
|
@@ -14733,6 +14858,17 @@ export interface operations {
|
|
|
14733
14858
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
14734
14859
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
14735
14860
|
email_verified_at?: string | null;
|
|
14861
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
14862
|
+
challenge_passed_at?: string | null;
|
|
14863
|
+
/** @description Details of `challenge_passed_at`. */
|
|
14864
|
+
challenge_passed?: {
|
|
14865
|
+
/** @description `pow`: proof of work. */
|
|
14866
|
+
method: string;
|
|
14867
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
14868
|
+
difficulty: number;
|
|
14869
|
+
/** @description Client ID of the form that asked for it. */
|
|
14870
|
+
client_id?: string;
|
|
14871
|
+
};
|
|
14736
14872
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
14737
14873
|
email_change_locked_at?: string | null;
|
|
14738
14874
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -14995,6 +15131,17 @@ export interface operations {
|
|
|
14995
15131
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
14996
15132
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
14997
15133
|
email_verified_at?: string | null;
|
|
15134
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
15135
|
+
challenge_passed_at?: string | null;
|
|
15136
|
+
/** @description Details of `challenge_passed_at`. */
|
|
15137
|
+
challenge_passed?: {
|
|
15138
|
+
/** @description `pow`: proof of work. */
|
|
15139
|
+
method: string;
|
|
15140
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
15141
|
+
difficulty: number;
|
|
15142
|
+
/** @description Client ID of the form that asked for it. */
|
|
15143
|
+
client_id?: string;
|
|
15144
|
+
};
|
|
14998
15145
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
14999
15146
|
email_change_locked_at?: string | null;
|
|
15000
15147
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -15299,6 +15446,17 @@ export interface operations {
|
|
|
15299
15446
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
15300
15447
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
15301
15448
|
email_verified_at?: string | null;
|
|
15449
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
15450
|
+
challenge_passed_at?: string | null;
|
|
15451
|
+
/** @description Details of `challenge_passed_at`. */
|
|
15452
|
+
challenge_passed?: {
|
|
15453
|
+
/** @description `pow`: proof of work. */
|
|
15454
|
+
method: string;
|
|
15455
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
15456
|
+
difficulty: number;
|
|
15457
|
+
/** @description Client ID of the form that asked for it. */
|
|
15458
|
+
client_id?: string;
|
|
15459
|
+
};
|
|
15302
15460
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
15303
15461
|
email_change_locked_at?: string | null;
|
|
15304
15462
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -15567,6 +15725,17 @@ export interface operations {
|
|
|
15567
15725
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
15568
15726
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
15569
15727
|
email_verified_at?: string | null;
|
|
15728
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
15729
|
+
challenge_passed_at?: string | null;
|
|
15730
|
+
/** @description Details of `challenge_passed_at`. */
|
|
15731
|
+
challenge_passed?: {
|
|
15732
|
+
/** @description `pow`: proof of work. */
|
|
15733
|
+
method: string;
|
|
15734
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
15735
|
+
difficulty: number;
|
|
15736
|
+
/** @description Client ID of the form that asked for it. */
|
|
15737
|
+
client_id?: string;
|
|
15738
|
+
};
|
|
15570
15739
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
15571
15740
|
email_change_locked_at?: string | null;
|
|
15572
15741
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -32581,6 +32750,11 @@ export interface operations {
|
|
|
32581
32750
|
connection?: components["schemas"]["Connection"] | string | unknown;
|
|
32582
32751
|
/** @description Issuer URL the session was minted on. */
|
|
32583
32752
|
issuer?: string;
|
|
32753
|
+
/**
|
|
32754
|
+
* Format: date-time
|
|
32755
|
+
* @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
|
|
32756
|
+
*/
|
|
32757
|
+
challenge_passed_at?: string;
|
|
32584
32758
|
/**
|
|
32585
32759
|
* Format: date-time
|
|
32586
32760
|
* @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
|
|
@@ -32738,6 +32912,11 @@ export interface operations {
|
|
|
32738
32912
|
connection?: components["schemas"]["Connection"] | string | unknown;
|
|
32739
32913
|
/** @description Issuer URL the session was minted on. */
|
|
32740
32914
|
issuer?: string;
|
|
32915
|
+
/**
|
|
32916
|
+
* Format: date-time
|
|
32917
|
+
* @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
|
|
32918
|
+
*/
|
|
32919
|
+
challenge_passed_at?: string;
|
|
32741
32920
|
/**
|
|
32742
32921
|
* Format: date-time
|
|
32743
32922
|
* @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
|
|
@@ -34234,6 +34413,13 @@ export interface operations {
|
|
|
34234
34413
|
id: string;
|
|
34235
34414
|
nonce: string;
|
|
34236
34415
|
};
|
|
34416
|
+
/**
|
|
34417
|
+
* @description Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.
|
|
34418
|
+
* @enum {string}
|
|
34419
|
+
*/
|
|
34420
|
+
challenge_support?: "pow";
|
|
34421
|
+
/** @description The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself. */
|
|
34422
|
+
tx?: string;
|
|
34237
34423
|
};
|
|
34238
34424
|
};
|
|
34239
34425
|
};
|
|
@@ -34384,6 +34570,17 @@ export interface operations {
|
|
|
34384
34570
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
34385
34571
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
34386
34572
|
email_verified_at?: string | null;
|
|
34573
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
34574
|
+
challenge_passed_at?: string | null;
|
|
34575
|
+
/** @description Details of `challenge_passed_at`. */
|
|
34576
|
+
challenge_passed?: {
|
|
34577
|
+
/** @description `pow`: proof of work. */
|
|
34578
|
+
method: string;
|
|
34579
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
34580
|
+
difficulty: number;
|
|
34581
|
+
/** @description Client ID of the form that asked for it. */
|
|
34582
|
+
client_id?: string;
|
|
34583
|
+
};
|
|
34387
34584
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
34388
34585
|
email_change_locked_at?: string | null;
|
|
34389
34586
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -34720,6 +34917,17 @@ export interface operations {
|
|
|
34720
34917
|
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
|
|
34721
34918
|
/** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
|
|
34722
34919
|
email_verified_at?: string | null;
|
|
34920
|
+
/** @description ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one. */
|
|
34921
|
+
challenge_passed_at?: string | null;
|
|
34922
|
+
/** @description Details of `challenge_passed_at`. */
|
|
34923
|
+
challenge_passed?: {
|
|
34924
|
+
/** @description `pow`: proof of work. */
|
|
34925
|
+
method: string;
|
|
34926
|
+
/** @description Leading zero bits the proof had to reach. */
|
|
34927
|
+
difficulty: number;
|
|
34928
|
+
/** @description Client ID of the form that asked for it. */
|
|
34929
|
+
client_id?: string;
|
|
34930
|
+
};
|
|
34723
34931
|
/** @description ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins. */
|
|
34724
34932
|
email_change_locked_at?: string | null;
|
|
34725
34933
|
/** @description ISO 8601 timestamp of the last Postmark hard bounce / spam complaint for this address. When set, the email is treated as undeliverable and no further emails are sent to the user until the address changes. */
|
|
@@ -38499,6 +38707,13 @@ export interface operations {
|
|
|
38499
38707
|
id: string;
|
|
38500
38708
|
nonce: string;
|
|
38501
38709
|
};
|
|
38710
|
+
/**
|
|
38711
|
+
* @description Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.
|
|
38712
|
+
* @enum {string}
|
|
38713
|
+
*/
|
|
38714
|
+
challenge_support?: "pow";
|
|
38715
|
+
/** @description The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself. */
|
|
38716
|
+
tx?: string;
|
|
38502
38717
|
};
|
|
38503
38718
|
};
|
|
38504
38719
|
};
|
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.34";
|
|
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 = "15cf447";
|
|
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.111.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -3453,6 +3453,33 @@
|
|
|
3453
3453
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
3454
3454
|
"nullable": true
|
|
3455
3455
|
},
|
|
3456
|
+
"challenge_passed_at": {
|
|
3457
|
+
"type": "string",
|
|
3458
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
3459
|
+
"nullable": true
|
|
3460
|
+
},
|
|
3461
|
+
"challenge_passed": {
|
|
3462
|
+
"type": "object",
|
|
3463
|
+
"required": [
|
|
3464
|
+
"method",
|
|
3465
|
+
"difficulty"
|
|
3466
|
+
],
|
|
3467
|
+
"properties": {
|
|
3468
|
+
"method": {
|
|
3469
|
+
"type": "string",
|
|
3470
|
+
"description": "`pow`: proof of work."
|
|
3471
|
+
},
|
|
3472
|
+
"difficulty": {
|
|
3473
|
+
"type": "number",
|
|
3474
|
+
"description": "Leading zero bits the proof had to reach."
|
|
3475
|
+
},
|
|
3476
|
+
"client_id": {
|
|
3477
|
+
"type": "string",
|
|
3478
|
+
"description": "Client ID of the form that asked for it."
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
"description": "Details of `challenge_passed_at`."
|
|
3482
|
+
},
|
|
3456
3483
|
"email_change_locked_at": {
|
|
3457
3484
|
"type": "string",
|
|
3458
3485
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -8467,6 +8494,11 @@
|
|
|
8467
8494
|
"type": "string",
|
|
8468
8495
|
"description": "Issuer URL the session was minted on."
|
|
8469
8496
|
},
|
|
8497
|
+
"challenge_passed_at": {
|
|
8498
|
+
"type": "string",
|
|
8499
|
+
"format": "date-time",
|
|
8500
|
+
"description": "When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to."
|
|
8501
|
+
},
|
|
8470
8502
|
"last_seen_at": {
|
|
8471
8503
|
"type": "string",
|
|
8472
8504
|
"format": "date-time",
|
|
@@ -20618,6 +20650,178 @@
|
|
|
20618
20650
|
}
|
|
20619
20651
|
}
|
|
20620
20652
|
},
|
|
20653
|
+
"/login/transaction": {
|
|
20654
|
+
"get": {
|
|
20655
|
+
"operationId": "login/transaction",
|
|
20656
|
+
"summary": "Start a form transaction",
|
|
20657
|
+
"tags": [
|
|
20658
|
+
"connection"
|
|
20659
|
+
],
|
|
20660
|
+
"description": "Mints a short-lived, single-use token for the login or signup form being shown. Send it back as `tx` on `/passwordless/start` or `/dbconnections/signup`. It is bound to this application, network and browser; @faable/auth-js >= 3.6.0 handles it.",
|
|
20661
|
+
"parameters": [
|
|
20662
|
+
{
|
|
20663
|
+
"schema": {
|
|
20664
|
+
"type": "string",
|
|
20665
|
+
"minLength": 1,
|
|
20666
|
+
"maxLength": 200
|
|
20667
|
+
},
|
|
20668
|
+
"in": "query",
|
|
20669
|
+
"name": "client_id",
|
|
20670
|
+
"required": true
|
|
20671
|
+
}
|
|
20672
|
+
],
|
|
20673
|
+
"responses": {
|
|
20674
|
+
"200": {
|
|
20675
|
+
"description": "Default Response",
|
|
20676
|
+
"content": {
|
|
20677
|
+
"application/json": {
|
|
20678
|
+
"schema": {
|
|
20679
|
+
"type": "object",
|
|
20680
|
+
"required": [
|
|
20681
|
+
"tx",
|
|
20682
|
+
"expires_at"
|
|
20683
|
+
],
|
|
20684
|
+
"properties": {
|
|
20685
|
+
"tx": {
|
|
20686
|
+
"type": "string"
|
|
20687
|
+
},
|
|
20688
|
+
"expires_at": {
|
|
20689
|
+
"type": "string"
|
|
20690
|
+
}
|
|
20691
|
+
}
|
|
20692
|
+
}
|
|
20693
|
+
}
|
|
20694
|
+
}
|
|
20695
|
+
},
|
|
20696
|
+
"400": {
|
|
20697
|
+
"description": "`invalid_client` — The `client_id` in the request does not name a client of this account.\n\n`validation_error` — The body, query or path failed schema validation. `details.issues` lists each failing field.",
|
|
20698
|
+
"content": {
|
|
20699
|
+
"application/json": {
|
|
20700
|
+
"schema": {
|
|
20701
|
+
"allOf": [
|
|
20702
|
+
{
|
|
20703
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20704
|
+
},
|
|
20705
|
+
{
|
|
20706
|
+
"type": "object",
|
|
20707
|
+
"properties": {
|
|
20708
|
+
"error_code": {
|
|
20709
|
+
"type": "string",
|
|
20710
|
+
"enum": [
|
|
20711
|
+
"invalid_client",
|
|
20712
|
+
"validation_error"
|
|
20713
|
+
]
|
|
20714
|
+
}
|
|
20715
|
+
}
|
|
20716
|
+
}
|
|
20717
|
+
]
|
|
20718
|
+
}
|
|
20719
|
+
}
|
|
20720
|
+
}
|
|
20721
|
+
},
|
|
20722
|
+
"403": {
|
|
20723
|
+
"description": "`origin_not_allowed` — The request `Origin` is not in the client's Allowed Web Origins.",
|
|
20724
|
+
"content": {
|
|
20725
|
+
"application/json": {
|
|
20726
|
+
"schema": {
|
|
20727
|
+
"allOf": [
|
|
20728
|
+
{
|
|
20729
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20730
|
+
},
|
|
20731
|
+
{
|
|
20732
|
+
"type": "object",
|
|
20733
|
+
"properties": {
|
|
20734
|
+
"error_code": {
|
|
20735
|
+
"type": "string",
|
|
20736
|
+
"enum": [
|
|
20737
|
+
"origin_not_allowed"
|
|
20738
|
+
]
|
|
20739
|
+
}
|
|
20740
|
+
}
|
|
20741
|
+
}
|
|
20742
|
+
]
|
|
20743
|
+
}
|
|
20744
|
+
}
|
|
20745
|
+
}
|
|
20746
|
+
},
|
|
20747
|
+
"404": {
|
|
20748
|
+
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
20749
|
+
"content": {
|
|
20750
|
+
"application/json": {
|
|
20751
|
+
"schema": {
|
|
20752
|
+
"allOf": [
|
|
20753
|
+
{
|
|
20754
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20755
|
+
},
|
|
20756
|
+
{
|
|
20757
|
+
"type": "object",
|
|
20758
|
+
"properties": {
|
|
20759
|
+
"error_code": {
|
|
20760
|
+
"type": "string",
|
|
20761
|
+
"enum": [
|
|
20762
|
+
"account_not_found"
|
|
20763
|
+
]
|
|
20764
|
+
}
|
|
20765
|
+
}
|
|
20766
|
+
}
|
|
20767
|
+
]
|
|
20768
|
+
}
|
|
20769
|
+
}
|
|
20770
|
+
}
|
|
20771
|
+
},
|
|
20772
|
+
"429": {
|
|
20773
|
+
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
20774
|
+
"content": {
|
|
20775
|
+
"application/json": {
|
|
20776
|
+
"schema": {
|
|
20777
|
+
"allOf": [
|
|
20778
|
+
{
|
|
20779
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20780
|
+
},
|
|
20781
|
+
{
|
|
20782
|
+
"type": "object",
|
|
20783
|
+
"properties": {
|
|
20784
|
+
"error_code": {
|
|
20785
|
+
"type": "string",
|
|
20786
|
+
"enum": [
|
|
20787
|
+
"too_many_requests"
|
|
20788
|
+
]
|
|
20789
|
+
}
|
|
20790
|
+
}
|
|
20791
|
+
}
|
|
20792
|
+
]
|
|
20793
|
+
}
|
|
20794
|
+
}
|
|
20795
|
+
}
|
|
20796
|
+
},
|
|
20797
|
+
"500": {
|
|
20798
|
+
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
20799
|
+
"content": {
|
|
20800
|
+
"application/json": {
|
|
20801
|
+
"schema": {
|
|
20802
|
+
"allOf": [
|
|
20803
|
+
{
|
|
20804
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
20805
|
+
},
|
|
20806
|
+
{
|
|
20807
|
+
"type": "object",
|
|
20808
|
+
"properties": {
|
|
20809
|
+
"error_code": {
|
|
20810
|
+
"type": "string",
|
|
20811
|
+
"enum": [
|
|
20812
|
+
"internal_error"
|
|
20813
|
+
]
|
|
20814
|
+
}
|
|
20815
|
+
}
|
|
20816
|
+
}
|
|
20817
|
+
]
|
|
20818
|
+
}
|
|
20819
|
+
}
|
|
20820
|
+
}
|
|
20821
|
+
}
|
|
20822
|
+
}
|
|
20823
|
+
}
|
|
20824
|
+
},
|
|
20621
20825
|
"/login/identify": {
|
|
20622
20826
|
"post": {
|
|
20623
20827
|
"operationId": "login/identify",
|
|
@@ -27180,6 +27384,33 @@
|
|
|
27180
27384
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
27181
27385
|
"nullable": true
|
|
27182
27386
|
},
|
|
27387
|
+
"challenge_passed_at": {
|
|
27388
|
+
"type": "string",
|
|
27389
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
27390
|
+
"nullable": true
|
|
27391
|
+
},
|
|
27392
|
+
"challenge_passed": {
|
|
27393
|
+
"type": "object",
|
|
27394
|
+
"required": [
|
|
27395
|
+
"method",
|
|
27396
|
+
"difficulty"
|
|
27397
|
+
],
|
|
27398
|
+
"properties": {
|
|
27399
|
+
"method": {
|
|
27400
|
+
"type": "string",
|
|
27401
|
+
"description": "`pow`: proof of work."
|
|
27402
|
+
},
|
|
27403
|
+
"difficulty": {
|
|
27404
|
+
"type": "number",
|
|
27405
|
+
"description": "Leading zero bits the proof had to reach."
|
|
27406
|
+
},
|
|
27407
|
+
"client_id": {
|
|
27408
|
+
"type": "string",
|
|
27409
|
+
"description": "Client ID of the form that asked for it."
|
|
27410
|
+
}
|
|
27411
|
+
},
|
|
27412
|
+
"description": "Details of `challenge_passed_at`."
|
|
27413
|
+
},
|
|
27183
27414
|
"email_change_locked_at": {
|
|
27184
27415
|
"type": "string",
|
|
27185
27416
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -27848,6 +28079,33 @@
|
|
|
27848
28079
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
27849
28080
|
"nullable": true
|
|
27850
28081
|
},
|
|
28082
|
+
"challenge_passed_at": {
|
|
28083
|
+
"type": "string",
|
|
28084
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
28085
|
+
"nullable": true
|
|
28086
|
+
},
|
|
28087
|
+
"challenge_passed": {
|
|
28088
|
+
"type": "object",
|
|
28089
|
+
"required": [
|
|
28090
|
+
"method",
|
|
28091
|
+
"difficulty"
|
|
28092
|
+
],
|
|
28093
|
+
"properties": {
|
|
28094
|
+
"method": {
|
|
28095
|
+
"type": "string",
|
|
28096
|
+
"description": "`pow`: proof of work."
|
|
28097
|
+
},
|
|
28098
|
+
"difficulty": {
|
|
28099
|
+
"type": "number",
|
|
28100
|
+
"description": "Leading zero bits the proof had to reach."
|
|
28101
|
+
},
|
|
28102
|
+
"client_id": {
|
|
28103
|
+
"type": "string",
|
|
28104
|
+
"description": "Client ID of the form that asked for it."
|
|
28105
|
+
}
|
|
28106
|
+
},
|
|
28107
|
+
"description": "Details of `challenge_passed_at`."
|
|
28108
|
+
},
|
|
27851
28109
|
"email_change_locked_at": {
|
|
27852
28110
|
"type": "string",
|
|
27853
28111
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -28595,6 +28853,33 @@
|
|
|
28595
28853
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
28596
28854
|
"nullable": true
|
|
28597
28855
|
},
|
|
28856
|
+
"challenge_passed_at": {
|
|
28857
|
+
"type": "string",
|
|
28858
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
28859
|
+
"nullable": true
|
|
28860
|
+
},
|
|
28861
|
+
"challenge_passed": {
|
|
28862
|
+
"type": "object",
|
|
28863
|
+
"required": [
|
|
28864
|
+
"method",
|
|
28865
|
+
"difficulty"
|
|
28866
|
+
],
|
|
28867
|
+
"properties": {
|
|
28868
|
+
"method": {
|
|
28869
|
+
"type": "string",
|
|
28870
|
+
"description": "`pow`: proof of work."
|
|
28871
|
+
},
|
|
28872
|
+
"difficulty": {
|
|
28873
|
+
"type": "number",
|
|
28874
|
+
"description": "Leading zero bits the proof had to reach."
|
|
28875
|
+
},
|
|
28876
|
+
"client_id": {
|
|
28877
|
+
"type": "string",
|
|
28878
|
+
"description": "Client ID of the form that asked for it."
|
|
28879
|
+
}
|
|
28880
|
+
},
|
|
28881
|
+
"description": "Details of `challenge_passed_at`."
|
|
28882
|
+
},
|
|
28598
28883
|
"email_change_locked_at": {
|
|
28599
28884
|
"type": "string",
|
|
28600
28885
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -29263,6 +29548,33 @@
|
|
|
29263
29548
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
29264
29549
|
"nullable": true
|
|
29265
29550
|
},
|
|
29551
|
+
"challenge_passed_at": {
|
|
29552
|
+
"type": "string",
|
|
29553
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
29554
|
+
"nullable": true
|
|
29555
|
+
},
|
|
29556
|
+
"challenge_passed": {
|
|
29557
|
+
"type": "object",
|
|
29558
|
+
"required": [
|
|
29559
|
+
"method",
|
|
29560
|
+
"difficulty"
|
|
29561
|
+
],
|
|
29562
|
+
"properties": {
|
|
29563
|
+
"method": {
|
|
29564
|
+
"type": "string",
|
|
29565
|
+
"description": "`pow`: proof of work."
|
|
29566
|
+
},
|
|
29567
|
+
"difficulty": {
|
|
29568
|
+
"type": "number",
|
|
29569
|
+
"description": "Leading zero bits the proof had to reach."
|
|
29570
|
+
},
|
|
29571
|
+
"client_id": {
|
|
29572
|
+
"type": "string",
|
|
29573
|
+
"description": "Client ID of the form that asked for it."
|
|
29574
|
+
}
|
|
29575
|
+
},
|
|
29576
|
+
"description": "Details of `challenge_passed_at`."
|
|
29577
|
+
},
|
|
29266
29578
|
"email_change_locked_at": {
|
|
29267
29579
|
"type": "string",
|
|
29268
29580
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -66823,6 +67135,11 @@
|
|
|
66823
67135
|
"type": "string",
|
|
66824
67136
|
"description": "Issuer URL the session was minted on."
|
|
66825
67137
|
},
|
|
67138
|
+
"challenge_passed_at": {
|
|
67139
|
+
"type": "string",
|
|
67140
|
+
"format": "date-time",
|
|
67141
|
+
"description": "When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to."
|
|
67142
|
+
},
|
|
66826
67143
|
"last_seen_at": {
|
|
66827
67144
|
"type": "string",
|
|
66828
67145
|
"format": "date-time",
|
|
@@ -67168,6 +67485,11 @@
|
|
|
67168
67485
|
"type": "string",
|
|
67169
67486
|
"description": "Issuer URL the session was minted on."
|
|
67170
67487
|
},
|
|
67488
|
+
"challenge_passed_at": {
|
|
67489
|
+
"type": "string",
|
|
67490
|
+
"format": "date-time",
|
|
67491
|
+
"description": "When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to."
|
|
67492
|
+
},
|
|
67171
67493
|
"last_seen_at": {
|
|
67172
67494
|
"type": "string",
|
|
67173
67495
|
"format": "date-time",
|
|
@@ -70305,6 +70627,18 @@
|
|
|
70305
70627
|
}
|
|
70306
70628
|
},
|
|
70307
70629
|
"description": "Answer to a `challenge_required`: the challenge `id` and the `nonce` found. @faable/auth-js >= 3.4.0 fills it in."
|
|
70630
|
+
},
|
|
70631
|
+
"challenge_support": {
|
|
70632
|
+
"type": "string",
|
|
70633
|
+
"description": "Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.",
|
|
70634
|
+
"enum": [
|
|
70635
|
+
"pow"
|
|
70636
|
+
]
|
|
70637
|
+
},
|
|
70638
|
+
"tx": {
|
|
70639
|
+
"type": "string",
|
|
70640
|
+
"maxLength": 64,
|
|
70641
|
+
"description": "The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself."
|
|
70308
70642
|
}
|
|
70309
70643
|
}
|
|
70310
70644
|
}
|
|
@@ -73966,6 +74300,33 @@
|
|
|
73966
74300
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
73967
74301
|
"nullable": true
|
|
73968
74302
|
},
|
|
74303
|
+
"challenge_passed_at": {
|
|
74304
|
+
"type": "string",
|
|
74305
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
74306
|
+
"nullable": true
|
|
74307
|
+
},
|
|
74308
|
+
"challenge_passed": {
|
|
74309
|
+
"type": "object",
|
|
74310
|
+
"required": [
|
|
74311
|
+
"method",
|
|
74312
|
+
"difficulty"
|
|
74313
|
+
],
|
|
74314
|
+
"properties": {
|
|
74315
|
+
"method": {
|
|
74316
|
+
"type": "string",
|
|
74317
|
+
"description": "`pow`: proof of work."
|
|
74318
|
+
},
|
|
74319
|
+
"difficulty": {
|
|
74320
|
+
"type": "number",
|
|
74321
|
+
"description": "Leading zero bits the proof had to reach."
|
|
74322
|
+
},
|
|
74323
|
+
"client_id": {
|
|
74324
|
+
"type": "string",
|
|
74325
|
+
"description": "Client ID of the form that asked for it."
|
|
74326
|
+
}
|
|
74327
|
+
},
|
|
74328
|
+
"description": "Details of `challenge_passed_at`."
|
|
74329
|
+
},
|
|
73969
74330
|
"email_change_locked_at": {
|
|
73970
74331
|
"type": "string",
|
|
73971
74332
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -74642,6 +75003,33 @@
|
|
|
74642
75003
|
"description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
|
|
74643
75004
|
"nullable": true
|
|
74644
75005
|
},
|
|
75006
|
+
"challenge_passed_at": {
|
|
75007
|
+
"type": "string",
|
|
75008
|
+
"description": "ISO 8601 timestamp of the last bot-protection challenge (proof of work) this user passed on a signup or passwordless code — set by Faable Auth when the client has signup protection on. Absent when they never had to pass one.",
|
|
75009
|
+
"nullable": true
|
|
75010
|
+
},
|
|
75011
|
+
"challenge_passed": {
|
|
75012
|
+
"type": "object",
|
|
75013
|
+
"required": [
|
|
75014
|
+
"method",
|
|
75015
|
+
"difficulty"
|
|
75016
|
+
],
|
|
75017
|
+
"properties": {
|
|
75018
|
+
"method": {
|
|
75019
|
+
"type": "string",
|
|
75020
|
+
"description": "`pow`: proof of work."
|
|
75021
|
+
},
|
|
75022
|
+
"difficulty": {
|
|
75023
|
+
"type": "number",
|
|
75024
|
+
"description": "Leading zero bits the proof had to reach."
|
|
75025
|
+
},
|
|
75026
|
+
"client_id": {
|
|
75027
|
+
"type": "string",
|
|
75028
|
+
"description": "Client ID of the form that asked for it."
|
|
75029
|
+
}
|
|
75030
|
+
},
|
|
75031
|
+
"description": "Details of `challenge_passed_at`."
|
|
75032
|
+
},
|
|
74645
75033
|
"email_change_locked_at": {
|
|
74646
75034
|
"type": "string",
|
|
74647
75035
|
"description": "ISO 8601 timestamp of the user's last verified email change. When set, OAuth callbacks will not overwrite `email`/`email_verified` from the federated provider — the manually-chosen email wins.",
|
|
@@ -83173,6 +83561,18 @@
|
|
|
83173
83561
|
}
|
|
83174
83562
|
},
|
|
83175
83563
|
"description": "Answer to a `challenge_required`: the challenge `id` and the `nonce` found. @faable/auth-js >= 3.4.0 fills it in."
|
|
83564
|
+
},
|
|
83565
|
+
"challenge_support": {
|
|
83566
|
+
"type": "string",
|
|
83567
|
+
"description": "Declares that this client can solve the bot-protection challenge (`kind: 'pow'`), so a protected application answers `challenge_required` instead of `challenge_unsupported`. @faable/auth-js and the hosted login screens announce it through `x-faable-client`; any other client sends this.",
|
|
83568
|
+
"enum": [
|
|
83569
|
+
"pow"
|
|
83570
|
+
]
|
|
83571
|
+
},
|
|
83572
|
+
"tx": {
|
|
83573
|
+
"type": "string",
|
|
83574
|
+
"maxLength": 64,
|
|
83575
|
+
"description": "The form transaction token from `GET /login/transaction`, minted when the form loaded. Single use. Optional: a missing, reused or mismatched token only raises the bot-protection risk score, never rejects the request by itself."
|
|
83176
83576
|
}
|
|
83177
83577
|
},
|
|
83178
83578
|
"additionalProperties": false
|