1 | import { Handler } from "../../handler";
|
2 | import { BaseTriggerEvent, StringMap } from "./_common";
|
3 |
|
4 | export interface BasePostConfirmationTriggerEvent<T extends string> extends BaseTriggerEvent<T> {
|
5 | request: {
|
6 | userAttributes: StringMap;
|
7 | clientMetadata?: StringMap | undefined;
|
8 | };
|
9 | }
|
10 |
|
11 | export type PostConfirmationConfirmSignUpTriggerEvent = BasePostConfirmationTriggerEvent<
|
12 | "PostConfirmation_ConfirmSignUp"
|
13 | >;
|
14 |
|
15 | export type PostConfirmationConfirmForgotPassword = BasePostConfirmationTriggerEvent<
|
16 | "PostConfirmation_ConfirmForgotPassword"
|
17 | >;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export type PostConfirmationTriggerEvent =
|
23 | | PostConfirmationConfirmSignUpTriggerEvent
|
24 | | PostConfirmationConfirmForgotPassword;
|
25 |
|
26 | export type PostConfirmationTriggerHandler = Handler<PostConfirmationTriggerEvent>;
|