@aooth/auth-moost 0.2.5 → 0.2.6

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.
@@ -371,7 +371,7 @@ export declare class ConcurrencyLimitForm {
371
371
  }
372
372
  /**
373
373
  * Atscript interface **MagicLinkRequestForm**
374
- * @see {@link ./forms.as:849:18}
374
+ * @see {@link ./forms.as:850:18}
375
375
  */
376
376
  export declare class MagicLinkRequestForm {
377
377
  identifier: string;
@@ -385,31 +385,30 @@ export declare class MagicLinkRequestForm {
385
385
  static toExampleData?: () => any;
386
386
  }
387
387
  /**
388
- * Atscript interface **RecoveryModeSelectForm**
389
- * @see {@link ./forms.as:864:18}
388
+ * Atscript interface **MagicLinkConfirmForm**
389
+ * @see {@link ./forms.as:868:18}
390
390
  */
391
- export declare class RecoveryModeSelectForm {
392
- mode: string;
391
+ export declare class MagicLinkConfirmForm {
392
+ // notice: ui.paragraph
393
393
  static __is_atscript_annotated_type: true;
394
- static type: TAtscriptTypeObject<keyof RecoveryModeSelectForm, RecoveryModeSelectForm>;
394
+ static type: TAtscriptTypeObject<keyof MagicLinkConfirmForm, MagicLinkConfirmForm>;
395
395
  static metadata: TMetadataMap<AtscriptMetadata>;
396
- static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RecoveryModeSelectForm>;
396
+ static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof MagicLinkConfirmForm>;
397
397
  /** @deprecated JSON Schema support is disabled. Calling this method will throw a runtime error. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add `@emit.jsonSchema` annotation to individual interfaces. */
398
398
  static toJsonSchema: () => any;
399
399
  /** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
400
400
  static toExampleData?: () => any;
401
401
  }
402
402
  /**
403
- * Atscript interface **RecoveryFactorForm**
404
- * @see {@link ./forms.as:889:18}
403
+ * Atscript interface **RecoveryModeSelectForm**
404
+ * @see {@link ./forms.as:882:18}
405
405
  */
406
- export declare class RecoveryFactorForm {
407
- factor: string;
408
- value: string;
406
+ export declare class RecoveryModeSelectForm {
407
+ mode: string;
409
408
  static __is_atscript_annotated_type: true;
410
- static type: TAtscriptTypeObject<keyof RecoveryFactorForm, RecoveryFactorForm>;
409
+ static type: TAtscriptTypeObject<keyof RecoveryModeSelectForm, RecoveryModeSelectForm>;
411
410
  static metadata: TMetadataMap<AtscriptMetadata>;
412
- static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RecoveryFactorForm>;
411
+ static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RecoveryModeSelectForm>;
413
412
  /** @deprecated JSON Schema support is disabled. Calling this method will throw a runtime error. To enable, set `jsonSchema: 'lazy'` or `jsonSchema: 'bundle'` in tsPlugin options, or add `@emit.jsonSchema` annotation to individual interfaces. */
414
413
  static toJsonSchema: () => any;
415
414
  /** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
@@ -417,7 +416,7 @@ export declare class RecoveryFactorForm {
417
416
  }
418
417
  /**
419
418
  * Atscript interface **ChangePasswordForm**
420
- * @see {@link ./forms.as:923:18}
419
+ * @see {@link ./forms.as:910:18}
421
420
  */
422
421
  export declare class ChangePasswordForm {
423
422
  // intro: ui.paragraph
@@ -436,7 +435,7 @@ export declare class ChangePasswordForm {
436
435
  }
437
436
  /**
438
437
  * Atscript interface **ProveControlForm**
439
- * @see {@link ./forms.as:988:18}
438
+ * @see {@link ./forms.as:975:18}
440
439
  */
441
440
  export declare class ProveControlForm {
442
441
  // intro: ui.paragraph
@@ -453,7 +452,7 @@ export declare class ProveControlForm {
453
452
  }
454
453
  /**
455
454
  * Atscript interface **ProveControlOtpForm**
456
- * @see {@link ./forms.as:1023:18}
455
+ * @see {@link ./forms.as:1010:18}
457
456
  */
458
457
  export declare class ProveControlOtpForm {
459
458
  // intro: ui.paragraph
@@ -471,7 +470,7 @@ export declare class ProveControlOtpForm {
471
470
  }
472
471
  /**
473
472
  * Atscript interface **AuthorizeConsentForm**
474
- * @see {@link ./forms.as:1075:18}
473
+ * @see {@link ./forms.as:1062:18}
475
474
  */
476
475
  export declare class AuthorizeConsentForm {
477
476
  // notice: ui.paragraph
@@ -1 +1 @@
1
- export { t as AskEmailForm, n as AskPhoneForm, r as AuthorizeConsentForm, i as ChangePasswordForm, a as ConcurrencyLimitForm, o as EmailIdentifierForm, s as EnrollAddressForm, c as EnrollConfirmForm, l as EnrollPickMethodForm, u as EnrollTotpQrForm, d as InviteChooseUsernameForm, f as InviteForm, p as LoginCredentialsForm, m as MagicLinkRequestForm, h as ManageMfaForm, g as MfaCodeForm, _ as PasswordReauthForm, v as PincodeForm, y as ProveControlForm, b as ProveControlOtpForm, x as RecoveryFactorForm, S as RecoveryModeSelectForm, C as RemoveMfaConfirmForm, w as Select2faForm, T as SetPasswordForm, E as SignupForm, D as StepUpConfirmForm, O as TermsBumpForm, k as WithInlineConsentForm } from "../forms-D-MZTAyd.mjs";
1
+ export { t as AskEmailForm, n as AskPhoneForm, r as AuthorizeConsentForm, i as ChangePasswordForm, a as ConcurrencyLimitForm, o as EmailIdentifierForm, s as EnrollAddressForm, c as EnrollConfirmForm, l as EnrollPickMethodForm, u as EnrollTotpQrForm, d as InviteChooseUsernameForm, f as InviteForm, p as LoginCredentialsForm, m as MagicLinkConfirmForm, h as MagicLinkRequestForm, g as ManageMfaForm, _ as MfaCodeForm, v as PasswordReauthForm, y as PincodeForm, b as ProveControlForm, x as ProveControlOtpForm, S as RecoveryModeSelectForm, C as RemoveMfaConfirmForm, w as Select2faForm, T as SetPasswordForm, E as SignupForm, D as StepUpConfirmForm, O as TermsBumpForm, k as WithInlineConsentForm } from "../forms-BUF9oMsE.mjs";
@@ -207,20 +207,20 @@ var MagicLinkRequestForm = class {
207
207
  throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
208
208
  }
209
209
  };
210
- var RecoveryModeSelectForm = class {
210
+ var MagicLinkConfirmForm = class {
211
211
  static __is_atscript_annotated_type = true;
212
212
  static type = {};
213
213
  static metadata = /* @__PURE__ */ new Map();
214
- static id = "RecoveryModeSelectForm";
214
+ static id = "MagicLinkConfirmForm";
215
215
  static toJsonSchema() {
216
216
  throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
217
217
  }
218
218
  };
219
- var RecoveryFactorForm = class {
219
+ var RecoveryModeSelectForm = class {
220
220
  static __is_atscript_annotated_type = true;
221
221
  static type = {};
222
222
  static metadata = /* @__PURE__ */ new Map();
223
- static id = "RecoveryFactorForm";
223
+ static id = "RecoveryModeSelectForm";
224
224
  static toJsonSchema() {
225
225
  throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
226
226
  }
@@ -435,6 +435,7 @@ defineAnnotatedType("object", StepUpConfirmForm).annotate("meta.label", "Verify
435
435
  defineAnnotatedType("object", TermsBumpForm).annotate("meta.label", "Updated terms and policies").annotate("meta.description", "Please review and accept the updated terms to continue.").annotate("wf.context.pass", "public", true).prop("consents", $f(WithInlineConsentForm, "consents"));
436
436
  defineAnnotatedType("object", ConcurrencyLimitForm).annotate("meta.label", "Session limit reached").annotate("meta.description", "You are already signed in elsewhere. Other sessions will be logged out if you proceed to log in.").annotate("ui.form.submit.text", "Login");
437
437
  defineAnnotatedType("object", MagicLinkRequestForm).annotate("meta.label", "Sign in with a magic link").annotate("meta.description", "Enter your account email or username and we will send you a one-time sign-in link.").prop("identifier", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "text").annotate("meta.label", "Email or username").annotate("ui.form.autocomplete", "username").annotate("meta.required", {}).$type);
438
+ defineAnnotatedType("object", MagicLinkConfirmForm).annotate("meta.label", "Continue with your link").annotate("wf.context.pass", "public", true).annotate("ui.form.submit.text", "Continue").prop("notice", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.order", 1).annotate("ui.form.fn.value", "(_, _d, ctx, _e, t) => ctx.public?.magicLink?.account ? t(\"Continue as {account}.\", { account: ctx.public.magicLink.account }) : t(\"Continue with the link from your email.\")").$type);
438
439
  defineAnnotatedType("object", RecoveryModeSelectForm).annotate("meta.label", "Choose how to verify").annotate("meta.description", "Pick how you would like to recover access.").prop("mode", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "radio").annotate("ui.form.options", {
439
440
  label: "Magic link",
440
441
  value: "magicLink"
@@ -442,7 +443,6 @@ defineAnnotatedType("object", RecoveryModeSelectForm).annotate("meta.label", "Ch
442
443
  label: "One-time code",
443
444
  value: "otp"
444
445
  }, true).annotate("meta.label", "Recovery method").annotate("meta.required", {}).$type);
445
- defineAnnotatedType("object", RecoveryFactorForm).annotate("meta.label", "Verify your identity").annotate("meta.description", "Confirm a detail we have on file before resetting your password.").annotate("wf.context.pass", "public", true).prop("factor", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "radio").annotate("ui.form.fn.options", "(_, _d, ctx) => Array.isArray(ctx.public?.preReset?.availableRecoveryFactors) ? ctx.public.preReset.availableRecoveryFactors : []").annotate("meta.label", "Factor").annotate("meta.required", {}).$type).prop("value", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 20).annotate("ui.form.type", "text").annotate("meta.label", "Value").annotate("meta.required", {}).annotate("expect.minLength", { length: 4 }).annotate("expect.maxLength", { length: 12 }).$type);
446
446
  defineAnnotatedType("object", ChangePasswordForm).annotate("ui.form.fn.title", "(_, ctx, t) => ctx.public?.password?.heading || t(\"Change your password\")").annotate("ui.form.submit.text", "Change password").annotate("wf.context.pass", "public", true).prop("intro", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.order", 5).annotate("ui.form.fn.value", "(_, _d, ctx) => ctx.public?.password?.intro || \"\"").annotate("ui.form.fn.hidden", "(_, _d, ctx) => !ctx.public?.password?.intro").annotate("ui.form.grid.colSpan", { desktop: "12" }).$type).prop("currentPassword", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 8).annotate("ui.form.type", "password").annotate("meta.label", "Current password").annotate("ui.form.autocomplete", "current-password").annotate("meta.sensitive", true).annotate("meta.required", {}).$type).prop("newPassword", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "password").annotate("meta.label", "New password").annotate("ui.form.autocomplete", "new-password").annotate("meta.sensitive", true).annotate("meta.required", {}).annotate("expect.minLength", { length: 8 }).$type).prop("confirmPassword", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 20).annotate("ui.form.type", "password").annotate("meta.label", "Confirm new password").annotate("ui.form.autocomplete", "new-password").annotate("meta.sensitive", true).annotate("meta.required", {}).annotate("expect.minLength", { length: 8 }).annotate("ui.form.validate", "(v, data, ctx, _e, t) => v === data.newPassword || ctx?.public?.messages?.PASSWORDS_DO_NOT_MATCH || t(\"Passwords must match\")", true).$type).prop("passwordRules", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.order", 25).annotate("meta.label", "Password requirements").annotate("ui.form.component", "AsPasswordRules").annotate("ui.form.fn.attr", {
447
447
  name: "policies",
448
448
  fn: "(_, _d, ctx) => ctx.public?.password?.policies"
@@ -477,4 +477,4 @@ defineAnnotatedType("object", AuthorizeConsentForm).annotate("meta.label", "Auth
477
477
  name: "align",
478
478
  value: "center"
479
479
  }, true).annotate("ui.form.pushDown", true).optional().$type);
480
- export { RemoveMfaConfirmForm as C, StepUpConfirmForm as D, SignupForm as E, TermsBumpForm as O, RecoveryModeSelectForm as S, SetPasswordForm as T, PasswordReauthForm as _, ConcurrencyLimitForm as a, ProveControlOtpForm as b, EnrollConfirmForm as c, InviteChooseUsernameForm as d, InviteForm as f, MfaCodeForm as g, ManageMfaForm as h, ChangePasswordForm as i, WithInlineConsentForm as k, EnrollPickMethodForm as l, MagicLinkRequestForm as m, AskPhoneForm as n, EmailIdentifierForm as o, LoginCredentialsForm as p, AuthorizeConsentForm as r, EnrollAddressForm as s, AskEmailForm as t, EnrollTotpQrForm as u, PincodeForm as v, Select2faForm as w, RecoveryFactorForm as x, ProveControlForm as y };
480
+ export { RemoveMfaConfirmForm as C, StepUpConfirmForm as D, SignupForm as E, TermsBumpForm as O, RecoveryModeSelectForm as S, SetPasswordForm as T, MfaCodeForm as _, ConcurrencyLimitForm as a, ProveControlForm as b, EnrollConfirmForm as c, InviteChooseUsernameForm as d, InviteForm as f, ManageMfaForm as g, MagicLinkRequestForm as h, ChangePasswordForm as i, WithInlineConsentForm as k, EnrollPickMethodForm as l, MagicLinkConfirmForm as m, AskPhoneForm as n, EmailIdentifierForm as o, LoginCredentialsForm as p, AuthorizeConsentForm as r, EnrollAddressForm as s, AskEmailForm as t, EnrollTotpQrForm as u, PasswordReauthForm as v, Select2faForm as w, ProveControlOtpForm as x, PincodeForm as y };