@juzi/wechaty-grpc 1.0.78 → 1.0.80
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/friendship_pb.d.ts +9 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb.js +64 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +522 -48
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +74 -8
- package/dist/cjs/out/wechaty/puppet.swagger.json +85 -8
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +18 -8
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +9 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb.js +64 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/dist/esm/out/wechaty/puppet/tag_pb.js +522 -48
- package/dist/esm/out/wechaty/puppet.openapi.yaml +74 -8
- package/dist/esm/out/wechaty/puppet.swagger.json +85 -8
- package/dist/esm/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +18 -8
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/friendship_pb.d.ts +9 -0
- package/out/wechaty/puppet/friendship_pb.js +64 -2
- package/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/out/wechaty/puppet/tag_pb.js +522 -48
- package/out/wechaty/puppet.openapi.yaml +74 -8
- package/out/wechaty/puppet.swagger.json +85 -8
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as jspb from "google-protobuf";
|
|
5
5
|
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
6
6
|
import * as wechaty_puppet_referrer_pb from "../../wechaty/puppet/referrer_pb";
|
|
7
|
+
import * as wechaty_puppet_contact_pb from "../../wechaty/puppet/contact_pb";
|
|
7
8
|
|
|
8
9
|
export class FriendshipPayloadRequest extends jspb.Message {
|
|
9
10
|
getId(): string;
|
|
@@ -83,6 +84,9 @@ export class FriendshipSearchPhoneRequest extends jspb.Message {
|
|
|
83
84
|
getPhone(): string;
|
|
84
85
|
setPhone(value: string): void;
|
|
85
86
|
|
|
87
|
+
getType(): wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap];
|
|
88
|
+
setType(value: wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap]): void;
|
|
89
|
+
|
|
86
90
|
serializeBinary(): Uint8Array;
|
|
87
91
|
toObject(includeInstance?: boolean): FriendshipSearchPhoneRequest.AsObject;
|
|
88
92
|
static toObject(includeInstance: boolean, msg: FriendshipSearchPhoneRequest): FriendshipSearchPhoneRequest.AsObject;
|
|
@@ -96,6 +100,7 @@ export class FriendshipSearchPhoneRequest extends jspb.Message {
|
|
|
96
100
|
export namespace FriendshipSearchPhoneRequest {
|
|
97
101
|
export type AsObject = {
|
|
98
102
|
phone: string,
|
|
103
|
+
type: wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap],
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
|
|
@@ -129,6 +134,9 @@ export class FriendshipSearchHandleRequest extends jspb.Message {
|
|
|
129
134
|
getWeixin(): string;
|
|
130
135
|
setWeixin(value: string): void;
|
|
131
136
|
|
|
137
|
+
getType(): wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap];
|
|
138
|
+
setType(value: wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap]): void;
|
|
139
|
+
|
|
132
140
|
serializeBinary(): Uint8Array;
|
|
133
141
|
toObject(includeInstance?: boolean): FriendshipSearchHandleRequest.AsObject;
|
|
134
142
|
static toObject(includeInstance: boolean, msg: FriendshipSearchHandleRequest): FriendshipSearchHandleRequest.AsObject;
|
|
@@ -142,6 +150,7 @@ export class FriendshipSearchHandleRequest extends jspb.Message {
|
|
|
142
150
|
export namespace FriendshipSearchHandleRequest {
|
|
143
151
|
export type AsObject = {
|
|
144
152
|
weixin: string,
|
|
153
|
+
type: wechaty_puppet_contact_pb.ContactTypeMap[keyof wechaty_puppet_contact_pb.ContactTypeMap],
|
|
145
154
|
}
|
|
146
155
|
}
|
|
147
156
|
|
|
@@ -19,6 +19,8 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp
|
|
|
19
19
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
20
20
|
var wechaty_puppet_referrer_pb = require('../../wechaty/puppet/referrer_pb.js');
|
|
21
21
|
goog.object.extend(proto, wechaty_puppet_referrer_pb);
|
|
22
|
+
var wechaty_puppet_contact_pb = require('../../wechaty/puppet/contact_pb.js');
|
|
23
|
+
goog.object.extend(proto, wechaty_puppet_contact_pb);
|
|
22
24
|
goog.exportSymbol('proto.wechaty.puppet.FriendshipAcceptRequest', null, global);
|
|
23
25
|
goog.exportSymbol('proto.wechaty.puppet.FriendshipAcceptResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.wechaty.puppet.FriendshipAddRequest', null, global);
|
|
@@ -794,7 +796,8 @@ proto.wechaty.puppet.FriendshipSearchPhoneRequest.prototype.toObject = function(
|
|
|
794
796
|
*/
|
|
795
797
|
proto.wechaty.puppet.FriendshipSearchPhoneRequest.toObject = function(includeInstance, msg) {
|
|
796
798
|
var f, obj = {
|
|
797
|
-
phone: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
799
|
+
phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
800
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
798
801
|
};
|
|
799
802
|
|
|
800
803
|
if (includeInstance) {
|
|
@@ -835,6 +838,10 @@ proto.wechaty.puppet.FriendshipSearchPhoneRequest.deserializeBinaryFromReader =
|
|
|
835
838
|
var value = /** @type {string} */ (reader.readString());
|
|
836
839
|
msg.setPhone(value);
|
|
837
840
|
break;
|
|
841
|
+
case 2:
|
|
842
|
+
var value = /** @type {!proto.wechaty.puppet.ContactType} */ (reader.readEnum());
|
|
843
|
+
msg.setType(value);
|
|
844
|
+
break;
|
|
838
845
|
default:
|
|
839
846
|
reader.skipField();
|
|
840
847
|
break;
|
|
@@ -871,6 +878,13 @@ proto.wechaty.puppet.FriendshipSearchPhoneRequest.serializeBinaryToWriter = func
|
|
|
871
878
|
f
|
|
872
879
|
);
|
|
873
880
|
}
|
|
881
|
+
f = message.getType();
|
|
882
|
+
if (f !== 0.0) {
|
|
883
|
+
writer.writeEnum(
|
|
884
|
+
2,
|
|
885
|
+
f
|
|
886
|
+
);
|
|
887
|
+
}
|
|
874
888
|
};
|
|
875
889
|
|
|
876
890
|
|
|
@@ -892,6 +906,24 @@ proto.wechaty.puppet.FriendshipSearchPhoneRequest.prototype.setPhone = function(
|
|
|
892
906
|
};
|
|
893
907
|
|
|
894
908
|
|
|
909
|
+
/**
|
|
910
|
+
* optional ContactType type = 2;
|
|
911
|
+
* @return {!proto.wechaty.puppet.ContactType}
|
|
912
|
+
*/
|
|
913
|
+
proto.wechaty.puppet.FriendshipSearchPhoneRequest.prototype.getType = function() {
|
|
914
|
+
return /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* @param {!proto.wechaty.puppet.ContactType} value
|
|
920
|
+
* @return {!proto.wechaty.puppet.FriendshipSearchPhoneRequest} returns this
|
|
921
|
+
*/
|
|
922
|
+
proto.wechaty.puppet.FriendshipSearchPhoneRequest.prototype.setType = function(value) {
|
|
923
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
|
|
895
927
|
|
|
896
928
|
|
|
897
929
|
|
|
@@ -1105,7 +1137,8 @@ proto.wechaty.puppet.FriendshipSearchHandleRequest.prototype.toObject = function
|
|
|
1105
1137
|
*/
|
|
1106
1138
|
proto.wechaty.puppet.FriendshipSearchHandleRequest.toObject = function(includeInstance, msg) {
|
|
1107
1139
|
var f, obj = {
|
|
1108
|
-
weixin: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1140
|
+
weixin: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1141
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1109
1142
|
};
|
|
1110
1143
|
|
|
1111
1144
|
if (includeInstance) {
|
|
@@ -1146,6 +1179,10 @@ proto.wechaty.puppet.FriendshipSearchHandleRequest.deserializeBinaryFromReader =
|
|
|
1146
1179
|
var value = /** @type {string} */ (reader.readString());
|
|
1147
1180
|
msg.setWeixin(value);
|
|
1148
1181
|
break;
|
|
1182
|
+
case 2:
|
|
1183
|
+
var value = /** @type {!proto.wechaty.puppet.ContactType} */ (reader.readEnum());
|
|
1184
|
+
msg.setType(value);
|
|
1185
|
+
break;
|
|
1149
1186
|
default:
|
|
1150
1187
|
reader.skipField();
|
|
1151
1188
|
break;
|
|
@@ -1182,6 +1219,13 @@ proto.wechaty.puppet.FriendshipSearchHandleRequest.serializeBinaryToWriter = fun
|
|
|
1182
1219
|
f
|
|
1183
1220
|
);
|
|
1184
1221
|
}
|
|
1222
|
+
f = message.getType();
|
|
1223
|
+
if (f !== 0.0) {
|
|
1224
|
+
writer.writeEnum(
|
|
1225
|
+
2,
|
|
1226
|
+
f
|
|
1227
|
+
);
|
|
1228
|
+
}
|
|
1185
1229
|
};
|
|
1186
1230
|
|
|
1187
1231
|
|
|
@@ -1203,6 +1247,24 @@ proto.wechaty.puppet.FriendshipSearchHandleRequest.prototype.setWeixin = functio
|
|
|
1203
1247
|
};
|
|
1204
1248
|
|
|
1205
1249
|
|
|
1250
|
+
/**
|
|
1251
|
+
* optional ContactType type = 2;
|
|
1252
|
+
* @return {!proto.wechaty.puppet.ContactType}
|
|
1253
|
+
*/
|
|
1254
|
+
proto.wechaty.puppet.FriendshipSearchHandleRequest.prototype.getType = function() {
|
|
1255
|
+
return /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* @param {!proto.wechaty.puppet.ContactType} value
|
|
1261
|
+
* @return {!proto.wechaty.puppet.FriendshipSearchHandleRequest} returns this
|
|
1262
|
+
*/
|
|
1263
|
+
proto.wechaty.puppet.FriendshipSearchHandleRequest.prototype.setType = function(value) {
|
|
1264
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
|
|
1206
1268
|
|
|
1207
1269
|
|
|
1208
1270
|
|
|
@@ -227,13 +227,42 @@ export namespace TagGroupDeleteResponse {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
export class
|
|
230
|
+
export class TagTagInfo extends jspb.Message {
|
|
231
|
+
getTagId(): string;
|
|
232
|
+
setTagId(value: string): void;
|
|
233
|
+
|
|
231
234
|
getTagName(): string;
|
|
232
235
|
setTagName(value: string): void;
|
|
233
236
|
|
|
237
|
+
serializeBinary(): Uint8Array;
|
|
238
|
+
toObject(includeInstance?: boolean): TagTagInfo.AsObject;
|
|
239
|
+
static toObject(includeInstance: boolean, msg: TagTagInfo): TagTagInfo.AsObject;
|
|
240
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
241
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
242
|
+
static serializeBinaryToWriter(message: TagTagInfo, writer: jspb.BinaryWriter): void;
|
|
243
|
+
static deserializeBinary(bytes: Uint8Array): TagTagInfo;
|
|
244
|
+
static deserializeBinaryFromReader(message: TagTagInfo, reader: jspb.BinaryReader): TagTagInfo;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export namespace TagTagInfo {
|
|
248
|
+
export type AsObject = {
|
|
249
|
+
tagId: string,
|
|
250
|
+
tagName: string,
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export class TagTagAddRequest extends jspb.Message {
|
|
255
|
+
getDeprecatedTagName(): string;
|
|
256
|
+
setDeprecatedTagName(value: string): void;
|
|
257
|
+
|
|
234
258
|
getTagGroupId(): string;
|
|
235
259
|
setTagGroupId(value: string): void;
|
|
236
260
|
|
|
261
|
+
clearTagNameList(): void;
|
|
262
|
+
getTagNameList(): Array<string>;
|
|
263
|
+
setTagNameList(value: Array<string>): void;
|
|
264
|
+
addTagName(value: string, index?: number): string;
|
|
265
|
+
|
|
237
266
|
serializeBinary(): Uint8Array;
|
|
238
267
|
toObject(includeInstance?: boolean): TagTagAddRequest.AsObject;
|
|
239
268
|
static toObject(includeInstance: boolean, msg: TagTagAddRequest): TagTagAddRequest.AsObject;
|
|
@@ -246,14 +275,20 @@ export class TagTagAddRequest extends jspb.Message {
|
|
|
246
275
|
|
|
247
276
|
export namespace TagTagAddRequest {
|
|
248
277
|
export type AsObject = {
|
|
249
|
-
|
|
278
|
+
deprecatedTagName: string,
|
|
250
279
|
tagGroupId: string,
|
|
280
|
+
tagNameList: Array<string>,
|
|
251
281
|
}
|
|
252
282
|
}
|
|
253
283
|
|
|
254
284
|
export class TagTagAddResponse extends jspb.Message {
|
|
255
|
-
|
|
256
|
-
|
|
285
|
+
getDeprecatedTagId(): string;
|
|
286
|
+
setDeprecatedTagId(value: string): void;
|
|
287
|
+
|
|
288
|
+
clearTagInfoList(): void;
|
|
289
|
+
getTagInfoList(): Array<TagTagInfo>;
|
|
290
|
+
setTagInfoList(value: Array<TagTagInfo>): void;
|
|
291
|
+
addTagInfo(value?: TagTagInfo, index?: number): TagTagInfo;
|
|
257
292
|
|
|
258
293
|
serializeBinary(): Uint8Array;
|
|
259
294
|
toObject(includeInstance?: boolean): TagTagAddResponse.AsObject;
|
|
@@ -267,13 +302,19 @@ export class TagTagAddResponse extends jspb.Message {
|
|
|
267
302
|
|
|
268
303
|
export namespace TagTagAddResponse {
|
|
269
304
|
export type AsObject = {
|
|
270
|
-
|
|
305
|
+
deprecatedTagId: string,
|
|
306
|
+
tagInfoList: Array<TagTagInfo.AsObject>,
|
|
271
307
|
}
|
|
272
308
|
}
|
|
273
309
|
|
|
274
310
|
export class TagTagDeleteRequest extends jspb.Message {
|
|
275
|
-
|
|
276
|
-
|
|
311
|
+
getDeprecatedTagId(): string;
|
|
312
|
+
setDeprecatedTagId(value: string): void;
|
|
313
|
+
|
|
314
|
+
clearTagIdList(): void;
|
|
315
|
+
getTagIdList(): Array<string>;
|
|
316
|
+
setTagIdList(value: Array<string>): void;
|
|
317
|
+
addTagId(value: string, index?: number): string;
|
|
277
318
|
|
|
278
319
|
serializeBinary(): Uint8Array;
|
|
279
320
|
toObject(includeInstance?: boolean): TagTagDeleteRequest.AsObject;
|
|
@@ -287,7 +328,8 @@ export class TagTagDeleteRequest extends jspb.Message {
|
|
|
287
328
|
|
|
288
329
|
export namespace TagTagDeleteRequest {
|
|
289
330
|
export type AsObject = {
|
|
290
|
-
|
|
331
|
+
deprecatedTagId: string,
|
|
332
|
+
tagIdList: Array<string>,
|
|
291
333
|
}
|
|
292
334
|
}
|
|
293
335
|
|
|
@@ -308,11 +350,16 @@ export namespace TagTagDeleteResponse {
|
|
|
308
350
|
}
|
|
309
351
|
|
|
310
352
|
export class TagTagModifyRequest extends jspb.Message {
|
|
311
|
-
|
|
312
|
-
|
|
353
|
+
getDeprecatedTagId(): string;
|
|
354
|
+
setDeprecatedTagId(value: string): void;
|
|
313
355
|
|
|
314
|
-
|
|
315
|
-
|
|
356
|
+
getDeprecatedTagNewName(): string;
|
|
357
|
+
setDeprecatedTagNewName(value: string): void;
|
|
358
|
+
|
|
359
|
+
clearTagNewInfoList(): void;
|
|
360
|
+
getTagNewInfoList(): Array<TagTagInfo>;
|
|
361
|
+
setTagNewInfoList(value: Array<TagTagInfo>): void;
|
|
362
|
+
addTagNewInfo(value?: TagTagInfo, index?: number): TagTagInfo;
|
|
316
363
|
|
|
317
364
|
serializeBinary(): Uint8Array;
|
|
318
365
|
toObject(includeInstance?: boolean): TagTagModifyRequest.AsObject;
|
|
@@ -326,17 +373,23 @@ export class TagTagModifyRequest extends jspb.Message {
|
|
|
326
373
|
|
|
327
374
|
export namespace TagTagModifyRequest {
|
|
328
375
|
export type AsObject = {
|
|
329
|
-
|
|
330
|
-
|
|
376
|
+
deprecatedTagId: string,
|
|
377
|
+
deprecatedTagNewName: string,
|
|
378
|
+
tagNewInfoList: Array<TagTagInfo.AsObject>,
|
|
331
379
|
}
|
|
332
380
|
}
|
|
333
381
|
|
|
334
382
|
export class TagTagModifyResponse extends jspb.Message {
|
|
335
|
-
|
|
336
|
-
|
|
383
|
+
getDeprecatedTagId(): string;
|
|
384
|
+
setDeprecatedTagId(value: string): void;
|
|
337
385
|
|
|
338
|
-
|
|
339
|
-
|
|
386
|
+
getDeprecatedTagName(): string;
|
|
387
|
+
setDeprecatedTagName(value: string): void;
|
|
388
|
+
|
|
389
|
+
clearTagInfoList(): void;
|
|
390
|
+
getTagInfoList(): Array<TagTagInfo>;
|
|
391
|
+
setTagInfoList(value: Array<TagTagInfo>): void;
|
|
392
|
+
addTagInfo(value?: TagTagInfo, index?: number): TagTagInfo;
|
|
340
393
|
|
|
341
394
|
serializeBinary(): Uint8Array;
|
|
342
395
|
toObject(includeInstance?: boolean): TagTagModifyResponse.AsObject;
|
|
@@ -350,8 +403,9 @@ export class TagTagModifyResponse extends jspb.Message {
|
|
|
350
403
|
|
|
351
404
|
export namespace TagTagModifyResponse {
|
|
352
405
|
export type AsObject = {
|
|
353
|
-
|
|
354
|
-
|
|
406
|
+
deprecatedTagId: string,
|
|
407
|
+
deprecatedTagName: string,
|
|
408
|
+
tagInfoList: Array<TagTagInfo.AsObject>,
|
|
355
409
|
}
|
|
356
410
|
}
|
|
357
411
|
|