@juzi/wechaty-grpc 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +102 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1500 -721
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +82 -4
- package/dist/cjs/out/wechaty/puppet.swagger.json +129 -4
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +17 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +21 -3
- package/dist/cjs/proto/wechaty/puppet.proto +13 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +102 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1500 -721
- package/dist/esm/out/wechaty/puppet.openapi.yaml +82 -4
- package/dist/esm/out/wechaty/puppet.swagger.json +129 -4
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +17 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +21 -3
- package/dist/esm/proto/wechaty/puppet.proto +13 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/out/wechaty/puppet/channel_pb.js +380 -0
- package/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/out/wechaty/puppet/message_pb.d.ts +102 -0
- package/out/wechaty/puppet/message_pb.js +1500 -721
- package/out/wechaty/puppet.openapi.yaml +82 -4
- package/out/wechaty/puppet.swagger.json +129 -4
- package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/out/wechaty/puppet_grpc_pb.js +67 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -15,6 +15,7 @@ const puppetFileList = [
|
|
|
15
15
|
'../../out/wechaty/puppet/room-member_pb.js',
|
|
16
16
|
'../../out/wechaty/puppet/tag_pb.js',
|
|
17
17
|
'../../out/wechaty/puppet/url-link_pb.js',
|
|
18
|
+
'../../out/wechaty/puppet/channel_pb.js',
|
|
18
19
|
|
|
19
20
|
'../../out/wechaty/puppet_grpc_pb.js',
|
|
20
21
|
'../../out/wechaty/puppet_pb.js',
|
|
@@ -37,6 +37,7 @@ export * from '../../out/wechaty/puppet/room-invitation_pb.js'
|
|
|
37
37
|
export * from '../../out/wechaty/puppet/room-member_pb.js'
|
|
38
38
|
export * from '../../out/wechaty/puppet/tag_pb.js'
|
|
39
39
|
export * from '../../out/wechaty/puppet/url-link_pb.js'
|
|
40
|
+
export * from '../../out/wechaty/puppet/channel_pb.js'
|
|
40
41
|
|
|
41
42
|
export * from '../../out/wechaty/puppet_grpc_pb.js'
|
|
42
43
|
export * from '../../out/wechaty/puppet_pb.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// package: wechaty.puppet
|
|
2
|
+
// file: wechaty/puppet/channel.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
|
|
6
|
+
export class ChannelPayload extends jspb.Message {
|
|
7
|
+
getAvatar(): string;
|
|
8
|
+
setAvatar(value: string): void;
|
|
9
|
+
|
|
10
|
+
getCoverUrl(): string;
|
|
11
|
+
setCoverUrl(value: string): void;
|
|
12
|
+
|
|
13
|
+
getDesc(): string;
|
|
14
|
+
setDesc(value: string): void;
|
|
15
|
+
|
|
16
|
+
getExtras(): string;
|
|
17
|
+
setExtras(value: string): void;
|
|
18
|
+
|
|
19
|
+
getFeedType(): number;
|
|
20
|
+
setFeedType(value: number): void;
|
|
21
|
+
|
|
22
|
+
getNickname(): string;
|
|
23
|
+
setNickname(value: string): void;
|
|
24
|
+
|
|
25
|
+
getThumbUrl(): string;
|
|
26
|
+
setThumbUrl(value: string): void;
|
|
27
|
+
|
|
28
|
+
getUrl(): string;
|
|
29
|
+
setUrl(value: string): void;
|
|
30
|
+
|
|
31
|
+
serializeBinary(): Uint8Array;
|
|
32
|
+
toObject(includeInstance?: boolean): ChannelPayload.AsObject;
|
|
33
|
+
static toObject(includeInstance: boolean, msg: ChannelPayload): ChannelPayload.AsObject;
|
|
34
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
35
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
36
|
+
static serializeBinaryToWriter(message: ChannelPayload, writer: jspb.BinaryWriter): void;
|
|
37
|
+
static deserializeBinary(bytes: Uint8Array): ChannelPayload;
|
|
38
|
+
static deserializeBinaryFromReader(message: ChannelPayload, reader: jspb.BinaryReader): ChannelPayload;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace ChannelPayload {
|
|
42
|
+
export type AsObject = {
|
|
43
|
+
avatar: string,
|
|
44
|
+
coverUrl: string,
|
|
45
|
+
desc: string,
|
|
46
|
+
extras: string,
|
|
47
|
+
feedType: number,
|
|
48
|
+
nickname: string,
|
|
49
|
+
thumbUrl: string,
|
|
50
|
+
url: string,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
// source: wechaty/puppet/channel.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
|
+
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.ChannelPayload', null, global);
|
|
19
|
+
/**
|
|
20
|
+
* Generated by JsPbCodeGenerator.
|
|
21
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
22
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
23
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
24
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
25
|
+
* valid.
|
|
26
|
+
* @extends {jspb.Message}
|
|
27
|
+
* @constructor
|
|
28
|
+
*/
|
|
29
|
+
proto.wechaty.puppet.ChannelPayload = function(opt_data) {
|
|
30
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
31
|
+
};
|
|
32
|
+
goog.inherits(proto.wechaty.puppet.ChannelPayload, jspb.Message);
|
|
33
|
+
if (goog.DEBUG && !COMPILED) {
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
* @override
|
|
37
|
+
*/
|
|
38
|
+
proto.wechaty.puppet.ChannelPayload.displayName = 'proto.wechaty.puppet.ChannelPayload';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44
|
+
/**
|
|
45
|
+
* Creates an object representation of this proto.
|
|
46
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
47
|
+
* Optional fields that are not set will be set to undefined.
|
|
48
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
49
|
+
* For the list of reserved names please see:
|
|
50
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
51
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
52
|
+
* JSPB instance for transitional soy proto support:
|
|
53
|
+
* http://goto/soy-param-migration
|
|
54
|
+
* @return {!Object}
|
|
55
|
+
*/
|
|
56
|
+
proto.wechaty.puppet.ChannelPayload.prototype.toObject = function(opt_includeInstance) {
|
|
57
|
+
return proto.wechaty.puppet.ChannelPayload.toObject(opt_includeInstance, this);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Static version of the {@see toObject} method.
|
|
63
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
64
|
+
* the JSPB instance for transitional soy proto support:
|
|
65
|
+
* http://goto/soy-param-migration
|
|
66
|
+
* @param {!proto.wechaty.puppet.ChannelPayload} msg The msg instance to transform.
|
|
67
|
+
* @return {!Object}
|
|
68
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
69
|
+
*/
|
|
70
|
+
proto.wechaty.puppet.ChannelPayload.toObject = function(includeInstance, msg) {
|
|
71
|
+
var f, obj = {
|
|
72
|
+
avatar: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
73
|
+
coverUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
74
|
+
desc: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
75
|
+
extras: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
76
|
+
feedType: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
77
|
+
nickname: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
78
|
+
thumbUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
79
|
+
url: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
if (includeInstance) {
|
|
83
|
+
obj.$jspbMessageInstance = msg;
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
93
|
+
* @return {!proto.wechaty.puppet.ChannelPayload}
|
|
94
|
+
*/
|
|
95
|
+
proto.wechaty.puppet.ChannelPayload.deserializeBinary = function(bytes) {
|
|
96
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
97
|
+
var msg = new proto.wechaty.puppet.ChannelPayload;
|
|
98
|
+
return proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader(msg, reader);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
104
|
+
* given reader into the given message object.
|
|
105
|
+
* @param {!proto.wechaty.puppet.ChannelPayload} msg The message object to deserialize into.
|
|
106
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
107
|
+
* @return {!proto.wechaty.puppet.ChannelPayload}
|
|
108
|
+
*/
|
|
109
|
+
proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader = function(msg, reader) {
|
|
110
|
+
while (reader.nextField()) {
|
|
111
|
+
if (reader.isEndGroup()) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
var field = reader.getFieldNumber();
|
|
115
|
+
switch (field) {
|
|
116
|
+
case 1:
|
|
117
|
+
var value = /** @type {string} */ (reader.readString());
|
|
118
|
+
msg.setAvatar(value);
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
var value = /** @type {string} */ (reader.readString());
|
|
122
|
+
msg.setCoverUrl(value);
|
|
123
|
+
break;
|
|
124
|
+
case 3:
|
|
125
|
+
var value = /** @type {string} */ (reader.readString());
|
|
126
|
+
msg.setDesc(value);
|
|
127
|
+
break;
|
|
128
|
+
case 4:
|
|
129
|
+
var value = /** @type {string} */ (reader.readString());
|
|
130
|
+
msg.setExtras(value);
|
|
131
|
+
break;
|
|
132
|
+
case 5:
|
|
133
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
134
|
+
msg.setFeedType(value);
|
|
135
|
+
break;
|
|
136
|
+
case 6:
|
|
137
|
+
var value = /** @type {string} */ (reader.readString());
|
|
138
|
+
msg.setNickname(value);
|
|
139
|
+
break;
|
|
140
|
+
case 7:
|
|
141
|
+
var value = /** @type {string} */ (reader.readString());
|
|
142
|
+
msg.setThumbUrl(value);
|
|
143
|
+
break;
|
|
144
|
+
case 8:
|
|
145
|
+
var value = /** @type {string} */ (reader.readString());
|
|
146
|
+
msg.setUrl(value);
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
reader.skipField();
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return msg;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
159
|
+
* @return {!Uint8Array}
|
|
160
|
+
*/
|
|
161
|
+
proto.wechaty.puppet.ChannelPayload.prototype.serializeBinary = function() {
|
|
162
|
+
var writer = new jspb.BinaryWriter();
|
|
163
|
+
proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter(this, writer);
|
|
164
|
+
return writer.getResultBuffer();
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
170
|
+
* format), writing to the given BinaryWriter.
|
|
171
|
+
* @param {!proto.wechaty.puppet.ChannelPayload} message
|
|
172
|
+
* @param {!jspb.BinaryWriter} writer
|
|
173
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
174
|
+
*/
|
|
175
|
+
proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter = function(message, writer) {
|
|
176
|
+
var f = undefined;
|
|
177
|
+
f = message.getAvatar();
|
|
178
|
+
if (f.length > 0) {
|
|
179
|
+
writer.writeString(
|
|
180
|
+
1,
|
|
181
|
+
f
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
f = message.getCoverUrl();
|
|
185
|
+
if (f.length > 0) {
|
|
186
|
+
writer.writeString(
|
|
187
|
+
2,
|
|
188
|
+
f
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
f = message.getDesc();
|
|
192
|
+
if (f.length > 0) {
|
|
193
|
+
writer.writeString(
|
|
194
|
+
3,
|
|
195
|
+
f
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
f = message.getExtras();
|
|
199
|
+
if (f.length > 0) {
|
|
200
|
+
writer.writeString(
|
|
201
|
+
4,
|
|
202
|
+
f
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
f = message.getFeedType();
|
|
206
|
+
if (f !== 0) {
|
|
207
|
+
writer.writeInt32(
|
|
208
|
+
5,
|
|
209
|
+
f
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
f = message.getNickname();
|
|
213
|
+
if (f.length > 0) {
|
|
214
|
+
writer.writeString(
|
|
215
|
+
6,
|
|
216
|
+
f
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
f = message.getThumbUrl();
|
|
220
|
+
if (f.length > 0) {
|
|
221
|
+
writer.writeString(
|
|
222
|
+
7,
|
|
223
|
+
f
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
f = message.getUrl();
|
|
227
|
+
if (f.length > 0) {
|
|
228
|
+
writer.writeString(
|
|
229
|
+
8,
|
|
230
|
+
f
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* optional string avatar = 1;
|
|
238
|
+
* @return {string}
|
|
239
|
+
*/
|
|
240
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getAvatar = function() {
|
|
241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @param {string} value
|
|
247
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
248
|
+
*/
|
|
249
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setAvatar = function(value) {
|
|
250
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* optional string cover_url = 2;
|
|
256
|
+
* @return {string}
|
|
257
|
+
*/
|
|
258
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getCoverUrl = function() {
|
|
259
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @param {string} value
|
|
265
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
266
|
+
*/
|
|
267
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setCoverUrl = function(value) {
|
|
268
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* optional string desc = 3;
|
|
274
|
+
* @return {string}
|
|
275
|
+
*/
|
|
276
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getDesc = function() {
|
|
277
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @param {string} value
|
|
283
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
284
|
+
*/
|
|
285
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setDesc = function(value) {
|
|
286
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* optional string extras = 4;
|
|
292
|
+
* @return {string}
|
|
293
|
+
*/
|
|
294
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getExtras = function() {
|
|
295
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @param {string} value
|
|
301
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
302
|
+
*/
|
|
303
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setExtras = function(value) {
|
|
304
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* optional int32 feed_type = 5;
|
|
310
|
+
* @return {number}
|
|
311
|
+
*/
|
|
312
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getFeedType = function() {
|
|
313
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @param {number} value
|
|
319
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
320
|
+
*/
|
|
321
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setFeedType = function(value) {
|
|
322
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* optional string nickname = 6;
|
|
328
|
+
* @return {string}
|
|
329
|
+
*/
|
|
330
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getNickname = function() {
|
|
331
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @param {string} value
|
|
337
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
338
|
+
*/
|
|
339
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setNickname = function(value) {
|
|
340
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* optional string thumb_url = 7;
|
|
346
|
+
* @return {string}
|
|
347
|
+
*/
|
|
348
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getThumbUrl = function() {
|
|
349
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @param {string} value
|
|
355
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
356
|
+
*/
|
|
357
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setThumbUrl = function(value) {
|
|
358
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* optional string url = 8;
|
|
364
|
+
* @return {string}
|
|
365
|
+
*/
|
|
366
|
+
proto.wechaty.puppet.ChannelPayload.prototype.getUrl = function() {
|
|
367
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @param {string} value
|
|
373
|
+
* @return {!proto.wechaty.puppet.ChannelPayload} returns this
|
|
374
|
+
*/
|
|
375
|
+
proto.wechaty.puppet.ChannelPayload.prototype.setUrl = function(value) {
|
|
376
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -8,6 +8,7 @@ import * as wechaty_puppet_image_pb from "../../wechaty/puppet/image_pb";
|
|
|
8
8
|
import * as wechaty_puppet_location_pb from "../../wechaty/puppet/location_pb";
|
|
9
9
|
import * as wechaty_puppet_mini_program_pb from "../../wechaty/puppet/mini-program_pb";
|
|
10
10
|
import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
|
|
11
|
+
import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
|
|
11
12
|
|
|
12
13
|
export class MessagePayloadRequest extends jspb.Message {
|
|
13
14
|
getId(): string;
|
|
@@ -64,6 +65,11 @@ export class MessagePayloadResponse extends jspb.Message {
|
|
|
64
65
|
getReceiveTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
65
66
|
setReceiveTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
66
67
|
|
|
68
|
+
hasQuoteId(): boolean;
|
|
69
|
+
clearQuoteId(): void;
|
|
70
|
+
getQuoteId(): string;
|
|
71
|
+
setQuoteId(value: string): void;
|
|
72
|
+
|
|
67
73
|
serializeBinary(): Uint8Array;
|
|
68
74
|
toObject(includeInstance?: boolean): MessagePayloadResponse.AsObject;
|
|
69
75
|
static toObject(includeInstance: boolean, msg: MessagePayloadResponse): MessagePayloadResponse.AsObject;
|
|
@@ -86,6 +92,7 @@ export namespace MessagePayloadResponse {
|
|
|
86
92
|
listenerId: string,
|
|
87
93
|
mentionIdsList: Array<string>,
|
|
88
94
|
receiveTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
95
|
+
quoteId: string,
|
|
89
96
|
}
|
|
90
97
|
}
|
|
91
98
|
|
|
@@ -305,6 +312,48 @@ export namespace MessageUrlResponse {
|
|
|
305
312
|
}
|
|
306
313
|
}
|
|
307
314
|
|
|
315
|
+
export class MessageChannelRequest extends jspb.Message {
|
|
316
|
+
getId(): string;
|
|
317
|
+
setId(value: string): void;
|
|
318
|
+
|
|
319
|
+
serializeBinary(): Uint8Array;
|
|
320
|
+
toObject(includeInstance?: boolean): MessageChannelRequest.AsObject;
|
|
321
|
+
static toObject(includeInstance: boolean, msg: MessageChannelRequest): MessageChannelRequest.AsObject;
|
|
322
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
323
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
324
|
+
static serializeBinaryToWriter(message: MessageChannelRequest, writer: jspb.BinaryWriter): void;
|
|
325
|
+
static deserializeBinary(bytes: Uint8Array): MessageChannelRequest;
|
|
326
|
+
static deserializeBinaryFromReader(message: MessageChannelRequest, reader: jspb.BinaryReader): MessageChannelRequest;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export namespace MessageChannelRequest {
|
|
330
|
+
export type AsObject = {
|
|
331
|
+
id: string,
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export class MessageChannelResponse extends jspb.Message {
|
|
336
|
+
hasChannel(): boolean;
|
|
337
|
+
clearChannel(): void;
|
|
338
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
339
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
340
|
+
|
|
341
|
+
serializeBinary(): Uint8Array;
|
|
342
|
+
toObject(includeInstance?: boolean): MessageChannelResponse.AsObject;
|
|
343
|
+
static toObject(includeInstance: boolean, msg: MessageChannelResponse): MessageChannelResponse.AsObject;
|
|
344
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
345
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
346
|
+
static serializeBinaryToWriter(message: MessageChannelResponse, writer: jspb.BinaryWriter): void;
|
|
347
|
+
static deserializeBinary(bytes: Uint8Array): MessageChannelResponse;
|
|
348
|
+
static deserializeBinaryFromReader(message: MessageChannelResponse, reader: jspb.BinaryReader): MessageChannelResponse;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export namespace MessageChannelResponse {
|
|
352
|
+
export type AsObject = {
|
|
353
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
308
357
|
export class MessageSendContactRequest extends jspb.Message {
|
|
309
358
|
getConversationId(): string;
|
|
310
359
|
setConversationId(value: string): void;
|
|
@@ -417,6 +466,11 @@ export class MessageSendTextRequest extends jspb.Message {
|
|
|
417
466
|
setMentionalIdsList(value: Array<string>): void;
|
|
418
467
|
addMentionalIds(value: string, index?: number): string;
|
|
419
468
|
|
|
469
|
+
hasQuoteId(): boolean;
|
|
470
|
+
clearQuoteId(): void;
|
|
471
|
+
getQuoteId(): string;
|
|
472
|
+
setQuoteId(value: string): void;
|
|
473
|
+
|
|
420
474
|
serializeBinary(): Uint8Array;
|
|
421
475
|
toObject(includeInstance?: boolean): MessageSendTextRequest.AsObject;
|
|
422
476
|
static toObject(includeInstance: boolean, msg: MessageSendTextRequest): MessageSendTextRequest.AsObject;
|
|
@@ -432,6 +486,7 @@ export namespace MessageSendTextRequest {
|
|
|
432
486
|
conversationId: string,
|
|
433
487
|
text: string,
|
|
434
488
|
mentionalIdsList: Array<string>,
|
|
489
|
+
quoteId: string,
|
|
435
490
|
}
|
|
436
491
|
}
|
|
437
492
|
|
|
@@ -751,6 +806,52 @@ export namespace MessageSendLocationResponse {
|
|
|
751
806
|
}
|
|
752
807
|
}
|
|
753
808
|
|
|
809
|
+
export class MessageSendChannelRequest extends jspb.Message {
|
|
810
|
+
getConversationId(): string;
|
|
811
|
+
setConversationId(value: string): void;
|
|
812
|
+
|
|
813
|
+
hasChannel(): boolean;
|
|
814
|
+
clearChannel(): void;
|
|
815
|
+
getChannel(): wechaty_puppet_channel_pb.ChannelPayload | undefined;
|
|
816
|
+
setChannel(value?: wechaty_puppet_channel_pb.ChannelPayload): void;
|
|
817
|
+
|
|
818
|
+
serializeBinary(): Uint8Array;
|
|
819
|
+
toObject(includeInstance?: boolean): MessageSendChannelRequest.AsObject;
|
|
820
|
+
static toObject(includeInstance: boolean, msg: MessageSendChannelRequest): MessageSendChannelRequest.AsObject;
|
|
821
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
822
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
823
|
+
static serializeBinaryToWriter(message: MessageSendChannelRequest, writer: jspb.BinaryWriter): void;
|
|
824
|
+
static deserializeBinary(bytes: Uint8Array): MessageSendChannelRequest;
|
|
825
|
+
static deserializeBinaryFromReader(message: MessageSendChannelRequest, reader: jspb.BinaryReader): MessageSendChannelRequest;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
export namespace MessageSendChannelRequest {
|
|
829
|
+
export type AsObject = {
|
|
830
|
+
conversationId: string,
|
|
831
|
+
channel?: wechaty_puppet_channel_pb.ChannelPayload.AsObject,
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export class MessageSendChannelResponse extends jspb.Message {
|
|
836
|
+
getId(): string;
|
|
837
|
+
setId(value: string): void;
|
|
838
|
+
|
|
839
|
+
serializeBinary(): Uint8Array;
|
|
840
|
+
toObject(includeInstance?: boolean): MessageSendChannelResponse.AsObject;
|
|
841
|
+
static toObject(includeInstance: boolean, msg: MessageSendChannelResponse): MessageSendChannelResponse.AsObject;
|
|
842
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
843
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
844
|
+
static serializeBinaryToWriter(message: MessageSendChannelResponse, writer: jspb.BinaryWriter): void;
|
|
845
|
+
static deserializeBinary(bytes: Uint8Array): MessageSendChannelResponse;
|
|
846
|
+
static deserializeBinaryFromReader(message: MessageSendChannelResponse, reader: jspb.BinaryReader): MessageSendChannelResponse;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export namespace MessageSendChannelResponse {
|
|
850
|
+
export type AsObject = {
|
|
851
|
+
id: string,
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
754
855
|
export interface MessageTypeMap {
|
|
755
856
|
MESSAGE_TYPE_UNSPECIFIED: 0;
|
|
756
857
|
MESSAGE_TYPE_ATTACHMENT: 1;
|
|
@@ -767,6 +868,7 @@ export interface MessageTypeMap {
|
|
|
767
868
|
MESSAGE_TYPE_RED_ENVELOPE: 12;
|
|
768
869
|
MESSAGE_TYPE_RECALLED: 13;
|
|
769
870
|
MESSAGE_TYPE_URL: 14;
|
|
871
|
+
MESSAGE_TYPE_CHANNEL: 15;
|
|
770
872
|
}
|
|
771
873
|
|
|
772
874
|
export const MessageType: MessageTypeMap;
|