/****************************************************************************** * * (C) 2022 AhnLab Blockchain Company, Inc. All rights reserved. * Any part of this source code can not be copied with any method without * prior written permission from the author or authorized person. * ******************************************************************************/ import { z } from 'zod'; /** * Controller dto */ export declare const RegisterDto: z.ZodObject<{ address: z.ZodString; email: z.ZodString; accountName: z.ZodString; pubkey: z.ZodString; ucPubkey: z.ZodString; sid: z.ZodString; uid: z.ZodString; wid: z.ZodNumber; }, "strip", z.ZodTypeAny, { address?: string; email?: string; accountName?: string; pubkey?: string; ucPubkey?: string; sid?: string; uid?: string; wid?: number; }, { address?: string; email?: string; accountName?: string; pubkey?: string; ucPubkey?: string; sid?: string; uid?: string; wid?: number; }>; export declare const UnlockDto: z.ZodObject<{ r: z.ZodString; s: z.ZodString; hashMessage: z.ZodString; sid: z.ZodString; wid: z.ZodNumber; }, "strip", z.ZodTypeAny, { r?: string; s?: string; hashMessage?: string; sid?: string; wid?: number; }, { r?: string; s?: string; hashMessage?: string; sid?: string; wid?: number; }>; export declare const TwofaGenVerifyDto: z.ZodObject<{ token: z.ZodString; }, "strip", z.ZodTypeAny, { token?: string; }, { token?: string; }>; export declare const TwofaVerifyDto: z.ZodObject<{ token: z.ZodString; }, "strip", z.ZodTypeAny, { token?: string; }, { token?: string; }>; export declare const TwofaVerifyMpcDto: z.ZodObject<{ token: z.ZodString; jsonUnsignedTx: z.ZodString; }, "strip", z.ZodTypeAny, { token?: string; jsonUnsignedTx?: string; }, { token?: string; jsonUnsignedTx?: string; }>; export declare const TwofaResetDto: z.ZodObject<{ resetCode: z.ZodString; }, "strip", z.ZodTypeAny, { resetCode?: string; }, { resetCode?: string; }>; export declare const GetChallengeMessageDto: z.ZodObject<{ sid: z.ZodString; }, "strip", z.ZodTypeAny, { sid?: string; }, { sid?: string; }>; export declare const AuthGenDto: z.ZodObject<{ signType: z.ZodString; jsonMessage: z.ZodString; }, "strip", z.ZodTypeAny, { signType?: string; jsonMessage?: string; }, { signType?: string; jsonMessage?: string; }>; export declare const RecoverDto: z.ZodObject<{ ucPubkey: z.ZodString; }, "strip", z.ZodTypeAny, { ucPubkey?: string; }, { ucPubkey?: string; }>; export declare const UpdateAccountNameDto: z.ZodObject<{ accountId: z.ZodNumber; accountName: z.ZodString; }, "strip", z.ZodTypeAny, { accountId?: number; accountName?: string; }, { accountId?: number; accountName?: string; }>; export declare const AddAutoconfirmDto: z.ZodObject<{ contractAddress: z.ZodString; funcName: z.ZodString; funcHash: z.ZodString; domainName: z.ZodString; chainId: z.ZodNumber; }, "strip", z.ZodTypeAny, { contractAddress?: string; funcName?: string; funcHash?: string; domainName?: string; chainId?: number; }, { contractAddress?: string; funcName?: string; funcHash?: string; domainName?: string; chainId?: number; }>; export declare const DeleteAutoconfirmDto: z.ZodObject<{ autoConfirmId: z.ZodString; }, "strip", z.ZodTypeAny, { autoConfirmId?: string; }, { autoConfirmId?: string; }>; export declare const AddFavoriteDto: z.ZodObject<{ chainId: z.ZodNumber; nickname: z.ZodString; address: z.ZodString; }, "strip", z.ZodTypeAny, { chainId?: number; nickname?: string; address?: string; }, { chainId?: number; nickname?: string; address?: string; }>; export declare const UpdateFavoriteDto: z.ZodObject<{ nickname: z.ZodString; favoriteId: z.ZodString; address: z.ZodString; chainId: z.ZodNumber; }, "strip", z.ZodTypeAny, { nickname?: string; favoriteId?: string; address?: string; chainId?: number; }, { nickname?: string; favoriteId?: string; address?: string; chainId?: number; }>; export declare const DeleteFavoriteDto: z.ZodObject<{ favoriteId: z.ZodString; }, "strip", z.ZodTypeAny, { favoriteId?: string; }, { favoriteId?: string; }>; export type RegisterDto = z.infer; export type UnlockDto = z.infer; export type TwofaGenVerifyDto = z.infer; export type TwofaVerifyDto = z.infer; export type TwofaVerifyMpcDto = z.infer; export type TwofaResetDto = z.infer; export type GetChallengeMessageDto = z.infer; export type AuthGenDto = z.infer; export type RecoverDto = z.infer; export type UpdateAccountNameDto = z.infer; export type AddAutoconfirmDto = z.infer; export type DeleteAutoconfirmDto = z.infer; export type AddFavoriteDto = z.infer; export type UpdateFavoriteDto = z.infer; export type DeleteFavoriteDto = z.infer; /** * Controller response */ export declare const UnlockResponse: z.ZodObject<{ accessToken: z.ZodString; expiresIn: z.ZodString; }, "strip", z.ZodTypeAny, { accessToken?: string; expiresIn?: string; }, { accessToken?: string; expiresIn?: string; }>; export declare const TwofaGenResponse: z.ZodObject<{ qrcode: z.ZodString; secret: z.ZodString; }, "strip", z.ZodTypeAny, { qrcode?: string; secret?: string; }, { qrcode?: string; secret?: string; }>; export declare const TwofaGenVerifyResponse: z.ZodObject<{ twofaResetCode: z.ZodString; user: z.ZodObject<{ uid: z.ZodString; wid: z.ZodNumber; email: z.ZodOptional; abcUid: z.ZodOptional; accounts: z.ZodArray, "many">; favorites: z.ZodArray, "many">; autoconfirms: z.ZodArray, "many">; twoFactorEnabled: z.ZodBoolean; twoFactorFreezeEndTime: z.ZodOptional>; twoFactorResetRetryCount: z.ZodOptional>; twoFactorRetryFreezeEndTime: z.ZodOptional>; tempTwoFactorSecret: z.ZodOptional>; twoFactorSecret: z.ZodOptional>; twoFAResetCode: z.ZodOptional>; }, "strip", z.ZodTypeAny, { uid?: string; wid?: number; email?: string; abcUid?: string; accounts?: { id?: number; sid?: string; ethAddress?: string; pubkey?: string; icon?: string; name?: string; signer?: string; }[]; favorites?: { id?: string; chainId?: number; address?: string; nickname?: string; created?: string; }[]; autoconfirms?: { contractAddress?: string; chainId?: number; funcHash?: string; funcName?: string; domainName?: string; created?: string; }[]; twoFactorEnabled?: boolean; twoFactorFreezeEndTime?: number; twoFactorResetRetryCount?: number; twoFactorRetryFreezeEndTime?: number; tempTwoFactorSecret?: string; twoFactorSecret?: string; twoFAResetCode?: string; }, { uid?: string; wid?: number; email?: string; abcUid?: string; accounts?: { id?: number; sid?: string; ethAddress?: string; pubkey?: string; icon?: string; name?: string; signer?: string; }[]; favorites?: { id?: string; chainId?: number; address?: string; nickname?: string; created?: string; }[]; autoconfirms?: { contractAddress?: string; chainId?: number; funcHash?: string; funcName?: string; domainName?: string; created?: string; }[]; twoFactorEnabled?: boolean; twoFactorFreezeEndTime?: number; twoFactorResetRetryCount?: number; twoFactorRetryFreezeEndTime?: number; tempTwoFactorSecret?: string; twoFactorSecret?: string; twoFAResetCode?: string; }>; }, "strip", z.ZodTypeAny, { twofaResetCode?: string; user?: { uid?: string; wid?: number; email?: string; abcUid?: string; accounts?: { id?: number; sid?: string; ethAddress?: string; pubkey?: string; icon?: string; name?: string; signer?: string; }[]; favorites?: { id?: string; chainId?: number; address?: string; nickname?: string; created?: string; }[]; autoconfirms?: { contractAddress?: string; chainId?: number; funcHash?: string; funcName?: string; domainName?: string; created?: string; }[]; twoFactorEnabled?: boolean; twoFactorFreezeEndTime?: number; twoFactorResetRetryCount?: number; twoFactorRetryFreezeEndTime?: number; tempTwoFactorSecret?: string; twoFactorSecret?: string; twoFAResetCode?: string; }; }, { twofaResetCode?: string; user?: { uid?: string; wid?: number; email?: string; abcUid?: string; accounts?: { id?: number; sid?: string; ethAddress?: string; pubkey?: string; icon?: string; name?: string; signer?: string; }[]; favorites?: { id?: string; chainId?: number; address?: string; nickname?: string; created?: string; }[]; autoconfirms?: { contractAddress?: string; chainId?: number; funcHash?: string; funcName?: string; domainName?: string; created?: string; }[]; twoFactorEnabled?: boolean; twoFactorFreezeEndTime?: number; twoFactorResetRetryCount?: number; twoFactorRetryFreezeEndTime?: number; tempTwoFactorSecret?: string; twoFactorSecret?: string; twoFAResetCode?: string; }; }>; export declare const TwofaVerifyMpcResponse: z.ZodObject<{ mpcToken: z.ZodString; }, "strip", z.ZodTypeAny, { mpcToken?: string; }, { mpcToken?: string; }>; export declare const GetTwofaResetcodeResponse: z.ZodObject<{ twofaResetcode: z.ZodString; }, "strip", z.ZodTypeAny, { twofaResetcode?: string; }, { twofaResetcode?: string; }>; /** * ABC Response */ export declare const AbcLoginResponse: z.ZodObject<{ access_token: z.ZodString; refresh_token: z.ZodString; token_type: z.ZodString; expire_in: z.ZodNumber; }, "strip", z.ZodTypeAny, { access_token?: string; refresh_token?: string; token_type?: string; expire_in?: number; }, { access_token?: string; refresh_token?: string; token_type?: string; expire_in?: number; }>; export declare const AbcSearchBlacklistResopnse: z.ZodObject<{ address: z.ZodOptional; platform: z.ZodNullable>; description: z.ZodNullable>; chain_id: z.ZodNullable>; filter_id: z.ZodNullable>; filter_type: z.ZodOptional; filter_type_str: z.ZodString; }, "strip", z.ZodTypeAny, { address?: string; platform?: string; description?: string; chain_id?: number; filter_id?: string; filter_type?: number; filter_type_str?: string; }, { address?: string; platform?: string; description?: string; chain_id?: number; filter_id?: string; filter_type?: number; filter_type_str?: string; }>; export declare const AbcSearchBlackDomainResopnse: z.ZodObject<{ filter_id: z.ZodNullable>; domain: z.ZodOptional; description: z.ZodNullable>; filter_type: z.ZodOptional; filter_type_str: z.ZodString; }, "strip", z.ZodTypeAny, { filter_id?: string; domain?: string; description?: string; filter_type?: number; filter_type_str?: string; }, { filter_id?: string; domain?: string; description?: string; filter_type?: number; filter_type_str?: string; }>; export declare const AbcCreateSecureChannelResponse: z.ZodObject<{ channelid: z.ZodString; publickey: z.ZodString; encrypted: z.ZodString; }, "strip", z.ZodTypeAny, { channelid?: string; publickey?: string; encrypted?: string; }, { channelid?: string; publickey?: string; encrypted?: string; }>; export declare const AbcGetUrgentNoticeResponse: z.ZodNullable, { noticeId: string; startTime: string; endTime: string; title: string; message: string; link: string; }, { notice_id?: string; start_time?: string; end_time?: string; title?: string; message?: string; link?: string; }>, { noticeId: string; startTime: string; endTime: string; title: string; message: string; link: string; }, { notice_id?: string; start_time?: string; end_time?: string; title?: string; message?: string; link?: string; }>>; export type UnlockResponse = z.infer; export type TwofaGenResponse = z.infer; export type TwofaGenVerifyResponse = z.infer; export type TwofaVerifyMpcResponse = z.infer; export type GetTwofaResetcodeResponse = z.infer; export type AbcLoginResponse = z.infer; export type AbcSearchBlacklistResopnse = z.infer; export type AbcCreateSecureChannelResponse = z.infer; export type AbcSearchBlackDomainResopnse = z.infer; export type AbcGetUrgentNoticeResponse = z.infer;