@juzi/wechaty-grpc 1.0.79 → 1.0.81
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/wecom_pb.d.ts +87 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +642 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +82 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +102 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +20 -0
- package/dist/cjs/proto/wechaty/puppet.proto +6 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/integration.spec.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +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/wecom_pb.d.ts +87 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +642 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +82 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +102 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/esm/proto/wechaty/puppet/wecom.proto +20 -0
- package/dist/esm/proto/wechaty/puppet.proto +6 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/integration.spec.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +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/wecom_pb.d.ts +87 -0
- package/out/wechaty/puppet/wecom_pb.js +642 -0
- package/out/wechaty/puppet.openapi.yaml +82 -1
- package/out/wechaty/puppet.swagger.json +102 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- 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
|
|
|
@@ -225,3 +225,90 @@ export namespace ApplyRoomAntiSpamStrategyResponse {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
export class CorpMessageInterceptionStrategy extends jspb.Message {
|
|
229
|
+
getName(): string;
|
|
230
|
+
setName(value: string): void;
|
|
231
|
+
|
|
232
|
+
clearWordsList(): void;
|
|
233
|
+
getWordsList(): Array<string>;
|
|
234
|
+
setWordsList(value: Array<string>): void;
|
|
235
|
+
addWords(value: string, index?: number): string;
|
|
236
|
+
|
|
237
|
+
getPhoneNumber(): boolean;
|
|
238
|
+
setPhoneNumber(value: boolean): void;
|
|
239
|
+
|
|
240
|
+
getEmail(): boolean;
|
|
241
|
+
setEmail(value: boolean): void;
|
|
242
|
+
|
|
243
|
+
getRedPocket(): boolean;
|
|
244
|
+
setRedPocket(value: boolean): void;
|
|
245
|
+
|
|
246
|
+
getType(): CorpMessageInterceptionTypeMap[keyof CorpMessageInterceptionTypeMap];
|
|
247
|
+
setType(value: CorpMessageInterceptionTypeMap[keyof CorpMessageInterceptionTypeMap]): void;
|
|
248
|
+
|
|
249
|
+
serializeBinary(): Uint8Array;
|
|
250
|
+
toObject(includeInstance?: boolean): CorpMessageInterceptionStrategy.AsObject;
|
|
251
|
+
static toObject(includeInstance: boolean, msg: CorpMessageInterceptionStrategy): CorpMessageInterceptionStrategy.AsObject;
|
|
252
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
253
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
254
|
+
static serializeBinaryToWriter(message: CorpMessageInterceptionStrategy, writer: jspb.BinaryWriter): void;
|
|
255
|
+
static deserializeBinary(bytes: Uint8Array): CorpMessageInterceptionStrategy;
|
|
256
|
+
static deserializeBinaryFromReader(message: CorpMessageInterceptionStrategy, reader: jspb.BinaryReader): CorpMessageInterceptionStrategy;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export namespace CorpMessageInterceptionStrategy {
|
|
260
|
+
export type AsObject = {
|
|
261
|
+
name: string,
|
|
262
|
+
wordsList: Array<string>,
|
|
263
|
+
phoneNumber: boolean,
|
|
264
|
+
email: boolean,
|
|
265
|
+
redPocket: boolean,
|
|
266
|
+
type: CorpMessageInterceptionTypeMap[keyof CorpMessageInterceptionTypeMap],
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export class GetCorpMessageInterceptionStrategiesRequest extends jspb.Message {
|
|
271
|
+
serializeBinary(): Uint8Array;
|
|
272
|
+
toObject(includeInstance?: boolean): GetCorpMessageInterceptionStrategiesRequest.AsObject;
|
|
273
|
+
static toObject(includeInstance: boolean, msg: GetCorpMessageInterceptionStrategiesRequest): GetCorpMessageInterceptionStrategiesRequest.AsObject;
|
|
274
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
275
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
276
|
+
static serializeBinaryToWriter(message: GetCorpMessageInterceptionStrategiesRequest, writer: jspb.BinaryWriter): void;
|
|
277
|
+
static deserializeBinary(bytes: Uint8Array): GetCorpMessageInterceptionStrategiesRequest;
|
|
278
|
+
static deserializeBinaryFromReader(message: GetCorpMessageInterceptionStrategiesRequest, reader: jspb.BinaryReader): GetCorpMessageInterceptionStrategiesRequest;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export namespace GetCorpMessageInterceptionStrategiesRequest {
|
|
282
|
+
export type AsObject = {
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export class GetCorpMessageInterceptionStrategiesResponse extends jspb.Message {
|
|
287
|
+
clearStrategiesList(): void;
|
|
288
|
+
getStrategiesList(): Array<CorpMessageInterceptionStrategy>;
|
|
289
|
+
setStrategiesList(value: Array<CorpMessageInterceptionStrategy>): void;
|
|
290
|
+
addStrategies(value?: CorpMessageInterceptionStrategy, index?: number): CorpMessageInterceptionStrategy;
|
|
291
|
+
|
|
292
|
+
serializeBinary(): Uint8Array;
|
|
293
|
+
toObject(includeInstance?: boolean): GetCorpMessageInterceptionStrategiesResponse.AsObject;
|
|
294
|
+
static toObject(includeInstance: boolean, msg: GetCorpMessageInterceptionStrategiesResponse): GetCorpMessageInterceptionStrategiesResponse.AsObject;
|
|
295
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
296
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
297
|
+
static serializeBinaryToWriter(message: GetCorpMessageInterceptionStrategiesResponse, writer: jspb.BinaryWriter): void;
|
|
298
|
+
static deserializeBinary(bytes: Uint8Array): GetCorpMessageInterceptionStrategiesResponse;
|
|
299
|
+
static deserializeBinaryFromReader(message: GetCorpMessageInterceptionStrategiesResponse, reader: jspb.BinaryReader): GetCorpMessageInterceptionStrategiesResponse;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export namespace GetCorpMessageInterceptionStrategiesResponse {
|
|
303
|
+
export type AsObject = {
|
|
304
|
+
strategiesList: Array<CorpMessageInterceptionStrategy.AsObject>,
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface CorpMessageInterceptionTypeMap {
|
|
309
|
+
INTERCEPTION_TYPE_HARD: 0;
|
|
310
|
+
INTERCEPTION_TYPE_SOFT: 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export const CorpMessageInterceptionType: CorpMessageInterceptionTypeMap;
|
|
314
|
+
|