@aooth/auth-moost 0.1.3 → 0.1.5
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 +2 -2
- package/dist/atscript/index.mjs +2 -2
- package/dist/forms-sF41Fzzn.mjs +380 -0
- package/dist/index.d.mts +1328 -393
- package/dist/index.mjs +3630 -2363
- package/package.json +19 -15
- package/src/atscript/models/forms.as +347 -33
- package/src/atscript/models/forms.as.d.ts +115 -38
- package/dist/forms-BE62OrN1.mjs +0 -230
|
@@ -9,13 +9,31 @@
|
|
|
9
9
|
|
|
10
10
|
import type { TAtscriptTypeObject, TAtscriptTypeComplex, TAtscriptTypeFinal, TAtscriptTypeArray, TAtscriptAnnotatedType, TMetadataMap, Validator, TValidatorOptions } from "@atscript/typescript/utils"
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Atscript interface **WithInlineConsentForm**
|
|
14
|
+
* @see {@link ./forms.as:34:18}
|
|
15
|
+
*/
|
|
16
|
+
export declare class WithInlineConsentForm {
|
|
17
|
+
consents: string[]
|
|
18
|
+
static __is_atscript_annotated_type: true
|
|
19
|
+
static type: TAtscriptTypeObject<keyof WithInlineConsentForm, WithInlineConsentForm>
|
|
20
|
+
static metadata: TMetadataMap<AtscriptMetadata>
|
|
21
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof WithInlineConsentForm>
|
|
22
|
+
/** @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. */
|
|
23
|
+
static toJsonSchema: () => any
|
|
24
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
25
|
+
static toExampleData?: () => any
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
/**
|
|
13
29
|
* Atscript interface **LoginCredentialsForm**
|
|
14
|
-
* @see {@link ./forms.as:
|
|
30
|
+
* @see {@link ./forms.as:57:18}
|
|
15
31
|
*/
|
|
16
32
|
export declare class LoginCredentialsForm {
|
|
17
33
|
username: string
|
|
18
34
|
password: string
|
|
35
|
+
// signup: ui.action
|
|
36
|
+
// magicLink: ui.action
|
|
19
37
|
static __is_atscript_annotated_type: true
|
|
20
38
|
static type: TAtscriptTypeObject<keyof LoginCredentialsForm, LoginCredentialsForm>
|
|
21
39
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -28,10 +46,13 @@ export declare class LoginCredentialsForm {
|
|
|
28
46
|
|
|
29
47
|
/**
|
|
30
48
|
* Atscript interface **MfaCodeForm**
|
|
31
|
-
* @see {@link ./forms.as:
|
|
49
|
+
* @see {@link ./forms.as:102:18}
|
|
32
50
|
*/
|
|
33
51
|
export declare class MfaCodeForm {
|
|
52
|
+
// transportHint: ui.paragraph
|
|
34
53
|
code: string
|
|
54
|
+
// useDifferentMethod: ui.action
|
|
55
|
+
// useBackupCode: ui.action
|
|
35
56
|
static __is_atscript_annotated_type: true
|
|
36
57
|
static type: TAtscriptTypeObject<keyof MfaCodeForm, MfaCodeForm>
|
|
37
58
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -44,7 +65,7 @@ export declare class MfaCodeForm {
|
|
|
44
65
|
|
|
45
66
|
/**
|
|
46
67
|
* Atscript interface **BackupCodeForm**
|
|
47
|
-
* @see {@link ./forms.as:
|
|
68
|
+
* @see {@link ./forms.as:132:18}
|
|
48
69
|
*/
|
|
49
70
|
export declare class BackupCodeForm {
|
|
50
71
|
code: string
|
|
@@ -60,10 +81,11 @@ export declare class BackupCodeForm {
|
|
|
60
81
|
|
|
61
82
|
/**
|
|
62
83
|
* Atscript interface **EmailIdentifierForm**
|
|
63
|
-
* @see {@link ./forms.as:
|
|
84
|
+
* @see {@link ./forms.as:153:18}
|
|
64
85
|
*/
|
|
65
86
|
export declare class EmailIdentifierForm {
|
|
66
87
|
email: string /* email */
|
|
88
|
+
// backToLogin: ui.action
|
|
67
89
|
static __is_atscript_annotated_type: true
|
|
68
90
|
static type: TAtscriptTypeObject<keyof EmailIdentifierForm, EmailIdentifierForm>
|
|
69
91
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -76,11 +98,15 @@ export declare class EmailIdentifierForm {
|
|
|
76
98
|
|
|
77
99
|
/**
|
|
78
100
|
* Atscript interface **SetPasswordForm**
|
|
79
|
-
* @see {@link ./forms.as:
|
|
101
|
+
* @see {@link ./forms.as:188:18}
|
|
80
102
|
*/
|
|
81
|
-
export declare class SetPasswordForm {
|
|
103
|
+
export declare class SetPasswordForm extends WithInlineConsentForm {
|
|
82
104
|
newPassword: string
|
|
83
105
|
confirmPassword: string
|
|
106
|
+
// passwordRules: ui.paragraph
|
|
107
|
+
// logout: ui.action
|
|
108
|
+
// cancel: ui.action
|
|
109
|
+
// backToLogin: ui.action
|
|
84
110
|
static __is_atscript_annotated_type: true
|
|
85
111
|
static type: TAtscriptTypeObject<keyof SetPasswordForm, SetPasswordForm>
|
|
86
112
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -93,13 +119,14 @@ export declare class SetPasswordForm {
|
|
|
93
119
|
|
|
94
120
|
/**
|
|
95
121
|
* Atscript interface **InviteForm**
|
|
96
|
-
* @see {@link ./forms.as:
|
|
122
|
+
* @see {@link ./forms.as:251:18}
|
|
97
123
|
*/
|
|
98
124
|
export declare class InviteForm {
|
|
99
125
|
email: string /* email */
|
|
100
126
|
firstName?: string
|
|
101
127
|
lastName?: string
|
|
102
128
|
roles?: string[]
|
|
129
|
+
// cancel: ui.action
|
|
103
130
|
static __is_atscript_annotated_type: true
|
|
104
131
|
static type: TAtscriptTypeObject<keyof InviteForm, InviteForm>
|
|
105
132
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -112,10 +139,11 @@ export declare class InviteForm {
|
|
|
112
139
|
|
|
113
140
|
/**
|
|
114
141
|
* Atscript interface **InviteEmailForm**
|
|
115
|
-
* @see {@link ./forms.as:
|
|
142
|
+
* @see {@link ./forms.as:282:18}
|
|
116
143
|
*/
|
|
117
144
|
export declare class InviteEmailForm {
|
|
118
145
|
email: string /* email */
|
|
146
|
+
// cancel: ui.action
|
|
119
147
|
static __is_atscript_annotated_type: true
|
|
120
148
|
static type: TAtscriptTypeObject<keyof InviteEmailForm, InviteEmailForm>
|
|
121
149
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -128,10 +156,11 @@ export declare class InviteEmailForm {
|
|
|
128
156
|
|
|
129
157
|
/**
|
|
130
158
|
* Atscript interface **InviteSendModeForm**
|
|
131
|
-
* @see {@link ./forms.as:
|
|
159
|
+
* @see {@link ./forms.as:298:18}
|
|
132
160
|
*/
|
|
133
161
|
export declare class InviteSendModeForm {
|
|
134
162
|
mode: string
|
|
163
|
+
// cancel: ui.action
|
|
135
164
|
static __is_atscript_annotated_type: true
|
|
136
165
|
static type: TAtscriptTypeObject<keyof InviteSendModeForm, InviteSendModeForm>
|
|
137
166
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -144,11 +173,12 @@ export declare class InviteSendModeForm {
|
|
|
144
173
|
|
|
145
174
|
/**
|
|
146
175
|
* Atscript interface **Select2faForm**
|
|
147
|
-
* @see {@link ./forms.as:
|
|
176
|
+
* @see {@link ./forms.as:322:18}
|
|
148
177
|
*/
|
|
149
178
|
export declare class Select2faForm {
|
|
150
179
|
methodName: string
|
|
151
|
-
saveAsDefault
|
|
180
|
+
saveAsDefault: boolean
|
|
181
|
+
// useBackupCode: ui.action
|
|
152
182
|
static __is_atscript_annotated_type: true
|
|
153
183
|
static type: TAtscriptTypeObject<keyof Select2faForm, Select2faForm>
|
|
154
184
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -161,11 +191,17 @@ export declare class Select2faForm {
|
|
|
161
191
|
|
|
162
192
|
/**
|
|
163
193
|
* Atscript interface **PincodeForm**
|
|
164
|
-
* @see {@link ./forms.as:
|
|
194
|
+
* @see {@link ./forms.as:357:18}
|
|
165
195
|
*/
|
|
166
196
|
export declare class PincodeForm {
|
|
197
|
+
// transportHint: ui.paragraph
|
|
167
198
|
code: string
|
|
168
|
-
rememberDevice
|
|
199
|
+
rememberDevice: boolean
|
|
200
|
+
// resend: ui.action
|
|
201
|
+
// useDifferentMethod: ui.action
|
|
202
|
+
// useBackupCode: ui.action
|
|
203
|
+
// backToLogin: ui.action
|
|
204
|
+
// useDifferentTransport: ui.action
|
|
169
205
|
static __is_atscript_annotated_type: true
|
|
170
206
|
static type: TAtscriptTypeObject<keyof PincodeForm, PincodeForm>
|
|
171
207
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -178,9 +214,9 @@ export declare class PincodeForm {
|
|
|
178
214
|
|
|
179
215
|
/**
|
|
180
216
|
* Atscript interface **AskEmailForm**
|
|
181
|
-
* @see {@link ./forms.as:
|
|
217
|
+
* @see {@link ./forms.as:401:18}
|
|
182
218
|
*/
|
|
183
|
-
export declare class AskEmailForm {
|
|
219
|
+
export declare class AskEmailForm extends WithInlineConsentForm {
|
|
184
220
|
email: string /* email */
|
|
185
221
|
static __is_atscript_annotated_type: true
|
|
186
222
|
static type: TAtscriptTypeObject<keyof AskEmailForm, AskEmailForm>
|
|
@@ -194,9 +230,9 @@ export declare class AskEmailForm {
|
|
|
194
230
|
|
|
195
231
|
/**
|
|
196
232
|
* Atscript interface **AskPhoneForm**
|
|
197
|
-
* @see {@link ./forms.as:
|
|
233
|
+
* @see {@link ./forms.as:417:18}
|
|
198
234
|
*/
|
|
199
|
-
export declare class AskPhoneForm {
|
|
235
|
+
export declare class AskPhoneForm extends WithInlineConsentForm {
|
|
200
236
|
phone: string
|
|
201
237
|
static __is_atscript_annotated_type: true
|
|
202
238
|
static type: TAtscriptTypeObject<keyof AskPhoneForm, AskPhoneForm>
|
|
@@ -209,16 +245,54 @@ export declare class AskPhoneForm {
|
|
|
209
245
|
}
|
|
210
246
|
|
|
211
247
|
/**
|
|
212
|
-
* Atscript interface **
|
|
213
|
-
* @see {@link ./forms.as:
|
|
248
|
+
* Atscript interface **EnrollPickMethodForm**
|
|
249
|
+
* @see {@link ./forms.as:433:18}
|
|
214
250
|
*/
|
|
215
|
-
export declare class
|
|
216
|
-
|
|
217
|
-
|
|
251
|
+
export declare class EnrollPickMethodForm {
|
|
252
|
+
method: string
|
|
253
|
+
// skip: ui.action
|
|
254
|
+
static __is_atscript_annotated_type: true
|
|
255
|
+
static type: TAtscriptTypeObject<keyof EnrollPickMethodForm, EnrollPickMethodForm>
|
|
256
|
+
static metadata: TMetadataMap<AtscriptMetadata>
|
|
257
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollPickMethodForm>
|
|
258
|
+
/** @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. */
|
|
259
|
+
static toJsonSchema: () => any
|
|
260
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
261
|
+
static toExampleData?: () => any
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Atscript interface **EnrollAddressForm**
|
|
266
|
+
* @see {@link ./forms.as:456:18}
|
|
267
|
+
*/
|
|
268
|
+
export declare class EnrollAddressForm {
|
|
269
|
+
address: string
|
|
270
|
+
// skip: ui.action
|
|
271
|
+
// useDifferentMethod: ui.action
|
|
272
|
+
static __is_atscript_annotated_type: true
|
|
273
|
+
static type: TAtscriptTypeObject<keyof EnrollAddressForm, EnrollAddressForm>
|
|
274
|
+
static metadata: TMetadataMap<AtscriptMetadata>
|
|
275
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollAddressForm>
|
|
276
|
+
/** @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. */
|
|
277
|
+
static toJsonSchema: () => any
|
|
278
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
279
|
+
static toExampleData?: () => any
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Atscript interface **EnrollConfirmForm**
|
|
284
|
+
* @see {@link ./forms.as:484:18}
|
|
285
|
+
*/
|
|
286
|
+
export declare class EnrollConfirmForm {
|
|
287
|
+
// transportHint: ui.paragraph
|
|
288
|
+
code: string
|
|
289
|
+
// resend: ui.action
|
|
290
|
+
// useDifferentMethod: ui.action
|
|
291
|
+
// skip: ui.action
|
|
218
292
|
static __is_atscript_annotated_type: true
|
|
219
|
-
static type: TAtscriptTypeObject<keyof
|
|
293
|
+
static type: TAtscriptTypeObject<keyof EnrollConfirmForm, EnrollConfirmForm>
|
|
220
294
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
221
|
-
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof
|
|
295
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollConfirmForm>
|
|
222
296
|
/** @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. */
|
|
223
297
|
static toJsonSchema: () => any
|
|
224
298
|
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
@@ -227,9 +301,9 @@ export declare class TermsAcceptForm {
|
|
|
227
301
|
|
|
228
302
|
/**
|
|
229
303
|
* Atscript interface **ProfileCompleteForm**
|
|
230
|
-
* @see {@link ./forms.as:
|
|
304
|
+
* @see {@link ./forms.as:516:18}
|
|
231
305
|
*/
|
|
232
|
-
export declare class ProfileCompleteForm {
|
|
306
|
+
export declare class ProfileCompleteForm extends WithInlineConsentForm {
|
|
233
307
|
firstName?: string
|
|
234
308
|
lastName?: string
|
|
235
309
|
static __is_atscript_annotated_type: true
|
|
@@ -243,15 +317,14 @@ export declare class ProfileCompleteForm {
|
|
|
243
317
|
}
|
|
244
318
|
|
|
245
319
|
/**
|
|
246
|
-
* Atscript interface **
|
|
247
|
-
* @see {@link ./forms.as:
|
|
320
|
+
* Atscript interface **TermsBumpForm**
|
|
321
|
+
* @see {@link ./forms.as:539:18}
|
|
248
322
|
*/
|
|
249
|
-
export declare class
|
|
250
|
-
optIn?: boolean
|
|
323
|
+
export declare class TermsBumpForm extends WithInlineConsentForm {
|
|
251
324
|
static __is_atscript_annotated_type: true
|
|
252
|
-
static type: TAtscriptTypeObject<keyof
|
|
325
|
+
static type: TAtscriptTypeObject<keyof TermsBumpForm, TermsBumpForm>
|
|
253
326
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
254
|
-
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof
|
|
327
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof TermsBumpForm>
|
|
255
328
|
/** @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. */
|
|
256
329
|
static toJsonSchema: () => any
|
|
257
330
|
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
@@ -260,7 +333,7 @@ export declare class ConsentMarketingForm {
|
|
|
260
333
|
|
|
261
334
|
/**
|
|
262
335
|
* Atscript interface **TenantSelectForm**
|
|
263
|
-
* @see {@link ./forms.as:
|
|
336
|
+
* @see {@link ./forms.as:549:18}
|
|
264
337
|
*/
|
|
265
338
|
export declare class TenantSelectForm {
|
|
266
339
|
tenantId: string
|
|
@@ -276,7 +349,7 @@ export declare class TenantSelectForm {
|
|
|
276
349
|
|
|
277
350
|
/**
|
|
278
351
|
* Atscript interface **PersonaSelectForm**
|
|
279
|
-
* @see {@link ./forms.as:
|
|
352
|
+
* @see {@link ./forms.as:564:18}
|
|
280
353
|
*/
|
|
281
354
|
export declare class PersonaSelectForm {
|
|
282
355
|
personaId: string
|
|
@@ -292,10 +365,12 @@ export declare class PersonaSelectForm {
|
|
|
292
365
|
|
|
293
366
|
/**
|
|
294
367
|
* Atscript interface **ConcurrencyLimitForm**
|
|
295
|
-
* @see {@link ./forms.as:
|
|
368
|
+
* @see {@link ./forms.as:576:18}
|
|
296
369
|
*/
|
|
297
370
|
export declare class ConcurrencyLimitForm {
|
|
298
371
|
action: string
|
|
372
|
+
// cancel: ui.action
|
|
373
|
+
// logoutOthers: ui.action
|
|
299
374
|
static __is_atscript_annotated_type: true
|
|
300
375
|
static type: TAtscriptTypeObject<keyof ConcurrencyLimitForm, ConcurrencyLimitForm>
|
|
301
376
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -308,7 +383,7 @@ export declare class ConcurrencyLimitForm {
|
|
|
308
383
|
|
|
309
384
|
/**
|
|
310
385
|
* Atscript interface **MagicLinkRequestForm**
|
|
311
|
-
* @see {@link ./forms.as:
|
|
386
|
+
* @see {@link ./forms.as:595:18}
|
|
312
387
|
*/
|
|
313
388
|
export declare class MagicLinkRequestForm {
|
|
314
389
|
identifier: string
|
|
@@ -324,10 +399,11 @@ export declare class MagicLinkRequestForm {
|
|
|
324
399
|
|
|
325
400
|
/**
|
|
326
401
|
* Atscript interface **RecoveryModeSelectForm**
|
|
327
|
-
* @see {@link ./forms.as:
|
|
402
|
+
* @see {@link ./forms.as:607:18}
|
|
328
403
|
*/
|
|
329
404
|
export declare class RecoveryModeSelectForm {
|
|
330
405
|
mode: string
|
|
406
|
+
// backToLogin: ui.action
|
|
331
407
|
static __is_atscript_annotated_type: true
|
|
332
408
|
static type: TAtscriptTypeObject<keyof RecoveryModeSelectForm, RecoveryModeSelectForm>
|
|
333
409
|
static metadata: TMetadataMap<AtscriptMetadata>
|
|
@@ -340,11 +416,12 @@ export declare class RecoveryModeSelectForm {
|
|
|
340
416
|
|
|
341
417
|
/**
|
|
342
418
|
* Atscript interface **RecoveryFactorForm**
|
|
343
|
-
* @see {@link ./forms.as:
|
|
419
|
+
* @see {@link ./forms.as:629:18}
|
|
344
420
|
*/
|
|
345
421
|
export declare class RecoveryFactorForm {
|
|
346
422
|
factor: string
|
|
347
423
|
value: string
|
|
424
|
+
// backToLogin: ui.action
|
|
348
425
|
static __is_atscript_annotated_type: true
|
|
349
426
|
static type: TAtscriptTypeObject<keyof RecoveryFactorForm, RecoveryFactorForm>
|
|
350
427
|
static metadata: TMetadataMap<AtscriptMetadata>
|
package/dist/forms-BE62OrN1.mjs
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { defineAnnotatedType, throwFeatureDisabled } from "@atscript/typescript/utils";
|
|
2
|
-
//#region src/atscript/models/forms.as
|
|
3
|
-
var LoginCredentialsForm = class {
|
|
4
|
-
static __is_atscript_annotated_type = true;
|
|
5
|
-
static type = {};
|
|
6
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
7
|
-
static id = "LoginCredentialsForm";
|
|
8
|
-
static toJsonSchema() {
|
|
9
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
var MfaCodeForm = class {
|
|
13
|
-
static __is_atscript_annotated_type = true;
|
|
14
|
-
static type = {};
|
|
15
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
16
|
-
static id = "MfaCodeForm";
|
|
17
|
-
static toJsonSchema() {
|
|
18
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var BackupCodeForm = class {
|
|
22
|
-
static __is_atscript_annotated_type = true;
|
|
23
|
-
static type = {};
|
|
24
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
25
|
-
static id = "BackupCodeForm";
|
|
26
|
-
static toJsonSchema() {
|
|
27
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var EmailIdentifierForm = class {
|
|
31
|
-
static __is_atscript_annotated_type = true;
|
|
32
|
-
static type = {};
|
|
33
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
34
|
-
static id = "EmailIdentifierForm";
|
|
35
|
-
static toJsonSchema() {
|
|
36
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var SetPasswordForm = class {
|
|
40
|
-
static __is_atscript_annotated_type = true;
|
|
41
|
-
static type = {};
|
|
42
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
43
|
-
static id = "SetPasswordForm";
|
|
44
|
-
static toJsonSchema() {
|
|
45
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var InviteForm = class {
|
|
49
|
-
static __is_atscript_annotated_type = true;
|
|
50
|
-
static type = {};
|
|
51
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
52
|
-
static id = "InviteForm";
|
|
53
|
-
static toJsonSchema() {
|
|
54
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var InviteEmailForm = class {
|
|
58
|
-
static __is_atscript_annotated_type = true;
|
|
59
|
-
static type = {};
|
|
60
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
61
|
-
static id = "InviteEmailForm";
|
|
62
|
-
static toJsonSchema() {
|
|
63
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var InviteSendModeForm = class {
|
|
67
|
-
static __is_atscript_annotated_type = true;
|
|
68
|
-
static type = {};
|
|
69
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
70
|
-
static id = "InviteSendModeForm";
|
|
71
|
-
static toJsonSchema() {
|
|
72
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var Select2faForm = class {
|
|
76
|
-
static __is_atscript_annotated_type = true;
|
|
77
|
-
static type = {};
|
|
78
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
79
|
-
static id = "Select2faForm";
|
|
80
|
-
static toJsonSchema() {
|
|
81
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var PincodeForm = class {
|
|
85
|
-
static __is_atscript_annotated_type = true;
|
|
86
|
-
static type = {};
|
|
87
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
88
|
-
static id = "PincodeForm";
|
|
89
|
-
static toJsonSchema() {
|
|
90
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
var AskEmailForm = class {
|
|
94
|
-
static __is_atscript_annotated_type = true;
|
|
95
|
-
static type = {};
|
|
96
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
97
|
-
static id = "AskEmailForm";
|
|
98
|
-
static toJsonSchema() {
|
|
99
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
var AskPhoneForm = class {
|
|
103
|
-
static __is_atscript_annotated_type = true;
|
|
104
|
-
static type = {};
|
|
105
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
106
|
-
static id = "AskPhoneForm";
|
|
107
|
-
static toJsonSchema() {
|
|
108
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
var TermsAcceptForm = class {
|
|
112
|
-
static __is_atscript_annotated_type = true;
|
|
113
|
-
static type = {};
|
|
114
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
115
|
-
static id = "TermsAcceptForm";
|
|
116
|
-
static toJsonSchema() {
|
|
117
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
var ProfileCompleteForm = class {
|
|
121
|
-
static __is_atscript_annotated_type = true;
|
|
122
|
-
static type = {};
|
|
123
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
124
|
-
static id = "ProfileCompleteForm";
|
|
125
|
-
static toJsonSchema() {
|
|
126
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var ConsentMarketingForm = class {
|
|
130
|
-
static __is_atscript_annotated_type = true;
|
|
131
|
-
static type = {};
|
|
132
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
133
|
-
static id = "ConsentMarketingForm";
|
|
134
|
-
static toJsonSchema() {
|
|
135
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var TenantSelectForm = class {
|
|
139
|
-
static __is_atscript_annotated_type = true;
|
|
140
|
-
static type = {};
|
|
141
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
142
|
-
static id = "TenantSelectForm";
|
|
143
|
-
static toJsonSchema() {
|
|
144
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
var PersonaSelectForm = class {
|
|
148
|
-
static __is_atscript_annotated_type = true;
|
|
149
|
-
static type = {};
|
|
150
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
151
|
-
static id = "PersonaSelectForm";
|
|
152
|
-
static toJsonSchema() {
|
|
153
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
var ConcurrencyLimitForm = class {
|
|
157
|
-
static __is_atscript_annotated_type = true;
|
|
158
|
-
static type = {};
|
|
159
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
160
|
-
static id = "ConcurrencyLimitForm";
|
|
161
|
-
static toJsonSchema() {
|
|
162
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
var MagicLinkRequestForm = class {
|
|
166
|
-
static __is_atscript_annotated_type = true;
|
|
167
|
-
static type = {};
|
|
168
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
169
|
-
static id = "MagicLinkRequestForm";
|
|
170
|
-
static toJsonSchema() {
|
|
171
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
var RecoveryModeSelectForm = class {
|
|
175
|
-
static __is_atscript_annotated_type = true;
|
|
176
|
-
static type = {};
|
|
177
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
178
|
-
static id = "RecoveryModeSelectForm";
|
|
179
|
-
static toJsonSchema() {
|
|
180
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
var RecoveryFactorForm = class {
|
|
184
|
-
static __is_atscript_annotated_type = true;
|
|
185
|
-
static type = {};
|
|
186
|
-
static metadata = /* @__PURE__ */ new Map();
|
|
187
|
-
static id = "RecoveryFactorForm";
|
|
188
|
-
static toJsonSchema() {
|
|
189
|
-
throwFeatureDisabled("JSON Schema", "jsonSchema", "emit.jsonSchema");
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
defineAnnotatedType("object", LoginCredentialsForm).prop("username", defineAnnotatedType().designType("string").tags("string").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.type", "password").annotate("meta.label", "Password").annotate("ui.form.autocomplete", "current-password").annotate("meta.sensitive", true).annotate("meta.required", {}).annotate("expect.minLength", { length: 1 }).$type);
|
|
193
|
-
defineAnnotatedType("object", MfaCodeForm).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("meta.required", {}).annotate("expect.minLength", { length: 4 }).annotate("expect.maxLength", { length: 12 }).annotate("expect.pattern", { pattern: "^[0-9]+$" }, true).$type);
|
|
194
|
-
defineAnnotatedType("object", BackupCodeForm).prop("code", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Backup code").annotate("ui.form.autocomplete", "one-time-code").annotate("meta.required", {}).annotate("expect.minLength", { length: 4 }).annotate("expect.maxLength", { length: 32 }).annotate("expect.pattern", { pattern: "^[A-Z2-9-]+$" }, true).$type);
|
|
195
|
-
defineAnnotatedType("object", EmailIdentifierForm).prop("email", defineAnnotatedType().designType("string").tags("email", "string").annotate("ui.form.type", "text").annotate("meta.label", "Email").annotate("ui.form.autocomplete", "email").annotate("meta.required", {}).annotate("expect.pattern", {
|
|
196
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
197
|
-
flags: "",
|
|
198
|
-
message: "Invalid email format."
|
|
199
|
-
}, true).$type).annotate("wf.context.pass", "defaults", true);
|
|
200
|
-
defineAnnotatedType("object", SetPasswordForm).prop("newPassword", defineAnnotatedType().designType("string").tags("string").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.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 }).$type);
|
|
201
|
-
defineAnnotatedType("object", InviteForm).prop("email", defineAnnotatedType().designType("string").tags("email", "string").annotate("ui.form.type", "text").annotate("meta.label", "Email").annotate("ui.form.autocomplete", "email").annotate("meta.required", {}).annotate("expect.pattern", {
|
|
202
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
203
|
-
flags: "",
|
|
204
|
-
message: "Invalid email format."
|
|
205
|
-
}, true).$type).prop("firstName", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "First name").optional().$type).prop("lastName", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Last name").optional().$type).prop("roles", defineAnnotatedType("array").of(defineAnnotatedType().designType("string").tags("string").$type).annotate("ui.form.type", "select").annotate("ui.form.fn.options", "(_, _data, context) => Array.isArray(context.availableRoles) ? context.availableRoles.map(r => ({ value: r, label: r })) : []").annotate("meta.label", "Roles").optional().$type).annotate("wf.context.pass", "availableRoles", true);
|
|
206
|
-
defineAnnotatedType("object", InviteEmailForm).prop("email", defineAnnotatedType().designType("string").tags("email", "string").annotate("ui.form.type", "text").annotate("meta.label", "Email").annotate("ui.form.autocomplete", "email").annotate("meta.required", {}).annotate("expect.pattern", {
|
|
207
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
208
|
-
flags: "",
|
|
209
|
-
message: "Invalid email format."
|
|
210
|
-
}, true).$type);
|
|
211
|
-
defineAnnotatedType("object", InviteSendModeForm).prop("mode", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Delivery mode").annotate("meta.required", {}).annotate("expect.pattern", { pattern: "^(email|shareableLink)$" }, true).$type);
|
|
212
|
-
defineAnnotatedType("object", Select2faForm).prop("methodName", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").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").optional().$type);
|
|
213
|
-
defineAnnotatedType("object", PincodeForm).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("meta.required", {}).annotate("expect.minLength", { length: 4 }).annotate("expect.maxLength", { length: 12 }).annotate("expect.pattern", { pattern: "^[0-9]+$" }, true).$type).prop("rememberDevice", defineAnnotatedType().designType("boolean").tags("boolean").annotate("ui.form.type", "checkbox").annotate("meta.label", "Remember this device").optional().$type);
|
|
214
|
-
defineAnnotatedType("object", AskEmailForm).prop("email", defineAnnotatedType().designType("string").tags("email", "string").annotate("ui.form.type", "text").annotate("meta.label", "Email").annotate("ui.form.autocomplete", "email").annotate("meta.required", {}).annotate("expect.pattern", {
|
|
215
|
-
pattern: "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
|
|
216
|
-
flags: "",
|
|
217
|
-
message: "Invalid email format."
|
|
218
|
-
}, true).$type);
|
|
219
|
-
defineAnnotatedType("object", AskPhoneForm).prop("phone", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Phone (E.164)").annotate("ui.form.autocomplete", "tel").annotate("meta.required", {}).$type);
|
|
220
|
-
defineAnnotatedType("object", TermsAcceptForm).prop("acceptedVersion", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Accepted version").annotate("meta.required", {}).$type).prop("accepted", defineAnnotatedType().designType("boolean").tags("boolean").annotate("ui.form.type", "checkbox").annotate("meta.label", "I accept the Terms & Conditions").annotate("meta.required", {}).$type);
|
|
221
|
-
defineAnnotatedType("object", ProfileCompleteForm).prop("firstName", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "First name").optional().$type).prop("lastName", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Last name").optional().$type);
|
|
222
|
-
defineAnnotatedType("object", ConsentMarketingForm).prop("optIn", defineAnnotatedType().designType("boolean").tags("boolean").annotate("ui.form.type", "checkbox").annotate("meta.label", "I would like to receive marketing emails").optional().$type);
|
|
223
|
-
defineAnnotatedType("object", TenantSelectForm).prop("tenantId", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Tenant").annotate("meta.required", {}).$type);
|
|
224
|
-
defineAnnotatedType("object", PersonaSelectForm).prop("personaId", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Persona").annotate("meta.required", {}).$type);
|
|
225
|
-
defineAnnotatedType("object", ConcurrencyLimitForm).prop("action", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Action").annotate("meta.required", {}).annotate("expect.pattern", { pattern: "^(logoutOthers|cancel)$" }, true).$type);
|
|
226
|
-
defineAnnotatedType("object", MagicLinkRequestForm).prop("identifier", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Email or username").annotate("ui.form.autocomplete", "username").annotate("meta.required", {}).$type);
|
|
227
|
-
defineAnnotatedType("object", RecoveryModeSelectForm).prop("mode", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Recovery method").annotate("meta.required", {}).annotate("expect.pattern", { pattern: "^(magicLink|otp)$" }, true).$type);
|
|
228
|
-
defineAnnotatedType("object", RecoveryFactorForm).prop("factor", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Factor").annotate("meta.required", {}).annotate("expect.pattern", { pattern: "^(phone|totp)$" }, true).$type).prop("value", defineAnnotatedType().designType("string").tags("string").annotate("ui.form.type", "text").annotate("meta.label", "Value").annotate("meta.required", {}).annotate("expect.minLength", { length: 4 }).annotate("expect.maxLength", { length: 12 }).$type);
|
|
229
|
-
//#endregion
|
|
230
|
-
export { RecoveryModeSelectForm as _, ConsentMarketingForm as a, TenantSelectForm as b, InviteForm as c, MagicLinkRequestForm as d, MfaCodeForm as f, RecoveryFactorForm as g, ProfileCompleteForm as h, ConcurrencyLimitForm as i, InviteSendModeForm as l, PincodeForm as m, AskPhoneForm as n, EmailIdentifierForm as o, PersonaSelectForm as p, BackupCodeForm as r, InviteEmailForm as s, AskEmailForm as t, LoginCredentialsForm as u, Select2faForm as v, TermsAcceptForm as x, SetPasswordForm as y };
|