@juzi/wechaty-grpc 1.0.102 → 1.0.104
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/channel_pb.d.ts +70 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +544 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +115 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +168 -1
- 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.proto +19 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet.proto +6 -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/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/message_pb.d.ts +84 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +115 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +168 -1
- 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.proto +19 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +15 -0
- package/dist/esm/proto/wechaty/puppet.proto +6 -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_pb.d.ts +70 -0
- package/out/wechaty/puppet/channel_pb.js +544 -2
- package/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/out/wechaty/puppet/message_pb.js +638 -0
- package/out/wechaty/puppet.openapi.yaml +115 -1
- package/out/wechaty/puppet.swagger.json +168 -1
- 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.104
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -3099,6 +3099,46 @@ paths:
|
|
|
3099
3099
|
$ref: '#/definitions/puppetMessageSendFileRequest'
|
|
3100
3100
|
tags:
|
|
3101
3101
|
- Puppet
|
|
3102
|
+
/wechaty.Puppet/MessageVoice:
|
|
3103
|
+
post:
|
|
3104
|
+
operationId: Puppet_MessageVoice
|
|
3105
|
+
responses:
|
|
3106
|
+
'200':
|
|
3107
|
+
description: A successful response.
|
|
3108
|
+
schema:
|
|
3109
|
+
$ref: '#/definitions/puppetMessageVoiceResponse'
|
|
3110
|
+
default:
|
|
3111
|
+
description: An unexpected error response.
|
|
3112
|
+
schema:
|
|
3113
|
+
$ref: '#/definitions/rpcStatus'
|
|
3114
|
+
parameters:
|
|
3115
|
+
- name: body
|
|
3116
|
+
in: body
|
|
3117
|
+
required: true
|
|
3118
|
+
schema:
|
|
3119
|
+
$ref: '#/definitions/puppetMessageVoiceRequest'
|
|
3120
|
+
tags:
|
|
3121
|
+
- Puppet
|
|
3122
|
+
/wechaty.Puppet/MessageVoiceText:
|
|
3123
|
+
post:
|
|
3124
|
+
operationId: Puppet_MessageVoiceText
|
|
3125
|
+
responses:
|
|
3126
|
+
'200':
|
|
3127
|
+
description: A successful response.
|
|
3128
|
+
schema:
|
|
3129
|
+
$ref: '#/definitions/puppetMessageVoiceTextResponse'
|
|
3130
|
+
default:
|
|
3131
|
+
description: An unexpected error response.
|
|
3132
|
+
schema:
|
|
3133
|
+
$ref: '#/definitions/rpcStatus'
|
|
3134
|
+
parameters:
|
|
3135
|
+
- name: body
|
|
3136
|
+
in: body
|
|
3137
|
+
required: true
|
|
3138
|
+
schema:
|
|
3139
|
+
$ref: '#/definitions/puppetMessageVoiceTextRequest'
|
|
3140
|
+
tags:
|
|
3141
|
+
- Puppet
|
|
3102
3142
|
/wecom/corpMessageInterceptionStrategyList:
|
|
3103
3143
|
get:
|
|
3104
3144
|
operationId: Puppet_GetCorpMessageInterceptionStrategies
|
|
@@ -3632,6 +3672,38 @@ definitions:
|
|
|
3632
3672
|
- CHANNEL_FEED_TYPE_VIDEO
|
|
3633
3673
|
- CHANNEL_FEED_TYPE_LIVE
|
|
3634
3674
|
default: CHANNEL_FEED_TYPE_UNKNOWN
|
|
3675
|
+
puppetChannelMedia:
|
|
3676
|
+
type: object
|
|
3677
|
+
properties:
|
|
3678
|
+
mediaType:
|
|
3679
|
+
type: integer
|
|
3680
|
+
format: int32
|
|
3681
|
+
title: 资源类型 2:图片 4:视频
|
|
3682
|
+
url:
|
|
3683
|
+
type: string
|
|
3684
|
+
title: 原始媒体流地址
|
|
3685
|
+
thumbUrl:
|
|
3686
|
+
type: string
|
|
3687
|
+
title: 视频第一帧缩略图地址
|
|
3688
|
+
fullCoverUrl:
|
|
3689
|
+
type: string
|
|
3690
|
+
title: 封面缩略图地址
|
|
3691
|
+
coverUrl:
|
|
3692
|
+
type: string
|
|
3693
|
+
title: 封面地址
|
|
3694
|
+
width:
|
|
3695
|
+
type: integer
|
|
3696
|
+
format: int32
|
|
3697
|
+
title: 缩略图宽度,默认 1080
|
|
3698
|
+
height:
|
|
3699
|
+
type: integer
|
|
3700
|
+
format: int32
|
|
3701
|
+
title: 缩略图高度,默认 1920
|
|
3702
|
+
videoPlayDuration:
|
|
3703
|
+
type: integer
|
|
3704
|
+
format: int32
|
|
3705
|
+
title: 视频播放时长(秒)
|
|
3706
|
+
title: 视频号媒体资源,对应接收视频号 finderFeed.mediaList.media
|
|
3635
3707
|
puppetChannelPayload:
|
|
3636
3708
|
type: object
|
|
3637
3709
|
properties:
|
|
@@ -3664,6 +3736,26 @@ definitions:
|
|
|
3664
3736
|
title: 视频号直播专属
|
|
3665
3737
|
objectNonceId:
|
|
3666
3738
|
type: string
|
|
3739
|
+
username:
|
|
3740
|
+
type: string
|
|
3741
|
+
description: 视频号 finder userName
|
|
3742
|
+
title: 个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed
|
|
3743
|
+
authIconType:
|
|
3744
|
+
type: integer
|
|
3745
|
+
format: int32
|
|
3746
|
+
title: 认证类型
|
|
3747
|
+
authIconUrl:
|
|
3748
|
+
type: string
|
|
3749
|
+
title: 授权图标地址
|
|
3750
|
+
fromUserName:
|
|
3751
|
+
type: string
|
|
3752
|
+
title: 视频号转发自好友 userName
|
|
3753
|
+
mediaList:
|
|
3754
|
+
type: array
|
|
3755
|
+
items:
|
|
3756
|
+
type: object
|
|
3757
|
+
$ref: '#/definitions/puppetChannelMedia'
|
|
3758
|
+
title: 媒体资源列表(图片类视频号可多条)
|
|
3667
3759
|
puppetChatHistoryContent:
|
|
3668
3760
|
type: object
|
|
3669
3761
|
properties:
|
|
@@ -4773,6 +4865,28 @@ definitions:
|
|
|
4773
4865
|
The compatible code will be removed after Dec 31, 2022
|
|
4774
4866
|
urlLink:
|
|
4775
4867
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
4868
|
+
puppetMessageVoiceRequest:
|
|
4869
|
+
type: object
|
|
4870
|
+
properties:
|
|
4871
|
+
id:
|
|
4872
|
+
type: string
|
|
4873
|
+
puppetMessageVoiceResponse:
|
|
4874
|
+
type: object
|
|
4875
|
+
properties:
|
|
4876
|
+
fileBox:
|
|
4877
|
+
type: string
|
|
4878
|
+
puppetMessageVoiceTextRequest:
|
|
4879
|
+
type: object
|
|
4880
|
+
properties:
|
|
4881
|
+
id:
|
|
4882
|
+
type: string
|
|
4883
|
+
puppetMessageVoiceTextResponse:
|
|
4884
|
+
type: object
|
|
4885
|
+
properties:
|
|
4886
|
+
text:
|
|
4887
|
+
type: string
|
|
4888
|
+
noSpeech:
|
|
4889
|
+
type: boolean
|
|
4776
4890
|
puppetMiniProgramPayload:
|
|
4777
4891
|
type: object
|
|
4778
4892
|
properties:
|
|
@@ -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.104",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -4685,6 +4685,70 @@
|
|
|
4685
4685
|
]
|
|
4686
4686
|
}
|
|
4687
4687
|
},
|
|
4688
|
+
"/wechaty.Puppet/MessageVoice": {
|
|
4689
|
+
"post": {
|
|
4690
|
+
"operationId": "Puppet_MessageVoice",
|
|
4691
|
+
"responses": {
|
|
4692
|
+
"200": {
|
|
4693
|
+
"description": "A successful response.",
|
|
4694
|
+
"schema": {
|
|
4695
|
+
"$ref": "#/definitions/puppetMessageVoiceResponse"
|
|
4696
|
+
}
|
|
4697
|
+
},
|
|
4698
|
+
"default": {
|
|
4699
|
+
"description": "An unexpected error response.",
|
|
4700
|
+
"schema": {
|
|
4701
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4702
|
+
}
|
|
4703
|
+
}
|
|
4704
|
+
},
|
|
4705
|
+
"parameters": [
|
|
4706
|
+
{
|
|
4707
|
+
"name": "body",
|
|
4708
|
+
"in": "body",
|
|
4709
|
+
"required": true,
|
|
4710
|
+
"schema": {
|
|
4711
|
+
"$ref": "#/definitions/puppetMessageVoiceRequest"
|
|
4712
|
+
}
|
|
4713
|
+
}
|
|
4714
|
+
],
|
|
4715
|
+
"tags": [
|
|
4716
|
+
"Puppet"
|
|
4717
|
+
]
|
|
4718
|
+
}
|
|
4719
|
+
},
|
|
4720
|
+
"/wechaty.Puppet/MessageVoiceText": {
|
|
4721
|
+
"post": {
|
|
4722
|
+
"operationId": "Puppet_MessageVoiceText",
|
|
4723
|
+
"responses": {
|
|
4724
|
+
"200": {
|
|
4725
|
+
"description": "A successful response.",
|
|
4726
|
+
"schema": {
|
|
4727
|
+
"$ref": "#/definitions/puppetMessageVoiceTextResponse"
|
|
4728
|
+
}
|
|
4729
|
+
},
|
|
4730
|
+
"default": {
|
|
4731
|
+
"description": "An unexpected error response.",
|
|
4732
|
+
"schema": {
|
|
4733
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
},
|
|
4737
|
+
"parameters": [
|
|
4738
|
+
{
|
|
4739
|
+
"name": "body",
|
|
4740
|
+
"in": "body",
|
|
4741
|
+
"required": true,
|
|
4742
|
+
"schema": {
|
|
4743
|
+
"$ref": "#/definitions/puppetMessageVoiceTextRequest"
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4746
|
+
],
|
|
4747
|
+
"tags": [
|
|
4748
|
+
"Puppet"
|
|
4749
|
+
]
|
|
4750
|
+
}
|
|
4751
|
+
},
|
|
4688
4752
|
"/wecom/corpMessageInterceptionStrategyList": {
|
|
4689
4753
|
"get": {
|
|
4690
4754
|
"operationId": "Puppet_GetCorpMessageInterceptionStrategies",
|
|
@@ -5407,6 +5471,48 @@
|
|
|
5407
5471
|
],
|
|
5408
5472
|
"default": "CHANNEL_FEED_TYPE_UNKNOWN"
|
|
5409
5473
|
},
|
|
5474
|
+
"puppetChannelMedia": {
|
|
5475
|
+
"type": "object",
|
|
5476
|
+
"properties": {
|
|
5477
|
+
"mediaType": {
|
|
5478
|
+
"type": "integer",
|
|
5479
|
+
"format": "int32",
|
|
5480
|
+
"title": "资源类型 2:图片 4:视频"
|
|
5481
|
+
},
|
|
5482
|
+
"url": {
|
|
5483
|
+
"type": "string",
|
|
5484
|
+
"title": "原始媒体流地址"
|
|
5485
|
+
},
|
|
5486
|
+
"thumbUrl": {
|
|
5487
|
+
"type": "string",
|
|
5488
|
+
"title": "视频第一帧缩略图地址"
|
|
5489
|
+
},
|
|
5490
|
+
"fullCoverUrl": {
|
|
5491
|
+
"type": "string",
|
|
5492
|
+
"title": "封面缩略图地址"
|
|
5493
|
+
},
|
|
5494
|
+
"coverUrl": {
|
|
5495
|
+
"type": "string",
|
|
5496
|
+
"title": "封面地址"
|
|
5497
|
+
},
|
|
5498
|
+
"width": {
|
|
5499
|
+
"type": "integer",
|
|
5500
|
+
"format": "int32",
|
|
5501
|
+
"title": "缩略图宽度,默认 1080"
|
|
5502
|
+
},
|
|
5503
|
+
"height": {
|
|
5504
|
+
"type": "integer",
|
|
5505
|
+
"format": "int32",
|
|
5506
|
+
"title": "缩略图高度,默认 1920"
|
|
5507
|
+
},
|
|
5508
|
+
"videoPlayDuration": {
|
|
5509
|
+
"type": "integer",
|
|
5510
|
+
"format": "int32",
|
|
5511
|
+
"title": "视频播放时长(秒)"
|
|
5512
|
+
}
|
|
5513
|
+
},
|
|
5514
|
+
"title": "视频号媒体资源,对应接收视频号 finderFeed.mediaList.media"
|
|
5515
|
+
},
|
|
5410
5516
|
"puppetChannelPayload": {
|
|
5411
5517
|
"type": "object",
|
|
5412
5518
|
"properties": {
|
|
@@ -5448,6 +5554,32 @@
|
|
|
5448
5554
|
},
|
|
5449
5555
|
"objectNonceId": {
|
|
5450
5556
|
"type": "string"
|
|
5557
|
+
},
|
|
5558
|
+
"username": {
|
|
5559
|
+
"type": "string",
|
|
5560
|
+
"description": "视频号 finder userName",
|
|
5561
|
+
"title": "个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed"
|
|
5562
|
+
},
|
|
5563
|
+
"authIconType": {
|
|
5564
|
+
"type": "integer",
|
|
5565
|
+
"format": "int32",
|
|
5566
|
+
"title": "认证类型"
|
|
5567
|
+
},
|
|
5568
|
+
"authIconUrl": {
|
|
5569
|
+
"type": "string",
|
|
5570
|
+
"title": "授权图标地址"
|
|
5571
|
+
},
|
|
5572
|
+
"fromUserName": {
|
|
5573
|
+
"type": "string",
|
|
5574
|
+
"title": "视频号转发自好友 userName"
|
|
5575
|
+
},
|
|
5576
|
+
"mediaList": {
|
|
5577
|
+
"type": "array",
|
|
5578
|
+
"items": {
|
|
5579
|
+
"type": "object",
|
|
5580
|
+
"$ref": "#/definitions/puppetChannelMedia"
|
|
5581
|
+
},
|
|
5582
|
+
"title": "媒体资源列表(图片类视频号可多条)"
|
|
5451
5583
|
}
|
|
5452
5584
|
}
|
|
5453
5585
|
},
|
|
@@ -6880,6 +7012,41 @@
|
|
|
6880
7012
|
}
|
|
6881
7013
|
}
|
|
6882
7014
|
},
|
|
7015
|
+
"puppetMessageVoiceRequest": {
|
|
7016
|
+
"type": "object",
|
|
7017
|
+
"properties": {
|
|
7018
|
+
"id": {
|
|
7019
|
+
"type": "string"
|
|
7020
|
+
}
|
|
7021
|
+
}
|
|
7022
|
+
},
|
|
7023
|
+
"puppetMessageVoiceResponse": {
|
|
7024
|
+
"type": "object",
|
|
7025
|
+
"properties": {
|
|
7026
|
+
"fileBox": {
|
|
7027
|
+
"type": "string"
|
|
7028
|
+
}
|
|
7029
|
+
}
|
|
7030
|
+
},
|
|
7031
|
+
"puppetMessageVoiceTextRequest": {
|
|
7032
|
+
"type": "object",
|
|
7033
|
+
"properties": {
|
|
7034
|
+
"id": {
|
|
7035
|
+
"type": "string"
|
|
7036
|
+
}
|
|
7037
|
+
}
|
|
7038
|
+
},
|
|
7039
|
+
"puppetMessageVoiceTextResponse": {
|
|
7040
|
+
"type": "object",
|
|
7041
|
+
"properties": {
|
|
7042
|
+
"text": {
|
|
7043
|
+
"type": "string"
|
|
7044
|
+
},
|
|
7045
|
+
"noSpeech": {
|
|
7046
|
+
"type": "boolean"
|
|
7047
|
+
}
|
|
7048
|
+
}
|
|
7049
|
+
},
|
|
6883
7050
|
"puppetMiniProgramPayload": {
|
|
6884
7051
|
"type": "object",
|
|
6885
7052
|
"properties": {
|
|
@@ -61,6 +61,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
61
61
|
conversationRead: IPuppetService_IConversationRead;
|
|
62
62
|
messageFile: IPuppetService_IMessageFile;
|
|
63
63
|
messageImage: IPuppetService_IMessageImage;
|
|
64
|
+
messageVoice: IPuppetService_IMessageVoice;
|
|
65
|
+
messageVoiceText: IPuppetService_IMessageVoiceText;
|
|
64
66
|
messageSendFile: IPuppetService_IMessageSendFile;
|
|
65
67
|
messagePayload: IPuppetService_IMessagePayload;
|
|
66
68
|
messageContact: IPuppetService_IMessageContact;
|
|
@@ -482,6 +484,24 @@ interface IPuppetService_IMessageImage extends grpc.MethodDefinition<wechaty_pup
|
|
|
482
484
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageImageResponse>;
|
|
483
485
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageImageResponse>;
|
|
484
486
|
}
|
|
487
|
+
interface IPuppetService_IMessageVoice extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageVoiceRequest, wechaty_puppet_message_pb.MessageVoiceResponse> {
|
|
488
|
+
path: "/wechaty.Puppet/MessageVoice";
|
|
489
|
+
requestStream: false;
|
|
490
|
+
responseStream: false;
|
|
491
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceRequest>;
|
|
492
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceRequest>;
|
|
493
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
494
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
495
|
+
}
|
|
496
|
+
interface IPuppetService_IMessageVoiceText extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageVoiceTextRequest, wechaty_puppet_message_pb.MessageVoiceTextResponse> {
|
|
497
|
+
path: "/wechaty.Puppet/MessageVoiceText";
|
|
498
|
+
requestStream: false;
|
|
499
|
+
responseStream: false;
|
|
500
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceTextRequest>;
|
|
501
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceTextRequest>;
|
|
502
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
503
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
504
|
+
}
|
|
485
505
|
interface IPuppetService_IMessageSendFile extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse> {
|
|
486
506
|
path: "/wechaty.Puppet/MessageSendFile";
|
|
487
507
|
requestStream: false;
|
|
@@ -1377,6 +1397,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1377
1397
|
conversationRead: grpc.handleUnaryCall<wechaty_puppet_conversation_pb.ConversationReadRequest, wechaty_puppet_conversation_pb.ConversationReadResponse>;
|
|
1378
1398
|
messageFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageFileRequest, wechaty_puppet_message_pb.MessageFileResponse>;
|
|
1379
1399
|
messageImage: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageImageRequest, wechaty_puppet_message_pb.MessageImageResponse>;
|
|
1400
|
+
messageVoice: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageVoiceRequest, wechaty_puppet_message_pb.MessageVoiceResponse>;
|
|
1401
|
+
messageVoiceText: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageVoiceTextRequest, wechaty_puppet_message_pb.MessageVoiceTextResponse>;
|
|
1380
1402
|
messageSendFile: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendFileRequest, wechaty_puppet_message_pb.MessageSendFileResponse>;
|
|
1381
1403
|
messagePayload: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessagePayloadRequest, wechaty_puppet_message_pb.MessagePayloadResponse>;
|
|
1382
1404
|
messageContact: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageContactRequest, wechaty_puppet_message_pb.MessageContactResponse>;
|
|
@@ -1582,6 +1604,12 @@ export interface IPuppetClient {
|
|
|
1582
1604
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1583
1605
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1584
1606
|
messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1607
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1608
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1609
|
+
messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
1610
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1611
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1612
|
+
messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1585
1613
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1586
1614
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1587
1615
|
messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1978,6 +2006,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1978
2006
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1979
2007
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
1980
2008
|
public messageImage(request: wechaty_puppet_message_pb.MessageImageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageImageResponse) => void): grpc.ClientUnaryCall;
|
|
2009
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2010
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2011
|
+
public messageVoice(request: wechaty_puppet_message_pb.MessageVoiceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceResponse) => void): grpc.ClientUnaryCall;
|
|
2012
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
2013
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
2014
|
+
public messageVoiceText(request: wechaty_puppet_message_pb.MessageVoiceTextRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageVoiceTextResponse) => void): grpc.ClientUnaryCall;
|
|
1981
2015
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1982
2016
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
1983
2017
|
public messageSendFile(request: wechaty_puppet_message_pb.MessageSendFileRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendFileResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1771,6 +1771,50 @@ function deserialize_wechaty_puppet_MessageUrlResponse(buffer_arg) {
|
|
|
1771
1771
|
return wechaty_puppet_message_pb.MessageUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
+
function serialize_wechaty_puppet_MessageVoiceRequest(arg) {
|
|
1775
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceRequest)) {
|
|
1776
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceRequest');
|
|
1777
|
+
}
|
|
1778
|
+
return Buffer.from(arg.serializeBinary());
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
function deserialize_wechaty_puppet_MessageVoiceRequest(buffer_arg) {
|
|
1782
|
+
return wechaty_puppet_message_pb.MessageVoiceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
function serialize_wechaty_puppet_MessageVoiceResponse(arg) {
|
|
1786
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceResponse)) {
|
|
1787
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceResponse');
|
|
1788
|
+
}
|
|
1789
|
+
return Buffer.from(arg.serializeBinary());
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
function deserialize_wechaty_puppet_MessageVoiceResponse(buffer_arg) {
|
|
1793
|
+
return wechaty_puppet_message_pb.MessageVoiceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
function serialize_wechaty_puppet_MessageVoiceTextRequest(arg) {
|
|
1797
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceTextRequest)) {
|
|
1798
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceTextRequest');
|
|
1799
|
+
}
|
|
1800
|
+
return Buffer.from(arg.serializeBinary());
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
function deserialize_wechaty_puppet_MessageVoiceTextRequest(buffer_arg) {
|
|
1804
|
+
return wechaty_puppet_message_pb.MessageVoiceTextRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
function serialize_wechaty_puppet_MessageVoiceTextResponse(arg) {
|
|
1808
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageVoiceTextResponse)) {
|
|
1809
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageVoiceTextResponse');
|
|
1810
|
+
}
|
|
1811
|
+
return Buffer.from(arg.serializeBinary());
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
function deserialize_wechaty_puppet_MessageVoiceTextResponse(buffer_arg) {
|
|
1815
|
+
return wechaty_puppet_message_pb.MessageVoiceTextResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1774
1818
|
function serialize_wechaty_puppet_MomentCoverageRequest(arg) {
|
|
1775
1819
|
if (!(arg instanceof wechaty_puppet_moment_pb.MomentCoverageRequest)) {
|
|
1776
1820
|
throw new Error('Expected argument of type wechaty.puppet.MomentCoverageRequest');
|
|
@@ -3292,6 +3336,28 @@ messageFile: {
|
|
|
3292
3336
|
responseSerialize: serialize_wechaty_puppet_MessageImageResponse,
|
|
3293
3337
|
responseDeserialize: deserialize_wechaty_puppet_MessageImageResponse,
|
|
3294
3338
|
},
|
|
3339
|
+
messageVoice: {
|
|
3340
|
+
path: '/wechaty.Puppet/MessageVoice',
|
|
3341
|
+
requestStream: false,
|
|
3342
|
+
responseStream: false,
|
|
3343
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
3344
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceResponse,
|
|
3345
|
+
requestSerialize: serialize_wechaty_puppet_MessageVoiceRequest,
|
|
3346
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageVoiceRequest,
|
|
3347
|
+
responseSerialize: serialize_wechaty_puppet_MessageVoiceResponse,
|
|
3348
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageVoiceResponse,
|
|
3349
|
+
},
|
|
3350
|
+
messageVoiceText: {
|
|
3351
|
+
path: '/wechaty.Puppet/MessageVoiceText',
|
|
3352
|
+
requestStream: false,
|
|
3353
|
+
responseStream: false,
|
|
3354
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
3355
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceTextResponse,
|
|
3356
|
+
requestSerialize: serialize_wechaty_puppet_MessageVoiceTextRequest,
|
|
3357
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageVoiceTextRequest,
|
|
3358
|
+
responseSerialize: serialize_wechaty_puppet_MessageVoiceTextResponse,
|
|
3359
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageVoiceTextResponse,
|
|
3360
|
+
},
|
|
3295
3361
|
messageSendFile: {
|
|
3296
3362
|
path: '/wechaty.Puppet/MessageSendFile',
|
|
3297
3363
|
requestStream: false,
|
|
@@ -344,6 +344,24 @@ type PuppetMessageImage = {
|
|
|
344
344
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageImageResponse;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
+
type PuppetMessageVoice = {
|
|
348
|
+
readonly methodName: string;
|
|
349
|
+
readonly service: typeof Puppet;
|
|
350
|
+
readonly requestStream: false;
|
|
351
|
+
readonly responseStream: false;
|
|
352
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageVoiceRequest;
|
|
353
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageVoiceResponse;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
type PuppetMessageVoiceText = {
|
|
357
|
+
readonly methodName: string;
|
|
358
|
+
readonly service: typeof Puppet;
|
|
359
|
+
readonly requestStream: false;
|
|
360
|
+
readonly responseStream: false;
|
|
361
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageVoiceTextRequest;
|
|
362
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageVoiceTextResponse;
|
|
363
|
+
};
|
|
364
|
+
|
|
347
365
|
type PuppetMessageSendFile = {
|
|
348
366
|
readonly methodName: string;
|
|
349
367
|
readonly service: typeof Puppet;
|
|
@@ -1237,6 +1255,8 @@ export class Puppet {
|
|
|
1237
1255
|
static readonly ConversationRead: PuppetConversationRead;
|
|
1238
1256
|
static readonly MessageFile: PuppetMessageFile;
|
|
1239
1257
|
static readonly MessageImage: PuppetMessageImage;
|
|
1258
|
+
static readonly MessageVoice: PuppetMessageVoice;
|
|
1259
|
+
static readonly MessageVoiceText: PuppetMessageVoiceText;
|
|
1240
1260
|
static readonly MessageSendFile: PuppetMessageSendFile;
|
|
1241
1261
|
static readonly MessagePayload: PuppetMessagePayload;
|
|
1242
1262
|
static readonly MessageContact: PuppetMessageContact;
|
|
@@ -1682,6 +1702,24 @@ export class PuppetClient {
|
|
|
1682
1702
|
requestMessage: wechaty_puppet_message_pb.MessageImageRequest,
|
|
1683
1703
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageImageResponse|null) => void
|
|
1684
1704
|
): UnaryResponse;
|
|
1705
|
+
messageVoice(
|
|
1706
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
1707
|
+
metadata: grpc.Metadata,
|
|
1708
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceResponse|null) => void
|
|
1709
|
+
): UnaryResponse;
|
|
1710
|
+
messageVoice(
|
|
1711
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
1712
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceResponse|null) => void
|
|
1713
|
+
): UnaryResponse;
|
|
1714
|
+
messageVoiceText(
|
|
1715
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
1716
|
+
metadata: grpc.Metadata,
|
|
1717
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceTextResponse|null) => void
|
|
1718
|
+
): UnaryResponse;
|
|
1719
|
+
messageVoiceText(
|
|
1720
|
+
requestMessage: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
1721
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageVoiceTextResponse|null) => void
|
|
1722
|
+
): UnaryResponse;
|
|
1685
1723
|
messageSendFile(
|
|
1686
1724
|
requestMessage: wechaty_puppet_message_pb.MessageSendFileRequest,
|
|
1687
1725
|
metadata: grpc.Metadata,
|
|
@@ -350,6 +350,24 @@ Puppet.MessageImage = {
|
|
|
350
350
|
responseType: wechaty_puppet_message_pb.MessageImageResponse
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
Puppet.MessageVoice = {
|
|
354
|
+
methodName: "MessageVoice",
|
|
355
|
+
service: Puppet,
|
|
356
|
+
requestStream: false,
|
|
357
|
+
responseStream: false,
|
|
358
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceRequest,
|
|
359
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceResponse
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
Puppet.MessageVoiceText = {
|
|
363
|
+
methodName: "MessageVoiceText",
|
|
364
|
+
service: Puppet,
|
|
365
|
+
requestStream: false,
|
|
366
|
+
responseStream: false,
|
|
367
|
+
requestType: wechaty_puppet_message_pb.MessageVoiceTextRequest,
|
|
368
|
+
responseType: wechaty_puppet_message_pb.MessageVoiceTextResponse
|
|
369
|
+
};
|
|
370
|
+
|
|
353
371
|
Puppet.MessageSendFile = {
|
|
354
372
|
methodName: "MessageSendFile",
|
|
355
373
|
service: Puppet,
|
|
@@ -2336,6 +2354,68 @@ PuppetClient.prototype.messageImage = function messageImage(requestMessage, meta
|
|
|
2336
2354
|
};
|
|
2337
2355
|
};
|
|
2338
2356
|
|
|
2357
|
+
PuppetClient.prototype.messageVoice = function messageVoice(requestMessage, metadata, callback) {
|
|
2358
|
+
if (arguments.length === 2) {
|
|
2359
|
+
callback = arguments[1];
|
|
2360
|
+
}
|
|
2361
|
+
var client = grpc.unary(Puppet.MessageVoice, {
|
|
2362
|
+
request: requestMessage,
|
|
2363
|
+
host: this.serviceHost,
|
|
2364
|
+
metadata: metadata,
|
|
2365
|
+
transport: this.options.transport,
|
|
2366
|
+
debug: this.options.debug,
|
|
2367
|
+
onEnd: function (response) {
|
|
2368
|
+
if (callback) {
|
|
2369
|
+
if (response.status !== grpc.Code.OK) {
|
|
2370
|
+
var err = new Error(response.statusMessage);
|
|
2371
|
+
err.code = response.status;
|
|
2372
|
+
err.metadata = response.trailers;
|
|
2373
|
+
callback(err, null);
|
|
2374
|
+
} else {
|
|
2375
|
+
callback(null, response.message);
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
return {
|
|
2381
|
+
cancel: function () {
|
|
2382
|
+
callback = null;
|
|
2383
|
+
client.close();
|
|
2384
|
+
}
|
|
2385
|
+
};
|
|
2386
|
+
};
|
|
2387
|
+
|
|
2388
|
+
PuppetClient.prototype.messageVoiceText = function messageVoiceText(requestMessage, metadata, callback) {
|
|
2389
|
+
if (arguments.length === 2) {
|
|
2390
|
+
callback = arguments[1];
|
|
2391
|
+
}
|
|
2392
|
+
var client = grpc.unary(Puppet.MessageVoiceText, {
|
|
2393
|
+
request: requestMessage,
|
|
2394
|
+
host: this.serviceHost,
|
|
2395
|
+
metadata: metadata,
|
|
2396
|
+
transport: this.options.transport,
|
|
2397
|
+
debug: this.options.debug,
|
|
2398
|
+
onEnd: function (response) {
|
|
2399
|
+
if (callback) {
|
|
2400
|
+
if (response.status !== grpc.Code.OK) {
|
|
2401
|
+
var err = new Error(response.statusMessage);
|
|
2402
|
+
err.code = response.status;
|
|
2403
|
+
err.metadata = response.trailers;
|
|
2404
|
+
callback(err, null);
|
|
2405
|
+
} else {
|
|
2406
|
+
callback(null, response.message);
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
});
|
|
2411
|
+
return {
|
|
2412
|
+
cancel: function () {
|
|
2413
|
+
callback = null;
|
|
2414
|
+
client.close();
|
|
2415
|
+
}
|
|
2416
|
+
};
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2339
2419
|
PuppetClient.prototype.messageSendFile = function messageSendFile(requestMessage, metadata, callback) {
|
|
2340
2420
|
if (arguments.length === 2) {
|
|
2341
2421
|
callback = arguments[1];
|
|
@@ -18,6 +18,25 @@ message ChannelPayload {
|
|
|
18
18
|
// 视频号直播专属
|
|
19
19
|
string object_id = 9;
|
|
20
20
|
string object_nonce_id = 10;
|
|
21
|
+
|
|
22
|
+
// 个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed
|
|
23
|
+
string username = 11; // 视频号 finder userName
|
|
24
|
+
int32 auth_icon_type = 12; // 认证类型
|
|
25
|
+
string auth_icon_url = 13; // 授权图标地址
|
|
26
|
+
string from_user_name = 14; // 视频号转发自好友 userName
|
|
27
|
+
repeated ChannelMedia media_list = 15; // 媒体资源列表(图片类视频号可多条)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 视频号媒体资源,对应接收视频号 finderFeed.mediaList.media
|
|
31
|
+
message ChannelMedia {
|
|
32
|
+
int32 media_type = 1; // 资源类型 2:图片 4:视频
|
|
33
|
+
string url = 2; // 原始媒体流地址
|
|
34
|
+
string thumb_url = 3; // 视频第一帧缩略图地址
|
|
35
|
+
string full_cover_url = 4; // 封面缩略图地址
|
|
36
|
+
string cover_url = 5; // 封面地址
|
|
37
|
+
int32 width = 6; // 缩略图宽度,默认 1080
|
|
38
|
+
int32 height = 7; // 缩略图高度,默认 1920
|
|
39
|
+
int32 video_play_duration = 8; // 视频播放时长(秒)
|
|
21
40
|
}
|
|
22
41
|
|
|
23
42
|
enum ChannelFeedType {
|