@@ -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' ;
@@ -267,13 +269,11 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
267269 resume: (input : {
268270 continueToken: string ;
269271 }) => Promise <InternalErrorResponse | NodeStates >;
270- start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode >;
272+ start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode >;
271273 update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors >(collector : T ) => Updater <T >;
272274 validate: (collector : SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors ) => Validator ;
273275 poll: (collector : PollingCollector ) => Poller ;
274276 getClient: () => {
275- status: " start" ;
276- } | {
277277 action: string ;
278278 collectors: Collectors [];
279279 description? : string ;
@@ -287,6 +287,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
287287 status: " error" ;
288288 } | {
289289 status: " failure" ;
290+ } | {
291+ status: " start" ;
290292 } | {
291293 authorization? : {
292294 code? : string ;
@@ -297,7 +299,7 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
297299 getCollectors: () => Collectors [];
298300 getError: () => DaVinciError | null ;
299301 getErrorCollectors: () => CollectorErrors [];
300- getNode: () => ContinueNode | StartNode | ErrorNode | FailureNode | SuccessNode ;
302+ getNode: () => ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode ;
301303 getServer: () => {
302304 _links? : Links ;
303305 id? : string ;
@@ -306,8 +308,6 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
306308 href? : string ;
307309 eventName? : string ;
308310 status: " continue" ;
309- } | {
310- status: " start" ;
311311 } | {
312312 _links? : Links ;
313313 eventName? : string ;
@@ -323,6 +323,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
323323 interactionId? : string ;
324324 interactionToken? : string ;
325325 status: " failure" ;
326+ } | {
327+ status: " start" ;
326328 } | {
327329 _links? : Links ;
328330 eventName? : string ;
@@ -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 | ValidatedTextCollector | PasswordCollector | ValidatedPasswordCollector | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | IdpCollector | SubmitCollector | FlowCollector | QrCodeCollectorBase | AgreementCollector | ReadOnlyCollector | UnknownCollector | ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | PollingCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" >)[]> & {
1176+ getInitialState: () => (TextCollector | SingleSelectCollector | ValidatedTextCollector | PasswordCollector | ValidatedPasswordCollector | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | IdpCollector | SubmitCollector | FlowCollector | QrCodeCollectorBase | AgreementCollector | ReadOnlyCollector | UnknownCollector | ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | PollingCollector | ActionCollector <" ActionCollector" > | SingleValueCollector <" SingleValueCollector" >)[];
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