@faable/auth-sdk 2.9.31 → 2.9.33

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.
@@ -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;
@@ -6135,6 +6135,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6135
6135
  client?: unknown;
6136
6136
  connection?: unknown;
6137
6137
  issuer?: string | undefined;
6138
+ challenge_passed_at?: string | undefined;
6138
6139
  last_seen_at: string;
6139
6140
  expires_at: string;
6140
6141
  revoked_at?: string | undefined;
@@ -6176,6 +6177,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6176
6177
  client?: unknown;
6177
6178
  connection?: unknown;
6178
6179
  issuer?: string | undefined;
6180
+ challenge_passed_at?: string | undefined;
6179
6181
  last_seen_at: string;
6180
6182
  expires_at: string;
6181
6183
  revoked_at?: string | undefined;
@@ -6199,6 +6201,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6199
6201
  client?: unknown;
6200
6202
  connection?: unknown;
6201
6203
  issuer?: string | undefined;
6204
+ challenge_passed_at?: string | undefined;
6202
6205
  last_seen_at: string;
6203
6206
  expires_at: string;
6204
6207
  revoked_at?: string | undefined;
@@ -6225,6 +6228,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6225
6228
  client?: unknown;
6226
6229
  connection?: unknown;
6227
6230
  issuer?: string | undefined;
6231
+ challenge_passed_at?: string | undefined;
6228
6232
  last_seen_at: string;
6229
6233
  expires_at: string;
6230
6234
  revoked_at?: string | undefined;
@@ -6267,6 +6271,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6267
6271
  client?: unknown;
6268
6272
  connection?: unknown;
6269
6273
  issuer?: string | undefined;
6274
+ challenge_passed_at?: string | undefined;
6270
6275
  last_seen_at: string;
6271
6276
  expires_at: string;
6272
6277
  revoked_at?: string | undefined;
@@ -6989,6 +6994,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
6989
6994
  email_verified: boolean;
6990
6995
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
6991
6996
  email_verified_at?: string | null | undefined;
6997
+ challenge_passed_at?: string | null | undefined;
6998
+ challenge_passed?: {
6999
+ method: string;
7000
+ difficulty: number;
7001
+ client_id?: string | undefined;
7002
+ } | undefined;
6992
7003
  email_change_locked_at?: string | null | undefined;
6993
7004
  email_bounced_at?: string | null | undefined;
6994
7005
  welcome_sent_at?: string | null | undefined;
@@ -7093,6 +7104,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7093
7104
  email_verified: boolean;
7094
7105
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7095
7106
  email_verified_at?: string | null | undefined;
7107
+ challenge_passed_at?: string | null | undefined;
7108
+ challenge_passed?: {
7109
+ method: string;
7110
+ difficulty: number;
7111
+ client_id?: string | undefined;
7112
+ } | undefined;
7096
7113
  email_change_locked_at?: string | null | undefined;
7097
7114
  email_bounced_at?: string | null | undefined;
7098
7115
  welcome_sent_at?: string | null | undefined;
@@ -7290,6 +7307,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7290
7307
  email_verified: boolean;
7291
7308
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7292
7309
  email_verified_at?: string | null | undefined;
7310
+ challenge_passed_at?: string | null | undefined;
7311
+ challenge_passed?: {
7312
+ method: string;
7313
+ difficulty: number;
7314
+ client_id?: string | undefined;
7315
+ } | undefined;
7293
7316
  email_change_locked_at?: string | null | undefined;
7294
7317
  email_bounced_at?: string | null | undefined;
7295
7318
  welcome_sent_at?: string | null | undefined;
@@ -7479,6 +7502,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7479
7502
  email_verified: boolean;
7480
7503
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7481
7504
  email_verified_at?: string | null | undefined;
7505
+ challenge_passed_at?: string | null | undefined;
7506
+ challenge_passed?: {
7507
+ method: string;
7508
+ difficulty: number;
7509
+ client_id?: string | undefined;
7510
+ } | undefined;
7482
7511
  email_change_locked_at?: string | null | undefined;
7483
7512
  email_bounced_at?: string | null | undefined;
7484
7513
  welcome_sent_at?: string | null | undefined;
@@ -7567,6 +7596,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7567
7596
  email_verified: boolean;
7568
7597
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7569
7598
  email_verified_at?: string | null | undefined;
7599
+ challenge_passed_at?: string | null | undefined;
7600
+ challenge_passed?: {
7601
+ method: string;
7602
+ difficulty: number;
7603
+ client_id?: string | undefined;
7604
+ } | undefined;
7570
7605
  email_change_locked_at?: string | null | undefined;
7571
7606
  email_bounced_at?: string | null | undefined;
7572
7607
  welcome_sent_at?: string | null | undefined;
@@ -7658,6 +7693,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7658
7693
  email_verified: boolean;
7659
7694
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7660
7695
  email_verified_at?: string | null | undefined;
7696
+ challenge_passed_at?: string | null | undefined;
7697
+ challenge_passed?: {
7698
+ method: string;
7699
+ difficulty: number;
7700
+ client_id?: string | undefined;
7701
+ } | undefined;
7661
7702
  email_change_locked_at?: string | null | undefined;
7662
7703
  email_bounced_at?: string | null | undefined;
7663
7704
  welcome_sent_at?: string | null | undefined;
@@ -7953,6 +7994,12 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
7953
7994
  email_verified: boolean;
7954
7995
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null | undefined;
7955
7996
  email_verified_at?: string | null | undefined;
7997
+ challenge_passed_at?: string | null | undefined;
7998
+ challenge_passed?: {
7999
+ method: string;
8000
+ difficulty: number;
8001
+ client_id?: string | undefined;
8002
+ } | undefined;
7956
8003
  email_change_locked_at?: string | null | undefined;
7957
8004
  email_bounced_at?: string | null | undefined;
7958
8005
  welcome_sent_at?: string | null | undefined;
@@ -6434,6 +6434,17 @@ export interface components {
6434
6434
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
6435
6435
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
6436
6436
  email_verified_at?: string | null;
6437
+ /** @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. */
6438
+ challenge_passed_at?: string | null;
6439
+ /** @description Details of `challenge_passed_at`. */
6440
+ challenge_passed?: {
6441
+ /** @description `pow`: proof of work. */
6442
+ method: string;
6443
+ /** @description Leading zero bits the proof had to reach. */
6444
+ difficulty: number;
6445
+ /** @description Client ID of the form that asked for it. */
6446
+ client_id?: string;
6447
+ };
6437
6448
  /** @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
6449
  email_change_locked_at?: string | null;
6439
6450
  /** @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 +8255,11 @@ export interface components {
8244
8255
  connection?: components["schemas"]["Connection"] | string | unknown;
8245
8256
  /** @description Issuer URL the session was minted on. */
8246
8257
  issuer?: string;
8258
+ /**
8259
+ * Format: date-time
8260
+ * @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
8261
+ */
8262
+ challenge_passed_at?: string;
8247
8263
  /**
8248
8264
  * Format: date-time
8249
8265
  * @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
@@ -14733,6 +14749,17 @@ export interface operations {
14733
14749
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
14734
14750
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
14735
14751
  email_verified_at?: string | null;
14752
+ /** @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. */
14753
+ challenge_passed_at?: string | null;
14754
+ /** @description Details of `challenge_passed_at`. */
14755
+ challenge_passed?: {
14756
+ /** @description `pow`: proof of work. */
14757
+ method: string;
14758
+ /** @description Leading zero bits the proof had to reach. */
14759
+ difficulty: number;
14760
+ /** @description Client ID of the form that asked for it. */
14761
+ client_id?: string;
14762
+ };
14736
14763
  /** @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
14764
  email_change_locked_at?: string | null;
14738
14765
  /** @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 +15022,17 @@ export interface operations {
14995
15022
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
14996
15023
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
14997
15024
  email_verified_at?: string | null;
15025
+ /** @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. */
15026
+ challenge_passed_at?: string | null;
15027
+ /** @description Details of `challenge_passed_at`. */
15028
+ challenge_passed?: {
15029
+ /** @description `pow`: proof of work. */
15030
+ method: string;
15031
+ /** @description Leading zero bits the proof had to reach. */
15032
+ difficulty: number;
15033
+ /** @description Client ID of the form that asked for it. */
15034
+ client_id?: string;
15035
+ };
14998
15036
  /** @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
15037
  email_change_locked_at?: string | null;
15000
15038
  /** @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 +15337,17 @@ export interface operations {
15299
15337
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
15300
15338
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
15301
15339
  email_verified_at?: string | null;
15340
+ /** @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. */
15341
+ challenge_passed_at?: string | null;
15342
+ /** @description Details of `challenge_passed_at`. */
15343
+ challenge_passed?: {
15344
+ /** @description `pow`: proof of work. */
15345
+ method: string;
15346
+ /** @description Leading zero bits the proof had to reach. */
15347
+ difficulty: number;
15348
+ /** @description Client ID of the form that asked for it. */
15349
+ client_id?: string;
15350
+ };
15302
15351
  /** @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
15352
  email_change_locked_at?: string | null;
15304
15353
  /** @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 +15616,17 @@ export interface operations {
15567
15616
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
15568
15617
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
15569
15618
  email_verified_at?: string | null;
15619
+ /** @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. */
15620
+ challenge_passed_at?: string | null;
15621
+ /** @description Details of `challenge_passed_at`. */
15622
+ challenge_passed?: {
15623
+ /** @description `pow`: proof of work. */
15624
+ method: string;
15625
+ /** @description Leading zero bits the proof had to reach. */
15626
+ difficulty: number;
15627
+ /** @description Client ID of the form that asked for it. */
15628
+ client_id?: string;
15629
+ };
15570
15630
  /** @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
15631
  email_change_locked_at?: string | null;
15572
15632
  /** @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 +32641,11 @@ export interface operations {
32581
32641
  connection?: components["schemas"]["Connection"] | string | unknown;
32582
32642
  /** @description Issuer URL the session was minted on. */
32583
32643
  issuer?: string;
32644
+ /**
32645
+ * Format: date-time
32646
+ * @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
32647
+ */
32648
+ challenge_passed_at?: string;
32584
32649
  /**
32585
32650
  * Format: date-time
32586
32651
  * @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
@@ -32738,6 +32803,11 @@ export interface operations {
32738
32803
  connection?: components["schemas"]["Connection"] | string | unknown;
32739
32804
  /** @description Issuer URL the session was minted on. */
32740
32805
  issuer?: string;
32806
+ /**
32807
+ * Format: date-time
32808
+ * @description When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to.
32809
+ */
32810
+ challenge_passed_at?: string;
32741
32811
  /**
32742
32812
  * Format: date-time
32743
32813
  * @description Last authentication or token refresh through this session. Each refresh slides `expires_at` 30 days from here.
@@ -34384,6 +34454,17 @@ export interface operations {
34384
34454
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
34385
34455
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
34386
34456
  email_verified_at?: string | null;
34457
+ /** @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. */
34458
+ challenge_passed_at?: string | null;
34459
+ /** @description Details of `challenge_passed_at`. */
34460
+ challenge_passed?: {
34461
+ /** @description `pow`: proof of work. */
34462
+ method: string;
34463
+ /** @description Leading zero bits the proof had to reach. */
34464
+ difficulty: number;
34465
+ /** @description Client ID of the form that asked for it. */
34466
+ client_id?: string;
34467
+ };
34387
34468
  /** @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
34469
  email_change_locked_at?: string | null;
34389
34470
  /** @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 +34801,17 @@ export interface operations {
34720
34801
  email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | "import" | null;
34721
34802
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
34722
34803
  email_verified_at?: string | null;
34804
+ /** @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. */
34805
+ challenge_passed_at?: string | null;
34806
+ /** @description Details of `challenge_passed_at`. */
34807
+ challenge_passed?: {
34808
+ /** @description `pow`: proof of work. */
34809
+ method: string;
34810
+ /** @description Leading zero bits the proof had to reach. */
34811
+ difficulty: number;
34812
+ /** @description Client ID of the form that asked for it. */
34813
+ client_id?: string;
34814
+ };
34723
34815
  /** @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
34816
  email_change_locked_at?: string | null;
34725
34817
  /** @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. */
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.31";
12
+ export const version = "2.9.33";
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 = "c54b5db";
18
+ export const commit = "c06f90a";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.9.31",
3
+ "version": "2.9.33",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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.109.0",
6
+ "version": "2.110.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",
@@ -27180,6 +27212,33 @@
27180
27212
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
27181
27213
  "nullable": true
27182
27214
  },
27215
+ "challenge_passed_at": {
27216
+ "type": "string",
27217
+ "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.",
27218
+ "nullable": true
27219
+ },
27220
+ "challenge_passed": {
27221
+ "type": "object",
27222
+ "required": [
27223
+ "method",
27224
+ "difficulty"
27225
+ ],
27226
+ "properties": {
27227
+ "method": {
27228
+ "type": "string",
27229
+ "description": "`pow`: proof of work."
27230
+ },
27231
+ "difficulty": {
27232
+ "type": "number",
27233
+ "description": "Leading zero bits the proof had to reach."
27234
+ },
27235
+ "client_id": {
27236
+ "type": "string",
27237
+ "description": "Client ID of the form that asked for it."
27238
+ }
27239
+ },
27240
+ "description": "Details of `challenge_passed_at`."
27241
+ },
27183
27242
  "email_change_locked_at": {
27184
27243
  "type": "string",
27185
27244
  "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 +27907,33 @@
27848
27907
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
27849
27908
  "nullable": true
27850
27909
  },
27910
+ "challenge_passed_at": {
27911
+ "type": "string",
27912
+ "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.",
27913
+ "nullable": true
27914
+ },
27915
+ "challenge_passed": {
27916
+ "type": "object",
27917
+ "required": [
27918
+ "method",
27919
+ "difficulty"
27920
+ ],
27921
+ "properties": {
27922
+ "method": {
27923
+ "type": "string",
27924
+ "description": "`pow`: proof of work."
27925
+ },
27926
+ "difficulty": {
27927
+ "type": "number",
27928
+ "description": "Leading zero bits the proof had to reach."
27929
+ },
27930
+ "client_id": {
27931
+ "type": "string",
27932
+ "description": "Client ID of the form that asked for it."
27933
+ }
27934
+ },
27935
+ "description": "Details of `challenge_passed_at`."
27936
+ },
27851
27937
  "email_change_locked_at": {
27852
27938
  "type": "string",
27853
27939
  "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 +28681,33 @@
28595
28681
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
28596
28682
  "nullable": true
28597
28683
  },
28684
+ "challenge_passed_at": {
28685
+ "type": "string",
28686
+ "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.",
28687
+ "nullable": true
28688
+ },
28689
+ "challenge_passed": {
28690
+ "type": "object",
28691
+ "required": [
28692
+ "method",
28693
+ "difficulty"
28694
+ ],
28695
+ "properties": {
28696
+ "method": {
28697
+ "type": "string",
28698
+ "description": "`pow`: proof of work."
28699
+ },
28700
+ "difficulty": {
28701
+ "type": "number",
28702
+ "description": "Leading zero bits the proof had to reach."
28703
+ },
28704
+ "client_id": {
28705
+ "type": "string",
28706
+ "description": "Client ID of the form that asked for it."
28707
+ }
28708
+ },
28709
+ "description": "Details of `challenge_passed_at`."
28710
+ },
28598
28711
  "email_change_locked_at": {
28599
28712
  "type": "string",
28600
28713
  "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 +29376,33 @@
29263
29376
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
29264
29377
  "nullable": true
29265
29378
  },
29379
+ "challenge_passed_at": {
29380
+ "type": "string",
29381
+ "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.",
29382
+ "nullable": true
29383
+ },
29384
+ "challenge_passed": {
29385
+ "type": "object",
29386
+ "required": [
29387
+ "method",
29388
+ "difficulty"
29389
+ ],
29390
+ "properties": {
29391
+ "method": {
29392
+ "type": "string",
29393
+ "description": "`pow`: proof of work."
29394
+ },
29395
+ "difficulty": {
29396
+ "type": "number",
29397
+ "description": "Leading zero bits the proof had to reach."
29398
+ },
29399
+ "client_id": {
29400
+ "type": "string",
29401
+ "description": "Client ID of the form that asked for it."
29402
+ }
29403
+ },
29404
+ "description": "Details of `challenge_passed_at`."
29405
+ },
29266
29406
  "email_change_locked_at": {
29267
29407
  "type": "string",
29268
29408
  "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 +66963,11 @@
66823
66963
  "type": "string",
66824
66964
  "description": "Issuer URL the session was minted on."
66825
66965
  },
66966
+ "challenge_passed_at": {
66967
+ "type": "string",
66968
+ "format": "date-time",
66969
+ "description": "When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to."
66970
+ },
66826
66971
  "last_seen_at": {
66827
66972
  "type": "string",
66828
66973
  "format": "date-time",
@@ -67168,6 +67313,11 @@
67168
67313
  "type": "string",
67169
67314
  "description": "Issuer URL the session was minted on."
67170
67315
  },
67316
+ "challenge_passed_at": {
67317
+ "type": "string",
67318
+ "format": "date-time",
67319
+ "description": "When the login that started this session passed the bot-protection challenge (proof of work). Absent when it did not have to."
67320
+ },
67171
67321
  "last_seen_at": {
67172
67322
  "type": "string",
67173
67323
  "format": "date-time",
@@ -73966,6 +74116,33 @@
73966
74116
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
73967
74117
  "nullable": true
73968
74118
  },
74119
+ "challenge_passed_at": {
74120
+ "type": "string",
74121
+ "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.",
74122
+ "nullable": true
74123
+ },
74124
+ "challenge_passed": {
74125
+ "type": "object",
74126
+ "required": [
74127
+ "method",
74128
+ "difficulty"
74129
+ ],
74130
+ "properties": {
74131
+ "method": {
74132
+ "type": "string",
74133
+ "description": "`pow`: proof of work."
74134
+ },
74135
+ "difficulty": {
74136
+ "type": "number",
74137
+ "description": "Leading zero bits the proof had to reach."
74138
+ },
74139
+ "client_id": {
74140
+ "type": "string",
74141
+ "description": "Client ID of the form that asked for it."
74142
+ }
74143
+ },
74144
+ "description": "Details of `challenge_passed_at`."
74145
+ },
73969
74146
  "email_change_locked_at": {
73970
74147
  "type": "string",
73971
74148
  "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 +74819,33 @@
74642
74819
  "description": "ISO 8601 timestamp of when `email_verified` was last flipped to true.",
74643
74820
  "nullable": true
74644
74821
  },
74822
+ "challenge_passed_at": {
74823
+ "type": "string",
74824
+ "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.",
74825
+ "nullable": true
74826
+ },
74827
+ "challenge_passed": {
74828
+ "type": "object",
74829
+ "required": [
74830
+ "method",
74831
+ "difficulty"
74832
+ ],
74833
+ "properties": {
74834
+ "method": {
74835
+ "type": "string",
74836
+ "description": "`pow`: proof of work."
74837
+ },
74838
+ "difficulty": {
74839
+ "type": "number",
74840
+ "description": "Leading zero bits the proof had to reach."
74841
+ },
74842
+ "client_id": {
74843
+ "type": "string",
74844
+ "description": "Client ID of the form that asked for it."
74845
+ }
74846
+ },
74847
+ "description": "Details of `challenge_passed_at`."
74848
+ },
74645
74849
  "email_change_locked_at": {
74646
74850
  "type": "string",
74647
74851
  "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.",