@@ -140,7 +140,7 @@ export interface AutoCollector<C extends AutoCollectorCategories, T extends Auto
140140export type AutoCollectorCategories = ' SingleValueAutoCollector' | ' ObjectValueAutoCollector' ;
141141
142142// @public (undocumented)
143- export type AutoCollectors = ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | PollingCollector | SingleValueAutoCollector | ObjectValueAutoCollector ;
143+ export type AutoCollectors = ProtectCollector | FidoRegistrationCollector | FidoAuthenticationCollector | MetadataCollector | PollingCollector | SingleValueAutoCollector | ObjectValueAutoCollector ;
144144
145145// @public (undocumented)
146146export type AutoCollectorTypes = SingleValueAutoCollectorTypes | ObjectValueAutoCollectorTypes ;
@@ -173,7 +173,7 @@ export interface CollectorRichContent {
173173}
174174
175175// @public (undocumented)
176- export type Collectors = FlowCollector | PasswordCollector | ValidatedPasswordCollector | TextCollector | BooleanCollector | ValidatedBooleanCollector | SingleSelectCollector | IdpCollector | SubmitCollector | ActionCollector <' ActionCollector' > | SingleValueCollector <' SingleValueCollector' > | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | PhoneNumberExtensionCollector | ReadOnlyCollector | RichTextCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | QrCodeCollector | ImageCollector | UnknownCollector ;
176+ export type Collectors = FlowCollector | MetadataCollector | PasswordCollector | ValidatedPasswordCollector | TextCollector | BooleanCollector | ValidatedBooleanCollector | SingleSelectCollector | IdpCollector | SubmitCollector | ActionCollector <' ActionCollector' > | SingleValueCollector <' SingleValueCollector' > | MultiSelectCollector | DeviceAuthenticationCollector | DeviceRegistrationCollector | PhoneNumberCollector | PhoneNumberExtensionCollector | ReadOnlyCollector | RichTextCollector | ValidatedTextCollector | ProtectCollector | PollingCollector | FidoRegistrationCollector | FidoAuthenticationCollector | QrCodeCollector | ImageCollector | UnknownCollector ;
177177
178178// @public
179179export type CollectorValueType <T > = T extends {
@@ -211,6 +211,8 @@ export type CollectorValueType<T> = T extends {
211211} ? FidoRegistrationInputValue : T extends {
212212 type: ' FidoAuthenticationCollector' ;
213213} ? FidoAuthenticationInputValue : T extends {
214+ type: ' MetadataCollector' ;
215+ } ? Record <string , unknown > | MetadataError : T extends {
214216 category: ' SingleValueCollector' ;
215217} ? string : T extends {
216218 category: ' ValidatedSingleValueCollector' ;
@@ -225,10 +227,10 @@ export type CollectorValueType<T> = T extends {
225227} ? never : CollectorValueTypes ;
226228
227229// @public
228- export type CollectorValueTypes = string | string [] | boolean | PhoneNumberInputValue | PhoneNumberExtensionInputValue | FidoRegistrationInputValue | FidoAuthenticationInputValue ;
230+ export type CollectorValueTypes = string | string [] | boolean | PhoneNumberInputValue | PhoneNumberExtensionInputValue | FidoRegistrationInputValue | FidoAuthenticationInputValue | MetadataError ;
229231
230232// @public (undocumented)
231- export type ComplexValueFields = DeviceAuthenticationField | DeviceRegistrationField | PhoneNumberField | PhoneNumberExtensionField | FidoRegistrationField | FidoAuthenticationField | PollingField ;
233+ export type ComplexValueFields = DeviceAuthenticationField | DeviceRegistrationField | PhoneNumberField | PhoneNumberExtensionField | FidoRegistrationField | FidoAuthenticationField | PollingField | MetadataField ;
232234
233235// @public (undocumented)
234236export interface ContinueNode {
@@ -283,7 +285,7 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
283285 resume: (input : {
284286 continueToken: string ;
285287 }) => Promise <InternalErrorResponse | NodeStates >;
286- start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode >;
288+ start: <QueryParams extends OutgoingQueryParams = OutgoingQueryParams >(options ? : StartOptions <QueryParams > | undefined ) => Promise <ContinueNode | ErrorNode | StartNode | SuccessNode | FailureNode >;
287289 update: <T extends SingleValueCollectors | MultiSelectCollector | ObjectValueCollectors | AutoCollectors >(collector : T ) => Updater <T >;
288290 validate: (collector : SingleValueCollectors | ObjectValueCollectors | MultiValueCollectors | AutoCollectors ) => Validator ;
289291 pollStatus: (collector : PollingCollector ) => Poller ;
@@ -293,27 +295,27 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
293295 description? : string ;
294296 name? : string ;
295297 status: " continue" ;
298+ } | {
299+ status: " start" ;
296300 } | {
297301 action: string ;
298302 collectors: Collectors [];
299303 description? : string ;
300304 name? : string ;
301305 status: " error" ;
302- } | {
303- status: " failure" ;
304- } | {
305- status: " start" ;
306306 } | {
307307 authorization? : {
308308 code? : string ;
309309 state? : string ;
310310 };
311311 status: " success" ;
312+ } | {
313+ status: " failure" ;
312314 } | null ;
313315 getCollectors: () => Collectors [];
314316 getError: () => DaVinciError | null ;
315317 getErrorCollectors: () => CollectorErrors [];
316- getNode: () => ContinueNode | ErrorNode | FailureNode | StartNode | SuccessNode ;
318+ getNode: () => ContinueNode | ErrorNode | StartNode | SuccessNode | FailureNode ;
317319 getServer: () => {
318320 _links? : Links ;
319321 id? : string ;
@@ -322,6 +324,8 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
322324 href? : string ;
323325 eventName? : string ;
324326 status: " continue" ;
327+ } | {
328+ status: " start" ;
325329 } | {
326330 _links? : Links ;
327331 eventName? : string ;
@@ -332,22 +336,20 @@ export function davinci<ActionType extends ActionTypes = ActionTypes>(input: {
332336 } | {
333337 _links? : Links ;
334338 eventName? : string ;
335- href? : string ;
336339 id? : string ;
337340 interactionId? : string ;
338341 interactionToken? : string ;
339- status : " failure " ;
340- } | {
341- status: " start " ;
342+ href ? : string ;
343+ session ? : string ;
344+ status: " success " ;
342345 } | {
343346 _links? : Links ;
344347 eventName? : string ;
348+ href? : string ;
345349 id? : string ;
346350 interactionId? : string ;
347351 interactionToken? : string ;
348- href? : string ;
349- session? : string ;
350- status: " success" ;
352+ status: " failure" ;
351353 } | null ;
352354 cache: {
353355 getLatestResponse: () => ({
@@ -636,6 +638,9 @@ export interface DaVinciRequest {
636638 };
637639}
638640
641+ // @public
642+ export type DaVinciRequestValueTypes = string | number | boolean | (string | number | boolean )[] | DeviceValue | PhoneNumberInputValue | FidoRegistrationInputValue | FidoAuthenticationInputValue | MetadataError ;
643+
639644// @public (undocumented)
640645export interface DaVinciSuccessResponse extends DaVinciBaseResponse {
641646 // (undocumented)
@@ -968,7 +973,7 @@ export type ImageField = {
968973export type InferActionCollectorType <T extends ActionCollectorTypes > = T extends ' IdpCollector' ? IdpCollector : T extends ' SubmitCollector' ? SubmitCollector : T extends ' FlowCollector' ? FlowCollector : ActionCollectorWithUrl <' ActionCollector' > | ActionCollectorNoUrl <' ActionCollector' >;
969974
970975// @public
971- export type InferAutoCollectorType <T extends AutoCollectorTypes > = T extends ' ProtectCollector' ? ProtectCollector : T extends ' PollingCollector' ? PollingCollector : T extends ' FidoRegistrationCollector' ? FidoRegistrationCollector : T extends ' FidoAuthenticationCollector' ? FidoAuthenticationCollector : T extends ' ObjectValueAutoCollector' ? ObjectValueAutoCollector : SingleValueAutoCollector ;
976+ export type InferAutoCollectorType <T extends AutoCollectorTypes > = T extends ' ProtectCollector' ? ProtectCollector : T extends ' PollingCollector' ? PollingCollector : T extends ' FidoRegistrationCollector' ? FidoRegistrationCollector : T extends ' FidoAuthenticationCollector' ? FidoAuthenticationCollector : T extends ' MetadataCollector ' ? MetadataCollector : T extends ' ObjectValueAutoCollector' ? ObjectValueAutoCollector : SingleValueAutoCollector ;
972977
973978// @public
974979export type InferMultiValueCollectorType <T extends MultiValueCollectorTypes > = T extends ' MultiSelectCollector' ? MultiValueCollectorWithValue <' MultiSelectCollector' > : MultiValueCollectorWithValue <' MultiValueCollector' > | MultiValueCollectorNoValue <' MultiValueCollector' >;
@@ -1005,6 +1010,27 @@ export interface Links {
10051010
10061011export { LogLevel }
10071012
1013+ // @public (undocumented)
1014+ export type MetadataCollector = AutoCollector <' ObjectValueAutoCollector' , ' MetadataCollector' , MetadataCollectorInputValue , Record <string , unknown >>;
1015+
1016+ // @public (undocumented)
1017+ export type MetadataCollectorInputValue = Record <string , unknown > | MetadataError ;
1018+
1019+ // @public
1020+ export interface MetadataError {
1021+ // (undocumented)
1022+ code: string ;
1023+ // (undocumented)
1024+ message: string ;
1025+ }
1026+
1027+ // @public (undocumented)
1028+ export type MetadataField = {
1029+ type: ' METADATA' ;
1030+ key: string ;
1031+ payload: Record <string , unknown >;
1032+ };
1033+
10081034// @public (undocumented)
10091035export type MultiSelectCollector = MultiValueCollectorWithValue <' MultiSelectCollector' >;
10101036
@@ -1222,7 +1248,7 @@ export interface ObjectOptionsCollectorWithStringValue<T extends ObjectValueColl
12221248export type ObjectValueAutoCollector = AutoCollector <' ObjectValueAutoCollector' , ' ObjectValueAutoCollector' , Record <string , unknown >>;
12231249
12241250// @public (undocumented)
1225- export type ObjectValueAutoCollectorTypes = ' ObjectValueAutoCollector' | ' FidoRegistrationCollector' | ' FidoAuthenticationCollector' ;
1251+ export type ObjectValueAutoCollectorTypes = ' ObjectValueAutoCollector' | ' FidoRegistrationCollector' | ' FidoAuthenticationCollector' | ' MetadataCollector ' ;
12261252
12271253// @public (undocumented)
12281254export type ObjectValueCollector <T extends ObjectValueCollectorTypes > = ObjectOptionsCollectorWithObjectValue <T > | ObjectOptionsCollectorWithStringValue <T > | ObjectValueCollectorWithObjectValue <T >;
0 commit comments