@juzi/wechaty-grpc 1.0.100 → 1.0.102

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 (68) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +3 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +4 -1
  3. package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +361 -0
  4. package/dist/cjs/out/wechaty/puppet/call_pb.js +2869 -79
  5. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  6. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  7. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +790 -0
  8. package/dist/cjs/out/wechaty/puppet/message_pb.js +8111 -1783
  9. package/dist/cjs/out/wechaty/puppet.openapi.yaml +783 -25
  10. package/dist/cjs/out/wechaty/puppet.swagger.json +1158 -18
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +290 -0
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +563 -0
  13. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  15. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +324 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.js +693 -12
  17. package/dist/cjs/proto/wechaty/puppet/base.proto +4 -0
  18. package/dist/cjs/proto/wechaty/puppet/call.proto +101 -1
  19. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  20. package/dist/cjs/proto/wechaty/puppet/message.proto +127 -0
  21. package/dist/cjs/proto/wechaty/puppet.proto +103 -0
  22. package/dist/cjs/src/package-json.js +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  24. package/dist/cjs/tests/puppet-server-impl.js +85 -0
  25. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  26. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +3 -0
  27. package/dist/esm/out/wechaty/puppet/base_pb.js +4 -1
  28. package/dist/esm/out/wechaty/puppet/call_pb.d.ts +361 -0
  29. package/dist/esm/out/wechaty/puppet/call_pb.js +2869 -79
  30. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  31. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  32. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +790 -0
  33. package/dist/esm/out/wechaty/puppet/message_pb.js +8111 -1783
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +783 -25
  35. package/dist/esm/out/wechaty/puppet.swagger.json +1158 -18
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +290 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +563 -0
  38. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  39. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +324 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +693 -12
  42. package/dist/esm/proto/wechaty/puppet/base.proto +4 -0
  43. package/dist/esm/proto/wechaty/puppet/call.proto +101 -1
  44. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  45. package/dist/esm/proto/wechaty/puppet/message.proto +127 -0
  46. package/dist/esm/proto/wechaty/puppet.proto +103 -0
  47. package/dist/esm/src/package-json.js +1 -1
  48. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  49. package/dist/esm/tests/puppet-server-impl.js +85 -0
  50. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  51. package/out/wechaty/puppet/base_pb.d.ts +3 -0
  52. package/out/wechaty/puppet/base_pb.js +4 -1
  53. package/out/wechaty/puppet/call_pb.d.ts +361 -0
  54. package/out/wechaty/puppet/call_pb.js +2869 -79
  55. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  56. package/out/wechaty/puppet/event_pb.js +2 -1
  57. package/out/wechaty/puppet/message_pb.d.ts +790 -0
  58. package/out/wechaty/puppet/message_pb.js +8111 -1783
  59. package/out/wechaty/puppet.openapi.yaml +783 -25
  60. package/out/wechaty/puppet.swagger.json +1158 -18
  61. package/out/wechaty/puppet_grpc_pb.d.ts +290 -0
  62. package/out/wechaty/puppet_grpc_pb.js +563 -0
  63. package/out/wechaty/puppet_pb.d.ts +1 -0
  64. package/out/wechaty/puppet_pb.js +2 -0
  65. package/out/wechaty/puppet_pb_service.d.ts +324 -0
  66. package/out/wechaty/puppet_pb_service.js +693 -12
  67. package/package.json +1 -1
  68. package/src/package-json.ts +1 -1
@@ -17,6 +17,7 @@ var grpc = require('@grpc/grpc-js');
17
17
  var google_api_annotations_pb = require('../google/api/annotations_pb.js');
18
18
  var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapiv2/options/annotations_pb.js');
19
19
  var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
20
+ var wechaty_puppet_call_pb = require('../wechaty/puppet/call_pb.js');
20
21
  var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
21
22
  var wechaty_puppet_download$upload_pb = require('../wechaty/puppet/download-upload_pb.js');
22
23
  var wechaty_puppet_event_pb = require('../wechaty/puppet/event_pb.js');
@@ -98,6 +99,182 @@ function deserialize_wechaty_puppet_BatchRoomMemberPayloadResponse(buffer_arg) {
98
99
  return wechaty_puppet_room$member_pb.BatchRoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
99
100
  }
100
101
 
102
+ function serialize_wechaty_puppet_CallAcceptRequest(arg) {
103
+ if (!(arg instanceof wechaty_puppet_call_pb.CallAcceptRequest)) {
104
+ throw new Error('Expected argument of type wechaty.puppet.CallAcceptRequest');
105
+ }
106
+ return Buffer.from(arg.serializeBinary());
107
+ }
108
+
109
+ function deserialize_wechaty_puppet_CallAcceptRequest(buffer_arg) {
110
+ return wechaty_puppet_call_pb.CallAcceptRequest.deserializeBinary(new Uint8Array(buffer_arg));
111
+ }
112
+
113
+ function serialize_wechaty_puppet_CallAcceptResponse(arg) {
114
+ if (!(arg instanceof wechaty_puppet_call_pb.CallAcceptResponse)) {
115
+ throw new Error('Expected argument of type wechaty.puppet.CallAcceptResponse');
116
+ }
117
+ return Buffer.from(arg.serializeBinary());
118
+ }
119
+
120
+ function deserialize_wechaty_puppet_CallAcceptResponse(buffer_arg) {
121
+ return wechaty_puppet_call_pb.CallAcceptResponse.deserializeBinary(new Uint8Array(buffer_arg));
122
+ }
123
+
124
+ function serialize_wechaty_puppet_CallAddRequest(arg) {
125
+ if (!(arg instanceof wechaty_puppet_call_pb.CallAddRequest)) {
126
+ throw new Error('Expected argument of type wechaty.puppet.CallAddRequest');
127
+ }
128
+ return Buffer.from(arg.serializeBinary());
129
+ }
130
+
131
+ function deserialize_wechaty_puppet_CallAddRequest(buffer_arg) {
132
+ return wechaty_puppet_call_pb.CallAddRequest.deserializeBinary(new Uint8Array(buffer_arg));
133
+ }
134
+
135
+ function serialize_wechaty_puppet_CallAddResponse(arg) {
136
+ if (!(arg instanceof wechaty_puppet_call_pb.CallAddResponse)) {
137
+ throw new Error('Expected argument of type wechaty.puppet.CallAddResponse');
138
+ }
139
+ return Buffer.from(arg.serializeBinary());
140
+ }
141
+
142
+ function deserialize_wechaty_puppet_CallAddResponse(buffer_arg) {
143
+ return wechaty_puppet_call_pb.CallAddResponse.deserializeBinary(new Uint8Array(buffer_arg));
144
+ }
145
+
146
+ function serialize_wechaty_puppet_CallCancelRequest(arg) {
147
+ if (!(arg instanceof wechaty_puppet_call_pb.CallCancelRequest)) {
148
+ throw new Error('Expected argument of type wechaty.puppet.CallCancelRequest');
149
+ }
150
+ return Buffer.from(arg.serializeBinary());
151
+ }
152
+
153
+ function deserialize_wechaty_puppet_CallCancelRequest(buffer_arg) {
154
+ return wechaty_puppet_call_pb.CallCancelRequest.deserializeBinary(new Uint8Array(buffer_arg));
155
+ }
156
+
157
+ function serialize_wechaty_puppet_CallCancelResponse(arg) {
158
+ if (!(arg instanceof wechaty_puppet_call_pb.CallCancelResponse)) {
159
+ throw new Error('Expected argument of type wechaty.puppet.CallCancelResponse');
160
+ }
161
+ return Buffer.from(arg.serializeBinary());
162
+ }
163
+
164
+ function deserialize_wechaty_puppet_CallCancelResponse(buffer_arg) {
165
+ return wechaty_puppet_call_pb.CallCancelResponse.deserializeBinary(new Uint8Array(buffer_arg));
166
+ }
167
+
168
+ function serialize_wechaty_puppet_CallHangupRequest(arg) {
169
+ if (!(arg instanceof wechaty_puppet_call_pb.CallHangupRequest)) {
170
+ throw new Error('Expected argument of type wechaty.puppet.CallHangupRequest');
171
+ }
172
+ return Buffer.from(arg.serializeBinary());
173
+ }
174
+
175
+ function deserialize_wechaty_puppet_CallHangupRequest(buffer_arg) {
176
+ return wechaty_puppet_call_pb.CallHangupRequest.deserializeBinary(new Uint8Array(buffer_arg));
177
+ }
178
+
179
+ function serialize_wechaty_puppet_CallHangupResponse(arg) {
180
+ if (!(arg instanceof wechaty_puppet_call_pb.CallHangupResponse)) {
181
+ throw new Error('Expected argument of type wechaty.puppet.CallHangupResponse');
182
+ }
183
+ return Buffer.from(arg.serializeBinary());
184
+ }
185
+
186
+ function deserialize_wechaty_puppet_CallHangupResponse(buffer_arg) {
187
+ return wechaty_puppet_call_pb.CallHangupResponse.deserializeBinary(new Uint8Array(buffer_arg));
188
+ }
189
+
190
+ function serialize_wechaty_puppet_CallInviteRequest(arg) {
191
+ if (!(arg instanceof wechaty_puppet_call_pb.CallInviteRequest)) {
192
+ throw new Error('Expected argument of type wechaty.puppet.CallInviteRequest');
193
+ }
194
+ return Buffer.from(arg.serializeBinary());
195
+ }
196
+
197
+ function deserialize_wechaty_puppet_CallInviteRequest(buffer_arg) {
198
+ return wechaty_puppet_call_pb.CallInviteRequest.deserializeBinary(new Uint8Array(buffer_arg));
199
+ }
200
+
201
+ function serialize_wechaty_puppet_CallInviteResponse(arg) {
202
+ if (!(arg instanceof wechaty_puppet_call_pb.CallInviteResponse)) {
203
+ throw new Error('Expected argument of type wechaty.puppet.CallInviteResponse');
204
+ }
205
+ return Buffer.from(arg.serializeBinary());
206
+ }
207
+
208
+ function deserialize_wechaty_puppet_CallInviteResponse(buffer_arg) {
209
+ return wechaty_puppet_call_pb.CallInviteResponse.deserializeBinary(new Uint8Array(buffer_arg));
210
+ }
211
+
212
+ function serialize_wechaty_puppet_CallMediaEndpointRequest(arg) {
213
+ if (!(arg instanceof wechaty_puppet_call_pb.CallMediaEndpointRequest)) {
214
+ throw new Error('Expected argument of type wechaty.puppet.CallMediaEndpointRequest');
215
+ }
216
+ return Buffer.from(arg.serializeBinary());
217
+ }
218
+
219
+ function deserialize_wechaty_puppet_CallMediaEndpointRequest(buffer_arg) {
220
+ return wechaty_puppet_call_pb.CallMediaEndpointRequest.deserializeBinary(new Uint8Array(buffer_arg));
221
+ }
222
+
223
+ function serialize_wechaty_puppet_CallMediaEndpointResponse(arg) {
224
+ if (!(arg instanceof wechaty_puppet_call_pb.CallMediaEndpointResponse)) {
225
+ throw new Error('Expected argument of type wechaty.puppet.CallMediaEndpointResponse');
226
+ }
227
+ return Buffer.from(arg.serializeBinary());
228
+ }
229
+
230
+ function deserialize_wechaty_puppet_CallMediaEndpointResponse(buffer_arg) {
231
+ return wechaty_puppet_call_pb.CallMediaEndpointResponse.deserializeBinary(new Uint8Array(buffer_arg));
232
+ }
233
+
234
+ function serialize_wechaty_puppet_CallPayloadRequest(arg) {
235
+ if (!(arg instanceof wechaty_puppet_call_pb.CallPayloadRequest)) {
236
+ throw new Error('Expected argument of type wechaty.puppet.CallPayloadRequest');
237
+ }
238
+ return Buffer.from(arg.serializeBinary());
239
+ }
240
+
241
+ function deserialize_wechaty_puppet_CallPayloadRequest(buffer_arg) {
242
+ return wechaty_puppet_call_pb.CallPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
243
+ }
244
+
245
+ function serialize_wechaty_puppet_CallPayloadResponse(arg) {
246
+ if (!(arg instanceof wechaty_puppet_call_pb.CallPayloadResponse)) {
247
+ throw new Error('Expected argument of type wechaty.puppet.CallPayloadResponse');
248
+ }
249
+ return Buffer.from(arg.serializeBinary());
250
+ }
251
+
252
+ function deserialize_wechaty_puppet_CallPayloadResponse(buffer_arg) {
253
+ return wechaty_puppet_call_pb.CallPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
254
+ }
255
+
256
+ function serialize_wechaty_puppet_CallRejectRequest(arg) {
257
+ if (!(arg instanceof wechaty_puppet_call_pb.CallRejectRequest)) {
258
+ throw new Error('Expected argument of type wechaty.puppet.CallRejectRequest');
259
+ }
260
+ return Buffer.from(arg.serializeBinary());
261
+ }
262
+
263
+ function deserialize_wechaty_puppet_CallRejectRequest(buffer_arg) {
264
+ return wechaty_puppet_call_pb.CallRejectRequest.deserializeBinary(new Uint8Array(buffer_arg));
265
+ }
266
+
267
+ function serialize_wechaty_puppet_CallRejectResponse(arg) {
268
+ if (!(arg instanceof wechaty_puppet_call_pb.CallRejectResponse)) {
269
+ throw new Error('Expected argument of type wechaty.puppet.CallRejectResponse');
270
+ }
271
+ return Buffer.from(arg.serializeBinary());
272
+ }
273
+
274
+ function deserialize_wechaty_puppet_CallRejectResponse(buffer_arg) {
275
+ return wechaty_puppet_call_pb.CallRejectResponse.deserializeBinary(new Uint8Array(buffer_arg));
276
+ }
277
+
101
278
  function serialize_wechaty_puppet_CancelVerifyCodeRequest(arg) {
102
279
  if (!(arg instanceof wechaty_puppet_verify$code_pb.CancelVerifyCodeRequest)) {
103
280
  throw new Error('Expected argument of type wechaty.puppet.CancelVerifyCodeRequest');
@@ -890,6 +1067,204 @@ function deserialize_wechaty_puppet_LogoutResponse(buffer_arg) {
890
1067
  return wechaty_puppet_base_pb.LogoutResponse.deserializeBinary(new Uint8Array(buffer_arg));
891
1068
  }
892
1069
 
1070
+ function serialize_wechaty_puppet_MessageBatchForwardRequest(arg) {
1071
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchForwardRequest)) {
1072
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchForwardRequest');
1073
+ }
1074
+ return Buffer.from(arg.serializeBinary());
1075
+ }
1076
+
1077
+ function deserialize_wechaty_puppet_MessageBatchForwardRequest(buffer_arg) {
1078
+ return wechaty_puppet_message_pb.MessageBatchForwardRequest.deserializeBinary(new Uint8Array(buffer_arg));
1079
+ }
1080
+
1081
+ function serialize_wechaty_puppet_MessageBatchForwardResponse(arg) {
1082
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchForwardResponse)) {
1083
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchForwardResponse');
1084
+ }
1085
+ return Buffer.from(arg.serializeBinary());
1086
+ }
1087
+
1088
+ function deserialize_wechaty_puppet_MessageBatchForwardResponse(buffer_arg) {
1089
+ return wechaty_puppet_message_pb.MessageBatchForwardResponse.deserializeBinary(new Uint8Array(buffer_arg));
1090
+ }
1091
+
1092
+ function serialize_wechaty_puppet_MessageBatchSendChannelCardRequest(arg) {
1093
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest)) {
1094
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendChannelCardRequest');
1095
+ }
1096
+ return Buffer.from(arg.serializeBinary());
1097
+ }
1098
+
1099
+ function deserialize_wechaty_puppet_MessageBatchSendChannelCardRequest(buffer_arg) {
1100
+ return wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest.deserializeBinary(new Uint8Array(buffer_arg));
1101
+ }
1102
+
1103
+ function serialize_wechaty_puppet_MessageBatchSendChannelCardResponse(arg) {
1104
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse)) {
1105
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendChannelCardResponse');
1106
+ }
1107
+ return Buffer.from(arg.serializeBinary());
1108
+ }
1109
+
1110
+ function deserialize_wechaty_puppet_MessageBatchSendChannelCardResponse(buffer_arg) {
1111
+ return wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse.deserializeBinary(new Uint8Array(buffer_arg));
1112
+ }
1113
+
1114
+ function serialize_wechaty_puppet_MessageBatchSendChannelRequest(arg) {
1115
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendChannelRequest)) {
1116
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendChannelRequest');
1117
+ }
1118
+ return Buffer.from(arg.serializeBinary());
1119
+ }
1120
+
1121
+ function deserialize_wechaty_puppet_MessageBatchSendChannelRequest(buffer_arg) {
1122
+ return wechaty_puppet_message_pb.MessageBatchSendChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
1123
+ }
1124
+
1125
+ function serialize_wechaty_puppet_MessageBatchSendChannelResponse(arg) {
1126
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendChannelResponse)) {
1127
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendChannelResponse');
1128
+ }
1129
+ return Buffer.from(arg.serializeBinary());
1130
+ }
1131
+
1132
+ function deserialize_wechaty_puppet_MessageBatchSendChannelResponse(buffer_arg) {
1133
+ return wechaty_puppet_message_pb.MessageBatchSendChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
1134
+ }
1135
+
1136
+ function serialize_wechaty_puppet_MessageBatchSendContactRequest(arg) {
1137
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendContactRequest)) {
1138
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendContactRequest');
1139
+ }
1140
+ return Buffer.from(arg.serializeBinary());
1141
+ }
1142
+
1143
+ function deserialize_wechaty_puppet_MessageBatchSendContactRequest(buffer_arg) {
1144
+ return wechaty_puppet_message_pb.MessageBatchSendContactRequest.deserializeBinary(new Uint8Array(buffer_arg));
1145
+ }
1146
+
1147
+ function serialize_wechaty_puppet_MessageBatchSendContactResponse(arg) {
1148
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendContactResponse)) {
1149
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendContactResponse');
1150
+ }
1151
+ return Buffer.from(arg.serializeBinary());
1152
+ }
1153
+
1154
+ function deserialize_wechaty_puppet_MessageBatchSendContactResponse(buffer_arg) {
1155
+ return wechaty_puppet_message_pb.MessageBatchSendContactResponse.deserializeBinary(new Uint8Array(buffer_arg));
1156
+ }
1157
+
1158
+ function serialize_wechaty_puppet_MessageBatchSendFileRequest(arg) {
1159
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendFileRequest)) {
1160
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendFileRequest');
1161
+ }
1162
+ return Buffer.from(arg.serializeBinary());
1163
+ }
1164
+
1165
+ function deserialize_wechaty_puppet_MessageBatchSendFileRequest(buffer_arg) {
1166
+ return wechaty_puppet_message_pb.MessageBatchSendFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
1167
+ }
1168
+
1169
+ function serialize_wechaty_puppet_MessageBatchSendFileResponse(arg) {
1170
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendFileResponse)) {
1171
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendFileResponse');
1172
+ }
1173
+ return Buffer.from(arg.serializeBinary());
1174
+ }
1175
+
1176
+ function deserialize_wechaty_puppet_MessageBatchSendFileResponse(buffer_arg) {
1177
+ return wechaty_puppet_message_pb.MessageBatchSendFileResponse.deserializeBinary(new Uint8Array(buffer_arg));
1178
+ }
1179
+
1180
+ function serialize_wechaty_puppet_MessageBatchSendLocationRequest(arg) {
1181
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendLocationRequest)) {
1182
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendLocationRequest');
1183
+ }
1184
+ return Buffer.from(arg.serializeBinary());
1185
+ }
1186
+
1187
+ function deserialize_wechaty_puppet_MessageBatchSendLocationRequest(buffer_arg) {
1188
+ return wechaty_puppet_message_pb.MessageBatchSendLocationRequest.deserializeBinary(new Uint8Array(buffer_arg));
1189
+ }
1190
+
1191
+ function serialize_wechaty_puppet_MessageBatchSendLocationResponse(arg) {
1192
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendLocationResponse)) {
1193
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendLocationResponse');
1194
+ }
1195
+ return Buffer.from(arg.serializeBinary());
1196
+ }
1197
+
1198
+ function deserialize_wechaty_puppet_MessageBatchSendLocationResponse(buffer_arg) {
1199
+ return wechaty_puppet_message_pb.MessageBatchSendLocationResponse.deserializeBinary(new Uint8Array(buffer_arg));
1200
+ }
1201
+
1202
+ function serialize_wechaty_puppet_MessageBatchSendMiniProgramRequest(arg) {
1203
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest)) {
1204
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendMiniProgramRequest');
1205
+ }
1206
+ return Buffer.from(arg.serializeBinary());
1207
+ }
1208
+
1209
+ function deserialize_wechaty_puppet_MessageBatchSendMiniProgramRequest(buffer_arg) {
1210
+ return wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest.deserializeBinary(new Uint8Array(buffer_arg));
1211
+ }
1212
+
1213
+ function serialize_wechaty_puppet_MessageBatchSendMiniProgramResponse(arg) {
1214
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse)) {
1215
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendMiniProgramResponse');
1216
+ }
1217
+ return Buffer.from(arg.serializeBinary());
1218
+ }
1219
+
1220
+ function deserialize_wechaty_puppet_MessageBatchSendMiniProgramResponse(buffer_arg) {
1221
+ return wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse.deserializeBinary(new Uint8Array(buffer_arg));
1222
+ }
1223
+
1224
+ function serialize_wechaty_puppet_MessageBatchSendTextRequest(arg) {
1225
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendTextRequest)) {
1226
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendTextRequest');
1227
+ }
1228
+ return Buffer.from(arg.serializeBinary());
1229
+ }
1230
+
1231
+ function deserialize_wechaty_puppet_MessageBatchSendTextRequest(buffer_arg) {
1232
+ return wechaty_puppet_message_pb.MessageBatchSendTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
1233
+ }
1234
+
1235
+ function serialize_wechaty_puppet_MessageBatchSendTextResponse(arg) {
1236
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendTextResponse)) {
1237
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendTextResponse');
1238
+ }
1239
+ return Buffer.from(arg.serializeBinary());
1240
+ }
1241
+
1242
+ function deserialize_wechaty_puppet_MessageBatchSendTextResponse(buffer_arg) {
1243
+ return wechaty_puppet_message_pb.MessageBatchSendTextResponse.deserializeBinary(new Uint8Array(buffer_arg));
1244
+ }
1245
+
1246
+ function serialize_wechaty_puppet_MessageBatchSendUrlRequest(arg) {
1247
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendUrlRequest)) {
1248
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendUrlRequest');
1249
+ }
1250
+ return Buffer.from(arg.serializeBinary());
1251
+ }
1252
+
1253
+ function deserialize_wechaty_puppet_MessageBatchSendUrlRequest(buffer_arg) {
1254
+ return wechaty_puppet_message_pb.MessageBatchSendUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
1255
+ }
1256
+
1257
+ function serialize_wechaty_puppet_MessageBatchSendUrlResponse(arg) {
1258
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageBatchSendUrlResponse)) {
1259
+ throw new Error('Expected argument of type wechaty.puppet.MessageBatchSendUrlResponse');
1260
+ }
1261
+ return Buffer.from(arg.serializeBinary());
1262
+ }
1263
+
1264
+ function deserialize_wechaty_puppet_MessageBatchSendUrlResponse(buffer_arg) {
1265
+ return wechaty_puppet_message_pb.MessageBatchSendUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
1266
+ }
1267
+
893
1268
  function serialize_wechaty_puppet_MessageCallRecordRequest(arg) {
894
1269
  if (!(arg instanceof wechaty_puppet_message_pb.MessageCallRecordRequest)) {
895
1270
  throw new Error('Expected argument of type wechaty.puppet.MessageCallRecordRequest');
@@ -3005,6 +3380,95 @@ messageFile: {
3005
3380
  responseSerialize: serialize_wechaty_puppet_MessageCallRecordResponse,
3006
3381
  responseDeserialize: deserialize_wechaty_puppet_MessageCallRecordResponse,
3007
3382
  },
3383
+ callInvite: {
3384
+ path: '/wechaty.Puppet/CallInvite',
3385
+ requestStream: false,
3386
+ responseStream: false,
3387
+ requestType: wechaty_puppet_call_pb.CallInviteRequest,
3388
+ responseType: wechaty_puppet_call_pb.CallInviteResponse,
3389
+ requestSerialize: serialize_wechaty_puppet_CallInviteRequest,
3390
+ requestDeserialize: deserialize_wechaty_puppet_CallInviteRequest,
3391
+ responseSerialize: serialize_wechaty_puppet_CallInviteResponse,
3392
+ responseDeserialize: deserialize_wechaty_puppet_CallInviteResponse,
3393
+ },
3394
+ callAdd: {
3395
+ path: '/wechaty.Puppet/CallAdd',
3396
+ requestStream: false,
3397
+ responseStream: false,
3398
+ requestType: wechaty_puppet_call_pb.CallAddRequest,
3399
+ responseType: wechaty_puppet_call_pb.CallAddResponse,
3400
+ requestSerialize: serialize_wechaty_puppet_CallAddRequest,
3401
+ requestDeserialize: deserialize_wechaty_puppet_CallAddRequest,
3402
+ responseSerialize: serialize_wechaty_puppet_CallAddResponse,
3403
+ responseDeserialize: deserialize_wechaty_puppet_CallAddResponse,
3404
+ },
3405
+ callAccept: {
3406
+ path: '/wechaty.Puppet/CallAccept',
3407
+ requestStream: false,
3408
+ responseStream: false,
3409
+ requestType: wechaty_puppet_call_pb.CallAcceptRequest,
3410
+ responseType: wechaty_puppet_call_pb.CallAcceptResponse,
3411
+ requestSerialize: serialize_wechaty_puppet_CallAcceptRequest,
3412
+ requestDeserialize: deserialize_wechaty_puppet_CallAcceptRequest,
3413
+ responseSerialize: serialize_wechaty_puppet_CallAcceptResponse,
3414
+ responseDeserialize: deserialize_wechaty_puppet_CallAcceptResponse,
3415
+ },
3416
+ callReject: {
3417
+ path: '/wechaty.Puppet/CallReject',
3418
+ requestStream: false,
3419
+ responseStream: false,
3420
+ requestType: wechaty_puppet_call_pb.CallRejectRequest,
3421
+ responseType: wechaty_puppet_call_pb.CallRejectResponse,
3422
+ requestSerialize: serialize_wechaty_puppet_CallRejectRequest,
3423
+ requestDeserialize: deserialize_wechaty_puppet_CallRejectRequest,
3424
+ responseSerialize: serialize_wechaty_puppet_CallRejectResponse,
3425
+ responseDeserialize: deserialize_wechaty_puppet_CallRejectResponse,
3426
+ },
3427
+ callCancel: {
3428
+ path: '/wechaty.Puppet/CallCancel',
3429
+ requestStream: false,
3430
+ responseStream: false,
3431
+ requestType: wechaty_puppet_call_pb.CallCancelRequest,
3432
+ responseType: wechaty_puppet_call_pb.CallCancelResponse,
3433
+ requestSerialize: serialize_wechaty_puppet_CallCancelRequest,
3434
+ requestDeserialize: deserialize_wechaty_puppet_CallCancelRequest,
3435
+ responseSerialize: serialize_wechaty_puppet_CallCancelResponse,
3436
+ responseDeserialize: deserialize_wechaty_puppet_CallCancelResponse,
3437
+ },
3438
+ callHangup: {
3439
+ path: '/wechaty.Puppet/CallHangup',
3440
+ requestStream: false,
3441
+ responseStream: false,
3442
+ requestType: wechaty_puppet_call_pb.CallHangupRequest,
3443
+ responseType: wechaty_puppet_call_pb.CallHangupResponse,
3444
+ requestSerialize: serialize_wechaty_puppet_CallHangupRequest,
3445
+ requestDeserialize: deserialize_wechaty_puppet_CallHangupRequest,
3446
+ responseSerialize: serialize_wechaty_puppet_CallHangupResponse,
3447
+ responseDeserialize: deserialize_wechaty_puppet_CallHangupResponse,
3448
+ },
3449
+ // POST:签发可能在网关侧预分配媒体会话(有副作用),非幂等读取。
3450
+ callMediaEndpoint: {
3451
+ path: '/wechaty.Puppet/CallMediaEndpoint',
3452
+ requestStream: false,
3453
+ responseStream: false,
3454
+ requestType: wechaty_puppet_call_pb.CallMediaEndpointRequest,
3455
+ responseType: wechaty_puppet_call_pb.CallMediaEndpointResponse,
3456
+ requestSerialize: serialize_wechaty_puppet_CallMediaEndpointRequest,
3457
+ requestDeserialize: deserialize_wechaty_puppet_CallMediaEndpointRequest,
3458
+ responseSerialize: serialize_wechaty_puppet_CallMediaEndpointResponse,
3459
+ responseDeserialize: deserialize_wechaty_puppet_CallMediaEndpointResponse,
3460
+ },
3461
+ callPayload: {
3462
+ path: '/wechaty.Puppet/CallPayload',
3463
+ requestStream: false,
3464
+ responseStream: false,
3465
+ requestType: wechaty_puppet_call_pb.CallPayloadRequest,
3466
+ responseType: wechaty_puppet_call_pb.CallPayloadResponse,
3467
+ requestSerialize: serialize_wechaty_puppet_CallPayloadRequest,
3468
+ requestDeserialize: deserialize_wechaty_puppet_CallPayloadRequest,
3469
+ responseSerialize: serialize_wechaty_puppet_CallPayloadResponse,
3470
+ responseDeserialize: deserialize_wechaty_puppet_CallPayloadResponse,
3471
+ },
3008
3472
  messageChatHistory: {
3009
3473
  path: '/wechaty.Puppet/MessageChatHistory',
3010
3474
  requestStream: false,
@@ -3071,6 +3535,105 @@ messageFile: {
3071
3535
  responseSerialize: serialize_wechaty_puppet_MessageSendTextResponse,
3072
3536
  responseDeserialize: deserialize_wechaty_puppet_MessageSendTextResponse,
3073
3537
  },
3538
+ messageBatchSendText: {
3539
+ path: '/wechaty.Puppet/MessageBatchSendText',
3540
+ requestStream: false,
3541
+ responseStream: false,
3542
+ requestType: wechaty_puppet_message_pb.MessageBatchSendTextRequest,
3543
+ responseType: wechaty_puppet_message_pb.MessageBatchSendTextResponse,
3544
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendTextRequest,
3545
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendTextRequest,
3546
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendTextResponse,
3547
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendTextResponse,
3548
+ },
3549
+ messageBatchSendFile: {
3550
+ path: '/wechaty.Puppet/MessageBatchSendFile',
3551
+ requestStream: false,
3552
+ responseStream: false,
3553
+ requestType: wechaty_puppet_message_pb.MessageBatchSendFileRequest,
3554
+ responseType: wechaty_puppet_message_pb.MessageBatchSendFileResponse,
3555
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendFileRequest,
3556
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendFileRequest,
3557
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendFileResponse,
3558
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendFileResponse,
3559
+ },
3560
+ messageBatchForward: {
3561
+ path: '/wechaty.Puppet/MessageBatchForward',
3562
+ requestStream: false,
3563
+ responseStream: false,
3564
+ requestType: wechaty_puppet_message_pb.MessageBatchForwardRequest,
3565
+ responseType: wechaty_puppet_message_pb.MessageBatchForwardResponse,
3566
+ requestSerialize: serialize_wechaty_puppet_MessageBatchForwardRequest,
3567
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchForwardRequest,
3568
+ responseSerialize: serialize_wechaty_puppet_MessageBatchForwardResponse,
3569
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchForwardResponse,
3570
+ },
3571
+ messageBatchSendContact: {
3572
+ path: '/wechaty.Puppet/MessageBatchSendContact',
3573
+ requestStream: false,
3574
+ responseStream: false,
3575
+ requestType: wechaty_puppet_message_pb.MessageBatchSendContactRequest,
3576
+ responseType: wechaty_puppet_message_pb.MessageBatchSendContactResponse,
3577
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendContactRequest,
3578
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendContactRequest,
3579
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendContactResponse,
3580
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendContactResponse,
3581
+ },
3582
+ messageBatchSendUrl: {
3583
+ path: '/wechaty.Puppet/MessageBatchSendUrl',
3584
+ requestStream: false,
3585
+ responseStream: false,
3586
+ requestType: wechaty_puppet_message_pb.MessageBatchSendUrlRequest,
3587
+ responseType: wechaty_puppet_message_pb.MessageBatchSendUrlResponse,
3588
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendUrlRequest,
3589
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendUrlRequest,
3590
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendUrlResponse,
3591
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendUrlResponse,
3592
+ },
3593
+ messageBatchSendMiniProgram: {
3594
+ path: '/wechaty.Puppet/MessageBatchSendMiniProgram',
3595
+ requestStream: false,
3596
+ responseStream: false,
3597
+ requestType: wechaty_puppet_message_pb.MessageBatchSendMiniProgramRequest,
3598
+ responseType: wechaty_puppet_message_pb.MessageBatchSendMiniProgramResponse,
3599
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendMiniProgramRequest,
3600
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendMiniProgramRequest,
3601
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendMiniProgramResponse,
3602
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendMiniProgramResponse,
3603
+ },
3604
+ messageBatchSendLocation: {
3605
+ path: '/wechaty.Puppet/MessageBatchSendLocation',
3606
+ requestStream: false,
3607
+ responseStream: false,
3608
+ requestType: wechaty_puppet_message_pb.MessageBatchSendLocationRequest,
3609
+ responseType: wechaty_puppet_message_pb.MessageBatchSendLocationResponse,
3610
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendLocationRequest,
3611
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendLocationRequest,
3612
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendLocationResponse,
3613
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendLocationResponse,
3614
+ },
3615
+ messageBatchSendChannel: {
3616
+ path: '/wechaty.Puppet/MessageBatchSendChannel',
3617
+ requestStream: false,
3618
+ responseStream: false,
3619
+ requestType: wechaty_puppet_message_pb.MessageBatchSendChannelRequest,
3620
+ responseType: wechaty_puppet_message_pb.MessageBatchSendChannelResponse,
3621
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendChannelRequest,
3622
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendChannelRequest,
3623
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendChannelResponse,
3624
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendChannelResponse,
3625
+ },
3626
+ messageBatchSendChannelCard: {
3627
+ path: '/wechaty.Puppet/MessageBatchSendChannelCard',
3628
+ requestStream: false,
3629
+ responseStream: false,
3630
+ requestType: wechaty_puppet_message_pb.MessageBatchSendChannelCardRequest,
3631
+ responseType: wechaty_puppet_message_pb.MessageBatchSendChannelCardResponse,
3632
+ requestSerialize: serialize_wechaty_puppet_MessageBatchSendChannelCardRequest,
3633
+ requestDeserialize: deserialize_wechaty_puppet_MessageBatchSendChannelCardRequest,
3634
+ responseSerialize: serialize_wechaty_puppet_MessageBatchSendChannelCardResponse,
3635
+ responseDeserialize: deserialize_wechaty_puppet_MessageBatchSendChannelCardResponse,
3636
+ },
3074
3637
  messageSendMiniProgram: {
3075
3638
  path: '/wechaty.Puppet/MessageSendMiniProgram',
3076
3639
  requestStream: false,
@@ -5,6 +5,7 @@ import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "../google/api/annotations_pb";
6
6
  import * as protoc_gen_openapiv2_options_annotations_pb from "../protoc-gen-openapiv2/options/annotations_pb";
7
7
  import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
8
+ import * as wechaty_puppet_call_pb from "../wechaty/puppet/call_pb";
8
9
  import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
9
10
  import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
10
11
  import * as wechaty_puppet_event_pb from "../wechaty/puppet/event_pb";
@@ -21,6 +21,8 @@ var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapi
21
21
  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
22
22
  var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_base_pb);
24
+ var wechaty_puppet_call_pb = require('../wechaty/puppet/call_pb.js');
25
+ goog.object.extend(proto, wechaty_puppet_call_pb);
24
26
  var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
25
27
  goog.object.extend(proto, wechaty_puppet_contact_pb);
26
28
  var wechaty_puppet_download$upload_pb = require('../wechaty/puppet/download-upload_pb.js');