@satorijs/adapter-lark 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/lib/index.cjs +1091 -27
  2. package/lib/internal.d.ts +2 -3
  3. package/lib/types/acs.d.ts +19 -19
  4. package/lib/types/admin.d.ts +58 -32
  5. package/lib/types/aily.d.ts +52 -52
  6. package/lib/types/apaas.d.ts +96 -96
  7. package/lib/types/api.d.ts +14 -1
  8. package/lib/types/application.d.ts +153 -69
  9. package/lib/types/approval.d.ts +186 -154
  10. package/lib/types/attendance.d.ts +395 -353
  11. package/lib/types/auth.d.ts +18 -18
  12. package/lib/types/authen.d.ts +24 -24
  13. package/lib/types/baike.d.ts +42 -42
  14. package/lib/types/bitable.d.ts +276 -192
  15. package/lib/types/calendar.d.ts +144 -144
  16. package/lib/types/cardkit.d.ts +8 -8
  17. package/lib/types/contact.d.ts +209 -137
  18. package/lib/types/corehr.d.ts +761 -613
  19. package/lib/types/document_ai.d.ts +68 -68
  20. package/lib/types/docx.d.ts +103 -95
  21. package/lib/types/drive.d.ts +237 -229
  22. package/lib/types/ehr.d.ts +26 -2
  23. package/lib/types/helpdesk.d.ts +156 -148
  24. package/lib/types/hire.d.ts +954 -510
  25. package/lib/types/im.d.ts +446 -446
  26. package/lib/types/index.d.ts +72 -30
  27. package/lib/types/lingo.d.ts +28 -28
  28. package/lib/types/mail.d.ts +192 -192
  29. package/lib/types/minutes.d.ts +4 -4
  30. package/lib/types/okr.d.ts +86 -58
  31. package/lib/types/passport.d.ts +13 -5
  32. package/lib/types/payroll.d.ts +13 -5
  33. package/lib/types/performance.d.ts +85 -79
  34. package/lib/types/personal_settings.d.ts +12 -12
  35. package/lib/types/report.d.ts +11 -5
  36. package/lib/types/search.d.ts +48 -24
  37. package/lib/types/sheets.d.ts +64 -64
  38. package/lib/types/speech_to_text.d.ts +4 -4
  39. package/lib/types/task.d.ts +191 -185
  40. package/lib/types/translation.d.ts +4 -4
  41. package/lib/types/vc.d.ts +335 -155
  42. package/lib/types/wiki.d.ts +48 -48
  43. package/package.json +1 -1
  44. package/src/internal.ts +3 -4
  45. package/src/types/acs.ts +24 -24
  46. package/src/types/admin.ts +69 -39
  47. package/src/types/aily.ts +61 -61
  48. package/src/types/apaas.ts +113 -113
  49. package/src/types/application.ts +177 -83
  50. package/src/types/approval.ts +210 -174
  51. package/src/types/attendance.ts +466 -421
  52. package/src/types/auth.ts +20 -20
  53. package/src/types/authen.ts +28 -28
  54. package/src/types/baike.ts +55 -55
  55. package/src/types/bitable.ts +321 -235
  56. package/src/types/calendar.ts +167 -167
  57. package/src/types/cardkit.ts +10 -10
  58. package/src/types/contact.ts +251 -169
  59. package/src/types/corehr.ts +905 -736
  60. package/src/types/document_ai.ts +85 -85
  61. package/src/types/docx.ts +117 -108
  62. package/src/types/drive.ts +299 -290
  63. package/src/types/ehr.ts +28 -2
  64. package/src/types/helpdesk.ts +182 -173
  65. package/src/types/hire.ts +1081 -591
  66. package/src/types/im.ts +521 -521
  67. package/src/types/index.ts +73 -30
  68. package/src/types/lingo.ts +36 -36
  69. package/src/types/mail.ts +215 -215
  70. package/src/types/minutes.ts +5 -5
  71. package/src/types/okr.ts +98 -66
  72. package/src/types/passport.ts +15 -6
  73. package/src/types/payroll.ts +15 -6
  74. package/src/types/performance.ts +98 -91
  75. package/src/types/personal_settings.ts +15 -15
  76. package/src/types/report.ts +13 -6
  77. package/src/types/search.ts +57 -29
  78. package/src/types/sheets.ts +80 -80
  79. package/src/types/speech_to_text.ts +5 -5
  80. package/src/types/task.ts +238 -231
  81. package/src/types/translation.ts +5 -5
  82. package/src/types/vc.ts +386 -186
  83. package/src/types/wiki.ts +59 -59
  84. package/src/utils.ts +11 -6
  85. package/lib/index.cjs.map +0 -6
  86. package/lib/types/guild.d.ts +0 -59
  87. package/lib/types/message/asset.d.ts +0 -40
  88. package/lib/types/user.d.ts +0 -78
  89. package/lib/types/utils.d.ts +0 -9
package/src/types/mail.ts CHANGED
@@ -270,6 +270,25 @@ export interface CreateMailMailgroupRequest {
270
270
  who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
271
271
  }
272
272
 
273
+ export interface CreateMailMailgroupResponse {
274
+ /** The unique ID of a mail group */
275
+ mailgroup_id?: string
276
+ /** The mail group's email address */
277
+ email?: string
278
+ /** The mail group's display name */
279
+ name?: string
280
+ /** The mail group's description */
281
+ description?: string
282
+ /** The number of mail group's direct members */
283
+ direct_members_count?: string
284
+ /** Value is true if this mail group has external member */
285
+ include_external_member?: boolean
286
+ /** Value is true if all company members are in this mail group */
287
+ include_all_company_member?: boolean
288
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
289
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
290
+ }
291
+
273
292
  export interface PatchMailMailgroupRequest {
274
293
  /** The public mailbox's new primary email address */
275
294
  email?: string
@@ -281,6 +300,25 @@ export interface PatchMailMailgroupRequest {
281
300
  who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
282
301
  }
283
302
 
303
+ export interface PatchMailMailgroupResponse {
304
+ /** The unique ID of a mail group */
305
+ mailgroup_id?: string
306
+ /** The mail group's email address */
307
+ email?: string
308
+ /** The mail group's display name */
309
+ name?: string
310
+ /** The mail group's description */
311
+ description?: string
312
+ /** The number of mail group's direct members */
313
+ direct_members_count?: string
314
+ /** Value is true if this mail group has external member */
315
+ include_external_member?: boolean
316
+ /** Value is true if all company members are in this mail group */
317
+ include_all_company_member?: boolean
318
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
319
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
320
+ }
321
+
284
322
  export interface UpdateMailMailgroupRequest {
285
323
  /** The public mailbox's new primary email address */
286
324
  email?: string
@@ -292,6 +330,44 @@ export interface UpdateMailMailgroupRequest {
292
330
  who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
293
331
  }
294
332
 
333
+ export interface UpdateMailMailgroupResponse {
334
+ /** The unique ID of a mail group */
335
+ mailgroup_id?: string
336
+ /** The mail group's email address */
337
+ email?: string
338
+ /** The mail group's display name */
339
+ name?: string
340
+ /** The mail group's description */
341
+ description?: string
342
+ /** The number of mail group's direct members */
343
+ direct_members_count?: string
344
+ /** Value is true if this mail group has external member */
345
+ include_external_member?: boolean
346
+ /** Value is true if all company members are in this mail group */
347
+ include_all_company_member?: boolean
348
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
349
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
350
+ }
351
+
352
+ export interface GetMailMailgroupResponse {
353
+ /** The unique ID of a mail group */
354
+ mailgroup_id?: string
355
+ /** The mail group's email address */
356
+ email?: string
357
+ /** The mail group's display name */
358
+ name?: string
359
+ /** The mail group's description */
360
+ description?: string
361
+ /** The number of mail group's direct members */
362
+ direct_members_count?: string
363
+ /** Value is true if this mail group has external member */
364
+ include_external_member?: boolean
365
+ /** Value is true if all company members are in this mail group */
366
+ include_all_company_member?: boolean
367
+ /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
368
+ who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
369
+ }
370
+
295
371
  export interface ListMailMailgroupQuery extends Pagination {
296
372
  /** 邮件组管理员用户ID,用于获取该用户有管理权限的邮件组 */
297
373
  manager_user_id?: string
@@ -342,6 +418,19 @@ export interface CreateMailMailgroupMemberQuery {
342
418
  department_id_type?: 'department_id' | 'open_department_id'
343
419
  }
344
420
 
421
+ export interface CreateMailMailgroupMemberResponse {
422
+ /** The unique ID of a member in this mail group */
423
+ member_id?: string
424
+ /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
425
+ email?: string
426
+ /** The member's user id. Value is valid when type is USER */
427
+ user_id?: string
428
+ /** The member's department id. Value is valid when type is DEPARTMENT */
429
+ department_id?: string
430
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
431
+ type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER'
432
+ }
433
+
345
434
  export interface GetMailMailgroupMemberQuery {
346
435
  /** 此次调用中使用的用户ID的类型 */
347
436
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
@@ -349,6 +438,19 @@ export interface GetMailMailgroupMemberQuery {
349
438
  department_id_type?: 'department_id' | 'open_department_id'
350
439
  }
351
440
 
441
+ export interface GetMailMailgroupMemberResponse {
442
+ /** The unique ID of a member in this mail group */
443
+ member_id?: string
444
+ /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
445
+ email?: string
446
+ /** The member's user id. Value is valid when type is USER */
447
+ user_id?: string
448
+ /** The member's department id. Value is valid when type is DEPARTMENT */
449
+ department_id?: string
450
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
451
+ type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER'
452
+ }
453
+
352
454
  export interface ListMailMailgroupMemberQuery extends Pagination {
353
455
  /** 此次调用中使用的用户ID的类型 */
354
456
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
@@ -368,6 +470,11 @@ export interface BatchCreateMailMailgroupMemberQuery {
368
470
  department_id_type?: 'department_id' | 'open_department_id'
369
471
  }
370
472
 
473
+ export interface BatchCreateMailMailgroupMemberResponse {
474
+ /** 添加成功后的邮件组成员信息列表 */
475
+ items?: MailgroupMember[]
476
+ }
477
+
371
478
  export interface BatchDeleteMailMailgroupMemberRequest {
372
479
  /** 本次调用删除的成员ID列表 */
373
480
  member_id_list?: string[]
@@ -378,6 +485,16 @@ export interface CreateMailMailgroupAliasRequest {
378
485
  email_alias?: string
379
486
  }
380
487
 
488
+ export interface CreateMailMailgroupAliasResponse {
489
+ /** 邮件组别名 */
490
+ mailgroup_alias?: EmailAlias
491
+ }
492
+
493
+ export interface ListMailMailgroupAliasResponse {
494
+ /** 邮件组别名 */
495
+ items?: EmailAlias[]
496
+ }
497
+
381
498
  export interface CreateMailMailgroupPermissionMemberRequest {
382
499
  /** The member's user id. Value is valid when type is USER */
383
500
  user_id?: string
@@ -396,6 +513,19 @@ export interface CreateMailMailgroupPermissionMemberQuery {
396
513
  department_id_type?: 'department_id' | 'open_department_id'
397
514
  }
398
515
 
516
+ export interface CreateMailMailgroupPermissionMemberResponse {
517
+ /** The unique ID of a member in this permission group */
518
+ permission_member_id?: string
519
+ /** The member's user id. Value is valid when type is USER */
520
+ user_id?: string
521
+ /** The member's department id. Value is valid when type is DEPARTMENT */
522
+ department_id?: string
523
+ /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
524
+ email?: string
525
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
526
+ type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX'
527
+ }
528
+
399
529
  export interface GetMailMailgroupPermissionMemberQuery {
400
530
  /** 此次调用中使用的用户ID的类型 */
401
531
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
@@ -403,6 +533,19 @@ export interface GetMailMailgroupPermissionMemberQuery {
403
533
  department_id_type?: 'department_id' | 'open_department_id'
404
534
  }
405
535
 
536
+ export interface GetMailMailgroupPermissionMemberResponse {
537
+ /** The unique ID of a member in this permission group */
538
+ permission_member_id?: string
539
+ /** The member's user id. Value is valid when type is USER */
540
+ user_id?: string
541
+ /** The member's department id. Value is valid when type is DEPARTMENT */
542
+ department_id?: string
543
+ /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
544
+ email?: string
545
+ /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
546
+ type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX'
547
+ }
548
+
406
549
  export interface ListMailMailgroupPermissionMemberQuery extends Pagination {
407
550
  /** 此次调用中使用的用户ID的类型 */
408
551
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
@@ -422,6 +565,11 @@ export interface BatchCreateMailMailgroupPermissionMemberQuery {
422
565
  department_id_type?: 'department_id' | 'open_department_id'
423
566
  }
424
567
 
568
+ export interface BatchCreateMailMailgroupPermissionMemberResponse {
569
+ /** 添加成功后的邮件组权限成员信息列表 */
570
+ items?: MailgroupPermissionMember[]
571
+ }
572
+
425
573
  export interface BatchDeleteMailMailgroupPermissionMemberRequest {
426
574
  /** 本次调用删除的权限成员ID列表 */
427
575
  permission_member_id_list: string[]
@@ -436,240 +584,35 @@ export interface CreateMailPublicMailboxRequest {
436
584
  geo?: string
437
585
  }
438
586
 
439
- export interface PatchMailPublicMailboxRequest {
440
- /** The public mailbox's new primary email address */
587
+ export interface CreateMailPublicMailboxResponse {
588
+ /** The unique ID of a public mailbox */
589
+ public_mailbox_id?: string
590
+ /** The public mailbox's email address */
441
591
  email?: string
442
592
  /** The public mailbox's display name */
443
593
  name?: string
594
+ /** 数据驻留地 */
595
+ geo?: string
444
596
  }
445
597
 
446
- export interface UpdateMailPublicMailboxRequest {
598
+ export interface PatchMailPublicMailboxRequest {
447
599
  /** The public mailbox's new primary email address */
448
600
  email?: string
449
601
  /** The public mailbox's display name */
450
602
  name?: string
451
603
  }
452
604
 
453
- export interface CreateMailPublicMailboxMemberRequest {
454
- /** The member's user id. Value is valid when type is USER */
455
- user_id?: string
456
- /** The type of member. Possible values are:- USER: internal user in the team */
457
- type?: 'USER'
458
- }
459
-
460
- export interface CreateMailPublicMailboxMemberQuery {
461
- /** 此次调用中使用的用户ID的类型 */
462
- user_id_type?: 'user_id' | 'union_id' | 'open_id'
463
- }
464
-
465
- export interface GetMailPublicMailboxMemberQuery {
466
- /** 此次调用中使用的用户ID的类型 */
467
- user_id_type?: 'user_id' | 'union_id' | 'open_id'
468
- }
469
-
470
- export interface ListMailPublicMailboxMemberQuery extends Pagination {
471
- /** 此次调用中使用的用户ID的类型 */
472
- user_id_type?: 'user_id' | 'union_id' | 'open_id'
473
- }
474
-
475
- export interface BatchCreateMailPublicMailboxMemberRequest {
476
- /** 本次调用添加的公共邮箱成员列表 */
477
- items: PublicMailboxMember[]
478
- }
479
-
480
- export interface BatchCreateMailPublicMailboxMemberQuery {
481
- /** 此次调用中使用的用户ID的类型 */
482
- user_id_type?: 'user_id' | 'union_id' | 'open_id'
483
- }
484
-
485
- export interface BatchDeleteMailPublicMailboxMemberRequest {
486
- /** 本次调用删除的公共邮箱成员ID列表 */
487
- member_id_list: string[]
488
- }
489
-
490
- export interface CreateMailPublicMailboxAliasRequest {
491
- /** 邮箱别名 */
492
- email_alias?: string
493
- }
494
-
495
- export interface DeleteMailUserMailboxQuery {
496
- /** 用于接受转移的邮箱地址 */
497
- transfer_mailbox?: string
498
- }
499
-
500
- export interface CreateMailUserMailboxAliasRequest {
501
- /** 邮箱别名 */
502
- email_alias?: string
503
- }
504
-
505
- export interface QueryMailUserRequest {
506
- /** 需要查询的邮箱地址列表 */
507
- email_list: string[]
508
- }
509
-
510
- export interface CreateMailMailgroupResponse {
511
- /** The unique ID of a mail group */
512
- mailgroup_id?: string
513
- /** The mail group's email address */
514
- email?: string
515
- /** The mail group's display name */
516
- name?: string
517
- /** The mail group's description */
518
- description?: string
519
- /** The number of mail group's direct members */
520
- direct_members_count?: string
521
- /** Value is true if this mail group has external member */
522
- include_external_member?: boolean
523
- /** Value is true if all company members are in this mail group */
524
- include_all_company_member?: boolean
525
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
526
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
527
- }
528
-
529
- export interface PatchMailMailgroupResponse {
530
- /** The unique ID of a mail group */
531
- mailgroup_id?: string
532
- /** The mail group's email address */
533
- email?: string
534
- /** The mail group's display name */
535
- name?: string
536
- /** The mail group's description */
537
- description?: string
538
- /** The number of mail group's direct members */
539
- direct_members_count?: string
540
- /** Value is true if this mail group has external member */
541
- include_external_member?: boolean
542
- /** Value is true if all company members are in this mail group */
543
- include_all_company_member?: boolean
544
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
545
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
546
- }
547
-
548
- export interface UpdateMailMailgroupResponse {
549
- /** The unique ID of a mail group */
550
- mailgroup_id?: string
551
- /** The mail group's email address */
552
- email?: string
553
- /** The mail group's display name */
554
- name?: string
555
- /** The mail group's description */
556
- description?: string
557
- /** The number of mail group's direct members */
558
- direct_members_count?: string
559
- /** Value is true if this mail group has external member */
560
- include_external_member?: boolean
561
- /** Value is true if all company members are in this mail group */
562
- include_all_company_member?: boolean
563
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
564
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
565
- }
566
-
567
- export interface GetMailMailgroupResponse {
568
- /** The unique ID of a mail group */
569
- mailgroup_id?: string
570
- /** The mail group's email address */
571
- email?: string
572
- /** The mail group's display name */
573
- name?: string
574
- /** The mail group's description */
575
- description?: string
576
- /** The number of mail group's direct members */
577
- direct_members_count?: string
578
- /** Value is true if this mail group has external member */
579
- include_external_member?: boolean
580
- /** Value is true if all company members are in this mail group */
581
- include_all_company_member?: boolean
582
- /** Who can send mail to this mail group. Possible values are:- ANYONE: Any Internet user can send mail to this mail group- ALL_INTERNAL_USERS: Anyone in the team can send mail to this mail group- ALL_GROUP_MEMBERS: Any group member can send mail to this mail group- CUSTOM_MEMBERS: Only custom members can send mail to this mail group, define in mailgroup.permission_members resoure */
583
- who_can_send_mail?: 'ANYONE' | 'ALL_INTERNAL_USERS' | 'ALL_GROUP_MEMBERS' | 'CUSTOM_MEMBERS'
584
- }
585
-
586
- export interface CreateMailMailgroupMemberResponse {
587
- /** The unique ID of a member in this mail group */
588
- member_id?: string
589
- /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
590
- email?: string
591
- /** The member's user id. Value is valid when type is USER */
592
- user_id?: string
593
- /** The member's department id. Value is valid when type is DEPARTMENT */
594
- department_id?: string
595
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
596
- type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER'
597
- }
598
-
599
- export interface GetMailMailgroupMemberResponse {
600
- /** The unique ID of a member in this mail group */
601
- member_id?: string
602
- /** The member's email address. Value is valid when type is one of USER/EXTERNAL_USER/MAIL_GROUP/PUBLIC_MAILBOX/OTHER_MEMBER */
603
- email?: string
604
- /** The member's user id. Value is valid when type is USER */
605
- user_id?: string
606
- /** The member's department id. Value is valid when type is DEPARTMENT */
607
- department_id?: string
608
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department- COMPANY: member is the company- EXTERNAL_USER: internet user outside the organization- MAIL_GROUP: member is another mail group- PUBLIC_MAILBOX: member is a public mailbox- OTHER_MEMBER: other internal member */
609
- type?: 'USER' | 'DEPARTMENT' | 'COMPANY' | 'EXTERNAL_USER' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX' | 'OTHER_MEMBER'
610
- }
611
-
612
- export interface BatchCreateMailMailgroupMemberResponse {
613
- /** 添加成功后的邮件组成员信息列表 */
614
- items?: MailgroupMember[]
615
- }
616
-
617
- export interface CreateMailMailgroupAliasResponse {
618
- /** 邮件组别名 */
619
- mailgroup_alias?: EmailAlias
620
- }
621
-
622
- export interface ListMailMailgroupAliasResponse {
623
- /** 邮件组别名 */
624
- items?: EmailAlias[]
625
- }
626
-
627
- export interface CreateMailMailgroupPermissionMemberResponse {
628
- /** The unique ID of a member in this permission group */
629
- permission_member_id?: string
630
- /** The member's user id. Value is valid when type is USER */
631
- user_id?: string
632
- /** The member's department id. Value is valid when type is DEPARTMENT */
633
- department_id?: string
634
- /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
635
- email?: string
636
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
637
- type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX'
638
- }
639
-
640
- export interface GetMailMailgroupPermissionMemberResponse {
641
- /** The unique ID of a member in this permission group */
642
- permission_member_id?: string
643
- /** The member's user id. Value is valid when type is USER */
644
- user_id?: string
645
- /** The member's department id. Value is valid when type is DEPARTMENT */
646
- department_id?: string
647
- /** The member's email address. Value is valid when type is MAIL_GROUP/PUBLIC_MAILBOX */
648
- email?: string
649
- /** The type of member. Possible values are:- USER: internal user in the team- DEPARTMENT: member is a department */
650
- type?: 'USER' | 'DEPARTMENT' | 'MAIL_GROUP' | 'PUBLIC_MAILBOX'
651
- }
652
-
653
- export interface BatchCreateMailMailgroupPermissionMemberResponse {
654
- /** 添加成功后的邮件组权限成员信息列表 */
655
- items?: MailgroupPermissionMember[]
656
- }
657
-
658
- export interface CreateMailPublicMailboxResponse {
605
+ export interface PatchMailPublicMailboxResponse {
659
606
  /** The unique ID of a public mailbox */
660
607
  public_mailbox_id?: string
661
608
  /** The public mailbox's email address */
662
609
  email?: string
663
610
  /** The public mailbox's display name */
664
611
  name?: string
665
- /** 数据驻留地 */
666
- geo?: string
667
612
  }
668
613
 
669
- export interface PatchMailPublicMailboxResponse {
670
- /** The unique ID of a public mailbox */
671
- public_mailbox_id?: string
672
- /** The public mailbox's email address */
614
+ export interface UpdateMailPublicMailboxRequest {
615
+ /** The public mailbox's new primary email address */
673
616
  email?: string
674
617
  /** The public mailbox's display name */
675
618
  name?: string
@@ -695,6 +638,18 @@ export interface GetMailPublicMailboxResponse {
695
638
  geo?: string
696
639
  }
697
640
 
641
+ export interface CreateMailPublicMailboxMemberRequest {
642
+ /** The member's user id. Value is valid when type is USER */
643
+ user_id?: string
644
+ /** The type of member. Possible values are:- USER: internal user in the team */
645
+ type?: 'USER'
646
+ }
647
+
648
+ export interface CreateMailPublicMailboxMemberQuery {
649
+ /** 此次调用中使用的用户ID的类型 */
650
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
651
+ }
652
+
698
653
  export interface CreateMailPublicMailboxMemberResponse {
699
654
  /** The unique ID of a member in this public mailbox */
700
655
  member_id?: string
@@ -704,6 +659,11 @@ export interface CreateMailPublicMailboxMemberResponse {
704
659
  type?: 'USER'
705
660
  }
706
661
 
662
+ export interface GetMailPublicMailboxMemberQuery {
663
+ /** 此次调用中使用的用户ID的类型 */
664
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
665
+ }
666
+
707
667
  export interface GetMailPublicMailboxMemberResponse {
708
668
  /** The unique ID of a member in this public mailbox */
709
669
  member_id?: string
@@ -713,11 +673,36 @@ export interface GetMailPublicMailboxMemberResponse {
713
673
  type?: 'USER'
714
674
  }
715
675
 
676
+ export interface ListMailPublicMailboxMemberQuery extends Pagination {
677
+ /** 此次调用中使用的用户ID的类型 */
678
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
679
+ }
680
+
681
+ export interface BatchCreateMailPublicMailboxMemberRequest {
682
+ /** 本次调用添加的公共邮箱成员列表 */
683
+ items: PublicMailboxMember[]
684
+ }
685
+
686
+ export interface BatchCreateMailPublicMailboxMemberQuery {
687
+ /** 此次调用中使用的用户ID的类型 */
688
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
689
+ }
690
+
716
691
  export interface BatchCreateMailPublicMailboxMemberResponse {
717
692
  /** 添加成功后的公共邮箱成员信息列表 */
718
693
  items?: PublicMailboxMember[]
719
694
  }
720
695
 
696
+ export interface BatchDeleteMailPublicMailboxMemberRequest {
697
+ /** 本次调用删除的公共邮箱成员ID列表 */
698
+ member_id_list: string[]
699
+ }
700
+
701
+ export interface CreateMailPublicMailboxAliasRequest {
702
+ /** 邮箱别名 */
703
+ email_alias?: string
704
+ }
705
+
721
706
  export interface CreateMailPublicMailboxAliasResponse {
722
707
  /** 公共邮箱别名 */
723
708
  public_mailbox_alias?: EmailAlias
@@ -728,6 +713,16 @@ export interface ListMailPublicMailboxAliasResponse {
728
713
  items?: EmailAlias[]
729
714
  }
730
715
 
716
+ export interface DeleteMailUserMailboxQuery {
717
+ /** 用于接受转移的邮箱地址 */
718
+ transfer_mailbox?: string
719
+ }
720
+
721
+ export interface CreateMailUserMailboxAliasRequest {
722
+ /** 邮箱别名 */
723
+ email_alias?: string
724
+ }
725
+
731
726
  export interface CreateMailUserMailboxAliasResponse {
732
727
  /** 用户邮箱别名 */
733
728
  user_mailbox_alias?: EmailAlias
@@ -738,6 +733,11 @@ export interface ListMailUserMailboxAliasResponse {
738
733
  items?: EmailAlias[]
739
734
  }
740
735
 
736
+ export interface QueryMailUserRequest {
737
+ /** 需要查询的邮箱地址列表 */
738
+ email_list: string[]
739
+ }
740
+
741
741
  export interface QueryMailUserResponse {
742
742
  /** 邮箱地址返回 */
743
743
  user_list?: User[]
@@ -21,16 +21,16 @@ export interface GetMinutesMinuteStatisticsQuery {
21
21
  user_id_type?: 'user_id' | 'union_id' | 'open_id'
22
22
  }
23
23
 
24
- export interface GetMinutesMinuteQuery {
25
- /** 此次调用中使用的用户ID的类型 */
26
- user_id_type?: 'user_id' | 'union_id' | 'open_id'
27
- }
28
-
29
24
  export interface GetMinutesMinuteStatisticsResponse {
30
25
  /** 妙记浏览信息统计 */
31
26
  statistics?: Statictics
32
27
  }
33
28
 
29
+ export interface GetMinutesMinuteQuery {
30
+ /** 此次调用中使用的用户ID的类型 */
31
+ user_id_type?: 'user_id' | 'union_id' | 'open_id'
32
+ }
33
+
34
34
  export interface GetMinutesMinuteResponse {
35
35
  /** 妙记基本信息 */
36
36
  minute?: Minute