/** * TTLock * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v3.1.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ApiErrorResponse, GetUsers200Response, LoginResponse } from '../models/index'; export interface DeleteUserRequest { clientId: string; accessToken: string; date: number; username: string; } export interface GetUsersRequest { clientId: string; date: number; clientSecret: string; pageNo?: number; pageSize?: number; startDate?: number; endDate?: number; } export interface RegisterRequest { clientId: string; clientSecret: string; username: string; password: string; date: number; } /** * */ export declare class UserApi extends runtime.BaseAPI { /** * Delete user */ deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Delete user */ deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * List the users registered by cloud: This will not return users registered in TTLock APP. * Get user list */ getUsersRaw(requestParameters: GetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the users registered by cloud: This will not return users registered in TTLock APP. * Get user list */ getUsers(requestParameters: GetUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * If you already have or plan to maintain your own user info in your database, and do not want to let us to know your user info, you can create an user account via this and bind it with the user in your system. For example 1. Your client registered an email account (`alexa@google.com`) in your system; 2. You request this to register an user in cloud server, username parameter can be a random string, for example: `c042f4db68f23406c6cecf84a7ebb0fe`, cloud will return a prefixed username: `abcd_c042f4db68f23406c6cecf84a7ebb0fe`, the prefix abcd_is randomly generated when Create application, it is used for user namespace of different applications, there is no other use of it, it can\'t be customized; 3. You maintain a relation between your user account `alexa@google.com` and open cloud\'s user account `abcd_c042f4db68f23406c6cecf84a7ebb0fe`; 4. When the user `alexa@google.com` have to access cloud, Get Access Token with username `abcd_c042f4db68f23406c6cecf84a7ebb0fe`. Only password of users registered by cloud can be rested. You can\'t reset password of user accounts registered in TTLock APP * User registration or password reset */ registerRaw(requestParameters: RegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * If you already have or plan to maintain your own user info in your database, and do not want to let us to know your user info, you can create an user account via this and bind it with the user in your system. For example 1. Your client registered an email account (`alexa@google.com`) in your system; 2. You request this to register an user in cloud server, username parameter can be a random string, for example: `c042f4db68f23406c6cecf84a7ebb0fe`, cloud will return a prefixed username: `abcd_c042f4db68f23406c6cecf84a7ebb0fe`, the prefix abcd_is randomly generated when Create application, it is used for user namespace of different applications, there is no other use of it, it can\'t be customized; 3. You maintain a relation between your user account `alexa@google.com` and open cloud\'s user account `abcd_c042f4db68f23406c6cecf84a7ebb0fe`; 4. When the user `alexa@google.com` have to access cloud, Get Access Token with username `abcd_c042f4db68f23406c6cecf84a7ebb0fe`. Only password of users registered by cloud can be rested. You can\'t reset password of user accounts registered in TTLock APP * User registration or password reset */ register(requestParameters: RegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } //# sourceMappingURL=UserApi.d.ts.map