@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
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ACS,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,GAC3B,CAAA;AACD,OAAO,EACL,SAAS,GACV,CAAA"}
@@ -15,7 +15,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
15
15
  init(): Promise<void>;
16
16
  start(): Promise<void>;
17
17
  stop(): Promise<void>;
18
- 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;
18
+ 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;
19
19
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
20
20
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
21
21
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -65,7 +65,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
65
65
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
66
66
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
67
67
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
68
- 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;
68
+ 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;
69
69
  addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
70
70
  once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
71
71
  prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
@@ -82,12 +82,15 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
82
82
  setMaxListeners(maxListeners: number): any;
83
83
  __events: import("../schemas/wechaty-events.js").WechatyEventListeners;
84
84
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
85
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
85
86
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
86
87
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
87
88
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
88
89
  __puppetMixinInited: boolean;
89
90
  ready(): Promise<void>;
90
91
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
92
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
93
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
91
94
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
92
95
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
93
96
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -96,6 +99,9 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
96
99
  __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
97
100
  __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
98
101
  __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
102
+ /**
103
+ * Return the function to uninstall all plugins
104
+ */
99
105
  __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
100
106
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
101
107
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
@@ -114,6 +120,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
114
120
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
115
121
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
116
122
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
123
+ readonly Call: import("../user-modules/call.js").CallConstructor;
117
124
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
118
125
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
119
126
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -149,6 +156,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
149
156
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
150
157
  }) & ((abstract new (...args: any[]) => {
151
158
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
159
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
152
160
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
153
161
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
154
162
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
@@ -158,6 +166,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
158
166
  ready(): Promise<void>;
159
167
  init(): Promise<void>;
160
168
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
169
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
170
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
161
171
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
162
172
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
163
173
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -166,6 +176,9 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
166
176
  __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
167
177
  __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
168
178
  __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
179
+ /**
180
+ * Return the function to uninstall all plugins
181
+ */
169
182
  __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
170
183
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
171
184
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
@@ -184,6 +197,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
184
197
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
185
198
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
186
199
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
200
+ readonly Call: import("../user-modules/call.js").CallConstructor;
187
201
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
188
202
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
189
203
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -215,7 +229,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
215
229
  __memory?: import("memory-card").MemoryCard | undefined;
216
230
  readonly memory: import("memory-card").MemoryCard;
217
231
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
218
- 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;
232
+ 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;
219
233
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
220
234
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
221
235
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -239,6 +253,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
239
253
  }) & {
240
254
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
241
255
  }) & ((abstract new (...args: any[]) => {
256
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
242
257
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
243
258
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
244
259
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -247,6 +262,9 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
247
262
  __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
248
263
  __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
249
264
  __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
265
+ /**
266
+ * Return the function to uninstall all plugins
267
+ */
250
268
  __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
251
269
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
252
270
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
@@ -265,6 +283,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
265
283
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
266
284
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
267
285
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
286
+ readonly Call: import("../user-modules/call.js").CallConstructor;
268
287
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
269
288
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
270
289
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -299,7 +318,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
299
318
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
300
319
  start(): Promise<void>;
301
320
  stop(): Promise<void>;
302
- 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;
321
+ 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;
303
322
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
304
323
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
305
324
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -329,7 +348,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
329
348
  readonly memory: import("memory-card").MemoryCard;
330
349
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
331
350
  init(): Promise<void>;
332
- 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;
351
+ 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;
333
352
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
334
353
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
335
354
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -378,7 +397,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
378
397
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
379
398
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
380
399
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
381
- 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;
400
+ 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;
382
401
  addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
383
402
  once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
384
403
  prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
@@ -421,12 +440,15 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
421
440
  sleep(milliseconds: number): Promise<void>;
422
441
  ding(data?: string | undefined): void;
423
442
  __puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
443
+ __callPool: Map<string, import("../user-modules/call.js").CallImpl>;
424
444
  readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
425
445
  readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
426
446
  __loginIndicator: import("state-switch/dist/esm/src/boolean-indicator.js").BooleanIndicator;
427
447
  __puppetMixinInited: boolean;
428
448
  ready(): Promise<void>;
429
449
  __setupPuppetEvents(puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface): void;
450
+ __finalizeIfEnded(call: import("../user-modules/call.js").CallImpl, force?: boolean): Promise<void>;
451
+ __wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
430
452
  __wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
431
453
  __wechatifiedContactSelf?: import("../user-modules/contact-self.js").ContactSelfConstructor | undefined;
432
454
  __wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
@@ -435,6 +457,9 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
435
457
  __wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
436
458
  __wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
437
459
  __wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
460
+ /**
461
+ * Return the function to uninstall all plugins
462
+ */
438
463
  __wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
439
464
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
440
465
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
@@ -453,6 +478,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
453
478
  __wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
454
479
  __wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
455
480
  __wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
481
+ readonly Call: import("../user-modules/call.js").CallConstructor;
456
482
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
457
483
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
458
484
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/plugin-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAkC,cAAc,CAAA;AAKjD,OAAO,KAAK,EACV,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