@satorijs/adapter-lark 3.10.6 → 3.11.0
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 +2880 -2370
- package/lib/internal.d.ts +4 -4
- package/lib/types/acs.d.ts +212 -172
- package/lib/types/admin.d.ts +331 -291
- package/lib/types/aily.d.ts +331 -216
- package/lib/types/apaas.d.ts +646 -494
- package/lib/types/application.d.ts +559 -458
- package/lib/types/approval.d.ts +826 -791
- package/lib/types/attendance.d.ts +1094 -994
- package/lib/types/auth.d.ts +66 -61
- package/lib/types/authen.d.ts +221 -186
- package/lib/types/baike.d.ts +258 -233
- package/lib/types/base.d.ts +74 -0
- package/lib/types/bitable.d.ts +830 -770
- package/lib/types/board.d.ts +29 -14
- package/lib/types/calendar.d.ts +660 -605
- package/lib/types/cardkit.d.ts +149 -134
- package/lib/types/compensation.d.ts +84 -49
- package/lib/types/contact.d.ts +1279 -1204
- package/lib/types/corehr.d.ts +4982 -4526
- package/lib/types/directory.d.ts +447 -0
- package/lib/types/docs.d.ts +28 -18
- package/lib/types/document_ai.d.ts +347 -252
- package/lib/types/docx.d.ts +428 -383
- package/lib/types/drive.d.ts +1093 -1048
- package/lib/types/ehr.d.ts +66 -51
- package/lib/types/event.d.ts +16 -6
- package/lib/types/helpdesk.d.ts +816 -741
- package/lib/types/hire.d.ts +3955 -3589
- package/lib/types/human_authentication.d.ts +32 -22
- package/lib/types/im.d.ts +1420 -1295
- package/lib/types/index.d.ts +1422 -330
- package/lib/types/lingo.d.ts +279 -249
- package/lib/types/mail.d.ts +1032 -675
- package/lib/types/mdm.d.ts +105 -37
- package/lib/types/minutes.d.ts +73 -26
- package/lib/types/moments.d.ts +23 -13
- package/lib/types/okr.d.ts +266 -225
- package/lib/types/optical_char_recognition.d.ts +22 -12
- package/lib/types/passport.d.ts +58 -48
- package/lib/types/payroll.d.ts +210 -53
- package/lib/types/performance.d.ts +463 -414
- package/lib/types/personal_settings.d.ts +93 -82
- package/lib/types/report.d.ts +79 -58
- package/lib/types/search.d.ts +265 -235
- package/lib/types/security_and_compliance.d.ts +30 -19
- package/lib/types/sheets.d.ts +356 -321
- package/lib/types/speech_to_text.d.ts +44 -34
- package/lib/types/task.d.ts +998 -1087
- package/lib/types/tenant.d.ts +25 -15
- package/lib/types/translation.d.ts +42 -32
- package/lib/types/trust_party.d.ts +81 -0
- package/lib/types/vc.d.ts +1218 -1123
- package/lib/types/verification.d.ts +11 -6
- package/lib/types/wiki.d.ts +270 -235
- package/lib/types/workplace.d.ts +58 -38
- package/lib/utils.d.ts +2 -2
- package/package.json +4 -4
- package/src/bot.ts +15 -15
- package/src/internal.ts +29 -12
- package/src/message.ts +10 -10
- package/src/types/acs.ts +234 -186
- package/src/types/admin.ts +353 -305
- package/src/types/aily.ts +375 -233
- package/src/types/apaas.ts +754 -568
- package/src/types/application.ts +633 -507
- package/src/types/approval.ts +914 -872
- package/src/types/attendance.ts +1226 -1104
- package/src/types/auth.ts +72 -66
- package/src/types/authen.ts +233 -191
- package/src/types/baike.ts +276 -246
- package/src/types/base.ts +93 -0
- package/src/types/bitable.ts +966 -894
- package/src/types/board.ts +34 -16
- package/src/types/calendar.ts +751 -685
- package/src/types/cardkit.ts +164 -146
- package/src/types/compensation.ts +97 -55
- package/src/types/contact.ts +1465 -1375
- package/src/types/corehr.ts +5664 -5077
- package/src/types/directory.ts +569 -0
- package/src/types/docs.ts +31 -19
- package/src/types/document_ai.ts +401 -287
- package/src/types/docx.ts +492 -438
- package/src/types/drive.ts +1266 -1213
- package/src/types/ehr.ts +71 -53
- package/src/types/event.ts +19 -7
- package/src/types/helpdesk.ts +930 -840
- package/src/types/hire.ts +4453 -4019
- package/src/types/human_authentication.ts +35 -23
- package/src/types/im.ts +1626 -1476
- package/src/types/index.ts +1532 -346
- package/src/types/lingo.ts +299 -263
- package/src/types/mail.ts +1231 -779
- package/src/types/mdm.ts +122 -39
- package/src/types/minutes.ts +88 -28
- package/src/types/moments.ts +26 -14
- package/src/types/okr.ts +286 -238
- package/src/types/optical_char_recognition.ts +25 -13
- package/src/types/passport.ts +62 -50
- package/src/types/payroll.ts +254 -57
- package/src/types/performance.ts +528 -467
- package/src/types/personal_settings.ts +101 -89
- package/src/types/report.ts +86 -62
- package/src/types/search.ts +285 -249
- package/src/types/security_and_compliance.ts +33 -21
- package/src/types/sheets.ts +421 -379
- package/src/types/speech_to_text.ts +48 -36
- package/src/types/task.ts +1152 -1260
- package/src/types/tenant.ts +29 -17
- package/src/types/translation.ts +46 -34
- package/src/types/trust_party.ts +110 -0
- package/src/types/vc.ts +1397 -1283
- package/src/types/verification.ts +13 -7
- package/src/types/wiki.ts +293 -251
- package/src/types/workplace.ts +65 -41
- package/src/utils.ts +3 -3
package/src/types/acs.ts
CHANGED
|
@@ -1,236 +1,284 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Internal, Pagination } from '../internal'
|
|
1
|
+
import * as Lark from '.'
|
|
2
|
+
import { Internal, Paginated, Pagination } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 修改用户部分信息
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/patch
|
|
9
|
-
*/
|
|
10
|
-
patchAcsUser(user_id: string, body: PatchAcsUserRequest, query?: PatchAcsUserQuery): Promise<void>
|
|
11
|
-
/**
|
|
12
|
-
* 获取单个用户信息
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/get
|
|
14
|
-
*/
|
|
15
|
-
getAcsUser(user_id: string, query?: GetAcsUserQuery): Promise<GetAcsUserResponse>
|
|
16
|
-
/**
|
|
17
|
-
* 获取用户列表
|
|
18
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/list
|
|
19
|
-
*/
|
|
20
|
-
listAcsUser(query?: ListAcsUserQuery): Paginated<User>
|
|
21
|
-
/**
|
|
22
|
-
* 上传人脸图片
|
|
23
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user-face/update
|
|
24
|
-
*/
|
|
25
|
-
updateAcsUserFace(user_id: string, form: UpdateAcsUserFaceForm, query?: UpdateAcsUserFaceQuery): Promise<void>
|
|
26
|
-
/**
|
|
27
|
-
* 下载人脸图片
|
|
28
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user-face/get
|
|
29
|
-
*/
|
|
30
|
-
getAcsUserFace(user_id: string, query?: GetAcsUserFaceQuery): Promise<ArrayBuffer>
|
|
31
|
-
/**
|
|
32
|
-
* 设备绑定权限组
|
|
33
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/device_bind
|
|
34
|
-
*/
|
|
35
|
-
deviceBindAcsRuleExternal(body: DeviceBindAcsRuleExternalRequest): Promise<void>
|
|
36
|
-
/**
|
|
37
|
-
* 获取权限组信息
|
|
38
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/get
|
|
39
|
-
*/
|
|
40
|
-
getAcsRuleExternal(query?: GetAcsRuleExternalQuery): Promise<GetAcsRuleExternalResponse>
|
|
41
|
-
/**
|
|
42
|
-
* 删除权限组
|
|
43
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/delete
|
|
44
|
-
*/
|
|
45
|
-
deleteAcsRuleExternal(query?: DeleteAcsRuleExternalQuery): Promise<void>
|
|
46
|
-
/**
|
|
47
|
-
* 创建或更新权限组
|
|
48
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/create
|
|
49
|
-
*/
|
|
50
|
-
createAcsRuleExternal(body: CreateAcsRuleExternalRequest, query?: CreateAcsRuleExternalQuery): Promise<CreateAcsRuleExternalResponse>
|
|
51
|
-
/**
|
|
52
|
-
* 删除访客
|
|
53
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/visitor/delete
|
|
54
|
-
*/
|
|
55
|
-
deleteAcsVisitor(visitor_id: string, query?: DeleteAcsVisitorQuery): Promise<void>
|
|
56
|
-
/**
|
|
57
|
-
* 添加访客
|
|
58
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/visitor/create
|
|
59
|
-
*/
|
|
60
|
-
createAcsVisitor(body: CreateAcsVisitorRequest, query?: CreateAcsVisitorQuery): Promise<CreateAcsVisitorResponse>
|
|
61
|
-
/**
|
|
62
|
-
* 获取门禁设备列表
|
|
63
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/device/list
|
|
64
|
-
*/
|
|
65
|
-
listAcsDevice(): Promise<ListAcsDeviceResponse>
|
|
66
|
-
/**
|
|
67
|
-
* 获取门禁记录列表
|
|
68
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record/list
|
|
69
|
-
*/
|
|
70
|
-
listAcsAccessRecord(query?: ListAcsAccessRecordQuery): Paginated<AccessRecord>
|
|
71
|
-
/**
|
|
72
|
-
* 下载开门时的人脸识别图片
|
|
73
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record-access_photo/get
|
|
74
|
-
*/
|
|
75
|
-
getAcsAccessRecordAccessPhoto(access_record_id: string): Promise<ArrayBuffer>
|
|
6
|
+
acs: Acs.Methods
|
|
76
7
|
}
|
|
77
8
|
}
|
|
78
9
|
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
10
|
+
export namespace Acs {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
user: User.Methods
|
|
13
|
+
ruleExternal: RuleExternal.Methods
|
|
14
|
+
visitor: Visitor.Methods
|
|
15
|
+
device: Device.Methods
|
|
16
|
+
accessRecord: AccessRecord.Methods
|
|
17
|
+
}
|
|
83
18
|
|
|
84
|
-
export
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
19
|
+
export namespace User {
|
|
20
|
+
export interface Methods {
|
|
21
|
+
face: Face.Methods
|
|
22
|
+
/**
|
|
23
|
+
* 修改用户部分信息
|
|
24
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/patch
|
|
25
|
+
*/
|
|
26
|
+
patch(user_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>
|
|
27
|
+
/**
|
|
28
|
+
* 获取单个用户信息
|
|
29
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/get
|
|
30
|
+
*/
|
|
31
|
+
get(user_id: string, query?: GetQuery): Promise<GetResponse>
|
|
32
|
+
/**
|
|
33
|
+
* 获取用户列表
|
|
34
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user/list
|
|
35
|
+
*/
|
|
36
|
+
list(query?: ListQuery): Paginated<Lark.User>
|
|
37
|
+
}
|
|
88
38
|
|
|
89
|
-
export interface
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
39
|
+
export interface PatchRequest {
|
|
40
|
+
/** 用户特征 */
|
|
41
|
+
feature?: Lark.Feature
|
|
42
|
+
}
|
|
93
43
|
|
|
94
|
-
export interface
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
44
|
+
export interface PatchQuery {
|
|
45
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
46
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
47
|
+
}
|
|
98
48
|
|
|
99
|
-
export interface
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
49
|
+
export interface GetQuery {
|
|
50
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
51
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
52
|
+
}
|
|
103
53
|
|
|
104
|
-
export interface
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
file_type: string
|
|
109
|
-
/** 带后缀的文件名 */
|
|
110
|
-
file_name: string
|
|
111
|
-
}
|
|
54
|
+
export interface GetResponse {
|
|
55
|
+
/** 门禁用户信息 */
|
|
56
|
+
user?: Lark.User
|
|
57
|
+
}
|
|
112
58
|
|
|
113
|
-
export interface
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
59
|
+
export interface ListQuery extends Pagination {
|
|
60
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
61
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
62
|
+
}
|
|
117
63
|
|
|
118
|
-
export
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
64
|
+
export namespace Face {
|
|
65
|
+
export interface Methods {
|
|
66
|
+
/**
|
|
67
|
+
* 上传人脸图片
|
|
68
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user-face/update
|
|
69
|
+
*/
|
|
70
|
+
update(user_id: string, form: UpdateForm, query?: UpdateQuery): Promise<void>
|
|
71
|
+
/**
|
|
72
|
+
* 下载人脸图片
|
|
73
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/user-face/get
|
|
74
|
+
*/
|
|
75
|
+
get(user_id: string, query?: GetQuery): Promise<ArrayBuffer>
|
|
76
|
+
}
|
|
124
77
|
|
|
125
|
-
export interface
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
78
|
+
export interface UpdateForm {
|
|
79
|
+
/** 人脸图片内容 */
|
|
80
|
+
files: Blob
|
|
81
|
+
/** 文件类型,可选的类型有jpg,png */
|
|
82
|
+
file_type: string
|
|
83
|
+
/** 带后缀的文件名 */
|
|
84
|
+
file_name: string
|
|
85
|
+
}
|
|
131
86
|
|
|
132
|
-
export interface
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
137
|
-
}
|
|
87
|
+
export interface UpdateQuery {
|
|
88
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
89
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
90
|
+
}
|
|
138
91
|
|
|
139
|
-
export interface
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
92
|
+
export interface GetQuery {
|
|
93
|
+
/** 裁剪图 */
|
|
94
|
+
is_cropped?: boolean
|
|
95
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
96
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
143
100
|
|
|
144
|
-
export
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
101
|
+
export namespace RuleExternal {
|
|
102
|
+
export interface Methods {
|
|
103
|
+
/**
|
|
104
|
+
* 设备绑定权限组
|
|
105
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/device_bind
|
|
106
|
+
*/
|
|
107
|
+
deviceBind(body: DeviceBindRequest): Promise<void>
|
|
108
|
+
/**
|
|
109
|
+
* 获取权限组信息
|
|
110
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/get
|
|
111
|
+
*/
|
|
112
|
+
get(query?: GetQuery): Promise<GetResponse>
|
|
113
|
+
/**
|
|
114
|
+
* 删除权限组
|
|
115
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/delete
|
|
116
|
+
*/
|
|
117
|
+
delete(query?: DeleteQuery): Promise<void>
|
|
118
|
+
/**
|
|
119
|
+
* 创建或更新权限组
|
|
120
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/rule_external/create
|
|
121
|
+
*/
|
|
122
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
123
|
+
}
|
|
148
124
|
|
|
149
|
-
export interface
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
125
|
+
export interface DeviceBindRequest {
|
|
126
|
+
/** 设备id */
|
|
127
|
+
device_id: string
|
|
128
|
+
/** 权限组id列表 */
|
|
129
|
+
rule_ids: string[]
|
|
130
|
+
}
|
|
153
131
|
|
|
154
|
-
export interface
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
132
|
+
export interface GetQuery {
|
|
133
|
+
/** 设备id */
|
|
134
|
+
device_id?: string
|
|
135
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
136
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
137
|
+
}
|
|
160
138
|
|
|
161
|
-
export interface
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
139
|
+
export interface GetResponse {
|
|
140
|
+
/** 设备权限组信息 */
|
|
141
|
+
rules: Lark.Rule[]
|
|
142
|
+
}
|
|
165
143
|
|
|
166
|
-
export interface
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
144
|
+
export interface DeleteQuery {
|
|
145
|
+
/** 权限组id */
|
|
146
|
+
rule_id: string
|
|
147
|
+
}
|
|
170
148
|
|
|
171
|
-
export interface
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
149
|
+
export interface CreateRequest {
|
|
150
|
+
/** 权限组信息 */
|
|
151
|
+
rule: Lark.Rule
|
|
152
|
+
}
|
|
175
153
|
|
|
176
|
-
export interface
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
154
|
+
export interface CreateQuery {
|
|
155
|
+
/** 权限组id-为空创建,不为空则更新 */
|
|
156
|
+
rule_id?: string
|
|
157
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
158
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
159
|
+
}
|
|
180
160
|
|
|
181
|
-
export interface
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
161
|
+
export interface CreateResponse {
|
|
162
|
+
/** 权限组id */
|
|
163
|
+
rule_id: string
|
|
164
|
+
}
|
|
165
|
+
}
|
|
185
166
|
|
|
186
|
-
export
|
|
187
|
-
|
|
188
|
-
|
|
167
|
+
export namespace Visitor {
|
|
168
|
+
export interface Methods {
|
|
169
|
+
/**
|
|
170
|
+
* 删除访客
|
|
171
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/visitor/delete
|
|
172
|
+
*/
|
|
173
|
+
delete(visitor_id: string, query?: DeleteQuery): Promise<void>
|
|
174
|
+
/**
|
|
175
|
+
* 添加访客
|
|
176
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/visitor/create
|
|
177
|
+
*/
|
|
178
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface DeleteQuery {
|
|
182
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
183
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface CreateRequest {
|
|
187
|
+
/** 访客信息 */
|
|
188
|
+
user: Lark.UserExternal
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface CreateQuery {
|
|
192
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
193
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
194
|
+
}
|
|
189
195
|
|
|
190
|
-
export interface
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
export interface CreateResponse {
|
|
197
|
+
/** 访客的id */
|
|
198
|
+
visitor_id: string
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export namespace Device {
|
|
203
|
+
export interface Methods {
|
|
204
|
+
/**
|
|
205
|
+
* 获取门禁设备列表
|
|
206
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/device/list
|
|
207
|
+
*/
|
|
208
|
+
list(): Promise<ListResponse>
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface ListResponse {
|
|
212
|
+
items?: Lark.Device[]
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export namespace AccessRecord {
|
|
217
|
+
export interface Methods {
|
|
218
|
+
accessPhoto: AccessPhoto.Methods
|
|
219
|
+
/**
|
|
220
|
+
* 获取门禁记录列表
|
|
221
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record/list
|
|
222
|
+
*/
|
|
223
|
+
list(query?: ListQuery): Paginated<Lark.AccessRecord>
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface ListQuery extends Pagination {
|
|
227
|
+
/** 记录开始时间,单位秒 */
|
|
228
|
+
from: number
|
|
229
|
+
/** 记录结束时间,单位秒,时间跨度不能超过30天 */
|
|
230
|
+
to: number
|
|
231
|
+
/** 门禁设备 ID */
|
|
232
|
+
device_id?: string
|
|
233
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
234
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export namespace AccessPhoto {
|
|
238
|
+
export interface Methods {
|
|
239
|
+
/**
|
|
240
|
+
* 下载开门时的人脸识别图片
|
|
241
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/acs-v1/access_record-access_photo/get
|
|
242
|
+
*/
|
|
243
|
+
get(access_record_id: string): Promise<ArrayBuffer>
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
199
247
|
}
|
|
200
248
|
|
|
201
249
|
Internal.define({
|
|
202
250
|
'/acs/v1/users/{user_id}': {
|
|
203
|
-
PATCH: '
|
|
204
|
-
GET: '
|
|
251
|
+
PATCH: 'acs.user.patch',
|
|
252
|
+
GET: 'acs.user.get',
|
|
205
253
|
},
|
|
206
254
|
'/acs/v1/users': {
|
|
207
|
-
GET: { name: '
|
|
255
|
+
GET: { name: 'acs.user.list', pagination: { argIndex: 0 } },
|
|
208
256
|
},
|
|
209
257
|
'/acs/v1/users/{user_id}/face': {
|
|
210
|
-
PUT: { name: '
|
|
211
|
-
GET: { name: '
|
|
258
|
+
PUT: { name: 'acs.user.face.update', multipart: true },
|
|
259
|
+
GET: { name: 'acs.user.face.get', type: 'binary' },
|
|
212
260
|
},
|
|
213
261
|
'/acs/v1/rule_external/device_bind': {
|
|
214
|
-
POST: '
|
|
262
|
+
POST: 'acs.ruleExternal.deviceBind',
|
|
215
263
|
},
|
|
216
264
|
'/acs/v1/rule_external': {
|
|
217
|
-
GET: '
|
|
218
|
-
DELETE: '
|
|
219
|
-
POST: '
|
|
265
|
+
GET: 'acs.ruleExternal.get',
|
|
266
|
+
DELETE: 'acs.ruleExternal.delete',
|
|
267
|
+
POST: 'acs.ruleExternal.create',
|
|
220
268
|
},
|
|
221
269
|
'/acs/v1/visitors/{visitor_id}': {
|
|
222
|
-
DELETE: '
|
|
270
|
+
DELETE: 'acs.visitor.delete',
|
|
223
271
|
},
|
|
224
272
|
'/acs/v1/visitors': {
|
|
225
|
-
POST: '
|
|
273
|
+
POST: 'acs.visitor.create',
|
|
226
274
|
},
|
|
227
275
|
'/acs/v1/devices': {
|
|
228
|
-
GET: '
|
|
276
|
+
GET: 'acs.device.list',
|
|
229
277
|
},
|
|
230
278
|
'/acs/v1/access_records': {
|
|
231
|
-
GET: { name: '
|
|
279
|
+
GET: { name: 'acs.accessRecord.list', pagination: { argIndex: 0 } },
|
|
232
280
|
},
|
|
233
281
|
'/acs/v1/access_records/{access_record_id}/access_photo': {
|
|
234
|
-
GET: { name: '
|
|
282
|
+
GET: { name: 'acs.accessRecord.accessPhoto.get', type: 'binary' },
|
|
235
283
|
},
|
|
236
284
|
})
|