@@ -178,11 +178,13 @@ export interface CollectorErrors {
178178}
179179
180180// @public (undocumented)
181- export type Collectors = FlowCollector | PasswordCollector | TextCollector | SingleSelectCollector | IdpCollector | SubmitCollector | ActionCollector <' ActionCollector' > | SingleValueCollector <' SingleValueCollector' > | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | ReadOnlyCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | QrCodeCollector | AgreementCollector | UnknownCollector ;
181+ export type Collectors = FlowCollector | PasswordCollector | ValidatedPasswordCollector | TextCollector | SingleSelectCollector | IdpCollector | SubmitCollector | ActionCollector <' ActionCollector' > | SingleValueCollector <' SingleValueCollector' > | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | ReadOnlyCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | QrCodeCollector | AgreementCollector | UnknownCollector ;
182182
183183// @public
184184export type CollectorValueType <T > = T extends {
185185 type: ' PasswordCollector' ;
186+ } ? string : T extends {
187+ type: ' ValidatedPasswordCollector' ;
186188} ? string : T extends {
187189 type: ' TextCollector' ;
188190 category: ' SingleValueCollector' ;
@@ -1032,7 +1034,7 @@ export type InferMultiValueCollectorType<T extends MultiValueCollectorTypes> = T
10321034export type InferNoValueCollectorType <T extends NoValueCollectorTypes > = T extends ' ReadOnlyCollector' ? NoValueCollectorBase <' ReadOnlyCollector' > : T extends ' QrCodeCollector' ? QrCodeCollectorBase : T extends ' AgreementCollector' ? AgreementCollector : NoValueCollectorBase <' NoValueCollector' >;
10331035
10341036// @public
1035- export type InferSingleValueCollectorType <T extends SingleValueCollectorTypes > = T extends ' TextCollector' ? TextCollector : T extends ' SingleSelectCollector' ? SingleSelectCollector : T extends ' ValidatedTextCollector' ? ValidatedTextCollector : T extends ' PasswordCollector' ? PasswordCollector : SingleValueCollectorWithValue <' SingleValueCollector' > | SingleValueCollectorNoValue <' SingleValueCollector' >;
1037+ export type InferSingleValueCollectorType <T extends SingleValueCollectorTypes > = T extends ' TextCollector' ? TextCollector : T extends ' SingleSelectCollector' ? SingleSelectCollector : T extends ' ValidatedTextCollector' ? ValidatedTextCollector : T extends ' PasswordCollector' ? PasswordCollector : T extends ' ValidatedPasswordCollector ' ? ValidatedPasswordCollector : SingleValueCollectorWithValue <' SingleValueCollector' > | SingleValueCollectorNoValue <' SingleValueCollector' >;
10361038
10371039// @public (undocumented)
10381040export type InferValueObjectCollectorType <T extends ObjectValueCollectorTypes > = T extends ' DeviceAuthenticationCollector' ? DeviceAuthenticationCollector : T extends ' DeviceRegistrationCollector' ? DeviceRegistrationCollector : T extends ' PhoneNumberCollector' ? PhoneNumberCollector : ObjectOptionsCollectorWithObjectValue <' ObjectValueCollector' > | ObjectOptionsCollectorWithStringValue <' ObjectValueCollector' >;
@@ -1170,8 +1172,8 @@ value: Record<string, unknown>;
11701172}, string >;
11711173
11721174// @public
1173- export const nodeCollectorReducer: Reducer <(TextCollector | SingleSelectCollector | ValidatedTextCollector | PasswordCollector | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | IdpCollector | SubmitCollector | FlowCollector | QrCodeCollectorBase | AgreementCollector | ReadOnlyCollector | UnknownCollector | ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | PollingCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" >)[]> & {
1174- getInitialState: () => (TextCollector | SingleSelectCollector | ValidatedTextCollector | PasswordCollector | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | IdpCollector | SubmitCollector | FlowCollector | QrCodeCollectorBase | AgreementCollector | ReadOnlyCollector | UnknownCollector | ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | PollingCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" >)[];
1175+ export const nodeCollectorReducer: Reducer <(TextCollector | SingleSelectCollector | PasswordCollector | ValidatedPasswordCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | QrCodeCollectorBase | AgreementCollector | UnknownCollector | IdpCollector | FlowCollector | SubmitCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" > | MultiSelectCollector | ReadOnlyCollector )[]> & {
1176+ getInitialState: () => (TextCollector | SingleSelectCollector | PasswordCollector | ValidatedPasswordCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | QrCodeCollectorBase | AgreementCollector | UnknownCollector | IdpCollector | FlowCollector | SubmitCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" > | MultiSelectCollector | ReadOnlyCollector )[];
11751177};
11761178
11771179// @public (undocumented)
@@ -1323,7 +1325,90 @@ export interface OutgoingQueryParams {
13231325}
13241326
13251327// @public (undocumented)
1326- export type PasswordCollector = SingleValueCollectorNoValue <' PasswordCollector' >;
1328+ export interface PasswordCollector {
1329+ // (undocumented)
1330+ category: ' SingleValueCollector' ;
1331+ // (undocumented)
1332+ error: string | null ;
1333+ // (undocumented)
1334+ id: string ;
1335+ // (undocumented)
1336+ input: {
1337+ key: string ;
1338+ value: string | number | boolean ;
1339+ type: string ;
1340+ };
1341+ // (undocumented)
1342+ name: string ;
1343+ // (undocumented)
1344+ output: {
1345+ key: string ;
1346+ label: string ;
1347+ type: string ;
1348+ verify: boolean ;
1349+ };
1350+ // (undocumented)
1351+ type: ' PasswordCollector' ;
1352+ }
1353+
1354+ // @public
1355+ export type PasswordField = {
1356+ type: ' PASSWORD' | ' PASSWORD_VERIFY' ;
1357+ key: string ;
1358+ label: string ;
1359+ required? : boolean ;
1360+ verify? : boolean ;
1361+ passwordPolicy? : PasswordPolicy ;
1362+ };
1363+
1364+ // @public (undocumented)
1365+ export interface PasswordPolicy {
1366+ // (undocumented)
1367+ createdAt? : string ;
1368+ // (undocumented)
1369+ default? : boolean ;
1370+ // (undocumented)
1371+ description? : string ;
1372+ // (undocumented)
1373+ excludesCommonlyUsed? : boolean ;
1374+ // (undocumented)
1375+ excludesProfileData? : boolean ;
1376+ // (undocumented)
1377+ history? : {
1378+ count? : number ;
1379+ retentionDays? : number ;
1380+ };
1381+ // (undocumented)
1382+ id? : string ;
1383+ // (undocumented)
1384+ length? : {
1385+ min? : number ;
1386+ max? : number ;
1387+ };
1388+ // (undocumented)
1389+ lockout? : {
1390+ failureCount? : number ;
1391+ durationSeconds? : number ;
1392+ };
1393+ // (undocumented)
1394+ maxAgeDays? : number ;
1395+ // (undocumented)
1396+ maxRepeatedCharacters? : number ;
1397+ // (undocumented)
1398+ minAgeDays? : number ;
1399+ // (undocumented)
1400+ minCharacters? : Record <string , number >;
1401+ // (undocumented)
1402+ minUniqueCharacters? : number ;
1403+ // (undocumented)
1404+ name? : string ;
1405+ // (undocumented)
1406+ notSimilarToCurrent? : boolean ;
1407+ // (undocumented)
1408+ populationCount? : number ;
1409+ // (undocumented)
1410+ updatedAt? : string ;
1411+ }
13271412
13281413// @public (undocumented)
13291414export type PhoneNumberCollector = ObjectValueCollectorWithObjectValue <' PhoneNumberCollector' , PhoneNumberInputValue , PhoneNumberOutputValue >;
@@ -1588,10 +1673,10 @@ export interface SingleValueCollectorNoValue<T extends SingleValueCollectorTypes
15881673}
15891674
15901675// @public (undocumented)
1591- export type SingleValueCollectors = SingleValueCollectorNoValue < ' PasswordCollector' > | SingleSelectCollectorWithValue <' SingleSelectCollector' > | SingleValueCollectorWithValue <' SingleValueCollector' > | SingleValueCollectorWithValue <' TextCollector' > | ValidatedSingleValueCollectorWithValue <' TextCollector' >;
1676+ export type SingleValueCollectors = PasswordCollector | ValidatedPasswordCollector | SingleSelectCollectorWithValue <' SingleSelectCollector' > | SingleValueCollectorWithValue <' SingleValueCollector' > | SingleValueCollectorWithValue <' TextCollector' > | ValidatedSingleValueCollectorWithValue <' TextCollector' >;
15921677
15931678// @public
1594- export type SingleValueCollectorTypes = ' PasswordCollector' | ' SingleValueCollector' | ' SingleSelectCollector' | ' SingleSelectObjectCollector' | ' TextCollector' | ' ValidatedTextCollector' ;
1679+ export type SingleValueCollectorTypes = ' PasswordCollector' | ' ValidatedPasswordCollector ' | ' SingleValueCollector' | ' SingleSelectCollector' | ' SingleSelectObjectCollector' | ' TextCollector' | ' ValidatedTextCollector' ;
15951680
15961681// @public (undocumented)
15971682export interface SingleValueCollectorWithValue <T extends SingleValueCollectorTypes > {
@@ -1621,11 +1706,11 @@ export interface SingleValueCollectorWithValue<T extends SingleValueCollectorTyp
16211706}
16221707
16231708// @public (undocumented)
1624- export type SingleValueFields = StandardField | ValidatedField | SingleSelectField | ProtectField ;
1709+ export type SingleValueFields = StandardField | PasswordField | ValidatedField | SingleSelectField | ProtectField ;
16251710
16261711// @public (undocumented)
16271712export type StandardField = {
1628- type: ' PASSWORD ' | ' PASSWORD_VERIFY ' | ' TEXT' | ' SUBMIT_BUTTON' | ' FLOW_BUTTON' | ' FLOW_LINK' | ' BUTTON' ;
1713+ type: ' TEXT' | ' SUBMIT_BUTTON' | ' FLOW_BUTTON' | ' FLOW_LINK' | ' BUTTON' ;
16291714 key: string ;
16301715 label: string ;
16311716 required? : boolean ;
@@ -1743,6 +1828,34 @@ export type ValidatedField = {
17431828 };
17441829};
17451830
1831+ // @public (undocumented)
1832+ export interface ValidatedPasswordCollector {
1833+ // (undocumented)
1834+ category: ' SingleValueCollector' ;
1835+ // (undocumented)
1836+ error: string | null ;
1837+ // (undocumented)
1838+ id: string ;
1839+ // (undocumented)
1840+ input: {
1841+ key: string ;
1842+ value: string | number | boolean ;
1843+ type: string ;
1844+ };
1845+ // (undocumented)
1846+ name: string ;
1847+ // (undocumented)
1848+ output: {
1849+ key: string ;
1850+ label: string ;
1851+ type: string ;
1852+ verify: boolean ;
1853+ passwordPolicy: PasswordPolicy ;
1854+ };
1855+ // (undocumented)
1856+ type: ' ValidatedPasswordCollector' ;
1857+ }
1858+
17461859// @public (undocumented)
17471860export interface ValidatedSingleValueCollectorWithValue <T extends SingleValueCollectorTypes > {
17481861 // (undocumented)
0 commit comments