@juzi/wechaty-grpc 1.0.0 → 1.0.1
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/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1394 -711
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +78 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +122 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +17 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +19 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -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 +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1394 -711
- package/dist/esm/out/wechaty/puppet.openapi.yaml +78 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +122 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +17 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +19 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -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 +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/out/wechaty/puppet/channel_pb.js +380 -0
- package/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/out/wechaty/puppet/message_pb.js +1394 -711
- package/out/wechaty/puppet.openapi.yaml +78 -1
- package/out/wechaty/puppet.swagger.json +122 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/out/wechaty/puppet_grpc_pb.js +67 -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 +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.1
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -391,6 +391,33 @@ paths:
|
|
|
391
391
|
pattern: PAYLOADTYPECONTACT
|
|
392
392
|
tags:
|
|
393
393
|
- Puppet
|
|
394
|
+
'/conversations/{conversationId}/channel':
|
|
395
|
+
post:
|
|
396
|
+
operationId: Puppet_MessageSendChannel
|
|
397
|
+
responses:
|
|
398
|
+
'200':
|
|
399
|
+
description: A successful response.
|
|
400
|
+
schema:
|
|
401
|
+
$ref: '#/definitions/puppetMessageSendChannelResponse'
|
|
402
|
+
default:
|
|
403
|
+
description: An unexpected error response.
|
|
404
|
+
schema:
|
|
405
|
+
$ref: '#/definitions/rpcStatus'
|
|
406
|
+
parameters:
|
|
407
|
+
- name: conversationId
|
|
408
|
+
in: path
|
|
409
|
+
required: true
|
|
410
|
+
type: string
|
|
411
|
+
- name: body
|
|
412
|
+
in: body
|
|
413
|
+
required: true
|
|
414
|
+
schema:
|
|
415
|
+
type: object
|
|
416
|
+
properties:
|
|
417
|
+
channel:
|
|
418
|
+
$ref: '#/definitions/puppetChannelPayload'
|
|
419
|
+
tags:
|
|
420
|
+
- Puppet
|
|
394
421
|
'/conversations/{conversationId}/contact':
|
|
395
422
|
post:
|
|
396
423
|
operationId: Puppet_MessageSendContact
|
|
@@ -843,6 +870,25 @@ paths:
|
|
|
843
870
|
type: string
|
|
844
871
|
tags:
|
|
845
872
|
- Puppet
|
|
873
|
+
'/message/{id}/channel':
|
|
874
|
+
get:
|
|
875
|
+
operationId: Puppet_MessageChannel
|
|
876
|
+
responses:
|
|
877
|
+
'200':
|
|
878
|
+
description: A successful response.
|
|
879
|
+
schema:
|
|
880
|
+
$ref: '#/definitions/puppetMessageChannelResponse'
|
|
881
|
+
default:
|
|
882
|
+
description: An unexpected error response.
|
|
883
|
+
schema:
|
|
884
|
+
$ref: '#/definitions/rpcStatus'
|
|
885
|
+
parameters:
|
|
886
|
+
- name: id
|
|
887
|
+
in: path
|
|
888
|
+
required: true
|
|
889
|
+
type: string
|
|
890
|
+
tags:
|
|
891
|
+
- Puppet
|
|
846
892
|
'/message/{id}/contact':
|
|
847
893
|
get:
|
|
848
894
|
operationId: Puppet_MessageContact
|
|
@@ -1629,6 +1675,26 @@ definitions:
|
|
|
1629
1675
|
'@type':
|
|
1630
1676
|
type: string
|
|
1631
1677
|
additionalProperties: {}
|
|
1678
|
+
puppetChannelPayload:
|
|
1679
|
+
type: object
|
|
1680
|
+
properties:
|
|
1681
|
+
avatar:
|
|
1682
|
+
type: string
|
|
1683
|
+
coverUrl:
|
|
1684
|
+
type: string
|
|
1685
|
+
desc:
|
|
1686
|
+
type: string
|
|
1687
|
+
extras:
|
|
1688
|
+
type: string
|
|
1689
|
+
feedType:
|
|
1690
|
+
type: integer
|
|
1691
|
+
format: int32
|
|
1692
|
+
nickname:
|
|
1693
|
+
type: string
|
|
1694
|
+
thumbUrl:
|
|
1695
|
+
type: string
|
|
1696
|
+
url:
|
|
1697
|
+
type: string
|
|
1632
1698
|
puppetContactAliasResponse:
|
|
1633
1699
|
type: object
|
|
1634
1700
|
properties:
|
|
@@ -1914,6 +1980,11 @@ definitions:
|
|
|
1914
1980
|
type: string
|
|
1915
1981
|
puppetLogoutResponse:
|
|
1916
1982
|
type: object
|
|
1983
|
+
puppetMessageChannelResponse:
|
|
1984
|
+
type: object
|
|
1985
|
+
properties:
|
|
1986
|
+
channel:
|
|
1987
|
+
$ref: '#/definitions/puppetChannelPayload'
|
|
1917
1988
|
puppetMessageContactResponse:
|
|
1918
1989
|
type: object
|
|
1919
1990
|
properties:
|
|
@@ -2027,6 +2098,11 @@ definitions:
|
|
|
2027
2098
|
properties:
|
|
2028
2099
|
success:
|
|
2029
2100
|
type: boolean
|
|
2101
|
+
puppetMessageSendChannelResponse:
|
|
2102
|
+
type: object
|
|
2103
|
+
properties:
|
|
2104
|
+
id:
|
|
2105
|
+
type: string
|
|
2030
2106
|
puppetMessageSendContactResponse:
|
|
2031
2107
|
type: object
|
|
2032
2108
|
properties:
|
|
@@ -2145,6 +2221,7 @@ definitions:
|
|
|
2145
2221
|
- MESSAGE_TYPE_RED_ENVELOPE
|
|
2146
2222
|
- MESSAGE_TYPE_RECALLED
|
|
2147
2223
|
- MESSAGE_TYPE_URL
|
|
2224
|
+
- MESSAGE_TYPE_CHANNEL
|
|
2148
2225
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
2149
2226
|
puppetMessageUrlResponse:
|
|
2150
2227
|
type: object
|
|
@@ -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.1",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -579,6 +579,49 @@
|
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
|
+
"/conversations/{conversationId}/channel": {
|
|
583
|
+
"post": {
|
|
584
|
+
"operationId": "Puppet_MessageSendChannel",
|
|
585
|
+
"responses": {
|
|
586
|
+
"200": {
|
|
587
|
+
"description": "A successful response.",
|
|
588
|
+
"schema": {
|
|
589
|
+
"$ref": "#/definitions/puppetMessageSendChannelResponse"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"default": {
|
|
593
|
+
"description": "An unexpected error response.",
|
|
594
|
+
"schema": {
|
|
595
|
+
"$ref": "#/definitions/rpcStatus"
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"parameters": [
|
|
600
|
+
{
|
|
601
|
+
"name": "conversationId",
|
|
602
|
+
"in": "path",
|
|
603
|
+
"required": true,
|
|
604
|
+
"type": "string"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "body",
|
|
608
|
+
"in": "body",
|
|
609
|
+
"required": true,
|
|
610
|
+
"schema": {
|
|
611
|
+
"type": "object",
|
|
612
|
+
"properties": {
|
|
613
|
+
"channel": {
|
|
614
|
+
"$ref": "#/definitions/puppetChannelPayload"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"tags": [
|
|
621
|
+
"Puppet"
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
},
|
|
582
625
|
"/conversations/{conversationId}/contact": {
|
|
583
626
|
"post": {
|
|
584
627
|
"operationId": "Puppet_MessageSendContact",
|
|
@@ -1235,6 +1278,36 @@
|
|
|
1235
1278
|
]
|
|
1236
1279
|
}
|
|
1237
1280
|
},
|
|
1281
|
+
"/message/{id}/channel": {
|
|
1282
|
+
"get": {
|
|
1283
|
+
"operationId": "Puppet_MessageChannel",
|
|
1284
|
+
"responses": {
|
|
1285
|
+
"200": {
|
|
1286
|
+
"description": "A successful response.",
|
|
1287
|
+
"schema": {
|
|
1288
|
+
"$ref": "#/definitions/puppetMessageChannelResponse"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"default": {
|
|
1292
|
+
"description": "An unexpected error response.",
|
|
1293
|
+
"schema": {
|
|
1294
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"parameters": [
|
|
1299
|
+
{
|
|
1300
|
+
"name": "id",
|
|
1301
|
+
"in": "path",
|
|
1302
|
+
"required": true,
|
|
1303
|
+
"type": "string"
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"tags": [
|
|
1307
|
+
"Puppet"
|
|
1308
|
+
]
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1238
1311
|
"/message/{id}/contact": {
|
|
1239
1312
|
"get": {
|
|
1240
1313
|
"operationId": "Puppet_MessageContact",
|
|
@@ -2434,6 +2507,36 @@
|
|
|
2434
2507
|
},
|
|
2435
2508
|
"additionalProperties": {}
|
|
2436
2509
|
},
|
|
2510
|
+
"puppetChannelPayload": {
|
|
2511
|
+
"type": "object",
|
|
2512
|
+
"properties": {
|
|
2513
|
+
"avatar": {
|
|
2514
|
+
"type": "string"
|
|
2515
|
+
},
|
|
2516
|
+
"coverUrl": {
|
|
2517
|
+
"type": "string"
|
|
2518
|
+
},
|
|
2519
|
+
"desc": {
|
|
2520
|
+
"type": "string"
|
|
2521
|
+
},
|
|
2522
|
+
"extras": {
|
|
2523
|
+
"type": "string"
|
|
2524
|
+
},
|
|
2525
|
+
"feedType": {
|
|
2526
|
+
"type": "integer",
|
|
2527
|
+
"format": "int32"
|
|
2528
|
+
},
|
|
2529
|
+
"nickname": {
|
|
2530
|
+
"type": "string"
|
|
2531
|
+
},
|
|
2532
|
+
"thumbUrl": {
|
|
2533
|
+
"type": "string"
|
|
2534
|
+
},
|
|
2535
|
+
"url": {
|
|
2536
|
+
"type": "string"
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
},
|
|
2437
2540
|
"puppetContactAliasResponse": {
|
|
2438
2541
|
"type": "object",
|
|
2439
2542
|
"properties": {
|
|
@@ -2789,6 +2892,14 @@
|
|
|
2789
2892
|
"puppetLogoutResponse": {
|
|
2790
2893
|
"type": "object"
|
|
2791
2894
|
},
|
|
2895
|
+
"puppetMessageChannelResponse": {
|
|
2896
|
+
"type": "object",
|
|
2897
|
+
"properties": {
|
|
2898
|
+
"channel": {
|
|
2899
|
+
"$ref": "#/definitions/puppetChannelPayload"
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2792
2903
|
"puppetMessageContactResponse": {
|
|
2793
2904
|
"type": "object",
|
|
2794
2905
|
"properties": {
|
|
@@ -2948,6 +3059,14 @@
|
|
|
2948
3059
|
}
|
|
2949
3060
|
}
|
|
2950
3061
|
},
|
|
3062
|
+
"puppetMessageSendChannelResponse": {
|
|
3063
|
+
"type": "object",
|
|
3064
|
+
"properties": {
|
|
3065
|
+
"id": {
|
|
3066
|
+
"type": "string"
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
2951
3070
|
"puppetMessageSendContactResponse": {
|
|
2952
3071
|
"type": "object",
|
|
2953
3072
|
"properties": {
|
|
@@ -3069,7 +3188,8 @@
|
|
|
3069
3188
|
"MESSAGE_TYPE_TRANSFER",
|
|
3070
3189
|
"MESSAGE_TYPE_RED_ENVELOPE",
|
|
3071
3190
|
"MESSAGE_TYPE_RECALLED",
|
|
3072
|
-
"MESSAGE_TYPE_URL"
|
|
3191
|
+
"MESSAGE_TYPE_URL",
|
|
3192
|
+
"MESSAGE_TYPE_CHANNEL"
|
|
3073
3193
|
],
|
|
3074
3194
|
"default": "MESSAGE_TYPE_UNSPECIFIED"
|
|
3075
3195
|
},
|
|
@@ -18,6 +18,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
|
|
|
18
18
|
import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
|
|
19
19
|
import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
|
|
20
20
|
import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
21
|
+
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
21
22
|
|
|
22
23
|
interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
23
24
|
messageFileStream: IPuppetService_IMessageFileStream;
|
|
@@ -53,6 +54,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
53
54
|
messageContact: IPuppetService_IMessageContact;
|
|
54
55
|
messageMiniProgram: IPuppetService_IMessageMiniProgram;
|
|
55
56
|
messageUrl: IPuppetService_IMessageUrl;
|
|
57
|
+
messageChannel: IPuppetService_IMessageChannel;
|
|
56
58
|
messageRecall: IPuppetService_IMessageRecall;
|
|
57
59
|
messageForward: IPuppetService_IMessageForward;
|
|
58
60
|
messageLocation: IPuppetService_IMessageLocation;
|
|
@@ -61,6 +63,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
61
63
|
messageSendMiniProgram: IPuppetService_IMessageSendMiniProgram;
|
|
62
64
|
messageSendUrl: IPuppetService_IMessageSendUrl;
|
|
63
65
|
messageSendLocation: IPuppetService_IMessageSendLocation;
|
|
66
|
+
messageSendChannel: IPuppetService_IMessageSendChannel;
|
|
64
67
|
roomPayload: IPuppetService_IRoomPayload;
|
|
65
68
|
roomList: IPuppetService_IRoomList;
|
|
66
69
|
roomAdd: IPuppetService_IRoomAdd;
|
|
@@ -380,6 +383,15 @@ interface IPuppetService_IMessageUrl extends grpc.MethodDefinition<wechaty_puppe
|
|
|
380
383
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageUrlResponse>;
|
|
381
384
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageUrlResponse>;
|
|
382
385
|
}
|
|
386
|
+
interface IPuppetService_IMessageChannel extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse> {
|
|
387
|
+
path: "/wechaty.Puppet/MessageChannel";
|
|
388
|
+
requestStream: false;
|
|
389
|
+
responseStream: false;
|
|
390
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelRequest>;
|
|
391
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelRequest>;
|
|
392
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
393
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
394
|
+
}
|
|
383
395
|
interface IPuppetService_IMessageRecall extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse> {
|
|
384
396
|
path: "/wechaty.Puppet/MessageRecall";
|
|
385
397
|
requestStream: false;
|
|
@@ -452,6 +464,15 @@ interface IPuppetService_IMessageSendLocation extends grpc.MethodDefinition<wech
|
|
|
452
464
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
453
465
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
454
466
|
}
|
|
467
|
+
interface IPuppetService_IMessageSendChannel extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse> {
|
|
468
|
+
path: "/wechaty.Puppet/MessageSendChannel";
|
|
469
|
+
requestStream: false;
|
|
470
|
+
responseStream: false;
|
|
471
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelRequest>;
|
|
472
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelRequest>;
|
|
473
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
474
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
475
|
+
}
|
|
455
476
|
interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse> {
|
|
456
477
|
path: "/wechaty.Puppet/RoomPayload";
|
|
457
478
|
requestStream: false;
|
|
@@ -669,6 +690,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
669
690
|
messageContact: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageContactRequest, wechaty_puppet_message_pb.MessageContactResponse>;
|
|
670
691
|
messageMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageMiniProgramRequest, wechaty_puppet_message_pb.MessageMiniProgramResponse>;
|
|
671
692
|
messageUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageUrlRequest, wechaty_puppet_message_pb.MessageUrlResponse>;
|
|
693
|
+
messageChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
672
694
|
messageRecall: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse>;
|
|
673
695
|
messageForward: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageForwardRequest, wechaty_puppet_message_pb.MessageForwardResponse>;
|
|
674
696
|
messageLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageLocationRequest, wechaty_puppet_message_pb.MessageLocationResponse>;
|
|
@@ -677,6 +699,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
677
699
|
messageSendMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendMiniProgramRequest, wechaty_puppet_message_pb.MessageSendMiniProgramResponse>;
|
|
678
700
|
messageSendUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendUrlRequest, wechaty_puppet_message_pb.MessageSendUrlResponse>;
|
|
679
701
|
messageSendLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendLocationRequest, wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
702
|
+
messageSendChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
680
703
|
roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
|
|
681
704
|
roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
|
|
682
705
|
roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
|
|
@@ -797,6 +820,9 @@ export interface IPuppetClient {
|
|
|
797
820
|
messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
798
821
|
messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
799
822
|
messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
823
|
+
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
824
|
+
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
825
|
+
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
800
826
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
801
827
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
802
828
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -821,6 +847,9 @@ export interface IPuppetClient {
|
|
|
821
847
|
messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
822
848
|
messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
823
849
|
messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
850
|
+
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
851
|
+
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
852
|
+
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
824
853
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
825
854
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
826
855
|
roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -982,6 +1011,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
982
1011
|
public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
983
1012
|
public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
984
1013
|
public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
|
|
1014
|
+
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1015
|
+
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1016
|
+
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
985
1017
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
986
1018
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
987
1019
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1006,6 +1038,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1006
1038
|
public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
1007
1039
|
public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
1008
1040
|
public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
|
|
1041
|
+
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1042
|
+
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1043
|
+
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1009
1044
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1010
1045
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1011
1046
|
public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -27,6 +27,7 @@ var wechaty_puppet_room$invitation_pb = require('../wechaty/puppet/room-invitati
|
|
|
27
27
|
var wechaty_puppet_room$member_pb = require('../wechaty/puppet/room-member_pb.js');
|
|
28
28
|
var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
|
|
29
29
|
var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
|
|
30
|
+
var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
|
|
30
31
|
|
|
31
32
|
function serialize_wechaty_puppet_ContactAliasRequest(arg) {
|
|
32
33
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
|
|
@@ -468,6 +469,28 @@ function deserialize_wechaty_puppet_LogoutResponse(buffer_arg) {
|
|
|
468
469
|
return wechaty_puppet_base_pb.LogoutResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
469
470
|
}
|
|
470
471
|
|
|
472
|
+
function serialize_wechaty_puppet_MessageChannelRequest(arg) {
|
|
473
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelRequest)) {
|
|
474
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageChannelRequest');
|
|
475
|
+
}
|
|
476
|
+
return Buffer.from(arg.serializeBinary());
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
function deserialize_wechaty_puppet_MessageChannelRequest(buffer_arg) {
|
|
480
|
+
return wechaty_puppet_message_pb.MessageChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
function serialize_wechaty_puppet_MessageChannelResponse(arg) {
|
|
484
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelResponse)) {
|
|
485
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageChannelResponse');
|
|
486
|
+
}
|
|
487
|
+
return Buffer.from(arg.serializeBinary());
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
function deserialize_wechaty_puppet_MessageChannelResponse(buffer_arg) {
|
|
491
|
+
return wechaty_puppet_message_pb.MessageChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
492
|
+
}
|
|
493
|
+
|
|
471
494
|
function serialize_wechaty_puppet_MessageContactRequest(arg) {
|
|
472
495
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageContactRequest)) {
|
|
473
496
|
throw new Error('Expected argument of type wechaty.puppet.MessageContactRequest');
|
|
@@ -688,6 +711,28 @@ function deserialize_wechaty_puppet_MessageRecallResponse(buffer_arg) {
|
|
|
688
711
|
return wechaty_puppet_message_pb.MessageRecallResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
689
712
|
}
|
|
690
713
|
|
|
714
|
+
function serialize_wechaty_puppet_MessageSendChannelRequest(arg) {
|
|
715
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelRequest)) {
|
|
716
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelRequest');
|
|
717
|
+
}
|
|
718
|
+
return Buffer.from(arg.serializeBinary());
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
function deserialize_wechaty_puppet_MessageSendChannelRequest(buffer_arg) {
|
|
722
|
+
return wechaty_puppet_message_pb.MessageSendChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
function serialize_wechaty_puppet_MessageSendChannelResponse(arg) {
|
|
726
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelResponse)) {
|
|
727
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelResponse');
|
|
728
|
+
}
|
|
729
|
+
return Buffer.from(arg.serializeBinary());
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
function deserialize_wechaty_puppet_MessageSendChannelResponse(buffer_arg) {
|
|
733
|
+
return wechaty_puppet_message_pb.MessageSendChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
734
|
+
}
|
|
735
|
+
|
|
691
736
|
function serialize_wechaty_puppet_MessageSendContactRequest(arg) {
|
|
692
737
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendContactRequest)) {
|
|
693
738
|
throw new Error('Expected argument of type wechaty.puppet.MessageSendContactRequest');
|
|
@@ -1745,6 +1790,17 @@ messageFile: {
|
|
|
1745
1790
|
responseSerialize: serialize_wechaty_puppet_MessageUrlResponse,
|
|
1746
1791
|
responseDeserialize: deserialize_wechaty_puppet_MessageUrlResponse,
|
|
1747
1792
|
},
|
|
1793
|
+
messageChannel: {
|
|
1794
|
+
path: '/wechaty.Puppet/MessageChannel',
|
|
1795
|
+
requestStream: false,
|
|
1796
|
+
responseStream: false,
|
|
1797
|
+
requestType: wechaty_puppet_message_pb.MessageChannelRequest,
|
|
1798
|
+
responseType: wechaty_puppet_message_pb.MessageChannelResponse,
|
|
1799
|
+
requestSerialize: serialize_wechaty_puppet_MessageChannelRequest,
|
|
1800
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageChannelRequest,
|
|
1801
|
+
responseSerialize: serialize_wechaty_puppet_MessageChannelResponse,
|
|
1802
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageChannelResponse,
|
|
1803
|
+
},
|
|
1748
1804
|
messageRecall: {
|
|
1749
1805
|
path: '/wechaty.Puppet/MessageRecall',
|
|
1750
1806
|
requestStream: false,
|
|
@@ -1833,6 +1889,17 @@ messageFile: {
|
|
|
1833
1889
|
responseSerialize: serialize_wechaty_puppet_MessageSendLocationResponse,
|
|
1834
1890
|
responseDeserialize: deserialize_wechaty_puppet_MessageSendLocationResponse,
|
|
1835
1891
|
},
|
|
1892
|
+
messageSendChannel: {
|
|
1893
|
+
path: '/wechaty.Puppet/MessageSendChannel',
|
|
1894
|
+
requestStream: false,
|
|
1895
|
+
responseStream: false,
|
|
1896
|
+
requestType: wechaty_puppet_message_pb.MessageSendChannelRequest,
|
|
1897
|
+
responseType: wechaty_puppet_message_pb.MessageSendChannelResponse,
|
|
1898
|
+
requestSerialize: serialize_wechaty_puppet_MessageSendChannelRequest,
|
|
1899
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageSendChannelRequest,
|
|
1900
|
+
responseSerialize: serialize_wechaty_puppet_MessageSendChannelResponse,
|
|
1901
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageSendChannelResponse,
|
|
1902
|
+
},
|
|
1836
1903
|
// *
|
|
1837
1904
|
//
|
|
1838
1905
|
// Room
|
|
@@ -15,4 +15,5 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
|
|
|
15
15
|
import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
|
|
16
16
|
import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
|
|
17
17
|
import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
18
|
+
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
18
19
|
|
|
@@ -41,3 +41,5 @@ var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
|
|
|
41
41
|
goog.object.extend(proto, wechaty_puppet_room_pb);
|
|
42
42
|
var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
|
|
43
43
|
goog.object.extend(proto, wechaty_puppet_tag_pb);
|
|
44
|
+
var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
|
|
45
|
+
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
@@ -312,6 +312,15 @@ type PuppetMessageUrl = {
|
|
|
312
312
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageUrlResponse;
|
|
313
313
|
};
|
|
314
314
|
|
|
315
|
+
type PuppetMessageChannel = {
|
|
316
|
+
readonly methodName: string;
|
|
317
|
+
readonly service: typeof Puppet;
|
|
318
|
+
readonly requestStream: false;
|
|
319
|
+
readonly responseStream: false;
|
|
320
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageChannelRequest;
|
|
321
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageChannelResponse;
|
|
322
|
+
};
|
|
323
|
+
|
|
315
324
|
type PuppetMessageRecall = {
|
|
316
325
|
readonly methodName: string;
|
|
317
326
|
readonly service: typeof Puppet;
|
|
@@ -384,6 +393,15 @@ type PuppetMessageSendLocation = {
|
|
|
384
393
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendLocationResponse;
|
|
385
394
|
};
|
|
386
395
|
|
|
396
|
+
type PuppetMessageSendChannel = {
|
|
397
|
+
readonly methodName: string;
|
|
398
|
+
readonly service: typeof Puppet;
|
|
399
|
+
readonly requestStream: false;
|
|
400
|
+
readonly responseStream: false;
|
|
401
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageSendChannelRequest;
|
|
402
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendChannelResponse;
|
|
403
|
+
};
|
|
404
|
+
|
|
387
405
|
type PuppetRoomPayload = {
|
|
388
406
|
readonly methodName: string;
|
|
389
407
|
readonly service: typeof Puppet;
|
|
@@ -599,6 +617,7 @@ export class Puppet {
|
|
|
599
617
|
static readonly MessageContact: PuppetMessageContact;
|
|
600
618
|
static readonly MessageMiniProgram: PuppetMessageMiniProgram;
|
|
601
619
|
static readonly MessageUrl: PuppetMessageUrl;
|
|
620
|
+
static readonly MessageChannel: PuppetMessageChannel;
|
|
602
621
|
static readonly MessageRecall: PuppetMessageRecall;
|
|
603
622
|
static readonly MessageForward: PuppetMessageForward;
|
|
604
623
|
static readonly MessageLocation: PuppetMessageLocation;
|
|
@@ -607,6 +626,7 @@ export class Puppet {
|
|
|
607
626
|
static readonly MessageSendMiniProgram: PuppetMessageSendMiniProgram;
|
|
608
627
|
static readonly MessageSendUrl: PuppetMessageSendUrl;
|
|
609
628
|
static readonly MessageSendLocation: PuppetMessageSendLocation;
|
|
629
|
+
static readonly MessageSendChannel: PuppetMessageSendChannel;
|
|
610
630
|
static readonly RoomPayload: PuppetRoomPayload;
|
|
611
631
|
static readonly RoomList: PuppetRoomList;
|
|
612
632
|
static readonly RoomAdd: PuppetRoomAdd;
|
|
@@ -926,6 +946,15 @@ export class PuppetClient {
|
|
|
926
946
|
requestMessage: wechaty_puppet_message_pb.MessageUrlRequest,
|
|
927
947
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageUrlResponse|null) => void
|
|
928
948
|
): UnaryResponse;
|
|
949
|
+
messageChannel(
|
|
950
|
+
requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
|
|
951
|
+
metadata: grpc.Metadata,
|
|
952
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
|
|
953
|
+
): UnaryResponse;
|
|
954
|
+
messageChannel(
|
|
955
|
+
requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
|
|
956
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
|
|
957
|
+
): UnaryResponse;
|
|
929
958
|
messageRecall(
|
|
930
959
|
requestMessage: wechaty_puppet_message_pb.MessageRecallRequest,
|
|
931
960
|
metadata: grpc.Metadata,
|
|
@@ -998,6 +1027,15 @@ export class PuppetClient {
|
|
|
998
1027
|
requestMessage: wechaty_puppet_message_pb.MessageSendLocationRequest,
|
|
999
1028
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendLocationResponse|null) => void
|
|
1000
1029
|
): UnaryResponse;
|
|
1030
|
+
messageSendChannel(
|
|
1031
|
+
requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
|
|
1032
|
+
metadata: grpc.Metadata,
|
|
1033
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
|
|
1034
|
+
): UnaryResponse;
|
|
1035
|
+
messageSendChannel(
|
|
1036
|
+
requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
|
|
1037
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
|
|
1038
|
+
): UnaryResponse;
|
|
1001
1039
|
roomPayload(
|
|
1002
1040
|
requestMessage: wechaty_puppet_room_pb.RoomPayloadRequest,
|
|
1003
1041
|
metadata: grpc.Metadata,
|