Skip to content

Commit 3d211ce

Browse files
author
lixueping
committed
feat: generate sdk fro recent api update
1 parent 728f59b commit 3d211ce

File tree

592 files changed

+9314
-796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

592 files changed

+9314
-796
lines changed

src/AuthenticationClient.ts

Lines changed: 623 additions & 18 deletions
Large diffs are not rendered by default.

src/ManagementClient.ts

Lines changed: 1882 additions & 386 deletions
Large diffs are not rendered by default.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
export type AddInvitationPolicyUserAttributionDto = {
6+
/**
7+
* 关联对象类型
8+
*/
9+
targetType: AddInvitationPolicyUserAttributionDto.targetType;
10+
/**
11+
* 关联对象的唯一标志符:
12+
* - 如果是用户,为用户的 ID,如 `6343b98b7cfxxx9366e9b7c`
13+
* - 如果是角色,为角色的 code,如 `admin`
14+
* - 如果是分组,为分组的 code,如 `developer`
15+
* - 如果是部门,为部门的 ID,如 `6343bafc019xxxx889206c4c`
16+
* - 如果是岗位,为岗位的 code,如 `leader`
17+
*
18+
*/
19+
targetIdentifier: string;
20+
/**
21+
* 策略 ID
22+
*/
23+
policyId: string;
24+
/**
25+
* 角色所在权限空间 code,若 targetType 是 role,此参数必传
26+
*/
27+
namespace?: string;
28+
};
29+
30+
export namespace AddInvitationPolicyUserAttributionDto {
31+
32+
/**
33+
* 关联对象类型
34+
*/
35+
export enum targetType {
36+
DEPARTMENT = 'department',
37+
POST = 'post',
38+
ROLE = 'role',
39+
GROUP = 'group',
40+
}
41+
42+
43+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
import type { InvitationPolicyUserAttributionListDto } from './InvitationPolicyUserAttributionListDto';
6+
7+
export type AddInvitationPolicyUserAttributionsBatchDto = {
8+
/**
9+
* 关联对象列表
10+
*/
11+
targets: Array<InvitationPolicyUserAttributionListDto>;
12+
/**
13+
* 策略 ID
14+
*/
15+
policyId: string;
16+
};

src/models/AddWhitelistOfAppDto.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
export type AddWhitelistOfAppDto = {
6+
/**
7+
* APP ID
8+
*/
9+
appId: string;
10+
/**
11+
* 白名单类型
12+
*/
13+
type: AddWhitelistOfAppDto.type;
14+
/**
15+
* 类型参数
16+
*/
17+
list?: Array<string>;
18+
};
19+
20+
export namespace AddWhitelistOfAppDto {
21+
22+
/**
23+
* 白名单类型
24+
*/
25+
export enum type {
26+
USERNAME = 'USERNAME',
27+
EMAIL = 'EMAIL',
28+
PHONE = 'PHONE',
29+
}
30+
31+
32+
}

src/models/Admin.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
export type Admin = {
6+
credentialId?: any;
7+
userId?: any;
8+
appId?: any;
9+
};

src/models/AdminAuditLogDto.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export type AdminAuditLogDto = {
6666
/**
6767
* 事件详情
6868
*/
69-
eventDetail?: string;
69+
eventDetails?: string;
7070
/**
7171
* 具体的操作参数
7272
*/
@@ -90,7 +90,7 @@ export type AdminAuditLogDto = {
9090
/**
9191
* 解析过后的 User Agent
9292
*/
93-
parsedUserAgent: ParsedUserAgent;
93+
ua: ParsedUserAgent;
9494
/**
9595
* 地理位置
9696
*/
@@ -142,6 +142,10 @@ export namespace AdminAuditLogDto {
142142
ADD = 'add',
143143
REMOVE = 'remove',
144144
QUERY = 'query',
145+
SEND_INVITATION = 'sendInvitation',
146+
REVERT_INVITATION = 'revertInvitation',
147+
APPROVAL = 'approval',
148+
REJECT = 'reject',
145149
}
146150

147151
/**
@@ -198,6 +202,15 @@ export namespace AdminAuditLogDto {
198202
DATA_POLICY = 'dataPolicy',
199203
AUTHORIZATION = 'authorization',
200204
USER_AUTHORIZATION = 'userAuthorization',
205+
ADMIN_PERMISSION_ROLE = 'adminPermissionRole',
206+
ADMIN_PERMISSION_ADMIN = 'adminPermissionAdmin',
207+
ADMIN_PERMISSION_POLICY = 'adminPermissionPolicy',
208+
UNIVERSAL_INVITATION = 'universalInvitation',
209+
POLICY_INVITATION = 'policyInvitation',
210+
INVITATION_ROSTER = 'invitationRoster',
211+
INVITATION_USER = 'invitationUser',
212+
INVITATION_POLICY = 'invitationPolicy',
213+
APPLICANT = 'applicant',
201214
}
202215

203216

src/models/AdminAuditLogRespDto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type AdminAuditLogRespDto = {
1414
*/
1515
message: string;
1616
/**
17-
* 细分错误码,可通过此错误码得到具体的错误类型。详情可以查看开发准备中的 apiCode 细分说明
17+
* 细分错误码,可通过此错误码得到具体的错误类型(成功请求不返回)。详细错误码列表请见:[API Code 列表](https://api-explorer.authing.cn/?tag=group/%E5%BC%80%E5%8F%91%E5%87%86%E5%A4%87#tag/%E5%BC%80%E5%8F%91%E5%87%86%E5%A4%87/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/apiCode)
1818
*/
1919
apiCode?: number;
2020
/**

src/models/AppListRespDto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type AppListRespDto = {
1414
*/
1515
message: string;
1616
/**
17-
* 细分错误码,可通过此错误码得到具体的错误类型。详情可以查看开发准备中的 apiCode 细分说明
17+
* 细分错误码,可通过此错误码得到具体的错误类型(成功请求不返回)。详细错误码列表请见:[API Code 列表](https://api-explorer.authing.cn/?tag=group/%E5%BC%80%E5%8F%91%E5%87%86%E5%A4%87#tag/%E5%BC%80%E5%8F%91%E5%87%86%E5%A4%87/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/apiCode)
1818
*/
1919
apiCode?: number;
2020
/**

src/models/AppValidateRuleDto.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/* istanbul ignore file */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
5+
import type { ErrMsgI18nDto } from './ErrMsgI18nDto';
6+
7+
export type AppValidateRuleDto = {
8+
/**
9+
* 字段类型
10+
* - `None`: 不校验
11+
* - `regExp`: 正则
12+
* - `phone`: 手机号校验框
13+
* - `email`: 邮箱校验框
14+
* - `isNumber`: 必须为数字
15+
*/
16+
type: AppValidateRuleDto.type;
17+
/**
18+
* 正则表达式
19+
*/
20+
content: AppValidateRuleDto.content;
21+
/**
22+
* 错误信息提示
23+
*/
24+
errorMessage?: string;
25+
/**
26+
* 多语言显示
27+
*/
28+
i18n?: ErrMsgI18nDto;
29+
};
30+
31+
export namespace AppValidateRuleDto {
32+
33+
/**
34+
* 字段类型
35+
* - `None`: 不校验
36+
* - `regExp`: 正则
37+
* - `phone`: 手机号校验框
38+
* - `email`: 邮箱校验框
39+
* - `isNumber`: 必须为数字
40+
*/
41+
export enum type {
42+
NONE = 'None',
43+
REG_EXP = 'regExp',
44+
PHONE = 'phone',
45+
EMAIL = 'email',
46+
IS_NUMBER = 'isNumber',
47+
}
48+
49+
/**
50+
* 正则表达式
51+
*/
52+
export enum content {
53+
NONE = 'None',
54+
REG_EXP = 'regExp',
55+
PHONE = 'phone',
56+
EMAIL = 'email',
57+
IS_NUMBER = 'isNumber',
58+
}
59+
60+
61+
}

0 commit comments

Comments
 (0)