import { RequestRole } from "./../../constant/enumType/RequestRole"; import { RequestType } from "./../../constant/enumType/RequestType"; import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest"; import { AuthenticateModels } from "./AuthenticateModels"; /** * Typed request wrappers for the Authenticate domain. * * Each class in this namespace extends * {@link CustomOperationRequestAbstract} and binds a typed * `*RequestData` DTO from {@link AuthenticateModels} to the * matching {@link OperationCode}, plus the * {@link RequestType.Authenticate} domain and * {@link RequestRole.Client} permission scope. * * Application code rarely instantiates these directly — the * `GNNetwork.authenticate.*` helpers in * {@link AuthenticateApi} build them under the hood. Reach for * the raw wrapper only when issuing a request through the * low-level helpers such as * {@link GNNetwork.sendViaHttpTRequestTResponse}. * * Wire-format conversion happens in * {@link CustomOperationRequestAbstract.build} which serialises * the DTO via {@link ConverterService.serializeObject}. */ export declare namespace AuthenticateRequestModels { /** * Maps the LoginByAccount operation to a typed request wrapper. */ class LoginByAccountOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByAccountOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByAccountRequestData, timeout: number); } /** * Maps the LoginByAndroidDeviceId operation to a typed request wrapper. */ class LoginByAndroidDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByAndroidDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByAndroidDeviceIdRequestData, timeout: number); } /** * Maps the LoginByApple operation to a typed request wrapper. */ class LoginByAppleOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByAppleOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByAppleRequestData, timeout: number); } /** * Maps the LoginByCustomDeviceId operation to a typed request wrapper. */ class LoginByCustomDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByCustomDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByCustomDeviceIdRequestData, timeout: number); } /** * Maps the LoginByCustomId operation to a typed request wrapper. */ class LoginByCustomIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByCustomIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByCustomIdRequestData, timeout: number); } /** * Maps the LoginByEditorDeviceId operation to a typed request wrapper. */ class LoginByEditorDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByEditorDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByEditorDeviceIdRequestData, timeout: number); } /** * Maps the LoginByFacebook operation to a typed request wrapper. */ class LoginByFacebookOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByFacebookOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByFacebookRequestData, timeout: number); } /** * Maps the LoginByGenericService operation to a typed request wrapper. */ class LoginByGenericServiceOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByGenericServiceOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByGenericServiceRequestData, timeout: number); } /** * Maps the LoginByGoogle operation to a typed request wrapper. */ class LoginByGoogleOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByGoogleOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByGoogleRequestData, timeout: number); } /** * Maps the LoginByGooglePlayGameService operation to a typed request wrapper. */ class LoginByGooglePlayGameServiceOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByGooglePlayGameServiceOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByGooglePlayGameServiceRequestData, timeout: number); } /** * Maps the LoginByGameCenter operation to a typed request wrapper. */ class LoginByGameCenterOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByGameCenterOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByGameCenterRequestData, timeout: number); } /** * Maps the LoginByiOSDeviceId operation to a typed request wrapper. */ class LoginByiOSDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByiOSDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByiOSDeviceIdRequestData, timeout: number); } /** * Maps the LoginByLinuxDeviceId operation to a typed request wrapper. */ class LoginByLinuxDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByLinuxDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByLinuxDeviceIdRequestData, timeout: number); } /** * Maps the LoginByMacOSDeviceId operation to a typed request wrapper. */ class LoginByMacOSDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByMacOSDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByMacOSDeviceIdRequestData, timeout: number); } /** * Maps the LoginByWindowsDeviceId operation to a typed request wrapper. */ class LoginByWindowsDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByWindowsDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByWindowsDeviceIdRequestData, timeout: number); } /** * Maps the LoginByWindowsPhoneDeviceId operation to a typed request wrapper. */ class LoginByWindowsPhoneDeviceIdOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new LoginByWindowsPhoneDeviceIdOperationRequest instance. */ constructor(requestData: AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData, timeout: number); } /** * Maps the RegisterAccount operation to a typed request wrapper. */ class RegisterAccountOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new RegisterAccountOperationRequest instance. */ constructor(requestData: AuthenticateModels.RegisterAccountRequestData, timeout: number); } /** * Maps the `RefreshAuthToken` operation to a typed request wrapper. * * The wrapped request body is intentionally empty; auth context still comes from the current token. */ class RefreshAuthTokenOperationRequest extends CustomOperationRequestAbstract { protected operationCode: string; protected requestType: RequestType; protected role: RequestRole; /** * Creates a new RefreshAuthTokenOperationRequest instance. */ constructor(requestData: AuthenticateModels.RefreshAuthTokenRequestData, timeout: number); } }