Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,331 changes: 705 additions & 626 deletions src/AuthenticationClient.ts

Large diffs are not rendered by default.

1,412 changes: 827 additions & 585 deletions src/ManagementClient.ts

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/models/ApplicationTabMethodsSortConfigDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type ApplicationTabMethodsSortConfigDto = {
};
18 changes: 18 additions & 0 deletions src/models/CountCustomFieldsDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CountCustomFieldsDto = {
/**
* 记录总数
*/
all: number;
/**
* 计数
*/
userVisible: number;
/**
* 计数
*/
adminVisible: number;
};
20 changes: 20 additions & 0 deletions src/models/CreateTenantDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,24 @@ export type CreateTenantDto = {
* 租户来源的应用 ID,该值不存在时代表租户来源为 Authing 控制台
*/
sourceAppId?: string;
/**
* 企业邮箱域名
*/
enterpriseDomains?: Array<string>;
/**
* 租户过期时间
*/
expireTime?: string;
/**
* 租户 MAU 上限
*/
mauAmount?: number;
/**
* 租户成员上限
*/
memberAmount?: number;
/**
* 租户管理员上限
*/
adminAmount?: number;
};
29 changes: 29 additions & 0 deletions src/models/DeleteCustomFieldDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type DeleteCustomFieldDto = {
/**
* 主体类型,目前支持用户、角色、分组和部门
*/
targetType: DeleteCustomFieldDto.targetType;
/**
* 字段 key,不能和内置字段的 key 冲突,**设置之后将不能进行修改**。
*/
key: string;
};

export namespace DeleteCustomFieldDto {

/**
* 主体类型,目前支持用户、角色、分组和部门
*/
export enum targetType {
USER = 'USER',
ROLE = 'ROLE',
GROUP = 'GROUP',
DEPARTMENT = 'DEPARTMENT',
}


}
16 changes: 16 additions & 0 deletions src/models/DeleteCustomFieldsReqDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { DeleteCustomFieldDto } from './DeleteCustomFieldDto';

export type DeleteCustomFieldsReqDto = {
/**
* 租户 ID
*/
tenantId: string;
/**
* 自定义字段列表
*/
list: Array<DeleteCustomFieldDto>;
};
4 changes: 4 additions & 0 deletions src/models/GetCustomDataDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* 通过筛选条件,获取用户、分组、角色、组织机构的自定义字段值。
*/
export type GetCustomDataDto = {
/**
* 租户 ID
*/
tenantId?: any;
/**
* 目标对象类型:
* - `USER`: 用户
Expand Down
4 changes: 4 additions & 0 deletions src/models/GetCustomFieldsDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ export type GetCustomFieldsDto = {
* ;该接口暂不支持分组(GROUP)
*/
targetType?: any;
/**
* 租户 ID
*/
tenantId?: any;
};
18 changes: 9 additions & 9 deletions src/models/GetMfaInfoDataDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,39 @@ export type GetMfaInfoDataDto = {
/**
* MFA 绑定的手机号
*/
mfaPhone: string;
mfaPhone?: string;
/**
* MFA 绑定的手机区号
*/
mfaPhoneCountryCode: string;
mfaPhoneCountryCode?: string;
/**
* MFA 绑定的邮箱
*/
mfaEmail: string;
mfaEmail?: string;
/**
* 用户昵称
*/
nickname: string;
nickname?: string;
/**
* 用户名
*/
username: string;
username?: string;
/**
* 用户手机号
*/
phone: string;
phone?: string;
/**
* 用户手机区号
*/
phoneCountryCode: string;
phoneCountryCode?: string;
/**
* 人脸校验是否开启
*/
faceMfaEnabled: boolean;
faceMfaEnabled?: boolean;
/**
* OTP 校验是否开启
*/
totpMfaEnabled: boolean;
totpMfaEnabled?: boolean;
/**
* MFA Factor 列表
*/
Expand Down
25 changes: 25 additions & 0 deletions src/models/GetMfaStatusDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* 获取用户 MFA 状态,即 MFA 触发数据。
*/
export type GetMfaStatusDto = {
/**
* 用户唯一标志,可以是用户 ID、用户名、邮箱、手机号、外部 ID、在外部身份源的 ID。
*/
userId?: any;
/**
* 用户 ID 类型,默认值为 `user_id`,可选值为:
* - `user_id`: Authing 用户 ID,如 `6319a1504f3xxxxf214dd5b7`
* - `phone`: 用户手机号
* - `email`: 用户邮箱
* - `username`: 用户名
* - `external_id`: 用户在外部系统的 ID,对应 Authing 用户信息的 `externalId` 字段
* - `identity`: 用户的外部身份源信息,格式为 `<extIdpId>:<userIdInIdp>`,其中 `<extIdpId>` 为 Authing 身份源的 ID,`<userIdInIdp>` 为用户在外部身份源的 ID。
* 示例值:`62f20932716fbcc10d966ee5:ou_8bae746eac07cd2564654140d2a9ac61`。
*
*/
userIdType?: any;
};
13 changes: 13 additions & 0 deletions src/models/GetTenantByCodeDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* 根据租户 Code 获取租户详情
*/
export type GetTenantByCodeDto = {
/**
* 租户 Code
*/
code?: any;
};
29 changes: 29 additions & 0 deletions src/models/GetTenantLittleInfoDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* 根据租户 ID 获取租户一点点的详情
*/
export type GetTenantLittleInfoDto = {
/**
* 租户 ID
*/
tenantId?: any;
/**
* 是否增加返回租户成员统计
*/
withMembersCount?: any;
/**
* 增加返回租户关联应用简单信息
*/
withAppDetail?: any;
/**
* 增加返回租户下创建者简单信息
*/
withCreatorDetail?: any;
/**
* 增加返回租户来源应用简单信息
*/
withSourceAppDetail?: any;
};
26 changes: 26 additions & 0 deletions src/models/LinkIdentity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type LinkIdentity = {
/**
* 必传,用户在该外部身份源的唯一标识,需要从外部身份源的认证返回值中获取。
*/
userIdInIdp: string;
/**
* 必传,进行绑定操作的 Authing 用户 ID。
*/
userId: string;
/**
* 必传,身份源 ID,用于指定该身份属于哪个身份源。
*/
extIdpId: string;
/**
* 非必传,表示该条身份的具体类型,可从用户身份信息的 type 字段中获取。如果不传,默认为 generic
*/
type?: string;
/**
* 已废弃,可任意传入,未来将移除该字段。
*/
isSocial?: boolean;
};
28 changes: 28 additions & 0 deletions src/models/ListCistomFieldsResDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { ListCustomFieldsDto } from './ListCustomFieldsDto';

export type ListCistomFieldsResDto = {
/**
* 业务状态码,可以通过此状态码判断操作是否成功,200 表示成功。
*/
statusCode: number;
/**
* 描述信息
*/
message: string;
/**
* 细分错误码,可通过此错误码得到具体的错误类型。
*/
apiCode?: number;
/**
* 请求 ID。当请求失败时会返回。
*/
requestId?: string;
/**
* 响应数据
*/
data: ListCustomFieldsDto;
};
54 changes: 54 additions & 0 deletions src/models/ListCustomFieldsDto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

/**
* 通过主体类型,获取用户、部门或角色的自定义字段列表。
*/
export type ListCustomFieldsDto = {
/**
* 目标对象类型:
* - `USER`: 用户
* - `ROLE`: 角色
* - `GROUP`: 分组
* - `DEPARTMENT`: 部门
* ;该接口暂不支持分组(GROUP)
*/
targetType?: any;
/**
* 字段类型
*/
dataType?: any;
/**
* 租户 ID
*/
tenantId?: any;
/**
* 当前页数,从 1 开始
*/
page?: any;
/**
* 每页数目,最大不能超过 50,默认为 10
*/
limit?: any;
/**
* 用户是否可见
*/
userVisible?: any;
/**
* 管理员是否可见
*/
adminVisible?: any;
/**
* 访问控制
*/
accessControl?: any;
/**
* 搜索关键词
*/
keyword?: any;
/**
* 搜索语言
*/
lang?: any;
};
4 changes: 4 additions & 0 deletions src/models/ListTenantsDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ export type ListTenantsDto = {
* 每页获取的数据量
*/
limit?: any;
/**
* 租户来源
*/
source?: any;
};
Loading