@juzi/wechaty-grpc 1.0.35 → 1.0.36
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/contact_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +1 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +1 -1
- package/dist/cjs/proto/wechaty/puppet/contact.proto +6 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +1 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +1 -1
- package/dist/esm/proto/wechaty/puppet/contact.proto +6 -0
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +36 -0
- package/out/wechaty/puppet/contact_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +1 -1
- package/out/wechaty/puppet.swagger.json +1 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -526,6 +526,42 @@ export namespace ContactDescriptionResponse {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
+
export class ContactDeleteRequest extends jspb.Message {
|
|
530
|
+
getContactId(): string;
|
|
531
|
+
setContactId(value: string): void;
|
|
532
|
+
|
|
533
|
+
serializeBinary(): Uint8Array;
|
|
534
|
+
toObject(includeInstance?: boolean): ContactDeleteRequest.AsObject;
|
|
535
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteRequest): ContactDeleteRequest.AsObject;
|
|
536
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
537
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
538
|
+
static serializeBinaryToWriter(message: ContactDeleteRequest, writer: jspb.BinaryWriter): void;
|
|
539
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteRequest;
|
|
540
|
+
static deserializeBinaryFromReader(message: ContactDeleteRequest, reader: jspb.BinaryReader): ContactDeleteRequest;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export namespace ContactDeleteRequest {
|
|
544
|
+
export type AsObject = {
|
|
545
|
+
contactId: string,
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export class ContactDeleteResponse extends jspb.Message {
|
|
550
|
+
serializeBinary(): Uint8Array;
|
|
551
|
+
toObject(includeInstance?: boolean): ContactDeleteResponse.AsObject;
|
|
552
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteResponse): ContactDeleteResponse.AsObject;
|
|
553
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
554
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
555
|
+
static serializeBinaryToWriter(message: ContactDeleteResponse, writer: jspb.BinaryWriter): void;
|
|
556
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteResponse;
|
|
557
|
+
static deserializeBinaryFromReader(message: ContactDeleteResponse, reader: jspb.BinaryReader): ContactDeleteResponse;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export namespace ContactDeleteResponse {
|
|
561
|
+
export type AsObject = {
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
529
565
|
export interface ContactGenderMap {
|
|
530
566
|
CONTACT_GENDER_UNSPECIFIED: 0;
|
|
531
567
|
CONTACT_GENDER_MALE: 1;
|
|
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
|
|
|
23
23
|
goog.exportSymbol('proto.wechaty.puppet.ContactAvatarResponse', null, global);
|
|
24
24
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
|
|
@@ -459,6 +461,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
459
461
|
*/
|
|
460
462
|
proto.wechaty.puppet.ContactDescriptionResponse.displayName = 'proto.wechaty.puppet.ContactDescriptionResponse';
|
|
461
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Generated by JsPbCodeGenerator.
|
|
466
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
467
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
468
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
469
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
470
|
+
* valid.
|
|
471
|
+
* @extends {jspb.Message}
|
|
472
|
+
* @constructor
|
|
473
|
+
*/
|
|
474
|
+
proto.wechaty.puppet.ContactDeleteRequest = function(opt_data) {
|
|
475
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
476
|
+
};
|
|
477
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteRequest, jspb.Message);
|
|
478
|
+
if (goog.DEBUG && !COMPILED) {
|
|
479
|
+
/**
|
|
480
|
+
* @public
|
|
481
|
+
* @override
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.ContactDeleteRequest.displayName = 'proto.wechaty.puppet.ContactDeleteRequest';
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Generated by JsPbCodeGenerator.
|
|
487
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
488
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
489
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
490
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
491
|
+
* valid.
|
|
492
|
+
* @extends {jspb.Message}
|
|
493
|
+
* @constructor
|
|
494
|
+
*/
|
|
495
|
+
proto.wechaty.puppet.ContactDeleteResponse = function(opt_data) {
|
|
496
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
497
|
+
};
|
|
498
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteResponse, jspb.Message);
|
|
499
|
+
if (goog.DEBUG && !COMPILED) {
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
* @override
|
|
503
|
+
*/
|
|
504
|
+
proto.wechaty.puppet.ContactDeleteResponse.displayName = 'proto.wechaty.puppet.ContactDeleteResponse';
|
|
505
|
+
}
|
|
462
506
|
|
|
463
507
|
|
|
464
508
|
|
|
@@ -4070,6 +4114,237 @@ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter = functi
|
|
|
4070
4114
|
};
|
|
4071
4115
|
|
|
4072
4116
|
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
|
|
4120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4121
|
+
/**
|
|
4122
|
+
* Creates an object representation of this proto.
|
|
4123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4124
|
+
* Optional fields that are not set will be set to undefined.
|
|
4125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4126
|
+
* For the list of reserved names please see:
|
|
4127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4129
|
+
* JSPB instance for transitional soy proto support:
|
|
4130
|
+
* http://goto/soy-param-migration
|
|
4131
|
+
* @return {!Object}
|
|
4132
|
+
*/
|
|
4133
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4134
|
+
return proto.wechaty.puppet.ContactDeleteRequest.toObject(opt_includeInstance, this);
|
|
4135
|
+
};
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
/**
|
|
4139
|
+
* Static version of the {@see toObject} method.
|
|
4140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4141
|
+
* the JSPB instance for transitional soy proto support:
|
|
4142
|
+
* http://goto/soy-param-migration
|
|
4143
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The msg instance to transform.
|
|
4144
|
+
* @return {!Object}
|
|
4145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4146
|
+
*/
|
|
4147
|
+
proto.wechaty.puppet.ContactDeleteRequest.toObject = function(includeInstance, msg) {
|
|
4148
|
+
var f, obj = {
|
|
4149
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4152
|
+
if (includeInstance) {
|
|
4153
|
+
obj.$jspbMessageInstance = msg;
|
|
4154
|
+
}
|
|
4155
|
+
return obj;
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4162
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4163
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4164
|
+
*/
|
|
4165
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinary = function(bytes) {
|
|
4166
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4167
|
+
var msg = new proto.wechaty.puppet.ContactDeleteRequest;
|
|
4168
|
+
return proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader(msg, reader);
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4174
|
+
* given reader into the given message object.
|
|
4175
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The message object to deserialize into.
|
|
4176
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4177
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4178
|
+
*/
|
|
4179
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4180
|
+
while (reader.nextField()) {
|
|
4181
|
+
if (reader.isEndGroup()) {
|
|
4182
|
+
break;
|
|
4183
|
+
}
|
|
4184
|
+
var field = reader.getFieldNumber();
|
|
4185
|
+
switch (field) {
|
|
4186
|
+
case 1:
|
|
4187
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4188
|
+
msg.setContactId(value);
|
|
4189
|
+
break;
|
|
4190
|
+
default:
|
|
4191
|
+
reader.skipField();
|
|
4192
|
+
break;
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
return msg;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
/**
|
|
4200
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4201
|
+
* @return {!Uint8Array}
|
|
4202
|
+
*/
|
|
4203
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.serializeBinary = function() {
|
|
4204
|
+
var writer = new jspb.BinaryWriter();
|
|
4205
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter(this, writer);
|
|
4206
|
+
return writer.getResultBuffer();
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
/**
|
|
4211
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4212
|
+
* format), writing to the given BinaryWriter.
|
|
4213
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} message
|
|
4214
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4215
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4216
|
+
*/
|
|
4217
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4218
|
+
var f = undefined;
|
|
4219
|
+
f = message.getContactId();
|
|
4220
|
+
if (f.length > 0) {
|
|
4221
|
+
writer.writeString(
|
|
4222
|
+
1,
|
|
4223
|
+
f
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* optional string contact_id = 1;
|
|
4231
|
+
* @return {string}
|
|
4232
|
+
*/
|
|
4233
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.getContactId = function() {
|
|
4234
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4235
|
+
};
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
/**
|
|
4239
|
+
* @param {string} value
|
|
4240
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest} returns this
|
|
4241
|
+
*/
|
|
4242
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.setContactId = function(value) {
|
|
4243
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4251
|
+
/**
|
|
4252
|
+
* Creates an object representation of this proto.
|
|
4253
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4254
|
+
* Optional fields that are not set will be set to undefined.
|
|
4255
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4256
|
+
* For the list of reserved names please see:
|
|
4257
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4258
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4259
|
+
* JSPB instance for transitional soy proto support:
|
|
4260
|
+
* http://goto/soy-param-migration
|
|
4261
|
+
* @return {!Object}
|
|
4262
|
+
*/
|
|
4263
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4264
|
+
return proto.wechaty.puppet.ContactDeleteResponse.toObject(opt_includeInstance, this);
|
|
4265
|
+
};
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
/**
|
|
4269
|
+
* Static version of the {@see toObject} method.
|
|
4270
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4271
|
+
* the JSPB instance for transitional soy proto support:
|
|
4272
|
+
* http://goto/soy-param-migration
|
|
4273
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The msg instance to transform.
|
|
4274
|
+
* @return {!Object}
|
|
4275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4276
|
+
*/
|
|
4277
|
+
proto.wechaty.puppet.ContactDeleteResponse.toObject = function(includeInstance, msg) {
|
|
4278
|
+
var f, obj = {
|
|
4279
|
+
|
|
4280
|
+
};
|
|
4281
|
+
|
|
4282
|
+
if (includeInstance) {
|
|
4283
|
+
obj.$jspbMessageInstance = msg;
|
|
4284
|
+
}
|
|
4285
|
+
return obj;
|
|
4286
|
+
};
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4293
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4294
|
+
*/
|
|
4295
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinary = function(bytes) {
|
|
4296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4297
|
+
var msg = new proto.wechaty.puppet.ContactDeleteResponse;
|
|
4298
|
+
return proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader(msg, reader);
|
|
4299
|
+
};
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4304
|
+
* given reader into the given message object.
|
|
4305
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The message object to deserialize into.
|
|
4306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4307
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4308
|
+
*/
|
|
4309
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4310
|
+
while (reader.nextField()) {
|
|
4311
|
+
if (reader.isEndGroup()) {
|
|
4312
|
+
break;
|
|
4313
|
+
}
|
|
4314
|
+
var field = reader.getFieldNumber();
|
|
4315
|
+
switch (field) {
|
|
4316
|
+
default:
|
|
4317
|
+
reader.skipField();
|
|
4318
|
+
break;
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
return msg;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4327
|
+
* @return {!Uint8Array}
|
|
4328
|
+
*/
|
|
4329
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.serializeBinary = function() {
|
|
4330
|
+
var writer = new jspb.BinaryWriter();
|
|
4331
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter(this, writer);
|
|
4332
|
+
return writer.getResultBuffer();
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4338
|
+
* format), writing to the given BinaryWriter.
|
|
4339
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} message
|
|
4340
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4342
|
+
*/
|
|
4343
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4344
|
+
var f = undefined;
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
|
|
4073
4348
|
/**
|
|
4074
4349
|
* @enum {number}
|
|
4075
4350
|
*/
|
|
@@ -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.36
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -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.36",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -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.36",
|
|
7
7
|
"description": "gRPC for Wechaty",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
@@ -526,6 +526,42 @@ export namespace ContactDescriptionResponse {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
+
export class ContactDeleteRequest extends jspb.Message {
|
|
530
|
+
getContactId(): string;
|
|
531
|
+
setContactId(value: string): void;
|
|
532
|
+
|
|
533
|
+
serializeBinary(): Uint8Array;
|
|
534
|
+
toObject(includeInstance?: boolean): ContactDeleteRequest.AsObject;
|
|
535
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteRequest): ContactDeleteRequest.AsObject;
|
|
536
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
537
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
538
|
+
static serializeBinaryToWriter(message: ContactDeleteRequest, writer: jspb.BinaryWriter): void;
|
|
539
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteRequest;
|
|
540
|
+
static deserializeBinaryFromReader(message: ContactDeleteRequest, reader: jspb.BinaryReader): ContactDeleteRequest;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export namespace ContactDeleteRequest {
|
|
544
|
+
export type AsObject = {
|
|
545
|
+
contactId: string,
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export class ContactDeleteResponse extends jspb.Message {
|
|
550
|
+
serializeBinary(): Uint8Array;
|
|
551
|
+
toObject(includeInstance?: boolean): ContactDeleteResponse.AsObject;
|
|
552
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteResponse): ContactDeleteResponse.AsObject;
|
|
553
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
554
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
555
|
+
static serializeBinaryToWriter(message: ContactDeleteResponse, writer: jspb.BinaryWriter): void;
|
|
556
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteResponse;
|
|
557
|
+
static deserializeBinaryFromReader(message: ContactDeleteResponse, reader: jspb.BinaryReader): ContactDeleteResponse;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export namespace ContactDeleteResponse {
|
|
561
|
+
export type AsObject = {
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
529
565
|
export interface ContactGenderMap {
|
|
530
566
|
CONTACT_GENDER_UNSPECIFIED: 0;
|
|
531
567
|
CONTACT_GENDER_MALE: 1;
|
|
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
|
|
|
23
23
|
goog.exportSymbol('proto.wechaty.puppet.ContactAvatarResponse', null, global);
|
|
24
24
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
|
|
@@ -459,6 +461,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
459
461
|
*/
|
|
460
462
|
proto.wechaty.puppet.ContactDescriptionResponse.displayName = 'proto.wechaty.puppet.ContactDescriptionResponse';
|
|
461
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Generated by JsPbCodeGenerator.
|
|
466
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
467
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
468
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
469
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
470
|
+
* valid.
|
|
471
|
+
* @extends {jspb.Message}
|
|
472
|
+
* @constructor
|
|
473
|
+
*/
|
|
474
|
+
proto.wechaty.puppet.ContactDeleteRequest = function(opt_data) {
|
|
475
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
476
|
+
};
|
|
477
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteRequest, jspb.Message);
|
|
478
|
+
if (goog.DEBUG && !COMPILED) {
|
|
479
|
+
/**
|
|
480
|
+
* @public
|
|
481
|
+
* @override
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.ContactDeleteRequest.displayName = 'proto.wechaty.puppet.ContactDeleteRequest';
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Generated by JsPbCodeGenerator.
|
|
487
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
488
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
489
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
490
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
491
|
+
* valid.
|
|
492
|
+
* @extends {jspb.Message}
|
|
493
|
+
* @constructor
|
|
494
|
+
*/
|
|
495
|
+
proto.wechaty.puppet.ContactDeleteResponse = function(opt_data) {
|
|
496
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
497
|
+
};
|
|
498
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteResponse, jspb.Message);
|
|
499
|
+
if (goog.DEBUG && !COMPILED) {
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
* @override
|
|
503
|
+
*/
|
|
504
|
+
proto.wechaty.puppet.ContactDeleteResponse.displayName = 'proto.wechaty.puppet.ContactDeleteResponse';
|
|
505
|
+
}
|
|
462
506
|
|
|
463
507
|
|
|
464
508
|
|
|
@@ -4070,6 +4114,237 @@ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter = functi
|
|
|
4070
4114
|
};
|
|
4071
4115
|
|
|
4072
4116
|
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
|
|
4120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4121
|
+
/**
|
|
4122
|
+
* Creates an object representation of this proto.
|
|
4123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4124
|
+
* Optional fields that are not set will be set to undefined.
|
|
4125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4126
|
+
* For the list of reserved names please see:
|
|
4127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4129
|
+
* JSPB instance for transitional soy proto support:
|
|
4130
|
+
* http://goto/soy-param-migration
|
|
4131
|
+
* @return {!Object}
|
|
4132
|
+
*/
|
|
4133
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4134
|
+
return proto.wechaty.puppet.ContactDeleteRequest.toObject(opt_includeInstance, this);
|
|
4135
|
+
};
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
/**
|
|
4139
|
+
* Static version of the {@see toObject} method.
|
|
4140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4141
|
+
* the JSPB instance for transitional soy proto support:
|
|
4142
|
+
* http://goto/soy-param-migration
|
|
4143
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The msg instance to transform.
|
|
4144
|
+
* @return {!Object}
|
|
4145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4146
|
+
*/
|
|
4147
|
+
proto.wechaty.puppet.ContactDeleteRequest.toObject = function(includeInstance, msg) {
|
|
4148
|
+
var f, obj = {
|
|
4149
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4152
|
+
if (includeInstance) {
|
|
4153
|
+
obj.$jspbMessageInstance = msg;
|
|
4154
|
+
}
|
|
4155
|
+
return obj;
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4162
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4163
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4164
|
+
*/
|
|
4165
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinary = function(bytes) {
|
|
4166
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4167
|
+
var msg = new proto.wechaty.puppet.ContactDeleteRequest;
|
|
4168
|
+
return proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader(msg, reader);
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4174
|
+
* given reader into the given message object.
|
|
4175
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The message object to deserialize into.
|
|
4176
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4177
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4178
|
+
*/
|
|
4179
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4180
|
+
while (reader.nextField()) {
|
|
4181
|
+
if (reader.isEndGroup()) {
|
|
4182
|
+
break;
|
|
4183
|
+
}
|
|
4184
|
+
var field = reader.getFieldNumber();
|
|
4185
|
+
switch (field) {
|
|
4186
|
+
case 1:
|
|
4187
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4188
|
+
msg.setContactId(value);
|
|
4189
|
+
break;
|
|
4190
|
+
default:
|
|
4191
|
+
reader.skipField();
|
|
4192
|
+
break;
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
return msg;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
/**
|
|
4200
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4201
|
+
* @return {!Uint8Array}
|
|
4202
|
+
*/
|
|
4203
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.serializeBinary = function() {
|
|
4204
|
+
var writer = new jspb.BinaryWriter();
|
|
4205
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter(this, writer);
|
|
4206
|
+
return writer.getResultBuffer();
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
/**
|
|
4211
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4212
|
+
* format), writing to the given BinaryWriter.
|
|
4213
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} message
|
|
4214
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4215
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4216
|
+
*/
|
|
4217
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4218
|
+
var f = undefined;
|
|
4219
|
+
f = message.getContactId();
|
|
4220
|
+
if (f.length > 0) {
|
|
4221
|
+
writer.writeString(
|
|
4222
|
+
1,
|
|
4223
|
+
f
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* optional string contact_id = 1;
|
|
4231
|
+
* @return {string}
|
|
4232
|
+
*/
|
|
4233
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.getContactId = function() {
|
|
4234
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4235
|
+
};
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
/**
|
|
4239
|
+
* @param {string} value
|
|
4240
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest} returns this
|
|
4241
|
+
*/
|
|
4242
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.setContactId = function(value) {
|
|
4243
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4251
|
+
/**
|
|
4252
|
+
* Creates an object representation of this proto.
|
|
4253
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4254
|
+
* Optional fields that are not set will be set to undefined.
|
|
4255
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4256
|
+
* For the list of reserved names please see:
|
|
4257
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4258
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4259
|
+
* JSPB instance for transitional soy proto support:
|
|
4260
|
+
* http://goto/soy-param-migration
|
|
4261
|
+
* @return {!Object}
|
|
4262
|
+
*/
|
|
4263
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4264
|
+
return proto.wechaty.puppet.ContactDeleteResponse.toObject(opt_includeInstance, this);
|
|
4265
|
+
};
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
/**
|
|
4269
|
+
* Static version of the {@see toObject} method.
|
|
4270
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4271
|
+
* the JSPB instance for transitional soy proto support:
|
|
4272
|
+
* http://goto/soy-param-migration
|
|
4273
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The msg instance to transform.
|
|
4274
|
+
* @return {!Object}
|
|
4275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4276
|
+
*/
|
|
4277
|
+
proto.wechaty.puppet.ContactDeleteResponse.toObject = function(includeInstance, msg) {
|
|
4278
|
+
var f, obj = {
|
|
4279
|
+
|
|
4280
|
+
};
|
|
4281
|
+
|
|
4282
|
+
if (includeInstance) {
|
|
4283
|
+
obj.$jspbMessageInstance = msg;
|
|
4284
|
+
}
|
|
4285
|
+
return obj;
|
|
4286
|
+
};
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4293
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4294
|
+
*/
|
|
4295
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinary = function(bytes) {
|
|
4296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4297
|
+
var msg = new proto.wechaty.puppet.ContactDeleteResponse;
|
|
4298
|
+
return proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader(msg, reader);
|
|
4299
|
+
};
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4304
|
+
* given reader into the given message object.
|
|
4305
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The message object to deserialize into.
|
|
4306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4307
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4308
|
+
*/
|
|
4309
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4310
|
+
while (reader.nextField()) {
|
|
4311
|
+
if (reader.isEndGroup()) {
|
|
4312
|
+
break;
|
|
4313
|
+
}
|
|
4314
|
+
var field = reader.getFieldNumber();
|
|
4315
|
+
switch (field) {
|
|
4316
|
+
default:
|
|
4317
|
+
reader.skipField();
|
|
4318
|
+
break;
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
return msg;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4327
|
+
* @return {!Uint8Array}
|
|
4328
|
+
*/
|
|
4329
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.serializeBinary = function() {
|
|
4330
|
+
var writer = new jspb.BinaryWriter();
|
|
4331
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter(this, writer);
|
|
4332
|
+
return writer.getResultBuffer();
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4338
|
+
* format), writing to the given BinaryWriter.
|
|
4339
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} message
|
|
4340
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4342
|
+
*/
|
|
4343
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4344
|
+
var f = undefined;
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
|
|
4073
4348
|
/**
|
|
4074
4349
|
* @enum {number}
|
|
4075
4350
|
*/
|
|
@@ -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.36
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -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.36",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -526,6 +526,42 @@ export namespace ContactDescriptionResponse {
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
+
export class ContactDeleteRequest extends jspb.Message {
|
|
530
|
+
getContactId(): string;
|
|
531
|
+
setContactId(value: string): void;
|
|
532
|
+
|
|
533
|
+
serializeBinary(): Uint8Array;
|
|
534
|
+
toObject(includeInstance?: boolean): ContactDeleteRequest.AsObject;
|
|
535
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteRequest): ContactDeleteRequest.AsObject;
|
|
536
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
537
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
538
|
+
static serializeBinaryToWriter(message: ContactDeleteRequest, writer: jspb.BinaryWriter): void;
|
|
539
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteRequest;
|
|
540
|
+
static deserializeBinaryFromReader(message: ContactDeleteRequest, reader: jspb.BinaryReader): ContactDeleteRequest;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export namespace ContactDeleteRequest {
|
|
544
|
+
export type AsObject = {
|
|
545
|
+
contactId: string,
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export class ContactDeleteResponse extends jspb.Message {
|
|
550
|
+
serializeBinary(): Uint8Array;
|
|
551
|
+
toObject(includeInstance?: boolean): ContactDeleteResponse.AsObject;
|
|
552
|
+
static toObject(includeInstance: boolean, msg: ContactDeleteResponse): ContactDeleteResponse.AsObject;
|
|
553
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
554
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
555
|
+
static serializeBinaryToWriter(message: ContactDeleteResponse, writer: jspb.BinaryWriter): void;
|
|
556
|
+
static deserializeBinary(bytes: Uint8Array): ContactDeleteResponse;
|
|
557
|
+
static deserializeBinaryFromReader(message: ContactDeleteResponse, reader: jspb.BinaryReader): ContactDeleteResponse;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export namespace ContactDeleteResponse {
|
|
561
|
+
export type AsObject = {
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
|
|
529
565
|
export interface ContactGenderMap {
|
|
530
566
|
CONTACT_GENDER_UNSPECIFIED: 0;
|
|
531
567
|
CONTACT_GENDER_MALE: 1;
|
|
@@ -23,6 +23,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
|
|
|
23
23
|
goog.exportSymbol('proto.wechaty.puppet.ContactAvatarResponse', null, global);
|
|
24
24
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkResponse', null, global);
|
|
26
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactDeleteResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
|
|
@@ -459,6 +461,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
459
461
|
*/
|
|
460
462
|
proto.wechaty.puppet.ContactDescriptionResponse.displayName = 'proto.wechaty.puppet.ContactDescriptionResponse';
|
|
461
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* Generated by JsPbCodeGenerator.
|
|
466
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
467
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
468
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
469
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
470
|
+
* valid.
|
|
471
|
+
* @extends {jspb.Message}
|
|
472
|
+
* @constructor
|
|
473
|
+
*/
|
|
474
|
+
proto.wechaty.puppet.ContactDeleteRequest = function(opt_data) {
|
|
475
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
476
|
+
};
|
|
477
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteRequest, jspb.Message);
|
|
478
|
+
if (goog.DEBUG && !COMPILED) {
|
|
479
|
+
/**
|
|
480
|
+
* @public
|
|
481
|
+
* @override
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.ContactDeleteRequest.displayName = 'proto.wechaty.puppet.ContactDeleteRequest';
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Generated by JsPbCodeGenerator.
|
|
487
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
488
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
489
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
490
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
491
|
+
* valid.
|
|
492
|
+
* @extends {jspb.Message}
|
|
493
|
+
* @constructor
|
|
494
|
+
*/
|
|
495
|
+
proto.wechaty.puppet.ContactDeleteResponse = function(opt_data) {
|
|
496
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
497
|
+
};
|
|
498
|
+
goog.inherits(proto.wechaty.puppet.ContactDeleteResponse, jspb.Message);
|
|
499
|
+
if (goog.DEBUG && !COMPILED) {
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
* @override
|
|
503
|
+
*/
|
|
504
|
+
proto.wechaty.puppet.ContactDeleteResponse.displayName = 'proto.wechaty.puppet.ContactDeleteResponse';
|
|
505
|
+
}
|
|
462
506
|
|
|
463
507
|
|
|
464
508
|
|
|
@@ -4070,6 +4114,237 @@ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter = functi
|
|
|
4070
4114
|
};
|
|
4071
4115
|
|
|
4072
4116
|
|
|
4117
|
+
|
|
4118
|
+
|
|
4119
|
+
|
|
4120
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4121
|
+
/**
|
|
4122
|
+
* Creates an object representation of this proto.
|
|
4123
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4124
|
+
* Optional fields that are not set will be set to undefined.
|
|
4125
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4126
|
+
* For the list of reserved names please see:
|
|
4127
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4128
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4129
|
+
* JSPB instance for transitional soy proto support:
|
|
4130
|
+
* http://goto/soy-param-migration
|
|
4131
|
+
* @return {!Object}
|
|
4132
|
+
*/
|
|
4133
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4134
|
+
return proto.wechaty.puppet.ContactDeleteRequest.toObject(opt_includeInstance, this);
|
|
4135
|
+
};
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
/**
|
|
4139
|
+
* Static version of the {@see toObject} method.
|
|
4140
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4141
|
+
* the JSPB instance for transitional soy proto support:
|
|
4142
|
+
* http://goto/soy-param-migration
|
|
4143
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The msg instance to transform.
|
|
4144
|
+
* @return {!Object}
|
|
4145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4146
|
+
*/
|
|
4147
|
+
proto.wechaty.puppet.ContactDeleteRequest.toObject = function(includeInstance, msg) {
|
|
4148
|
+
var f, obj = {
|
|
4149
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4150
|
+
};
|
|
4151
|
+
|
|
4152
|
+
if (includeInstance) {
|
|
4153
|
+
obj.$jspbMessageInstance = msg;
|
|
4154
|
+
}
|
|
4155
|
+
return obj;
|
|
4156
|
+
};
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4162
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4163
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4164
|
+
*/
|
|
4165
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinary = function(bytes) {
|
|
4166
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4167
|
+
var msg = new proto.wechaty.puppet.ContactDeleteRequest;
|
|
4168
|
+
return proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader(msg, reader);
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
/**
|
|
4173
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4174
|
+
* given reader into the given message object.
|
|
4175
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} msg The message object to deserialize into.
|
|
4176
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4177
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest}
|
|
4178
|
+
*/
|
|
4179
|
+
proto.wechaty.puppet.ContactDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4180
|
+
while (reader.nextField()) {
|
|
4181
|
+
if (reader.isEndGroup()) {
|
|
4182
|
+
break;
|
|
4183
|
+
}
|
|
4184
|
+
var field = reader.getFieldNumber();
|
|
4185
|
+
switch (field) {
|
|
4186
|
+
case 1:
|
|
4187
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4188
|
+
msg.setContactId(value);
|
|
4189
|
+
break;
|
|
4190
|
+
default:
|
|
4191
|
+
reader.skipField();
|
|
4192
|
+
break;
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
return msg;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
/**
|
|
4200
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4201
|
+
* @return {!Uint8Array}
|
|
4202
|
+
*/
|
|
4203
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.serializeBinary = function() {
|
|
4204
|
+
var writer = new jspb.BinaryWriter();
|
|
4205
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter(this, writer);
|
|
4206
|
+
return writer.getResultBuffer();
|
|
4207
|
+
};
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
/**
|
|
4211
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4212
|
+
* format), writing to the given BinaryWriter.
|
|
4213
|
+
* @param {!proto.wechaty.puppet.ContactDeleteRequest} message
|
|
4214
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4215
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4216
|
+
*/
|
|
4217
|
+
proto.wechaty.puppet.ContactDeleteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4218
|
+
var f = undefined;
|
|
4219
|
+
f = message.getContactId();
|
|
4220
|
+
if (f.length > 0) {
|
|
4221
|
+
writer.writeString(
|
|
4222
|
+
1,
|
|
4223
|
+
f
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
|
|
4229
|
+
/**
|
|
4230
|
+
* optional string contact_id = 1;
|
|
4231
|
+
* @return {string}
|
|
4232
|
+
*/
|
|
4233
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.getContactId = function() {
|
|
4234
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4235
|
+
};
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
/**
|
|
4239
|
+
* @param {string} value
|
|
4240
|
+
* @return {!proto.wechaty.puppet.ContactDeleteRequest} returns this
|
|
4241
|
+
*/
|
|
4242
|
+
proto.wechaty.puppet.ContactDeleteRequest.prototype.setContactId = function(value) {
|
|
4243
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
|
|
4247
|
+
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4251
|
+
/**
|
|
4252
|
+
* Creates an object representation of this proto.
|
|
4253
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4254
|
+
* Optional fields that are not set will be set to undefined.
|
|
4255
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4256
|
+
* For the list of reserved names please see:
|
|
4257
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4258
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4259
|
+
* JSPB instance for transitional soy proto support:
|
|
4260
|
+
* http://goto/soy-param-migration
|
|
4261
|
+
* @return {!Object}
|
|
4262
|
+
*/
|
|
4263
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4264
|
+
return proto.wechaty.puppet.ContactDeleteResponse.toObject(opt_includeInstance, this);
|
|
4265
|
+
};
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
/**
|
|
4269
|
+
* Static version of the {@see toObject} method.
|
|
4270
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4271
|
+
* the JSPB instance for transitional soy proto support:
|
|
4272
|
+
* http://goto/soy-param-migration
|
|
4273
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The msg instance to transform.
|
|
4274
|
+
* @return {!Object}
|
|
4275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4276
|
+
*/
|
|
4277
|
+
proto.wechaty.puppet.ContactDeleteResponse.toObject = function(includeInstance, msg) {
|
|
4278
|
+
var f, obj = {
|
|
4279
|
+
|
|
4280
|
+
};
|
|
4281
|
+
|
|
4282
|
+
if (includeInstance) {
|
|
4283
|
+
obj.$jspbMessageInstance = msg;
|
|
4284
|
+
}
|
|
4285
|
+
return obj;
|
|
4286
|
+
};
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4293
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4294
|
+
*/
|
|
4295
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinary = function(bytes) {
|
|
4296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4297
|
+
var msg = new proto.wechaty.puppet.ContactDeleteResponse;
|
|
4298
|
+
return proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader(msg, reader);
|
|
4299
|
+
};
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4304
|
+
* given reader into the given message object.
|
|
4305
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} msg The message object to deserialize into.
|
|
4306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4307
|
+
* @return {!proto.wechaty.puppet.ContactDeleteResponse}
|
|
4308
|
+
*/
|
|
4309
|
+
proto.wechaty.puppet.ContactDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4310
|
+
while (reader.nextField()) {
|
|
4311
|
+
if (reader.isEndGroup()) {
|
|
4312
|
+
break;
|
|
4313
|
+
}
|
|
4314
|
+
var field = reader.getFieldNumber();
|
|
4315
|
+
switch (field) {
|
|
4316
|
+
default:
|
|
4317
|
+
reader.skipField();
|
|
4318
|
+
break;
|
|
4319
|
+
}
|
|
4320
|
+
}
|
|
4321
|
+
return msg;
|
|
4322
|
+
};
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
/**
|
|
4326
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4327
|
+
* @return {!Uint8Array}
|
|
4328
|
+
*/
|
|
4329
|
+
proto.wechaty.puppet.ContactDeleteResponse.prototype.serializeBinary = function() {
|
|
4330
|
+
var writer = new jspb.BinaryWriter();
|
|
4331
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter(this, writer);
|
|
4332
|
+
return writer.getResultBuffer();
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4338
|
+
* format), writing to the given BinaryWriter.
|
|
4339
|
+
* @param {!proto.wechaty.puppet.ContactDeleteResponse} message
|
|
4340
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4342
|
+
*/
|
|
4343
|
+
proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4344
|
+
var f = undefined;
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
|
|
4073
4348
|
/**
|
|
4074
4349
|
* @enum {number}
|
|
4075
4350
|
*/
|
|
@@ -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.36
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -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.36",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED