1 | import { Handler } from "../../handler";
|
2 | import { BaseTriggerEvent, ChallengeResult, CustomChallengeResult, StringMap } from "./_common";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export interface CreateAuthChallengeTriggerEvent extends BaseTriggerEvent<"CreateAuthChallenge_Authentication"> {
|
8 | request: {
|
9 | userAttributes: StringMap;
|
10 | challengeName: string;
|
11 | session: Array<ChallengeResult | CustomChallengeResult>;
|
12 | userNotFound?: boolean | undefined;
|
13 | clientMetadata?: StringMap | undefined;
|
14 | };
|
15 | response: {
|
16 | publicChallengeParameters: StringMap;
|
17 | privateChallengeParameters: StringMap;
|
18 | challengeMetadata: string;
|
19 | };
|
20 | }
|
21 |
|
22 | export type CreateAuthChallengeTriggerHandler = Handler<CreateAuthChallengeTriggerEvent>;
|