@juzi/wechaty 1.0.146 → 1.0.148

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 (131) 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/mod.d.ts +5 -4
  34. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  35. package/dist/cjs/src/user-modules/mod.js +2 -1
  36. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  37. package/dist/cjs/src/wechaty/wechaty-base.d.ts +66 -7
  38. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  39. package/dist/cjs/src/wechaty/wechaty-base.js +28 -0
  40. package/dist/cjs/src/wechaty/wechaty-base.js.map +1 -1
  41. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +10 -8
  42. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  43. package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  44. package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
  45. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +15 -5
  46. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  47. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +15 -5
  48. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  49. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +32 -6
  50. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  51. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +39 -5
  52. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  53. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +149 -0
  54. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  55. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  56. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  57. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  58. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  59. package/dist/esm/src/mods/impls.d.ts +2 -2
  60. package/dist/esm/src/mods/impls.d.ts.map +1 -1
  61. package/dist/esm/src/mods/impls.js +1 -1
  62. package/dist/esm/src/mods/impls.js.map +1 -1
  63. package/dist/esm/src/mods/users.d.ts +2 -1
  64. package/dist/esm/src/mods/users.d.ts.map +1 -1
  65. package/dist/esm/src/package-json.js +4 -4
  66. package/dist/esm/src/package-json.js.map +1 -1
  67. package/dist/esm/src/schemas/call-events.d.ts +20 -0
  68. package/dist/esm/src/schemas/call-events.d.ts.map +1 -0
  69. package/dist/esm/src/schemas/call-events.js +4 -0
  70. package/dist/esm/src/schemas/call-events.js.map +1 -0
  71. package/dist/esm/src/schemas/mod.d.ts +3 -2
  72. package/dist/esm/src/schemas/mod.d.ts.map +1 -1
  73. package/dist/esm/src/schemas/mod.js +2 -1
  74. package/dist/esm/src/schemas/mod.js.map +1 -1
  75. package/dist/esm/src/schemas/wechaty-events.d.ts +23 -2
  76. package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
  77. package/dist/esm/src/schemas/wechaty-events.js +6 -0
  78. package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
  79. package/dist/esm/src/user-modules/call.d.ts +158 -0
  80. package/dist/esm/src/user-modules/call.d.ts.map +1 -1
  81. package/dist/esm/src/user-modules/call.js +289 -1
  82. package/dist/esm/src/user-modules/call.js.map +1 -1
  83. package/dist/esm/src/user-modules/call.spec.d.ts +7 -0
  84. package/dist/esm/src/user-modules/call.spec.d.ts.map +1 -0
  85. package/dist/esm/src/user-modules/call.spec.js +734 -0
  86. package/dist/esm/src/user-modules/call.spec.js.map +1 -0
  87. package/dist/esm/src/user-modules/contact.d.ts +16 -0
  88. package/dist/esm/src/user-modules/contact.d.ts.map +1 -1
  89. package/dist/esm/src/user-modules/contact.js +16 -0
  90. package/dist/esm/src/user-modules/contact.js.map +1 -1
  91. package/dist/esm/src/user-modules/mod.d.ts +5 -4
  92. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  93. package/dist/esm/src/user-modules/mod.js +2 -2
  94. package/dist/esm/src/user-modules/mod.js.map +1 -1
  95. package/dist/esm/src/wechaty/wechaty-base.d.ts +66 -7
  96. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  97. package/dist/esm/src/wechaty/wechaty-base.js +28 -0
  98. package/dist/esm/src/wechaty/wechaty-base.js.map +1 -1
  99. package/dist/esm/src/wechaty/wechaty-impl.spec.js +10 -8
  100. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  101. package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  102. package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
  103. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +15 -5
  104. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  105. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +15 -5
  106. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  107. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +32 -6
  108. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  109. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +39 -5
  110. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  111. package/dist/esm/src/wechaty-mixins/puppet-mixin.js +149 -0
  112. package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  113. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  114. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  115. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  116. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  117. package/package.json +3 -3
  118. package/src/mods/impls.ts +2 -0
  119. package/src/mods/users.ts +6 -0
  120. package/src/package-json.ts +4 -4
  121. package/src/schemas/call-events.ts +35 -0
  122. package/src/schemas/mod.ts +6 -0
  123. package/src/schemas/wechaty-events.ts +28 -0
  124. package/src/user-modules/call.spec.ts +929 -0
  125. package/src/user-modules/call.ts +373 -0
  126. package/src/user-modules/contact.ts +18 -0
  127. package/src/user-modules/mod.ts +11 -0
  128. package/src/wechaty/wechaty-base.ts +40 -1
  129. package/src/wechaty/wechaty-impl.spec.ts +4 -0
  130. package/src/wechaty-mixins/puppet-mixin.ts +184 -0
  131. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -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;IAEH;;;;OAIG;IACH,YACW,YAA4B,EAAE;QAEvC,KAAK,CAAC,SAAS,CAAC,CAAA;QAFP,cAAS,GAAT,SAAS,CAAqB;QAGvC,eAAG,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAEvC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAA;QACrC,IAAI,CAAC,OAAO,GAAI,IAAI,CAAA;I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,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;QAE9D,OAAO,CAA2C;QAClD,WAAW,CAA2C;QACtD,KAAK,CAA2C;QAChD,UAAU,CAA2C;QACrD,KAAK,CAA2C;QAChD,QAAQ,CAA2C;QACnD,OAAO,CAA2C;QAClD,WAAW,CAA2C;QACtD,IAAI,CAA2C;QAC/C,IAAI,CAA2C;QAC/C,cAAc,CAA2C;QACzD,GAAG,CAA2C;QAC9C,QAAQ,CAA2C;QACnD,OAAO,CAA2C;QACl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I,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;
@@ -2,6 +2,7 @@ import type { ContactSelfInterface } from '../user-modules/mod.js';
2
2
  import type { WechatySkeleton } from '../wechaty/mod.js';
3
3
  declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract new (...args: any[]) => {
4
4
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
5
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
5
6
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
6
7
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
7
8
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
@@ -11,6 +12,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
11
12
  ready(): Promise<void>;
12
13
  init(): Promise<void>;
13
14
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
15
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
16
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
14
17
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
15
18
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
16
19
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -37,6 +40,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
37
40
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
38
41
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
39
42
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
43
+ readonly Call: import("../user-modules/call.js").CallConstructor;
40
44
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
41
45
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
42
46
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -68,7 +72,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
68
72
  __memory?: import("memory-card").MemoryCard | undefined;
69
73
  readonly memory: import("memory-card").MemoryCard;
70
74
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
71
- 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;
75
+ 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;
72
76
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
73
77
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
74
78
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -92,6 +96,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
92
96
  }) & {
93
97
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
94
98
  }) & ((abstract new (...args: any[]) => {
99
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
95
100
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
96
101
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
97
102
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -118,6 +123,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
118
123
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
119
124
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
120
125
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
126
+ readonly Call: import("../user-modules/call.js").CallConstructor;
121
127
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
122
128
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
123
129
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -152,7 +158,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
152
158
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
153
159
  start(): Promise<void>;
154
160
  stop(): Promise<void>;
155
- 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;
161
+ 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;
156
162
  addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
157
163
  once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
158
164
  prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
@@ -182,7 +188,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
182
188
  init(): Promise<void>;
183
189
  start(): Promise<void>;
184
190
  stop(): Promise<void>;
185
- 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;
191
+ 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;
186
192
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
187
193
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
188
194
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -211,7 +217,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
211
217
  readonly memory: import("memory-card").MemoryCard;
212
218
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
213
219
  init(): Promise<void>;
214
- 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;
220
+ 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;
215
221
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
216
222
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
217
223
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -280,7 +286,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
280
286
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
281
287
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
282
288
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
283
- 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;
289
+ 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;
284
290
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
285
291
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
286
292
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -297,12 +303,15 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
297
303
  setMaxListeners(maxListeners: number): any;
298
304
  __events: import("../schemas/wechaty-events.js").WechatyEventListeners;
299
305
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
306
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
300
307
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
301
308
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
302
309
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
303
310
  __puppetMixinInited: boolean;
304
311
  ready(): Promise<void>;
305
312
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
313
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
314
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
306
315
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
307
316
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
308
317
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -329,6 +338,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
329
338
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
330
339
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
331
340
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
341
+ readonly Call: import("../user-modules/call.js").CallConstructor;
332
342
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
333
343
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
334
344
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAgDU,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;oBACoB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAK7C;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;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5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import type { WechatySkeleton } from '../wechaty/mod.js';
2
2
  declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract new (...args: any[]) => {
3
3
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
4
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
4
5
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
5
6
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
6
7
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
@@ -10,6 +11,8 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
10
11
  ready(): Promise<void>;
11
12
  init(): Promise<void>;
12
13
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
14
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
15
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
13
16
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
14
17
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
15
18
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -36,6 +39,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
36
39
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
37
40
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
38
41
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
42
+ readonly Call: import("../user-modules/call.js").CallConstructor;
39
43
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
40
44
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
41
45
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -67,7 +71,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
67
71
  __memory?: import("memory-card").MemoryCard | undefined;
68
72
  readonly memory: import("memory-card").MemoryCard;
69
73
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
70
- 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;
74
+ 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;
71
75
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
72
76
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
73
77
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -93,6 +97,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
93
97
  }) & {
94
98
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
95
99
  }) & ((abstract new (...args: any[]) => {
100
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
96
101
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
97
102
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
98
103
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -119,6 +124,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
119
124
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
120
125
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
121
126
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
127
+ readonly Call: import("../user-modules/call.js").CallConstructor;
122
128
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
123
129
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
124
130
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -153,7 +159,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
153
159
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
154
160
  start(): Promise<void>;
155
161
  stop(): Promise<void>;
156
- 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;
162
+ 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;
157
163
  addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
158
164
  once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
159
165
  prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
@@ -185,7 +191,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
185
191
  init(): Promise<void>;
186
192
  start(): Promise<void>;
187
193
  stop(): Promise<void>;
188
- 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;
194
+ 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;
189
195
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
190
196
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
191
197
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -216,7 +222,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
216
222
  readonly memory: import("memory-card").MemoryCard;
217
223
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
218
224
  init(): Promise<void>;
219
- 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;
225
+ 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;
220
226
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
221
227
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
222
228
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -274,7 +280,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
274
280
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
275
281
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
276
282
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
277
- 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;
283
+ 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;
278
284
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
279
285
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
280
286
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -293,12 +299,15 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
293
299
  */
294
300
  __events: import("../schemas/wechaty-events.js").WechatyEventListeners;
295
301
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
302
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
296
303
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
297
304
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
298
305
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
299
306
  __puppetMixinInited: boolean;
300
307
  ready(): Promise<void>;
301
308
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
309
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
310
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
302
311
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
303
312
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
304
313
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -325,6 +334,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
325
334
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
326
335
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
327
336
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
337
+ readonly Call: import("../user-modules/call.js").CallConstructor;
328
338
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
329
339
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
330
340
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"misc-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/misc-mixin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAQ,mBAAmB,CAAA;AAK1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;sDApDmB,GAAG,EAAE;IAI3B;;OAEG;;IAcH;;;OAGG;;IAKH;;;;;;;;OAQG;eACS,MAAM;IAIlB;;OAEG;wBACwB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAMjD;;OAEG;gBACU,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;gDAH1B;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcN,CAAA;AAED,aAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAE7C,aAAK,0BAA0B,GAAG,KAAK,CAAA;AAEvC,YAAY,EACV,SAAS,EACT,0BAA0B,G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