@satorijs/adapter-dingtalk 2.0.3 → 2.0.5

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.
Files changed (56) hide show
  1. package/lib/bot.d.ts +1 -1
  2. package/lib/http.d.ts +3 -2
  3. package/lib/index.js +35 -14
  4. package/lib/index.js.map +2 -3
  5. package/package.json +8 -4
  6. package/src/api/.eslintrc.yml +2 -0
  7. package/src/api/alitrip.ts +467 -0
  8. package/src/api/attendance.ts +81 -0
  9. package/src/api/badge.ts +285 -0
  10. package/src/api/blackboard.ts +28 -0
  11. package/src/api/calendar.ts +817 -0
  12. package/src/api/card.ts +215 -0
  13. package/src/api/conference.ts +561 -0
  14. package/src/api/connector.ts +97 -0
  15. package/src/api/contact.ts +56 -0
  16. package/src/api/convFile.ts +166 -0
  17. package/src/api/crm.ts +830 -0
  18. package/src/api/customerService.ts +156 -0
  19. package/src/api/datacenter.ts +672 -0
  20. package/src/api/devicemng.ts +202 -0
  21. package/src/api/diot.ts +19 -0
  22. package/src/api/doc.ts +232 -0
  23. package/src/api/drive.ts +109 -0
  24. package/src/api/edu.ts +30 -0
  25. package/src/api/esign.ts +44 -0
  26. package/src/api/exclusive.ts +372 -0
  27. package/src/api/h3yun.ts +537 -0
  28. package/src/api/hrm.ts +272 -0
  29. package/src/api/im.ts +978 -0
  30. package/src/api/industry.ts +153 -0
  31. package/src/api/jzcrm.ts +304 -0
  32. package/src/api/link.ts +94 -0
  33. package/src/api/live.ts +162 -0
  34. package/src/api/microApp.ts +309 -0
  35. package/src/api/oapi.ts +4083 -0
  36. package/src/api/oauth2.ts +146 -0
  37. package/src/api/pedia.ts +222 -0
  38. package/src/api/project.ts +1519 -0
  39. package/src/api/resident.ts +133 -0
  40. package/src/api/robot.ts +326 -0
  41. package/src/api/rooms.ts +334 -0
  42. package/src/api/serviceGroup.ts +216 -0
  43. package/src/api/storage.ts +1701 -0
  44. package/src/api/swform.ts +94 -0
  45. package/src/api/todo.ts +220 -0
  46. package/src/api/wiki.ts +231 -0
  47. package/src/api/workbench.ts +73 -0
  48. package/src/api/yida.ts +2165 -0
  49. package/src/bot.ts +129 -0
  50. package/src/http.ts +44 -0
  51. package/src/index.ts +9 -0
  52. package/src/internal.ts +47 -0
  53. package/src/message.ts +141 -0
  54. package/src/types/index.ts +140 -0
  55. package/src/utils.ts +53 -0
  56. package/src/ws.ts +55 -0
@@ -0,0 +1,4083 @@
1
+ import { Internal } from '../internal'
2
+ // GENERATED CONTENT
3
+
4
+ export interface OapiServiceGetCorpTokenParams {
5
+ /** 授权方corpid */
6
+ auth_corpid?: string
7
+ }
8
+
9
+ export interface OapiServiceGetCorpTokenResponse {
10
+ /** 授权方(企业)corp_access_token超时时间 */
11
+ expires_in?: unknown
12
+ /** 授权方(企业)corp_access_token */
13
+ access_token?: string
14
+ /** errmsg */
15
+ errmsg?: string
16
+ /** errcode */
17
+ errcode?: unknown
18
+ }
19
+
20
+ export interface OapiSsoGettokenQuery {
21
+ /** 企业Id */
22
+ corpid?: string
23
+ /** 这里必须填写专属的SSOSecret */
24
+ corpsecret?: string
25
+ }
26
+
27
+ export interface OapiSsoGettokenResponse {
28
+ /** 获取到的凭证 */
29
+ access_token?: string
30
+ /** 错误信息 */
31
+ errmsg?: string
32
+ /** 错误码 */
33
+ errcode?: unknown
34
+ }
35
+
36
+ export interface OapiGetJsapiTicketResponse {
37
+ /** 票据过期时间 */
38
+ expires_in?: unknown
39
+ /** 用于JS API的临时票据 */
40
+ ticket?: string
41
+ /** errmsg */
42
+ errmsg?: string
43
+ /** errcode */
44
+ errcode?: unknown
45
+ }
46
+
47
+ export interface OapiGettokenQuery {
48
+ /** 应用的唯一标识key */
49
+ appkey?: string
50
+ /** 应用的密钥 */
51
+ appsecret?: string
52
+ }
53
+
54
+ export interface OapiGettokenResponse {
55
+ /** access_token */
56
+ access_token?: string
57
+ /** expires_in */
58
+ expires_in?: unknown
59
+ /** errmsg */
60
+ errmsg?: string
61
+ /** errcode */
62
+ errcode?: unknown
63
+ }
64
+
65
+ export interface OapiV2UserGetuserinfoParams {
66
+ /** 免登授权码 */
67
+ code: string
68
+ }
69
+
70
+ export interface OapiV2UserGetuserinfoResponse {
71
+ /** 错误码, 0代表成功,其它代表失败。 */
72
+ errcode?: unknown
73
+ /** 错误信息。 */
74
+ errmsg?: string
75
+ /** 返回结果 */
76
+ result?: {
77
+ userid?: string
78
+ device_id?: string
79
+ sys?: number
80
+ sys_level?: number
81
+ unionid?: string
82
+ associated_unionid?: string
83
+ name?: string
84
+ }
85
+ }
86
+
87
+ export interface OapiSnsGetuserinfoBycodeParams {
88
+ /** 登录的临时授权码 */
89
+ tmp_auth_code?: string
90
+ }
91
+
92
+ export interface OapiSnsGetuserinfoBycodeResponse {
93
+ /** user_info */
94
+ user_info?: {
95
+ nick?: string
96
+ unionid?: string
97
+ openid?: string
98
+ main_org_auth_high_level?: number
99
+ }
100
+ /** errmsg */
101
+ errmsg?: string
102
+ /** errcode */
103
+ errcode?: unknown
104
+ }
105
+
106
+ export interface OapiSsoGetuserinfoQuery {
107
+ /** 再次强调,此token不同于一般的accesstoken,需要调用获取微应用管理员免登需要的AccessToken */
108
+ code?: string
109
+ /** 通过Oauth认证给URL带上的CODE */
110
+ access_token?: string
111
+ }
112
+
113
+ export interface OapiSsoGetuserinfoResponse {
114
+ /** user_info */
115
+ user_info?: {
116
+ avatar?: string
117
+ email?: string
118
+ name?: string
119
+ userid?: string
120
+ }
121
+ /** corp_info */
122
+ corp_info?: {
123
+ corp_name?: string
124
+ corpid?: string
125
+ }
126
+ /** is_sys */
127
+ is_sys?: unknown
128
+ /** errcode */
129
+ errcode?: unknown
130
+ /** errmsg */
131
+ errmsg?: string
132
+ }
133
+
134
+ export interface OapiServiceGetAuthInfoParams {
135
+ /** 套件key */
136
+ suite_key?: string
137
+ /** 授权方corpid */
138
+ auth_corpid?: string
139
+ }
140
+
141
+ export interface OapiServiceGetAuthInfoResponse {
142
+ /** auth_info */
143
+ auth_info?: {
144
+ agent?: number
145
+ }
146
+ /** auth_user_info */
147
+ auth_user_info?: {
148
+ userId?: string
149
+ }
150
+ /** auth_corp_info */
151
+ auth_corp_info?: {
152
+ corpid?: string
153
+ invite_code?: string
154
+ industry?: string
155
+ corp_name?: string
156
+ license_code?: string
157
+ auth_channel?: string
158
+ auth_channel_type?: string
159
+ is_authenticated?: number
160
+ auth_level?: number
161
+ invite_url?: string
162
+ corp_logo_url?: string
163
+ belong_corp_id?: string
164
+ unifiedSocialCredit?: string
165
+ full_corp_name?: string
166
+ }
167
+ /** errmsg */
168
+ errmsg?: string
169
+ /** errcode */
170
+ errcode?: unknown
171
+ /** channel_auth_info */
172
+ channel_auth_info?: {
173
+ channelAgent?: number
174
+ }
175
+ }
176
+
177
+ export interface OapiV2UserUpdateParams {
178
+ /** 员工id,长度最大64个字符。员工在当前企业内的唯一标识。如果不传,服务器将自动生成一个userid。创建后不可修改,企业内必须唯一。 */
179
+ userid: string
180
+ /** 员工名称,长度最大80个字符。 */
181
+ name?: string
182
+ /** 手机号码,企业内必须唯一,不可重复。如果是国际号码,请使用+xx-xxxxxx的格式 */
183
+ mobile?: string
184
+ /** 是否号码隐藏。隐藏手机号后,手机号在个人资料页隐藏,但仍可对其发DING、发起钉钉免费商务电话。 */
185
+ hide_mobile?: unknown
186
+ /** 分机号,长度最大50个字符。企业内必须唯一,不可重复 */
187
+ telephone?: string
188
+ /** 员工工号,长度最大50个字符。 */
189
+ job_number?: string
190
+ /** 职位,长度最大200个字符。 */
191
+ title?: string
192
+ /** 员工邮箱,长度最大50个字符。企业内必须唯一,不可重复。 */
193
+ email?: string
194
+ /** 员工的企业邮箱,长度最大100个字符。员工的企业邮箱已开通,才能增加此字段。 */
195
+ org_email?: string
196
+ /** 办公地点,长度最大100个字符。 */
197
+ work_place?: string
198
+ /** 备注,长度最大2000个字符。 */
199
+ remark?: string
200
+ /** 所属部门id列表 */
201
+ dept_id_list?: number[]
202
+ /** 员工在对应的部门中的排序。 */
203
+ dept_order_list?: object[]
204
+ /** 员工在对应的部门中的职位。 */
205
+ dept_title_list?: object[]
206
+ /** 扩展属性,长度最大2000个字符。可以设置多种属性(手机上最多显示10个扩展属性,具体显示哪些属性,请到OA管理后台->设置->通讯录信息设置和OA管理后台->设置->手机端显示信息设置)。 该字段的值支持链接类型填写,同时链接支持变量通配符自动替换,目前支持通配符有:userid,corpid。示例: [工位地址](http://www.dingtalk.com?userid=#userid#&corpid=#corpid#) */
207
+ extension?: unknown
208
+ /** 是否高管模式。开启后,手机号码对所有员工隐藏。普通员工无法对其发DING、发起钉钉免费商务电话。高管之间不受影响。 */
209
+ senior_mode?: unknown
210
+ /** 入职时间,Unix时间戳,单位ms。 */
211
+ hired_date?: unknown
212
+ /** 语言 */
213
+ language?: string
214
+ /** 重置专属帐号密码 */
215
+ init_password?: string
216
+ /** 修改专属帐号登录名 */
217
+ loginId?: string
218
+ /** 部门内任职 */
219
+ dept_position_list?: object[]
220
+ /** 企业邮箱类型(profession:标准版,base:基础版) */
221
+ org_email_type?: string
222
+ /** 强制更新的字段,支持清空指定的字段,使用逗号分隔。目前支持字段:manager_userid */
223
+ force_update_fields?: string[]
224
+ /** 直属主管 */
225
+ manager_userid?: string
226
+ /** 专属帐号手机号 */
227
+ exclusive_mobile?: string
228
+ /** 手机号验证状态 */
229
+ exclusive_mobile_verify_status?: string
230
+ /** 修改本组织专属帐号时可指定昵称 */
231
+ nickname?: string
232
+ /** 修改本组织专属帐号时可指定头像MediaId。只支持参考jpg/png,生成方法 https://open.dingtalk.com/document/app/upload-media-files */
233
+ avatarMediaId?: string
234
+ /** 自定义字段更新模式,0-覆盖方式 1-追加方式 (默认是覆盖) */
235
+ ext_attrs_update_mode?: unknown
236
+ /** 更新自定义字段列表 */
237
+ ext_attrs?: object[]
238
+ /** 自定义性别字段 */
239
+ gender?: string
240
+ }
241
+
242
+ export interface OapiV2UserUpdateResponse {
243
+ /** 错误码。0代表成功。 */
244
+ errcode?: unknown
245
+ /** 错误信息。 */
246
+ errmsg?: string
247
+ }
248
+
249
+ export interface OapiV2UserCreateParams {
250
+ /** 员工id,长度最大64个字符。员工在当前企业内的唯一标识。 */
251
+ userid?: string
252
+ /** 员工名称,长度最大80个字符。 */
253
+ name: string
254
+ /** 手机号码,企业内必须唯一,不可重复。如果是国际号码,请使用+xx-xxxxxx的格式 */
255
+ mobile?: string
256
+ /** 是否号码隐藏。隐藏手机号后,手机号在个人资料页隐藏,但仍可对其发DING、发起钉钉免费商务电话。 */
257
+ hide_mobile?: unknown
258
+ /** 分机号,长度最大50个字符。企业内必须唯一,不可重复 */
259
+ telephone?: string
260
+ /** 员工工号,长度最大50个字符。 */
261
+ job_number?: string
262
+ /** 职位,长度最大200个字符。 */
263
+ title?: string
264
+ /** 员工邮箱,长度最大50个字符。企业内必须唯一,不可重复。 */
265
+ email?: string
266
+ /** 员工的企业邮箱,长度最大100个字符。员工的企业邮箱已开通,才能增加此字段。 */
267
+ org_email?: string
268
+ /** 办公地点,长度最大100个字符。 */
269
+ work_place?: string
270
+ /** 备注,长度最大2000个字符。 */
271
+ remark?: string
272
+ /** 所属部门id列表 */
273
+ dept_id_list?: number[]
274
+ /** 员工在对应的部门中的排序。 */
275
+ dept_order_list?: object[]
276
+ /** 员工在对应的部门中的职位。 */
277
+ dept_title_list?: object[]
278
+ /** 扩展属性,长度最大2000个字符。可以设置多种属性(手机上最多显示10个扩展属性,具体显示哪些属性,请到OA管理后台->设置->通讯录信息设置和OA管理后台->设置->手机端显示信息设置)。 该字段的值支持链接类型填写,同时链接支持变量通配符自动替换,目前支持通配符有:userid,corpid。示例: [工位地址](http://www.dingtalk.com?userid=#userid#&corpid=#corpid#) */
279
+ extension?: unknown
280
+ /** 是否高管模式。开启后,手机号码对所有员工隐藏。普通员工无法对其发DING、发起钉钉免费商务电话。高管之间不受影响。 */
281
+ senior_mode?: unknown
282
+ /** 入职时间,Unix时间戳,单位ms。 */
283
+ hired_date?: unknown
284
+ /** 登录邮箱 */
285
+ login_email?: string
286
+ /** 是否专属帐号(true时,不能指定loginEmail或mobile) */
287
+ exclusive_account?: unknown
288
+ /** 专属帐号类型:sso: 企业自建专属帐号;dingtalk:钉钉自建专属帐号。 */
289
+ exclusive_account_type?: string
290
+ /** 钉钉专属帐号登录名 */
291
+ login_id?: string
292
+ /** 钉钉专属帐号初始密码 */
293
+ init_password?: string
294
+ /** 部门内任职 */
295
+ dept_position_list?: object[]
296
+ /** 企业邮箱类型(profession:标准版,base:基础版) */
297
+ org_email_type?: string
298
+ /** 直属主管 */
299
+ manager_userid?: string
300
+ /** 专属帐号手机号 */
301
+ exclusive_mobile?: string
302
+ /** 专属帐号手机号验证状态 */
303
+ exclusive_mobile_verify_status?: string
304
+ /** 需要添加的专属帐号所属corpid */
305
+ outer_exclusive_corpid?: string
306
+ /** 需要添加的专属帐号所属userid */
307
+ outer_exclusive_userid?: string
308
+ /** 创建本组织专属帐号时可指定头像MediaId。只支持参考jpg/png,生成方法 https://open.dingtalk.com/document/app/upload-media-files */
309
+ avatarMediaId?: string
310
+ /** 创建本组织专属帐号时可指定昵称 */
311
+ nickname?: string
312
+ /** 自定义字段更新模式,0-覆盖方式 1-追加方式 (默认是覆盖) */
313
+ ext_attrs_update_mode?: unknown
314
+ /** 自定义字段列表 */
315
+ ext_attrs?: object[]
316
+ /** 自定义性别字段 */
317
+ gender?: string
318
+ }
319
+
320
+ export interface OapiV2UserCreateResponse {
321
+ /** 错误码。0代表成功。 */
322
+ errcode?: unknown
323
+ /** 错误信息。 */
324
+ errmsg?: string
325
+ /** 返回结果 */
326
+ result?: {
327
+ userid?: string
328
+ unionId?: string
329
+ }
330
+ }
331
+
332
+ export interface OapiOrgUnionTrunkGetResponse {
333
+ /** OpenOrgUnion */
334
+ result?: {
335
+ org_name?: string
336
+ corpid?: string
337
+ }[]
338
+ /** 是否成功 */
339
+ success?: unknown
340
+ /** 错误code */
341
+ errcode?: unknown
342
+ /** 错误msg */
343
+ errmsg?: string
344
+ }
345
+
346
+ export interface OapiSmartworkHrmRosterMetaGetParams {
347
+ /** 微应用在企业的AgentId */
348
+ agentid: unknown
349
+ }
350
+
351
+ export interface OapiSmartworkHrmRosterMetaGetResponse {
352
+ /** 花名册分组定义 */
353
+ result?: {
354
+ group_name?: string
355
+ group_id?: string
356
+ field_meta_info_list?: number
357
+ detail?: number
358
+ }[]
359
+ /** 服务调用成功 */
360
+ success?: unknown
361
+ /** 错误码 */
362
+ errcode?: unknown
363
+ /** 错误信息 */
364
+ errmsg?: string
365
+ }
366
+
367
+ export interface OapiSmartworkHrmEmployeeV2ListParams {
368
+ /** 员工id列表 */
369
+ userid_list: string[]
370
+ /** 需要获取的花名册字段信息(不传值时,企业调用获取全部字段,ISV调用获取所有有权限字段。查询字段越少,RT越低,建议按需查询) */
371
+ field_filter_list?: string[]
372
+ /** 微应用在企业的agentId */
373
+ agentid: unknown
374
+ }
375
+
376
+ export interface OapiSmartworkHrmEmployeeV2ListResponse {
377
+ /** 返回结果 */
378
+ result?: {
379
+ corp_id?: string
380
+ field_data_list?: number
381
+ userid?: string
382
+ unionid?: string
383
+ }[]
384
+ /** 调用是否成功 */
385
+ success?: unknown
386
+ /** 错误码 */
387
+ errcode?: unknown
388
+ /** 错误信息 */
389
+ errmsg?: string
390
+ }
391
+
392
+ export interface OapiSmartworkHrmEmployeeV2UpdateParams {
393
+ /** 微应用在企业的AgentId */
394
+ agentid: unknown
395
+ /** 编辑花名册入参 */
396
+ param: unknown
397
+ }
398
+
399
+ export interface OapiSmartworkHrmEmployeeV2UpdateResponse {
400
+ /** 调用是否成功 */
401
+ result?: unknown
402
+ /** 调用结果 */
403
+ success?: unknown
404
+ /** 错误码 */
405
+ errcode?: unknown
406
+ /** 错误信息 */
407
+ errmsg?: string
408
+ }
409
+
410
+ export interface OapiSmartworkHrmEmployeeFieldGrouplistParams {
411
+ /** 微应用在企业的AgentId,不需要自定义字段可不传 */
412
+ agentid?: unknown
413
+ }
414
+
415
+ export interface OapiSmartworkHrmEmployeeFieldGrouplistResponse {
416
+ /** 错误描述 */
417
+ errmsg?: string
418
+ /** 错误码 */
419
+ errcode?: unknown
420
+ /** 成功标记 */
421
+ success?: unknown
422
+ /** 结果集 */
423
+ result?: {
424
+ group_id?: string
425
+ has_detail?: number
426
+ field_list?: number
427
+ }[]
428
+ }
429
+
430
+ export interface OapiSmartworkHrmEmployeeUpdateParams {
431
+ /** 添加待入职入参 */
432
+ param: unknown
433
+ /** 微应用在企业的AgentId */
434
+ agentid: unknown
435
+ }
436
+
437
+ export interface OapiSmartworkHrmEmployeeUpdateResponse {
438
+ /** 业务处理是否成功 */
439
+ result?: unknown
440
+ /** 错误码 */
441
+ errcode?: unknown
442
+ /** 错误信息 */
443
+ errmsg?: string
444
+ /** 调用结果 */
445
+ success?: unknown
446
+ }
447
+
448
+ export interface OapiSmartworkHrmEmployeeQueryonjobParams {
449
+ /** 在职员工子状态筛选。2,试用期;3,正式;5,待离职;-1,无状态 */
450
+ status_list: number[]
451
+ /** 分页起始值,默认0开始 */
452
+ offset: unknown
453
+ /** 分页大小,最大50 */
454
+ size: unknown
455
+ }
456
+
457
+ export interface OapiSmartworkHrmEmployeeQueryonjobResponse {
458
+ /** 分页结果 */
459
+ result?: {
460
+ data_list?: number
461
+ next_cursor?: number
462
+ }
463
+ /** 错误码 */
464
+ errcode?: unknown
465
+ /** 错误信息 */
466
+ errmsg?: string
467
+ /** 调用结果 */
468
+ success?: unknown
469
+ }
470
+
471
+ export interface OapiSmartworkHrmEmployeeQuerypreentryParams {
472
+ /** 分页起始值,默认0开始 */
473
+ offset: unknown
474
+ /** 分页大小,最大50 */
475
+ size: unknown
476
+ }
477
+
478
+ export interface OapiSmartworkHrmEmployeeQuerypreentryResponse {
479
+ /** 分页结果 */
480
+ result?: {
481
+ next_cursor?: number
482
+ data_list?: number
483
+ }
484
+ /** 错误码 */
485
+ errcode?: unknown
486
+ /** 错误信息 */
487
+ errmsg?: string
488
+ /** 调用结果 */
489
+ success?: unknown
490
+ }
491
+
492
+ export interface OapiSmartworkHrmEmployeeAddpreentryParams {
493
+ /** 添加待入职入参 */
494
+ param: unknown
495
+ }
496
+
497
+ export interface OapiSmartworkHrmEmployeeAddpreentryResponse {
498
+ /** 员工id */
499
+ userid?: string
500
+ /** 错误码 */
501
+ errcode?: unknown
502
+ /** 错误信息 */
503
+ errmsg?: string
504
+ /** 调用结果 */
505
+ success?: unknown
506
+ }
507
+
508
+ export interface OapiSmartworkHrmEmployeeListParams {
509
+ /** 员工id列表 */
510
+ userid_list: string[]
511
+ /** 需要获取的花名册字段信息 */
512
+ field_filter_list?: string[]
513
+ /** 微应用在企业的agentId */
514
+ agentid?: unknown
515
+ }
516
+
517
+ export interface OapiSmartworkHrmEmployeeListResponse {
518
+ /** 返回结果 */
519
+ result?: {
520
+ userid?: string
521
+ field_list?: number
522
+ partner?: number
523
+ }[]
524
+ /** 错误码 */
525
+ errcode?: unknown
526
+ /** 错误信息 */
527
+ errmsg?: string
528
+ /** 调用是否成功 */
529
+ success?: unknown
530
+ }
531
+
532
+ export interface OapiReportTemplateGetbynameParams {
533
+ /** 员工id */
534
+ userid: string
535
+ /** 模板名称 */
536
+ template_name: string
537
+ }
538
+
539
+ export interface OapiReportTemplateGetbynameResponse {
540
+ /** result */
541
+ result?: {
542
+ default_receivers?: number
543
+ name?: string
544
+ id?: string
545
+ fields?: number
546
+ user_name?: string
547
+ userid?: string
548
+ default_received_convs?: number
549
+ }
550
+ /** 系统自动生成 */
551
+ errcode?: unknown
552
+ /** 系统自动生成 */
553
+ errmsg?: string
554
+ }
555
+
556
+ export interface OapiReportCreateParams {
557
+ /** 创建日志的参数对象 */
558
+ create_report_param: unknown
559
+ }
560
+
561
+ export interface OapiReportCreateResponse {
562
+ /** errmsg */
563
+ errmsg?: string
564
+ /** errcode */
565
+ errcode?: unknown
566
+ /** result */
567
+ result?: string
568
+ }
569
+
570
+ export interface OapiReportSavecontentParams {
571
+ /** 保存日志的参数对象 */
572
+ create_report_param: unknown
573
+ }
574
+
575
+ export interface OapiReportSavecontentResponse {
576
+ /** result */
577
+ result?: string
578
+ /** errcode */
579
+ errcode?: unknown
580
+ /** errmsg */
581
+ errmsg?: string
582
+ }
583
+
584
+ export interface OapiReportSimplelistParams {
585
+ /** 查询起始时间 */
586
+ start_time: unknown
587
+ /** 查询截止时间 */
588
+ end_time: unknown
589
+ /** 要查询的模板名称 */
590
+ template_name?: string
591
+ /** 员工的userid */
592
+ userid?: string
593
+ /** 查询游标,初始传入0,后续从上一次的返回值中获取 */
594
+ cursor: unknown
595
+ /** 每页数据量 */
596
+ size: unknown
597
+ }
598
+
599
+ export interface OapiReportSimplelistResponse {
600
+ /** result */
601
+ result?: {
602
+ data_list?: number
603
+ size?: number
604
+ next_cursor?: number
605
+ has_more?: number
606
+ }
607
+ /** errcode */
608
+ errcode?: unknown
609
+ /** errmsg */
610
+ errmsg?: string
611
+ }
612
+
613
+ export interface OapiReportStatisticsListbytypeParams {
614
+ /** 日志id */
615
+ report_id: string
616
+ /** 查询类型 0:已读人员列表 1:评论人员列表 2:点赞人员列表 */
617
+ type: unknown
618
+ /** 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0 */
619
+ offset?: unknown
620
+ /** 分页参数,每页大小,最多传100,默认值为100 */
621
+ size?: unknown
622
+ }
623
+
624
+ export interface OapiReportStatisticsListbytypeResponse {
625
+ /** 成功 */
626
+ success?: unknown
627
+ /** 错误信息 */
628
+ errmsg?: string
629
+ /** 错误码 */
630
+ errcode?: unknown
631
+ /** 统计结果 */
632
+ result?: {
633
+ next_cursor?: number
634
+ has_more?: number
635
+ userid_list?: number
636
+ }
637
+ }
638
+
639
+ export interface OapiReportReceiverListParams {
640
+ /** 日志id */
641
+ report_id: string
642
+ /** 分页查询的游标,最开始传0,后续传返回参数中next_cursor的值,默认值为0 */
643
+ offset?: unknown
644
+ /** 分页参数,每页大小,最多传100,默认值为100 */
645
+ size?: unknown
646
+ }
647
+
648
+ export interface OapiReportReceiverListResponse {
649
+ /** 统计结果 */
650
+ result?: {
651
+ has_more?: number
652
+ next_cursor?: number
653
+ userid_list?: number
654
+ }
655
+ /** 错误吗 */
656
+ errcode?: unknown
657
+ /** 错误信息 */
658
+ errmsg?: string
659
+ /** 成功 */
660
+ success?: unknown
661
+ }
662
+
663
+ export interface OapiReportCommentListParams {
664
+ /** 日志id */
665
+ report_id: string
666
+ /** 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0 */
667
+ offset?: unknown
668
+ /** 分页参数,每页大小,最多传20,默认值为20 */
669
+ size?: unknown
670
+ }
671
+
672
+ export interface OapiReportCommentListResponse {
673
+ /** 统计结果 */
674
+ result?: {
675
+ comments?: number
676
+ has_more?: number
677
+ next_cursor?: number
678
+ }
679
+ /** 错误码 */
680
+ errcode?: unknown
681
+ /** 错误信息 */
682
+ errmsg?: string
683
+ /** 成功 */
684
+ success?: unknown
685
+ }
686
+
687
+ export interface OapiReportStatisticsParams {
688
+ /** 日志id */
689
+ report_id: string
690
+ }
691
+
692
+ export interface OapiReportStatisticsResponse {
693
+ /** 统计结果 */
694
+ result?: {
695
+ read_num?: number
696
+ comment_num?: number
697
+ comment_user_num?: number
698
+ like_num?: number
699
+ }
700
+ /** 错误码 */
701
+ errcode?: unknown
702
+ /** 错误信息 */
703
+ errmsg?: string
704
+ /** 是否成功 */
705
+ success?: unknown
706
+ }
707
+
708
+ export interface OapiReportGetunreadcountParams {
709
+ /** 员工id */
710
+ userid?: string
711
+ }
712
+
713
+ export interface OapiReportGetunreadcountResponse {
714
+ /** 员工日志未读数 */
715
+ count?: unknown
716
+ /** errorMsg */
717
+ errmsg?: string
718
+ /** 错误码 */
719
+ errcode?: unknown
720
+ }
721
+
722
+ export interface OapiReportListParams {
723
+ /** 查询的日志创建的开始时间 */
724
+ start_time: unknown
725
+ /** 查询的日志创建的结束时间 */
726
+ end_time: unknown
727
+ /** 要查询的模板名称 */
728
+ template_name?: string
729
+ /** 员工的userid */
730
+ userid?: string
731
+ /** 查询游标,初始传入0,后续从上一次的返回值中获取 */
732
+ cursor: unknown
733
+ /** 每页数据量 */
734
+ size: unknown
735
+ /** 查询的日志修改的开始时间 */
736
+ modified_start_time?: unknown
737
+ /** 查询的日志修改的结束时间 */
738
+ modified_end_time?: unknown
739
+ }
740
+
741
+ export interface OapiReportListResponse {
742
+ /** result */
743
+ result?: {
744
+ data_list?: number
745
+ size?: number
746
+ next_cursor?: number
747
+ has_more?: number
748
+ }
749
+ /** errcode */
750
+ errcode?: unknown
751
+ /** errmsg */
752
+ errmsg?: string
753
+ }
754
+
755
+ export interface OapiReportTemplateListbyuseridParams {
756
+ /** 员工userId, 不传递表示获取所有日志模板 */
757
+ userid?: string
758
+ /** 分页游标,从0开始。根据返回结果里的next_cursor是否为空来判断是否还有下一页,且再次调用时offset设置成next_cursor的值 */
759
+ offset?: unknown
760
+ /** 分页大小,最大可设置成100 */
761
+ size?: unknown
762
+ }
763
+
764
+ export interface OapiReportTemplateListbyuseridResponse {
765
+ /** 错误码 */
766
+ errcode?: unknown
767
+ /** 错误信息 */
768
+ errmsg?: string
769
+ /** result */
770
+ result?: {
771
+ template_list?: number
772
+ next_cursor?: number
773
+ }
774
+ }
775
+
776
+ export interface OapiCheckinRecordGetParams {
777
+ /** 需要查询的用户列表 */
778
+ userid_list: string[]
779
+ /** 起始时间,单位毫秒 */
780
+ start_time: unknown
781
+ /** 截止时间,单位毫秒。如果是取1个人的数据,时间范围最大到10天,如果是取多个人的数据,时间范围最大1天。 */
782
+ end_time: unknown
783
+ /** 分页查询的游标,最开始可以传0 */
784
+ cursor: unknown
785
+ /** 分页查询的每页大小,最大100 */
786
+ size: unknown
787
+ }
788
+
789
+ export interface OapiCheckinRecordGetResponse {
790
+ /** result */
791
+ result?: {
792
+ next_cursor?: number
793
+ page_list?: number
794
+ }
795
+ /** errcode */
796
+ errcode?: unknown
797
+ /** errmsg */
798
+ errmsg?: string
799
+ }
800
+
801
+ export interface OapiCheckinRecordQuery {
802
+ /** 部门id(1 表示根部门) */
803
+ department_id?: string
804
+ /** 开始时间,精确到毫秒,注意字段的位数 例:1520956800000 */
805
+ end_time?: unknown
806
+ /** 结束时间,精确到毫秒,注意字段的位数 例:1520956800000(默认为当前时间) */
807
+ start_time?: unknown
808
+ /** 支持分页查询,与size 参数同时设置时才生效,此参数代表偏移量,从0 开始 */
809
+ offset?: unknown
810
+ /** 支持分页查询,与offset 参数同时设置时才生效,此参数代表分页大小,最大100 */
811
+ size?: unknown
812
+ /** 排序,asc 为正序,desc 为倒序 */
813
+ order?: string
814
+ }
815
+
816
+ export interface OapiCheckinRecordResponse {
817
+ /** data */
818
+ data?: {
819
+ name?: string
820
+ userId?: string
821
+ avatar?: string
822
+ timestamp?: number
823
+ place?: string
824
+ detailPlace?: string
825
+ remark?: string
826
+ imageList?: number
827
+ latitude?: string
828
+ longitude?: string
829
+ }[]
830
+ /** 对返回码的文本描述内容 */
831
+ errmsg?: string
832
+ /** 返回码 */
833
+ errcode?: unknown
834
+ }
835
+
836
+ export interface OapiBlackboardCategoryListParams {
837
+ /** 操作人userId(必须是公告管理员) */
838
+ operation_userid: string
839
+ }
840
+
841
+ export interface OapiBlackboardCategoryListResponse {
842
+ /** 出参,success为true时,该值不为空,否则值为空 */
843
+ result?: {
844
+ id?: string
845
+ name?: string
846
+ }[]
847
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
848
+ success?: unknown
849
+ /** 请求失败返回错误码 */
850
+ errcode?: unknown
851
+ /** 请求失败返回错误信息 */
852
+ errmsg?: string
853
+ }
854
+
855
+ export interface OapiBlackboardUpdateParams {
856
+ /** 请求入参 */
857
+ update_request?: unknown
858
+ }
859
+
860
+ export interface OapiBlackboardUpdateResponse {
861
+ /** success为true时,该值不为空,否则值为空 */
862
+ result?: unknown
863
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
864
+ success?: unknown
865
+ /** 请求失败返回的错误码 */
866
+ errcode?: unknown
867
+ /** 请求失败返回的错误信息 */
868
+ errmsg?: string
869
+ }
870
+
871
+ export interface OapiBlackboardDeleteParams {
872
+ /** 公告id,可以通过https://oapi.dingtalk.com/blackboard/listids获取有效值 */
873
+ blackboard_id: string
874
+ /** 操作人userId(必须是公告管理员) */
875
+ operation_userid: string
876
+ }
877
+
878
+ export interface OapiBlackboardDeleteResponse {
879
+ /** success为true时,该值不为空,否则值为空 */
880
+ result?: unknown
881
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
882
+ success?: unknown
883
+ /** 请求失败返回的错误码 */
884
+ errcode?: unknown
885
+ /** 请求失败返回的错误信息 */
886
+ errmsg?: string
887
+ }
888
+
889
+ export interface OapiBlackboardGetParams {
890
+ /** 公告id */
891
+ blackboard_id: string
892
+ /** 操作人userId */
893
+ operation_userid: string
894
+ }
895
+
896
+ export interface OapiBlackboardGetResponse {
897
+ /** 出参,success为true时,该值不为空,否则值为空 */
898
+ result?: {
899
+ id?: string
900
+ author?: string
901
+ title?: string
902
+ content?: string
903
+ category_id?: string
904
+ private_level?: number
905
+ depname_list?: number
906
+ username_list?: number
907
+ gmt_create?: string
908
+ gmt_modified?: string
909
+ read_count?: number
910
+ unread_count?: number
911
+ coverpic_url?: string
912
+ user_list?: number
913
+ deptList?: number
914
+ senderStaffId?: string
915
+ }
916
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
917
+ success?: unknown
918
+ /** 请求失败返回错误码,0代表无错误 */
919
+ errcode?: unknown
920
+ /** 请求失败返回错误信息 */
921
+ errmsg?: string
922
+ }
923
+
924
+ export interface OapiBlackboardListidsParams {
925
+ /** 请求入参 */
926
+ query_request?: unknown
927
+ }
928
+
929
+ export interface OapiBlackboardListidsResponse {
930
+ /** success为true时,返回公告id列表。否则值为空 */
931
+ result?: string[]
932
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
933
+ success?: unknown
934
+ /** 请求失败的错误码 */
935
+ errcode?: unknown
936
+ /** 请求失败的错误原因 */
937
+ errmsg?: string
938
+ }
939
+
940
+ export interface OapiBlackboardCreateParams {
941
+ /** 请求入参 */
942
+ create_request: unknown
943
+ }
944
+
945
+ export interface OapiBlackboardCreateResponse {
946
+ /** success为true时,该值不为空,否则值为空 */
947
+ result?: unknown
948
+ /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */
949
+ success?: unknown
950
+ /** 请求失败返回的错误码 */
951
+ errcode?: unknown
952
+ /** 请求失败返回的错误信息 */
953
+ errmsg?: string
954
+ }
955
+
956
+ export interface OapiBlackboardListtoptenParams {
957
+ /** 用户id */
958
+ userid: string
959
+ /** 公告分类id */
960
+ categoryId?: string
961
+ }
962
+
963
+ export interface OapiBlackboardListtoptenResponse {
964
+ /** errcode */
965
+ errcode?: unknown
966
+ /** errmsg */
967
+ errmsg?: string
968
+ /** result */
969
+ blackboard_list?: {
970
+ gmt_create?: string
971
+ title?: string
972
+ url?: string
973
+ categoryId?: string
974
+ id?: string
975
+ categoryName?: string
976
+ privateLevel?: number
977
+ isPushTop?: number
978
+ }[]
979
+ }
980
+
981
+ export interface OapiHealthStepinfoGetuserstatusParams {
982
+ /** 用户id */
983
+ userid: string
984
+ }
985
+
986
+ export interface OapiHealthStepinfoGetuserstatusResponse {
987
+ /** errcode */
988
+ errcode?: unknown
989
+ /** errmsg */
990
+ errmsg?: string
991
+ /** true表示开启,false表示未开启 */
992
+ status?: unknown
993
+ }
994
+
995
+ export interface OapiHealthStepinfoListbyuseridParams {
996
+ /** 员工userid列表,最多传50个 */
997
+ userids: string[]
998
+ /** 时间,注意时间格式是YYMMDD */
999
+ stat_date: string
1000
+ }
1001
+
1002
+ export interface OapiHealthStepinfoListbyuseridResponse {
1003
+ /** errcode */
1004
+ errcode?: unknown
1005
+ /** errmsg */
1006
+ errmsg?: string
1007
+ /** 步数列表 */
1008
+ stepinfo_list?: {
1009
+ stat_date?: number
1010
+ step_count?: number
1011
+ userid?: string
1012
+ }[]
1013
+ }
1014
+
1015
+ export interface OapiHealthStepinfoListParams {
1016
+ /** 0表示取用户步数,1表示取部门步数 */
1017
+ type: unknown
1018
+ /** 可以传入用户userid或者部门id */
1019
+ object_id: string
1020
+ /** 时间列表,注意时间格式是YYYYMMDD */
1021
+ stat_dates: string[]
1022
+ }
1023
+
1024
+ export interface OapiHealthStepinfoListResponse {
1025
+ /** errcode */
1026
+ errcode?: unknown
1027
+ /** errmsg */
1028
+ errmsg?: string
1029
+ /** 步数列表 */
1030
+ stepinfo_list?: {
1031
+ stat_date?: number
1032
+ step_count?: number
1033
+ }[]
1034
+ }
1035
+
1036
+ export interface OapiMicroappListByUseridQuery {
1037
+ /** 员工userid */
1038
+ userid?: string
1039
+ }
1040
+
1041
+ export interface OapiMicroappListByUseridResponse {
1042
+ /** 返回码 */
1043
+ errcode?: unknown
1044
+ /** 对返回码的文本描述内容 */
1045
+ errmsg?: string
1046
+ /** appList */
1047
+ appList?: {
1048
+ agentId?: number
1049
+ name?: string
1050
+ appIcon?: string
1051
+ appDesc?: string
1052
+ isSelf?: number
1053
+ appStatus?: number
1054
+ homepageLink?: string
1055
+ pcHomepageLink?: string
1056
+ ompLink?: string
1057
+ }[]
1058
+ }
1059
+
1060
+ export interface OapiMicroappListResponse {
1061
+ /** appList */
1062
+ appList?: {
1063
+ name?: string
1064
+ agentId?: number
1065
+ appIcon?: string
1066
+ appDesc?: string
1067
+ isSelf?: number
1068
+ appStatus?: number
1069
+ ompLink?: string
1070
+ homepageLink?: string
1071
+ pcHomepageLink?: string
1072
+ appId?: number
1073
+ }[]
1074
+ /** 对返回码的文本描述内容 */
1075
+ errmsg?: string
1076
+ /** 返回码 */
1077
+ errcode?: unknown
1078
+ }
1079
+
1080
+ export interface OapiMicroappDeleteParams {
1081
+ /** 微应用实例化id,企业只能删除自建微应用 */
1082
+ agentId?: unknown
1083
+ }
1084
+
1085
+ export interface OapiMicroappDeleteResponse {
1086
+ /** errmsg */
1087
+ errmsg?: string
1088
+ /** errcode */
1089
+ errcode?: unknown
1090
+ }
1091
+
1092
+ export interface OapiMicroappSetVisibleScopesParams {
1093
+ /** 设置可见的员工id列表,格式为JSON数组 */
1094
+ userVisibleScopes?: string[]
1095
+ /** 设置可见的部门id列表,格式为JSON数组 */
1096
+ deptVisibleScopes?: number[]
1097
+ /** 是否仅限管理员可见,true代表仅限管理员可见 */
1098
+ isHidden?: unknown
1099
+ /** 微应用实例化id */
1100
+ agentId?: unknown
1101
+ }
1102
+
1103
+ export interface OapiMicroappSetVisibleScopesResponse {
1104
+ /** 返回码 */
1105
+ errmsg?: string
1106
+ /** 对返回码的文本描述内容 */
1107
+ errcode?: unknown
1108
+ }
1109
+
1110
+ export interface OapiMicroappVisibleScopesParams {
1111
+ /** 微应用实例化id */
1112
+ agentId?: unknown
1113
+ }
1114
+
1115
+ export interface OapiMicroappVisibleScopesResponse {
1116
+ /** 微应用的可见用户id列表,格式为JSON数组 */
1117
+ userVisibleScopes?: string[]
1118
+ /** 微应用的可见部门id列表,格式为JSON数组 */
1119
+ deptVisibleScopes?: number[]
1120
+ /** 是否仅限管理员可见 */
1121
+ isHidden?: unknown
1122
+ /** 对返回码的文本描述内容 */
1123
+ errmsg?: string
1124
+ /** 返回码 */
1125
+ errcode?: unknown
1126
+ }
1127
+
1128
+ export interface OapiAsrVoiceTranslateParams {
1129
+ /** media_id,获取方式见https://ding-doc.dingtalk.com/doc#/serverapi2/bcmg0i */
1130
+ media_id: string
1131
+ }
1132
+
1133
+ export interface OapiAsrVoiceTranslateResponse {
1134
+ /** errorMsg */
1135
+ errmsg?: string
1136
+ /** dingOpenErrcode */
1137
+ errcode?: unknown
1138
+ /** result */
1139
+ result?: string
1140
+ }
1141
+
1142
+ export interface OapiAiMtTranslateParams {
1143
+ /** 翻译源文字符串 */
1144
+ query: string
1145
+ /** 翻译源语言类型 */
1146
+ source_language: string
1147
+ /** 翻译目标语言类型 */
1148
+ target_language: string
1149
+ }
1150
+
1151
+ export interface OapiAiMtTranslateResponse {
1152
+ /** 翻译结果字符串 */
1153
+ result?: string
1154
+ /** 成功为0 */
1155
+ errcode?: unknown
1156
+ /** 成功 */
1157
+ errmsg?: string
1158
+ }
1159
+
1160
+ export interface OapiOcrStructuredRecognizeParams {
1161
+ /** 识别图片类型, 身份证idcard,营业执照增值税发票invoice,营业执照blicense,银行卡bank_card,车牌car_no,机动车发票car_invoice,驾驶证driving_license,行驶证vehicle_license,火车票train_ticket,定额发票quota_invoice,出租车发票taxi_ticket,机票行程单air_itinerary */
1162
+ type: string
1163
+ /** 识别图片地址 */
1164
+ image_url: string
1165
+ }
1166
+
1167
+ export interface OapiOcrStructuredRecognizeResponse {
1168
+ /** 错误码 */
1169
+ errcode?: unknown
1170
+ /** 错误描述 */
1171
+ errmsg?: string
1172
+ /** 识别结果 */
1173
+ result?: {
1174
+ height?: number
1175
+ width?: number
1176
+ angle?: number
1177
+ data?: string
1178
+ original_height?: number
1179
+ original_width?: number
1180
+ }
1181
+ }
1182
+
1183
+ export interface OapiImChatScencegroupMessageSendV2Params {
1184
+ /** 接收消息的群的openConversationId */
1185
+ target_open_conversation_id: string
1186
+ /** 模板ID */
1187
+ msg_template_id: string
1188
+ /** 消息模板内容替换参数-普通文本类型 */
1189
+ msg_param_map?: unknown
1190
+ /** 消息模板内容替换参数-多媒体类型 */
1191
+ msg_media_id_param_map?: unknown
1192
+ /** 消息接收人 userId 列表 (不设置任何接收人则全部可见) */
1193
+ receiver_user_ids?: string[]
1194
+ /** 消息接收人 unionId 列表(不设置任何接收人则全部可见) */
1195
+ receiver_union_ids?: string[]
1196
+ /** 消息接收人手机号列表(不设置任何接收人则全部可见) */
1197
+ receiver_mobiles?: string[]
1198
+ /** @人的手机号列表 */
1199
+ at_mobiles?: string[]
1200
+ /** 是否@所有人 */
1201
+ is_at_all?: unknown
1202
+ /** 用于发送卡片的机器人编码,与场景群模板中的机器人编码保持一致 */
1203
+ robot_code?: string
1204
+ /** @人的员工id列表 */
1205
+ at_users?: string[]
1206
+ /** @人的unionId列表 */
1207
+ at_union_ids?: string[]
1208
+ }
1209
+
1210
+ export interface OapiImChatScencegroupMessageSendV2Response {
1211
+ /** 成功 */
1212
+ succ?: unknown
1213
+ /** 统一错误码 */
1214
+ errcode?: unknown
1215
+ /** 错误信息 */
1216
+ errmsg?: string
1217
+ /** 开发消息ID */
1218
+ open_msg_id?: string
1219
+ }
1220
+
1221
+ export interface OapiImChatScenegroupTemplateCloseParams {
1222
+ /** 群主userid */
1223
+ owner_user_id: string
1224
+ /** 群模板ID */
1225
+ template_id: string
1226
+ /** 启用模式 */
1227
+ apply_mode?: unknown
1228
+ /** 加密cid,必填 */
1229
+ open_conversation_id: string
1230
+ }
1231
+
1232
+ export interface OapiImChatScenegroupTemplateCloseResponse {
1233
+ /** 是否成功 */
1234
+ success?: unknown
1235
+ /** 错误信息 */
1236
+ errmsg?: string
1237
+ /** 错误码 */
1238
+ errcode?: unknown
1239
+ }
1240
+
1241
+ export interface OapiImChatScenegroupTemplateApplyParams {
1242
+ /** 群主userid */
1243
+ owner_user_id: string
1244
+ /** 启用模式 */
1245
+ apply_mode?: unknown
1246
+ /** 群模板ID */
1247
+ template_id: string
1248
+ /** 加密cid,必填 */
1249
+ open_conversation_id: string
1250
+ }
1251
+
1252
+ export interface OapiImChatScenegroupTemplateApplyResponse {
1253
+ /** 是否成功 */
1254
+ success?: unknown
1255
+ /** 错误信息 */
1256
+ errmsg?: string
1257
+ /** 错误码 */
1258
+ errcode?: unknown
1259
+ }
1260
+
1261
+ export interface OapiImChatScencegroupInteractivecardCallbackRegisterParams {
1262
+ /** 回调地址 */
1263
+ callback_url: string
1264
+ /** 加密密钥用于校验来源 */
1265
+ api_secret?: string
1266
+ /** callback地址的路由Key,一个key仅可映射一个callbackUrl,不传值企业内部应用默认为orgId,企业三方应用默认为SuiteKey */
1267
+ callbackRouteKey?: string
1268
+ /** 是否强制覆盖更新 */
1269
+ forceUpdate?: unknown
1270
+ }
1271
+
1272
+ export interface OapiImChatScencegroupInteractivecardCallbackRegisterResponse {
1273
+ /** 业务返回结果 */
1274
+ result?: {
1275
+ apiSecret?: string
1276
+ callbackUrl?: string
1277
+ }
1278
+ /** 成功 */
1279
+ success?: unknown
1280
+ /** 错误码 */
1281
+ errcode?: unknown
1282
+ /** 错误信息 */
1283
+ errmsg?: string
1284
+ }
1285
+
1286
+ export interface OapiImChatScenegroupCreateParams {
1287
+ /** 群主userid */
1288
+ owner_user_id: string
1289
+ /** 群成员useridlist */
1290
+ user_ids?: string[]
1291
+ /** 建群去重的业务id */
1292
+ uuid?: string
1293
+ /** 群头像mediaId */
1294
+ icon?: string
1295
+ /** @all 权限,0-默认,所有人,1-仅群主可@all */
1296
+ mention_all_authority?: unknown
1297
+ /** 新成员是否可查看聊天历史消息,0-默认,否,1-是 */
1298
+ show_history_type?: unknown
1299
+ /** 入群验证,0:不入群验证(默认) 1:入群验证 */
1300
+ validation_type?: unknown
1301
+ /** 群可搜索,0-默认,不可搜索,1-可搜索 */
1302
+ searchable?: unknown
1303
+ /** 群禁言,0-默认,不禁言,1-全员禁言 */
1304
+ chat_banned_type?: unknown
1305
+ /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */
1306
+ management_type?: unknown
1307
+ /** 群名称 */
1308
+ title: string
1309
+ /** 群模板id */
1310
+ template_id: string
1311
+ /** 群管理员useridlist */
1312
+ subadmin_ids?: string[]
1313
+ /** 仅群主和管理员可在群内发DING 0-不开启,1-开启 */
1314
+ only_admin_can_ding?: unknown
1315
+ /** 群会议 若开启,群内任意成员可发起视频和语音会议 0-不开启,1-开启 */
1316
+ all_members_can_create_mcs_conf?: unknown
1317
+ /** 群日历 若开启,群内容非好友/同事的成员可相互发起钉钉日程 0-不开启,1-开启 */
1318
+ all_members_can_create_calendar?: unknown
1319
+ /** 禁止发送群邮件 若开启,群内成员不可再对本群发送群邮件 0-不开启,1-开启 */
1320
+ group_email_disabled?: unknown
1321
+ /** 仅群主和管理员可置顶群消息 0-不开启,1-开启 */
1322
+ only_admin_can_set_msg_top?: unknown
1323
+ /** 禁止群成员私聊 若开启,普通群成员之间不能够加好友、单聊,且部分功能使用受限(管理员与非管理员之间不受影响)0-不开启,1-开启 */
1324
+ add_friend_forbidden?: unknown
1325
+ /** 群直播 若开启,群内任意成员可发起群直播 0-不开启,1-开启 */
1326
+ group_live_switch?: unknown
1327
+ /** 禁止非管理员向管理员发起单聊 若开启,非管理员不能向管理员发起单聊 0-不开启,1-开启 */
1328
+ members_to_admin_chat?: unknown
1329
+ }
1330
+
1331
+ export interface OapiImChatScenegroupCreateResponse {
1332
+ /** 返回结果 */
1333
+ result?: {
1334
+ open_conversation_id?: string
1335
+ chat_id?: string
1336
+ }
1337
+ /** 是否成功 */
1338
+ success?: unknown
1339
+ /** 错误信息 */
1340
+ errmsg?: string
1341
+ /** 错误码 */
1342
+ errcode?: unknown
1343
+ }
1344
+
1345
+ export interface OapiImChatScenegroupMemberAddParams {
1346
+ /** 开放群id */
1347
+ open_conversation_id: string
1348
+ /** 成员userid */
1349
+ user_ids?: string[]
1350
+ /** 客户联系人staffIds */
1351
+ contact_staff_ids?: string[]
1352
+ }
1353
+
1354
+ export interface OapiImChatScenegroupMemberAddResponse {
1355
+ /** 是否成功 */
1356
+ success?: unknown
1357
+ /** 错误码 */
1358
+ errcode?: unknown
1359
+ /** 错误信息 */
1360
+ errmsg?: string
1361
+ }
1362
+
1363
+ export interface OapiImChatScenegroupMemberGetParams {
1364
+ /** 分页游标 */
1365
+ cursor: string
1366
+ /** 分页的pagesize */
1367
+ size: unknown
1368
+ /** 开放群id */
1369
+ open_conversation_id: string
1370
+ }
1371
+
1372
+ export interface OapiImChatScenegroupMemberGetResponse {
1373
+ /** 返回结果 */
1374
+ result?: {
1375
+ member_user_ids?: number
1376
+ next_cursor?: string
1377
+ has_more?: number
1378
+ member_contact_staff_ids?: number
1379
+ union_ids?: number
1380
+ staff_id_nick_map?: number
1381
+ union_id_nick_map?: number
1382
+ }
1383
+ /** 请求是否成功 */
1384
+ success?: unknown
1385
+ /** 错误码 */
1386
+ errcode?: unknown
1387
+ /** 错误信息 */
1388
+ errmsg?: string
1389
+ }
1390
+
1391
+ export interface OapiImChatScenegroupUpdateParams {
1392
+ /** 群主userid */
1393
+ owner_user_id?: string
1394
+ /** 群头像mediaId */
1395
+ icon?: string
1396
+ /** @all 权限,0-默认,所有人,1-仅群主可@all */
1397
+ mention_all_authority?: unknown
1398
+ /** 新成员是否可查看聊天历史消息,0-默认,否,1-是 */
1399
+ show_history_type?: unknown
1400
+ /** 入群验证,0:不入群验证(默认) 1:入群验证 */
1401
+ validation_type?: unknown
1402
+ /** 群可搜索,0-默认,不可搜索,1-可搜索 */
1403
+ searchable?: unknown
1404
+ /** 群禁言,0-默认,不禁言,1-全员禁言 */
1405
+ chat_banned_type?: unknown
1406
+ /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */
1407
+ management_type?: unknown
1408
+ /** 群名称 */
1409
+ title?: string
1410
+ /** 群id */
1411
+ open_conversation_id: string
1412
+ /** 仅群主和管理员可在群内发DING 0-不开启,1-开启 */
1413
+ only_admin_can_ding?: unknown
1414
+ /** 群会议 若开启,群内任意成员可发起视频和语音会议 0-不开启,1-开启 */
1415
+ all_members_can_create_mcs_conf?: unknown
1416
+ /** 群日历 若开启,群内容非好友/同事的成员可相互发起钉钉日程 0-不开启,1-开启 */
1417
+ all_members_can_create_calendar?: unknown
1418
+ /** 禁止发送群邮件 若开启,群内成员不可再对本群发送群邮件 0-不开启,1-开启 */
1419
+ group_email_disabled?: unknown
1420
+ /** 仅群主和管理员可置顶群消息 0-不开启,1-开启 */
1421
+ only_admin_can_set_msg_top?: unknown
1422
+ /** 禁止群成员私聊 若开启,普通群成员之间不能够加好友、单聊,且部分功能使用受限(管理员与非管理员之间不受影响)0-不开启,1-开启 */
1423
+ add_friend_forbidden?: unknown
1424
+ /** 群直播 若开启,群内任意成员可发起群直播 0-不开启,1-开启 */
1425
+ group_live_switch?: unknown
1426
+ /** 禁止非管理员向管理员发起单聊 若开启,非管理员不能向管理员发起单聊 0-不开启,1-开启 */
1427
+ members_to_admin_chat?: unknown
1428
+ /** 自定义群插件是否需要群主和管理员审批0-不需要审批,1-需要审批 */
1429
+ plugin_customize_verify?: unknown
1430
+ }
1431
+
1432
+ export interface OapiImChatScenegroupUpdateResponse {
1433
+ /** 返回结果 */
1434
+ success?: unknown
1435
+ /** 错误码 */
1436
+ errcode?: unknown
1437
+ /** 错误信息 */
1438
+ errmsg?: string
1439
+ }
1440
+
1441
+ export interface OapiImChatScenegroupMemberDeleteParams {
1442
+ /** 开放群id */
1443
+ open_conversation_id: string
1444
+ /** 员工userid */
1445
+ user_ids?: string[]
1446
+ /** 客户联系人staffId */
1447
+ contact_staff_ids?: string[]
1448
+ }
1449
+
1450
+ export interface OapiImChatScenegroupMemberDeleteResponse {
1451
+ /** 请求是否成功 */
1452
+ success?: unknown
1453
+ /** 错误码 */
1454
+ errcode?: unknown
1455
+ /** 错误信息 */
1456
+ errmsg?: string
1457
+ }
1458
+
1459
+ export interface OapiImChatScenegroupGetParams {
1460
+ /** 群id */
1461
+ open_conversation_id: string
1462
+ }
1463
+
1464
+ export interface OapiImChatScenegroupGetResponse {
1465
+ /** 返回结果 */
1466
+ result?: {
1467
+ icon?: string
1468
+ management_options?: number
1469
+ title?: string
1470
+ template_id?: string
1471
+ open_conversation_id?: string
1472
+ sub_admin_staff_ids?: number
1473
+ owner_staff_id?: string
1474
+ group_url?: string
1475
+ member_amount?: number
1476
+ scene_data?: string
1477
+ }
1478
+ /** 是否成功 */
1479
+ success?: unknown
1480
+ /** 错误码 */
1481
+ errcode?: unknown
1482
+ /** 错误信息 */
1483
+ errmsg?: string
1484
+ }
1485
+
1486
+ export interface OapiRobotSendParams {
1487
+ /** 消息类型 */
1488
+ msgtype: string
1489
+ /** text类型 */
1490
+ text?: unknown
1491
+ /** 被@人的手机号 */
1492
+ at?: unknown
1493
+ /** 消息类型,此时固定为:link */
1494
+ link?: unknown
1495
+ /** 此消息类型为固定markdown */
1496
+ markdown?: unknown
1497
+ /** 此消息类型为固定actionCard */
1498
+ actionCard?: unknown
1499
+ /** 此消息类型为固定feedCard */
1500
+ feedCard?: unknown
1501
+ }
1502
+
1503
+ export interface OapiRobotSendResponse {
1504
+ /** errmsg */
1505
+ errmsg?: string
1506
+ /** errcode */
1507
+ errcode?: unknown
1508
+ }
1509
+
1510
+ export interface OapiAlitripBtripInvoiceSettingRuleParams {
1511
+ /** 入参 */
1512
+ request: unknown
1513
+ }
1514
+
1515
+ export interface OapiAlitripBtripInvoiceSettingRuleResponse {
1516
+ /** 操作是否成功 */
1517
+ success?: unknown
1518
+ /** 返回值 */
1519
+ module?: {
1520
+ add_num?: number
1521
+ remove_num?: number
1522
+ }
1523
+ /** 状态码 */
1524
+ errcode?: unknown
1525
+ /** 结果信息 */
1526
+ errmsg?: string
1527
+ }
1528
+
1529
+ export interface OapiAlitripBtripInvoiceSettingAddParams {
1530
+ /** 入参 */
1531
+ rq: unknown
1532
+ }
1533
+
1534
+ export interface OapiAlitripBtripInvoiceSettingAddResponse {
1535
+ /** 是否成功 */
1536
+ success?: unknown
1537
+ /** 状态码 */
1538
+ errcode?: unknown
1539
+ /** 结果信息 */
1540
+ errmsg?: string
1541
+ /** 结果值 */
1542
+ module?: unknown
1543
+ }
1544
+
1545
+ export interface OapiAlitripBtripProjectDeleteParams {
1546
+ /** 企业id */
1547
+ corpid: string
1548
+ /** 第三方项目ID */
1549
+ third_part_id: string
1550
+ }
1551
+
1552
+ export interface OapiAlitripBtripProjectDeleteResponse {
1553
+ /** 错误码 */
1554
+ errcode?: unknown
1555
+ /** 操作结果 */
1556
+ success?: unknown
1557
+ /** 结果 */
1558
+ module?: unknown
1559
+ /** 异常信息 */
1560
+ errmsg?: string
1561
+ }
1562
+
1563
+ export interface OapiAlitripBtripProjectModifyParams {
1564
+ /** 入参 */
1565
+ request: unknown
1566
+ }
1567
+
1568
+ export interface OapiAlitripBtripProjectModifyResponse {
1569
+ /** 是否操作成功 */
1570
+ success?: unknown
1571
+ /** 是否操作成功 */
1572
+ module?: unknown
1573
+ /** 错误码 */
1574
+ errcode?: unknown
1575
+ /** 错误信息 */
1576
+ errmsg?: string
1577
+ }
1578
+
1579
+ export interface OapiAlitripBtripProjectAddParams {
1580
+ /** 入参 */
1581
+ request: unknown
1582
+ }
1583
+
1584
+ export interface OapiAlitripBtripProjectAddResponse {
1585
+ /** 是否操作成功 */
1586
+ success?: unknown
1587
+ /** 结果 */
1588
+ module?: string
1589
+ /** 错误码 */
1590
+ errcode?: unknown
1591
+ /** 错误信息 */
1592
+ errmsg?: string
1593
+ }
1594
+
1595
+ export interface OapiAlitripBtripInvoiceSettingDeleteParams {
1596
+ /** 入参 */
1597
+ request?: unknown
1598
+ }
1599
+
1600
+ export interface OapiAlitripBtripInvoiceSettingDeleteResponse {
1601
+ /** 是否成功 */
1602
+ success?: unknown
1603
+ /** 值 */
1604
+ module?: unknown
1605
+ /** 错误码 */
1606
+ errcode?: unknown
1607
+ /** 错误信息 */
1608
+ errmsg?: string
1609
+ }
1610
+
1611
+ export interface OapiAlitripBtripInvoiceSettingModifyParams {
1612
+ /** 入参 */
1613
+ request?: unknown
1614
+ }
1615
+
1616
+ export interface OapiAlitripBtripInvoiceSettingModifyResponse {
1617
+ /** 是否成功 */
1618
+ success?: unknown
1619
+ /** 返回值 */
1620
+ module?: unknown
1621
+ /** 错误码 */
1622
+ errcode?: unknown
1623
+ /** 错误信息 */
1624
+ errmsg?: string
1625
+ }
1626
+
1627
+ export interface OapiAlitripBtripPriceQueryParams {
1628
+ /** 请求入参 */
1629
+ req: unknown
1630
+ }
1631
+
1632
+ export interface OapiAlitripBtripPriceQueryResponse {
1633
+ /** 接口返回 */
1634
+ result?: {
1635
+ success?: number
1636
+ module?: number
1637
+ errcode?: number
1638
+ errmsg?: string
1639
+ }
1640
+ }
1641
+
1642
+ export interface OapiAlitripBtripTrainCitySuggestParams {
1643
+ /** 请求对象 */
1644
+ rq: unknown
1645
+ }
1646
+
1647
+ export interface OapiAlitripBtripTrainCitySuggestResponse {
1648
+ /** 结果对象 */
1649
+ result?: {
1650
+ cities?: number
1651
+ }
1652
+ /** 错误信息 */
1653
+ errmsg?: string
1654
+ /** 错误码 */
1655
+ errcode?: unknown
1656
+ /** 成功标识 */
1657
+ success?: unknown
1658
+ }
1659
+
1660
+ export interface OapiAlitripBtripMonthbillUrlGetParams {
1661
+ /** 请求对象 */
1662
+ request: unknown
1663
+ }
1664
+
1665
+ export interface OapiAlitripBtripMonthbillUrlGetResponse {
1666
+ /** 成功标识 */
1667
+ success?: unknown
1668
+ /** 结果对象 */
1669
+ module?: {
1670
+ start_date?: string
1671
+ end_date?: string
1672
+ url?: string
1673
+ }[]
1674
+ /** 错误码 */
1675
+ errcode?: unknown
1676
+ /** 错误信息 */
1677
+ errmsg?: string
1678
+ }
1679
+
1680
+ export interface OapiAlitripBtripAddressGetParams {
1681
+ /** 请求对象 */
1682
+ request?: unknown
1683
+ }
1684
+
1685
+ export interface OapiAlitripBtripAddressGetResponse {
1686
+ /** 成功标识 */
1687
+ success?: unknown
1688
+ /** 结果对象 */
1689
+ result?: {
1690
+ url?: string
1691
+ }
1692
+ /** 错误码 */
1693
+ errcode?: unknown
1694
+ /** 错误信息 */
1695
+ errmsg?: string
1696
+ }
1697
+
1698
+ export interface OapiAlitripBtripApprovalModifyParams {
1699
+ /** 请求对象 */
1700
+ rq: unknown
1701
+ }
1702
+
1703
+ export interface OapiAlitripBtripApprovalModifyResponse {
1704
+ /** 成功标识 */
1705
+ success?: unknown
1706
+ /** 错误码 */
1707
+ errcode?: unknown
1708
+ /** 错误信息 */
1709
+ errmsg?: string
1710
+ /** 结果对象 */
1711
+ module?: {
1712
+ apply_id?: number
1713
+ thirdpart_apply_id?: string
1714
+ }
1715
+ }
1716
+
1717
+ export interface OapiAlitripBtripFlightCitySuggestParams {
1718
+ /** 请求对象 */
1719
+ rq: unknown
1720
+ }
1721
+
1722
+ export interface OapiAlitripBtripFlightCitySuggestResponse {
1723
+ /** 结果对象 */
1724
+ result?: {
1725
+ cities?: number
1726
+ nearby?: number
1727
+ }
1728
+ /** 错误信息 */
1729
+ errmsg?: string
1730
+ /** 错误码 */
1731
+ errcode?: unknown
1732
+ /** 成功标识 */
1733
+ success?: unknown
1734
+ }
1735
+
1736
+ export interface OapiAlitripBtripVehicleOrderSearchParams {
1737
+ /** 请求对象 */
1738
+ rq: unknown
1739
+ }
1740
+
1741
+ export interface OapiAlitripBtripVehicleOrderSearchResponse {
1742
+ /** 返回码 */
1743
+ errcode?: unknown
1744
+ /** 错误信息 */
1745
+ errmsg?: string
1746
+ /** 成功标识 */
1747
+ success?: unknown
1748
+ /** 订单列表 */
1749
+ vehicle_order_list?: {
1750
+ id?: number
1751
+ gmt_create?: string
1752
+ gmt_modified?: string
1753
+ passenger_name?: string
1754
+ corpid?: string
1755
+ corp_name?: string
1756
+ user_name?: string
1757
+ userid?: string
1758
+ dept_name?: string
1759
+ deptid?: string
1760
+ apply_show_id?: string
1761
+ apply_id?: number
1762
+ real_from_city_name?: string
1763
+ real_to_city_name?: string
1764
+ from_address?: string
1765
+ to_address?: string
1766
+ from_city_name?: string
1767
+ to_city_name?: string
1768
+ memo?: string
1769
+ order_status?: number
1770
+ car_level?: string
1771
+ car_info?: string
1772
+ estimate_price?: string
1773
+ publish_time?: string
1774
+ taken_time?: string
1775
+ driver_confirm_time?: string
1776
+ cancel_time?: string
1777
+ travel_distance?: string
1778
+ pay_time?: string
1779
+ service_type?: number
1780
+ business_category?: string
1781
+ cost_center_id?: number
1782
+ cost_center_number?: string
1783
+ cost_center_name?: string
1784
+ invoice_id?: number
1785
+ invoice_title?: string
1786
+ project_code?: string
1787
+ project_title?: string
1788
+ price_info_list?: number
1789
+ thirdpart_itinerary_id?: string
1790
+ user_affiliate_list?: number
1791
+ user_confirm?: number
1792
+ provider?: number
1793
+ real_from_address?: string
1794
+ real_to_address?: string
1795
+ thirdpart_apply_id?: string
1796
+ btrip_title?: string
1797
+ is_special?: number
1798
+ special_types?: number
1799
+ project_id?: number
1800
+ third_part_project_id?: string
1801
+ }[]
1802
+ /** 分页信息 */
1803
+ page_info?: {
1804
+ page?: number
1805
+ page_size?: number
1806
+ total_number?: number
1807
+ }
1808
+ }
1809
+
1810
+ export interface OapiAlitripBtripCostCenterQueryParams {
1811
+ /** 请求对象 */
1812
+ rq: unknown
1813
+ }
1814
+
1815
+ export interface OapiAlitripBtripCostCenterQueryResponse {
1816
+ /** 成功标识 */
1817
+ success?: unknown
1818
+ /** 错误码 */
1819
+ errcode?: unknown
1820
+ /** 错误信息 */
1821
+ errmsg?: string
1822
+ /** 成本中心列表 */
1823
+ cost_center_list?: {
1824
+ id?: number
1825
+ corpid?: string
1826
+ title?: string
1827
+ number?: string
1828
+ thirdpart_id?: string
1829
+ scope?: number
1830
+ alipay_no?: string
1831
+ entity_list?: number
1832
+ }[]
1833
+ }
1834
+
1835
+ export interface OapiAlitripBtripApprovalUpdateParams {
1836
+ /** 请求对象 */
1837
+ rq: unknown
1838
+ }
1839
+
1840
+ export interface OapiAlitripBtripApprovalUpdateResponse {
1841
+ /** 错误信息 */
1842
+ errmsg?: string
1843
+ /** 错误码 */
1844
+ errcode?: unknown
1845
+ /** 成功标识 */
1846
+ success?: unknown
1847
+ }
1848
+
1849
+ export interface OapiAlitripBtripCostCenterNewParams {
1850
+ /** 请求对象 */
1851
+ rq: unknown
1852
+ }
1853
+
1854
+ export interface OapiAlitripBtripCostCenterNewResponse {
1855
+ /** 成本中心对象 */
1856
+ result?: {
1857
+ id?: number
1858
+ }
1859
+ /** 成功标识 */
1860
+ success?: unknown
1861
+ /** 错误信息 */
1862
+ errmsg?: string
1863
+ /** 错误码 */
1864
+ errcode?: unknown
1865
+ }
1866
+
1867
+ export interface OapiAlitripBtripCostCenterModifyParams {
1868
+ /** 请求对象 */
1869
+ rq: unknown
1870
+ }
1871
+
1872
+ export interface OapiAlitripBtripCostCenterModifyResponse {
1873
+ /** 成功标识 */
1874
+ success?: unknown
1875
+ /** 错误码 */
1876
+ errcode?: unknown
1877
+ /** 错误信息 */
1878
+ errmsg?: string
1879
+ }
1880
+
1881
+ export interface OapiAlitripBtripCostCenterDeleteParams {
1882
+ /** 请求对象 */
1883
+ rq: unknown
1884
+ }
1885
+
1886
+ export interface OapiAlitripBtripCostCenterDeleteResponse {
1887
+ /** 错误信息 */
1888
+ errmsg?: string
1889
+ /** 错误码 */
1890
+ errcode?: unknown
1891
+ /** 成功标识 */
1892
+ success?: unknown
1893
+ }
1894
+
1895
+ export interface OapiAlitripBtripCostCenterEntitySetParams {
1896
+ /** 请求对象 */
1897
+ rq?: unknown
1898
+ }
1899
+
1900
+ export interface OapiAlitripBtripCostCenterEntitySetResponse {
1901
+ /** 成本标识 */
1902
+ success?: unknown
1903
+ /** 错误码 */
1904
+ errcode?: unknown
1905
+ /** 错误信息 */
1906
+ errmsg?: string
1907
+ /** 结果对象 */
1908
+ result?: {
1909
+ add_num?: number
1910
+ remove_num?: number
1911
+ selected_user_num?: number
1912
+ }
1913
+ }
1914
+
1915
+ export interface OapiAlitripBtripHotelOrderSearchParams {
1916
+ /** rq */
1917
+ rq: unknown
1918
+ }
1919
+
1920
+ export interface OapiAlitripBtripHotelOrderSearchResponse {
1921
+ /** 成功标识 */
1922
+ success?: unknown
1923
+ /** 错误信息 */
1924
+ errmsg?: string
1925
+ /** 错误码 */
1926
+ errcode?: unknown
1927
+ /** 酒店订单列表 */
1928
+ module?: {
1929
+ id?: number
1930
+ gmt_create?: string
1931
+ gmt_modified?: string
1932
+ corpid?: string
1933
+ corp_name?: string
1934
+ userid?: string
1935
+ user_name?: string
1936
+ deptid?: string
1937
+ dept_name?: string
1938
+ apply_id?: number
1939
+ contact_name?: string
1940
+ city?: string
1941
+ hotel_name?: string
1942
+ check_in?: string
1943
+ check_out?: string
1944
+ room_type?: string
1945
+ room_num?: number
1946
+ night?: number
1947
+ guest?: string
1948
+ order_type_desc?: string
1949
+ order_status_desc?: string
1950
+ cost_center?: number
1951
+ invoice?: number
1952
+ price_info_list?: number
1953
+ thirdpart_itinerary_id?: string
1954
+ order_status?: number
1955
+ order_type?: number
1956
+ user_affiliate_list?: number
1957
+ thirdpart_apply_id?: string
1958
+ btrip_title?: string
1959
+ project_id?: number
1960
+ project_code?: string
1961
+ project_title?: string
1962
+ thirdpart_Project_Id?: string
1963
+ hotel_support_vat_invoice_type?: number
1964
+ }[]
1965
+ /** 分页相关信息 */
1966
+ page_info?: {
1967
+ page?: number
1968
+ page_size?: number
1969
+ total_number?: number
1970
+ }
1971
+ }
1972
+
1973
+ export interface OapiAlitripBtripTrainOrderSearchParams {
1974
+ /** 请求对象 */
1975
+ rq: unknown
1976
+ }
1977
+
1978
+ export interface OapiAlitripBtripTrainOrderSearchResponse {
1979
+ /** 成功标识 */
1980
+ success?: unknown
1981
+ /** 错误码 */
1982
+ errcode?: unknown
1983
+ /** 错误信息 */
1984
+ errmsg?: string
1985
+ /** module */
1986
+ train_order_list?: {
1987
+ id?: number
1988
+ gmt_create?: string
1989
+ gmt_modified?: string
1990
+ corpid?: string
1991
+ corp_name?: string
1992
+ userid?: string
1993
+ user_name?: string
1994
+ deptid?: string
1995
+ dept_name?: string
1996
+ apply_id?: number
1997
+ contact_name?: string
1998
+ dep_station?: string
1999
+ arr_station?: string
2000
+ dep_time?: string
2001
+ arr_time?: string
2002
+ train_number?: string
2003
+ train_type?: string
2004
+ seat_type?: string
2005
+ run_time?: string
2006
+ ticket_no_12306?: string
2007
+ dep_city?: string
2008
+ arr_city?: string
2009
+ rider_name?: string
2010
+ ticket_count?: number
2011
+ status?: number
2012
+ invoice?: number
2013
+ cost_center?: number
2014
+ price_info_list?: number
2015
+ thirdpart_itinerary_id?: string
2016
+ user_affiliate_list?: number
2017
+ thirdpart_apply_id?: string
2018
+ btrip_title?: string
2019
+ project_id?: number
2020
+ project_code?: string
2021
+ project_title?: string
2022
+ third_part_project_id?: string
2023
+ }[]
2024
+ /** 分页相关信息 */
2025
+ page_info?: {
2026
+ page?: number
2027
+ page_size?: number
2028
+ total_number?: number
2029
+ }
2030
+ }
2031
+
2032
+ export interface OapiAlitripBtripFlightOrderSearchParams {
2033
+ /** 请求对象 */
2034
+ rq: unknown
2035
+ }
2036
+
2037
+ export interface OapiAlitripBtripFlightOrderSearchResponse {
2038
+ /** 成功标识 */
2039
+ success?: unknown
2040
+ /** 错误码 */
2041
+ errcode?: unknown
2042
+ /** 错误信息 */
2043
+ errmsg?: string
2044
+ /** 机票列表 */
2045
+ flight_order_list?: {
2046
+ id?: number
2047
+ gmt_modified?: string
2048
+ userid?: string
2049
+ corp_name?: string
2050
+ corpid?: string
2051
+ gmt_create?: string
2052
+ user_name?: string
2053
+ deptid?: string
2054
+ dept_name?: string
2055
+ apply_id?: string
2056
+ contact_name?: string
2057
+ dep_city?: string
2058
+ arr_city?: string
2059
+ dep_date?: string
2060
+ ret_date?: string
2061
+ trip_type?: number
2062
+ passenger_count?: number
2063
+ cabin_class?: string
2064
+ status?: number
2065
+ discount?: string
2066
+ flight_no?: string
2067
+ passenger_name?: string
2068
+ dep_airport?: string
2069
+ arr_airport?: string
2070
+ invoice?: number
2071
+ cost_center?: number
2072
+ price_info_list?: number
2073
+ insureInfo_list?: number
2074
+ thirdpart_itinerary_id?: string
2075
+ user_affiliate_list?: number
2076
+ thirdpart_apply_id?: string
2077
+ btrip_title?: string
2078
+ project_id?: number
2079
+ project_code?: string
2080
+ project_title?: string
2081
+ third_part_project_id?: string
2082
+ }[]
2083
+ /** 分页相关信息 */
2084
+ page_info?: {
2085
+ page?: number
2086
+ page_size?: number
2087
+ total_number?: number
2088
+ }
2089
+ }
2090
+
2091
+ export interface OapiAlitripBtripInvoiceSearchParams {
2092
+ /** 请求对象 */
2093
+ rq: unknown
2094
+ }
2095
+
2096
+ export interface OapiAlitripBtripInvoiceSearchResponse {
2097
+ /** 发票列表 */
2098
+ invoice?: {
2099
+ id?: number
2100
+ title?: string
2101
+ third_part_invoice_id?: string
2102
+ }[]
2103
+ /** 成功标识 */
2104
+ success?: unknown
2105
+ /** 错误信息 */
2106
+ errmsg?: string
2107
+ /** 错误码 */
2108
+ errcode?: unknown
2109
+ }
2110
+
2111
+ export interface OapiAlitripBtripCostCenterTransferParams {
2112
+ /** 请求对象 */
2113
+ rq: unknown
2114
+ }
2115
+
2116
+ export interface OapiAlitripBtripCostCenterTransferResponse {
2117
+ /** 成功标识 */
2118
+ success?: unknown
2119
+ /** 错误码 */
2120
+ errcode?: unknown
2121
+ /** 错误信息 */
2122
+ errmsg?: string
2123
+ }
2124
+
2125
+ export interface OapiAlitripBtripApplyGetParams {
2126
+ /** 请求对象 */
2127
+ rq: unknown
2128
+ }
2129
+
2130
+ export interface OapiAlitripBtripApplyGetResponse {
2131
+ /** 审批单对象 */
2132
+ module?: {
2133
+ id?: number
2134
+ apply_show_id?: string
2135
+ gmt_create?: string
2136
+ gmt_modified?: string
2137
+ thirdpart_id?: string
2138
+ corpid?: string
2139
+ corp_name?: string
2140
+ userid?: string
2141
+ user_name?: string
2142
+ deptid?: string
2143
+ trip_day?: number
2144
+ dept_name?: string
2145
+ trip_cause?: string
2146
+ trip_title?: string
2147
+ status?: number
2148
+ status_desc?: string
2149
+ itinerary_list?: number
2150
+ traveler_list?: number
2151
+ approver_list?: number
2152
+ type?: number
2153
+ union_no?: string
2154
+ external_traveler_list?: number
2155
+ }
2156
+ /** 错误信息 */
2157
+ errmsg?: string
2158
+ /** 错误码 */
2159
+ errcode?: unknown
2160
+ /** 成功标识 */
2161
+ success?: unknown
2162
+ }
2163
+
2164
+ export interface OapiAlitripBtripApplySearchParams {
2165
+ /** 请求对象 */
2166
+ rq: unknown
2167
+ }
2168
+
2169
+ export interface OapiAlitripBtripApplySearchResponse {
2170
+ /** 审批单列表 */
2171
+ module?: {
2172
+ id?: number
2173
+ apply_show_id?: string
2174
+ gmt_create?: string
2175
+ gmt_modified?: string
2176
+ thirdpart_id?: string
2177
+ corpid?: string
2178
+ userid?: string
2179
+ deptid?: string
2180
+ corp_name?: string
2181
+ user_name?: string
2182
+ dept_name?: string
2183
+ trip_day?: number
2184
+ trip_cause?: string
2185
+ trip_title?: string
2186
+ status?: number
2187
+ status_desc?: string
2188
+ itinerary_list?: number
2189
+ traveler_list?: number
2190
+ approver_list?: number
2191
+ flow_code?: string
2192
+ type?: number
2193
+ union_no?: string
2194
+ external_traveler_list?: number
2195
+ }[]
2196
+ /** 错误信息 */
2197
+ errmsg?: string
2198
+ /** 错误码 */
2199
+ errcode?: unknown
2200
+ /** 成功标识 */
2201
+ success?: unknown
2202
+ }
2203
+
2204
+ export interface OapiAlitripBtripApprovalNewParams {
2205
+ /** 请求对象 */
2206
+ rq: unknown
2207
+ }
2208
+
2209
+ export interface OapiAlitripBtripApprovalNewResponse {
2210
+ /** 结果对象 */
2211
+ module?: {
2212
+ thirdpart_apply_id?: string
2213
+ apply_id?: number
2214
+ }
2215
+ /** 错误信息 */
2216
+ errmsg?: string
2217
+ /** 错误码 */
2218
+ errcode?: unknown
2219
+ /** 成功标识 */
2220
+ success?: unknown
2221
+ }
2222
+
2223
+ export interface OapiAlitripBtripCostCenterEntityDeleteParams {
2224
+ /** 请求对象 */
2225
+ rq: unknown
2226
+ }
2227
+
2228
+ export interface OapiAlitripBtripCostCenterEntityDeleteResponse {
2229
+ /** 结果对象 */
2230
+ result?: {
2231
+ selected_user_num?: number
2232
+ remove_num?: number
2233
+ }
2234
+ /** 错误信息 */
2235
+ errmsg?: string
2236
+ /** 错误码 */
2237
+ errcode?: unknown
2238
+ /** 成功标识 */
2239
+ success?: unknown
2240
+ }
2241
+
2242
+ export interface OapiWorkspaceAuditlogListParams {
2243
+ /** 操作日志起始时间,unix时间戳,单位ms */
2244
+ start_date: unknown
2245
+ /** 操作日志截止时间,unix时间戳,单位ms */
2246
+ end_date: unknown
2247
+ /** 操作列表长度,最大500 */
2248
+ page_size: unknown
2249
+ /** 操作记录生成时间,作为分页偏移量,分页查询时必传,unix时间戳,单位ms */
2250
+ load_more_gmt_create?: unknown
2251
+ /** 操作记录文件id,作为分页偏移量,与load_more_gmt_create一起使用,返回记录的biz_id为load_more_biz_id且gmt_create为load_more_gmt_create之后的操作列表,分页查询获取下一页时,传最后一条记录的biz_id和gmt_create。 */
2252
+ load_more_bizId?: unknown
2253
+ }
2254
+
2255
+ export interface OapiWorkspaceAuditlogListResponse {
2256
+ /** 错误码 */
2257
+ errcode?: unknown
2258
+ /** 错误信息 */
2259
+ errmsg?: string
2260
+ /** 返回值 */
2261
+ result?: {
2262
+ log_list?: number
2263
+ }
2264
+ }
2265
+
2266
+ export interface OapiEduCertGetParams {
2267
+ /** 学校人员id */
2268
+ userid: string
2269
+ }
2270
+
2271
+ export interface OapiEduCertGetResponse {
2272
+ /** 请求是否成功 */
2273
+ success?: unknown
2274
+ /** 返回结果值 */
2275
+ result?: {
2276
+ current_cert_level?: number
2277
+ cert_datas?: number
2278
+ practical_task_data?: number
2279
+ }
2280
+ /** 错误码 */
2281
+ errcode?: unknown
2282
+ /** 错误消息 */
2283
+ errmsg?: string
2284
+ }
2285
+
2286
+ export interface OapiEduUserListParams {
2287
+ /** 最大30条,最小1条 */
2288
+ page_size: unknown
2289
+ /** 页码,从1开始 */
2290
+ page_no: unknown
2291
+ /** 家校人员身份 */
2292
+ role: string
2293
+ /** 班级id */
2294
+ class_id: unknown
2295
+ }
2296
+
2297
+ export interface OapiEduUserListResponse {
2298
+ /** 结果值 */
2299
+ result?: {
2300
+ has_more?: number
2301
+ details?: number
2302
+ }
2303
+ /** 是否成功 */
2304
+ success?: unknown
2305
+ /** 错误码,只有当success为false时才有效 */
2306
+ errcode?: unknown
2307
+ /** 错误信息,只有当success为false时才有效 */
2308
+ errmsg?: string
2309
+ }
2310
+
2311
+ export interface OapiSmartdeviceDeviceQuerybyidParams {
2312
+ /** 设备查询对象 */
2313
+ device_query_vo: unknown
2314
+ }
2315
+
2316
+ export interface OapiSmartdeviceDeviceQuerybyidResponse {
2317
+ /** 返回结果 */
2318
+ result?: {
2319
+ device_mac?: string
2320
+ corp_id?: string
2321
+ nick?: string
2322
+ device_id?: string
2323
+ device_name?: string
2324
+ pk?: string
2325
+ userid?: string
2326
+ ext?: string
2327
+ sn?: string
2328
+ }
2329
+ /** 是否成功 */
2330
+ success?: unknown
2331
+ /** 错误代码 */
2332
+ errcode?: unknown
2333
+ /** 错误信息 */
2334
+ errmsg?: string
2335
+ }
2336
+
2337
+ export interface OapiSmartdeviceDeviceQuerylistParams {
2338
+ /** 列表查询对象 */
2339
+ page_query_vo: unknown
2340
+ }
2341
+
2342
+ export interface OapiSmartdeviceDeviceQuerylistResponse {
2343
+ /** 返回结果 */
2344
+ result?: {
2345
+ next_cursor?: number
2346
+ has_more?: number
2347
+ list?: number
2348
+ }
2349
+ /** 是否成功 */
2350
+ success?: unknown
2351
+ /** 错误代码 */
2352
+ errcode?: unknown
2353
+ /** 错误信息 */
2354
+ errmsg?: string
2355
+ }
2356
+
2357
+ export interface OapiSmartdeviceDeviceQueryParams {
2358
+ /** 设备查询对象 */
2359
+ device_query_vo?: unknown
2360
+ }
2361
+
2362
+ export interface OapiSmartdeviceDeviceQueryResponse {
2363
+ /** 返回结果 */
2364
+ result?: {
2365
+ device_mac?: string
2366
+ corp_id?: string
2367
+ nick?: string
2368
+ device_id?: string
2369
+ device_name?: string
2370
+ pk?: string
2371
+ userid?: string
2372
+ ext?: string
2373
+ sn?: string
2374
+ }
2375
+ /** 是否成功 */
2376
+ success?: unknown
2377
+ /** 错误代码 */
2378
+ errcode?: unknown
2379
+ /** 错误信息 */
2380
+ errmsg?: string
2381
+ }
2382
+
2383
+ export interface OapiSmartdeviceDeviceUpdatenickParams {
2384
+ /** 昵称修改参数 */
2385
+ device_nick_modify_vo?: unknown
2386
+ }
2387
+
2388
+ export interface OapiSmartdeviceDeviceUpdatenickResponse {
2389
+ /** 是否成功 */
2390
+ success?: unknown
2391
+ /** 错误代码 */
2392
+ errcode?: unknown
2393
+ /** 错误信息 */
2394
+ errmsg?: string
2395
+ }
2396
+
2397
+ export interface OapiSmartdeviceDeviceUnbindParams {
2398
+ /** 解绑参数 */
2399
+ device_unbind_vo?: unknown
2400
+ }
2401
+
2402
+ export interface OapiSmartdeviceDeviceUnbindResponse {
2403
+ /** 是否成功 */
2404
+ success?: unknown
2405
+ /** 错误代码 */
2406
+ errcode?: unknown
2407
+ /** 错误信息 */
2408
+ errmsg?: string
2409
+ }
2410
+
2411
+ export interface OapiSmartdeviceExternalBindParams {
2412
+ /** 设备请求信息 */
2413
+ device_bind_req_vo: unknown
2414
+ }
2415
+
2416
+ export interface OapiSmartdeviceExternalBindResponse {
2417
+ /** 返回结果 */
2418
+ result?: {
2419
+ device_id?: string
2420
+ }
2421
+ /** 是否成功 */
2422
+ success?: unknown
2423
+ /** 错误代码 */
2424
+ errcode?: unknown
2425
+ /** 错误信息 */
2426
+ errmsg?: string
2427
+ }
2428
+
2429
+ export interface OapiCrmObjectdataContactDeleteParams {
2430
+ /** 操作人用户ID */
2431
+ operator_userid: string
2432
+ /** 联系人实例ID */
2433
+ data_id: string
2434
+ }
2435
+
2436
+ export interface OapiCrmObjectdataContactDeleteResponse {
2437
+ /** 删除结果 */
2438
+ result?: {
2439
+ instance_id?: string
2440
+ }
2441
+ /** 错误码 */
2442
+ errcode?: unknown
2443
+ /** 错误信息 */
2444
+ errmsg?: string
2445
+ }
2446
+
2447
+ export interface OapiCrmObjectdataCustomobjectCreateParams {
2448
+ /** 自定义对象数据 */
2449
+ instance: unknown
2450
+ }
2451
+
2452
+ export interface OapiCrmObjectdataCustomobjectCreateResponse {
2453
+ /** 结果 */
2454
+ result?: {
2455
+ instance_id?: string
2456
+ }
2457
+ /** 执行结果 */
2458
+ success?: unknown
2459
+ /** 错误码 */
2460
+ errcode?: unknown
2461
+ /** 错误信息 */
2462
+ errmsg?: string
2463
+ }
2464
+
2465
+ export interface OapiCrmObjectdataCustomobjectUpdateParams {
2466
+ /** 自定义对象数据 */
2467
+ instance: unknown
2468
+ }
2469
+
2470
+ export interface OapiCrmObjectdataCustomobjectUpdateResponse {
2471
+ /** 结果 */
2472
+ result?: {
2473
+ instance_id?: string
2474
+ }
2475
+ /** 执行结果 */
2476
+ success?: unknown
2477
+ /** 错误码 */
2478
+ errcode?: unknown
2479
+ /** 错误信息 */
2480
+ errmsg?: string
2481
+ }
2482
+
2483
+ export interface OapiCrmObjectdataListParams {
2484
+ /** 操作人用户ID */
2485
+ current_operator_userid?: string
2486
+ /** 数据ID列表 */
2487
+ data_id_list: string[]
2488
+ /** 表单名称 */
2489
+ name: string
2490
+ }
2491
+
2492
+ export interface OapiCrmObjectdataListResponse {
2493
+ /** 实例数据 */
2494
+ result_list?: {
2495
+ creator_nick?: string
2496
+ gmt_modified?: string
2497
+ creator_userid?: string
2498
+ instance_id?: string
2499
+ data?: number
2500
+ extend_data?: number
2501
+ gmt_create?: string
2502
+ object_type?: string
2503
+ permission?: number
2504
+ proc_out_result?: string
2505
+ proc_inst_status?: string
2506
+ }[]
2507
+ /** 错误码 */
2508
+ errcode?: unknown
2509
+ /** 错误信息 */
2510
+ errmsg?: string
2511
+ }
2512
+
2513
+ export interface OapiCrmObjectdataQueryParams {
2514
+ /** 用户ID */
2515
+ current_operator_userid?: string
2516
+ /** 分页游标 */
2517
+ cursor?: string
2518
+ /** 分页大小 */
2519
+ page_size: unknown
2520
+ /** 表单code */
2521
+ name: string
2522
+ /** 查询条件 */
2523
+ query_dsl?: string
2524
+ }
2525
+
2526
+ export interface OapiCrmObjectdataQueryResponse {
2527
+ /** 分页结果 */
2528
+ result?: {
2529
+ next_cursor?: string
2530
+ values?: number
2531
+ has_more?: number
2532
+ page_size?: number
2533
+ }
2534
+ /** 错误码 */
2535
+ errcode?: unknown
2536
+ /** 错误信息 */
2537
+ errmsg?: string
2538
+ }
2539
+
2540
+ export interface OapiCrmObjectmetaDescribeParams {
2541
+ /** 目标名称 */
2542
+ name: string
2543
+ }
2544
+
2545
+ export interface OapiCrmObjectmetaDescribeResponse {
2546
+ /** result */
2547
+ result?: {
2548
+ name?: string
2549
+ customized?: number
2550
+ fields?: number
2551
+ }
2552
+ /** 错误码 */
2553
+ errcode?: unknown
2554
+ /** 错误信息 */
2555
+ errmsg?: string
2556
+ }
2557
+
2558
+ export interface OapiCrmObjectdataContactQueryParams {
2559
+ /** 用户ID */
2560
+ current_operator_userid?: string
2561
+ /** 分页游标 */
2562
+ cursor?: string
2563
+ /** 分页大小 */
2564
+ page_size: unknown
2565
+ /** 服务商组织 id,自建应用可以传入 */
2566
+ provider_corpid?: string
2567
+ /** 查询条件 */
2568
+ query_dsl?: string
2569
+ }
2570
+
2571
+ export interface OapiCrmObjectdataContactQueryResponse {
2572
+ /** 分页结果 */
2573
+ result?: {
2574
+ next_cursor?: string
2575
+ values?: number
2576
+ has_more?: number
2577
+ page_size?: number
2578
+ }
2579
+ /** 错误码 */
2580
+ errcode?: unknown
2581
+ /** 错误信息 */
2582
+ errmsg?: string
2583
+ }
2584
+
2585
+ export interface OapiCrmObjectdataFollowrecordListParams {
2586
+ /** 操作人用户ID */
2587
+ current_operator_userid?: string
2588
+ /** 数据ID列表 */
2589
+ data_id_list: string[]
2590
+ }
2591
+
2592
+ export interface OapiCrmObjectdataFollowrecordListResponse {
2593
+ /** 实例数据 */
2594
+ result_list?: {
2595
+ creator_nick?: string
2596
+ gmt_modified?: string
2597
+ creator_userid?: string
2598
+ instance_id?: string
2599
+ data?: number
2600
+ extend_data?: number
2601
+ gmt_create?: string
2602
+ object_type?: string
2603
+ permission?: number
2604
+ proc_inst_status?: string
2605
+ proc_out_result?: string
2606
+ }[]
2607
+ /** 错误码 */
2608
+ errcode?: unknown
2609
+ /** 错误信息 */
2610
+ errmsg?: string
2611
+ }
2612
+
2613
+ export interface OapiCrmObjectdataFollowrecordQueryParams {
2614
+ /** 用户ID */
2615
+ current_operator_userid?: string
2616
+ /** 分页游标 */
2617
+ cursor?: string
2618
+ /** 分页大小 */
2619
+ page_size: unknown
2620
+ /** 查询条件 */
2621
+ query_dsl?: string
2622
+ }
2623
+
2624
+ export interface OapiCrmObjectdataFollowrecordQueryResponse {
2625
+ /** 分页结果 */
2626
+ result?: {
2627
+ next_cursor?: string
2628
+ values?: number
2629
+ has_more?: number
2630
+ page_size?: number
2631
+ }
2632
+ /** 错误码 */
2633
+ errcode?: unknown
2634
+ /** 错误信息 */
2635
+ errmsg?: string
2636
+ }
2637
+
2638
+ export interface OapiCrmObjectdataContactListParams {
2639
+ /** 操作人用户ID */
2640
+ current_operator_userid?: string
2641
+ /** 数据ID列表 */
2642
+ data_id_list: string[]
2643
+ /** 自建应用时传入定制服务商ID */
2644
+ provider_corpid?: string
2645
+ }
2646
+
2647
+ export interface OapiCrmObjectdataContactListResponse {
2648
+ /** 实例数据 */
2649
+ result_list?: {
2650
+ creator_nick?: string
2651
+ gmt_modified?: string
2652
+ creator_userid?: string
2653
+ instance_id?: string
2654
+ data?: number
2655
+ extend_data?: number
2656
+ gmt_create?: string
2657
+ object_type?: string
2658
+ permission?: number
2659
+ proc_inst_status?: string
2660
+ proc_out_result?: string
2661
+ }[]
2662
+ /** 错误码 */
2663
+ errcode?: unknown
2664
+ /** 错误信息 */
2665
+ errmsg?: string
2666
+ }
2667
+
2668
+ export interface OapiCrmObjectmetaContactDescribeResponse {
2669
+ /** result */
2670
+ result?: {
2671
+ name?: string
2672
+ customized?: number
2673
+ fields?: number
2674
+ status?: string
2675
+ code?: string
2676
+ }
2677
+ /** 错误码 */
2678
+ errcode?: unknown
2679
+ /** 错误信息 */
2680
+ errmsg?: string
2681
+ }
2682
+
2683
+ export interface OapiCrmObjectmetaFollowrecordDescribeResponse {
2684
+ /** result */
2685
+ result?: {
2686
+ name?: string
2687
+ customized?: number
2688
+ fields?: number
2689
+ status?: string
2690
+ code?: string
2691
+ }
2692
+ /** 错误码 */
2693
+ errcode?: unknown
2694
+ /** 错误信息 */
2695
+ errmsg?: string
2696
+ }
2697
+
2698
+ export interface OapiCspaceAddToSingleChatParams {
2699
+ /** 文件名(需包含含扩展名),需要utf-8 urlEncode */
2700
+ file_name?: string
2701
+ /** 调用钉盘上传文件接口得到的mediaid,需要utf-8 urlEncode */
2702
+ media_id?: string
2703
+ /** 文件发送者微应用的agentId */
2704
+ userid?: string
2705
+ /** 文件接收人的userid */
2706
+ agent_id?: string
2707
+ }
2708
+
2709
+ export interface OapiCspaceAddToSingleChatResponse {
2710
+ /** errmsg */
2711
+ errmsg?: string
2712
+ /** errcode */
2713
+ errcode?: unknown
2714
+ }
2715
+
2716
+ export interface OapiCspaceGrantCustomSpaceQuery {
2717
+ /** ISV调用时传入,授权访问指定微应用的自定义空间 */
2718
+ agent_id?: string
2719
+ /** 企业调用时传入,授权访问该domain的自定义空间 */
2720
+ domain?: string
2721
+ /** 权限类型,目前支持上传和下载,上传请传add,下载请传download */
2722
+ type?: string
2723
+ /** 企业用户userid */
2724
+ userid?: string
2725
+ /** 授权访问的路径,如授权访问所有文件传“/”,授权访问/doc文件夹传“/doc/” 需要utf-8 urlEncode */
2726
+ path?: string
2727
+ /** 授权访问的文件id列表,id之间用英文逗号隔开,如“fileId1,fileId2” */
2728
+ fileids?: string
2729
+ /** 权限有效时间,有效范围为0~3600秒,超出此范围或不传默认为30秒 */
2730
+ duration?: unknown
2731
+ }
2732
+
2733
+ export interface OapiCspaceGrantCustomSpaceResponse {
2734
+ /** errmsg */
2735
+ errmsg?: string
2736
+ /** errcode */
2737
+ errcode?: unknown
2738
+ }
2739
+
2740
+ export interface OapiCspaceGetCustomSpaceQuery {
2741
+ /** 企业调用时传入,需要为10个字节以内的字符串,仅可包含字母和数字,大小写不敏感 */
2742
+ domain?: string
2743
+ /** ISV调用时传入,微应用agentId */
2744
+ agent_id?: string
2745
+ }
2746
+
2747
+ export interface OapiCspaceGetCustomSpaceResponse {
2748
+ /** spaceid */
2749
+ spaceid?: string
2750
+ /** errmsg */
2751
+ errmsg?: string
2752
+ /** errcode */
2753
+ errcode?: unknown
2754
+ }
2755
+
2756
+ export interface OapiCspaceAddQuery {
2757
+ /** 微应用的agentId */
2758
+ agent_id?: string
2759
+ /** 如果是微应用,code值为微应用免登授权码,如果是服务窗应用,code值为服务窗免登授权码。code为临时授权码,只能消费一次,下次请求需要重新获取新的code。 */
2760
+ code?: string
2761
+ /** 调用钉盘上传文件接口得到的mediaid, 需要utf-8 urlEncode */
2762
+ media_id?: string
2763
+ /** 调用云盘选择控件后获取的用户钉盘空间ID */
2764
+ folder_id?: string
2765
+ /** 调用云盘选择控件后获取的用户钉盘文件夹ID */
2766
+ space_id?: string
2767
+ /** 上传文件的名称,不能包含非法字符,需要utf-8 urlEncode */
2768
+ name?: string
2769
+ /** 遇到同名文件是否覆盖,若不覆盖,则会自动重命名本次新增的文件,默认为false */
2770
+ overwrite?: unknown
2771
+ }
2772
+
2773
+ export interface OapiCspaceAddResponse {
2774
+ /** dentry */
2775
+ dentry?: string
2776
+ /** errmsg */
2777
+ errmsg?: string
2778
+ /** errcode */
2779
+ errcode?: unknown
2780
+ }
2781
+
2782
+ export interface OapiChatSubadminUpdateParams {
2783
+ /** 群会话id */
2784
+ chatid: string
2785
+ /** 群成员id */
2786
+ userids: string[]
2787
+ /** 设置2添加为管理员,设置3删除该管理员 */
2788
+ role: unknown
2789
+ }
2790
+
2791
+ export interface OapiChatSubadminUpdateResponse {
2792
+ /** 是否调用成功 */
2793
+ success?: unknown
2794
+ /** 错误码 */
2795
+ errcode?: unknown
2796
+ /** 错误信息 */
2797
+ errmsg?: string
2798
+ }
2799
+
2800
+ export interface OapiChatQrcodeGetParams {
2801
+ /** 会话id(逐步淘汰推荐使用openConversationId) */
2802
+ chatid?: string
2803
+ /** 分享二维码用户id */
2804
+ userid: string
2805
+ /** 开放群id(与会话id 二选一) */
2806
+ openConversationId?: string
2807
+ }
2808
+
2809
+ export interface OapiChatQrcodeGetResponse {
2810
+ /** 返回入群的链接 */
2811
+ result?: string
2812
+ /** 是否调用成功 */
2813
+ success?: unknown
2814
+ /** 错误码 */
2815
+ errcode?: unknown
2816
+ /** 错误信息 */
2817
+ errmsg?: string
2818
+ }
2819
+
2820
+ export interface OapiChatMemberFriendswitchUpdateParams {
2821
+ /** 会话Id */
2822
+ chatid: string
2823
+ /** true开启禁止开关,false关闭禁止开关 */
2824
+ is_prohibit: unknown
2825
+ }
2826
+
2827
+ export interface OapiChatMemberFriendswitchUpdateResponse {
2828
+ /** 是否设置成功 */
2829
+ success?: unknown
2830
+ /** 错误码 */
2831
+ errcode?: unknown
2832
+ /** 错误信息 */
2833
+ errmsg?: string
2834
+ }
2835
+
2836
+ export interface OapiChatUpdategroupnickParams {
2837
+ /** 用户userid */
2838
+ userid: string
2839
+ /** chatid */
2840
+ chatid: string
2841
+ /** 群昵称 */
2842
+ group_nick: string
2843
+ }
2844
+
2845
+ export interface OapiChatUpdategroupnickResponse {
2846
+ /** dingOpenErrcode */
2847
+ errcode?: unknown
2848
+ /** errorMsg */
2849
+ errmsg?: string
2850
+ /** success */
2851
+ success?: unknown
2852
+ }
2853
+
2854
+ export interface OapiChatUpdateParams {
2855
+ /** 群会话id */
2856
+ chatid?: string
2857
+ /** 群名称 */
2858
+ name?: string
2859
+ /** 群主的userId */
2860
+ owner?: string
2861
+ /** 群主类型,emp:企业员工,ext:外部联系人 */
2862
+ ownerType?: string
2863
+ /** 添加成员列表 */
2864
+ add_useridlist?: string[]
2865
+ /** 删除成员列表 */
2866
+ del_useridlist?: string[]
2867
+ /** 添加外部联系人成员列表 */
2868
+ add_extidlist?: string[]
2869
+ /** 删除外部联系人成员列表 */
2870
+ del_extidlist?: string[]
2871
+ /** 群头像mediaId */
2872
+ icon?: string
2873
+ /** 是否禁言 */
2874
+ isBan?: unknown
2875
+ /** 群可搜索,0-默认,不可搜索,1-可搜索 */
2876
+ searchable?: unknown
2877
+ /** 入群验证,0:不入群验证(默认) 1:入群验证 */
2878
+ validationType?: unknown
2879
+ /** @all 权限,0-默认,所有人,1-仅群主可@all */
2880
+ mentionAllAuthority?: unknown
2881
+ /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */
2882
+ managementType?: unknown
2883
+ /** 群禁言,0-默认,不禁言,1-全员禁言 */
2884
+ chatBannedType?: unknown
2885
+ /** 新成员可查看聊天历史 0否 1是 */
2886
+ showHistoryType?: unknown
2887
+ }
2888
+
2889
+ export interface OapiChatUpdateResponse {
2890
+ /** errmsg */
2891
+ errmsg?: string
2892
+ /** errcode */
2893
+ errcode?: unknown
2894
+ }
2895
+
2896
+ export interface OapiChatCreateParams {
2897
+ /** 群名称 */
2898
+ name?: string
2899
+ /** 群主的userId */
2900
+ owner?: string
2901
+ /** 群成员userId列表 */
2902
+ useridlist?: string[]
2903
+ /** 新成员可查看100条聊天历史消息的类型,1:可查看,默认或0:不可查看 */
2904
+ showHistoryType?: unknown
2905
+ /** 群可搜索,0-默认,不可搜索,1-可搜索 */
2906
+ searchable?: unknown
2907
+ /** 入群验证,0:不入群验证(默认) 1:入群验证 */
2908
+ validationType?: unknown
2909
+ /** @all 权限,0-默认,所有人,1-仅群主可@all */
2910
+ mentionAllAuthority?: unknown
2911
+ /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */
2912
+ managementType?: unknown
2913
+ /** 群禁言,0-默认,不禁言,1-全员禁言 */
2914
+ chatBannedType?: unknown
2915
+ }
2916
+
2917
+ export interface OapiChatCreateResponse {
2918
+ /** conversationTag */
2919
+ conversationTag?: unknown
2920
+ /** openConversationId */
2921
+ openConversationId?: string
2922
+ /** chatid */
2923
+ chatid?: string
2924
+ /** errmsg */
2925
+ errmsg?: string
2926
+ /** errcode */
2927
+ errcode?: unknown
2928
+ }
2929
+
2930
+ export interface OapiChatGetQuery {
2931
+ /** 群会话的id */
2932
+ chatid?: string
2933
+ }
2934
+
2935
+ export interface OapiChatGetResponse {
2936
+ /** errcode */
2937
+ errcode?: unknown
2938
+ /** errmsg */
2939
+ errmsg?: string
2940
+ /** chat_info */
2941
+ chat_info?: {
2942
+ name?: string
2943
+ owner?: string
2944
+ useridlist?: number
2945
+ extidlist?: number
2946
+ agentidlist?: number
2947
+ conversationTag?: number
2948
+ chatBannedType?: number
2949
+ searchable?: number
2950
+ validationType?: number
2951
+ mentionAllAuthority?: number
2952
+ managementType?: number
2953
+ showHistoryType?: number
2954
+ icon?: string
2955
+ status?: number
2956
+ }
2957
+ }
2958
+
2959
+ export interface OapiSmartbotMsgPushParams {
2960
+ /** 消息体,具体见文档 */
2961
+ msg: unknown
2962
+ /** 接收者的用户userid列表 */
2963
+ user_id_list?: string[]
2964
+ /** 接收者的会话chatid列表 */
2965
+ chat_id_list?: string[]
2966
+ /** 是否发送给企业全部用户,”true“则忽略用户列表和会话列表 */
2967
+ to_all_user?: unknown
2968
+ }
2969
+
2970
+ export interface OapiSmartbotMsgPushResponse {
2971
+ /** 创建的异步发送任务id */
2972
+ task_id?: string
2973
+ /** 错误码 */
2974
+ errcode?: unknown
2975
+ /** errorMsg */
2976
+ errmsg?: string
2977
+ }
2978
+
2979
+ // funcName: isOldApi
2980
+ Internal.define({
2981
+ '/service/get_corp_token': { POST: { oapiServiceGetCorpToken: true } },
2982
+ '/sso/gettoken': { GET: { oapiSsoGettoken: true } },
2983
+ '/get_jsapi_ticket': { GET: { oapiGetJsapiTicket: true } },
2984
+ '/gettoken': { GET: { oapiGettoken: true } },
2985
+ '/v2/user/getuserinfo': { POST: { oapiV2UserGetuserinfo: true } },
2986
+ '/sns/getuserinfo_bycode': { POST: { oapiSnsGetuserinfoBycode: true } },
2987
+ '/sso/getuserinfo': { GET: { oapiSsoGetuserinfo: true } },
2988
+ '/service/get_auth_info': { POST: { oapiServiceGetAuthInfo: true } },
2989
+ '/v2/user/update': { POST: { oapiV2UserUpdate: true } },
2990
+ '/v2/user/create': { POST: { oapiV2UserCreate: true } },
2991
+ '/org/union/trunk/get': { POST: { oapiOrgUnionTrunkGet: true } },
2992
+ '/smartwork/hrm/roster/meta/get': {
2993
+ POST: { oapiSmartworkHrmRosterMetaGet: true },
2994
+ },
2995
+ '/smartwork/hrm/employee/v2/list': {
2996
+ POST: { oapiSmartworkHrmEmployeeV2List: true },
2997
+ },
2998
+ '/smartwork/hrm/employee/v2/update': {
2999
+ POST: { oapiSmartworkHrmEmployeeV2Update: true },
3000
+ },
3001
+ '/smartwork/hrm/employee/field/grouplist': {
3002
+ POST: { oapiSmartworkHrmEmployeeFieldGrouplist: true },
3003
+ },
3004
+ '/smartwork/hrm/employee/update': {
3005
+ POST: { oapiSmartworkHrmEmployeeUpdate: true },
3006
+ },
3007
+ '/smartwork/hrm/employee/queryonjob': {
3008
+ POST: { oapiSmartworkHrmEmployeeQueryonjob: true },
3009
+ },
3010
+ '/smartwork/hrm/employee/querypreentry': {
3011
+ POST: { oapiSmartworkHrmEmployeeQuerypreentry: true },
3012
+ },
3013
+ '/smartwork/hrm/employee/addpreentry': {
3014
+ POST: { oapiSmartworkHrmEmployeeAddpreentry: true },
3015
+ },
3016
+ '/smartwork/hrm/employee/list': {
3017
+ POST: { oapiSmartworkHrmEmployeeList: true },
3018
+ },
3019
+ '/report/template/getbyname': { POST: { oapiReportTemplateGetbyname: true } },
3020
+ '/report/create': { POST: { oapiReportCreate: true } },
3021
+ '/report/savecontent': { POST: { oapiReportSavecontent: true } },
3022
+ '/report/simplelist': { POST: { oapiReportSimplelist: true } },
3023
+ '/report/statistics/listbytype': {
3024
+ POST: { oapiReportStatisticsListbytype: true },
3025
+ },
3026
+ '/report/receiver/list': { POST: { oapiReportReceiverList: true } },
3027
+ '/report/comment/list': { POST: { oapiReportCommentList: true } },
3028
+ '/report/statistics': { POST: { oapiReportStatistics: true } },
3029
+ '/report/getunreadcount': { POST: { oapiReportGetunreadcount: true } },
3030
+ '/report/list': { POST: { oapiReportList: true } },
3031
+ '/report/template/listbyuserid': {
3032
+ POST: { oapiReportTemplateListbyuserid: true },
3033
+ },
3034
+ '/checkin/record/get': { POST: { oapiCheckinRecordGet: true } },
3035
+ '/checkin/record': { GET: { oapiCheckinRecord: true } },
3036
+ '/blackboard/category/list': { POST: { oapiBlackboardCategoryList: true } },
3037
+ '/blackboard/update': { POST: { oapiBlackboardUpdate: true } },
3038
+ '/blackboard/delete': { POST: { oapiBlackboardDelete: true } },
3039
+ '/blackboard/get': { POST: { oapiBlackboardGet: true } },
3040
+ '/blackboard/listids': { POST: { oapiBlackboardListids: true } },
3041
+ '/blackboard/create': { POST: { oapiBlackboardCreate: true } },
3042
+ '/blackboard/listtopten': { POST: { oapiBlackboardListtopten: true } },
3043
+ '/health/stepinfo/getuserstatus': {
3044
+ POST: { oapiHealthStepinfoGetuserstatus: true },
3045
+ },
3046
+ '/health/stepinfo/listbyuserid': {
3047
+ POST: { oapiHealthStepinfoListbyuserid: true },
3048
+ },
3049
+ '/health/stepinfo/list': { POST: { oapiHealthStepinfoList: true } },
3050
+ '/microapp/list_by_userid': { GET: { oapiMicroappListByUserid: true } },
3051
+ '/microapp/list': { POST: { oapiMicroappList: true } },
3052
+ '/microapp/delete': { POST: { oapiMicroappDelete: true } },
3053
+ '/microapp/set_visible_scopes': {
3054
+ POST: { oapiMicroappSetVisibleScopes: true },
3055
+ },
3056
+ '/microapp/visible_scopes': { POST: { oapiMicroappVisibleScopes: true } },
3057
+ '/asr/voice/translate': { POST: { oapiAsrVoiceTranslate: true } },
3058
+ '/ai/mt/translate': { POST: { oapiAiMtTranslate: true } },
3059
+ '/ocr/structured/recognize': { POST: { oapiOcrStructuredRecognize: true } },
3060
+ '/im/chat/scencegroup/message/send_v2': {
3061
+ POST: { oapiImChatScencegroupMessageSendV2: true },
3062
+ },
3063
+ '/im/chat/scenegroup/template/close': {
3064
+ POST: { oapiImChatScenegroupTemplateClose: true },
3065
+ },
3066
+ '/im/chat/scenegroup/template/apply': {
3067
+ POST: { oapiImChatScenegroupTemplateApply: true },
3068
+ },
3069
+ '/im/chat/scencegroup/interactivecard/callback/register': {
3070
+ POST: { oapiImChatScencegroupInteractivecardCallbackRegister: true },
3071
+ },
3072
+ '/im/chat/scenegroup/create': { POST: { oapiImChatScenegroupCreate: true } },
3073
+ '/im/chat/scenegroup/member/add': {
3074
+ POST: { oapiImChatScenegroupMemberAdd: true },
3075
+ },
3076
+ '/im/chat/scenegroup/member/get': {
3077
+ POST: { oapiImChatScenegroupMemberGet: true },
3078
+ },
3079
+ '/im/chat/scenegroup/update': { POST: { oapiImChatScenegroupUpdate: true } },
3080
+ '/im/chat/scenegroup/member/delete': {
3081
+ POST: { oapiImChatScenegroupMemberDelete: true },
3082
+ },
3083
+ '/im/chat/scenegroup/get': { POST: { oapiImChatScenegroupGet: true } },
3084
+ '/robot/send': { POST: { oapiRobotSend: true } },
3085
+ '/alitrip/btrip/invoice/setting/rule': {
3086
+ POST: { oapiAlitripBtripInvoiceSettingRule: true },
3087
+ },
3088
+ '/alitrip/btrip/invoice/setting/add': {
3089
+ POST: { oapiAlitripBtripInvoiceSettingAdd: true },
3090
+ },
3091
+ '/alitrip/btrip/project/delete': {
3092
+ POST: { oapiAlitripBtripProjectDelete: true },
3093
+ },
3094
+ '/alitrip/btrip/project/modify': {
3095
+ POST: { oapiAlitripBtripProjectModify: true },
3096
+ },
3097
+ '/alitrip/btrip/project/add': { POST: { oapiAlitripBtripProjectAdd: true } },
3098
+ '/alitrip/btrip/invoice/setting/delete': {
3099
+ POST: { oapiAlitripBtripInvoiceSettingDelete: true },
3100
+ },
3101
+ '/alitrip/btrip/invoice/setting/modify': {
3102
+ POST: { oapiAlitripBtripInvoiceSettingModify: true },
3103
+ },
3104
+ '/alitrip/btrip/price/query': { POST: { oapiAlitripBtripPriceQuery: true } },
3105
+ '/alitrip/btrip/train/city/suggest': {
3106
+ POST: { oapiAlitripBtripTrainCitySuggest: true },
3107
+ },
3108
+ '/alitrip/btrip/monthbill/url/get': {
3109
+ POST: { oapiAlitripBtripMonthbillUrlGet: true },
3110
+ },
3111
+ '/alitrip/btrip/address/get': { POST: { oapiAlitripBtripAddressGet: true } },
3112
+ '/alitrip/btrip/approval/modify': {
3113
+ POST: { oapiAlitripBtripApprovalModify: true },
3114
+ },
3115
+ '/alitrip/btrip/flight/city/suggest': {
3116
+ POST: { oapiAlitripBtripFlightCitySuggest: true },
3117
+ },
3118
+ '/alitrip/btrip/vehicle/order/search': {
3119
+ POST: { oapiAlitripBtripVehicleOrderSearch: true },
3120
+ },
3121
+ '/alitrip/btrip/cost/center/query': {
3122
+ POST: { oapiAlitripBtripCostCenterQuery: true },
3123
+ },
3124
+ '/alitrip/btrip/approval/update': {
3125
+ POST: { oapiAlitripBtripApprovalUpdate: true },
3126
+ },
3127
+ '/alitrip/btrip/cost/center/new': {
3128
+ POST: { oapiAlitripBtripCostCenterNew: true },
3129
+ },
3130
+ '/alitrip/btrip/cost/center/modify': {
3131
+ POST: { oapiAlitripBtripCostCenterModify: true },
3132
+ },
3133
+ '/alitrip/btrip/cost/center/delete': {
3134
+ POST: { oapiAlitripBtripCostCenterDelete: true },
3135
+ },
3136
+ '/alitrip/btrip/cost/center/entity/set': {
3137
+ POST: { oapiAlitripBtripCostCenterEntitySet: true },
3138
+ },
3139
+ '/alitrip/btrip/hotel/order/search': {
3140
+ POST: { oapiAlitripBtripHotelOrderSearch: true },
3141
+ },
3142
+ '/alitrip/btrip/train/order/search': {
3143
+ POST: { oapiAlitripBtripTrainOrderSearch: true },
3144
+ },
3145
+ '/alitrip/btrip/flight/order/search': {
3146
+ POST: { oapiAlitripBtripFlightOrderSearch: true },
3147
+ },
3148
+ '/alitrip/btrip/invoice/search': {
3149
+ POST: { oapiAlitripBtripInvoiceSearch: true },
3150
+ },
3151
+ '/alitrip/btrip/cost/center/transfer': {
3152
+ POST: { oapiAlitripBtripCostCenterTransfer: true },
3153
+ },
3154
+ '/alitrip/btrip/apply/get': { POST: { oapiAlitripBtripApplyGet: true } },
3155
+ '/alitrip/btrip/apply/search': {
3156
+ POST: { oapiAlitripBtripApplySearch: true },
3157
+ },
3158
+ '/alitrip/btrip/approval/new': {
3159
+ POST: { oapiAlitripBtripApprovalNew: true },
3160
+ },
3161
+ '/alitrip/btrip/cost/center/entity/delete': {
3162
+ POST: { oapiAlitripBtripCostCenterEntityDelete: true },
3163
+ },
3164
+ '/workspace/auditlog/list': { POST: { oapiWorkspaceAuditlogList: true } },
3165
+ '/edu/cert/get': { POST: { oapiEduCertGet: true } },
3166
+ '/edu/user/list': { POST: { oapiEduUserList: true } },
3167
+ '/smartdevice/device/querybyid': {
3168
+ POST: { oapiSmartdeviceDeviceQuerybyid: true },
3169
+ },
3170
+ '/smartdevice/device/querylist': {
3171
+ POST: { oapiSmartdeviceDeviceQuerylist: true },
3172
+ },
3173
+ '/smartdevice/device/query': { POST: { oapiSmartdeviceDeviceQuery: true } },
3174
+ '/smartdevice/device/updatenick': {
3175
+ POST: { oapiSmartdeviceDeviceUpdatenick: true },
3176
+ },
3177
+ '/smartdevice/device/unbind': { POST: { oapiSmartdeviceDeviceUnbind: true } },
3178
+ '/smartdevice/external/bind': { POST: { oapiSmartdeviceExternalBind: true } },
3179
+ '/crm/objectdata/contact/delete': {
3180
+ POST: { oapiCrmObjectdataContactDelete: true },
3181
+ },
3182
+ '/crm/objectdata/customobject/create': {
3183
+ POST: { oapiCrmObjectdataCustomobjectCreate: true },
3184
+ },
3185
+ '/crm/objectdata/customobject/update': {
3186
+ POST: { oapiCrmObjectdataCustomobjectUpdate: true },
3187
+ },
3188
+ '/crm/objectdata/list': { POST: { oapiCrmObjectdataList: true } },
3189
+ '/crm/objectdata/query': { POST: { oapiCrmObjectdataQuery: true } },
3190
+ '/crm/objectmeta/describe': { POST: { oapiCrmObjectmetaDescribe: true } },
3191
+ '/crm/objectdata/contact/query': {
3192
+ POST: { oapiCrmObjectdataContactQuery: true },
3193
+ },
3194
+ '/crm/objectdata/followrecord/list': {
3195
+ POST: { oapiCrmObjectdataFollowrecordList: true },
3196
+ },
3197
+ '/crm/objectdata/followrecord/query': {
3198
+ POST: { oapiCrmObjectdataFollowrecordQuery: true },
3199
+ },
3200
+ '/crm/objectdata/contact/list': {
3201
+ POST: { oapiCrmObjectdataContactList: true },
3202
+ },
3203
+ '/crm/objectmeta/contact/describe': {
3204
+ POST: { oapiCrmObjectmetaContactDescribe: true },
3205
+ },
3206
+ '/crm/objectmeta/followrecord/describe': {
3207
+ POST: { oapiCrmObjectmetaFollowrecordDescribe: true },
3208
+ },
3209
+ '/cspace/add_to_single_chat': { POST: { oapiCspaceAddToSingleChat: true } },
3210
+ '/cspace/grant_custom_space': { GET: { oapiCspaceGrantCustomSpace: true } },
3211
+ '/cspace/get_custom_space': { GET: { oapiCspaceGetCustomSpace: true } },
3212
+ '/cspace/add': { GET: { oapiCspaceAdd: true } },
3213
+ '/chat/subadmin/update': { POST: { oapiChatSubadminUpdate: true } },
3214
+ '/chat/qrcode/get': { POST: { oapiChatQrcodeGet: true } },
3215
+ '/chat/member/friendswitch/update': {
3216
+ POST: { oapiChatMemberFriendswitchUpdate: true },
3217
+ },
3218
+ '/chat/updategroupnick': { POST: { oapiChatUpdategroupnick: true } },
3219
+ '/chat/update': { POST: { oapiChatUpdate: true } },
3220
+ '/chat/create': { POST: { oapiChatCreate: true } },
3221
+ '/chat/get': { GET: { oapiChatGet: true } },
3222
+ '/smartbot/msg/push': { POST: { oapiSmartbotMsgPush: true } },
3223
+ })
3224
+
3225
+ declare module '../internal' {
3226
+ interface Internal {
3227
+ /**
3228
+ * 该接口用于获取企业授权凭证
3229
+ * @see https://open.dingtalk.com/document/isvapp/obtains-the-enterprise-authorized-credential
3230
+ */
3231
+ oapiServiceGetCorpToken(
3232
+ params: OapiServiceGetCorpTokenParams,
3233
+ ): Promise<OapiServiceGetCorpTokenResponse>
3234
+ /**
3235
+ * 获取应用后台免登的access_token
3236
+ * @see https://open.dingtalk.com/document/isvapp/obtain-the-ssotoken-for-micro-application-background-logon-free
3237
+ */
3238
+ oapiSsoGettoken(
3239
+ query: OapiSsoGettokenQuery,
3240
+ ): Promise<OapiSsoGettokenResponse>
3241
+ /**
3242
+ * 获取jsapi ticket
3243
+ * @see https://open.dingtalk.com/document/isvapp/obtain-jsapi_ticket
3244
+ */
3245
+ oapiGetJsapiTicket(): Promise<OapiGetJsapiTicketResponse>
3246
+ /**
3247
+ * 获取企业内部应用的access_token
3248
+ * @see https://open.dingtalk.com/document/orgapp/obtain-orgapp-token
3249
+ */
3250
+ oapiGettoken(query: OapiGettokenQuery): Promise<OapiGettokenResponse>
3251
+ /**
3252
+ * 通过免登码获取用户userid
3253
+ * @see https://open.dingtalk.com/document/isvapp/obtain-the-userid-of-a-user-by-using-the-log-free
3254
+ */
3255
+ oapiV2UserGetuserinfo(
3256
+ params: OapiV2UserGetuserinfoParams,
3257
+ ): Promise<OapiV2UserGetuserinfoResponse>
3258
+ /**
3259
+ * 该接口用于获取授权用户信息
3260
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-the-user-information-based-on-the-sns-temporary-authorization
3261
+ */
3262
+ oapiSnsGetuserinfoBycode(
3263
+ params: OapiSnsGetuserinfoBycodeParams,
3264
+ ): Promise<OapiSnsGetuserinfoBycodeResponse>
3265
+ /**
3266
+ * 获取应用管理后台免登的用户信息
3267
+ * @see https://open.dingtalk.com/document/isvapp/exchange-code-for-the-identity-information-of-a-microapplication-administrator
3268
+ */
3269
+ oapiSsoGetuserinfo(
3270
+ query: OapiSsoGetuserinfoQuery,
3271
+ ): Promise<OapiSsoGetuserinfoResponse>
3272
+ /**
3273
+ * 获取企业授权信息
3274
+ * @see https://open.dingtalk.com/document/isvapp/obtains-the-basic-information-of-an-enterprise
3275
+ */
3276
+ oapiServiceGetAuthInfo(
3277
+ params: OapiServiceGetAuthInfoParams,
3278
+ ): Promise<OapiServiceGetAuthInfoResponse>
3279
+ /**
3280
+ * 用户信息更新
3281
+ * @see https://open.dingtalk.com/document/orgapp/update-dedicated-accounts-information
3282
+ */
3283
+ oapiV2UserUpdate(
3284
+ params: OapiV2UserUpdateParams,
3285
+ ): Promise<OapiV2UserUpdateResponse>
3286
+ /**
3287
+ * 用户信息创建
3288
+ * @see https://open.dingtalk.com/document/orgapp/user-information-creation
3289
+ */
3290
+ oapiV2UserCreate(
3291
+ params: OapiV2UserCreateParams,
3292
+ ): Promise<OapiV2UserCreateResponse>
3293
+ /**
3294
+ * 获取主干组织列表
3295
+ * @see https://open.dingtalk.com/document/isvapp/obtain-backbone-organization-list
3296
+ */
3297
+ oapiOrgUnionTrunkGet(): Promise<OapiOrgUnionTrunkGetResponse>
3298
+ /**
3299
+ * 获取员工花名册的元数据定义(包括花名册分组、字段定义)
3300
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-personnel-roster-metadata-query
3301
+ */
3302
+ oapiSmartworkHrmRosterMetaGet(
3303
+ params: OapiSmartworkHrmRosterMetaGetParams,
3304
+ ): Promise<OapiSmartworkHrmRosterMetaGetResponse>
3305
+ /**
3306
+ * 获取员工花名册指定字段的信息,支持明细分组字段
3307
+ * @see https://open.dingtalk.com/document/orgapp/intelligent-personnel-obtain-employee-roster-information
3308
+ */
3309
+ oapiSmartworkHrmEmployeeV2List(
3310
+ params: OapiSmartworkHrmEmployeeV2ListParams,
3311
+ ): Promise<OapiSmartworkHrmEmployeeV2ListResponse>
3312
+ /**
3313
+ * 智能人事更新员工档案信息,支持明细分组
3314
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-personnel-update-employee-file-information
3315
+ */
3316
+ oapiSmartworkHrmEmployeeV2Update(
3317
+ params: OapiSmartworkHrmEmployeeV2UpdateParams,
3318
+ ): Promise<OapiSmartworkHrmEmployeeV2UpdateResponse>
3319
+ /**
3320
+ * 提供给ISV查询花名册的员工档案信息中有权限的字段列表
3321
+ * @see https://open.dingtalk.com/document/isvapp/get-roster-field-group-details
3322
+ */
3323
+ oapiSmartworkHrmEmployeeFieldGrouplist(
3324
+ params: OapiSmartworkHrmEmployeeFieldGrouplistParams,
3325
+ ): Promise<OapiSmartworkHrmEmployeeFieldGrouplistResponse>
3326
+ /**
3327
+ * 智能人事更新员工档案员工信息
3328
+ * @see https://open.dingtalk.com/document/isvapp-server/update-employee-roster
3329
+ */
3330
+ oapiSmartworkHrmEmployeeUpdate(
3331
+ params: OapiSmartworkHrmEmployeeUpdateParams,
3332
+ ): Promise<OapiSmartworkHrmEmployeeUpdateResponse>
3333
+ /**
3334
+ * 智能人事业务,提供企业/ISV按在职状态分页查询公司在职员工id列表
3335
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-personnel-query-the-list-of-on-the-job-employees-of-the
3336
+ */
3337
+ oapiSmartworkHrmEmployeeQueryonjob(
3338
+ params: OapiSmartworkHrmEmployeeQueryonjobParams,
3339
+ ): Promise<OapiSmartworkHrmEmployeeQueryonjobResponse>
3340
+ /**
3341
+ * 智能人事业务,企业/ISV分页查询公司待入职员工id列表
3342
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-personnel-query-the-list-of-employees-to-be-hired
3343
+ */
3344
+ oapiSmartworkHrmEmployeeQuerypreentry(
3345
+ params: OapiSmartworkHrmEmployeeQuerypreentryParams,
3346
+ ): Promise<OapiSmartworkHrmEmployeeQuerypreentryResponse>
3347
+ /**
3348
+ * 智能人事添加待入职员工信息
3349
+ * @see https://open.dingtalk.com/document/isvapp/add-employees-to-be-hired-through-intelligent-personnel
3350
+ */
3351
+ oapiSmartworkHrmEmployeeAddpreentry(
3352
+ params: OapiSmartworkHrmEmployeeAddpreentryParams,
3353
+ ): Promise<OapiSmartworkHrmEmployeeAddpreentryResponse>
3354
+ /**
3355
+ * 智能人事业务,企业/ISV根据员工id批量访问员工花名册信息
3356
+ * @see https://open.dingtalk.com/document/isvapp-server/obtaining-employee-roster-field-information
3357
+ */
3358
+ oapiSmartworkHrmEmployeeList(
3359
+ params: OapiSmartworkHrmEmployeeListParams,
3360
+ ): Promise<OapiSmartworkHrmEmployeeListResponse>
3361
+ /**
3362
+ * 企业可以根据模板名称获取模板详情
3363
+ * @see https://open.dingtalk.com/document/isvapp/query-template-details
3364
+ */
3365
+ oapiReportTemplateGetbyname(
3366
+ params: OapiReportTemplateGetbynameParams,
3367
+ ): Promise<OapiReportTemplateGetbynameResponse>
3368
+ /**
3369
+ * 提供企业员工创建日志的接口
3370
+ * @see https://open.dingtalk.com/document/isvapp/create-a-log
3371
+ */
3372
+ oapiReportCreate(
3373
+ params: OapiReportCreateParams,
3374
+ ): Promise<OapiReportCreateResponse>
3375
+ /**
3376
+ * 第三方系统会调用这个接口保存日志内容,后续在写日志页面再拉取此内容。
3377
+ * @see https://open.dingtalk.com/document/isvapp/save-custom-log-content
3378
+ */
3379
+ oapiReportSavecontent(
3380
+ params: OapiReportSavecontentParams,
3381
+ ): Promise<OapiReportSavecontentResponse>
3382
+ /**
3383
+ * 企业可以根据员工userid或者日志模板名称,分页获取员工一段时间范围内在【日志】微应用发送的日志概要信息
3384
+ * @see https://open.dingtalk.com/document/orgapp/view-log-summary-data
3385
+ */
3386
+ oapiReportSimplelist(
3387
+ params: OapiReportSimplelistParams,
3388
+ ): Promise<OapiReportSimplelistResponse>
3389
+ /**
3390
+ * 分页获取日志相关人员列表,包括已读人员列表、评论人员列表、点赞人员列表
3391
+ * @see https://open.dingtalk.com/document/orgapp/obtains-a-list-of-log-related-personnel-by-type
3392
+ */
3393
+ oapiReportStatisticsListbytype(
3394
+ params: OapiReportStatisticsListbytypeParams,
3395
+ ): Promise<OapiReportStatisticsListbytypeResponse>
3396
+ /**
3397
+ * 获取日志的分享人员列表
3398
+ * @see https://open.dingtalk.com/document/orgapp/queries-log-sharing-personnel
3399
+ */
3400
+ oapiReportReceiverList(
3401
+ params: OapiReportReceiverListParams,
3402
+ ): Promise<OapiReportReceiverListResponse>
3403
+ /**
3404
+ * 分页获取评论详情,包括评论人userid、评论内容、评论时间
3405
+ * @see https://open.dingtalk.com/document/orgapp/queries-log-comment-details
3406
+ */
3407
+ oapiReportCommentList(
3408
+ params: OapiReportCommentListParams,
3409
+ ): Promise<OapiReportCommentListResponse>
3410
+ /**
3411
+ * 获取日志统计数据
3412
+ * @see https://open.dingtalk.com/document/orgapp/query-log-statistics
3413
+ */
3414
+ oapiReportStatistics(
3415
+ params: OapiReportStatisticsParams,
3416
+ ): Promise<OapiReportStatisticsResponse>
3417
+ /**
3418
+ * 查询企业员工的日志未读数
3419
+ * @see https://open.dingtalk.com/document/orgapp/querying-the-employee-s-log-is-not-reading
3420
+ */
3421
+ oapiReportGetunreadcount(
3422
+ params: OapiReportGetunreadcountParams,
3423
+ ): Promise<OapiReportGetunreadcountResponse>
3424
+ /**
3425
+ * 企业可以根据员工userid或者日志模板名称,分页获取员工一段时间范围内在【日志】微应用发送和修改的日志详细信息
3426
+ * @see https://open.dingtalk.com/document/isvapp/obtains-a-list-of-the-logs-that-are-sent-by
3427
+ */
3428
+ oapiReportList(
3429
+ params: OapiReportListParams,
3430
+ ): Promise<OapiReportListResponse>
3431
+ /**
3432
+ * 根据用户userId获取当前企业下可见的日志模板列表
3433
+ * @see https://open.dingtalk.com/document/orgapp/obtains-the-list-of-visible-log-templates-based-on-the
3434
+ */
3435
+ oapiReportTemplateListbyuserid(
3436
+ params: OapiReportTemplateListbyuseridParams,
3437
+ ): Promise<OapiReportTemplateListbyuseridResponse>
3438
+ /**
3439
+ * 查询多个用户一段时间范围内的签到记录,只给企业调用,ISV无法调用。
3440
+ * @see https://open.dingtalk.com/document/isvapp/obtain-the-check-in-records-of-multiple-users
3441
+ */
3442
+ oapiCheckinRecordGet(
3443
+ params: OapiCheckinRecordGetParams,
3444
+ ): Promise<OapiCheckinRecordGetResponse>
3445
+ /**
3446
+ * 该接口用于获取部门用户签到记录
3447
+ * @see https://open.dingtalk.com/document/orgapp/get-check-in-data
3448
+ */
3449
+ oapiCheckinRecord(
3450
+ query: OapiCheckinRecordQuery,
3451
+ ): Promise<OapiCheckinRecordResponse>
3452
+ /**
3453
+ * 获取企业公告未删除分类列表
3454
+ * @see https://open.dingtalk.com/document/orgapp/obtains-the-list-of-categories-not-deleted-for-enterprise-announcements
3455
+ */
3456
+ oapiBlackboardCategoryList(
3457
+ params: OapiBlackboardCategoryListParams,
3458
+ ): Promise<OapiBlackboardCategoryListResponse>
3459
+ /**
3460
+ * 根据公告id修改企业公告,只有以下身份可以修改:1、主管理员2、公告子管理员并且是待修改公告的创建者
3461
+ * @see https://open.dingtalk.com/document/orgapp/modify-the-announcement-according-to-the-announcement-id
3462
+ */
3463
+ oapiBlackboardUpdate(
3464
+ params: OapiBlackboardUpdateParams,
3465
+ ): Promise<OapiBlackboardUpdateResponse>
3466
+ /**
3467
+ * 根据公告id删除企业公告,只有以下身份可以删除1、主管理员2、公告子管理员并且是待删除公告创建者
3468
+ * @see https://open.dingtalk.com/document/orgapp/delete-announcements-based-on-the-announcement-id
3469
+ */
3470
+ oapiBlackboardDelete(
3471
+ params: OapiBlackboardDeleteParams,
3472
+ ): Promise<OapiBlackboardDeleteResponse>
3473
+ /**
3474
+ * 根据公告ID获取企业未删除公告详情,只有以下身份可以查看:
3475
+ * 1、保密公告
3476
+ * 1.1 公告管理员
3477
+ * 1.2 公告的接收人
3478
+ * 2、非保密公告
3479
+ * 2.1 企业内的人都可见
3480
+ * @see https://open.dingtalk.com/document/orgapp/obtains-the-details-of-a-bulletin-that-is-not-deleted
3481
+ */
3482
+ oapiBlackboardGet(
3483
+ params: OapiBlackboardGetParams,
3484
+ ): Promise<OapiBlackboardGetResponse>
3485
+ /**
3486
+ * 通过接口可以获取到企业未删除的钉钉公告id列表
3487
+ * @see https://open.dingtalk.com/document/orgapp/obtains-the-id-list-of-announcements-that-are-not-deleted
3488
+ */
3489
+ oapiBlackboardListids(
3490
+ params: OapiBlackboardListidsParams,
3491
+ ): Promise<OapiBlackboardListidsResponse>
3492
+ /**
3493
+ * 管理员可以通过该接口创建钉钉企业公告
3494
+ * @see https://open.dingtalk.com/document/orgapp/create-an-enterprise-announcement
3495
+ */
3496
+ oapiBlackboardCreate(
3497
+ params: OapiBlackboardCreateParams,
3498
+ ): Promise<OapiBlackboardCreateResponse>
3499
+ /**
3500
+ * 列出用户当前有权限看到的10条公告,可用于在企业自定义工作首页进行公告轮播展示
3501
+ * @see https://open.dingtalk.com/document/orgapp/list-the-user-s-announcement-list
3502
+ */
3503
+ oapiBlackboardListtopten(
3504
+ params: OapiBlackboardListtoptenParams,
3505
+ ): Promise<OapiBlackboardListtoptenResponse>
3506
+ /**
3507
+ * 查询用户是否参与企业步数排行榜
3508
+ * @see https://open.dingtalk.com/document/isvapp/check-whether-dingtalk-is-enabled
3509
+ */
3510
+ oapiHealthStepinfoGetuserstatus(
3511
+ params: OapiHealthStepinfoGetuserstatusParams,
3512
+ ): Promise<OapiHealthStepinfoGetuserstatusResponse>
3513
+ /**
3514
+ * 批量获取钉钉运动数据
3515
+ * @see https://open.dingtalk.com/document/orgapp/queries-the-number-of-dingtalk-movement-steps-of-multiple-users
3516
+ */
3517
+ oapiHealthStepinfoListbyuserid(
3518
+ params: OapiHealthStepinfoListbyuseridParams,
3519
+ ): Promise<OapiHealthStepinfoListbyuseridResponse>
3520
+ /**
3521
+ * 查询企业用户或部门每天的钉钉运动步数,最多可以查询31天的数据
3522
+ * @see https://open.dingtalk.com/document/orgapp/queries-individual-or-department-dingtalk-exercise-steps
3523
+ */
3524
+ oapiHealthStepinfoList(
3525
+ params: OapiHealthStepinfoListParams,
3526
+ ): Promise<OapiHealthStepinfoListResponse>
3527
+ /**
3528
+ * 该接口用于获取员工可见的应用列表
3529
+ * @see https://open.dingtalk.com/document/orgapp-server/list-the-microapplications-visible-to-employees
3530
+ */
3531
+ oapiMicroappListByUserid(
3532
+ query: OapiMicroappListByUseridQuery,
3533
+ ): Promise<OapiMicroappListByUseridResponse>
3534
+ /**
3535
+ * 列出微应用
3536
+ * @see https://open.dingtalk.com/document/orgapp-server/manager-microapplications-api-permission
3537
+ */
3538
+ oapiMicroappList(): Promise<OapiMicroappListResponse>
3539
+ /**
3540
+ * 删除微应用
3541
+ * @see https://open.dingtalk.com/document/orgapp-server/delete-an-h5-microapplication
3542
+ */
3543
+ oapiMicroappDelete(
3544
+ params: OapiMicroappDeleteParams,
3545
+ ): Promise<OapiMicroappDeleteResponse>
3546
+ /**
3547
+ * 该接口用于设置应用的可见范围
3548
+ * @see https://open.dingtalk.com/document/orgapp-server/set-the-visible-range-of-the-microapplication
3549
+ */
3550
+ oapiMicroappSetVisibleScopes(
3551
+ params: OapiMicroappSetVisibleScopesParams,
3552
+ ): Promise<OapiMicroappSetVisibleScopesResponse>
3553
+ /**
3554
+ * 获取应用的可见范围
3555
+ * @see https://open.dingtalk.com/document/orgapp-server/gets-the-microapplication-visible-range-set-by-the-enterprise
3556
+ */
3557
+ oapiMicroappVisibleScopes(
3558
+ params: OapiMicroappVisibleScopesParams,
3559
+ ): Promise<OapiMicroappVisibleScopesResponse>
3560
+ /**
3561
+ * 用户使用音频 media_id 或 url 进行请求,服务通过回调的方式通知用户翻译结果
3562
+ * @see https://open.dingtalk.com/document/isvapp/asr-short-sentence-recognition
3563
+ */
3564
+ oapiAsrVoiceTranslate(
3565
+ params: OapiAsrVoiceTranslateParams,
3566
+ ): Promise<OapiAsrVoiceTranslateResponse>
3567
+ /**
3568
+ * 输入一段文本,得到翻译指定语言后的译文,支持多种语言的互译
3569
+ * @see https://open.dingtalk.com/document/isvapp/dingtalk-translation
3570
+ */
3571
+ oapiAiMtTranslate(
3572
+ params: OapiAiMtTranslateParams,
3573
+ ): Promise<OapiAiMtTranslateResponse>
3574
+ /**
3575
+ * OCR文字识别
3576
+ * @see https://open.dingtalk.com/document/isvapp/structured-image-recognition-api
3577
+ */
3578
+ oapiOcrStructuredRecognize(
3579
+ params: OapiOcrStructuredRecognizeParams,
3580
+ ): Promise<OapiOcrStructuredRecognizeResponse>
3581
+ /**
3582
+ * 场开放场景下,基于群模板定义的机器人向群内发消息
3583
+ * @see https://open.dingtalk.com/document/isvapp/send-group-helper-message
3584
+ */
3585
+ oapiImChatScencegroupMessageSendV2(
3586
+ params: OapiImChatScencegroupMessageSendV2Params,
3587
+ ): Promise<OapiImChatScencegroupMessageSendV2Response>
3588
+ /**
3589
+ * 根据定义的模板id,创建自定义场景群
3590
+ * @see https://open.dingtalk.com/document/isvapp/deactivate-group-template
3591
+ */
3592
+ oapiImChatScenegroupTemplateClose(
3593
+ params: OapiImChatScenegroupTemplateCloseParams,
3594
+ ): Promise<OapiImChatScenegroupTemplateCloseResponse>
3595
+ /**
3596
+ * 根据传入的模板id,启用群会话群模板功能
3597
+ * @see https://open.dingtalk.com/document/isvapp/enable-group-template
3598
+ */
3599
+ oapiImChatScenegroupTemplateApply(
3600
+ params: OapiImChatScenegroupTemplateApplyParams,
3601
+ ): Promise<OapiImChatScenegroupTemplateApplyResponse>
3602
+ /**
3603
+ * 注册互动卡片回调地址
3604
+ * @see https://open.dingtalk.com/document/orgapp/registration-card-interaction-callback-address-1
3605
+ */
3606
+ oapiImChatScencegroupInteractivecardCallbackRegister(
3607
+ params: OapiImChatScencegroupInteractivecardCallbackRegisterParams,
3608
+ ): Promise<OapiImChatScencegroupInteractivecardCallbackRegisterResponse>
3609
+ /**
3610
+ * 根据定义的模板id,创建自定义场景群
3611
+ * @see https://open.dingtalk.com/document/isvapp/create-group
3612
+ */
3613
+ oapiImChatScenegroupCreate(
3614
+ params: OapiImChatScenegroupCreateParams,
3615
+ ): Promise<OapiImChatScenegroupCreateResponse>
3616
+ /**
3617
+ * 新增场景群成员
3618
+ * @see https://open.dingtalk.com/document/isvapp/add-group-members-1
3619
+ */
3620
+ oapiImChatScenegroupMemberAdd(
3621
+ params: OapiImChatScenegroupMemberAddParams,
3622
+ ): Promise<OapiImChatScenegroupMemberAddResponse>
3623
+ /**
3624
+ * 获取场景群成员
3625
+ * @see https://open.dingtalk.com/document/group/obtains-scene-members
3626
+ */
3627
+ oapiImChatScenegroupMemberGet(
3628
+ params: OapiImChatScenegroupMemberGetParams,
3629
+ ): Promise<OapiImChatScenegroupMemberGetResponse>
3630
+ /**
3631
+ * 根据传入的群id,更新群相关内容
3632
+ * @see https://open.dingtalk.com/document/isvapp/update-group
3633
+ */
3634
+ oapiImChatScenegroupUpdate(
3635
+ params: OapiImChatScenegroupUpdateParams,
3636
+ ): Promise<OapiImChatScenegroupUpdateResponse>
3637
+ /**
3638
+ * 删除场景群成员
3639
+ * @see https://open.dingtalk.com/document/isvapp/delete-group-members
3640
+ */
3641
+ oapiImChatScenegroupMemberDelete(
3642
+ params: OapiImChatScenegroupMemberDeleteParams,
3643
+ ): Promise<OapiImChatScenegroupMemberDeleteResponse>
3644
+ /**
3645
+ * 根据群id,获取群的基本信息
3646
+ * @see https://open.dingtalk.com/document/isvapp/querying-group-information
3647
+ */
3648
+ oapiImChatScenegroupGet(
3649
+ params: OapiImChatScenegroupGetParams,
3650
+ ): Promise<OapiImChatScenegroupGetResponse>
3651
+ /**
3652
+ * 自定义机器人发送消息
3653
+ * @see https://open.dingtalk.com/document/isvapp/custom-bot-access-send-message
3654
+ */
3655
+ oapiRobotSend(params: OapiRobotSendParams): Promise<OapiRobotSendResponse>
3656
+ /**
3657
+ * 配置发票适用人群
3658
+ * @see https://open.dingtalk.com/document/isvapp/configure-invoice-users
3659
+ */
3660
+ oapiAlitripBtripInvoiceSettingRule(
3661
+ params: OapiAlitripBtripInvoiceSettingRuleParams,
3662
+ ): Promise<OapiAlitripBtripInvoiceSettingRuleResponse>
3663
+ /**
3664
+ * 新增发票配置
3665
+ * @see https://open.dingtalk.com/document/isvapp/new-invoice-configuration
3666
+ */
3667
+ oapiAlitripBtripInvoiceSettingAdd(
3668
+ params: OapiAlitripBtripInvoiceSettingAddParams,
3669
+ ): Promise<OapiAlitripBtripInvoiceSettingAddResponse>
3670
+ /**
3671
+ * 删除项目
3672
+ * @see https://open.dingtalk.com/document/isvapp/delete-a-project
3673
+ */
3674
+ oapiAlitripBtripProjectDelete(
3675
+ params: OapiAlitripBtripProjectDeleteParams,
3676
+ ): Promise<OapiAlitripBtripProjectDeleteResponse>
3677
+ /**
3678
+ * 项目变更
3679
+ * @see https://open.dingtalk.com/document/isvapp/project-change
3680
+ */
3681
+ oapiAlitripBtripProjectModify(
3682
+ params: OapiAlitripBtripProjectModifyParams,
3683
+ ): Promise<OapiAlitripBtripProjectModifyResponse>
3684
+ /**
3685
+ * 添加项目
3686
+ * @see https://open.dingtalk.com/document/isvapp/add-a-project
3687
+ */
3688
+ oapiAlitripBtripProjectAdd(
3689
+ params: OapiAlitripBtripProjectAddParams,
3690
+ ): Promise<OapiAlitripBtripProjectAddResponse>
3691
+ /**
3692
+ * 删除发票配置
3693
+ * @see https://open.dingtalk.com/document/isvapp/delete-invoice-configuration
3694
+ */
3695
+ oapiAlitripBtripInvoiceSettingDelete(
3696
+ params: OapiAlitripBtripInvoiceSettingDeleteParams,
3697
+ ): Promise<OapiAlitripBtripInvoiceSettingDeleteResponse>
3698
+ /**
3699
+ * 修改发票配置
3700
+ * @see https://open.dingtalk.com/document/isvapp/modify-invoice-configuration
3701
+ */
3702
+ oapiAlitripBtripInvoiceSettingModify(
3703
+ params: OapiAlitripBtripInvoiceSettingModifyParams,
3704
+ ): Promise<OapiAlitripBtripInvoiceSettingModifyResponse>
3705
+ /**
3706
+ * 查询预估价
3707
+ * @see https://open.dingtalk.com/document/isvapp/query-estimated-price
3708
+ */
3709
+ oapiAlitripBtripPriceQuery(
3710
+ params: OapiAlitripBtripPriceQueryParams,
3711
+ ): Promise<OapiAlitripBtripPriceQueryResponse>
3712
+ /**
3713
+ * 火车票城市搜索
3714
+ * @see https://open.dingtalk.com/document/isvapp/train-ticket-city-search
3715
+ */
3716
+ oapiAlitripBtripTrainCitySuggest(
3717
+ params: OapiAlitripBtripTrainCitySuggestParams,
3718
+ ): Promise<OapiAlitripBtripTrainCitySuggestResponse>
3719
+ /**
3720
+ * 获取月对账结算数据
3721
+ * @see https://open.dingtalk.com/document/isvapp/obtain-monthly-reconciliation-settlement-data
3722
+ */
3723
+ oapiAlitripBtripMonthbillUrlGet(
3724
+ params: OapiAlitripBtripMonthbillUrlGetParams,
3725
+ ): Promise<OapiAlitripBtripMonthbillUrlGetResponse>
3726
+ /**
3727
+ * 获取商旅访问地址
3728
+ * @see https://open.dingtalk.com/document/isvapp/obtain-business-travel-access-addresses
3729
+ */
3730
+ oapiAlitripBtripAddressGet(
3731
+ params: OapiAlitripBtripAddressGetParams,
3732
+ ): Promise<OapiAlitripBtripAddressGetResponse>
3733
+ /**
3734
+ * 修改申请单
3735
+ * @see https://open.dingtalk.com/document/isvapp/user-modify-approval-form
3736
+ */
3737
+ oapiAlitripBtripApprovalModify(
3738
+ params: OapiAlitripBtripApprovalModifyParams,
3739
+ ): Promise<OapiAlitripBtripApprovalModifyResponse>
3740
+ /**
3741
+ * 机票城市搜索
3742
+ * @see https://open.dingtalk.com/document/isvapp/air-ticket-city-search
3743
+ */
3744
+ oapiAlitripBtripFlightCitySuggest(
3745
+ params: OapiAlitripBtripFlightCitySuggestParams,
3746
+ ): Promise<OapiAlitripBtripFlightCitySuggestResponse>
3747
+ /**
3748
+ * 获取用车订单数据
3749
+ * @see https://open.dingtalk.com/document/isvapp/vehicle-order-query-interface
3750
+ */
3751
+ oapiAlitripBtripVehicleOrderSearch(
3752
+ params: OapiAlitripBtripVehicleOrderSearchParams,
3753
+ ): Promise<OapiAlitripBtripVehicleOrderSearchResponse>
3754
+ /**
3755
+ * 查询成本中心
3756
+ * @see https://open.dingtalk.com/document/isvapp/query-cost-center
3757
+ */
3758
+ oapiAlitripBtripCostCenterQuery(
3759
+ params: OapiAlitripBtripCostCenterQueryParams,
3760
+ ): Promise<OapiAlitripBtripCostCenterQueryResponse>
3761
+ /**
3762
+ * 更新申请单状态
3763
+ * @see https://open.dingtalk.com/document/isvapp/update-approval-form
3764
+ */
3765
+ oapiAlitripBtripApprovalUpdate(
3766
+ params: OapiAlitripBtripApprovalUpdateParams,
3767
+ ): Promise<OapiAlitripBtripApprovalUpdateResponse>
3768
+ /**
3769
+ * 新建成本中心
3770
+ * @see https://open.dingtalk.com/document/isvapp/new-cost-center
3771
+ */
3772
+ oapiAlitripBtripCostCenterNew(
3773
+ params: OapiAlitripBtripCostCenterNewParams,
3774
+ ): Promise<OapiAlitripBtripCostCenterNewResponse>
3775
+ /**
3776
+ * 修改成本中心基本信息
3777
+ * @see https://open.dingtalk.com/document/isvapp/modify-basic-cost-center-information
3778
+ */
3779
+ oapiAlitripBtripCostCenterModify(
3780
+ params: OapiAlitripBtripCostCenterModifyParams,
3781
+ ): Promise<OapiAlitripBtripCostCenterModifyResponse>
3782
+ /**
3783
+ * 删除成本中心
3784
+ * @see https://open.dingtalk.com/document/isvapp/delete-cost-center
3785
+ */
3786
+ oapiAlitripBtripCostCenterDelete(
3787
+ params: OapiAlitripBtripCostCenterDeleteParams,
3788
+ ): Promise<OapiAlitripBtripCostCenterDeleteResponse>
3789
+ /**
3790
+ * 设置成本中心人员信息
3791
+ * @see https://open.dingtalk.com/document/isvapp/set-up-cost-center-personnel-information
3792
+ */
3793
+ oapiAlitripBtripCostCenterEntitySet(
3794
+ params: OapiAlitripBtripCostCenterEntitySetParams,
3795
+ ): Promise<OapiAlitripBtripCostCenterEntitySetResponse>
3796
+ /**
3797
+ * 企业获取商旅酒店订单数据
3798
+ * @see https://open.dingtalk.com/document/isvapp/obtains-the-order-data-of-enterprise-hotels
3799
+ */
3800
+ oapiAlitripBtripHotelOrderSearch(
3801
+ params: OapiAlitripBtripHotelOrderSearchParams,
3802
+ ): Promise<OapiAlitripBtripHotelOrderSearchResponse>
3803
+ /**
3804
+ * 获取企业火车票订单数据
3805
+ * @see https://open.dingtalk.com/document/isvapp/obtains-the-enterprise-train-ticket-order-data
3806
+ */
3807
+ oapiAlitripBtripTrainOrderSearch(
3808
+ params: OapiAlitripBtripTrainOrderSearchParams,
3809
+ ): Promise<OapiAlitripBtripTrainOrderSearchResponse>
3810
+ /**
3811
+ * 获取企业机票订单数据
3812
+ * @see https://open.dingtalk.com/document/isvapp/obtains-enterprise-ticket-order-data
3813
+ */
3814
+ oapiAlitripBtripFlightOrderSearch(
3815
+ params: OapiAlitripBtripFlightOrderSearchParams,
3816
+ ): Promise<OapiAlitripBtripFlightOrderSearchResponse>
3817
+ /**
3818
+ * 查询可用发票列表
3819
+ * @see https://open.dingtalk.com/document/isvapp/query-available-invoices
3820
+ */
3821
+ oapiAlitripBtripInvoiceSearch(
3822
+ params: OapiAlitripBtripInvoiceSearchParams,
3823
+ ): Promise<OapiAlitripBtripInvoiceSearchResponse>
3824
+ /**
3825
+ * 商旅成本中心转换为外部成本中心
3826
+ * @see https://open.dingtalk.com/document/isvapp/business-travel-cost-center-converted-to-external-cost-center
3827
+ */
3828
+ oapiAlitripBtripCostCenterTransfer(
3829
+ params: OapiAlitripBtripCostCenterTransferParams,
3830
+ ): Promise<OapiAlitripBtripCostCenterTransferResponse>
3831
+ /**
3832
+ * 获取申请单详情
3833
+ * @see https://open.dingtalk.com/document/isvapp/obtains-the-detailed-data-of-a-single-request
3834
+ */
3835
+ oapiAlitripBtripApplyGet(
3836
+ params: OapiAlitripBtripApplyGetParams,
3837
+ ): Promise<OapiAlitripBtripApplyGetResponse>
3838
+ /**
3839
+ * 获取申请单列表
3840
+ * @see https://open.dingtalk.com/document/isvapp/search-enterprise-approval-form-data
3841
+ */
3842
+ oapiAlitripBtripApplySearch(
3843
+ params: OapiAlitripBtripApplySearchParams,
3844
+ ): Promise<OapiAlitripBtripApplySearchResponse>
3845
+ /**
3846
+ * 用户新建审批单
3847
+ * @see https://open.dingtalk.com/document/isvapp/user-new-approval-form
3848
+ */
3849
+ oapiAlitripBtripApprovalNew(
3850
+ params: OapiAlitripBtripApprovalNewParams,
3851
+ ): Promise<OapiAlitripBtripApprovalNewResponse>
3852
+ /**
3853
+ * 删除成本中心人员信息
3854
+ * @see https://open.dingtalk.com/document/isvapp/delete-cost-center-personnel-information
3855
+ */
3856
+ oapiAlitripBtripCostCenterEntityDelete(
3857
+ params: OapiAlitripBtripCostCenterEntityDeleteParams,
3858
+ ): Promise<OapiAlitripBtripCostCenterEntityDeleteResponse>
3859
+ /**
3860
+ * 获取钉钉项目空间任务中文件的操作日志列表
3861
+ * @see https://open.dingtalk.com/document/orgapp/query-file-operation-logs-of-a-project
3862
+ */
3863
+ oapiWorkspaceAuditlogList(
3864
+ params: OapiWorkspaceAuditlogListParams,
3865
+ ): Promise<OapiWorkspaceAuditlogListResponse>
3866
+ /**
3867
+ * 查询当前用户的数字化考试情况,是否获取了证书
3868
+ * @see https://open.dingtalk.com/document/isvapp/obtain-digital-certificate
3869
+ */
3870
+ oapiEduCertGet(
3871
+ params: OapiEduCertGetParams,
3872
+ ): Promise<OapiEduCertGetResponse>
3873
+ /**
3874
+ * 获取家校用户身份列表
3875
+ * @see https://open.dingtalk.com/document/isvapp/obtains-a-list-of-home-school-user-identities
3876
+ */
3877
+ oapiEduUserList(
3878
+ params: OapiEduUserListParams,
3879
+ ): Promise<OapiEduUserListResponse>
3880
+ /**
3881
+ * 查询企业下的智能硬件设备详情
3882
+ * @see https://open.dingtalk.com/document/isvapp/the-smart-hardware-can-query-details-based-on-the-device
3883
+ */
3884
+ oapiSmartdeviceDeviceQuerybyid(
3885
+ params: OapiSmartdeviceDeviceQuerybyidParams,
3886
+ ): Promise<OapiSmartdeviceDeviceQuerybyidResponse>
3887
+ /**
3888
+ * 查询企业下的智能硬件设备列表
3889
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-hardware-list-query
3890
+ */
3891
+ oapiSmartdeviceDeviceQuerylist(
3892
+ params: OapiSmartdeviceDeviceQuerylistParams,
3893
+ ): Promise<OapiSmartdeviceDeviceQuerylistResponse>
3894
+ /**
3895
+ * 查询企业下的智能硬件设备详情
3896
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-hardware-device-query
3897
+ */
3898
+ oapiSmartdeviceDeviceQuery(
3899
+ params: OapiSmartdeviceDeviceQueryParams,
3900
+ ): Promise<OapiSmartdeviceDeviceQueryResponse>
3901
+ /**
3902
+ * 解除企业下的智能硬件设备绑定
3903
+ * @see https://open.dingtalk.com/document/isvapp/intelligent-hardware-device-nickname-modification
3904
+ */
3905
+ oapiSmartdeviceDeviceUpdatenick(
3906
+ params: OapiSmartdeviceDeviceUpdatenickParams,
3907
+ ): Promise<OapiSmartdeviceDeviceUpdatenickResponse>
3908
+ /**
3909
+ * 解除企业下的智能硬件设备绑定
3910
+ * @see https://open.dingtalk.com/document/isvapp/unbind-a-smart-hardware-device
3911
+ */
3912
+ oapiSmartdeviceDeviceUnbind(
3913
+ params: OapiSmartdeviceDeviceUnbindParams,
3914
+ ): Promise<OapiSmartdeviceDeviceUnbindResponse>
3915
+ /**
3916
+ * 智能设备接入钉钉时,需要和组织建立绑定关系,此接口用于创建绑定关系。
3917
+ * @see https://open.dingtalk.com/document/isvapp/establishing-a-binding-relationship-between-intelligent-hardware-and-cloud
3918
+ */
3919
+ oapiSmartdeviceExternalBind(
3920
+ params: OapiSmartdeviceExternalBindParams,
3921
+ ): Promise<OapiSmartdeviceExternalBindResponse>
3922
+ /**
3923
+ * 删除当前组织CRM指定联系人的接口
3924
+ * @see https://open.dingtalk.com/document/orgapp/delete-crm-contact
3925
+ */
3926
+ oapiCrmObjectdataContactDelete(
3927
+ params: OapiCrmObjectdataContactDeleteParams,
3928
+ ): Promise<OapiCrmObjectdataContactDeleteResponse>
3929
+ /**
3930
+ * 创建CRM自定义对象数据
3931
+ * @see https://open.dingtalk.com/document/orgapp/dingtalk-paas-master-create-custom-crm-object-data
3932
+ */
3933
+ oapiCrmObjectdataCustomobjectCreate(
3934
+ params: OapiCrmObjectdataCustomobjectCreateParams,
3935
+ ): Promise<OapiCrmObjectdataCustomobjectCreateResponse>
3936
+ /**
3937
+ * 钉钉PaaS主数据-更新CRM自定义对象数据
3938
+ * @see https://open.dingtalk.com/document/orgapp/crm-master-data-opens-interface-for-updating-custom-object-data
3939
+ */
3940
+ oapiCrmObjectdataCustomobjectUpdate(
3941
+ params: OapiCrmObjectdataCustomobjectUpdateParams,
3942
+ ): Promise<OapiCrmObjectdataCustomobjectUpdateResponse>
3943
+ /**
3944
+ * 根据实例ID列表批量获取CRM自定义表单数据,最多可一次获取200条数据
3945
+ * @see https://open.dingtalk.com/document/orgapp/retrieves-custom-crm-forms-from-the-id-list
3946
+ */
3947
+ oapiCrmObjectdataList(
3948
+ params: OapiCrmObjectdataListParams,
3949
+ ): Promise<OapiCrmObjectdataListResponse>
3950
+ /**
3951
+ * 获取CRM自定义对象数据,最多可一次获取200条数据
3952
+ * @see https://open.dingtalk.com/document/orgapp/retrieve-custom-crm-object-data
3953
+ */
3954
+ oapiCrmObjectdataQuery(
3955
+ params: OapiCrmObjectdataQueryParams,
3956
+ ): Promise<OapiCrmObjectdataQueryResponse>
3957
+ /**
3958
+ * 获取自定义对象的元数据
3959
+ * @see https://open.dingtalk.com/document/orgapp/get-metadata-description-of-crm-custom-object
3960
+ */
3961
+ oapiCrmObjectmetaDescribe(
3962
+ params: OapiCrmObjectmetaDescribeParams,
3963
+ ): Promise<OapiCrmObjectmetaDescribeResponse>
3964
+ /**
3965
+ * 根据指定查询条件批量获取联系人数据,最多可一次获取200条数据
3966
+ * @see https://open.dingtalk.com/document/isvapp/query-contact-data
3967
+ */
3968
+ oapiCrmObjectdataContactQuery(
3969
+ params: OapiCrmObjectdataContactQueryParams,
3970
+ ): Promise<OapiCrmObjectdataContactQueryResponse>
3971
+ /**
3972
+ * 根据实例ID列表批量获取跟进记录数据,最多可一次获取200条数据
3973
+ * @see https://open.dingtalk.com/document/orgapp/dingtalk-the-primary-data-of-apsara-stack-agility-paas-allows-you
3974
+ */
3975
+ oapiCrmObjectdataFollowrecordList(
3976
+ params: OapiCrmObjectdataFollowrecordListParams,
3977
+ ): Promise<OapiCrmObjectdataFollowrecordListResponse>
3978
+ /**
3979
+ * 根据指定查询条件批量获取跟进记录数据,最多可一次获取200条数据
3980
+ * @see https://open.dingtalk.com/document/orgapp/query-and-dingtalk-data-of-track-records-in-apsara-stack
3981
+ */
3982
+ oapiCrmObjectdataFollowrecordQuery(
3983
+ params: OapiCrmObjectdataFollowrecordQueryParams,
3984
+ ): Promise<OapiCrmObjectdataFollowrecordQueryResponse>
3985
+ /**
3986
+ * 按照ID列表批量获取联系人数据
3987
+ * @see https://open.dingtalk.com/document/orgapp/retrieves-contact-data-in-batches-based-on-the-id-list
3988
+ */
3989
+ oapiCrmObjectdataContactList(
3990
+ params: OapiCrmObjectdataContactListParams,
3991
+ ): Promise<OapiCrmObjectdataContactListResponse>
3992
+ /**
3993
+ * 获取联系人对象的元数据
3994
+ * @see https://open.dingtalk.com/document/isvapp/get-metadata-for-a-contact
3995
+ */
3996
+ oapiCrmObjectmetaContactDescribe(): Promise<OapiCrmObjectmetaContactDescribeResponse>
3997
+ /**
3998
+ * 获取跟进记录对象的元数据
3999
+ * @see https://open.dingtalk.com/document/isvapp/get-the-metadata-of-the-follow-up-record-object
4000
+ */
4001
+ oapiCrmObjectmetaFollowrecordDescribe(): Promise<OapiCrmObjectmetaFollowrecordDescribeResponse>
4002
+ /**
4003
+ * 发送文件给指定用户
4004
+ * @see https://open.dingtalk.com/document/isvapp-server/sends-a-file-to-a-specified-user
4005
+ */
4006
+ oapiCspaceAddToSingleChat(
4007
+ params: OapiCspaceAddToSingleChatParams,
4008
+ ): Promise<OapiCspaceAddToSingleChatResponse>
4009
+ /**
4010
+ * 授权用户访问企业下的自定义空间
4011
+ * @see https://open.dingtalk.com/document/isvapp-server/authorize-a-user-to-access-a-custom-workspace-of-an
4012
+ */
4013
+ oapiCspaceGrantCustomSpace(
4014
+ query: OapiCspaceGrantCustomSpaceQuery,
4015
+ ): Promise<OapiCspaceGrantCustomSpaceResponse>
4016
+ /**
4017
+ * 获取企业下的自定义空间
4018
+ * @see https://open.dingtalk.com/document/isvapp-server/obtain-user-space-under-the-enterprise
4019
+ */
4020
+ oapiCspaceGetCustomSpace(
4021
+ query: OapiCspaceGetCustomSpaceQuery,
4022
+ ): Promise<OapiCspaceGetCustomSpaceResponse>
4023
+ /**
4024
+ * 新增文件到用户钉盘
4025
+ * @see https://open.dingtalk.com/document/isvapp-server/add-file-to-user-s-dingtalk-disk
4026
+ */
4027
+ oapiCspaceAdd(query: OapiCspaceAddQuery): Promise<OapiCspaceAddResponse>
4028
+ /**
4029
+ * 增加和删除群管理员接口
4030
+ * @see https://open.dingtalk.com/document/orgapp/set-chat-admin
4031
+ */
4032
+ oapiChatSubadminUpdate(
4033
+ params: OapiChatSubadminUpdateParams,
4034
+ ): Promise<OapiChatSubadminUpdateResponse>
4035
+ /**
4036
+ * 获取群入群二维码邀请链接
4037
+ * @see https://open.dingtalk.com/document/orgapp/obtain-a-qr-code-link
4038
+ */
4039
+ oapiChatQrcodeGet(
4040
+ params: OapiChatQrcodeGetParams,
4041
+ ): Promise<OapiChatQrcodeGetResponse>
4042
+ /**
4043
+ * 设置群成员之间是否可以添加好友和私聊的开关
4044
+ * @see https://open.dingtalk.com/document/orgapp/set-private-chat
4045
+ */
4046
+ oapiChatMemberFriendswitchUpdate(
4047
+ params: OapiChatMemberFriendswitchUpdateParams,
4048
+ ): Promise<OapiChatMemberFriendswitchUpdateResponse>
4049
+ /**
4050
+ * 设置群成员的群昵称
4051
+ * @see https://open.dingtalk.com/document/orgapp/set-a-group-nickname
4052
+ */
4053
+ oapiChatUpdategroupnick(
4054
+ params: OapiChatUpdategroupnickParams,
4055
+ ): Promise<OapiChatUpdategroupnickResponse>
4056
+ /**
4057
+ * 修改群会话
4058
+ * @see https://open.dingtalk.com/document/orgapp/modify-a-group-session
4059
+ */
4060
+ oapiChatUpdate(
4061
+ params: OapiChatUpdateParams,
4062
+ ): Promise<OapiChatUpdateResponse>
4063
+ /**
4064
+ * 该接口用于创建会话
4065
+ * @see https://open.dingtalk.com/document/orgapp/create-group-session
4066
+ */
4067
+ oapiChatCreate(
4068
+ params: OapiChatCreateParams,
4069
+ ): Promise<OapiChatCreateResponse>
4070
+ /**
4071
+ * 获取群会话
4072
+ * @see https://open.dingtalk.com/document/orgapp/obtain-a-group-session
4073
+ */
4074
+ oapiChatGet(query: OapiChatGetQuery): Promise<OapiChatGetResponse>
4075
+ /**
4076
+ * 通过工作助理机器人给企业员工发送消息
4077
+ * @see https://open.dingtalk.com/document/orgapp/the-message-pushing-interface-of-the-assistant
4078
+ */
4079
+ oapiSmartbotMsgPush(
4080
+ params: OapiSmartbotMsgPushParams,
4081
+ ): Promise<OapiSmartbotMsgPushResponse>
4082
+ }
4083
+ }