@aooth/auth-moost 0.1.84 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atscript/index.d.mts +42 -27
- package/dist/atscript/index.mjs +2 -2
- package/dist/{forms-B9-r2zT5.mjs → forms-C9Wey0e9.mjs} +14 -4
- package/dist/index.d.mts +358 -24
- package/dist/index.mjs +801 -330
- package/package.json +9 -9
- package/src/atscript/models/forms.as +26 -6
- package/src/atscript/models/forms.as.d.ts +42 -26
|
@@ -36,7 +36,7 @@ declare class LoginCredentialsForm {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Atscript interface **MfaCodeForm**
|
|
39
|
-
* @see {@link ./forms.as:
|
|
39
|
+
* @see {@link ./forms.as:137:18}
|
|
40
40
|
*/
|
|
41
41
|
declare class MfaCodeForm {
|
|
42
42
|
// transportHint: ui.paragraph
|
|
@@ -54,7 +54,7 @@ declare class MfaCodeForm {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Atscript interface **EmailIdentifierForm**
|
|
57
|
-
* @see {@link ./forms.as:
|
|
57
|
+
* @see {@link ./forms.as:174:18}
|
|
58
58
|
*/
|
|
59
59
|
declare class EmailIdentifierForm {
|
|
60
60
|
email: string; /* email */
|
|
@@ -70,7 +70,7 @@ declare class EmailIdentifierForm {
|
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Atscript interface **SignupForm**
|
|
73
|
-
* @see {@link ./forms.as:
|
|
73
|
+
* @see {@link ./forms.as:206:18}
|
|
74
74
|
*/
|
|
75
75
|
declare class SignupForm {
|
|
76
76
|
email: string; /* email */
|
|
@@ -86,7 +86,7 @@ declare class SignupForm {
|
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Atscript interface **SetPasswordForm**
|
|
89
|
-
* @see {@link ./forms.as:
|
|
89
|
+
* @see {@link ./forms.as:264:18}
|
|
90
90
|
*/
|
|
91
91
|
declare class SetPasswordForm extends WithInlineConsentForm {
|
|
92
92
|
// intro: ui.paragraph
|
|
@@ -104,7 +104,7 @@ declare class SetPasswordForm extends WithInlineConsentForm {
|
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Atscript interface **InviteForm**
|
|
107
|
-
* @see {@link ./forms.as:
|
|
107
|
+
* @see {@link ./forms.as:342:18}
|
|
108
108
|
*/
|
|
109
109
|
declare class InviteForm {
|
|
110
110
|
email: string; /* email */
|
|
@@ -118,9 +118,24 @@ declare class InviteForm {
|
|
|
118
118
|
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
119
119
|
static toExampleData?: () => any;
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Atscript interface **InviteChooseUsernameForm**
|
|
123
|
+
* @see {@link ./forms.as:367:18}
|
|
124
|
+
*/
|
|
125
|
+
declare class InviteChooseUsernameForm {
|
|
126
|
+
username: string;
|
|
127
|
+
static __is_atscript_annotated_type: true;
|
|
128
|
+
static type: TAtscriptTypeObject<keyof InviteChooseUsernameForm, InviteChooseUsernameForm>;
|
|
129
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
130
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof InviteChooseUsernameForm>;
|
|
131
|
+
/** @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. */
|
|
132
|
+
static toJsonSchema: () => any;
|
|
133
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
134
|
+
static toExampleData?: () => any;
|
|
135
|
+
}
|
|
121
136
|
/**
|
|
122
137
|
* Atscript interface **Select2faForm**
|
|
123
|
-
* @see {@link ./forms.as:
|
|
138
|
+
* @see {@link ./forms.as:391:18}
|
|
124
139
|
*/
|
|
125
140
|
declare class Select2faForm {
|
|
126
141
|
methodName: string;
|
|
@@ -137,7 +152,7 @@ declare class Select2faForm {
|
|
|
137
152
|
}
|
|
138
153
|
/**
|
|
139
154
|
* Atscript interface **PincodeForm**
|
|
140
|
-
* @see {@link ./forms.as:
|
|
155
|
+
* @see {@link ./forms.as:441:18}
|
|
141
156
|
*/
|
|
142
157
|
declare class PincodeForm {
|
|
143
158
|
// transportHint: ui.paragraph
|
|
@@ -157,7 +172,7 @@ declare class PincodeForm {
|
|
|
157
172
|
}
|
|
158
173
|
/**
|
|
159
174
|
* Atscript interface **AskEmailForm**
|
|
160
|
-
* @see {@link ./forms.as:
|
|
175
|
+
* @see {@link ./forms.as:480:18}
|
|
161
176
|
*/
|
|
162
177
|
declare class AskEmailForm extends WithInlineConsentForm {
|
|
163
178
|
// disclosure: ui.paragraph
|
|
@@ -173,7 +188,7 @@ declare class AskEmailForm extends WithInlineConsentForm {
|
|
|
173
188
|
}
|
|
174
189
|
/**
|
|
175
190
|
* Atscript interface **AskPhoneForm**
|
|
176
|
-
* @see {@link ./forms.as:
|
|
191
|
+
* @see {@link ./forms.as:510:18}
|
|
177
192
|
*/
|
|
178
193
|
declare class AskPhoneForm extends WithInlineConsentForm {
|
|
179
194
|
// disclosure: ui.paragraph
|
|
@@ -189,7 +204,7 @@ declare class AskPhoneForm extends WithInlineConsentForm {
|
|
|
189
204
|
}
|
|
190
205
|
/**
|
|
191
206
|
* Atscript interface **EnrollPickMethodForm**
|
|
192
|
-
* @see {@link ./forms.as:
|
|
207
|
+
* @see {@link ./forms.as:534:18}
|
|
193
208
|
*/
|
|
194
209
|
declare class EnrollPickMethodForm {
|
|
195
210
|
method: string;
|
|
@@ -206,7 +221,7 @@ declare class EnrollPickMethodForm {
|
|
|
206
221
|
}
|
|
207
222
|
/**
|
|
208
223
|
* Atscript interface **EnrollAddressForm**
|
|
209
|
-
* @see {@link ./forms.as:
|
|
224
|
+
* @see {@link ./forms.as:568:18}
|
|
210
225
|
*/
|
|
211
226
|
declare class EnrollAddressForm {
|
|
212
227
|
address: string;
|
|
@@ -224,7 +239,7 @@ declare class EnrollAddressForm {
|
|
|
224
239
|
}
|
|
225
240
|
/**
|
|
226
241
|
* Atscript interface **EnrollConfirmForm**
|
|
227
|
-
* @see {@link ./forms.as:
|
|
242
|
+
* @see {@link ./forms.as:614:18}
|
|
228
243
|
*/
|
|
229
244
|
declare class EnrollConfirmForm {
|
|
230
245
|
// transportHint: ui.paragraph
|
|
@@ -244,7 +259,7 @@ declare class EnrollConfirmForm {
|
|
|
244
259
|
}
|
|
245
260
|
/**
|
|
246
261
|
* Atscript interface **EnrollTotpQrForm**
|
|
247
|
-
* @see {@link ./forms.as:
|
|
262
|
+
* @see {@link ./forms.as:664:18}
|
|
248
263
|
*/
|
|
249
264
|
declare class EnrollTotpQrForm {
|
|
250
265
|
// qrCode: ui.paragraph
|
|
@@ -262,7 +277,7 @@ declare class EnrollTotpQrForm {
|
|
|
262
277
|
}
|
|
263
278
|
/**
|
|
264
279
|
* Atscript interface **ManageMfaForm**
|
|
265
|
-
* @see {@link ./forms.as:
|
|
280
|
+
* @see {@link ./forms.as:707:18}
|
|
266
281
|
*/
|
|
267
282
|
declare class ManageMfaForm {
|
|
268
283
|
// lockedNote: ui.paragraph
|
|
@@ -280,7 +295,7 @@ declare class ManageMfaForm {
|
|
|
280
295
|
}
|
|
281
296
|
/**
|
|
282
297
|
* Atscript interface **RemoveMfaConfirmForm**
|
|
283
|
-
* @see {@link ./forms.as:
|
|
298
|
+
* @see {@link ./forms.as:741:18}
|
|
284
299
|
*/
|
|
285
300
|
declare class RemoveMfaConfirmForm {
|
|
286
301
|
// notice: ui.paragraph
|
|
@@ -296,7 +311,7 @@ declare class RemoveMfaConfirmForm {
|
|
|
296
311
|
}
|
|
297
312
|
/**
|
|
298
313
|
* Atscript interface **PasswordReauthForm**
|
|
299
|
-
* @see {@link ./forms.as:
|
|
314
|
+
* @see {@link ./forms.as:764:18}
|
|
300
315
|
*/
|
|
301
316
|
declare class PasswordReauthForm {
|
|
302
317
|
password: string;
|
|
@@ -312,7 +327,7 @@ declare class PasswordReauthForm {
|
|
|
312
327
|
}
|
|
313
328
|
/**
|
|
314
329
|
* Atscript interface **StepUpConfirmForm**
|
|
315
|
-
* @see {@link ./forms.as:
|
|
330
|
+
* @see {@link ./forms.as:795:18}
|
|
316
331
|
*/
|
|
317
332
|
declare class StepUpConfirmForm {
|
|
318
333
|
// notice: ui.paragraph
|
|
@@ -329,7 +344,7 @@ declare class StepUpConfirmForm {
|
|
|
329
344
|
}
|
|
330
345
|
/**
|
|
331
346
|
* Atscript interface **TermsBumpForm**
|
|
332
|
-
* @see {@link ./forms.as:
|
|
347
|
+
* @see {@link ./forms.as:823:18}
|
|
333
348
|
*/
|
|
334
349
|
declare class TermsBumpForm extends WithInlineConsentForm {
|
|
335
350
|
static __is_atscript_annotated_type: true;
|
|
@@ -343,7 +358,7 @@ declare class TermsBumpForm extends WithInlineConsentForm {
|
|
|
343
358
|
}
|
|
344
359
|
/**
|
|
345
360
|
* Atscript interface **ConcurrencyLimitForm**
|
|
346
|
-
* @see {@link ./forms.as:
|
|
361
|
+
* @see {@link ./forms.as:836:18}
|
|
347
362
|
*/
|
|
348
363
|
declare class ConcurrencyLimitForm {
|
|
349
364
|
static __is_atscript_annotated_type: true;
|
|
@@ -357,7 +372,7 @@ declare class ConcurrencyLimitForm {
|
|
|
357
372
|
}
|
|
358
373
|
/**
|
|
359
374
|
* Atscript interface **MagicLinkRequestForm**
|
|
360
|
-
* @see {@link ./forms.as:
|
|
375
|
+
* @see {@link ./forms.as:846:18}
|
|
361
376
|
*/
|
|
362
377
|
declare class MagicLinkRequestForm {
|
|
363
378
|
identifier: string;
|
|
@@ -372,7 +387,7 @@ declare class MagicLinkRequestForm {
|
|
|
372
387
|
}
|
|
373
388
|
/**
|
|
374
389
|
* Atscript interface **RecoveryModeSelectForm**
|
|
375
|
-
* @see {@link ./forms.as:
|
|
390
|
+
* @see {@link ./forms.as:861:18}
|
|
376
391
|
*/
|
|
377
392
|
declare class RecoveryModeSelectForm {
|
|
378
393
|
mode: string;
|
|
@@ -387,7 +402,7 @@ declare class RecoveryModeSelectForm {
|
|
|
387
402
|
}
|
|
388
403
|
/**
|
|
389
404
|
* Atscript interface **RecoveryFactorForm**
|
|
390
|
-
* @see {@link ./forms.as:
|
|
405
|
+
* @see {@link ./forms.as:884:18}
|
|
391
406
|
*/
|
|
392
407
|
declare class RecoveryFactorForm {
|
|
393
408
|
factor: string;
|
|
@@ -403,7 +418,7 @@ declare class RecoveryFactorForm {
|
|
|
403
418
|
}
|
|
404
419
|
/**
|
|
405
420
|
* Atscript interface **ChangePasswordForm**
|
|
406
|
-
* @see {@link ./forms.as:
|
|
421
|
+
* @see {@link ./forms.as:918:18}
|
|
407
422
|
*/
|
|
408
423
|
declare class ChangePasswordForm {
|
|
409
424
|
// intro: ui.paragraph
|
|
@@ -422,7 +437,7 @@ declare class ChangePasswordForm {
|
|
|
422
437
|
}
|
|
423
438
|
/**
|
|
424
439
|
* Atscript interface **ProveControlForm**
|
|
425
|
-
* @see {@link ./forms.as:
|
|
440
|
+
* @see {@link ./forms.as:983:18}
|
|
426
441
|
*/
|
|
427
442
|
declare class ProveControlForm {
|
|
428
443
|
// intro: ui.paragraph
|
|
@@ -439,7 +454,7 @@ declare class ProveControlForm {
|
|
|
439
454
|
}
|
|
440
455
|
/**
|
|
441
456
|
* Atscript interface **ProveControlOtpForm**
|
|
442
|
-
* @see {@link ./forms.as:
|
|
457
|
+
* @see {@link ./forms.as:1018:18}
|
|
443
458
|
*/
|
|
444
459
|
declare class ProveControlOtpForm {
|
|
445
460
|
// intro: ui.paragraph
|
|
@@ -457,7 +472,7 @@ declare class ProveControlOtpForm {
|
|
|
457
472
|
}
|
|
458
473
|
/**
|
|
459
474
|
* Atscript interface **AuthorizeConsentForm**
|
|
460
|
-
* @see {@link ./forms.as:
|
|
475
|
+
* @see {@link ./forms.as:1070:18}
|
|
461
476
|
*/
|
|
462
477
|
declare class AuthorizeConsentForm {
|
|
463
478
|
// notice: ui.paragraph
|
|
@@ -474,4 +489,4 @@ declare class AuthorizeConsentForm {
|
|
|
474
489
|
}
|
|
475
490
|
// prettier-ignore-end
|
|
476
491
|
//#endregion
|
|
477
|
-
export { AskEmailForm, AskPhoneForm, AuthorizeConsentForm, ChangePasswordForm, ConcurrencyLimitForm, EmailIdentifierForm, EnrollAddressForm, EnrollConfirmForm, EnrollPickMethodForm, EnrollTotpQrForm, InviteForm, LoginCredentialsForm, MagicLinkRequestForm, ManageMfaForm, MfaCodeForm, PasswordReauthForm, PincodeForm, ProveControlForm, ProveControlOtpForm, RecoveryFactorForm, RecoveryModeSelectForm, RemoveMfaConfirmForm, Select2faForm, SetPasswordForm, SignupForm, StepUpConfirmForm, TermsBumpForm, WithInlineConsentForm };
|
|
492
|
+
export { AskEmailForm, AskPhoneForm, AuthorizeConsentForm, ChangePasswordForm, ConcurrencyLimitForm, EmailIdentifierForm, EnrollAddressForm, EnrollConfirmForm, EnrollPickMethodForm, EnrollTotpQrForm, InviteChooseUsernameForm, InviteForm, LoginCredentialsForm, MagicLinkRequestForm, ManageMfaForm, MfaCodeForm, PasswordReauthForm, PincodeForm, ProveControlForm, ProveControlOtpForm, RecoveryFactorForm, RecoveryModeSelectForm, RemoveMfaConfirmForm, Select2faForm, SetPasswordForm, SignupForm, StepUpConfirmForm, TermsBumpForm, WithInlineConsentForm };
|
package/dist/atscript/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { AskEmailForm, AskPhoneForm, AuthorizeConsentForm, ChangePasswordForm, ConcurrencyLimitForm, EmailIdentifierForm, EnrollAddressForm, EnrollConfirmForm, EnrollPickMethodForm, EnrollTotpQrForm, InviteForm, LoginCredentialsForm, MagicLinkRequestForm, ManageMfaForm, MfaCodeForm, PasswordReauthForm, PincodeForm, ProveControlForm, ProveControlOtpForm, RecoveryFactorForm, RecoveryModeSelectForm, RemoveMfaConfirmForm, Select2faForm, SetPasswordForm, SignupForm, StepUpConfirmForm, TermsBumpForm, WithInlineConsentForm };
|
|
1
|
+
import { C as RemoveMfaConfirmForm, D as StepUpConfirmForm, E as SignupForm, O as TermsBumpForm, S as RecoveryModeSelectForm, T as SetPasswordForm, _ as PasswordReauthForm, a as ConcurrencyLimitForm, b as ProveControlOtpForm, c as EnrollConfirmForm, d as InviteChooseUsernameForm, f as InviteForm, g as MfaCodeForm, h as ManageMfaForm, i as ChangePasswordForm, k as WithInlineConsentForm, l as EnrollPickMethodForm, m as MagicLinkRequestForm, n as AskPhoneForm, o as EmailIdentifierForm, p as LoginCredentialsForm, r as AuthorizeConsentForm, s as EnrollAddressForm, t as AskEmailForm, u as EnrollTotpQrForm, v as PincodeForm, w as Select2faForm, x as RecoveryFactorForm, y as ProveControlForm } from "../forms-C9Wey0e9.mjs";
|
|
2
|
+
export { AskEmailForm, AskPhoneForm, AuthorizeConsentForm, ChangePasswordForm, ConcurrencyLimitForm, EmailIdentifierForm, EnrollAddressForm, EnrollConfirmForm, EnrollPickMethodForm, EnrollTotpQrForm, InviteChooseUsernameForm, InviteForm, LoginCredentialsForm, MagicLinkRequestForm, ManageMfaForm, MfaCodeForm, PasswordReauthForm, PincodeForm, ProveControlForm, ProveControlOtpForm, RecoveryFactorForm, RecoveryModeSelectForm, RemoveMfaConfirmForm, Select2faForm, SetPasswordForm, SignupForm, StepUpConfirmForm, TermsBumpForm, WithInlineConsentForm };
|
|
@@ -63,6 +63,15 @@ var InviteForm = class {
|
|
|
63
63
|
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
+
var InviteChooseUsernameForm = class {
|
|
67
|
+
static __is_atscript_annotated_type = true;
|
|
68
|
+
static type = {};
|
|
69
|
+
static metadata = /* @__PURE__ */ new Map();
|
|
70
|
+
static id = "InviteChooseUsernameForm";
|
|
71
|
+
static toJsonSchema() {
|
|
72
|
+
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
73
|
+
}
|
|
74
|
+
};
|
|
66
75
|
var Select2faForm = class {
|
|
67
76
|
static __is_atscript_annotated_type = true;
|
|
68
77
|
static type = {};
|
|
@@ -256,7 +265,7 @@ defineAnnotatedType("object", WithInlineConsentForm).prop("consents", defineAnno
|
|
|
256
265
|
name: "pendingConsents",
|
|
257
266
|
fn: "(_, _d, ctx) => ctx.public?.consents?.pending"
|
|
258
267
|
}, true).annotate("ui.form.fn.hidden", "(_, _d, ctx) => ctx.public?.consents?.decidedAt !== undefined || (ctx.public?.consents?.pending?.length ?? 0) === 0").annotate("ui.form.grid.colSpan", { desktop: "12" }).$type).annotate("wf.context.pass", "public", true);
|
|
259
|
-
defineAnnotatedType("object", LoginCredentialsForm).prop("username", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "text").annotate("meta.label", "Username").annotate("ui.form.autocomplete", "username").annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).$type).prop("password", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 20).annotate("ui.form.type", "password").annotate("meta.label", "Password").annotate("ui.form.autocomplete", "current-password").annotate("meta.sensitive", true).annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).annotate("ui.form.action", {
|
|
268
|
+
defineAnnotatedType("object", LoginCredentialsForm).prop("username", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "text").annotate("meta.label", "Username").annotate("ui.form.autocomplete", "username").annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).annotate("expect.maxLength", { length: 256 }).$type).prop("password", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 20).annotate("ui.form.type", "password").annotate("meta.label", "Password").annotate("ui.form.autocomplete", "current-password").annotate("meta.sensitive", true).annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).annotate("ui.form.action", {
|
|
260
269
|
id: "forgotPassword",
|
|
261
270
|
label: "Forgot password?"
|
|
262
271
|
}).annotate("ui.form.fn.hidden", "(_, _d, ctx) => !ctx.public?.altActions?.forgotPassword").annotate("wf.action.withData", "forgotPassword").$type).prop("signup", defineAnnotatedType().designType("phantom").tags("action", "ui").annotate("ui.form.order", 30).annotate("ui.form.action", {
|
|
@@ -316,7 +325,7 @@ defineAnnotatedType("object", SignupForm).prop("email", defineAnnotatedType().de
|
|
|
316
325
|
defineAnnotatedType("object", SetPasswordForm).prop("consents", defineAnnotatedType("array").of(defineAnnotatedType().designType("string").tags("string").$type).annotate("meta.label", "Pending consents").annotate("ui.form.component", "AsConsentArray").annotate("ui.form.fn.attr", {
|
|
317
326
|
name: "pendingConsents",
|
|
318
327
|
fn: "(_, _d, ctx) => ctx.public?.consents?.pending"
|
|
319
|
-
}, true).annotate("ui.form.fn.hidden", "(_, _d, ctx) => ctx.public?.consents?.decidedAt !== undefined || (ctx.public?.consents?.pending?.length ?? 0) === 0").annotate("ui.form.grid.colSpan", { desktop: "12" }).$type).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").$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 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) => v === data.newPassword || \"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", {
|
|
328
|
+
}, true).annotate("ui.form.fn.hidden", "(_, _d, ctx) => ctx.public?.consents?.decidedAt !== undefined || (ctx.public?.consents?.pending?.length ?? 0) === 0").annotate("ui.form.grid.colSpan", { desktop: "12" }).$type).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").$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 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) => v === data.newPassword || ctx?.public?.messages?.PASSWORDS_DO_NOT_MATCH || \"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", {
|
|
320
329
|
name: "policies",
|
|
321
330
|
fn: "(_, _d, ctx) => ctx.public?.password?.policies"
|
|
322
331
|
}, true).annotate("ui.form.fn.attr", {
|
|
@@ -328,6 +337,7 @@ defineAnnotatedType("object", InviteForm).prop("email", defineAnnotatedType().de
|
|
|
328
337
|
flags: "",
|
|
329
338
|
message: "Invalid email format."
|
|
330
339
|
}, true).$type).prop("roles", defineAnnotatedType("array").of(defineAnnotatedType().designType("string").tags("string").$type).annotate("ui.form.order", 20).annotate("ui.form.type", "select").annotate("ui.form.fn.options", "(_, _data, context) => Array.isArray(context.public?.admin?.availableRoles) ? context.public.admin.availableRoles.map(r => ({ key: r, label: r })) : []").annotate("meta.label", "Roles").$type).annotate("meta.label", "Send an invitation").annotate("meta.description", "Enter the recipient email address and pick the roles to grant on acceptance. They will receive a magic link to set their password.").annotate("wf.context.pass", "public", true);
|
|
340
|
+
defineAnnotatedType("object", InviteChooseUsernameForm).prop("username", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.order", 10).annotate("ui.form.type", "text").annotate("meta.label", "Username").annotate("ui.form.autocomplete", "username").annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).annotate("expect.maxLength", { length: 256 }).$type).annotate("meta.label", "Choose your username").annotate("meta.description", "You will use it to sign in.").annotate("ui.form.submit.text", "Continue");
|
|
331
341
|
defineAnnotatedType("object", Select2faForm).prop("methodName", 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?.mfa?.enrolledMethods) ? ctx.public.mfa.enrolledMethods.map(m => ({ key: m.methodName, label: (m.kind === \"totp\" ? \"TOTP (Authenticator app)\" : m.kind === \"email\" ? \"Email\" : m.kind === \"sms\" ? \"SMS\" : m.kind) + (m.masked && (m.kind === \"email\" || m.kind === \"sms\") ? \" (\" + m.masked + \")\" : \"\") })) : []").annotate("meta.label", "MFA method").annotate("meta.required", {}).$type).prop("saveAsDefault", defineAnnotatedType().designType("boolean").tags("boolean").annotate("ui.form.type", "checkbox").annotate("meta.label", "Save as default").annotate("meta.default", "false").$type).prop("rememberDevice", defineAnnotatedType().designType("boolean").tags("boolean").annotate("ui.form.type", "checkbox").annotate("meta.label", "Remember this device").annotate("meta.default", "false").annotate("ui.form.fn.hidden", "(_, _d, ctx) => !ctx.public?.trust?.optIn || !!ctx.public?.newPasswordRequired").$type).annotate("meta.label", "Choose a verification method").annotate("meta.description", "Pick how you would like to verify your identity.").annotate("wf.context.pass", "public", true);
|
|
332
342
|
defineAnnotatedType("object", PincodeForm).prop("transportHint", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.fn.value", "(_, _d, ctx) => ctx.public?.mfa?.method === \"totp\" ? \"Enter the current 6-digit code from your authenticator app.\" : ctx.public?.pincode?.sentTo ? \"Code sent to \" + ctx.public.pincode.sentTo + \".\" : \"Enter your verification code.\"").optional().$type).prop("code", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Verification code").annotate("ui.form.autocomplete", "one-time-code").annotate("ui.form.fn.attr", {
|
|
333
343
|
name: "maxlength",
|
|
@@ -436,7 +446,7 @@ defineAnnotatedType("object", RecoveryModeSelectForm).prop("mode", defineAnnotat
|
|
|
436
446
|
value: "otp"
|
|
437
447
|
}, true).annotate("meta.label", "Recovery method").annotate("meta.required", {}).$type).annotate("meta.label", "Choose how to verify").annotate("meta.description", "Pick how you would like to recover access.");
|
|
438
448
|
defineAnnotatedType("object", RecoveryFactorForm).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).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);
|
|
439
|
-
defineAnnotatedType("object", ChangePasswordForm).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) => v === data.newPassword || \"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", {
|
|
449
|
+
defineAnnotatedType("object", ChangePasswordForm).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) => v === data.newPassword || ctx?.public?.messages?.PASSWORDS_DO_NOT_MATCH || \"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", {
|
|
440
450
|
name: "policies",
|
|
441
451
|
fn: "(_, _d, ctx) => ctx.public?.password?.policies"
|
|
442
452
|
}, true).annotate("ui.form.fn.attr", {
|
|
@@ -471,4 +481,4 @@ defineAnnotatedType("object", AuthorizeConsentForm).prop("notice", defineAnnotat
|
|
|
471
481
|
value: "center"
|
|
472
482
|
}, true).annotate("ui.form.pushDown", true).optional().$type).annotate("meta.label", "Authorize access").annotate("wf.context.pass", "public", true).annotate("ui.form.submit.text", "Authorize");
|
|
473
483
|
//#endregion
|
|
474
|
-
export {
|
|
484
|
+
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 };
|