@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.
@@ -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.102",
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 {
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "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