@faable/auth-sdk 2.7.1 → 2.7.2

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.
@@ -96,7 +96,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
96
96
  nickname?: string | null | undefined;
97
97
  email?: string | null | undefined;
98
98
  email_verified: boolean;
99
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
99
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
100
100
  email_verified_at?: string | null | undefined;
101
101
  email_change_locked_at?: string | null | undefined;
102
102
  email_bounced_at?: string | null | undefined;
@@ -107,7 +107,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
107
107
  phone?: string | null | undefined;
108
108
  phone_e164?: boolean | undefined;
109
109
  phone_verified: boolean;
110
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
110
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
111
111
  phone_verified_at?: string | null | undefined;
112
112
  country_iso?: string | null | undefined;
113
113
  birth_date?: string | null | undefined;
@@ -155,7 +155,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
155
155
  nickname?: string | null | undefined;
156
156
  email?: string | null | undefined;
157
157
  email_verified: boolean;
158
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
158
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
159
159
  email_verified_at?: string | null | undefined;
160
160
  email_change_locked_at?: string | null | undefined;
161
161
  email_bounced_at?: string | null | undefined;
@@ -166,7 +166,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
166
166
  phone?: string | null | undefined;
167
167
  phone_e164?: boolean | undefined;
168
168
  phone_verified: boolean;
169
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
169
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
170
170
  phone_verified_at?: string | null | undefined;
171
171
  country_iso?: string | null | undefined;
172
172
  birth_date?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
217
217
  nickname?: string | null | undefined;
218
218
  email?: string | null | undefined;
219
219
  email_verified: boolean;
220
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
220
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
221
221
  email_verified_at?: string | null | undefined;
222
222
  email_change_locked_at?: string | null | undefined;
223
223
  email_bounced_at?: string | null | undefined;
@@ -228,7 +228,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
228
228
  phone?: string | null | undefined;
229
229
  phone_e164?: boolean | undefined;
230
230
  phone_verified: boolean;
231
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
231
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
232
232
  phone_verified_at?: string | null | undefined;
233
233
  country_iso?: string | null | undefined;
234
234
  birth_date?: string | null | undefined;
@@ -278,7 +278,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
278
278
  nickname?: string | null | undefined;
279
279
  email?: string | null | undefined;
280
280
  email_verified: boolean;
281
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
281
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
282
282
  email_verified_at?: string | null | undefined;
283
283
  email_change_locked_at?: string | null | undefined;
284
284
  email_bounced_at?: string | null | undefined;
@@ -289,7 +289,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
289
289
  phone?: string | null | undefined;
290
290
  phone_e164?: boolean | undefined;
291
291
  phone_verified: boolean;
292
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
292
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
293
293
  phone_verified_at?: string | null | undefined;
294
294
  country_iso?: string | null | undefined;
295
295
  birth_date?: string | null | undefined;
@@ -338,7 +338,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
338
338
  nickname?: string | null | undefined;
339
339
  email?: string | null | undefined;
340
340
  email_verified: boolean;
341
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
341
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
342
342
  email_verified_at?: string | null | undefined;
343
343
  email_change_locked_at?: string | null | undefined;
344
344
  email_bounced_at?: string | null | undefined;
@@ -349,7 +349,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
349
349
  phone?: string | null | undefined;
350
350
  phone_e164?: boolean | undefined;
351
351
  phone_verified: boolean;
352
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
352
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
353
353
  phone_verified_at?: string | null | undefined;
354
354
  country_iso?: string | null | undefined;
355
355
  birth_date?: string | null | undefined;
@@ -398,7 +398,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
398
398
  nickname?: string | null | undefined;
399
399
  email?: string | null | undefined;
400
400
  email_verified: boolean;
401
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
401
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
402
402
  email_verified_at?: string | null | undefined;
403
403
  email_change_locked_at?: string | null | undefined;
404
404
  email_bounced_at?: string | null | undefined;
@@ -409,7 +409,7 @@ export declare class FaableAuthApi extends GeneratedFaableAuthApi {
409
409
  phone?: string | null | undefined;
410
410
  phone_e164?: boolean | undefined;
411
411
  phone_verified: boolean;
412
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
412
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
413
413
  phone_verified_at?: string | null | undefined;
414
414
  country_iso?: string | null | undefined;
415
415
  birth_date?: string | null | undefined;
@@ -4995,7 +4995,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
4995
4995
  nickname?: string | null | undefined;
4996
4996
  email?: string | null | undefined;
4997
4997
  email_verified: boolean;
4998
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
4998
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
4999
4999
  email_verified_at?: string | null | undefined;
5000
5000
  email_change_locked_at?: string | null | undefined;
5001
5001
  email_bounced_at?: string | null | undefined;
@@ -5006,7 +5006,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5006
5006
  phone?: string | null | undefined;
5007
5007
  phone_e164?: boolean | undefined;
5008
5008
  phone_verified: boolean;
5009
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5009
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5010
5010
  phone_verified_at?: string | null | undefined;
5011
5011
  country_iso?: string | null | undefined;
5012
5012
  birth_date?: string | null | undefined;
@@ -5070,7 +5070,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5070
5070
  nickname?: string | null | undefined;
5071
5071
  email?: string | null | undefined;
5072
5072
  email_verified: boolean;
5073
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5073
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5074
5074
  email_verified_at?: string | null | undefined;
5075
5075
  email_change_locked_at?: string | null | undefined;
5076
5076
  email_bounced_at?: string | null | undefined;
@@ -5081,7 +5081,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5081
5081
  phone?: string | null | undefined;
5082
5082
  phone_e164?: boolean | undefined;
5083
5083
  phone_verified: boolean;
5084
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5084
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5085
5085
  phone_verified_at?: string | null | undefined;
5086
5086
  country_iso?: string | null | undefined;
5087
5087
  birth_date?: string | null | undefined;
@@ -5146,7 +5146,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5146
5146
  nickname?: string | null | undefined;
5147
5147
  email?: string | null | undefined;
5148
5148
  email_verified: boolean;
5149
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5149
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5150
5150
  email_verified_at?: string | null | undefined;
5151
5151
  email_change_locked_at?: string | null | undefined;
5152
5152
  email_bounced_at?: string | null | undefined;
@@ -5157,7 +5157,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5157
5157
  phone?: string | null | undefined;
5158
5158
  phone_e164?: boolean | undefined;
5159
5159
  phone_verified: boolean;
5160
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5160
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5161
5161
  phone_verified_at?: string | null | undefined;
5162
5162
  country_iso?: string | null | undefined;
5163
5163
  birth_date?: string | null | undefined;
@@ -5223,7 +5223,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5223
5223
  nickname?: string | null | undefined;
5224
5224
  email?: string | null | undefined;
5225
5225
  email_verified: boolean;
5226
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5226
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5227
5227
  email_verified_at?: string | null | undefined;
5228
5228
  email_change_locked_at?: string | null | undefined;
5229
5229
  email_bounced_at?: string | null | undefined;
@@ -5234,7 +5234,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5234
5234
  phone?: string | null | undefined;
5235
5235
  phone_e164?: boolean | undefined;
5236
5236
  phone_verified: boolean;
5237
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5237
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5238
5238
  phone_verified_at?: string | null | undefined;
5239
5239
  country_iso?: string | null | undefined;
5240
5240
  birth_date?: string | null | undefined;
@@ -5282,7 +5282,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5282
5282
  nickname?: string | null | undefined;
5283
5283
  email?: string | null | undefined;
5284
5284
  email_verified: boolean;
5285
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5285
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5286
5286
  email_verified_at?: string | null | undefined;
5287
5287
  email_change_locked_at?: string | null | undefined;
5288
5288
  email_bounced_at?: string | null | undefined;
@@ -5293,7 +5293,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5293
5293
  phone?: string | null | undefined;
5294
5294
  phone_e164?: boolean | undefined;
5295
5295
  phone_verified: boolean;
5296
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5296
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5297
5297
  phone_verified_at?: string | null | undefined;
5298
5298
  country_iso?: string | null | undefined;
5299
5299
  birth_date?: string | null | undefined;
@@ -5344,7 +5344,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5344
5344
  nickname?: string | null | undefined;
5345
5345
  email?: string | null | undefined;
5346
5346
  email_verified: boolean;
5347
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5347
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5348
5348
  email_verified_at?: string | null | undefined;
5349
5349
  email_change_locked_at?: string | null | undefined;
5350
5350
  email_bounced_at?: string | null | undefined;
@@ -5355,7 +5355,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5355
5355
  phone?: string | null | undefined;
5356
5356
  phone_e164?: boolean | undefined;
5357
5357
  phone_verified: boolean;
5358
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5358
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5359
5359
  phone_verified_at?: string | null | undefined;
5360
5360
  country_iso?: string | null | undefined;
5361
5361
  birth_date?: string | null | undefined;
@@ -5497,7 +5497,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5497
5497
  nickname?: string | null | undefined;
5498
5498
  email?: string | null | undefined;
5499
5499
  email_verified: boolean;
5500
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5500
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5501
5501
  email_verified_at?: string | null | undefined;
5502
5502
  email_change_locked_at?: string | null | undefined;
5503
5503
  email_bounced_at?: string | null | undefined;
@@ -5508,7 +5508,7 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5508
5508
  phone?: string | null | undefined;
5509
5509
  phone_e164?: boolean | undefined;
5510
5510
  phone_verified: boolean;
5511
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null | undefined;
5511
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null | undefined;
5512
5512
  phone_verified_at?: string | null | undefined;
5513
5513
  country_iso?: string | null | undefined;
5514
5514
  birth_date?: string | null | undefined;
@@ -4675,8 +4675,8 @@ export interface components {
4675
4675
  * @default false
4676
4676
  */
4677
4677
  email_verified: boolean;
4678
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
4679
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
4678
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
4679
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
4680
4680
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
4681
4681
  email_verified_at?: string | null;
4682
4682
  /** @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. */
@@ -4698,7 +4698,7 @@ export interface components {
4698
4698
  /** @description phone is verified */
4699
4699
  phone_verified: boolean;
4700
4700
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
4701
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
4701
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
4702
4702
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
4703
4703
  phone_verified_at?: string | null;
4704
4704
  /** @description country iso code */
@@ -10486,8 +10486,8 @@ export interface operations {
10486
10486
  * @default false
10487
10487
  */
10488
10488
  email_verified: boolean;
10489
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
10490
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
10489
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
10490
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
10491
10491
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
10492
10492
  email_verified_at?: string | null;
10493
10493
  /** @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. */
@@ -10509,7 +10509,7 @@ export interface operations {
10509
10509
  /** @description phone is verified */
10510
10510
  phone_verified: boolean;
10511
10511
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
10512
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
10512
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
10513
10513
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
10514
10514
  phone_verified_at?: string | null;
10515
10515
  /** @description country iso code */
@@ -10712,8 +10712,8 @@ export interface operations {
10712
10712
  * @default false
10713
10713
  */
10714
10714
  email_verified: boolean;
10715
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
10716
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
10715
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
10716
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
10717
10717
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
10718
10718
  email_verified_at?: string | null;
10719
10719
  /** @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. */
@@ -10735,7 +10735,7 @@ export interface operations {
10735
10735
  /** @description phone is verified */
10736
10736
  phone_verified: boolean;
10737
10737
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
10738
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
10738
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
10739
10739
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
10740
10740
  phone_verified_at?: string | null;
10741
10741
  /** @description country iso code */
@@ -10982,8 +10982,8 @@ export interface operations {
10982
10982
  * @default false
10983
10983
  */
10984
10984
  email_verified: boolean;
10985
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
10986
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
10985
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
10986
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
10987
10987
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
10988
10988
  email_verified_at?: string | null;
10989
10989
  /** @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. */
@@ -11005,7 +11005,7 @@ export interface operations {
11005
11005
  /** @description phone is verified */
11006
11006
  phone_verified: boolean;
11007
11007
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
11008
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
11008
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
11009
11009
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
11010
11010
  phone_verified_at?: string | null;
11011
11011
  /** @description country iso code */
@@ -11214,8 +11214,8 @@ export interface operations {
11214
11214
  * @default false
11215
11215
  */
11216
11216
  email_verified: boolean;
11217
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
11218
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
11217
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
11218
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
11219
11219
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
11220
11220
  email_verified_at?: string | null;
11221
11221
  /** @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. */
@@ -11237,7 +11237,7 @@ export interface operations {
11237
11237
  /** @description phone is verified */
11238
11238
  phone_verified: boolean;
11239
11239
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
11240
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
11240
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
11241
11241
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
11242
11242
  phone_verified_at?: string | null;
11243
11243
  /** @description country iso code */
@@ -23676,8 +23676,8 @@ export interface operations {
23676
23676
  * @default false
23677
23677
  */
23678
23678
  email_verified: boolean;
23679
- /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email). */
23680
- email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
23679
+ /** @description How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email). */
23680
+ email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
23681
23681
  /** @description ISO 8601 timestamp of when `email_verified` was last flipped to true. */
23682
23682
  email_verified_at?: string | null;
23683
23683
  /** @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. */
@@ -23699,7 +23699,7 @@ export interface operations {
23699
23699
  /** @description phone is verified */
23700
23700
  phone_verified: boolean;
23701
23701
  /** @description How `phone_verified` was last set. Same enum as `email_verified_method`, plus `sms_otp` — the user typed a code sent by SMS (`POST /user/:id/verify-phone/start`). */
23702
- phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | null;
23702
+ phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | "sms_otp" | "password_reset" | null;
23703
23703
  /** @description ISO 8601 timestamp of when `phone_verified` was last flipped to true. */
23704
23704
  phone_verified_at?: string | null;
23705
23705
  /** @description country iso code */
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.7.1";
12
+ export const version = "2.7.2";
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 = "2271aa1";
18
+ export const commit = "5bdfc23";
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.7.1",
3
+ "version": "2.7.2",
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.23.0",
6
+ "version": "2.23.1",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -2250,11 +2250,17 @@
2250
2250
  "sms_otp"
2251
2251
  ]
2252
2252
  },
2253
+ {
2254
+ "type": "string",
2255
+ "enum": [
2256
+ "password_reset"
2257
+ ]
2258
+ },
2253
2259
  {
2254
2260
  "type": "null"
2255
2261
  }
2256
2262
  ],
2257
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
2263
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
2258
2264
  },
2259
2265
  "email_verified_at": {
2260
2266
  "type": "string",
@@ -2347,6 +2353,12 @@
2347
2353
  "sms_otp"
2348
2354
  ]
2349
2355
  },
2356
+ {
2357
+ "type": "string",
2358
+ "enum": [
2359
+ "password_reset"
2360
+ ]
2361
+ },
2350
2362
  {
2351
2363
  "type": "null"
2352
2364
  }
@@ -18790,11 +18802,17 @@
18790
18802
  "sms_otp"
18791
18803
  ]
18792
18804
  },
18805
+ {
18806
+ "type": "string",
18807
+ "enum": [
18808
+ "password_reset"
18809
+ ]
18810
+ },
18793
18811
  {
18794
18812
  "type": "null"
18795
18813
  }
18796
18814
  ],
18797
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
18815
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
18798
18816
  },
18799
18817
  "email_verified_at": {
18800
18818
  "type": "string",
@@ -18887,6 +18905,12 @@
18887
18905
  "sms_otp"
18888
18906
  ]
18889
18907
  },
18908
+ {
18909
+ "type": "string",
18910
+ "enum": [
18911
+ "password_reset"
18912
+ ]
18913
+ },
18890
18914
  {
18891
18915
  "type": "null"
18892
18916
  }
@@ -19332,11 +19356,17 @@
19332
19356
  "sms_otp"
19333
19357
  ]
19334
19358
  },
19359
+ {
19360
+ "type": "string",
19361
+ "enum": [
19362
+ "password_reset"
19363
+ ]
19364
+ },
19335
19365
  {
19336
19366
  "type": "null"
19337
19367
  }
19338
19368
  ],
19339
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
19369
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
19340
19370
  },
19341
19371
  "email_verified_at": {
19342
19372
  "type": "string",
@@ -19429,6 +19459,12 @@
19429
19459
  "sms_otp"
19430
19460
  ]
19431
19461
  },
19462
+ {
19463
+ "type": "string",
19464
+ "enum": [
19465
+ "password_reset"
19466
+ ]
19467
+ },
19432
19468
  {
19433
19469
  "type": "null"
19434
19470
  }
@@ -19954,11 +19990,17 @@
19954
19990
  "sms_otp"
19955
19991
  ]
19956
19992
  },
19993
+ {
19994
+ "type": "string",
19995
+ "enum": [
19996
+ "password_reset"
19997
+ ]
19998
+ },
19957
19999
  {
19958
20000
  "type": "null"
19959
20001
  }
19960
20002
  ],
19961
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
20003
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
19962
20004
  },
19963
20005
  "email_verified_at": {
19964
20006
  "type": "string",
@@ -20051,6 +20093,12 @@
20051
20093
  "sms_otp"
20052
20094
  ]
20053
20095
  },
20096
+ {
20097
+ "type": "string",
20098
+ "enum": [
20099
+ "password_reset"
20100
+ ]
20101
+ },
20054
20102
  {
20055
20103
  "type": "null"
20056
20104
  }
@@ -20496,11 +20544,17 @@
20496
20544
  "sms_otp"
20497
20545
  ]
20498
20546
  },
20547
+ {
20548
+ "type": "string",
20549
+ "enum": [
20550
+ "password_reset"
20551
+ ]
20552
+ },
20499
20553
  {
20500
20554
  "type": "null"
20501
20555
  }
20502
20556
  ],
20503
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
20557
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
20504
20558
  },
20505
20559
  "email_verified_at": {
20506
20560
  "type": "string",
@@ -20593,6 +20647,12 @@
20593
20647
  "sms_otp"
20594
20648
  ]
20595
20649
  },
20650
+ {
20651
+ "type": "string",
20652
+ "enum": [
20653
+ "password_reset"
20654
+ ]
20655
+ },
20596
20656
  {
20597
20657
  "type": "null"
20598
20658
  }
@@ -52134,11 +52194,17 @@
52134
52194
  "sms_otp"
52135
52195
  ]
52136
52196
  },
52197
+ {
52198
+ "type": "string",
52199
+ "enum": [
52200
+ "password_reset"
52201
+ ]
52202
+ },
52137
52203
  {
52138
52204
  "type": "null"
52139
52205
  }
52140
52206
  ],
52141
- "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `null` — the field was cleared (admin un-verified the email)."
52207
+ "description": "How `email_verified` was last set. `manual` — admin flipped the flag via `POST /user/:id`. `verification_flow` — user clicked the verification link. `passwordless_otp` — user completed passwordless OTP login. `team_invite` — user clicked a team invitation link. `email_change` — user confirmed a self-service email change. `federated` — verified by the external IdP on OAuth callback. `password_reset` — user completed the recovery link that was emailed to them (the `email` channel only). `null` — the field was cleared (admin un-verified the email)."
52142
52208
  },
52143
52209
  "email_verified_at": {
52144
52210
  "type": "string",
@@ -52231,6 +52297,12 @@
52231
52297
  "sms_otp"
52232
52298
  ]
52233
52299
  },
52300
+ {
52301
+ "type": "string",
52302
+ "enum": [
52303
+ "password_reset"
52304
+ ]
52305
+ },
52234
52306
  {
52235
52307
  "type": "null"
52236
52308
  }