@juzi/wechaty-grpc 1.0.94 → 1.0.96
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-card_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +0 -8
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +1 -61
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1708 -1025
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +85 -8
- package/dist/cjs/out/wechaty/puppet.swagger.json +130 -13
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -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-card.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +0 -4
- package/dist/cjs/proto/wechaty/puppet/chat-history.proto +3 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +39 -23
- package/dist/cjs/proto/wechaty/puppet.proto +11 -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-card_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +0 -8
- package/dist/esm/out/wechaty/puppet/channel_pb.js +1 -61
- package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/dist/esm/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1708 -1025
- package/dist/esm/out/wechaty/puppet.openapi.yaml +85 -8
- package/dist/esm/out/wechaty/puppet.swagger.json +130 -13
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -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-card.proto +15 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +0 -4
- package/dist/esm/proto/wechaty/puppet/chat-history.proto +3 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +39 -23
- package/dist/esm/proto/wechaty/puppet.proto +11 -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-card_grpc_pb.js +1 -0
- package/out/wechaty/puppet/channel-card_pb.d.ts +45 -0
- package/out/wechaty/puppet/channel-card_pb.js +320 -0
- package/out/wechaty/puppet/channel-card_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/channel-card_pb_service.js +3 -0
- package/out/wechaty/puppet/channel_pb.d.ts +0 -8
- package/out/wechaty/puppet/channel_pb.js +1 -61
- package/out/wechaty/puppet/chat-history_pb.d.ts +8 -0
- package/out/wechaty/puppet/chat-history_pb.js +56 -2
- package/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/out/wechaty/puppet/message_pb.js +1708 -1025
- package/out/wechaty/puppet.openapi.yaml +85 -8
- package/out/wechaty/puppet.swagger.json +130 -13
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -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.96
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -514,6 +514,30 @@ paths:
|
|
|
514
514
|
$ref: '#/definitions/PuppetMessageSendChannelBody'
|
|
515
515
|
tags:
|
|
516
516
|
- Puppet
|
|
517
|
+
/conversations/{conversationId}/channel-card:
|
|
518
|
+
post:
|
|
519
|
+
operationId: Puppet_MessageSendChannelCard
|
|
520
|
+
responses:
|
|
521
|
+
'200':
|
|
522
|
+
description: A successful response.
|
|
523
|
+
schema:
|
|
524
|
+
$ref: '#/definitions/puppetMessageSendChannelCardResponse'
|
|
525
|
+
default:
|
|
526
|
+
description: An unexpected error response.
|
|
527
|
+
schema:
|
|
528
|
+
$ref: '#/definitions/rpcStatus'
|
|
529
|
+
parameters:
|
|
530
|
+
- name: conversationId
|
|
531
|
+
in: path
|
|
532
|
+
required: true
|
|
533
|
+
type: string
|
|
534
|
+
- name: body
|
|
535
|
+
in: body
|
|
536
|
+
required: true
|
|
537
|
+
schema:
|
|
538
|
+
$ref: '#/definitions/PuppetMessageSendChannelCardBody'
|
|
539
|
+
tags:
|
|
540
|
+
- Puppet
|
|
517
541
|
/conversations/{conversationId}/contact:
|
|
518
542
|
post:
|
|
519
543
|
operationId: Puppet_MessageSendContact
|
|
@@ -1139,6 +1163,25 @@ paths:
|
|
|
1139
1163
|
type: string
|
|
1140
1164
|
tags:
|
|
1141
1165
|
- Puppet
|
|
1166
|
+
/message/{id}/channel-card:
|
|
1167
|
+
get:
|
|
1168
|
+
operationId: Puppet_MessageChannelCard
|
|
1169
|
+
responses:
|
|
1170
|
+
'200':
|
|
1171
|
+
description: A successful response.
|
|
1172
|
+
schema:
|
|
1173
|
+
$ref: '#/definitions/puppetMessageChannelCardResponse'
|
|
1174
|
+
default:
|
|
1175
|
+
description: An unexpected error response.
|
|
1176
|
+
schema:
|
|
1177
|
+
$ref: '#/definitions/rpcStatus'
|
|
1178
|
+
parameters:
|
|
1179
|
+
- name: id
|
|
1180
|
+
in: path
|
|
1181
|
+
required: true
|
|
1182
|
+
type: string
|
|
1183
|
+
tags:
|
|
1184
|
+
- Puppet
|
|
1142
1185
|
/message/{id}/chat-history:
|
|
1143
1186
|
get:
|
|
1144
1187
|
operationId: Puppet_MessageChatHistory
|
|
@@ -2804,6 +2847,11 @@ definitions:
|
|
|
2804
2847
|
properties:
|
|
2805
2848
|
channel:
|
|
2806
2849
|
$ref: '#/definitions/puppetChannelPayload'
|
|
2850
|
+
PuppetMessageSendChannelCardBody:
|
|
2851
|
+
type: object
|
|
2852
|
+
properties:
|
|
2853
|
+
channelCard:
|
|
2854
|
+
$ref: '#/definitions/puppetChannelCardPayload'
|
|
2807
2855
|
PuppetMessageSendContactBody:
|
|
2808
2856
|
type: object
|
|
2809
2857
|
properties:
|
|
@@ -2987,6 +3035,27 @@ definitions:
|
|
|
2987
3035
|
- CALL_TYPE_VIDEO: 视频
|
|
2988
3036
|
puppetCancelVerifyCodeResponse:
|
|
2989
3037
|
type: object
|
|
3038
|
+
puppetChannelCardPayload:
|
|
3039
|
+
type: object
|
|
3040
|
+
properties:
|
|
3041
|
+
avatar:
|
|
3042
|
+
type: string
|
|
3043
|
+
title: 头像
|
|
3044
|
+
extras:
|
|
3045
|
+
type: string
|
|
3046
|
+
title: 额外信息
|
|
3047
|
+
nickname:
|
|
3048
|
+
type: string
|
|
3049
|
+
title: 用户名
|
|
3050
|
+
url:
|
|
3051
|
+
type: string
|
|
3052
|
+
title: 视频号地址
|
|
3053
|
+
authIconUrl:
|
|
3054
|
+
type: string
|
|
3055
|
+
title: 认证图标URL
|
|
3056
|
+
authJob:
|
|
3057
|
+
type: string
|
|
3058
|
+
title: 认证职业
|
|
2990
3059
|
puppetChannelFeedType:
|
|
2991
3060
|
type: string
|
|
2992
3061
|
enum:
|
|
@@ -3027,13 +3096,6 @@ definitions:
|
|
|
3027
3096
|
title: 视频号直播专属
|
|
3028
3097
|
objectNonceId:
|
|
3029
3098
|
type: string
|
|
3030
|
-
authIconUrl:
|
|
3031
|
-
type: string
|
|
3032
|
-
description: 认证图标URL
|
|
3033
|
-
title: 视频号名片 SphProfileNew 消息类型专属字段
|
|
3034
|
-
authJob:
|
|
3035
|
-
type: string
|
|
3036
|
-
title: 认证职业
|
|
3037
3099
|
puppetChatHistoryContent:
|
|
3038
3100
|
type: object
|
|
3039
3101
|
properties:
|
|
@@ -3056,6 +3118,8 @@ definitions:
|
|
|
3056
3118
|
items:
|
|
3057
3119
|
type: object
|
|
3058
3120
|
$ref: '#/definitions/puppetChatHistoryPayload'
|
|
3121
|
+
channelCard:
|
|
3122
|
+
$ref: '#/definitions/puppetChannelCardPayload'
|
|
3059
3123
|
puppetChatHistoryContentType:
|
|
3060
3124
|
type: string
|
|
3061
3125
|
enum:
|
|
@@ -3066,6 +3130,7 @@ definitions:
|
|
|
3066
3130
|
- MINI_PROGRAM
|
|
3067
3131
|
- CHANNEL
|
|
3068
3132
|
- CHAT_HISTORY
|
|
3133
|
+
- ChANNEL_CARD
|
|
3069
3134
|
default: TEXT
|
|
3070
3135
|
puppetChatHistoryPayload:
|
|
3071
3136
|
type: object
|
|
@@ -3580,6 +3645,11 @@ definitions:
|
|
|
3580
3645
|
properties:
|
|
3581
3646
|
callRecord:
|
|
3582
3647
|
$ref: '#/definitions/puppetCallRecordPayload'
|
|
3648
|
+
puppetMessageChannelCardResponse:
|
|
3649
|
+
type: object
|
|
3650
|
+
properties:
|
|
3651
|
+
channelCard:
|
|
3652
|
+
$ref: '#/definitions/puppetChannelCardPayload'
|
|
3583
3653
|
puppetMessageChannelResponse:
|
|
3584
3654
|
type: object
|
|
3585
3655
|
properties:
|
|
@@ -3712,6 +3782,11 @@ definitions:
|
|
|
3712
3782
|
properties:
|
|
3713
3783
|
success:
|
|
3714
3784
|
type: boolean
|
|
3785
|
+
puppetMessageSendChannelCardResponse:
|
|
3786
|
+
type: object
|
|
3787
|
+
properties:
|
|
3788
|
+
id:
|
|
3789
|
+
type: string
|
|
3715
3790
|
puppetMessageSendChannelResponse:
|
|
3716
3791
|
type: object
|
|
3717
3792
|
properties:
|
|
@@ -3833,6 +3908,7 @@ definitions:
|
|
|
3833
3908
|
- MESSAGE_TYPE_SYSTEM
|
|
3834
3909
|
- MESSAGE_TYPE_MARKDOWN
|
|
3835
3910
|
- MESSAGE_TYPE_CALL_RECORD
|
|
3911
|
+
- MESSAGE_TYPE_CHANNEL_CARD
|
|
3836
3912
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
3837
3913
|
description: |-
|
|
3838
3914
|
- MESSAGE_TYPE_ATTACHMENT: 文件消息
|
|
@@ -3855,6 +3931,7 @@ definitions:
|
|
|
3855
3931
|
- MESSAGE_TYPE_SYSTEM: 系统消息
|
|
3856
3932
|
- MESSAGE_TYPE_MARKDOWN: MarkDown
|
|
3857
3933
|
- MESSAGE_TYPE_CALL_RECORD: 通话记录
|
|
3934
|
+
- MESSAGE_TYPE_CHANNEL_CARD: 视频号名片
|
|
3858
3935
|
title: 消息类型
|
|
3859
3936
|
puppetMessageUrlResponse:
|
|
3860
3937
|
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.96",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -784,6 +784,44 @@
|
|
|
784
784
|
]
|
|
785
785
|
}
|
|
786
786
|
},
|
|
787
|
+
"/conversations/{conversationId}/channel-card": {
|
|
788
|
+
"post": {
|
|
789
|
+
"operationId": "Puppet_MessageSendChannelCard",
|
|
790
|
+
"responses": {
|
|
791
|
+
"200": {
|
|
792
|
+
"description": "A successful response.",
|
|
793
|
+
"schema": {
|
|
794
|
+
"$ref": "#/definitions/puppetMessageSendChannelCardResponse"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"default": {
|
|
798
|
+
"description": "An unexpected error response.",
|
|
799
|
+
"schema": {
|
|
800
|
+
"$ref": "#/definitions/rpcStatus"
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"parameters": [
|
|
805
|
+
{
|
|
806
|
+
"name": "conversationId",
|
|
807
|
+
"in": "path",
|
|
808
|
+
"required": true,
|
|
809
|
+
"type": "string"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "body",
|
|
813
|
+
"in": "body",
|
|
814
|
+
"required": true,
|
|
815
|
+
"schema": {
|
|
816
|
+
"$ref": "#/definitions/PuppetMessageSendChannelCardBody"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
"tags": [
|
|
821
|
+
"Puppet"
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
},
|
|
787
825
|
"/conversations/{conversationId}/contact": {
|
|
788
826
|
"post": {
|
|
789
827
|
"operationId": "Puppet_MessageSendContact",
|
|
@@ -1693,6 +1731,36 @@
|
|
|
1693
1731
|
]
|
|
1694
1732
|
}
|
|
1695
1733
|
},
|
|
1734
|
+
"/message/{id}/channel-card": {
|
|
1735
|
+
"get": {
|
|
1736
|
+
"operationId": "Puppet_MessageChannelCard",
|
|
1737
|
+
"responses": {
|
|
1738
|
+
"200": {
|
|
1739
|
+
"description": "A successful response.",
|
|
1740
|
+
"schema": {
|
|
1741
|
+
"$ref": "#/definitions/puppetMessageChannelCardResponse"
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
"default": {
|
|
1745
|
+
"description": "An unexpected error response.",
|
|
1746
|
+
"schema": {
|
|
1747
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"parameters": [
|
|
1752
|
+
{
|
|
1753
|
+
"name": "id",
|
|
1754
|
+
"in": "path",
|
|
1755
|
+
"required": true,
|
|
1756
|
+
"type": "string"
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
"tags": [
|
|
1760
|
+
"Puppet"
|
|
1761
|
+
]
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1696
1764
|
"/message/{id}/chat-history": {
|
|
1697
1765
|
"get": {
|
|
1698
1766
|
"operationId": "Puppet_MessageChatHistory",
|
|
@@ -4208,6 +4276,14 @@
|
|
|
4208
4276
|
}
|
|
4209
4277
|
}
|
|
4210
4278
|
},
|
|
4279
|
+
"PuppetMessageSendChannelCardBody": {
|
|
4280
|
+
"type": "object",
|
|
4281
|
+
"properties": {
|
|
4282
|
+
"channelCard": {
|
|
4283
|
+
"$ref": "#/definitions/puppetChannelCardPayload"
|
|
4284
|
+
}
|
|
4285
|
+
}
|
|
4286
|
+
},
|
|
4211
4287
|
"PuppetMessageSendContactBody": {
|
|
4212
4288
|
"type": "object",
|
|
4213
4289
|
"properties": {
|
|
@@ -4443,6 +4519,35 @@
|
|
|
4443
4519
|
"puppetCancelVerifyCodeResponse": {
|
|
4444
4520
|
"type": "object"
|
|
4445
4521
|
},
|
|
4522
|
+
"puppetChannelCardPayload": {
|
|
4523
|
+
"type": "object",
|
|
4524
|
+
"properties": {
|
|
4525
|
+
"avatar": {
|
|
4526
|
+
"type": "string",
|
|
4527
|
+
"title": "头像"
|
|
4528
|
+
},
|
|
4529
|
+
"extras": {
|
|
4530
|
+
"type": "string",
|
|
4531
|
+
"title": "额外信息"
|
|
4532
|
+
},
|
|
4533
|
+
"nickname": {
|
|
4534
|
+
"type": "string",
|
|
4535
|
+
"title": "用户名"
|
|
4536
|
+
},
|
|
4537
|
+
"url": {
|
|
4538
|
+
"type": "string",
|
|
4539
|
+
"title": "视频号地址"
|
|
4540
|
+
},
|
|
4541
|
+
"authIconUrl": {
|
|
4542
|
+
"type": "string",
|
|
4543
|
+
"title": "认证图标URL"
|
|
4544
|
+
},
|
|
4545
|
+
"authJob": {
|
|
4546
|
+
"type": "string",
|
|
4547
|
+
"title": "认证职业"
|
|
4548
|
+
}
|
|
4549
|
+
}
|
|
4550
|
+
},
|
|
4446
4551
|
"puppetChannelFeedType": {
|
|
4447
4552
|
"type": "string",
|
|
4448
4553
|
"enum": [
|
|
@@ -4494,15 +4599,6 @@
|
|
|
4494
4599
|
},
|
|
4495
4600
|
"objectNonceId": {
|
|
4496
4601
|
"type": "string"
|
|
4497
|
-
},
|
|
4498
|
-
"authIconUrl": {
|
|
4499
|
-
"type": "string",
|
|
4500
|
-
"description": "认证图标URL",
|
|
4501
|
-
"title": "视频号名片 SphProfileNew 消息类型专属字段"
|
|
4502
|
-
},
|
|
4503
|
-
"authJob": {
|
|
4504
|
-
"type": "string",
|
|
4505
|
-
"title": "认证职业"
|
|
4506
4602
|
}
|
|
4507
4603
|
}
|
|
4508
4604
|
},
|
|
@@ -4536,6 +4632,9 @@
|
|
|
4536
4632
|
"type": "object",
|
|
4537
4633
|
"$ref": "#/definitions/puppetChatHistoryPayload"
|
|
4538
4634
|
}
|
|
4635
|
+
},
|
|
4636
|
+
"channelCard": {
|
|
4637
|
+
"$ref": "#/definitions/puppetChannelCardPayload"
|
|
4539
4638
|
}
|
|
4540
4639
|
}
|
|
4541
4640
|
},
|
|
@@ -4548,7 +4647,8 @@
|
|
|
4548
4647
|
"URL",
|
|
4549
4648
|
"MINI_PROGRAM",
|
|
4550
4649
|
"CHANNEL",
|
|
4551
|
-
"CHAT_HISTORY"
|
|
4650
|
+
"CHAT_HISTORY",
|
|
4651
|
+
"ChANNEL_CARD"
|
|
4552
4652
|
],
|
|
4553
4653
|
"default": "TEXT"
|
|
4554
4654
|
},
|
|
@@ -5197,6 +5297,14 @@
|
|
|
5197
5297
|
}
|
|
5198
5298
|
}
|
|
5199
5299
|
},
|
|
5300
|
+
"puppetMessageChannelCardResponse": {
|
|
5301
|
+
"type": "object",
|
|
5302
|
+
"properties": {
|
|
5303
|
+
"channelCard": {
|
|
5304
|
+
"$ref": "#/definitions/puppetChannelCardPayload"
|
|
5305
|
+
}
|
|
5306
|
+
}
|
|
5307
|
+
},
|
|
5200
5308
|
"puppetMessageChannelResponse": {
|
|
5201
5309
|
"type": "object",
|
|
5202
5310
|
"properties": {
|
|
@@ -5374,6 +5482,14 @@
|
|
|
5374
5482
|
}
|
|
5375
5483
|
}
|
|
5376
5484
|
},
|
|
5485
|
+
"puppetMessageSendChannelCardResponse": {
|
|
5486
|
+
"type": "object",
|
|
5487
|
+
"properties": {
|
|
5488
|
+
"id": {
|
|
5489
|
+
"type": "string"
|
|
5490
|
+
}
|
|
5491
|
+
}
|
|
5492
|
+
},
|
|
5377
5493
|
"puppetMessageSendChannelResponse": {
|
|
5378
5494
|
"type": "object",
|
|
5379
5495
|
"properties": {
|
|
@@ -5500,10 +5616,11 @@
|
|
|
5500
5616
|
"MESSAGE_TYPE_CHANNEL",
|
|
5501
5617
|
"MESSAGE_TYPE_SYSTEM",
|
|
5502
5618
|
"MESSAGE_TYPE_MARKDOWN",
|
|
5503
|
-
"MESSAGE_TYPE_CALL_RECORD"
|
|
5619
|
+
"MESSAGE_TYPE_CALL_RECORD",
|
|
5620
|
+
"MESSAGE_TYPE_CHANNEL_CARD"
|
|
5504
5621
|
],
|
|
5505
5622
|
"default": "MESSAGE_TYPE_UNSPECIFIED",
|
|
5506
|
-
"description": "- MESSAGE_TYPE_ATTACHMENT: 文件消息\n - MESSAGE_TYPE_AUDIO: 音频\n - MESSAGE_TYPE_CONTACT: 名片\n - MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持\n - MESSAGE_TYPE_EMOTCION: 表情\n - MESSAGE_TYPE_IMAGE: 图片\n - MESSAGE_TYPE_TEXT: 文本\n - MESSAGE_TYPE_LOCATION: 地址\n - MESSAGE_TYPE_MINI_PROGRAM: 小程序\n - MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有\n - MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有\n - MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有\n - MESSAGE_TYPE_RECALLED: 撤回\n - MESSAGE_TYPE_URL: 链接\n - MESSAGE_TYPE_VIDEO: 视频\n - MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有\n - MESSAGE_TYPE_CHANNEL: 视频号\n - MESSAGE_TYPE_SYSTEM: 系统消息\n - MESSAGE_TYPE_MARKDOWN: MarkDown\n - MESSAGE_TYPE_CALL_RECORD:
|
|
5623
|
+
"description": "- MESSAGE_TYPE_ATTACHMENT: 文件消息\n - MESSAGE_TYPE_AUDIO: 音频\n - MESSAGE_TYPE_CONTACT: 名片\n - MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持\n - MESSAGE_TYPE_EMOTCION: 表情\n - MESSAGE_TYPE_IMAGE: 图片\n - MESSAGE_TYPE_TEXT: 文本\n - MESSAGE_TYPE_LOCATION: 地址\n - MESSAGE_TYPE_MINI_PROGRAM: 小程序\n - MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有\n - MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有\n - MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有\n - MESSAGE_TYPE_RECALLED: 撤回\n - MESSAGE_TYPE_URL: 链接\n - MESSAGE_TYPE_VIDEO: 视频\n - MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有\n - MESSAGE_TYPE_CHANNEL: 视频号\n - MESSAGE_TYPE_SYSTEM: 系统消息\n - MESSAGE_TYPE_MARKDOWN: MarkDown\n - MESSAGE_TYPE_CALL_RECORD: 通话记录\n - MESSAGE_TYPE_CHANNEL_CARD: 视频号名片",
|
|
5507
5624
|
"title": "消息类型"
|
|
5508
5625
|
},
|
|
5509
5626
|
"puppetMessageUrlResponse": {
|
|
@@ -66,6 +66,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
66
66
|
messageMiniProgram: IPuppetService_IMessageMiniProgram;
|
|
67
67
|
messageUrl: IPuppetService_IMessageUrl;
|
|
68
68
|
messageChannel: IPuppetService_IMessageChannel;
|
|
69
|
+
messageChannelCard: IPuppetService_IMessageChannelCard;
|
|
69
70
|
messageCallRecord: IPuppetService_IMessageCallRecord;
|
|
70
71
|
messageChatHistory: IPuppetService_IMessageChatHistory;
|
|
71
72
|
messageRecall: IPuppetService_IMessageRecall;
|
|
@@ -77,6 +78,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
77
78
|
messageSendUrl: IPuppetService_IMessageSendUrl;
|
|
78
79
|
messageSendLocation: IPuppetService_IMessageSendLocation;
|
|
79
80
|
messageSendChannel: IPuppetService_IMessageSendChannel;
|
|
81
|
+
messageSendChannelCard: IPuppetService_IMessageSendChannelCard;
|
|
80
82
|
messageSendPost: IPuppetService_IMessageSendPost;
|
|
81
83
|
messagePreview: IPuppetService_IMessagePreview;
|
|
82
84
|
getMessageBroadcastTarget: IPuppetService_IGetMessageBroadcastTarget;
|
|
@@ -514,6 +516,15 @@ interface IPuppetService_IMessageChannel extends grpc.MethodDefinition<wechaty_p
|
|
|
514
516
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
515
517
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
516
518
|
}
|
|
519
|
+
interface IPuppetService_IMessageChannelCard extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageChannelCardRequest, wechaty_puppet_message_pb.MessageChannelCardResponse> {
|
|
520
|
+
path: "/wechaty.Puppet/MessageChannelCard";
|
|
521
|
+
requestStream: false;
|
|
522
|
+
responseStream: false;
|
|
523
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelCardRequest>;
|
|
524
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelCardRequest>;
|
|
525
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelCardResponse>;
|
|
526
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelCardResponse>;
|
|
527
|
+
}
|
|
517
528
|
interface IPuppetService_IMessageCallRecord extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageCallRecordRequest, wechaty_puppet_message_pb.MessageCallRecordResponse> {
|
|
518
529
|
path: "/wechaty.Puppet/MessageCallRecord";
|
|
519
530
|
requestStream: false;
|
|
@@ -613,6 +624,15 @@ interface IPuppetService_IMessageSendChannel extends grpc.MethodDefinition<wecha
|
|
|
613
624
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
614
625
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
615
626
|
}
|
|
627
|
+
interface IPuppetService_IMessageSendChannelCard extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendChannelCardRequest, wechaty_puppet_message_pb.MessageSendChannelCardResponse> {
|
|
628
|
+
path: "/wechaty.Puppet/MessageSendChannelCard";
|
|
629
|
+
requestStream: false;
|
|
630
|
+
responseStream: false;
|
|
631
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelCardRequest>;
|
|
632
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelCardRequest>;
|
|
633
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelCardResponse>;
|
|
634
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelCardResponse>;
|
|
635
|
+
}
|
|
616
636
|
interface IPuppetService_IMessageSendPost extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendPostRequest, wechaty_puppet_message_pb.MessageSendPostResponse> {
|
|
617
637
|
path: "/wechaty.Puppet/MessageSendPost";
|
|
618
638
|
requestStream: false;
|
|
@@ -1172,6 +1192,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1172
1192
|
messageMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageMiniProgramRequest, wechaty_puppet_message_pb.MessageMiniProgramResponse>;
|
|
1173
1193
|
messageUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageUrlRequest, wechaty_puppet_message_pb.MessageUrlResponse>;
|
|
1174
1194
|
messageChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
1195
|
+
messageChannelCard: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChannelCardRequest, wechaty_puppet_message_pb.MessageChannelCardResponse>;
|
|
1175
1196
|
messageCallRecord: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageCallRecordRequest, wechaty_puppet_message_pb.MessageCallRecordResponse>;
|
|
1176
1197
|
messageChatHistory: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChatHistoryRequest, wechaty_puppet_message_pb.MessageChatHistoryResponse>;
|
|
1177
1198
|
messageRecall: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse>;
|
|
@@ -1183,6 +1204,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1183
1204
|
messageSendUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendUrlRequest, wechaty_puppet_message_pb.MessageSendUrlResponse>;
|
|
1184
1205
|
messageSendLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendLocationRequest, wechaty_puppet_message_pb.MessageSendLocationResponse>;
|
|
1185
1206
|
messageSendChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse>;
|
|
1207
|
+
messageSendChannelCard: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelCardRequest, wechaty_puppet_message_pb.MessageSendChannelCardResponse>;
|
|
1186
1208
|
messageSendPost: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendPostRequest, wechaty_puppet_message_pb.MessageSendPostResponse>;
|
|
1187
1209
|
messagePreview: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessagePreviewRequest, wechaty_puppet_message_pb.MessagePreviewResponse>;
|
|
1188
1210
|
getMessageBroadcastTarget: grpc.handleUnaryCall<wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest, wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse>;
|
|
@@ -1368,6 +1390,9 @@ export interface IPuppetClient {
|
|
|
1368
1390
|
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1369
1391
|
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1370
1392
|
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;
|
|
1393
|
+
messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1394
|
+
messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1395
|
+
messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1371
1396
|
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
1372
1397
|
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
1373
1398
|
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1401,6 +1426,9 @@ export interface IPuppetClient {
|
|
|
1401
1426
|
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1402
1427
|
messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1403
1428
|
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;
|
|
1429
|
+
messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1430
|
+
messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1431
|
+
messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1404
1432
|
messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
1405
1433
|
messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
1406
1434
|
messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1701,6 +1729,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1701
1729
|
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1702
1730
|
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;
|
|
1703
1731
|
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;
|
|
1732
|
+
public messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1733
|
+
public messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1734
|
+
public messageChannelCard(request: wechaty_puppet_message_pb.MessageChannelCardRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1704
1735
|
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
1705
1736
|
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
1706
1737
|
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1734,6 +1765,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1734
1765
|
public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1735
1766
|
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;
|
|
1736
1767
|
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;
|
|
1768
|
+
public messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1769
|
+
public messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1770
|
+
public messageSendChannelCard(request: wechaty_puppet_message_pb.MessageSendChannelCardRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelCardResponse) => void): grpc.ClientUnaryCall;
|
|
1737
1771
|
public messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
1738
1772
|
public messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
1739
1773
|
public messageSendPost(request: wechaty_puppet_message_pb.MessageSendPostRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendPostResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -912,6 +912,28 @@ function deserialize_wechaty_puppet_MessageCallRecordResponse(buffer_arg) {
|
|
|
912
912
|
return wechaty_puppet_message_pb.MessageCallRecordResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
+
function serialize_wechaty_puppet_MessageChannelCardRequest(arg) {
|
|
916
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelCardRequest)) {
|
|
917
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageChannelCardRequest');
|
|
918
|
+
}
|
|
919
|
+
return Buffer.from(arg.serializeBinary());
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
function deserialize_wechaty_puppet_MessageChannelCardRequest(buffer_arg) {
|
|
923
|
+
return wechaty_puppet_message_pb.MessageChannelCardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
function serialize_wechaty_puppet_MessageChannelCardResponse(arg) {
|
|
927
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelCardResponse)) {
|
|
928
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageChannelCardResponse');
|
|
929
|
+
}
|
|
930
|
+
return Buffer.from(arg.serializeBinary());
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
function deserialize_wechaty_puppet_MessageChannelCardResponse(buffer_arg) {
|
|
934
|
+
return wechaty_puppet_message_pb.MessageChannelCardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
935
|
+
}
|
|
936
|
+
|
|
915
937
|
function serialize_wechaty_puppet_MessageChannelRequest(arg) {
|
|
916
938
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelRequest)) {
|
|
917
939
|
throw new Error('Expected argument of type wechaty.puppet.MessageChannelRequest');
|
|
@@ -1154,6 +1176,28 @@ function deserialize_wechaty_puppet_MessageRecallResponse(buffer_arg) {
|
|
|
1154
1176
|
return wechaty_puppet_message_pb.MessageRecallResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1155
1177
|
}
|
|
1156
1178
|
|
|
1179
|
+
function serialize_wechaty_puppet_MessageSendChannelCardRequest(arg) {
|
|
1180
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelCardRequest)) {
|
|
1181
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelCardRequest');
|
|
1182
|
+
}
|
|
1183
|
+
return Buffer.from(arg.serializeBinary());
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
function deserialize_wechaty_puppet_MessageSendChannelCardRequest(buffer_arg) {
|
|
1187
|
+
return wechaty_puppet_message_pb.MessageSendChannelCardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
function serialize_wechaty_puppet_MessageSendChannelCardResponse(arg) {
|
|
1191
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelCardResponse)) {
|
|
1192
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelCardResponse');
|
|
1193
|
+
}
|
|
1194
|
+
return Buffer.from(arg.serializeBinary());
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
function deserialize_wechaty_puppet_MessageSendChannelCardResponse(buffer_arg) {
|
|
1198
|
+
return wechaty_puppet_message_pb.MessageSendChannelCardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1157
1201
|
function serialize_wechaty_puppet_MessageSendChannelRequest(arg) {
|
|
1158
1202
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelRequest)) {
|
|
1159
1203
|
throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelRequest');
|
|
@@ -2895,6 +2939,17 @@ messageFile: {
|
|
|
2895
2939
|
responseSerialize: serialize_wechaty_puppet_MessageChannelResponse,
|
|
2896
2940
|
responseDeserialize: deserialize_wechaty_puppet_MessageChannelResponse,
|
|
2897
2941
|
},
|
|
2942
|
+
messageChannelCard: {
|
|
2943
|
+
path: '/wechaty.Puppet/MessageChannelCard',
|
|
2944
|
+
requestStream: false,
|
|
2945
|
+
responseStream: false,
|
|
2946
|
+
requestType: wechaty_puppet_message_pb.MessageChannelCardRequest,
|
|
2947
|
+
responseType: wechaty_puppet_message_pb.MessageChannelCardResponse,
|
|
2948
|
+
requestSerialize: serialize_wechaty_puppet_MessageChannelCardRequest,
|
|
2949
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageChannelCardRequest,
|
|
2950
|
+
responseSerialize: serialize_wechaty_puppet_MessageChannelCardResponse,
|
|
2951
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageChannelCardResponse,
|
|
2952
|
+
},
|
|
2898
2953
|
messageCallRecord: {
|
|
2899
2954
|
path: '/wechaty.Puppet/MessageCallRecord',
|
|
2900
2955
|
requestStream: false,
|
|
@@ -3016,6 +3071,17 @@ messageFile: {
|
|
|
3016
3071
|
responseSerialize: serialize_wechaty_puppet_MessageSendChannelResponse,
|
|
3017
3072
|
responseDeserialize: deserialize_wechaty_puppet_MessageSendChannelResponse,
|
|
3018
3073
|
},
|
|
3074
|
+
messageSendChannelCard: {
|
|
3075
|
+
path: '/wechaty.Puppet/MessageSendChannelCard',
|
|
3076
|
+
requestStream: false,
|
|
3077
|
+
responseStream: false,
|
|
3078
|
+
requestType: wechaty_puppet_message_pb.MessageSendChannelCardRequest,
|
|
3079
|
+
responseType: wechaty_puppet_message_pb.MessageSendChannelCardResponse,
|
|
3080
|
+
requestSerialize: serialize_wechaty_puppet_MessageSendChannelCardRequest,
|
|
3081
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageSendChannelCardRequest,
|
|
3082
|
+
responseSerialize: serialize_wechaty_puppet_MessageSendChannelCardResponse,
|
|
3083
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageSendChannelCardResponse,
|
|
3084
|
+
},
|
|
3019
3085
|
messageSendPost: {
|
|
3020
3086
|
path: '/wechaty.Puppet/MessageSendPost',
|
|
3021
3087
|
requestStream: false,
|
|
@@ -397,6 +397,15 @@ type PuppetMessageChannel = {
|
|
|
397
397
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageChannelResponse;
|
|
398
398
|
};
|
|
399
399
|
|
|
400
|
+
type PuppetMessageChannelCard = {
|
|
401
|
+
readonly methodName: string;
|
|
402
|
+
readonly service: typeof Puppet;
|
|
403
|
+
readonly requestStream: false;
|
|
404
|
+
readonly responseStream: false;
|
|
405
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageChannelCardRequest;
|
|
406
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageChannelCardResponse;
|
|
407
|
+
};
|
|
408
|
+
|
|
400
409
|
type PuppetMessageCallRecord = {
|
|
401
410
|
readonly methodName: string;
|
|
402
411
|
readonly service: typeof Puppet;
|
|
@@ -496,6 +505,15 @@ type PuppetMessageSendChannel = {
|
|
|
496
505
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendChannelResponse;
|
|
497
506
|
};
|
|
498
507
|
|
|
508
|
+
type PuppetMessageSendChannelCard = {
|
|
509
|
+
readonly methodName: string;
|
|
510
|
+
readonly service: typeof Puppet;
|
|
511
|
+
readonly requestStream: false;
|
|
512
|
+
readonly responseStream: false;
|
|
513
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageSendChannelCardRequest;
|
|
514
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageSendChannelCardResponse;
|
|
515
|
+
};
|
|
516
|
+
|
|
499
517
|
type PuppetMessageSendPost = {
|
|
500
518
|
readonly methodName: string;
|
|
501
519
|
readonly service: typeof Puppet;
|
|
@@ -1053,6 +1071,7 @@ export class Puppet {
|
|
|
1053
1071
|
static readonly MessageMiniProgram: PuppetMessageMiniProgram;
|
|
1054
1072
|
static readonly MessageUrl: PuppetMessageUrl;
|
|
1055
1073
|
static readonly MessageChannel: PuppetMessageChannel;
|
|
1074
|
+
static readonly MessageChannelCard: PuppetMessageChannelCard;
|
|
1056
1075
|
static readonly MessageCallRecord: PuppetMessageCallRecord;
|
|
1057
1076
|
static readonly MessageChatHistory: PuppetMessageChatHistory;
|
|
1058
1077
|
static readonly MessageRecall: PuppetMessageRecall;
|
|
@@ -1064,6 +1083,7 @@ export class Puppet {
|
|
|
1064
1083
|
static readonly MessageSendUrl: PuppetMessageSendUrl;
|
|
1065
1084
|
static readonly MessageSendLocation: PuppetMessageSendLocation;
|
|
1066
1085
|
static readonly MessageSendChannel: PuppetMessageSendChannel;
|
|
1086
|
+
static readonly MessageSendChannelCard: PuppetMessageSendChannelCard;
|
|
1067
1087
|
static readonly MessageSendPost: PuppetMessageSendPost;
|
|
1068
1088
|
static readonly MessagePreview: PuppetMessagePreview;
|
|
1069
1089
|
static readonly GetMessageBroadcastTarget: PuppetGetMessageBroadcastTarget;
|
|
@@ -1525,6 +1545,15 @@ export class PuppetClient {
|
|
|
1525
1545
|
requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
|
|
1526
1546
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
|
|
1527
1547
|
): UnaryResponse;
|
|
1548
|
+
messageChannelCard(
|
|
1549
|
+
requestMessage: wechaty_puppet_message_pb.MessageChannelCardRequest,
|
|
1550
|
+
metadata: grpc.Metadata,
|
|
1551
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelCardResponse|null) => void
|
|
1552
|
+
): UnaryResponse;
|
|
1553
|
+
messageChannelCard(
|
|
1554
|
+
requestMessage: wechaty_puppet_message_pb.MessageChannelCardRequest,
|
|
1555
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelCardResponse|null) => void
|
|
1556
|
+
): UnaryResponse;
|
|
1528
1557
|
messageCallRecord(
|
|
1529
1558
|
requestMessage: wechaty_puppet_message_pb.MessageCallRecordRequest,
|
|
1530
1559
|
metadata: grpc.Metadata,
|
|
@@ -1624,6 +1653,15 @@ export class PuppetClient {
|
|
|
1624
1653
|
requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
|
|
1625
1654
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
|
|
1626
1655
|
): UnaryResponse;
|
|
1656
|
+
messageSendChannelCard(
|
|
1657
|
+
requestMessage: wechaty_puppet_message_pb.MessageSendChannelCardRequest,
|
|
1658
|
+
metadata: grpc.Metadata,
|
|
1659
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelCardResponse|null) => void
|
|
1660
|
+
): UnaryResponse;
|
|
1661
|
+
messageSendChannelCard(
|
|
1662
|
+
requestMessage: wechaty_puppet_message_pb.MessageSendChannelCardRequest,
|
|
1663
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelCardResponse|null) => void
|
|
1664
|
+
): UnaryResponse;
|
|
1627
1665
|
messageSendPost(
|
|
1628
1666
|
requestMessage: wechaty_puppet_message_pb.MessageSendPostRequest,
|
|
1629
1667
|
metadata: grpc.Metadata,
|