@juzi/wechaty-grpc 1.0.101 → 1.0.103
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.
- package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +4 -1
- package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +361 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +2869 -79
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +70 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +544 -2
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +376 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +537 -10
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +137 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +266 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +153 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +321 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +4 -0
- package/dist/cjs/proto/wechaty/puppet/call.proto +101 -1
- package/dist/cjs/proto/wechaty/puppet/channel.proto +19 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet.proto +49 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +40 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +4 -1
- package/dist/esm/out/wechaty/puppet/call_pb.d.ts +361 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +2869 -79
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +70 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.js +544 -2
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +376 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +537 -10
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +137 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +266 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +153 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +321 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +4 -0
- package/dist/esm/proto/wechaty/puppet/call.proto +101 -1
- package/dist/esm/proto/wechaty/puppet/channel.proto +19 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet.proto +49 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +40 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +3 -0
- package/out/wechaty/puppet/base_pb.js +4 -1
- package/out/wechaty/puppet/call_pb.d.ts +361 -0
- package/out/wechaty/puppet/call_pb.js +2869 -79
- package/out/wechaty/puppet/channel_pb.d.ts +70 -0
- package/out/wechaty/puppet/channel_pb.js +544 -2
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet.openapi.yaml +376 -2
- package/out/wechaty/puppet.swagger.json +537 -10
- package/out/wechaty/puppet_grpc_pb.d.ts +137 -0
- package/out/wechaty/puppet_grpc_pb.js +266 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -0
- package/out/wechaty/puppet_pb_service.d.ts +153 -0
- package/out/wechaty/puppet_pb_service.js +321 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.103",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,304 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/call/invite": {
|
|
30
|
+
"post": {
|
|
31
|
+
"operationId": "Puppet_CallInvite",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetCallInviteResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "body",
|
|
49
|
+
"in": "body",
|
|
50
|
+
"required": true,
|
|
51
|
+
"schema": {
|
|
52
|
+
"$ref": "#/definitions/puppetCallInviteRequest"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"tags": [
|
|
57
|
+
"Puppet"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"/call/{callId}/accept": {
|
|
62
|
+
"post": {
|
|
63
|
+
"operationId": "Puppet_CallAccept",
|
|
64
|
+
"responses": {
|
|
65
|
+
"200": {
|
|
66
|
+
"description": "A successful response.",
|
|
67
|
+
"schema": {
|
|
68
|
+
"$ref": "#/definitions/puppetCallAcceptResponse"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"default": {
|
|
72
|
+
"description": "An unexpected error response.",
|
|
73
|
+
"schema": {
|
|
74
|
+
"$ref": "#/definitions/rpcStatus"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"parameters": [
|
|
79
|
+
{
|
|
80
|
+
"name": "callId",
|
|
81
|
+
"description": "由 CallInvite 响应获得;协议端持有会话状态,凭此即可定位会话(无需 peer/media)",
|
|
82
|
+
"in": "path",
|
|
83
|
+
"required": true,
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "body",
|
|
88
|
+
"in": "body",
|
|
89
|
+
"required": true,
|
|
90
|
+
"schema": {
|
|
91
|
+
"$ref": "#/definitions/PuppetCallAcceptBody"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"tags": [
|
|
96
|
+
"Puppet"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"/call/{callId}/add": {
|
|
101
|
+
"post": {
|
|
102
|
+
"operationId": "Puppet_CallAdd",
|
|
103
|
+
"responses": {
|
|
104
|
+
"200": {
|
|
105
|
+
"description": "A successful response.",
|
|
106
|
+
"schema": {
|
|
107
|
+
"$ref": "#/definitions/puppetCallAddResponse"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"default": {
|
|
111
|
+
"description": "An unexpected error response.",
|
|
112
|
+
"schema": {
|
|
113
|
+
"$ref": "#/definitions/rpcStatus"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"parameters": [
|
|
118
|
+
{
|
|
119
|
+
"name": "callId",
|
|
120
|
+
"description": "由 CallInvite 响应获得",
|
|
121
|
+
"in": "path",
|
|
122
|
+
"required": true,
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "body",
|
|
127
|
+
"in": "body",
|
|
128
|
+
"required": true,
|
|
129
|
+
"schema": {
|
|
130
|
+
"$ref": "#/definitions/PuppetCallAddBody"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"tags": [
|
|
135
|
+
"Puppet"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"/call/{callId}/cancel": {
|
|
140
|
+
"post": {
|
|
141
|
+
"operationId": "Puppet_CallCancel",
|
|
142
|
+
"responses": {
|
|
143
|
+
"200": {
|
|
144
|
+
"description": "A successful response.",
|
|
145
|
+
"schema": {
|
|
146
|
+
"$ref": "#/definitions/puppetCallCancelResponse"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"default": {
|
|
150
|
+
"description": "An unexpected error response.",
|
|
151
|
+
"schema": {
|
|
152
|
+
"$ref": "#/definitions/rpcStatus"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"parameters": [
|
|
157
|
+
{
|
|
158
|
+
"name": "callId",
|
|
159
|
+
"description": "由 CallInvite 响应获得;协议端持有会话状态,凭此即可定位会话(无需 peer/media)",
|
|
160
|
+
"in": "path",
|
|
161
|
+
"required": true,
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "body",
|
|
166
|
+
"in": "body",
|
|
167
|
+
"required": true,
|
|
168
|
+
"schema": {
|
|
169
|
+
"$ref": "#/definitions/PuppetCallCancelBody"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"tags": [
|
|
174
|
+
"Puppet"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"/call/{callId}/hangup": {
|
|
179
|
+
"post": {
|
|
180
|
+
"operationId": "Puppet_CallHangup",
|
|
181
|
+
"responses": {
|
|
182
|
+
"200": {
|
|
183
|
+
"description": "A successful response.",
|
|
184
|
+
"schema": {
|
|
185
|
+
"$ref": "#/definitions/puppetCallHangupResponse"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"default": {
|
|
189
|
+
"description": "An unexpected error response.",
|
|
190
|
+
"schema": {
|
|
191
|
+
"$ref": "#/definitions/rpcStatus"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"parameters": [
|
|
196
|
+
{
|
|
197
|
+
"name": "callId",
|
|
198
|
+
"description": "由 CallInvite 响应获得;协议端持有会话状态,凭此即可定位会话(无需 peer/media)",
|
|
199
|
+
"in": "path",
|
|
200
|
+
"required": true,
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "body",
|
|
205
|
+
"in": "body",
|
|
206
|
+
"required": true,
|
|
207
|
+
"schema": {
|
|
208
|
+
"$ref": "#/definitions/PuppetCallHangupBody"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"tags": [
|
|
213
|
+
"Puppet"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"/call/{callId}/media-endpoint": {
|
|
218
|
+
"post": {
|
|
219
|
+
"summary": "POST:签发可能在网关侧预分配媒体会话(有副作用),非幂等读取。",
|
|
220
|
+
"operationId": "Puppet_CallMediaEndpoint",
|
|
221
|
+
"responses": {
|
|
222
|
+
"200": {
|
|
223
|
+
"description": "A successful response.",
|
|
224
|
+
"schema": {
|
|
225
|
+
"$ref": "#/definitions/puppetCallMediaEndpointResponse"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"default": {
|
|
229
|
+
"description": "An unexpected error response.",
|
|
230
|
+
"schema": {
|
|
231
|
+
"$ref": "#/definitions/rpcStatus"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"parameters": [
|
|
236
|
+
{
|
|
237
|
+
"name": "callId",
|
|
238
|
+
"description": "由 CallInvite 响应获得",
|
|
239
|
+
"in": "path",
|
|
240
|
+
"required": true,
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "body",
|
|
245
|
+
"in": "body",
|
|
246
|
+
"required": true,
|
|
247
|
+
"schema": {
|
|
248
|
+
"$ref": "#/definitions/PuppetCallMediaEndpointBody"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"tags": [
|
|
253
|
+
"Puppet"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"/call/{callId}/reject": {
|
|
258
|
+
"post": {
|
|
259
|
+
"operationId": "Puppet_CallReject",
|
|
260
|
+
"responses": {
|
|
261
|
+
"200": {
|
|
262
|
+
"description": "A successful response.",
|
|
263
|
+
"schema": {
|
|
264
|
+
"$ref": "#/definitions/puppetCallRejectResponse"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"default": {
|
|
268
|
+
"description": "An unexpected error response.",
|
|
269
|
+
"schema": {
|
|
270
|
+
"$ref": "#/definitions/rpcStatus"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"parameters": [
|
|
275
|
+
{
|
|
276
|
+
"name": "callId",
|
|
277
|
+
"description": "由 CallInvite 响应获得;协议端持有会话状态,凭此即可定位会话(无需 peer/media)",
|
|
278
|
+
"in": "path",
|
|
279
|
+
"required": true,
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "body",
|
|
284
|
+
"in": "body",
|
|
285
|
+
"required": true,
|
|
286
|
+
"schema": {
|
|
287
|
+
"$ref": "#/definitions/PuppetCallRejectBody"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"tags": [
|
|
292
|
+
"Puppet"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"/call/{id}": {
|
|
297
|
+
"get": {
|
|
298
|
+
"operationId": "Puppet_CallPayload",
|
|
299
|
+
"responses": {
|
|
300
|
+
"200": {
|
|
301
|
+
"description": "A successful response.",
|
|
302
|
+
"schema": {
|
|
303
|
+
"$ref": "#/definitions/puppetCallPayloadResponse"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"default": {
|
|
307
|
+
"description": "An unexpected error response.",
|
|
308
|
+
"schema": {
|
|
309
|
+
"$ref": "#/definitions/rpcStatus"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"parameters": [
|
|
314
|
+
{
|
|
315
|
+
"name": "id",
|
|
316
|
+
"description": "call_id",
|
|
317
|
+
"in": "path",
|
|
318
|
+
"required": true,
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"tags": [
|
|
323
|
+
"Puppet"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
29
327
|
"/cancel_verify_code": {
|
|
30
328
|
"post": {
|
|
31
329
|
"operationId": "Puppet_CancelVerifyCode",
|
|
@@ -658,7 +956,10 @@
|
|
|
658
956
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
659
957
|
"PAYLOAD_TYPE_POST",
|
|
660
958
|
"PAYLOAD_TYPE_TAG",
|
|
661
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
959
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
960
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
961
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
962
|
+
"PAYLOAD_TYPE_CALL"
|
|
662
963
|
],
|
|
663
964
|
"pattern": "PAYLOAD_TYPE_CONTACT"
|
|
664
965
|
}
|
|
@@ -1813,7 +2114,10 @@
|
|
|
1813
2114
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
1814
2115
|
"PAYLOAD_TYPE_POST",
|
|
1815
2116
|
"PAYLOAD_TYPE_TAG",
|
|
1816
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2117
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
2118
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
2119
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
2120
|
+
"PAYLOAD_TYPE_CALL"
|
|
1817
2121
|
],
|
|
1818
2122
|
"pattern": "PAYLOAD_TYPE_FRIENDSHIP"
|
|
1819
2123
|
}
|
|
@@ -2147,7 +2451,10 @@
|
|
|
2147
2451
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
2148
2452
|
"PAYLOAD_TYPE_POST",
|
|
2149
2453
|
"PAYLOAD_TYPE_TAG",
|
|
2150
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
2454
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
2455
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
2456
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
2457
|
+
"PAYLOAD_TYPE_CALL"
|
|
2151
2458
|
],
|
|
2152
2459
|
"pattern": "PAYLOAD_TYPE_MESSAGE"
|
|
2153
2460
|
}
|
|
@@ -3260,7 +3567,10 @@
|
|
|
3260
3567
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
3261
3568
|
"PAYLOAD_TYPE_POST",
|
|
3262
3569
|
"PAYLOAD_TYPE_TAG",
|
|
3263
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
3570
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
3571
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
3572
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
3573
|
+
"PAYLOAD_TYPE_CALL"
|
|
3264
3574
|
],
|
|
3265
3575
|
"pattern": "PAYLOAD_TYPE_ROOM_MEMBER"
|
|
3266
3576
|
}
|
|
@@ -3308,7 +3618,10 @@
|
|
|
3308
3618
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
3309
3619
|
"PAYLOAD_TYPE_POST",
|
|
3310
3620
|
"PAYLOAD_TYPE_TAG",
|
|
3311
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
3621
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
3622
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
3623
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
3624
|
+
"PAYLOAD_TYPE_CALL"
|
|
3312
3625
|
],
|
|
3313
3626
|
"pattern": "PAYLOAD_TYPE_ROOM"
|
|
3314
3627
|
}
|
|
@@ -4491,6 +4804,51 @@
|
|
|
4491
4804
|
}
|
|
4492
4805
|
}
|
|
4493
4806
|
},
|
|
4807
|
+
"PuppetCallAcceptBody": {
|
|
4808
|
+
"type": "object",
|
|
4809
|
+
"title": "被叫接听来电。"
|
|
4810
|
+
},
|
|
4811
|
+
"PuppetCallAddBody": {
|
|
4812
|
+
"type": "object",
|
|
4813
|
+
"properties": {
|
|
4814
|
+
"contactIds": {
|
|
4815
|
+
"type": "array",
|
|
4816
|
+
"items": {
|
|
4817
|
+
"type": "string"
|
|
4818
|
+
},
|
|
4819
|
+
"title": "新增受邀方 contactId 列表(不含已在通话中的参与者)"
|
|
4820
|
+
}
|
|
4821
|
+
},
|
|
4822
|
+
"title": "通话中途拉人(errors-only 契约):\n- 新参与者的应答回执(响铃/接听/拒接)一律经 EVENT_TYPE_CALL 事件上行,本响应恒为空;\n- 拉人特有的失败(通话不存在/已结束、人数上限等)经 gRPC status error 返回。"
|
|
4823
|
+
},
|
|
4824
|
+
"PuppetCallCancelBody": {
|
|
4825
|
+
"type": "object",
|
|
4826
|
+
"title": "接通前主叫取消呼叫。"
|
|
4827
|
+
},
|
|
4828
|
+
"PuppetCallHangupBody": {
|
|
4829
|
+
"type": "object",
|
|
4830
|
+
"properties": {
|
|
4831
|
+
"reason": {
|
|
4832
|
+
"type": "string",
|
|
4833
|
+
"title": "可空,空串表示无"
|
|
4834
|
+
}
|
|
4835
|
+
},
|
|
4836
|
+
"title": "接通后任一方挂断。"
|
|
4837
|
+
},
|
|
4838
|
+
"PuppetCallMediaEndpointBody": {
|
|
4839
|
+
"type": "object",
|
|
4840
|
+
"title": "媒体入场券:按 call_id 向协议端换取媒体网关协商入口。\n签发可能在网关侧预分配媒体会话(有副作用),故服务端不得缓存响应、客户端按需拉取。"
|
|
4841
|
+
},
|
|
4842
|
+
"PuppetCallRejectBody": {
|
|
4843
|
+
"type": "object",
|
|
4844
|
+
"properties": {
|
|
4845
|
+
"reason": {
|
|
4846
|
+
"type": "string",
|
|
4847
|
+
"title": "可空,空串表示无"
|
|
4848
|
+
}
|
|
4849
|
+
},
|
|
4850
|
+
"title": "被叫拒接来电。"
|
|
4851
|
+
},
|
|
4494
4852
|
"PuppetContactAliasBody": {
|
|
4495
4853
|
"type": "object",
|
|
4496
4854
|
"properties": {
|
|
@@ -4863,6 +5221,99 @@
|
|
|
4863
5221
|
],
|
|
4864
5222
|
"default": "BROADCAST_TARGET_STATUS_UNSENT"
|
|
4865
5223
|
},
|
|
5224
|
+
"puppetCallAcceptResponse": {
|
|
5225
|
+
"type": "object"
|
|
5226
|
+
},
|
|
5227
|
+
"puppetCallAddResponse": {
|
|
5228
|
+
"type": "object"
|
|
5229
|
+
},
|
|
5230
|
+
"puppetCallCancelResponse": {
|
|
5231
|
+
"type": "object"
|
|
5232
|
+
},
|
|
5233
|
+
"puppetCallHangupResponse": {
|
|
5234
|
+
"type": "object"
|
|
5235
|
+
},
|
|
5236
|
+
"puppetCallInviteRequest": {
|
|
5237
|
+
"type": "object",
|
|
5238
|
+
"properties": {
|
|
5239
|
+
"contactIds": {
|
|
5240
|
+
"type": "array",
|
|
5241
|
+
"items": {
|
|
5242
|
+
"type": "string"
|
|
5243
|
+
},
|
|
5244
|
+
"title": "受邀方 contactId 列表(不含发起方):单元素 = 1v1 通话,多元素 = 群通话;\n无论几人,一通通话只铸造一个 call_id。"
|
|
5245
|
+
},
|
|
5246
|
+
"media": {
|
|
5247
|
+
"$ref": "#/definitions/puppetCallType",
|
|
5248
|
+
"title": "必填:媒体类型(VOICE/VIDEO),复用既有 CallType;零值 CALL_TYPE_UNKNOWN 会被 server 拒绝"
|
|
5249
|
+
}
|
|
5250
|
+
},
|
|
5251
|
+
"title": "发起呼叫请求:callId 不由主叫携带,而是由 puppet 实现侧生成并经 CallInviteResponse 返回。"
|
|
5252
|
+
},
|
|
5253
|
+
"puppetCallInviteResponse": {
|
|
5254
|
+
"type": "object",
|
|
5255
|
+
"properties": {
|
|
5256
|
+
"callId": {
|
|
5257
|
+
"type": "string"
|
|
5258
|
+
}
|
|
5259
|
+
},
|
|
5260
|
+
"title": "CallInvite 响应:\n- call_id 由 puppet 实现侧(协议端)生成并经本响应返回,全链路以此关联控制面与媒体旁路;\n- 上行 EVENT_TYPE_CALL 事件可能先于本响应到达,客户端须容忍乱序;\n- 后续控制 RPC(CallAccept/CallReject/CallCancel/CallHangup)凭此 call_id 引用本通通话。"
|
|
5261
|
+
},
|
|
5262
|
+
"puppetCallMediaEndpointResponse": {
|
|
5263
|
+
"type": "object",
|
|
5264
|
+
"properties": {
|
|
5265
|
+
"url": {
|
|
5266
|
+
"type": "string",
|
|
5267
|
+
"title": "媒体网关协商入口(非媒体流地址本身)"
|
|
5268
|
+
},
|
|
5269
|
+
"token": {
|
|
5270
|
+
"type": "string",
|
|
5271
|
+
"title": "短时效凭证,绑定 call_id + 本端身份"
|
|
5272
|
+
},
|
|
5273
|
+
"expiresAt": {
|
|
5274
|
+
"type": "string",
|
|
5275
|
+
"format": "date-time",
|
|
5276
|
+
"title": "凭证过期时刻;不设置 = 不过期;过期后重新拉取本 RPC"
|
|
5277
|
+
},
|
|
5278
|
+
"protocol": {
|
|
5279
|
+
"type": "string",
|
|
5280
|
+
"title": "入口方言(如 whip / livekit / 自定义),由媒体 SDK 消费"
|
|
5281
|
+
}
|
|
5282
|
+
}
|
|
5283
|
+
},
|
|
5284
|
+
"puppetCallPayloadResponse": {
|
|
5285
|
+
"type": "object",
|
|
5286
|
+
"properties": {
|
|
5287
|
+
"id": {
|
|
5288
|
+
"type": "string"
|
|
5289
|
+
},
|
|
5290
|
+
"starter": {
|
|
5291
|
+
"type": "string",
|
|
5292
|
+
"title": "发起方 contactId;空串 = 协议端不可知(如中途被拉入者视角)"
|
|
5293
|
+
},
|
|
5294
|
+
"participants": {
|
|
5295
|
+
"type": "array",
|
|
5296
|
+
"items": {
|
|
5297
|
+
"type": "string"
|
|
5298
|
+
},
|
|
5299
|
+
"title": "当前全量参与者名册"
|
|
5300
|
+
},
|
|
5301
|
+
"media": {
|
|
5302
|
+
"$ref": "#/definitions/puppetCallType",
|
|
5303
|
+
"title": "当前媒体类型(语音↔视频切换经 dirty 反映)"
|
|
5304
|
+
},
|
|
5305
|
+
"startTime": {
|
|
5306
|
+
"type": "string",
|
|
5307
|
+
"format": "date-time",
|
|
5308
|
+
"title": "通话发起时刻;接通时刻不在此(等于上行 Accept 事件的 timestamp)"
|
|
5309
|
+
},
|
|
5310
|
+
"endTime": {
|
|
5311
|
+
"type": "string",
|
|
5312
|
+
"format": "date-time",
|
|
5313
|
+
"title": "通话结束时刻;未设置 = 通话进行中"
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
},
|
|
4866
5317
|
"puppetCallRecordPayload": {
|
|
4867
5318
|
"type": "object",
|
|
4868
5319
|
"properties": {
|
|
@@ -4887,6 +5338,9 @@
|
|
|
4887
5338
|
}
|
|
4888
5339
|
}
|
|
4889
5340
|
},
|
|
5341
|
+
"puppetCallRejectResponse": {
|
|
5342
|
+
"type": "object"
|
|
5343
|
+
},
|
|
4890
5344
|
"puppetCallStatus": {
|
|
4891
5345
|
"type": "string",
|
|
4892
5346
|
"enum": [
|
|
@@ -4898,7 +5352,7 @@
|
|
|
4898
5352
|
"CALL_STATUS_ENDED"
|
|
4899
5353
|
],
|
|
4900
5354
|
"default": "CALL_STATUS_UNKNOWN",
|
|
4901
|
-
"description": "- CALL_STATUS_UNKNOWN: 不明确\n - CALL_STATUS_CANCELED: 自己取消\n - CALL_STATUS_REJECTED: 对方拒接\n - CALL_STATUS_MISSED:
|
|
5355
|
+
"description": "- CALL_STATUS_UNKNOWN: 不明确\n - CALL_STATUS_CANCELED: 自己取消\n - CALL_STATUS_REJECTED: 对方拒接\n - CALL_STATUS_MISSED: 未接\n - CALL_STATUS_ONGOING: 正在通话\n - CALL_STATUS_ENDED: 已结束",
|
|
4902
5356
|
"title": "类型枚举"
|
|
4903
5357
|
},
|
|
4904
5358
|
"puppetCallType": {
|
|
@@ -4953,6 +5407,48 @@
|
|
|
4953
5407
|
],
|
|
4954
5408
|
"default": "CHANNEL_FEED_TYPE_UNKNOWN"
|
|
4955
5409
|
},
|
|
5410
|
+
"puppetChannelMedia": {
|
|
5411
|
+
"type": "object",
|
|
5412
|
+
"properties": {
|
|
5413
|
+
"mediaType": {
|
|
5414
|
+
"type": "integer",
|
|
5415
|
+
"format": "int32",
|
|
5416
|
+
"title": "资源类型 2:图片 4:视频"
|
|
5417
|
+
},
|
|
5418
|
+
"url": {
|
|
5419
|
+
"type": "string",
|
|
5420
|
+
"title": "原始媒体流地址"
|
|
5421
|
+
},
|
|
5422
|
+
"thumbUrl": {
|
|
5423
|
+
"type": "string",
|
|
5424
|
+
"title": "视频第一帧缩略图地址"
|
|
5425
|
+
},
|
|
5426
|
+
"fullCoverUrl": {
|
|
5427
|
+
"type": "string",
|
|
5428
|
+
"title": "封面缩略图地址"
|
|
5429
|
+
},
|
|
5430
|
+
"coverUrl": {
|
|
5431
|
+
"type": "string",
|
|
5432
|
+
"title": "封面地址"
|
|
5433
|
+
},
|
|
5434
|
+
"width": {
|
|
5435
|
+
"type": "integer",
|
|
5436
|
+
"format": "int32",
|
|
5437
|
+
"title": "缩略图宽度,默认 1080"
|
|
5438
|
+
},
|
|
5439
|
+
"height": {
|
|
5440
|
+
"type": "integer",
|
|
5441
|
+
"format": "int32",
|
|
5442
|
+
"title": "缩略图高度,默认 1920"
|
|
5443
|
+
},
|
|
5444
|
+
"videoPlayDuration": {
|
|
5445
|
+
"type": "integer",
|
|
5446
|
+
"format": "int32",
|
|
5447
|
+
"title": "视频播放时长(秒)"
|
|
5448
|
+
}
|
|
5449
|
+
},
|
|
5450
|
+
"title": "视频号媒体资源,对应接收视频号 finderFeed.mediaList.media"
|
|
5451
|
+
},
|
|
4956
5452
|
"puppetChannelPayload": {
|
|
4957
5453
|
"type": "object",
|
|
4958
5454
|
"properties": {
|
|
@@ -4994,6 +5490,32 @@
|
|
|
4994
5490
|
},
|
|
4995
5491
|
"objectNonceId": {
|
|
4996
5492
|
"type": "string"
|
|
5493
|
+
},
|
|
5494
|
+
"username": {
|
|
5495
|
+
"type": "string",
|
|
5496
|
+
"description": "视频号 finder userName",
|
|
5497
|
+
"title": "个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed"
|
|
5498
|
+
},
|
|
5499
|
+
"authIconType": {
|
|
5500
|
+
"type": "integer",
|
|
5501
|
+
"format": "int32",
|
|
5502
|
+
"title": "认证类型"
|
|
5503
|
+
},
|
|
5504
|
+
"authIconUrl": {
|
|
5505
|
+
"type": "string",
|
|
5506
|
+
"title": "授权图标地址"
|
|
5507
|
+
},
|
|
5508
|
+
"fromUserName": {
|
|
5509
|
+
"type": "string",
|
|
5510
|
+
"title": "视频号转发自好友 userName"
|
|
5511
|
+
},
|
|
5512
|
+
"mediaList": {
|
|
5513
|
+
"type": "array",
|
|
5514
|
+
"items": {
|
|
5515
|
+
"type": "object",
|
|
5516
|
+
"$ref": "#/definitions/puppetChannelMedia"
|
|
5517
|
+
},
|
|
5518
|
+
"title": "媒体资源列表(图片类视频号可多条)"
|
|
4997
5519
|
}
|
|
4998
5520
|
}
|
|
4999
5521
|
},
|
|
@@ -5437,7 +5959,8 @@
|
|
|
5437
5959
|
"EVENT_TYPE_POST_TAP",
|
|
5438
5960
|
"EVENT_TYPE_ROOM_ANNOUNCE",
|
|
5439
5961
|
"EVENT_TYPE_VERIFY_CODE",
|
|
5440
|
-
"EVENT_TYPE_VERIFY_SLIDE"
|
|
5962
|
+
"EVENT_TYPE_VERIFY_SLIDE",
|
|
5963
|
+
"EVENT_TYPE_CALL"
|
|
5441
5964
|
],
|
|
5442
5965
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
5443
5966
|
},
|
|
@@ -6548,9 +7071,13 @@
|
|
|
6548
7071
|
"PAYLOAD_TYPE_FRIENDSHIP",
|
|
6549
7072
|
"PAYLOAD_TYPE_POST",
|
|
6550
7073
|
"PAYLOAD_TYPE_TAG",
|
|
6551
|
-
"PAYLOAD_TYPE_TAG_GROUP"
|
|
7074
|
+
"PAYLOAD_TYPE_TAG_GROUP",
|
|
7075
|
+
"PAYLOAD_TYPE_WXXD_PRODUCT",
|
|
7076
|
+
"PAYLOAD_TYPE_WXXD_ORDER",
|
|
7077
|
+
"PAYLOAD_TYPE_CALL"
|
|
6552
7078
|
],
|
|
6553
|
-
"default": "PAYLOAD_TYPE_UNSPECIFIED"
|
|
7079
|
+
"default": "PAYLOAD_TYPE_UNSPECIFIED",
|
|
7080
|
+
"title": "数值必须与 @juzi/wechaty-puppet 的 DirtyType 严格一致。"
|
|
6554
7081
|
},
|
|
6555
7082
|
"puppetPostPayloadClient": {
|
|
6556
7083
|
"type": "object",
|