/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */

import { UserAccountAttributes } from "./UserAccountAttributes.js";

export type CustomAuthActionInputs = {
    correlationId?: string;
};

export type AccountRetrievalInputs = CustomAuthActionInputs;

export type SignInInputs = CustomAuthActionInputs & {
    username: string;
    password?: string;
    scopes?: Array<string>;
    claims?: string;
};

export type SignUpInputs = CustomAuthActionInputs & {
    username: string;
    password?: string;
    attributes?: UserAccountAttributes;
};

export type ResetPasswordInputs = CustomAuthActionInputs & {
    username: string;
};

export type AccessTokenRetrievalInputs = {
    forceRefresh: boolean;
    scopes?: Array<string>;
    claims?: string;
};

export type SignInWithContinuationTokenInputs = {
    scopes?: Array<string>;
    claims?: string;
};

/**
 * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
 */
export type SignInInputsV2 = CustomAuthActionInputs & {
    username: string;
    scopes?: Array<string>;
    claims?: string;
};

/**
 * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
 */
export type ResetPasswordInputsV2 = CustomAuthActionInputs & {
    username: string;
    scopes?: Array<string>;
    claims?: string;
};

/**
 * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
 */
export type SignUpInputsV2 = CustomAuthActionInputs & {
    username: string;
    attributes?: UserAccountAttributes;
    scopes?: Array<string>;
    claims?: string;
};
