@aooth/auth-moost 0.1.18 → 0.1.20
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 +449 -1
- package/dist/atscript/index.mjs +1 -1
- package/dist/{forms-D7ZfanKT.mjs → forms-uqegc32h.mjs} +1 -1
- package/dist/index.d.mts +314 -19
- package/dist/index.mjs +434 -60
- package/package.json +19 -19
- package/src/atscript/models/forms.as +8 -3
- package/src/atscript/models/forms.as.d.ts +1 -1
|
@@ -1,2 +1,450 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TAtscriptAnnotatedType, TAtscriptTypeObject, TMetadataMap, TValidatorOptions, Validator } from "@atscript/typescript/utils";
|
|
2
|
+
|
|
3
|
+
//#region src/atscript/models/forms.as.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Atscript interface **WithInlineConsentForm**
|
|
6
|
+
* @see {@link ./forms.as:34:18}
|
|
7
|
+
*/
|
|
8
|
+
declare class WithInlineConsentForm {
|
|
9
|
+
consents: string[];
|
|
10
|
+
static __is_atscript_annotated_type: true;
|
|
11
|
+
static type: TAtscriptTypeObject<keyof WithInlineConsentForm, WithInlineConsentForm>;
|
|
12
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
13
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof WithInlineConsentForm>;
|
|
14
|
+
/** @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. */
|
|
15
|
+
static toJsonSchema: () => any;
|
|
16
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
17
|
+
static toExampleData?: () => any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Atscript interface **LoginCredentialsForm**
|
|
21
|
+
* @see {@link ./forms.as:61:18}
|
|
22
|
+
*/
|
|
23
|
+
declare class LoginCredentialsForm {
|
|
24
|
+
username: string;
|
|
25
|
+
password: string; // signup: ui.action
|
|
26
|
+
// magicLink: ui.action
|
|
27
|
+
ssoProvider?: string;
|
|
28
|
+
static __is_atscript_annotated_type: true;
|
|
29
|
+
static type: TAtscriptTypeObject<keyof LoginCredentialsForm, LoginCredentialsForm>;
|
|
30
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
31
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof LoginCredentialsForm>;
|
|
32
|
+
/** @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. */
|
|
33
|
+
static toJsonSchema: () => any;
|
|
34
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
35
|
+
static toExampleData?: () => any;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Atscript interface **MfaCodeForm**
|
|
39
|
+
* @see {@link ./forms.as:136:18}
|
|
40
|
+
*/
|
|
41
|
+
declare class MfaCodeForm {
|
|
42
|
+
// transportHint: ui.paragraph
|
|
43
|
+
code: string; // useDifferentMethod: ui.action
|
|
44
|
+
rememberDevice: boolean;
|
|
45
|
+
static __is_atscript_annotated_type: true;
|
|
46
|
+
static type: TAtscriptTypeObject<keyof MfaCodeForm, MfaCodeForm>;
|
|
47
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
48
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof MfaCodeForm>;
|
|
49
|
+
/** @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. */
|
|
50
|
+
static toJsonSchema: () => any;
|
|
51
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
52
|
+
static toExampleData?: () => any;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Atscript interface **EmailIdentifierForm**
|
|
56
|
+
* @see {@link ./forms.as:173:18}
|
|
57
|
+
*/
|
|
58
|
+
declare class EmailIdentifierForm {
|
|
59
|
+
email: string;
|
|
60
|
+
/* email */
|
|
61
|
+
// backToLogin: ui.action
|
|
62
|
+
static __is_atscript_annotated_type: true;
|
|
63
|
+
static type: TAtscriptTypeObject<keyof EmailIdentifierForm, EmailIdentifierForm>;
|
|
64
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
65
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EmailIdentifierForm>;
|
|
66
|
+
/** @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. */
|
|
67
|
+
static toJsonSchema: () => any;
|
|
68
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
69
|
+
static toExampleData?: () => any;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Atscript interface **SignupForm**
|
|
73
|
+
* @see {@link ./forms.as:205:18}
|
|
74
|
+
*/
|
|
75
|
+
declare class SignupForm {
|
|
76
|
+
email: string;
|
|
77
|
+
/* email */
|
|
78
|
+
// backToLogin: ui.action
|
|
79
|
+
static __is_atscript_annotated_type: true;
|
|
80
|
+
static type: TAtscriptTypeObject<keyof SignupForm, SignupForm>;
|
|
81
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
82
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof SignupForm>;
|
|
83
|
+
/** @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. */
|
|
84
|
+
static toJsonSchema: () => any;
|
|
85
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
86
|
+
static toExampleData?: () => any;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Atscript interface **SetPasswordForm**
|
|
90
|
+
* @see {@link ./forms.as:263:18}
|
|
91
|
+
*/
|
|
92
|
+
declare class SetPasswordForm extends WithInlineConsentForm {
|
|
93
|
+
// intro: ui.paragraph
|
|
94
|
+
newPassword: string;
|
|
95
|
+
confirmPassword: string; // passwordRules: ui.paragraph
|
|
96
|
+
static __is_atscript_annotated_type: true;
|
|
97
|
+
static type: TAtscriptTypeObject<keyof SetPasswordForm, SetPasswordForm>;
|
|
98
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
99
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof SetPasswordForm>;
|
|
100
|
+
/** @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. */
|
|
101
|
+
static toJsonSchema: () => any;
|
|
102
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
103
|
+
static toExampleData?: () => any;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Atscript interface **InviteForm**
|
|
107
|
+
* @see {@link ./forms.as:341:18}
|
|
108
|
+
*/
|
|
109
|
+
declare class InviteForm {
|
|
110
|
+
email: string;
|
|
111
|
+
/* email */
|
|
112
|
+
roles: string[];
|
|
113
|
+
static __is_atscript_annotated_type: true;
|
|
114
|
+
static type: TAtscriptTypeObject<keyof InviteForm, InviteForm>;
|
|
115
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
116
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof InviteForm>;
|
|
117
|
+
/** @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. */
|
|
118
|
+
static toJsonSchema: () => any;
|
|
119
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
120
|
+
static toExampleData?: () => any;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Atscript interface **Select2faForm**
|
|
124
|
+
* @see {@link ./forms.as:371:18}
|
|
125
|
+
*/
|
|
126
|
+
declare class Select2faForm {
|
|
127
|
+
methodName: string;
|
|
128
|
+
saveAsDefault: boolean;
|
|
129
|
+
rememberDevice: boolean;
|
|
130
|
+
static __is_atscript_annotated_type: true;
|
|
131
|
+
static type: TAtscriptTypeObject<keyof Select2faForm, Select2faForm>;
|
|
132
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
133
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof Select2faForm>;
|
|
134
|
+
/** @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. */
|
|
135
|
+
static toJsonSchema: () => any;
|
|
136
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
137
|
+
static toExampleData?: () => any;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Atscript interface **PincodeForm**
|
|
141
|
+
* @see {@link ./forms.as:417:18}
|
|
142
|
+
*/
|
|
143
|
+
declare class PincodeForm {
|
|
144
|
+
// transportHint: ui.paragraph
|
|
145
|
+
code: string;
|
|
146
|
+
rememberDevice: boolean; // resend: ui.action
|
|
147
|
+
// useDifferentMethod: ui.action
|
|
148
|
+
// useDifferentTransport: ui.action
|
|
149
|
+
static __is_atscript_annotated_type: true;
|
|
150
|
+
static type: TAtscriptTypeObject<keyof PincodeForm, PincodeForm>;
|
|
151
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
152
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof PincodeForm>;
|
|
153
|
+
/** @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. */
|
|
154
|
+
static toJsonSchema: () => any;
|
|
155
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
156
|
+
static toExampleData?: () => any;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Atscript interface **AskEmailForm**
|
|
160
|
+
* @see {@link ./forms.as:456:18}
|
|
161
|
+
*/
|
|
162
|
+
declare class AskEmailForm extends WithInlineConsentForm {
|
|
163
|
+
// disclosure: ui.paragraph
|
|
164
|
+
email: string;
|
|
165
|
+
/* email */
|
|
166
|
+
static __is_atscript_annotated_type: true;
|
|
167
|
+
static type: TAtscriptTypeObject<keyof AskEmailForm, AskEmailForm>;
|
|
168
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
169
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof AskEmailForm>;
|
|
170
|
+
/** @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. */
|
|
171
|
+
static toJsonSchema: () => any;
|
|
172
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
173
|
+
static toExampleData?: () => any;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Atscript interface **AskPhoneForm**
|
|
177
|
+
* @see {@link ./forms.as:486:18}
|
|
178
|
+
*/
|
|
179
|
+
declare class AskPhoneForm extends WithInlineConsentForm {
|
|
180
|
+
// disclosure: ui.paragraph
|
|
181
|
+
phone: string;
|
|
182
|
+
static __is_atscript_annotated_type: true;
|
|
183
|
+
static type: TAtscriptTypeObject<keyof AskPhoneForm, AskPhoneForm>;
|
|
184
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
185
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof AskPhoneForm>;
|
|
186
|
+
/** @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. */
|
|
187
|
+
static toJsonSchema: () => any;
|
|
188
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
189
|
+
static toExampleData?: () => any;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Atscript interface **EnrollPickMethodForm**
|
|
193
|
+
* @see {@link ./forms.as:510:18}
|
|
194
|
+
*/
|
|
195
|
+
declare class EnrollPickMethodForm {
|
|
196
|
+
method: string; // skip: ui.action
|
|
197
|
+
// cancel: ui.action
|
|
198
|
+
static __is_atscript_annotated_type: true;
|
|
199
|
+
static type: TAtscriptTypeObject<keyof EnrollPickMethodForm, EnrollPickMethodForm>;
|
|
200
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
201
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollPickMethodForm>;
|
|
202
|
+
/** @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. */
|
|
203
|
+
static toJsonSchema: () => any;
|
|
204
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
205
|
+
static toExampleData?: () => any;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Atscript interface **EnrollAddressForm**
|
|
209
|
+
* @see {@link ./forms.as:544:18}
|
|
210
|
+
*/
|
|
211
|
+
declare class EnrollAddressForm {
|
|
212
|
+
address: string; // skip: ui.action
|
|
213
|
+
// cancel: ui.action
|
|
214
|
+
// useDifferentMethod: ui.action
|
|
215
|
+
static __is_atscript_annotated_type: true;
|
|
216
|
+
static type: TAtscriptTypeObject<keyof EnrollAddressForm, EnrollAddressForm>;
|
|
217
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
218
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollAddressForm>;
|
|
219
|
+
/** @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. */
|
|
220
|
+
static toJsonSchema: () => any;
|
|
221
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
222
|
+
static toExampleData?: () => any;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Atscript interface **EnrollConfirmForm**
|
|
226
|
+
* @see {@link ./forms.as:590:18}
|
|
227
|
+
*/
|
|
228
|
+
declare class EnrollConfirmForm {
|
|
229
|
+
// transportHint: ui.paragraph
|
|
230
|
+
code: string; // resend: ui.action
|
|
231
|
+
// useDifferentMethod: ui.action
|
|
232
|
+
// cancel: ui.action
|
|
233
|
+
// skip: ui.action
|
|
234
|
+
static __is_atscript_annotated_type: true;
|
|
235
|
+
static type: TAtscriptTypeObject<keyof EnrollConfirmForm, EnrollConfirmForm>;
|
|
236
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
237
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollConfirmForm>;
|
|
238
|
+
/** @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. */
|
|
239
|
+
static toJsonSchema: () => any;
|
|
240
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
241
|
+
static toExampleData?: () => any;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Atscript interface **EnrollTotpQrForm**
|
|
245
|
+
* @see {@link ./forms.as:640:18}
|
|
246
|
+
*/
|
|
247
|
+
declare class EnrollTotpQrForm {
|
|
248
|
+
// qrCode: ui.paragraph
|
|
249
|
+
// useDifferentMethod: ui.action
|
|
250
|
+
// cancel: ui.action
|
|
251
|
+
// skip: ui.action
|
|
252
|
+
static __is_atscript_annotated_type: true;
|
|
253
|
+
static type: TAtscriptTypeObject<keyof EnrollTotpQrForm, EnrollTotpQrForm>;
|
|
254
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
255
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof EnrollTotpQrForm>;
|
|
256
|
+
/** @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. */
|
|
257
|
+
static toJsonSchema: () => any;
|
|
258
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
259
|
+
static toExampleData?: () => any;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Atscript interface **ManageMfaForm**
|
|
263
|
+
* @see {@link ./forms.as:679:18}
|
|
264
|
+
*/
|
|
265
|
+
declare class ManageMfaForm {
|
|
266
|
+
// lockedNote: ui.paragraph
|
|
267
|
+
operation: string; // cancel: ui.action
|
|
268
|
+
static __is_atscript_annotated_type: true;
|
|
269
|
+
static type: TAtscriptTypeObject<keyof ManageMfaForm, ManageMfaForm>;
|
|
270
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
271
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof ManageMfaForm>;
|
|
272
|
+
/** @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. */
|
|
273
|
+
static toJsonSchema: () => any;
|
|
274
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
275
|
+
static toExampleData?: () => any;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Atscript interface **RemoveMfaConfirmForm**
|
|
279
|
+
* @see {@link ./forms.as:708:18}
|
|
280
|
+
*/
|
|
281
|
+
declare class RemoveMfaConfirmForm {
|
|
282
|
+
// notice: ui.paragraph
|
|
283
|
+
// cancel: ui.action
|
|
284
|
+
static __is_atscript_annotated_type: true;
|
|
285
|
+
static type: TAtscriptTypeObject<keyof RemoveMfaConfirmForm, RemoveMfaConfirmForm>;
|
|
286
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
287
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RemoveMfaConfirmForm>;
|
|
288
|
+
/** @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. */
|
|
289
|
+
static toJsonSchema: () => any;
|
|
290
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
291
|
+
static toExampleData?: () => any;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Atscript interface **PasswordReauthForm**
|
|
295
|
+
* @see {@link ./forms.as:731:18}
|
|
296
|
+
*/
|
|
297
|
+
declare class PasswordReauthForm {
|
|
298
|
+
password: string; // cancel: ui.action
|
|
299
|
+
static __is_atscript_annotated_type: true;
|
|
300
|
+
static type: TAtscriptTypeObject<keyof PasswordReauthForm, PasswordReauthForm>;
|
|
301
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
302
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof PasswordReauthForm>;
|
|
303
|
+
/** @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. */
|
|
304
|
+
static toJsonSchema: () => any;
|
|
305
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
306
|
+
static toExampleData?: () => any;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Atscript interface **TermsBumpForm**
|
|
310
|
+
* @see {@link ./forms.as:760:18}
|
|
311
|
+
*/
|
|
312
|
+
declare class TermsBumpForm extends WithInlineConsentForm {
|
|
313
|
+
static __is_atscript_annotated_type: true;
|
|
314
|
+
static type: TAtscriptTypeObject<keyof TermsBumpForm, TermsBumpForm>;
|
|
315
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
316
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof TermsBumpForm>;
|
|
317
|
+
/** @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. */
|
|
318
|
+
static toJsonSchema: () => any;
|
|
319
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
320
|
+
static toExampleData?: () => any;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Atscript interface **ConcurrencyLimitForm**
|
|
324
|
+
* @see {@link ./forms.as:773:18}
|
|
325
|
+
*/
|
|
326
|
+
declare class ConcurrencyLimitForm {
|
|
327
|
+
static __is_atscript_annotated_type: true;
|
|
328
|
+
static type: TAtscriptTypeObject<keyof ConcurrencyLimitForm, ConcurrencyLimitForm>;
|
|
329
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
330
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof ConcurrencyLimitForm>;
|
|
331
|
+
/** @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. */
|
|
332
|
+
static toJsonSchema: () => any;
|
|
333
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
334
|
+
static toExampleData?: () => any;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Atscript interface **MagicLinkRequestForm**
|
|
338
|
+
* @see {@link ./forms.as:783:18}
|
|
339
|
+
*/
|
|
340
|
+
declare class MagicLinkRequestForm {
|
|
341
|
+
identifier: string;
|
|
342
|
+
static __is_atscript_annotated_type: true;
|
|
343
|
+
static type: TAtscriptTypeObject<keyof MagicLinkRequestForm, MagicLinkRequestForm>;
|
|
344
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
345
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof MagicLinkRequestForm>;
|
|
346
|
+
/** @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. */
|
|
347
|
+
static toJsonSchema: () => any;
|
|
348
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
349
|
+
static toExampleData?: () => any;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Atscript interface **RecoveryModeSelectForm**
|
|
353
|
+
* @see {@link ./forms.as:798:18}
|
|
354
|
+
*/
|
|
355
|
+
declare class RecoveryModeSelectForm {
|
|
356
|
+
mode: string;
|
|
357
|
+
static __is_atscript_annotated_type: true;
|
|
358
|
+
static type: TAtscriptTypeObject<keyof RecoveryModeSelectForm, RecoveryModeSelectForm>;
|
|
359
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
360
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RecoveryModeSelectForm>;
|
|
361
|
+
/** @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. */
|
|
362
|
+
static toJsonSchema: () => any;
|
|
363
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
364
|
+
static toExampleData?: () => any;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Atscript interface **RecoveryFactorForm**
|
|
368
|
+
* @see {@link ./forms.as:821:18}
|
|
369
|
+
*/
|
|
370
|
+
declare class RecoveryFactorForm {
|
|
371
|
+
factor: string;
|
|
372
|
+
value: string;
|
|
373
|
+
static __is_atscript_annotated_type: true;
|
|
374
|
+
static type: TAtscriptTypeObject<keyof RecoveryFactorForm, RecoveryFactorForm>;
|
|
375
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
376
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof RecoveryFactorForm>;
|
|
377
|
+
/** @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. */
|
|
378
|
+
static toJsonSchema: () => any;
|
|
379
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
380
|
+
static toExampleData?: () => any;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Atscript interface **ChangePasswordForm**
|
|
384
|
+
* @see {@link ./forms.as:855:18}
|
|
385
|
+
*/
|
|
386
|
+
declare class ChangePasswordForm {
|
|
387
|
+
// intro: ui.paragraph
|
|
388
|
+
currentPassword: string;
|
|
389
|
+
newPassword: string;
|
|
390
|
+
confirmPassword: string; // passwordRules: ui.paragraph
|
|
391
|
+
static __is_atscript_annotated_type: true;
|
|
392
|
+
static type: TAtscriptTypeObject<keyof ChangePasswordForm, ChangePasswordForm>;
|
|
393
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
394
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof ChangePasswordForm>;
|
|
395
|
+
/** @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. */
|
|
396
|
+
static toJsonSchema: () => any;
|
|
397
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
398
|
+
static toExampleData?: () => any;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Atscript interface **ProveControlForm**
|
|
402
|
+
* @see {@link ./forms.as:920:18}
|
|
403
|
+
*/
|
|
404
|
+
declare class ProveControlForm {
|
|
405
|
+
// intro: ui.paragraph
|
|
406
|
+
password: string; // cancel: ui.action
|
|
407
|
+
static __is_atscript_annotated_type: true;
|
|
408
|
+
static type: TAtscriptTypeObject<keyof ProveControlForm, ProveControlForm>;
|
|
409
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
410
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof ProveControlForm>;
|
|
411
|
+
/** @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. */
|
|
412
|
+
static toJsonSchema: () => any;
|
|
413
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
414
|
+
static toExampleData?: () => any;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Atscript interface **ProveControlOtpForm**
|
|
418
|
+
* @see {@link ./forms.as:955:18}
|
|
419
|
+
*/
|
|
420
|
+
declare class ProveControlOtpForm {
|
|
421
|
+
// intro: ui.paragraph
|
|
422
|
+
code: string; // resend: ui.action
|
|
423
|
+
// cancel: ui.action
|
|
424
|
+
static __is_atscript_annotated_type: true;
|
|
425
|
+
static type: TAtscriptTypeObject<keyof ProveControlOtpForm, ProveControlOtpForm>;
|
|
426
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
427
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof ProveControlOtpForm>;
|
|
428
|
+
/** @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. */
|
|
429
|
+
static toJsonSchema: () => any;
|
|
430
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
431
|
+
static toExampleData?: () => any;
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Atscript interface **AuthorizeConsentForm**
|
|
435
|
+
* @see {@link ./forms.as:1005:18}
|
|
436
|
+
*/
|
|
437
|
+
declare class AuthorizeConsentForm {
|
|
438
|
+
// notice: ui.paragraph
|
|
439
|
+
// deny: ui.action
|
|
440
|
+
static __is_atscript_annotated_type: true;
|
|
441
|
+
static type: TAtscriptTypeObject<keyof AuthorizeConsentForm, AuthorizeConsentForm>;
|
|
442
|
+
static metadata: TMetadataMap<AtscriptMetadata>;
|
|
443
|
+
static validator: (opts?: Partial<TValidatorOptions>) => Validator<typeof AuthorizeConsentForm>;
|
|
444
|
+
/** @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. */
|
|
445
|
+
static toJsonSchema: () => any;
|
|
446
|
+
/** @deprecated Example Data support is disabled. To enable, set `exampleData: true` in tsPlugin options. */
|
|
447
|
+
static toExampleData?: () => any;
|
|
448
|
+
}
|
|
449
|
+
//#endregion
|
|
2
450
|
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, TermsBumpForm, WithInlineConsentForm };
|
package/dist/atscript/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as Select2faForm, D as WithInlineConsentForm, E as TermsBumpForm, S as RemoveMfaConfirmForm, T as SignupForm, _ as PincodeForm, a as ConcurrencyLimitForm, b as RecoveryFactorForm, c as EnrollConfirmForm, d as InviteForm, f as LoginCredentialsForm, g as PasswordReauthForm, h as MfaCodeForm, i as ChangePasswordForm, l as EnrollPickMethodForm, m as ManageMfaForm, n as AskPhoneForm, o as EmailIdentifierForm, p as MagicLinkRequestForm, r as AuthorizeConsentForm, s as EnrollAddressForm, t as AskEmailForm, u as EnrollTotpQrForm, v as ProveControlForm, w as SetPasswordForm, x as RecoveryModeSelectForm, y as ProveControlOtpForm } from "../forms-
|
|
1
|
+
import { C as Select2faForm, D as WithInlineConsentForm, E as TermsBumpForm, S as RemoveMfaConfirmForm, T as SignupForm, _ as PincodeForm, a as ConcurrencyLimitForm, b as RecoveryFactorForm, c as EnrollConfirmForm, d as InviteForm, f as LoginCredentialsForm, g as PasswordReauthForm, h as MfaCodeForm, i as ChangePasswordForm, l as EnrollPickMethodForm, m as ManageMfaForm, n as AskPhoneForm, o as EmailIdentifierForm, p as MagicLinkRequestForm, r as AuthorizeConsentForm, s as EnrollAddressForm, t as AskEmailForm, u as EnrollTotpQrForm, v as ProveControlForm, w as SetPasswordForm, x as RecoveryModeSelectForm, y as ProveControlOtpForm } from "../forms-uqegc32h.mjs";
|
|
2
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, TermsBumpForm, WithInlineConsentForm };
|
|
@@ -447,7 +447,7 @@ defineAnnotatedType("object", ProveControlOtpForm).prop("intro", defineAnnotated
|
|
|
447
447
|
name: "align",
|
|
448
448
|
value: "center"
|
|
449
449
|
}, true).annotate("ui.form.pushDown", true).optional().$type).annotate("meta.label", "Confirm your identity").annotate("wf.context.pass", "public", true).annotate("ui.form.submit.text", "Verify and link");
|
|
450
|
-
defineAnnotatedType("object", AuthorizeConsentForm).prop("notice", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.order", 1).annotate("ui.form.fn.value", "(_, _d, ctx) => { const a = ctx.public?.authz; const who = a?.clientName ? \"“\" + a.clientName + \"”\" : \"A local application\"; const sc = a?.scope ? \" It is requesting access to: \" + a.scope + \".\" : \"\"; return who + \" wants to sign in to your account.\" + sc + \" Authorize this only if you started it.\"; }").$type).prop("deny", defineAnnotatedType().designType("phantom").tags("action", "ui").annotate("ui.form.order", 10).annotate("ui.form.action", {
|
|
450
|
+
defineAnnotatedType("object", AuthorizeConsentForm).prop("notice", defineAnnotatedType().designType("phantom").tags("paragraph", "ui").annotate("ui.form.order", 1).annotate("ui.form.fn.value", "(_, _d, ctx) => { const a = ctx.public?.authz; const host = a?.clientName && a?.redirectHost ? \" (\" + a.redirectHost + \")\" : \"\"; const who = a?.clientName ? \"“\" + a.clientName + \"”\" + host : \"A local application\"; const sc = a?.scope ? \" It is requesting access to: \" + a.scope + \".\" : \"\"; return who + \" wants to sign in to your account.\" + sc + \" Authorize this only if you started it.\"; }").$type).prop("deny", defineAnnotatedType().designType("phantom").tags("action", "ui").annotate("ui.form.order", 10).annotate("ui.form.action", {
|
|
451
451
|
id: "deny",
|
|
452
452
|
label: "Deny"
|
|
453
453
|
}).annotate("ui.form.attr", {
|