@juzi/wechaty 1.0.144 → 1.0.147

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 (145) hide show
  1. package/dist/cjs/src/mods/impls.d.ts +2 -2
  2. package/dist/cjs/src/mods/impls.d.ts.map +1 -1
  3. package/dist/cjs/src/mods/impls.js +2 -1
  4. package/dist/cjs/src/mods/impls.js.map +1 -1
  5. package/dist/cjs/src/mods/users.d.ts +2 -1
  6. package/dist/cjs/src/mods/users.d.ts.map +1 -1
  7. package/dist/cjs/src/package-json.js +4 -4
  8. package/dist/cjs/src/package-json.js.map +1 -1
  9. package/dist/cjs/src/schemas/call-events.d.ts +20 -0
  10. package/dist/cjs/src/schemas/call-events.d.ts.map +1 -0
  11. package/dist/cjs/src/schemas/call-events.js +7 -0
  12. package/dist/cjs/src/schemas/call-events.js.map +1 -0
  13. package/dist/cjs/src/schemas/mod.d.ts +3 -2
  14. package/dist/cjs/src/schemas/mod.d.ts.map +1 -1
  15. package/dist/cjs/src/schemas/mod.js +3 -1
  16. package/dist/cjs/src/schemas/mod.js.map +1 -1
  17. package/dist/cjs/src/schemas/wechaty-events.d.ts +23 -2
  18. package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
  19. package/dist/cjs/src/schemas/wechaty-events.js +6 -0
  20. package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
  21. package/dist/cjs/src/user-modules/call.d.ts +158 -0
  22. package/dist/cjs/src/user-modules/call.d.ts.map +1 -1
  23. package/dist/cjs/src/user-modules/call.js +289 -1
  24. package/dist/cjs/src/user-modules/call.js.map +1 -1
  25. package/dist/cjs/src/user-modules/call.spec.d.ts +7 -0
  26. package/dist/cjs/src/user-modules/call.spec.d.ts.map +1 -0
  27. package/dist/cjs/src/user-modules/call.spec.js +759 -0
  28. package/dist/cjs/src/user-modules/call.spec.js.map +1 -0
  29. package/dist/cjs/src/user-modules/contact.d.ts +16 -0
  30. package/dist/cjs/src/user-modules/contact.d.ts.map +1 -1
  31. package/dist/cjs/src/user-modules/contact.js +16 -0
  32. package/dist/cjs/src/user-modules/contact.js.map +1 -1
  33. package/dist/cjs/src/user-modules/message.d.ts +10 -1
  34. package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
  35. package/dist/cjs/src/user-modules/message.js +69 -0
  36. package/dist/cjs/src/user-modules/message.js.map +1 -1
  37. package/dist/cjs/src/user-modules/message.spec.js +65 -0
  38. package/dist/cjs/src/user-modules/message.spec.js.map +1 -1
  39. package/dist/cjs/src/user-modules/mod.d.ts +5 -4
  40. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  41. package/dist/cjs/src/user-modules/mod.js +2 -1
  42. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  43. package/dist/cjs/src/wechaty/wechaty-base.d.ts +66 -7
  44. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  45. package/dist/cjs/src/wechaty/wechaty-base.js +28 -0
  46. package/dist/cjs/src/wechaty/wechaty-base.js.map +1 -1
  47. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +10 -8
  48. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  49. package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  50. package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
  51. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +15 -5
  52. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  53. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +15 -5
  54. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  55. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +32 -6
  56. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  57. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +39 -5
  58. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  59. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +149 -0
  60. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  61. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  62. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  63. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  64. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  65. package/dist/esm/src/mods/impls.d.ts +2 -2
  66. package/dist/esm/src/mods/impls.d.ts.map +1 -1
  67. package/dist/esm/src/mods/impls.js +1 -1
  68. package/dist/esm/src/mods/impls.js.map +1 -1
  69. package/dist/esm/src/mods/users.d.ts +2 -1
  70. package/dist/esm/src/mods/users.d.ts.map +1 -1
  71. package/dist/esm/src/package-json.js +4 -4
  72. package/dist/esm/src/package-json.js.map +1 -1
  73. package/dist/esm/src/schemas/call-events.d.ts +20 -0
  74. package/dist/esm/src/schemas/call-events.d.ts.map +1 -0
  75. package/dist/esm/src/schemas/call-events.js +4 -0
  76. package/dist/esm/src/schemas/call-events.js.map +1 -0
  77. package/dist/esm/src/schemas/mod.d.ts +3 -2
  78. package/dist/esm/src/schemas/mod.d.ts.map +1 -1
  79. package/dist/esm/src/schemas/mod.js +2 -1
  80. package/dist/esm/src/schemas/mod.js.map +1 -1
  81. package/dist/esm/src/schemas/wechaty-events.d.ts +23 -2
  82. package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
  83. package/dist/esm/src/schemas/wechaty-events.js +6 -0
  84. package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
  85. package/dist/esm/src/user-modules/call.d.ts +158 -0
  86. package/dist/esm/src/user-modules/call.d.ts.map +1 -1
  87. package/dist/esm/src/user-modules/call.js +289 -1
  88. package/dist/esm/src/user-modules/call.js.map +1 -1
  89. package/dist/esm/src/user-modules/call.spec.d.ts +7 -0
  90. package/dist/esm/src/user-modules/call.spec.d.ts.map +1 -0
  91. package/dist/esm/src/user-modules/call.spec.js +734 -0
  92. package/dist/esm/src/user-modules/call.spec.js.map +1 -0
  93. package/dist/esm/src/user-modules/contact.d.ts +16 -0
  94. package/dist/esm/src/user-modules/contact.d.ts.map +1 -1
  95. package/dist/esm/src/user-modules/contact.js +16 -0
  96. package/dist/esm/src/user-modules/contact.js.map +1 -1
  97. package/dist/esm/src/user-modules/message.d.ts +10 -1
  98. package/dist/esm/src/user-modules/message.d.ts.map +1 -1
  99. package/dist/esm/src/user-modules/message.js +69 -0
  100. package/dist/esm/src/user-modules/message.js.map +1 -1
  101. package/dist/esm/src/user-modules/message.spec.js +65 -0
  102. package/dist/esm/src/user-modules/message.spec.js.map +1 -1
  103. package/dist/esm/src/user-modules/mod.d.ts +5 -4
  104. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  105. package/dist/esm/src/user-modules/mod.js +2 -2
  106. package/dist/esm/src/user-modules/mod.js.map +1 -1
  107. package/dist/esm/src/wechaty/wechaty-base.d.ts +66 -7
  108. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  109. package/dist/esm/src/wechaty/wechaty-base.js +28 -0
  110. package/dist/esm/src/wechaty/wechaty-base.js.map +1 -1
  111. package/dist/esm/src/wechaty/wechaty-impl.spec.js +10 -8
  112. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  113. package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  114. package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
  115. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +15 -5
  116. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  117. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +15 -5
  118. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  119. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +32 -6
  120. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  121. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +39 -5
  122. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  123. package/dist/esm/src/wechaty-mixins/puppet-mixin.js +149 -0
  124. package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  125. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  126. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  127. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  128. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  129. package/package.json +3 -3
  130. package/src/mods/impls.ts +2 -0
  131. package/src/mods/users.ts +6 -0
  132. package/src/package-json.ts +4 -4
  133. package/src/schemas/call-events.ts +35 -0
  134. package/src/schemas/mod.ts +6 -0
  135. package/src/schemas/wechaty-events.ts +28 -0
  136. package/src/user-modules/call.spec.ts +929 -0
  137. package/src/user-modules/call.ts +373 -0
  138. package/src/user-modules/contact.ts +18 -0
  139. package/src/user-modules/message.spec.ts +89 -0
  140. package/src/user-modules/message.ts +139 -2
  141. package/src/user-modules/mod.ts +11 -0
  142. package/src/wechaty/wechaty-base.ts +40 -1
  143. package/src/wechaty/wechaty-impl.spec.ts +4 -0
  144. package/src/wechaty-mixins/puppet-mixin.ts +184 -0
  145. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -38,7 +38,7 @@ import { ChannelImpl, ChannelInterface, ChannelConstructor } from './channel.js'
38
38
  import { ChannelCardImpl, ChannelCardInterface, ChannelCardConstructor } from './channel-card.js';
39
39
  import { ConsultCardImpl, ConsultCardInterface, ConsultCardConstructor } from './consult-card.js';
40
40
  import { PremiumOnlineAppointmentCardImpl, PremiumOnlineAppointmentCardInterface, PremiumOnlineAppointmentCardConstructor } from './premium-online-appointment-card.js';
41
- import { CallRecordImpl, CallRecordInterface, CallRecordConstructor } from './call.js';
41
+ import { CallImpl, CallInterface, CallConstructor, CallRecordImpl, CallRecordInterface, CallRecordConstructor } from './call.js';
42
42
  import { ChatHistoryImpl, ChatHistoryInterface, ChatHistoryConstructor } from './chat-history.js';
43
43
  import { WecomImpl, WecomInterface, WecomConstructor } from './wecom.js';
44
44
  import { DouyinOneClickPhoneCollectionImpl, DouyinOneClickPhoneCollectionInterface, DouyinOneClickPhoneCollectionConstructor } from './douyin-one-click-phone-collection.js';
@@ -46,7 +46,8 @@ import { ImSpecificImpl, ImSpecificInterface, ImSpecificConstructor } from './im
46
46
  import { WxxdProductImpl, WxxdProductInterface, WxxdProductConstructor } from './wxxd-product.js';
47
47
  import { WxxdOrderImpl, WxxdOrderInterface, WxxdOrderConstructor } from './wxxd-order.js';
48
48
  import { wechatifyUserModule } from '../user-mixins/wechatify.js';
49
- export type { ContactInterface, ContactSelfInterface, FavoriteInterface, FriendshipInterface, ImageInterface, LocationInterface, MessageInterface, MiniProgramInterface, MomentInterface, MoneyInterface, PostInterface, RoomInterface, RoomInvitationInterface, TagInterface, TagGroupInterface, DelayInterface, UrlLinkInterface, ChannelInterface, ChannelCardInterface, ConsultCardInterface, PremiumOnlineAppointmentCardInterface, CallRecordInterface, ChatHistoryInterface, WecomInterface, DouyinOneClickPhoneCollectionInterface, ImSpecificInterface, WxxdProductInterface, WxxdOrderInterface, };
50
- export type { ContactConstructor, ContactSelfConstructor, FavoriteConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, MomentConstructor, MoneyConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, DelayConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, ConsultCardConstructor, PremiumOnlineAppointmentCardConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, DouyinOneClickPhoneCollectionConstructor, ImSpecificConstructor, WxxdProductConstructor, WxxdOrderConstructor, };
51
- export { wechatifyUserModule, ContactImpl, ContactSelfImpl, FavoriteImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, MomentImpl, MoneyImpl, PostImpl, RoomImpl, RoomInvitationImpl, DelayImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, ConsultCardImpl, PremiumOnlineAppointmentCardImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, ImSpecificImpl, WxxdProductImpl, WxxdOrderImpl, };
49
+ export type { CallStatus, CallDirection, } from './call.js';
50
+ export type { CallInterface, ContactInterface, ContactSelfInterface, FavoriteInterface, FriendshipInterface, ImageInterface, LocationInterface, MessageInterface, MiniProgramInterface, MomentInterface, MoneyInterface, PostInterface, RoomInterface, RoomInvitationInterface, TagInterface, TagGroupInterface, DelayInterface, UrlLinkInterface, ChannelInterface, ChannelCardInterface, ConsultCardInterface, PremiumOnlineAppointmentCardInterface, CallRecordInterface, ChatHistoryInterface, WecomInterface, DouyinOneClickPhoneCollectionInterface, ImSpecificInterface, WxxdProductInterface, WxxdOrderInterface, };
51
+ export type { CallConstructor, ContactConstructor, ContactSelfConstructor, FavoriteConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, MomentConstructor, MoneyConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, DelayConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, ConsultCardConstructor, PremiumOnlineAppointmentCardConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, DouyinOneClickPhoneCollectionConstructor, ImSpecificConstructor, WxxdProductConstructor, WxxdOrderConstructor, };
52
+ export { wechatifyUserModule, CallImpl, ContactImpl, ContactSelfImpl, FavoriteImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, MomentImpl, MoneyImpl, PostImpl, RoomImpl, RoomInvitationImpl, DelayImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, ConsultCardImpl, PremiumOnlineAppointmentCardImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, ImSpecificImpl, WxxdProductImpl, WxxdOrderImpl, };
52
53
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,eAAe,CAAA;AAChD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACtB,MAAgC,iBAAiB,CAAA;AAClD,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EACjB,MAAgC,YAAY,CAAA;AAC7C,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,eAAe,CAAA;AAChD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,UAAU,EACV,eAAe,EACf,iBAAiB,EAClB,MAAgC,aAAa,CAAA;AAC9C,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EACjB,MAAgC,YAAY,CAAA;AAC7C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,eAAe,EAChB,MAAgC,WAAW,CAAA;AAC5C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,eAAe,EAChB,MAAgC,WAAW,CAAA;AAC5C,OAAO,EACL,kBAAkB,EAClB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ts","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,eAAe,CAAA;AAChD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACtB,MAAgC,iBAAiB,CAAA;AAClD,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EACjB,MAAgC,YAAY,CAAA;AAC7C,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,eAAe,CAAA;AAChD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,UAAU,EACV,eAAe,EACf,iBAAiB,EAClB,MAAgC,aAAa,CAAA;AAC9C,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EACjB,MAAgC,YAAY,CAAA;AAC7C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,eAAe,EAChB,MAAgC,WAAW,CAAA;AAC5C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,eAAe,EAChB,MAAgC,WAAW,CAAA;AAC5C,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EAC1B,MAAgC,sBAAsB,CAAA;AACvD,OAAO,EACL,OAAO,EACP,YAAY,EACZ,cAAc,EACf,MAAgC,UAAU,CAAA;AAC3C,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,gBAAgB,CAAA;AACjD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ACnB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,qCAAqC,EACrC,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,sCAAsC,EACtC,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,CAAA;AAED,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,uCAAuC,EACvC,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,wCAAwC,EACxC,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,GACrB,CAAA;AAED,OAAO,EACL,mBAAmB,EAEnB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,EACf,gCAAgC,EAChC,cAAc,EACd,eAAe,EACf,SAAS,EACT,iCAAiC,EACjC,cAAc,EACd,eAAe,EACf,aAAa,GACd,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WxxdOrderImpl = exports.WxxdProductImpl = exports.ImSpecificImpl = exports.DouyinOneClickPhoneCollectionImpl = exports.WecomImpl = exports.ChatHistoryImpl = exports.CallRecordImpl = exports.PremiumOnlineAppointmentCardImpl = exports.ConsultCardImpl = exports.ChannelCardImpl = exports.ChannelImpl = exports.UrlLinkImpl = exports.TagGroupImpl = exports.TagImpl = exports.DelayImpl = exports.RoomInvitationImpl = exports.RoomImpl = exports.PostImpl = exports.MoneyImpl = exports.MomentImpl = exports.MiniProgramImpl = exports.MessageImpl = exports.LocationImpl = exports.ImageImpl = exports.FriendshipImpl = exports.FavoriteImpl = exports.ContactSelfImpl = exports.ContactImpl = exports.wechatifyUserModule = void 0;
3
+ exports.WxxdOrderImpl = exports.WxxdProductImpl = exports.ImSpecificImpl = exports.DouyinOneClickPhoneCollectionImpl = exports.WecomImpl = exports.ChatHistoryImpl = exports.CallRecordImpl = exports.PremiumOnlineAppointmentCardImpl = exports.ConsultCardImpl = exports.ChannelCardImpl = exports.ChannelImpl = exports.UrlLinkImpl = exports.TagGroupImpl = exports.TagImpl = exports.DelayImpl = exports.RoomInvitationImpl = exports.RoomImpl = exports.PostImpl = exports.MoneyImpl = exports.MomentImpl = exports.MiniProgramImpl = exports.MessageImpl = exports.LocationImpl = exports.ImageImpl = exports.FriendshipImpl = exports.FavoriteImpl = exports.ContactSelfImpl = exports.ContactImpl = exports.CallImpl = exports.wechatifyUserModule = void 0;
4
4
  /**
5
5
  * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
6
6
  *
@@ -63,6 +63,7 @@ Object.defineProperty(exports, "ConsultCardImpl", { enumerable: true, get: funct
63
63
  const premium_online_appointment_card_js_1 = require("./premium-online-appointment-card.js");
64
64
  Object.defineProperty(exports, "PremiumOnlineAppointmentCardImpl", { enumerable: true, get: function () { return premium_online_appointment_card_js_1.PremiumOnlineAppointmentCardImpl; } });
65
65
  const call_js_1 = require("./call.js");
66
+ Object.defineProperty(exports, "CallImpl", { enumerable: true, get: function () { return call_js_1.CallImpl; } });
66
67
  Object.defineProperty(exports, "CallRecordImpl", { enumerable: true, get: function () { return call_js_1.CallRecordImpl; } });
67
68
  const chat_history_js_1 = require("./chat-history.js");
68
69
  Object.defineProperty(exports, "ChatHistoryImpl", { enumerable: true, get: function () { return chat_history_js_1.ChatHistoryImpl; } });
@@ -1 +1 @@
1
- {"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,6CAI+C;AA4M7C,4FA/MA,wBAAW,OA+MA;AA3Mb,uDAIoD;AAwMlD,gGA3MA,iCAAe,OA2MA;AAvMjB,+CAIgD;AAoM9C,6FAvMA,0BAAY,OAuMA;AAnMd,mDAIkD;AAgMhD,+FAnMA,8BAAc,OAmMA;AA/LhB,yCAI6C;AA4L3C,0FA/LA,oBAAS,OA+LA;AA3LX,+CAIgD;AAwL9C,6FA3LA,0BAAY,OA2LA;AAvLd,6CAI+C;AAoL7C,4FAvLA,wBAAW,OAuLA;AAnLb,uDAIoD;AAgLlD,gGAnLA,iCAAe,OAmLA;AA/KjB,2CAI8C;AA4K5C,2FA/KA,sBAAU,OA+KA;AA3KZ,yCAI6C;AAwK3C,0FA3KA,oBAAS,OA2KA;AAvKX,uCAI4C;AAoK1C,yFAvKA,kBAAQ,OAuKA;AAnKV,uCAI4C;AAgK1C,yFAnKA,kBAAQ,OAmKA;AA/JV,6DAIuD;AA4JrD,mGA/JA,uCAAkB,OA+JA;AA3JpB,qCAI2C;AAyJzC,wFA5JA,gBAAO,OA4JA;AAxJT,iDAIiD;AAqJ/C,6FAxJA,2BAAY,OAwJA;AApJd,+CAIgD;AAiJ9C,4FApJA,yBAAW,OAoJA;AAhJb,yCAI6C;AAyI3C,0FA5IA,oBAAS,OA4IA;AAxIX,6CAI+C;AAwI7C,4FA3IA,wBAAW,OA2IA;AAvIb,uDAIoD;AAoIlD,gGAvIA,iCAAe,OAuIA;AAnIjB,uDAIoD;AAgIlD,gGAnIA,iC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DAIiD;AAgK/C,6FAnKA,2BAAY,OAmKA;AA/Jd,+CAIgD;AA4J9C,4FA/JA,yBAAW,OA+JA;AA3Jb,yCAI6C;AAoJ3C,0FAvJA,oBAAS,OAuJA;AAnJX,6CAI+C;AAmJ7C,4FAtJA,wBAAW,OAsJA;AAlJb,uDAIoD;AA+IlD,gGAlJA,iCAAe,OAkJA;AA9IjB,uDAIoD;AA2IlD,gGA9IA,iCAAe,OA8IA;AA1IjB,6FAIuE;AAuIrE,iHA1IA,qEAAgC,OA0IA;AAtIlC,uCAO4C;AA0G1C,yFAhHA,kBAAQ,OAgHA;AAsBR,+FAnIA,wBAAc,OAmIA;AA/HhB,uDAIoD;AA4HlD,gGA/HA,iCAAe,OA+HA;AA3HjB,yCAI6C;AAwH3C,0FA3HA,oBAAS,OA2HA;AAvHX,iGAIyE;AAoHvE,kHAvHA,wEAAiC,OAuHA;AAnHnC,qDAImD;AAgHjD,+FAnHA,+BAAc,OAmHA;AA/GhB,uDAIoD;AA4GlD,gGA/GA,iCAAe,OA+GA;AA3GjB,mDAIkD;AAwGhD,8FA3GA,6BAAa,OA2GA;AAtGf,8DAAiE;AAwE/D,oGAxEO,kCAAmB,OAwEP"}
@@ -4,6 +4,8 @@ import { WechatySkeleton } from './wechaty-skeleton.js';
4
4
  import type { WechatyInterface } from './wechaty-impl.js';
5
5
  import type { WechatyOptions } from '../schemas/wechaty-options.js';
6
6
  import type { PostInterface } from '../user-modules/post.js';
7
+ import type { CallImpl, CallInterface } from '../user-modules/call.js';
8
+ import type { ContactInterface } from '../user-modules/contact.js';
7
9
  declare const mixinBase: (abstract new (...args: any[]) => {
8
10
  state: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
9
11
  __serviceCtlResettingIndicator: import("state-switch/dist/esm/src/busy-indicator.js").BusyIndicator;
@@ -26,7 +28,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
26
28
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
27
29
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
28
30
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
29
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
31
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
30
32
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
31
33
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
32
34
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -50,12 +52,15 @@ declare const mixinBase: (abstract new (...args: any[]) => {
50
52
  sleep(milliseconds: number): Promise<void>;
51
53
  ding(data?: string | undefined): void;
52
54
  __puppet?: PUPPET.impls.PuppetInterface | undefined;
55
+ __callPool: Map<string, CallImpl>;
53
56
  readonly puppet: PUPPET.impls.PuppetInterface;
54
57
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
55
58
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
56
59
  __puppetMixinInited: boolean;
57
60
  ready(): Promise<void>;
58
61
  __setupPuppetEvents(puppet: PUPPET.impls.PuppetInterface): void;
62
+ __finalizeIfEnded(call: CallImpl, force?: boolean): Promise<void>;
63
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
59
64
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
60
65
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
61
66
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -82,6 +87,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
82
87
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
83
88
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
84
89
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
90
+ readonly Call: import("../user-modules/call.js").CallConstructor;
85
91
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
86
92
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
87
93
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -127,7 +133,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
127
133
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
128
134
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
129
135
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
130
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
136
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
131
137
  addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
132
138
  once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
133
139
  prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
@@ -144,12 +150,15 @@ declare const mixinBase: (abstract new (...args: any[]) => {
144
150
  setMaxListeners(maxListeners: number): any;
145
151
  __events: import("../schemas/wechaty-events.js").WechatyEventListeners;
146
152
  __puppet?: PUPPET.impls.PuppetInterface | undefined;
153
+ __callPool: Map<string, CallImpl>;
147
154
  readonly puppet: PUPPET.impls.PuppetInterface;
148
155
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
149
156
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
150
157
  __puppetMixinInited: boolean;
151
158
  ready(): Promise<void>;
152
159
  __setupPuppetEvents(puppet: PUPPET.impls.PuppetInterface): void;
160
+ __finalizeIfEnded(call: CallImpl, force?: boolean): Promise<void>;
161
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
153
162
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
154
163
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
155
164
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -176,6 +185,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
176
185
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
177
186
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
178
187
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
188
+ readonly Call: import("../user-modules/call.js").CallConstructor;
179
189
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
180
190
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
181
191
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -217,6 +227,29 @@ declare const mixinBase: (abstract new (...args: any[]) => {
217
227
  init(): Promise<void>;
218
228
  logout(reason?: string | undefined): Promise<void>;
219
229
  logonoff(): boolean;
230
+ /**
231
+ * Main bot class.
232
+ *
233
+ * A `Bot` is a WeChat client depends on which puppet you use.
234
+ * It may equals
235
+ * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
236
+ * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
237
+ * - ios-WeChat, when you use: puppet-ioscat
238
+ *
239
+ * See more:
240
+ * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
241
+ *
242
+ * > If you want to know how to send message, see [Message](#Message) <br>
243
+ * > If you want to know how to get contact, see [Contact](#Contact)
244
+ *
245
+ * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
246
+ * import { WechatyBuilder } from 'wechaty'
247
+ * const bot = WechatyBuilder.build()
248
+ * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
249
+ * bot.on('login', user => console.log(`User ${user} logged in`))
250
+ * bot.on('message', message => console.log(`Message: ${message}`))
251
+ * bot.start()
252
+ */
220
253
  userSelf(): import("../user-modules/contact-self.js").ContactSelfInterface;
221
254
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
222
255
  readonly id: string;
@@ -225,7 +258,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
225
258
  __options: WechatyOptions;
226
259
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
227
260
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
228
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
261
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
229
262
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
230
263
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
231
264
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -242,12 +275,15 @@ declare const mixinBase: (abstract new (...args: any[]) => {
242
275
  setMaxListeners(maxListeners: number): any;
243
276
  __events: import("../schemas/wechaty-events.js").WechatyEventListeners;
244
277
  __puppet?: PUPPET.impls.PuppetInterface | undefined;
278
+ __callPool: Map<string, CallImpl>;
245
279
  readonly puppet: PUPPET.impls.PuppetInterface;
246
280
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
247
281
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
248
282
  __puppetMixinInited: boolean;
249
283
  ready(): Promise<void>;
250
284
  __setupPuppetEvents(puppet: PUPPET.impls.PuppetInterface): void;
285
+ __finalizeIfEnded(call: CallImpl, force?: boolean): Promise<void>;
286
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
251
287
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
252
288
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
253
289
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -274,6 +310,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
274
310
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
275
311
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
276
312
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
313
+ readonly Call: import("../user-modules/call.js").CallConstructor;
277
314
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
278
315
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
279
316
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -309,6 +346,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
309
346
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
310
347
  }) & ((abstract new (...args: any[]) => {
311
348
  __puppet?: PUPPET.impls.PuppetInterface | undefined;
349
+ __callPool: Map<string, CallImpl>;
312
350
  readonly puppet: PUPPET.impls.PuppetInterface;
313
351
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
314
352
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
@@ -318,6 +356,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
318
356
  ready(): Promise<void>;
319
357
  init(): Promise<void>;
320
358
  __setupPuppetEvents(puppet: PUPPET.impls.PuppetInterface): void;
359
+ __finalizeIfEnded(call: CallImpl, force?: boolean): Promise<void>;
360
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
321
361
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
322
362
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
323
363
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -344,6 +384,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
344
384
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
345
385
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
346
386
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
387
+ readonly Call: import("../user-modules/call.js").CallConstructor;
347
388
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
348
389
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
349
390
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -375,7 +416,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
375
416
  __memory?: import("memory-card").MemoryCard | undefined;
376
417
  readonly memory: import("memory-card").MemoryCard;
377
418
  __options: WechatyOptions;
378
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
419
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
379
420
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
380
421
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
381
422
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -410,7 +451,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
410
451
  readonly memory: import("memory-card").MemoryCard;
411
452
  __options: WechatyOptions;
412
453
  init(): Promise<void>;
413
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
454
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
414
455
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
415
456
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
416
457
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -431,6 +472,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
431
472
  }) & {
432
473
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
433
474
  }) & ((abstract new (...args: any[]) => {
475
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
434
476
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
435
477
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
436
478
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -457,6 +499,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
457
499
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
458
500
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
459
501
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
502
+ readonly Call: import("../user-modules/call.js").CallConstructor;
460
503
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
461
504
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
462
505
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -491,7 +534,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
491
534
  __options: WechatyOptions;
492
535
  start(): Promise<void>;
493
536
  stop(): Promise<void>;
494
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
537
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
495
538
  addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
496
539
  once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
497
540
  prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
@@ -521,7 +564,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
521
564
  init(): Promise<void>;
522
565
  start(): Promise<void>;
523
566
  stop(): Promise<void>;
524
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
567
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
525
568
  addListener<E_46 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_46, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_46]): any;
526
569
  once<E_47 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_47, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_47]): any;
527
570
  prependListener<E_48 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_48, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_48]): any;
@@ -671,6 +714,22 @@ declare class WechatyBase extends mixinBase implements SayableSayer {
671
714
  * await bot.say(miniPayload)
672
715
  */
673
716
  say(sayable: Sayable): Promise<void>;
717
+ /**
718
+ * Initiate an outgoing call to one or more contacts.
719
+ *
720
+ * Mints a protocol-side callId via `puppet.callInvite`, hydrates the Call
721
+ * payload, and registers the Call in the in-process pool. Returns immediately
722
+ * (status: 'calling'); listen to call events for lifecycle updates.
723
+ *
724
+ * @example
725
+ * import * as PUPPET from '@juzi/wechaty-puppet'
726
+ * const call = await bot.call([contactA, contactB], { media: PUPPET.types.CallMediaType.Video })
727
+ * call.on('accept', actor => console.log('accepted by', actor.name()))
728
+ * call.on('ended', () => console.log('call session ended'))
729
+ */
730
+ call(contacts: ContactInterface[], options?: {
731
+ media?: PUPPET.types.CallMediaType;
732
+ }): Promise<CallInterface>;
674
733
  publish(post: PostInterface): Promise<void | PostInterface>;
675
734
  unpublish(post: PostInterface): Promise<void>;
676
735
  enterVerifyCode(id: string, code: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAQ9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAWtD,OAAO,EACL,eAAe,EAChB,MAAkC,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAkC,mBAAmB,CAAA;AACtD,OAAO,KAAK,EACV,cAAc,EACf,MAAkC,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AYG;IACG,IAAI,CACR,QAAQ,EAAE,gBAAgB,EAAE,EAC5B,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,aAAa,CAAA;KAAE,GAC/C,OAAO,CAAC,aAAa,CAAC;IAqBnB,OAAO,CACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,GAAG,aAAa,CAAC;IAY1B,SAAS,CACb,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC;IAYV,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAMV,gBAAgB,CACpB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAMV,aAAa,IAChB,OAAO,CAAC,IAAI,CAAC;CAUjB;AAED,aAAK,4BAA4B,GAE7B,oBAAoB,GACpB,gCAAgC,GAChC,SAAS,GACT,SAAS,GACT,QAAQ,CAAA;AAEZ,YAAY,EACV,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -232,6 +232,34 @@ class WechatyBase extends mixinBase {
232
232
  config_js_1.log.verbose('Wechaty', 'say(%s)', sayable);
233
233
  await this.currentUser.say(sayable);
234
234
  }
235
+ /**
236
+ * Initiate an outgoing call to one or more contacts.
237
+ *
238
+ * Mints a protocol-side callId via `puppet.callInvite`, hydrates the Call
239
+ * payload, and registers the Call in the in-process pool. Returns immediately
240
+ * (status: 'calling'); listen to call events for lifecycle updates.
241
+ *
242
+ * @example
243
+ * import * as PUPPET from '@juzi/wechaty-puppet'
244
+ * const call = await bot.call([contactA, contactB], { media: PUPPET.types.CallMediaType.Video })
245
+ * call.on('accept', actor => console.log('accepted by', actor.name()))
246
+ * call.on('ended', () => console.log('call session ended'))
247
+ */
248
+ async call(contacts, options) {
249
+ config_js_1.log.verbose('Wechaty', 'call(%d contacts, %s)', contacts.length, JSON.stringify(options ?? {}));
250
+ if (contacts.length === 0) {
251
+ throw new Error('Wechaty.call() requires at least one contact');
252
+ }
253
+ const media = options?.media ?? PUPPET.types.CallMediaType.Audio;
254
+ const callId = await this.puppet.callInvite(contacts.map(c => c.id), media);
255
+ const call = new this.Call({
256
+ id: callId,
257
+ direction: 'outgoing',
258
+ });
259
+ await call.ready();
260
+ this.__callPool.set(callId, call);
261
+ return call;
262
+ }
235
263
  async publish(post) {
236
264
  config_js_1.log.verbose('Wechaty', 'publish(%s)', post.payload.sayableList
237
265
  .map(s => s.type).join(','));
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-base.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,+CAE2C;AAC3C,iCAAsC;AACtC,6DAA8C;AAE9C,4CAI2C;AAM3C,qDAQ6D;AAE7D,+DAE0D;AAS1D,MAAM,SAAS,GAAG,gBAAE,CAAC,IAAI,CACvB,qCAAe,EACf,oBAAW,EACX,iCAAwB,EACxB,gBAAO,EACP,oBAAW,EACX,mBAAU,EACV,kBAAS,EACT,oBAAW;AACX;;;;;;GAMG;AACH,IAAA,8BAAe,EAAC,SAAS,EAAE,EAAE,GAAG,EAAH,eAAG,EAAE,CAAC,CACpC,CAAA;AAED;;;;GAIG;AACH,yDAAyD;AACzD,iBAAiB;AACjB,mBAAmB;AACnB,kCAAkC;AAClC,uBAAuB;AACvB,6BAA6B;AAC7B,aAAa;AACb,WAAW;AACX,SAAS;AACT,OAAO;AACP,IAAI;AAEJ;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAY,SAAQ,SAAS;IAmDtB;IAjDX,MAAM,CAAqB,OAAO,GAAG,mBAAO,CAAA;IACnC,OAAO,CAAmB;IAE1B,iBAAiB,GAAmB,EAAE,CAAA;IAE/C;;;;;;;;;;;;;;;;;;;OAmBG;IAEH;;;;;;;;;;;;;;;OAeG;I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,CAAC,CAAA;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAA;IACzC,CAAC;IAED,KAAK,CAAC,aAAa;QAEjB,eAAG,CAAC,OAAO,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;QAE3C,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAA;SAC9D;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAA;IACpC,CAAC;;AAgBD,kCAAW"}
@@ -29,6 +29,7 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
29
29
  ConsultCard;
30
30
  PremiumOnlineAppointmentCard;
31
31
  Moment;
32
+ Call;
32
33
  CallRecord;
33
34
  ChatHistory;
34
35
  Wecom;
@@ -58,14 +59,15 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
58
59
  = this.ConsultCard
59
60
  = this.PremiumOnlineAppointmentCard
60
61
  = this.Moment
61
- = this.CallRecord
62
- = this.ChatHistory
63
- = this.Wecom
64
- = this.DouyinOneClickPhoneCollection
65
- = this.ImSpecific
66
- = this.WxxdProduct
67
- = this.WxxdOrder
68
- = {};
62
+ = this.Call
63
+ = this.CallRecord
64
+ = this.ChatHistory
65
+ = this.Wecom
66
+ = this.DouyinOneClickPhoneCollection
67
+ = this.ImSpecific
68
+ = this.WxxdProduct
69
+ = this.WxxdOrder
70
+ = {};
69
71
  }
70
72
  }
71
73
  const WechatyTest = WechatyImplementation;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AAgClE,uDAMgD;AAEhD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,uCAAmB;Q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AU;kHACf,IAAI,CAAC,WAAW;sHAChB,IAAI,CAAC,SAAS;0HACd,EAAS,CAAA;QACf,CAAC;KA8BF;IAED,MAAM,WAAW,GAAG,qBAAsD,CAAA;IAC1E,MAAM,CAAC,GAAqB,IAAI,WAAW,EAAE,CAAA;IAC7C,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,GAAqB,EAAE,EAAE;QACxC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;IAEF,CAAC,CAAC,EAAE,CAAC,OAAO,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA;AAEF,2CAA2C;AAC3C,gCAAgC;AAChC,wCAAwC;AAExC,2FAA2F;AAC3F,qEAAqE;AAErE,uCAAuC;AACvC,kFAAkF;AAClF,KAAK;AAEL,IAAA,aAAI,EAAC,+BAA+B,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9C,MAAM,MAAM,GAAI,IAAI,6BAAU,EAAS,CAAA;IACvC,MAAM,OAAO,GAAG,IAAI,6BAAW,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAC3C,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAA;IAEtF,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,yDAAyD,CAAC,CAAA;IAC/F,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AACpF,CAAC,CAAC,CAAA"}
@@ -27,7 +27,7 @@ declare const gErrorMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase:
27
27
  init(): Promise<void>;
28
28
  start(): Promise<void>;
29
29
  stop(): Promise<void>;
30
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
30
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
31
31
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
32
32
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
33
33
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -18,7 +18,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
18
18
  init(): Promise<void>;
19
19
  start(): Promise<void>;
20
20
  stop(): Promise<void>;
21
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
21
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
22
22
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
23
23
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
24
24
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -47,7 +47,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
47
47
  readonly memory: import("memory-card").MemoryCard;
48
48
  __options: WechatyOptions;
49
49
  init(): Promise<void>;
50
- on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
50
+ on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
51
51
  addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
52
52
  once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
53
53
  prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;