@indexea/sdk
Version:
Indexea JavaScript SDK (indexea.com)
153 lines (152 loc) • 3.4 kB
TypeScript
/**
* Indexea OpenAPI
* 这是 Indexea 搜索服务平台的 OpenAPI,用于描述平台的所有接口信息,你可以通过这个页面来了解和在线验证平台的所有接口信息。 ### Errors 本 API 使用标准的 HTTP 状态码来指示操作成功或者失败,如果失败将会在 body 中以 JSON 格式提供详细的错误信息,如下所示: ``` { \"error\": 404, \"message\": \"page not found\" } ```
*
* The version of the OpenAPI document: 1.0.0
* Contact: indexea.com@gmail.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { AppBean } from './AppBean';
/**
* 账号详情
* @export
* @interface AccountBean
*/
export interface AccountBean {
/**
*
* @type {number}
* @memberof AccountBean
*/
id?: number;
/**
* 如果是第三方应用,此值为三方应用的权限
* @type {string}
* @memberof AccountBean
*/
scopes?: string;
/**
* 登录令牌(执行登录方法时该值为可用的 token)
* @type {string}
* @memberof AccountBean
*/
token?: string;
/**
* token 的有效时间
* @type {Date}
* @memberof AccountBean
*/
tokenAt?: Date;
/**
*
* @type {string}
* @memberof AccountBean
*/
name?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
account?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
avatar?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
company?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
nation?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
state?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
city?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
address?: string;
/**
*
* @type {string}
* @memberof AccountBean
*/
loginIp?: string;
/**
*
* @type {Date}
* @memberof AccountBean
*/
loginAt?: Date;
/**
*
* @type {Date}
* @memberof AccountBean
*/
createdAt?: Date;
/**
* 账号来源
* @type {string}
* @memberof AccountBean
*/
origin?: string;
/**
*
* @type {number}
* @memberof AccountBean
*/
subscription?: number;
/**
*
* @type {object}
* @memberof AccountBean
*/
settings?: object;
/**
*
* @type {Array<string>}
* @memberof AccountBean
*/
roles?: Array<string>;
/**
*
* @type {number}
* @memberof AccountBean
*/
status?: number;
/**
* 应用列表
* @type {Array<AppBean>}
* @memberof AccountBean
*/
apps?: Array<AppBean>;
}
/**
* Check if a given object implements the AccountBean interface.
*/
export declare function instanceOfAccountBean(value: object): boolean;
export declare function AccountBeanFromJSON(json: any): AccountBean;
export declare function AccountBeanFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBean;
export declare function AccountBeanToJSON(value?: AccountBean | null): any;