@juzi/wechaty-grpc 1.0.102 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +70 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +544 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +53 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +69 -1
- package/dist/cjs/proto/wechaty/puppet/channel.proto +19 -0
- package/dist/cjs/src/package-json.js +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.openapi.yaml +53 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +69 -1
- package/dist/esm/proto/wechaty/puppet/channel.proto +19 -0
- package/dist/esm/src/package-json.js +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.openapi.yaml +53 -1
- package/out/wechaty/puppet.swagger.json +69 -1
- 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.103
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -3632,6 +3632,38 @@ definitions:
|
|
|
3632
3632
|
- CHANNEL_FEED_TYPE_VIDEO
|
|
3633
3633
|
- CHANNEL_FEED_TYPE_LIVE
|
|
3634
3634
|
default: CHANNEL_FEED_TYPE_UNKNOWN
|
|
3635
|
+
puppetChannelMedia:
|
|
3636
|
+
type: object
|
|
3637
|
+
properties:
|
|
3638
|
+
mediaType:
|
|
3639
|
+
type: integer
|
|
3640
|
+
format: int32
|
|
3641
|
+
title: 资源类型 2:图片 4:视频
|
|
3642
|
+
url:
|
|
3643
|
+
type: string
|
|
3644
|
+
title: 原始媒体流地址
|
|
3645
|
+
thumbUrl:
|
|
3646
|
+
type: string
|
|
3647
|
+
title: 视频第一帧缩略图地址
|
|
3648
|
+
fullCoverUrl:
|
|
3649
|
+
type: string
|
|
3650
|
+
title: 封面缩略图地址
|
|
3651
|
+
coverUrl:
|
|
3652
|
+
type: string
|
|
3653
|
+
title: 封面地址
|
|
3654
|
+
width:
|
|
3655
|
+
type: integer
|
|
3656
|
+
format: int32
|
|
3657
|
+
title: 缩略图宽度,默认 1080
|
|
3658
|
+
height:
|
|
3659
|
+
type: integer
|
|
3660
|
+
format: int32
|
|
3661
|
+
title: 缩略图高度,默认 1920
|
|
3662
|
+
videoPlayDuration:
|
|
3663
|
+
type: integer
|
|
3664
|
+
format: int32
|
|
3665
|
+
title: 视频播放时长(秒)
|
|
3666
|
+
title: 视频号媒体资源,对应接收视频号 finderFeed.mediaList.media
|
|
3635
3667
|
puppetChannelPayload:
|
|
3636
3668
|
type: object
|
|
3637
3669
|
properties:
|
|
@@ -3664,6 +3696,26 @@ definitions:
|
|
|
3664
3696
|
title: 视频号直播专属
|
|
3665
3697
|
objectNonceId:
|
|
3666
3698
|
type: string
|
|
3699
|
+
username:
|
|
3700
|
+
type: string
|
|
3701
|
+
description: 视频号 finder userName
|
|
3702
|
+
title: 个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed
|
|
3703
|
+
authIconType:
|
|
3704
|
+
type: integer
|
|
3705
|
+
format: int32
|
|
3706
|
+
title: 认证类型
|
|
3707
|
+
authIconUrl:
|
|
3708
|
+
type: string
|
|
3709
|
+
title: 授权图标地址
|
|
3710
|
+
fromUserName:
|
|
3711
|
+
type: string
|
|
3712
|
+
title: 视频号转发自好友 userName
|
|
3713
|
+
mediaList:
|
|
3714
|
+
type: array
|
|
3715
|
+
items:
|
|
3716
|
+
type: object
|
|
3717
|
+
$ref: '#/definitions/puppetChannelMedia'
|
|
3718
|
+
title: 媒体资源列表(图片类视频号可多条)
|
|
3667
3719
|
puppetChatHistoryContent:
|
|
3668
3720
|
type: object
|
|
3669
3721
|
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.103",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -5407,6 +5407,48 @@
|
|
|
5407
5407
|
],
|
|
5408
5408
|
"default": "CHANNEL_FEED_TYPE_UNKNOWN"
|
|
5409
5409
|
},
|
|
5410
|
+
"puppetChannelMedia": {
|
|
5411
|
+
"type": "object",
|
|
5412
|
+
"properties": {
|
|
5413
|
+
"mediaType": {
|
|
5414
|
+
"type": "integer",
|
|
5415
|
+
"format": "int32",
|
|
5416
|
+
"title": "资源类型 2:图片 4:视频"
|
|
5417
|
+
},
|
|
5418
|
+
"url": {
|
|
5419
|
+
"type": "string",
|
|
5420
|
+
"title": "原始媒体流地址"
|
|
5421
|
+
},
|
|
5422
|
+
"thumbUrl": {
|
|
5423
|
+
"type": "string",
|
|
5424
|
+
"title": "视频第一帧缩略图地址"
|
|
5425
|
+
},
|
|
5426
|
+
"fullCoverUrl": {
|
|
5427
|
+
"type": "string",
|
|
5428
|
+
"title": "封面缩略图地址"
|
|
5429
|
+
},
|
|
5430
|
+
"coverUrl": {
|
|
5431
|
+
"type": "string",
|
|
5432
|
+
"title": "封面地址"
|
|
5433
|
+
},
|
|
5434
|
+
"width": {
|
|
5435
|
+
"type": "integer",
|
|
5436
|
+
"format": "int32",
|
|
5437
|
+
"title": "缩略图宽度,默认 1080"
|
|
5438
|
+
},
|
|
5439
|
+
"height": {
|
|
5440
|
+
"type": "integer",
|
|
5441
|
+
"format": "int32",
|
|
5442
|
+
"title": "缩略图高度,默认 1920"
|
|
5443
|
+
},
|
|
5444
|
+
"videoPlayDuration": {
|
|
5445
|
+
"type": "integer",
|
|
5446
|
+
"format": "int32",
|
|
5447
|
+
"title": "视频播放时长(秒)"
|
|
5448
|
+
}
|
|
5449
|
+
},
|
|
5450
|
+
"title": "视频号媒体资源,对应接收视频号 finderFeed.mediaList.media"
|
|
5451
|
+
},
|
|
5410
5452
|
"puppetChannelPayload": {
|
|
5411
5453
|
"type": "object",
|
|
5412
5454
|
"properties": {
|
|
@@ -5448,6 +5490,32 @@
|
|
|
5448
5490
|
},
|
|
5449
5491
|
"objectNonceId": {
|
|
5450
5492
|
"type": "string"
|
|
5493
|
+
},
|
|
5494
|
+
"username": {
|
|
5495
|
+
"type": "string",
|
|
5496
|
+
"description": "视频号 finder userName",
|
|
5497
|
+
"title": "个微(phoenix)转发视频号所需补充字段,来自接收视频号的 appmsg.finderFeed"
|
|
5498
|
+
},
|
|
5499
|
+
"authIconType": {
|
|
5500
|
+
"type": "integer",
|
|
5501
|
+
"format": "int32",
|
|
5502
|
+
"title": "认证类型"
|
|
5503
|
+
},
|
|
5504
|
+
"authIconUrl": {
|
|
5505
|
+
"type": "string",
|
|
5506
|
+
"title": "授权图标地址"
|
|
5507
|
+
},
|
|
5508
|
+
"fromUserName": {
|
|
5509
|
+
"type": "string",
|
|
5510
|
+
"title": "视频号转发自好友 userName"
|
|
5511
|
+
},
|
|
5512
|
+
"mediaList": {
|
|
5513
|
+
"type": "array",
|
|
5514
|
+
"items": {
|
|
5515
|
+
"type": "object",
|
|
5516
|
+
"$ref": "#/definitions/puppetChannelMedia"
|
|
5517
|
+
},
|
|
5518
|
+
"title": "媒体资源列表(图片类视频号可多条)"
|
|
5451
5519
|
}
|
|
5452
5520
|
}
|
|
5453
5521
|
},
|
|
@@ -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 {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.packageJson = void 0;
|
|
4
4
|
exports.packageJson = {
|
|
5
5
|
"name": "@juzi/wechaty-grpc",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.103",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -34,6 +34,23 @@ export class ChannelPayload extends jspb.Message {
|
|
|
34
34
|
getObjectNonceId(): string;
|
|
35
35
|
setObjectNonceId(value: string): void;
|
|
36
36
|
|
|
37
|
+
getUsername(): string;
|
|
38
|
+
setUsername(value: string): void;
|
|
39
|
+
|
|
40
|
+
getAuthIconType(): number;
|
|
41
|
+
setAuthIconType(value: number): void;
|
|
42
|
+
|
|
43
|
+
getAuthIconUrl(): string;
|
|
44
|
+
setAuthIconUrl(value: string): void;
|
|
45
|
+
|
|
46
|
+
getFromUserName(): string;
|
|
47
|
+
setFromUserName(value: string): void;
|
|
48
|
+
|
|
49
|
+
clearMediaListList(): void;
|
|
50
|
+
getMediaListList(): Array<ChannelMedia>;
|
|
51
|
+
setMediaListList(value: Array<ChannelMedia>): void;
|
|
52
|
+
addMediaList(value?: ChannelMedia, index?: number): ChannelMedia;
|
|
53
|
+
|
|
37
54
|
serializeBinary(): Uint8Array;
|
|
38
55
|
toObject(includeInstance?: boolean): ChannelPayload.AsObject;
|
|
39
56
|
static toObject(includeInstance: boolean, msg: ChannelPayload): ChannelPayload.AsObject;
|
|
@@ -56,6 +73,59 @@ export namespace ChannelPayload {
|
|
|
56
73
|
url: string,
|
|
57
74
|
objectId: string,
|
|
58
75
|
objectNonceId: string,
|
|
76
|
+
username: string,
|
|
77
|
+
authIconType: number,
|
|
78
|
+
authIconUrl: string,
|
|
79
|
+
fromUserName: string,
|
|
80
|
+
mediaListList: Array<ChannelMedia.AsObject>,
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class ChannelMedia extends jspb.Message {
|
|
85
|
+
getMediaType(): number;
|
|
86
|
+
setMediaType(value: number): void;
|
|
87
|
+
|
|
88
|
+
getUrl(): string;
|
|
89
|
+
setUrl(value: string): void;
|
|
90
|
+
|
|
91
|
+
getThumbUrl(): string;
|
|
92
|
+
setThumbUrl(value: string): void;
|
|
93
|
+
|
|
94
|
+
getFullCoverUrl(): string;
|
|
95
|
+
setFullCoverUrl(value: string): void;
|
|
96
|
+
|
|
97
|
+
getCoverUrl(): string;
|
|
98
|
+
setCoverUrl(value: string): void;
|
|
99
|
+
|
|
100
|
+
getWidth(): number;
|
|
101
|
+
setWidth(value: number): void;
|
|
102
|
+
|
|
103
|
+
getHeight(): number;
|
|
104
|
+
setHeight(value: number): void;
|
|
105
|
+
|
|
106
|
+
getVideoPlayDuration(): number;
|
|
107
|
+
setVideoPlayDuration(value: number): void;
|
|
108
|
+
|
|
109
|
+
serializeBinary(): Uint8Array;
|
|
110
|
+
toObject(includeInstance?: boolean): ChannelMedia.AsObject;
|
|
111
|
+
static toObject(includeInstance: boolean, msg: ChannelMedia): ChannelMedia.AsObject;
|
|
112
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
113
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
114
|
+
static serializeBinaryToWriter(message: ChannelMedia, writer: jspb.BinaryWriter): void;
|
|
115
|
+
static deserializeBinary(bytes: Uint8Array): ChannelMedia;
|
|
116
|
+
static deserializeBinaryFromReader(message: ChannelMedia, reader: jspb.BinaryReader): ChannelMedia;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace ChannelMedia {
|
|
120
|
+
export type AsObject = {
|
|
121
|
+
mediaType: number,
|
|
122
|
+
url: string,
|
|
123
|
+
thumbUrl: string,
|
|
124
|
+
fullCoverUrl: string,
|
|
125
|
+
coverUrl: string,
|
|
126
|
+
width: number,
|
|
127
|
+
height: number,
|
|
128
|
+
videoPlayDuration: number,
|
|
59
129
|
}
|
|
60
130
|
}
|
|
61
131
|
|