@satorijs/adapter-lark 3.9.0 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +1091 -27
- package/lib/internal.d.ts +2 -3
- package/lib/types/acs.d.ts +19 -19
- package/lib/types/admin.d.ts +58 -32
- package/lib/types/aily.d.ts +52 -52
- package/lib/types/apaas.d.ts +96 -96
- package/lib/types/api.d.ts +14 -1
- package/lib/types/application.d.ts +153 -69
- package/lib/types/approval.d.ts +186 -154
- package/lib/types/attendance.d.ts +395 -353
- package/lib/types/auth.d.ts +18 -18
- package/lib/types/authen.d.ts +24 -24
- package/lib/types/baike.d.ts +42 -42
- package/lib/types/bitable.d.ts +276 -192
- package/lib/types/calendar.d.ts +144 -144
- package/lib/types/cardkit.d.ts +8 -8
- package/lib/types/contact.d.ts +209 -137
- package/lib/types/corehr.d.ts +761 -613
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +237 -229
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +156 -148
- package/lib/types/hire.d.ts +954 -510
- package/lib/types/im.d.ts +446 -446
- package/lib/types/index.d.ts +72 -30
- package/lib/types/lingo.d.ts +28 -28
- package/lib/types/mail.d.ts +192 -192
- package/lib/types/minutes.d.ts +4 -4
- package/lib/types/okr.d.ts +86 -58
- package/lib/types/passport.d.ts +13 -5
- package/lib/types/payroll.d.ts +13 -5
- package/lib/types/performance.d.ts +85 -79
- package/lib/types/personal_settings.d.ts +12 -12
- package/lib/types/report.d.ts +11 -5
- package/lib/types/search.d.ts +48 -24
- package/lib/types/sheets.d.ts +64 -64
- package/lib/types/speech_to_text.d.ts +4 -4
- package/lib/types/task.d.ts +191 -185
- package/lib/types/translation.d.ts +4 -4
- package/lib/types/vc.d.ts +335 -155
- package/lib/types/wiki.d.ts +48 -48
- package/package.json +1 -1
- package/src/internal.ts +3 -4
- package/src/types/acs.ts +24 -24
- package/src/types/admin.ts +69 -39
- package/src/types/aily.ts +61 -61
- package/src/types/apaas.ts +113 -113
- package/src/types/application.ts +177 -83
- package/src/types/approval.ts +210 -174
- package/src/types/attendance.ts +466 -421
- package/src/types/auth.ts +20 -20
- package/src/types/authen.ts +28 -28
- package/src/types/baike.ts +55 -55
- package/src/types/bitable.ts +321 -235
- package/src/types/calendar.ts +167 -167
- package/src/types/cardkit.ts +10 -10
- package/src/types/contact.ts +251 -169
- package/src/types/corehr.ts +905 -736
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +299 -290
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +182 -173
- package/src/types/hire.ts +1081 -591
- package/src/types/im.ts +521 -521
- package/src/types/index.ts +73 -30
- package/src/types/lingo.ts +36 -36
- package/src/types/mail.ts +215 -215
- package/src/types/minutes.ts +5 -5
- package/src/types/okr.ts +98 -66
- package/src/types/passport.ts +15 -6
- package/src/types/payroll.ts +15 -6
- package/src/types/performance.ts +98 -91
- package/src/types/personal_settings.ts +15 -15
- package/src/types/report.ts +13 -6
- package/src/types/search.ts +57 -29
- package/src/types/sheets.ts +80 -80
- package/src/types/speech_to_text.ts +5 -5
- package/src/types/task.ts +238 -231
- package/src/types/translation.ts +5 -5
- package/src/types/vc.ts +386 -186
- package/src/types/wiki.ts +59 -59
- package/src/utils.ts +11 -6
- package/lib/index.cjs.map +0 -6
- package/lib/types/guild.d.ts +0 -59
- package/lib/types/message/asset.d.ts +0 -40
- package/lib/types/user.d.ts +0 -78
- package/lib/types/utils.d.ts +0 -9
package/lib/internal.d.ts
CHANGED
|
@@ -8,11 +8,10 @@ export interface BaseResponse {
|
|
|
8
8
|
/** error message. would be 'success' if success. */
|
|
9
9
|
msg: string;
|
|
10
10
|
}
|
|
11
|
-
export type Paginated<T = any, ItemsKey extends string = 'items'
|
|
11
|
+
export type Paginated<T = any, ItemsKey extends string = 'items'> = Promise<{
|
|
12
12
|
[K in ItemsKey]: T[];
|
|
13
13
|
} & {
|
|
14
|
-
|
|
15
|
-
} & {
|
|
14
|
+
page_token?: string;
|
|
16
15
|
has_more: boolean;
|
|
17
16
|
}> & AsyncIterableIterator<T>;
|
|
18
17
|
export interface Pagination {
|
package/lib/types/acs.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export interface GetAcsUserQuery {
|
|
|
86
86
|
/** 此次调用中使用的用户ID的类型 */
|
|
87
87
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
88
88
|
}
|
|
89
|
+
export interface GetAcsUserResponse {
|
|
90
|
+
/** 门禁用户信息 */
|
|
91
|
+
user?: User;
|
|
92
|
+
}
|
|
89
93
|
export interface ListAcsUserQuery extends Pagination {
|
|
90
94
|
/** 此次调用中使用的用户ID的类型 */
|
|
91
95
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -120,6 +124,10 @@ export interface GetAcsRuleExternalQuery {
|
|
|
120
124
|
/** 此次调用中使用的用户ID的类型 */
|
|
121
125
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
122
126
|
}
|
|
127
|
+
export interface GetAcsRuleExternalResponse {
|
|
128
|
+
/** 设备权限组信息 */
|
|
129
|
+
rules: Rule[];
|
|
130
|
+
}
|
|
123
131
|
export interface DeleteAcsRuleExternalQuery {
|
|
124
132
|
/** 权限组id */
|
|
125
133
|
rule_id: string;
|
|
@@ -134,6 +142,10 @@ export interface CreateAcsRuleExternalQuery {
|
|
|
134
142
|
/** 此次调用中使用的用户ID的类型 */
|
|
135
143
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
136
144
|
}
|
|
145
|
+
export interface CreateAcsRuleExternalResponse {
|
|
146
|
+
/** 权限组id */
|
|
147
|
+
rule_id: string;
|
|
148
|
+
}
|
|
137
149
|
export interface DeleteAcsVisitorQuery {
|
|
138
150
|
/** 此次调用中使用的用户ID的类型 */
|
|
139
151
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -146,6 +158,13 @@ export interface CreateAcsVisitorQuery {
|
|
|
146
158
|
/** 此次调用中使用的用户ID的类型 */
|
|
147
159
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
148
160
|
}
|
|
161
|
+
export interface CreateAcsVisitorResponse {
|
|
162
|
+
/** 访客的id */
|
|
163
|
+
visitor_id: string;
|
|
164
|
+
}
|
|
165
|
+
export interface ListAcsDeviceResponse {
|
|
166
|
+
items?: Device[];
|
|
167
|
+
}
|
|
149
168
|
export interface ListAcsAccessRecordQuery extends Pagination {
|
|
150
169
|
/** 记录开始时间,单位秒 */
|
|
151
170
|
from: number;
|
|
@@ -156,22 +175,3 @@ export interface ListAcsAccessRecordQuery extends Pagination {
|
|
|
156
175
|
/** 此次调用中使用的用户ID的类型 */
|
|
157
176
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
158
177
|
}
|
|
159
|
-
export interface GetAcsUserResponse {
|
|
160
|
-
/** 门禁用户信息 */
|
|
161
|
-
user?: User;
|
|
162
|
-
}
|
|
163
|
-
export interface GetAcsRuleExternalResponse {
|
|
164
|
-
/** 设备权限组信息 */
|
|
165
|
-
rules: Rule[];
|
|
166
|
-
}
|
|
167
|
-
export interface CreateAcsRuleExternalResponse {
|
|
168
|
-
/** 权限组id */
|
|
169
|
-
rule_id: string;
|
|
170
|
-
}
|
|
171
|
-
export interface CreateAcsVisitorResponse {
|
|
172
|
-
/** 访客的id */
|
|
173
|
-
visitor_id: string;
|
|
174
|
-
}
|
|
175
|
-
export interface ListAcsDeviceResponse {
|
|
176
|
-
items?: Device[];
|
|
177
|
-
}
|
package/lib/types/admin.d.ts
CHANGED
|
@@ -130,6 +130,10 @@ export interface CreateAdminBadgeRequest {
|
|
|
130
130
|
/** 勋章的多语言描述文案,同explanation字段限制,最多100个字符。 */
|
|
131
131
|
i18n_explanation?: I18n;
|
|
132
132
|
}
|
|
133
|
+
export interface CreateAdminBadgeResponse {
|
|
134
|
+
/** 勋章的信息 */
|
|
135
|
+
badge?: Badge;
|
|
136
|
+
}
|
|
133
137
|
export interface UpdateAdminBadgeRequest {
|
|
134
138
|
/** 租户内唯一的勋章名称,最多30个字符。 */
|
|
135
139
|
name: string;
|
|
@@ -144,21 +148,45 @@ export interface UpdateAdminBadgeRequest {
|
|
|
144
148
|
/** 勋章的多语言描述文案,同explanation字段限制,最多100个字符。 */
|
|
145
149
|
i18n_explanation?: I18n;
|
|
146
150
|
}
|
|
151
|
+
export interface UpdateAdminBadgeResponse {
|
|
152
|
+
/** 勋章信息 */
|
|
153
|
+
badge?: Badge;
|
|
154
|
+
}
|
|
155
|
+
export declare const enum CreateAdminBadgeImageFormImageType {
|
|
156
|
+
/** 勋章详情图 */
|
|
157
|
+
Detail = 1,
|
|
158
|
+
/** 勋章挂饰图 */
|
|
159
|
+
Show = 2
|
|
160
|
+
}
|
|
147
161
|
export interface CreateAdminBadgeImageForm {
|
|
148
162
|
/** 勋章图片的文件,仅支持 PNG 格式,320 x 320 像素,大小不超过 1024 KB。 */
|
|
149
163
|
image_file: Blob;
|
|
150
164
|
/** 图片的类型 */
|
|
151
|
-
image_type:
|
|
165
|
+
image_type: CreateAdminBadgeImageFormImageType;
|
|
166
|
+
}
|
|
167
|
+
export interface CreateAdminBadgeImageResponse {
|
|
168
|
+
/** 图片的key */
|
|
169
|
+
image_key?: string;
|
|
152
170
|
}
|
|
153
171
|
export interface ListAdminBadgeQuery extends Pagination {
|
|
154
172
|
/** 租户内唯一的勋章名称,精确匹配。 */
|
|
155
173
|
name?: string;
|
|
156
174
|
}
|
|
175
|
+
export interface GetAdminBadgeResponse {
|
|
176
|
+
/** 勋章信息 */
|
|
177
|
+
badge?: Badge;
|
|
178
|
+
}
|
|
179
|
+
export declare const enum CreateAdminBadgeGrantRequestGrantType {
|
|
180
|
+
/** 手动选择有效期 */
|
|
181
|
+
Manual = 0,
|
|
182
|
+
/** 匹配系统入职时间 */
|
|
183
|
+
JoinTime = 1
|
|
184
|
+
}
|
|
157
185
|
export interface CreateAdminBadgeGrantRequest {
|
|
158
186
|
/** 授予名单名称,最多100个字符。 */
|
|
159
187
|
name: string;
|
|
160
188
|
/** 勋章下唯一的授予事项 */
|
|
161
|
-
grant_type:
|
|
189
|
+
grant_type: CreateAdminBadgeGrantRequestGrantType;
|
|
162
190
|
/** 授予名单的生效时间对应的时区,用于检查RuleDetail的时间戳的取值是否规范,取值范围为TZ database name */
|
|
163
191
|
time_zone: string;
|
|
164
192
|
/** 规则详情 */
|
|
@@ -178,11 +206,21 @@ export interface CreateAdminBadgeGrantQuery {
|
|
|
178
206
|
/** 此次调用中使用的部门ID的类型。 */
|
|
179
207
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
180
208
|
}
|
|
209
|
+
export interface CreateAdminBadgeGrantResponse {
|
|
210
|
+
/** 授予名单的信息 */
|
|
211
|
+
grant?: Grant;
|
|
212
|
+
}
|
|
213
|
+
export declare const enum UpdateAdminBadgeGrantRequestGrantType {
|
|
214
|
+
/** 手动选择有效期 */
|
|
215
|
+
Manual = 0,
|
|
216
|
+
/** 匹配系统入职时间 */
|
|
217
|
+
JoinTime = 1
|
|
218
|
+
}
|
|
181
219
|
export interface UpdateAdminBadgeGrantRequest {
|
|
182
220
|
/** 授予名单名称,最多100个字符。 */
|
|
183
221
|
name: string;
|
|
184
222
|
/** 勋章下唯一的授予事项 */
|
|
185
|
-
grant_type:
|
|
223
|
+
grant_type: UpdateAdminBadgeGrantRequestGrantType;
|
|
186
224
|
/** 授予名单的生效时间对应的时区,用于检查RuleDetail的时间戳的取值是否规范,取值范围为TZ database name */
|
|
187
225
|
time_zone: string;
|
|
188
226
|
/** 规则详情 */
|
|
@@ -202,6 +240,10 @@ export interface UpdateAdminBadgeGrantQuery {
|
|
|
202
240
|
/** 此次调用中使用的部门ID的类型。 */
|
|
203
241
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
204
242
|
}
|
|
243
|
+
export interface UpdateAdminBadgeGrantResponse {
|
|
244
|
+
/** 授予名单 */
|
|
245
|
+
grant?: Grant;
|
|
246
|
+
}
|
|
205
247
|
export interface ListAdminBadgeGrantQuery extends Pagination {
|
|
206
248
|
/** 用户 ID 类型 */
|
|
207
249
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
@@ -216,6 +258,18 @@ export interface GetAdminBadgeGrantQuery {
|
|
|
216
258
|
/** 此次调用中使用的部门ID的类型。 */
|
|
217
259
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
218
260
|
}
|
|
261
|
+
export interface GetAdminBadgeGrantResponse {
|
|
262
|
+
/** 授予名单信息 */
|
|
263
|
+
grant?: Grant;
|
|
264
|
+
}
|
|
265
|
+
export declare const enum ListAdminAuditInfoQueryUserType {
|
|
266
|
+
/** 互联网上的任何人 */
|
|
267
|
+
All = 0,
|
|
268
|
+
/** 组织内成员 */
|
|
269
|
+
NormalUser = 1,
|
|
270
|
+
/** 组织外成员 */
|
|
271
|
+
ExternalUser = 2
|
|
272
|
+
}
|
|
219
273
|
export interface ListAdminAuditInfoQuery extends Pagination {
|
|
220
274
|
/** 此次调用中使用的用户ID的类型 */
|
|
221
275
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -232,7 +286,7 @@ export interface ListAdminAuditInfoQuery extends Pagination {
|
|
|
232
286
|
/** 过滤模块 */
|
|
233
287
|
event_module?: number;
|
|
234
288
|
/** 过滤用户类型. 仅当 operator_type=user 时生效 */
|
|
235
|
-
user_type?:
|
|
289
|
+
user_type?: ListAdminAuditInfoQueryUserType;
|
|
236
290
|
/** 过滤操作对象: 操作对象类型. 与object_value配合使用 */
|
|
237
291
|
object_type?: number;
|
|
238
292
|
/** 过滤操作对象: 操作对象ID. 与object_type配合使用 */
|
|
@@ -240,31 +294,3 @@ export interface ListAdminAuditInfoQuery extends Pagination {
|
|
|
240
294
|
/** 增强过滤操作对象: 操作对象ID,支持云文档侧泛token过滤。会覆盖object_type和object_value查询条件 */
|
|
241
295
|
ext_filter_object_by_ccm_token?: string;
|
|
242
296
|
}
|
|
243
|
-
export interface CreateAdminBadgeResponse {
|
|
244
|
-
/** 勋章的信息 */
|
|
245
|
-
badge?: Badge;
|
|
246
|
-
}
|
|
247
|
-
export interface UpdateAdminBadgeResponse {
|
|
248
|
-
/** 勋章信息 */
|
|
249
|
-
badge?: Badge;
|
|
250
|
-
}
|
|
251
|
-
export interface CreateAdminBadgeImageResponse {
|
|
252
|
-
/** 图片的key */
|
|
253
|
-
image_key?: string;
|
|
254
|
-
}
|
|
255
|
-
export interface GetAdminBadgeResponse {
|
|
256
|
-
/** 勋章信息 */
|
|
257
|
-
badge?: Badge;
|
|
258
|
-
}
|
|
259
|
-
export interface CreateAdminBadgeGrantResponse {
|
|
260
|
-
/** 授予名单的信息 */
|
|
261
|
-
grant?: Grant;
|
|
262
|
-
}
|
|
263
|
-
export interface UpdateAdminBadgeGrantResponse {
|
|
264
|
-
/** 授予名单 */
|
|
265
|
-
grant?: Grant;
|
|
266
|
-
}
|
|
267
|
-
export interface GetAdminBadgeGrantResponse {
|
|
268
|
-
/** 授予名单信息 */
|
|
269
|
-
grant?: Grant;
|
|
270
|
-
}
|
package/lib/types/aily.d.ts
CHANGED
|
@@ -95,12 +95,24 @@ export interface CreateAilyAilySessionRequest {
|
|
|
95
95
|
/** 其他透传信息 */
|
|
96
96
|
metadata?: string;
|
|
97
97
|
}
|
|
98
|
+
export interface CreateAilyAilySessionResponse {
|
|
99
|
+
/** 创建的会话信息 */
|
|
100
|
+
session?: AilySession;
|
|
101
|
+
}
|
|
98
102
|
export interface UpdateAilyAilySessionRequest {
|
|
99
103
|
/** 渠道上下文 */
|
|
100
104
|
channel_context?: string;
|
|
101
105
|
/** 其他透传信息 */
|
|
102
106
|
metadata?: string;
|
|
103
107
|
}
|
|
108
|
+
export interface UpdateAilyAilySessionResponse {
|
|
109
|
+
/** 会话信息 */
|
|
110
|
+
session?: AilySession;
|
|
111
|
+
}
|
|
112
|
+
export interface GetAilyAilySessionResponse {
|
|
113
|
+
/** 会话信息 */
|
|
114
|
+
session?: AilySession;
|
|
115
|
+
}
|
|
104
116
|
export interface CreateAilyAilySessionAilyMessageRequest {
|
|
105
117
|
/** 幂等id,同一 session 下相同的幂等 id 算一条消息,有效期72h */
|
|
106
118
|
idempotent_id: string;
|
|
@@ -115,6 +127,14 @@ export interface CreateAilyAilySessionAilyMessageRequest {
|
|
|
115
127
|
/** 被@的实体 */
|
|
116
128
|
mentions?: AilyMention[];
|
|
117
129
|
}
|
|
130
|
+
export interface CreateAilyAilySessionAilyMessageResponse {
|
|
131
|
+
/** 消息信息 */
|
|
132
|
+
message?: AilyMessage;
|
|
133
|
+
}
|
|
134
|
+
export interface GetAilyAilySessionAilyMessageResponse {
|
|
135
|
+
/** 消息信息 */
|
|
136
|
+
message?: AilyMessage;
|
|
137
|
+
}
|
|
118
138
|
export interface ListAilyAilySessionAilyMessageQuery extends Pagination {
|
|
119
139
|
/** 运行 ID */
|
|
120
140
|
run_id?: string;
|
|
@@ -131,58 +151,6 @@ export interface CreateAilyAilySessionRunRequest {
|
|
|
131
151
|
/** 其他透传信息 */
|
|
132
152
|
metadata?: string;
|
|
133
153
|
}
|
|
134
|
-
export interface StartAilyAppSkillRequest {
|
|
135
|
-
/** 技能的全局变量 */
|
|
136
|
-
global_variable?: SkillGlobalVariable;
|
|
137
|
-
/** 技能的自定义变量 */
|
|
138
|
-
input?: string;
|
|
139
|
-
}
|
|
140
|
-
export interface AskAilyAppKnowledgeRequest {
|
|
141
|
-
/** 输入消息(当前仅支持纯文本输入) */
|
|
142
|
-
message: AilyKnowledgeMessage;
|
|
143
|
-
/** 控制知识问答所依据的数据知识范围 */
|
|
144
|
-
data_asset_ids?: string[];
|
|
145
|
-
/** 控制知识问答所依据的数据知识分类范围 */
|
|
146
|
-
data_asset_tag_ids?: string[];
|
|
147
|
-
}
|
|
148
|
-
export interface ListAilyAppDataAssetQuery extends Pagination {
|
|
149
|
-
/** 模糊匹配关键词 */
|
|
150
|
-
keyword?: string;
|
|
151
|
-
/** 根据数据知识 ID 进行过滤 */
|
|
152
|
-
data_asset_ids?: string[];
|
|
153
|
-
/** 根据数据知识分类 ID 进行过滤 */
|
|
154
|
-
data_asset_tag_ids?: string[];
|
|
155
|
-
/** 结果是否包含数据与知识项目 */
|
|
156
|
-
with_data_asset_item?: boolean;
|
|
157
|
-
/** 结果是否包含数据连接状态 */
|
|
158
|
-
with_connect_status?: boolean;
|
|
159
|
-
}
|
|
160
|
-
export interface ListAilyAppDataAssetTagQuery extends Pagination {
|
|
161
|
-
/** 模糊匹配分类名称 */
|
|
162
|
-
keyword?: string;
|
|
163
|
-
/** 模糊匹配分类名称 */
|
|
164
|
-
data_asset_tag_ids?: string[];
|
|
165
|
-
}
|
|
166
|
-
export interface CreateAilyAilySessionResponse {
|
|
167
|
-
/** 创建的会话信息 */
|
|
168
|
-
session?: AilySession;
|
|
169
|
-
}
|
|
170
|
-
export interface UpdateAilyAilySessionResponse {
|
|
171
|
-
/** 会话信息 */
|
|
172
|
-
session?: AilySession;
|
|
173
|
-
}
|
|
174
|
-
export interface GetAilyAilySessionResponse {
|
|
175
|
-
/** 会话信息 */
|
|
176
|
-
session?: AilySession;
|
|
177
|
-
}
|
|
178
|
-
export interface CreateAilyAilySessionAilyMessageResponse {
|
|
179
|
-
/** 消息信息 */
|
|
180
|
-
message?: AilyMessage;
|
|
181
|
-
}
|
|
182
|
-
export interface GetAilyAilySessionAilyMessageResponse {
|
|
183
|
-
/** 消息信息 */
|
|
184
|
-
message?: AilyMessage;
|
|
185
|
-
}
|
|
186
154
|
export interface CreateAilyAilySessionRunResponse {
|
|
187
155
|
/** 运行信息 */
|
|
188
156
|
run?: Run;
|
|
@@ -195,6 +163,12 @@ export interface CancelAilyAilySessionRunResponse {
|
|
|
195
163
|
/** 运行信息 */
|
|
196
164
|
run?: Run;
|
|
197
165
|
}
|
|
166
|
+
export interface StartAilyAppSkillRequest {
|
|
167
|
+
/** 技能的全局变量 */
|
|
168
|
+
global_variable?: SkillGlobalVariable;
|
|
169
|
+
/** 技能的自定义变量 */
|
|
170
|
+
input?: string;
|
|
171
|
+
}
|
|
198
172
|
export interface StartAilyAppSkillResponse {
|
|
199
173
|
/** 技能的输出 */
|
|
200
174
|
output?: string;
|
|
@@ -205,6 +179,14 @@ export interface GetAilyAppSkillResponse {
|
|
|
205
179
|
/** 技能信息 */
|
|
206
180
|
skill?: Skill;
|
|
207
181
|
}
|
|
182
|
+
export interface AskAilyAppKnowledgeRequest {
|
|
183
|
+
/** 输入消息(当前仅支持纯文本输入) */
|
|
184
|
+
message: AilyKnowledgeMessage;
|
|
185
|
+
/** 控制知识问答所依据的数据知识范围 */
|
|
186
|
+
data_asset_ids?: string[];
|
|
187
|
+
/** 控制知识问答所依据的数据知识分类范围 */
|
|
188
|
+
data_asset_tag_ids?: string[];
|
|
189
|
+
}
|
|
208
190
|
export interface AskAilyAppKnowledgeResponse {
|
|
209
191
|
/** 响应状态,枚举值 */
|
|
210
192
|
status?: 'processing' | 'finished';
|
|
@@ -219,3 +201,21 @@ export interface AskAilyAppKnowledgeResponse {
|
|
|
219
201
|
/** 是否有结果,true 则 代表 message 中的内容是通过配置知识而生成的 */
|
|
220
202
|
has_answer?: boolean;
|
|
221
203
|
}
|
|
204
|
+
export interface ListAilyAppDataAssetQuery extends Pagination {
|
|
205
|
+
/** 模糊匹配关键词 */
|
|
206
|
+
keyword?: string;
|
|
207
|
+
/** 根据数据知识 ID 进行过滤 */
|
|
208
|
+
data_asset_ids?: string[];
|
|
209
|
+
/** 根据数据知识分类 ID 进行过滤 */
|
|
210
|
+
data_asset_tag_ids?: string[];
|
|
211
|
+
/** 结果是否包含数据与知识项目 */
|
|
212
|
+
with_data_asset_item?: boolean;
|
|
213
|
+
/** 结果是否包含数据连接状态 */
|
|
214
|
+
with_connect_status?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export interface ListAilyAppDataAssetTagQuery extends Pagination {
|
|
217
|
+
/** 模糊匹配分类名称 */
|
|
218
|
+
keyword?: string;
|
|
219
|
+
/** 模糊匹配分类名称 */
|
|
220
|
+
data_asset_tag_ids?: string[];
|
|
221
|
+
}
|
package/lib/types/apaas.d.ts
CHANGED
|
@@ -187,10 +187,20 @@ export interface AuditLogListApaasApplicationAuditLogQuery {
|
|
|
187
187
|
/** 应用类型,0为apaas类型,1为aily类型 */
|
|
188
188
|
app_type?: string;
|
|
189
189
|
}
|
|
190
|
+
export interface AuditLogListApaasApplicationAuditLogResponse {
|
|
191
|
+
/** 审计日志查询结果列表详情信息 */
|
|
192
|
+
items?: AuditLogEsField[];
|
|
193
|
+
/** 审计日志查询总条数 */
|
|
194
|
+
total?: string;
|
|
195
|
+
}
|
|
190
196
|
export interface GetApaasApplicationAuditLogQuery {
|
|
191
197
|
/** 审计日志ID信息 */
|
|
192
198
|
log_id: string;
|
|
193
199
|
}
|
|
200
|
+
export interface GetApaasApplicationAuditLogResponse {
|
|
201
|
+
/** 审计日志详情信息 */
|
|
202
|
+
data?: AuditLogDetail;
|
|
203
|
+
}
|
|
194
204
|
export interface BatchRemoveAuthorizationApaasApplicationRoleMemberRequest {
|
|
195
205
|
/** 需要删除的用户 ID 列表 */
|
|
196
206
|
user_ids?: string[];
|
|
@@ -209,6 +219,10 @@ export interface GetApaasApplicationRoleMemberQuery {
|
|
|
209
219
|
/** 是否使用 APIID字段作为出入参,默认值为 false */
|
|
210
220
|
use_api_id?: boolean;
|
|
211
221
|
}
|
|
222
|
+
export interface GetApaasApplicationRoleMemberResponse {
|
|
223
|
+
/** 角色成员 */
|
|
224
|
+
role_member?: RoleMember;
|
|
225
|
+
}
|
|
212
226
|
export interface BatchRemoveAuthorizationApaasApplicationRecordPermissionMemberRequest {
|
|
213
227
|
/** 需要删除的用户 ID 列表 */
|
|
214
228
|
user_ids?: string[];
|
|
@@ -225,6 +239,12 @@ export interface OqlQueryApaasApplicationObjectRequest {
|
|
|
225
239
|
/** 用于指定 OQL 语句中具名参数的具体值 */
|
|
226
240
|
named_args?: string;
|
|
227
241
|
}
|
|
242
|
+
export interface OqlQueryApaasApplicationObjectResponse {
|
|
243
|
+
/** 每一列的标题 */
|
|
244
|
+
columns: string[];
|
|
245
|
+
/** 每一行的值,以「key-value」的形式返回 */
|
|
246
|
+
rows: string;
|
|
247
|
+
}
|
|
228
248
|
export interface SearchApaasApplicationObjectRequest {
|
|
229
249
|
/** 搜索词 */
|
|
230
250
|
q?: string;
|
|
@@ -237,10 +257,24 @@ export interface SearchApaasApplicationObjectRequest {
|
|
|
237
257
|
/** 返回元数据枚举值 */
|
|
238
258
|
metadata?: 'Label' | 'SearchLayout';
|
|
239
259
|
}
|
|
260
|
+
export interface SearchApaasApplicationObjectResponse {
|
|
261
|
+
/** 搜索结果列表 */
|
|
262
|
+
records?: string;
|
|
263
|
+
/** 是否还有更多数据 */
|
|
264
|
+
has_more?: boolean;
|
|
265
|
+
/** 分页标记,当 HasMore 为 true 时,会同时返回新的 NextPageToken */
|
|
266
|
+
next_page_token?: string;
|
|
267
|
+
/** 对象信息 */
|
|
268
|
+
objects?: ObjectMeta[];
|
|
269
|
+
}
|
|
240
270
|
export interface QueryApaasApplicationObjectRecordRequest {
|
|
241
271
|
/** 需要获取的字段,使用字段唯一标识符进行查询,关联字段可使用 . 进行下钻 */
|
|
242
272
|
select?: string[];
|
|
243
273
|
}
|
|
274
|
+
export interface QueryApaasApplicationObjectRecordResponse {
|
|
275
|
+
/** 记录详情,格式为 Map<string, ANY> */
|
|
276
|
+
item: string;
|
|
277
|
+
}
|
|
244
278
|
export interface PatchApaasApplicationObjectRecordRequest {
|
|
245
279
|
/** 创建对象使用的数据,键为字段 API 名称,值为字段值,格式可参考字段值格式 */
|
|
246
280
|
record: string;
|
|
@@ -249,10 +283,18 @@ export interface CreateApaasApplicationObjectRecordRequest {
|
|
|
249
283
|
/** 创建对象使用的数据,键为字段 API 名称,值为字段值,格式可参考字段值格式 */
|
|
250
284
|
record: string;
|
|
251
285
|
}
|
|
286
|
+
export interface CreateApaasApplicationObjectRecordResponse {
|
|
287
|
+
/** 记录 ID */
|
|
288
|
+
id?: string;
|
|
289
|
+
}
|
|
252
290
|
export interface BatchUpdateApaasApplicationObjectRecordRequest {
|
|
253
291
|
/** 记录详情列表,格式为 List<Map<string, ANY>>,操作记录数上限为 500 条 */
|
|
254
292
|
records: string;
|
|
255
293
|
}
|
|
294
|
+
export interface BatchUpdateApaasApplicationObjectRecordResponse {
|
|
295
|
+
/** 处理结果 */
|
|
296
|
+
items?: RecordResult[];
|
|
297
|
+
}
|
|
256
298
|
export interface BatchQueryApaasApplicationObjectRecordRequest {
|
|
257
299
|
/** 需要获取的字段,使用字段唯一标识符进行查询,关联字段可使用「.」进行下钻 */
|
|
258
300
|
select: string[];
|
|
@@ -273,18 +315,40 @@ export interface BatchQueryApaasApplicationObjectRecordRequest {
|
|
|
273
315
|
/** 是否返回符合条件的记录总数(Total)。默认为 False,不返回记录总数。 */
|
|
274
316
|
need_total_count?: boolean;
|
|
275
317
|
}
|
|
318
|
+
export interface BatchQueryApaasApplicationObjectRecordResponse {
|
|
319
|
+
/** 符合条件的记录列表 */
|
|
320
|
+
items: string;
|
|
321
|
+
/** 符合条件的记录数 */
|
|
322
|
+
total?: number;
|
|
323
|
+
/** 下一页的起始位置 Token ,访问至末尾时不返回 */
|
|
324
|
+
next_page_token?: string;
|
|
325
|
+
/** 是否还有数据 */
|
|
326
|
+
has_more?: boolean;
|
|
327
|
+
}
|
|
276
328
|
export interface BatchDeleteApaasApplicationObjectRecordRequest {
|
|
277
329
|
/** 记录 ID 列表,操作记录数上限为 500 */
|
|
278
330
|
ids: string[];
|
|
279
331
|
}
|
|
332
|
+
export interface BatchDeleteApaasApplicationObjectRecordResponse {
|
|
333
|
+
/** 处理结果 */
|
|
334
|
+
items?: RecordResult[];
|
|
335
|
+
}
|
|
280
336
|
export interface BatchCreateApaasApplicationObjectRecordRequest {
|
|
281
337
|
/** 记录详情列表,格式为 List<Map<string, ANY>>,操作记录数上限为 500 条 */
|
|
282
338
|
records: string;
|
|
283
339
|
}
|
|
340
|
+
export interface BatchCreateApaasApplicationObjectRecordResponse {
|
|
341
|
+
/** 处理结果 */
|
|
342
|
+
items?: RecordResult[];
|
|
343
|
+
}
|
|
284
344
|
export interface InvokeApaasApplicationFunctionRequest {
|
|
285
345
|
/** 函数输入参数(JSON 序列化后的字符串) */
|
|
286
346
|
params?: string;
|
|
287
347
|
}
|
|
348
|
+
export interface InvokeApaasApplicationFunctionResponse {
|
|
349
|
+
/** 函数执行的返回结果(JSON 序列化后的字符串) */
|
|
350
|
+
result?: string;
|
|
351
|
+
}
|
|
288
352
|
export interface QueryApaasApplicationEnvironmentVariableRequest {
|
|
289
353
|
/** 过滤条件 */
|
|
290
354
|
filter?: EnvironmentVariableFilter;
|
|
@@ -293,6 +357,16 @@ export interface QueryApaasApplicationEnvironmentVariableRequest {
|
|
|
293
357
|
/** 返回记录的偏移量,默认为 0,即从查询到的第一个记录开始返回 */
|
|
294
358
|
offset?: number;
|
|
295
359
|
}
|
|
360
|
+
export interface QueryApaasApplicationEnvironmentVariableResponse {
|
|
361
|
+
/** 环境变量列表 */
|
|
362
|
+
items?: EnvironmentVariable[];
|
|
363
|
+
/** 符合查询条件的环境变量的总数 */
|
|
364
|
+
total: number;
|
|
365
|
+
}
|
|
366
|
+
export interface GetApaasApplicationEnvironmentVariableResponse {
|
|
367
|
+
/** 环境变量详情 */
|
|
368
|
+
item?: EnvironmentVariable;
|
|
369
|
+
}
|
|
296
370
|
export interface ExecuteApaasApplicationFlowRequest {
|
|
297
371
|
/** 是否异步执行 */
|
|
298
372
|
is_async?: boolean;
|
|
@@ -305,6 +379,18 @@ export interface ExecuteApaasApplicationFlowRequest {
|
|
|
305
379
|
/** 操作人 */
|
|
306
380
|
operator: string;
|
|
307
381
|
}
|
|
382
|
+
export interface ExecuteApaasApplicationFlowResponse {
|
|
383
|
+
/** 状态 */
|
|
384
|
+
status?: string;
|
|
385
|
+
/** 输出参数 */
|
|
386
|
+
out_params?: string;
|
|
387
|
+
/** 执行id */
|
|
388
|
+
execution_id?: string;
|
|
389
|
+
/** 错误信息 */
|
|
390
|
+
error_msg?: string;
|
|
391
|
+
/** code */
|
|
392
|
+
code?: string;
|
|
393
|
+
}
|
|
308
394
|
export interface QueryApaasUserTaskRequest {
|
|
309
395
|
/** 类型 */
|
|
310
396
|
type?: string;
|
|
@@ -323,6 +409,12 @@ export interface QueryApaasUserTaskRequest {
|
|
|
323
409
|
/** kunlunUserID */
|
|
324
410
|
kunlun_user_id: string;
|
|
325
411
|
}
|
|
412
|
+
export interface QueryApaasUserTaskResponse {
|
|
413
|
+
/** 总任务条数 */
|
|
414
|
+
count?: string;
|
|
415
|
+
/** 任务信息 */
|
|
416
|
+
tasks?: UserTask[];
|
|
417
|
+
}
|
|
326
418
|
export interface AgreeApaasApprovalTaskRequest {
|
|
327
419
|
/** 操作人id */
|
|
328
420
|
user_id: string;
|
|
@@ -379,6 +471,10 @@ export interface RollbackPointsApaasUserTaskRequest {
|
|
|
379
471
|
/** 操作人kunlunUserID */
|
|
380
472
|
operator_user_id: string;
|
|
381
473
|
}
|
|
474
|
+
export interface RollbackPointsApaasUserTaskResponse {
|
|
475
|
+
/** 任务列表 */
|
|
476
|
+
tasks?: AllowedRollbaclkTaskItemType[];
|
|
477
|
+
}
|
|
382
478
|
export interface RollbackApaasUserTaskRequest {
|
|
383
479
|
/** 操作人kunlunUserID */
|
|
384
480
|
operator_user_id: string;
|
|
@@ -397,102 +493,6 @@ export interface ChatGroupApaasUserTaskRequest {
|
|
|
397
493
|
/** 要加入的群名称,当chat_id为空时用该名称创建群聊 */
|
|
398
494
|
chat_name?: string;
|
|
399
495
|
}
|
|
400
|
-
export interface AuditLogListApaasApplicationAuditLogResponse {
|
|
401
|
-
/** 审计日志查询结果列表详情信息 */
|
|
402
|
-
items?: AuditLogEsField[];
|
|
403
|
-
/** 审计日志查询总条数 */
|
|
404
|
-
total?: string;
|
|
405
|
-
}
|
|
406
|
-
export interface GetApaasApplicationAuditLogResponse {
|
|
407
|
-
/** 审计日志详情信息 */
|
|
408
|
-
data?: AuditLogDetail;
|
|
409
|
-
}
|
|
410
|
-
export interface GetApaasApplicationRoleMemberResponse {
|
|
411
|
-
/** 角色成员 */
|
|
412
|
-
role_member?: RoleMember;
|
|
413
|
-
}
|
|
414
|
-
export interface OqlQueryApaasApplicationObjectResponse {
|
|
415
|
-
/** 每一列的标题 */
|
|
416
|
-
columns: string[];
|
|
417
|
-
/** 每一行的值,以「key-value」的形式返回 */
|
|
418
|
-
rows: string;
|
|
419
|
-
}
|
|
420
|
-
export interface SearchApaasApplicationObjectResponse {
|
|
421
|
-
/** 搜索结果列表 */
|
|
422
|
-
records?: string;
|
|
423
|
-
/** 是否还有更多数据 */
|
|
424
|
-
has_more?: boolean;
|
|
425
|
-
/** 分页标记,当 HasMore 为 true 时,会同时返回新的 NextPageToken */
|
|
426
|
-
next_page_token?: string;
|
|
427
|
-
/** 对象信息 */
|
|
428
|
-
objects?: ObjectMeta[];
|
|
429
|
-
}
|
|
430
|
-
export interface QueryApaasApplicationObjectRecordResponse {
|
|
431
|
-
/** 记录详情,格式为 Map<string, ANY> */
|
|
432
|
-
item: string;
|
|
433
|
-
}
|
|
434
|
-
export interface CreateApaasApplicationObjectRecordResponse {
|
|
435
|
-
/** 记录 ID */
|
|
436
|
-
id?: string;
|
|
437
|
-
}
|
|
438
|
-
export interface BatchUpdateApaasApplicationObjectRecordResponse {
|
|
439
|
-
/** 处理结果 */
|
|
440
|
-
items?: RecordResult[];
|
|
441
|
-
}
|
|
442
|
-
export interface BatchQueryApaasApplicationObjectRecordResponse {
|
|
443
|
-
/** 符合条件的记录列表 */
|
|
444
|
-
items: string;
|
|
445
|
-
/** 符合条件的记录数 */
|
|
446
|
-
total?: number;
|
|
447
|
-
/** 下一页的起始位置 Token ,访问至末尾时不返回 */
|
|
448
|
-
next_page_token?: string;
|
|
449
|
-
/** 是否还有数据 */
|
|
450
|
-
has_more?: boolean;
|
|
451
|
-
}
|
|
452
|
-
export interface BatchDeleteApaasApplicationObjectRecordResponse {
|
|
453
|
-
/** 处理结果 */
|
|
454
|
-
items?: RecordResult[];
|
|
455
|
-
}
|
|
456
|
-
export interface BatchCreateApaasApplicationObjectRecordResponse {
|
|
457
|
-
/** 处理结果 */
|
|
458
|
-
items?: RecordResult[];
|
|
459
|
-
}
|
|
460
|
-
export interface InvokeApaasApplicationFunctionResponse {
|
|
461
|
-
/** 函数执行的返回结果(JSON 序列化后的字符串) */
|
|
462
|
-
result?: string;
|
|
463
|
-
}
|
|
464
|
-
export interface QueryApaasApplicationEnvironmentVariableResponse {
|
|
465
|
-
/** 环境变量列表 */
|
|
466
|
-
items?: EnvironmentVariable[];
|
|
467
|
-
/** 符合查询条件的环境变量的总数 */
|
|
468
|
-
total: number;
|
|
469
|
-
}
|
|
470
|
-
export interface GetApaasApplicationEnvironmentVariableResponse {
|
|
471
|
-
/** 环境变量详情 */
|
|
472
|
-
item?: EnvironmentVariable;
|
|
473
|
-
}
|
|
474
|
-
export interface ExecuteApaasApplicationFlowResponse {
|
|
475
|
-
/** 状态 */
|
|
476
|
-
status?: string;
|
|
477
|
-
/** 输出参数 */
|
|
478
|
-
out_params?: string;
|
|
479
|
-
/** 执行id */
|
|
480
|
-
execution_id?: string;
|
|
481
|
-
/** 错误信息 */
|
|
482
|
-
error_msg?: string;
|
|
483
|
-
/** code */
|
|
484
|
-
code?: string;
|
|
485
|
-
}
|
|
486
|
-
export interface QueryApaasUserTaskResponse {
|
|
487
|
-
/** 总任务条数 */
|
|
488
|
-
count?: string;
|
|
489
|
-
/** 任务信息 */
|
|
490
|
-
tasks?: UserTask[];
|
|
491
|
-
}
|
|
492
|
-
export interface RollbackPointsApaasUserTaskResponse {
|
|
493
|
-
/** 任务列表 */
|
|
494
|
-
tasks?: AllowedRollbaclkTaskItemType[];
|
|
495
|
-
}
|
|
496
496
|
export interface ChatGroupApaasUserTaskResponse {
|
|
497
497
|
/** 创建的群聊ID */
|
|
498
498
|
chat_id?: string;
|