@juzi/wechaty-grpc 1.0.58 → 1.0.59
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 +40 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +305 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +26 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +40 -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/contact.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +5 -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 +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +40 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +305 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +26 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +40 -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/contact.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +5 -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 +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/contact_pb.d.ts +40 -0
- package/out/wechaty/puppet/contact_pb.js +305 -0
- package/out/wechaty/puppet.openapi.yaml +26 -1
- package/out/wechaty/puppet.swagger.json +40 -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
|
@@ -270,6 +270,46 @@ export namespace ContactSelfSignatureResponse {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
+
export class ContactSelfRoomAliasRequest extends jspb.Message {
|
|
274
|
+
getRoomId(): string;
|
|
275
|
+
setRoomId(value: string): void;
|
|
276
|
+
|
|
277
|
+
getAlias(): string;
|
|
278
|
+
setAlias(value: string): void;
|
|
279
|
+
|
|
280
|
+
serializeBinary(): Uint8Array;
|
|
281
|
+
toObject(includeInstance?: boolean): ContactSelfRoomAliasRequest.AsObject;
|
|
282
|
+
static toObject(includeInstance: boolean, msg: ContactSelfRoomAliasRequest): ContactSelfRoomAliasRequest.AsObject;
|
|
283
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
284
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
285
|
+
static serializeBinaryToWriter(message: ContactSelfRoomAliasRequest, writer: jspb.BinaryWriter): void;
|
|
286
|
+
static deserializeBinary(bytes: Uint8Array): ContactSelfRoomAliasRequest;
|
|
287
|
+
static deserializeBinaryFromReader(message: ContactSelfRoomAliasRequest, reader: jspb.BinaryReader): ContactSelfRoomAliasRequest;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export namespace ContactSelfRoomAliasRequest {
|
|
291
|
+
export type AsObject = {
|
|
292
|
+
roomId: string,
|
|
293
|
+
alias: string,
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export class ContactSelfRoomAliasResponse extends jspb.Message {
|
|
298
|
+
serializeBinary(): Uint8Array;
|
|
299
|
+
toObject(includeInstance?: boolean): ContactSelfRoomAliasResponse.AsObject;
|
|
300
|
+
static toObject(includeInstance: boolean, msg: ContactSelfRoomAliasResponse): ContactSelfRoomAliasResponse.AsObject;
|
|
301
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
302
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
303
|
+
static serializeBinaryToWriter(message: ContactSelfRoomAliasResponse, writer: jspb.BinaryWriter): void;
|
|
304
|
+
static deserializeBinary(bytes: Uint8Array): ContactSelfRoomAliasResponse;
|
|
305
|
+
static deserializeBinaryFromReader(message: ContactSelfRoomAliasResponse, reader: jspb.BinaryReader): ContactSelfRoomAliasResponse;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export namespace ContactSelfRoomAliasResponse {
|
|
309
|
+
export type AsObject = {
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
273
313
|
export class ContactAliasRequest extends jspb.Message {
|
|
274
314
|
getId(): string;
|
|
275
315
|
setId(value: string): void;
|
|
@@ -40,6 +40,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameRequest', null, global);
|
|
|
40
40
|
goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameResponse', null, global);
|
|
41
41
|
goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeRequest', null, global);
|
|
42
42
|
goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactSelfRoomAliasRequest', null, global);
|
|
44
|
+
goog.exportSymbol('proto.wechaty.puppet.ContactSelfRoomAliasResponse', null, global);
|
|
43
45
|
goog.exportSymbol('proto.wechaty.puppet.ContactSelfSignatureRequest', null, global);
|
|
44
46
|
goog.exportSymbol('proto.wechaty.puppet.ContactSelfSignatureResponse', null, global);
|
|
45
47
|
goog.exportSymbol('proto.wechaty.puppet.ContactType', null, global);
|
|
@@ -253,6 +255,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
253
255
|
*/
|
|
254
256
|
proto.wechaty.puppet.ContactSelfSignatureResponse.displayName = 'proto.wechaty.puppet.ContactSelfSignatureResponse';
|
|
255
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Generated by JsPbCodeGenerator.
|
|
260
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
261
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
262
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
263
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
264
|
+
* valid.
|
|
265
|
+
* @extends {jspb.Message}
|
|
266
|
+
* @constructor
|
|
267
|
+
*/
|
|
268
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest = function(opt_data) {
|
|
269
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
270
|
+
};
|
|
271
|
+
goog.inherits(proto.wechaty.puppet.ContactSelfRoomAliasRequest, jspb.Message);
|
|
272
|
+
if (goog.DEBUG && !COMPILED) {
|
|
273
|
+
/**
|
|
274
|
+
* @public
|
|
275
|
+
* @override
|
|
276
|
+
*/
|
|
277
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.displayName = 'proto.wechaty.puppet.ContactSelfRoomAliasRequest';
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Generated by JsPbCodeGenerator.
|
|
281
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
282
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
283
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
284
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
285
|
+
* valid.
|
|
286
|
+
* @extends {jspb.Message}
|
|
287
|
+
* @constructor
|
|
288
|
+
*/
|
|
289
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse = function(opt_data) {
|
|
290
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
291
|
+
};
|
|
292
|
+
goog.inherits(proto.wechaty.puppet.ContactSelfRoomAliasResponse, jspb.Message);
|
|
293
|
+
if (goog.DEBUG && !COMPILED) {
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
* @override
|
|
297
|
+
*/
|
|
298
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.displayName = 'proto.wechaty.puppet.ContactSelfRoomAliasResponse';
|
|
299
|
+
}
|
|
256
300
|
/**
|
|
257
301
|
* Generated by JsPbCodeGenerator.
|
|
258
302
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2375,6 +2419,267 @@ proto.wechaty.puppet.ContactSelfSignatureResponse.serializeBinaryToWriter = func
|
|
|
2375
2419
|
|
|
2376
2420
|
|
|
2377
2421
|
|
|
2422
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2423
|
+
/**
|
|
2424
|
+
* Creates an object representation of this proto.
|
|
2425
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2426
|
+
* Optional fields that are not set will be set to undefined.
|
|
2427
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2428
|
+
* For the list of reserved names please see:
|
|
2429
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2430
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2431
|
+
* JSPB instance for transitional soy proto support:
|
|
2432
|
+
* http://goto/soy-param-migration
|
|
2433
|
+
* @return {!Object}
|
|
2434
|
+
*/
|
|
2435
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2436
|
+
return proto.wechaty.puppet.ContactSelfRoomAliasRequest.toObject(opt_includeInstance, this);
|
|
2437
|
+
};
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Static version of the {@see toObject} method.
|
|
2442
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2443
|
+
* the JSPB instance for transitional soy proto support:
|
|
2444
|
+
* http://goto/soy-param-migration
|
|
2445
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasRequest} msg The msg instance to transform.
|
|
2446
|
+
* @return {!Object}
|
|
2447
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2448
|
+
*/
|
|
2449
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.toObject = function(includeInstance, msg) {
|
|
2450
|
+
var f, obj = {
|
|
2451
|
+
roomId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2452
|
+
alias: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
if (includeInstance) {
|
|
2456
|
+
obj.$jspbMessageInstance = msg;
|
|
2457
|
+
}
|
|
2458
|
+
return obj;
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2465
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2466
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasRequest}
|
|
2467
|
+
*/
|
|
2468
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.deserializeBinary = function(bytes) {
|
|
2469
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2470
|
+
var msg = new proto.wechaty.puppet.ContactSelfRoomAliasRequest;
|
|
2471
|
+
return proto.wechaty.puppet.ContactSelfRoomAliasRequest.deserializeBinaryFromReader(msg, reader);
|
|
2472
|
+
};
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2477
|
+
* given reader into the given message object.
|
|
2478
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasRequest} msg The message object to deserialize into.
|
|
2479
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2480
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasRequest}
|
|
2481
|
+
*/
|
|
2482
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2483
|
+
while (reader.nextField()) {
|
|
2484
|
+
if (reader.isEndGroup()) {
|
|
2485
|
+
break;
|
|
2486
|
+
}
|
|
2487
|
+
var field = reader.getFieldNumber();
|
|
2488
|
+
switch (field) {
|
|
2489
|
+
case 1:
|
|
2490
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2491
|
+
msg.setRoomId(value);
|
|
2492
|
+
break;
|
|
2493
|
+
case 2:
|
|
2494
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2495
|
+
msg.setAlias(value);
|
|
2496
|
+
break;
|
|
2497
|
+
default:
|
|
2498
|
+
reader.skipField();
|
|
2499
|
+
break;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
return msg;
|
|
2503
|
+
};
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2508
|
+
* @return {!Uint8Array}
|
|
2509
|
+
*/
|
|
2510
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.serializeBinary = function() {
|
|
2511
|
+
var writer = new jspb.BinaryWriter();
|
|
2512
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.serializeBinaryToWriter(this, writer);
|
|
2513
|
+
return writer.getResultBuffer();
|
|
2514
|
+
};
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2519
|
+
* format), writing to the given BinaryWriter.
|
|
2520
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasRequest} message
|
|
2521
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2523
|
+
*/
|
|
2524
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2525
|
+
var f = undefined;
|
|
2526
|
+
f = message.getRoomId();
|
|
2527
|
+
if (f.length > 0) {
|
|
2528
|
+
writer.writeString(
|
|
2529
|
+
1,
|
|
2530
|
+
f
|
|
2531
|
+
);
|
|
2532
|
+
}
|
|
2533
|
+
f = message.getAlias();
|
|
2534
|
+
if (f.length > 0) {
|
|
2535
|
+
writer.writeString(
|
|
2536
|
+
2,
|
|
2537
|
+
f
|
|
2538
|
+
);
|
|
2539
|
+
}
|
|
2540
|
+
};
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
* optional string room_id = 1;
|
|
2545
|
+
* @return {string}
|
|
2546
|
+
*/
|
|
2547
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.getRoomId = function() {
|
|
2548
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* @param {string} value
|
|
2554
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasRequest} returns this
|
|
2555
|
+
*/
|
|
2556
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.setRoomId = function(value) {
|
|
2557
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2558
|
+
};
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* optional string alias = 2;
|
|
2563
|
+
* @return {string}
|
|
2564
|
+
*/
|
|
2565
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.getAlias = function() {
|
|
2566
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* @param {string} value
|
|
2572
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasRequest} returns this
|
|
2573
|
+
*/
|
|
2574
|
+
proto.wechaty.puppet.ContactSelfRoomAliasRequest.prototype.setAlias = function(value) {
|
|
2575
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2576
|
+
};
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2583
|
+
/**
|
|
2584
|
+
* Creates an object representation of this proto.
|
|
2585
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2586
|
+
* Optional fields that are not set will be set to undefined.
|
|
2587
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2588
|
+
* For the list of reserved names please see:
|
|
2589
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2590
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2591
|
+
* JSPB instance for transitional soy proto support:
|
|
2592
|
+
* http://goto/soy-param-migration
|
|
2593
|
+
* @return {!Object}
|
|
2594
|
+
*/
|
|
2595
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2596
|
+
return proto.wechaty.puppet.ContactSelfRoomAliasResponse.toObject(opt_includeInstance, this);
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
|
|
2600
|
+
/**
|
|
2601
|
+
* Static version of the {@see toObject} method.
|
|
2602
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2603
|
+
* the JSPB instance for transitional soy proto support:
|
|
2604
|
+
* http://goto/soy-param-migration
|
|
2605
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasResponse} msg The msg instance to transform.
|
|
2606
|
+
* @return {!Object}
|
|
2607
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2608
|
+
*/
|
|
2609
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.toObject = function(includeInstance, msg) {
|
|
2610
|
+
var f, obj = {
|
|
2611
|
+
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
if (includeInstance) {
|
|
2615
|
+
obj.$jspbMessageInstance = msg;
|
|
2616
|
+
}
|
|
2617
|
+
return obj;
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
/**
|
|
2623
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2624
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2625
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasResponse}
|
|
2626
|
+
*/
|
|
2627
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.deserializeBinary = function(bytes) {
|
|
2628
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2629
|
+
var msg = new proto.wechaty.puppet.ContactSelfRoomAliasResponse;
|
|
2630
|
+
return proto.wechaty.puppet.ContactSelfRoomAliasResponse.deserializeBinaryFromReader(msg, reader);
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2636
|
+
* given reader into the given message object.
|
|
2637
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasResponse} msg The message object to deserialize into.
|
|
2638
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2639
|
+
* @return {!proto.wechaty.puppet.ContactSelfRoomAliasResponse}
|
|
2640
|
+
*/
|
|
2641
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2642
|
+
while (reader.nextField()) {
|
|
2643
|
+
if (reader.isEndGroup()) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
var field = reader.getFieldNumber();
|
|
2647
|
+
switch (field) {
|
|
2648
|
+
default:
|
|
2649
|
+
reader.skipField();
|
|
2650
|
+
break;
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
return msg;
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
/**
|
|
2658
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2659
|
+
* @return {!Uint8Array}
|
|
2660
|
+
*/
|
|
2661
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.prototype.serializeBinary = function() {
|
|
2662
|
+
var writer = new jspb.BinaryWriter();
|
|
2663
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.serializeBinaryToWriter(this, writer);
|
|
2664
|
+
return writer.getResultBuffer();
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2670
|
+
* format), writing to the given BinaryWriter.
|
|
2671
|
+
* @param {!proto.wechaty.puppet.ContactSelfRoomAliasResponse} message
|
|
2672
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2673
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2674
|
+
*/
|
|
2675
|
+
proto.wechaty.puppet.ContactSelfRoomAliasResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2676
|
+
var f = undefined;
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2378
2683
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2379
2684
|
/**
|
|
2380
2685
|
* Creates an object representation of this proto.
|
|
@@ -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.59
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,29 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
'/contact/room/{roomId}/alias/{alias}':
|
|
28
|
+
put:
|
|
29
|
+
operationId: Puppet_ContactSelfRoomAlias
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetContactSelfRoomAliasResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: roomId
|
|
41
|
+
in: path
|
|
42
|
+
required: true
|
|
43
|
+
type: string
|
|
44
|
+
- name: alias
|
|
45
|
+
in: path
|
|
46
|
+
required: true
|
|
47
|
+
type: string
|
|
48
|
+
tags:
|
|
49
|
+
- Puppet
|
|
27
50
|
/contacts:
|
|
28
51
|
get:
|
|
29
52
|
summary: >-
|
|
@@ -2520,6 +2543,8 @@ definitions:
|
|
|
2520
2543
|
properties:
|
|
2521
2544
|
qrcode:
|
|
2522
2545
|
type: string
|
|
2546
|
+
puppetContactSelfRoomAliasResponse:
|
|
2547
|
+
type: object
|
|
2523
2548
|
puppetContactSelfSignatureRequest:
|
|
2524
2549
|
type: object
|
|
2525
2550
|
properties:
|
|
@@ -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.59",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,42 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/contact/room/{roomId}/alias/{alias}": {
|
|
30
|
+
"put": {
|
|
31
|
+
"operationId": "Puppet_ContactSelfRoomAlias",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetContactSelfRoomAliasResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "roomId",
|
|
49
|
+
"in": "path",
|
|
50
|
+
"required": true,
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "alias",
|
|
55
|
+
"in": "path",
|
|
56
|
+
"required": true,
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"tags": [
|
|
61
|
+
"Puppet"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
29
65
|
"/contacts": {
|
|
30
66
|
"get": {
|
|
31
67
|
"summary": "*\nHuan(202002): consider changing response to a stream in the future for better performance",
|
|
@@ -3716,6 +3752,9 @@
|
|
|
3716
3752
|
}
|
|
3717
3753
|
}
|
|
3718
3754
|
},
|
|
3755
|
+
"puppetContactSelfRoomAliasResponse": {
|
|
3756
|
+
"type": "object"
|
|
3757
|
+
},
|
|
3719
3758
|
"puppetContactSelfSignatureRequest": {
|
|
3720
3759
|
"type": "object",
|
|
3721
3760
|
"properties": {
|
|
@@ -34,6 +34,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
34
34
|
contactSelfQRCode: IPuppetService_IContactSelfQRCode;
|
|
35
35
|
contactSelfName: IPuppetService_IContactSelfName;
|
|
36
36
|
contactSelfSignature: IPuppetService_IContactSelfSignature;
|
|
37
|
+
contactSelfRoomAlias: IPuppetService_IContactSelfRoomAlias;
|
|
37
38
|
contactPayload: IPuppetService_IContactPayload;
|
|
38
39
|
contactAlias: IPuppetService_IContactAlias;
|
|
39
40
|
contactAvatar: IPuppetService_IContactAvatar;
|
|
@@ -212,6 +213,15 @@ interface IPuppetService_IContactSelfSignature extends grpc.MethodDefinition<wec
|
|
|
212
213
|
responseSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
213
214
|
responseDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
214
215
|
}
|
|
216
|
+
interface IPuppetService_IContactSelfRoomAlias extends grpc.MethodDefinition<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse> {
|
|
217
|
+
path: "/wechaty.Puppet/ContactSelfRoomAlias";
|
|
218
|
+
requestStream: false;
|
|
219
|
+
responseStream: false;
|
|
220
|
+
requestSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest>;
|
|
221
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest>;
|
|
222
|
+
responseSerialize: grpc.serialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
223
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
224
|
+
}
|
|
215
225
|
interface IPuppetService_IContactPayload extends grpc.MethodDefinition<wechaty_puppet_contact_pb.ContactPayloadRequest, wechaty_puppet_contact_pb.ContactPayloadResponse> {
|
|
216
226
|
path: "/wechaty.Puppet/ContactPayload";
|
|
217
227
|
requestStream: false;
|
|
@@ -920,6 +930,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
920
930
|
contactSelfQRCode: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfQRCodeRequest, wechaty_puppet_contact_pb.ContactSelfQRCodeResponse>;
|
|
921
931
|
contactSelfName: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfNameRequest, wechaty_puppet_contact_pb.ContactSelfNameResponse>;
|
|
922
932
|
contactSelfSignature: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfSignatureRequest, wechaty_puppet_contact_pb.ContactSelfSignatureResponse>;
|
|
933
|
+
contactSelfRoomAlias: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse>;
|
|
923
934
|
contactPayload: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactPayloadRequest, wechaty_puppet_contact_pb.ContactPayloadResponse>;
|
|
924
935
|
contactAlias: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactAliasRequest, wechaty_puppet_contact_pb.ContactAliasResponse>;
|
|
925
936
|
contactAvatar: grpc.handleUnaryCall<wechaty_puppet_contact_pb.ContactAvatarRequest, wechaty_puppet_contact_pb.ContactAvatarResponse>;
|
|
@@ -1032,6 +1043,9 @@ export interface IPuppetClient {
|
|
|
1032
1043
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1033
1044
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1034
1045
|
contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1046
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1047
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1048
|
+
contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1035
1049
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1036
1050
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1037
1051
|
contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1299,6 +1313,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1299
1313
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1300
1314
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1301
1315
|
public contactSelfSignature(request: wechaty_puppet_contact_pb.ContactSelfSignatureRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfSignatureResponse) => void): grpc.ClientUnaryCall;
|
|
1316
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1317
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1318
|
+
public contactSelfRoomAlias(request: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse) => void): grpc.ClientUnaryCall;
|
|
1302
1319
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1303
1320
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1304
1321
|
public contactPayload(request: wechaty_puppet_contact_pb.ContactPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_contact_pb.ContactPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -273,6 +273,28 @@ function deserialize_wechaty_puppet_ContactSelfQRCodeResponse(buffer_arg) {
|
|
|
273
273
|
return wechaty_puppet_contact_pb.ContactSelfQRCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
+
function serialize_wechaty_puppet_ContactSelfRoomAliasRequest(arg) {
|
|
277
|
+
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest)) {
|
|
278
|
+
throw new Error('Expected argument of type wechaty.puppet.ContactSelfRoomAliasRequest');
|
|
279
|
+
}
|
|
280
|
+
return Buffer.from(arg.serializeBinary());
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function deserialize_wechaty_puppet_ContactSelfRoomAliasRequest(buffer_arg) {
|
|
284
|
+
return wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function serialize_wechaty_puppet_ContactSelfRoomAliasResponse(arg) {
|
|
288
|
+
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse)) {
|
|
289
|
+
throw new Error('Expected argument of type wechaty.puppet.ContactSelfRoomAliasResponse');
|
|
290
|
+
}
|
|
291
|
+
return Buffer.from(arg.serializeBinary());
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function deserialize_wechaty_puppet_ContactSelfRoomAliasResponse(buffer_arg) {
|
|
295
|
+
return wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
296
|
+
}
|
|
297
|
+
|
|
276
298
|
function serialize_wechaty_puppet_ContactSelfSignatureRequest(arg) {
|
|
277
299
|
if (!(arg instanceof wechaty_puppet_contact_pb.ContactSelfSignatureRequest)) {
|
|
278
300
|
throw new Error('Expected argument of type wechaty.puppet.ContactSelfSignatureRequest');
|
|
@@ -2080,6 +2102,17 @@ contactSelfQRCode: {
|
|
|
2080
2102
|
responseSerialize: serialize_wechaty_puppet_ContactSelfSignatureResponse,
|
|
2081
2103
|
responseDeserialize: deserialize_wechaty_puppet_ContactSelfSignatureResponse,
|
|
2082
2104
|
},
|
|
2105
|
+
contactSelfRoomAlias: {
|
|
2106
|
+
path: '/wechaty.Puppet/ContactSelfRoomAlias',
|
|
2107
|
+
requestStream: false,
|
|
2108
|
+
responseStream: false,
|
|
2109
|
+
requestType: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
2110
|
+
responseType: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse,
|
|
2111
|
+
requestSerialize: serialize_wechaty_puppet_ContactSelfRoomAliasRequest,
|
|
2112
|
+
requestDeserialize: deserialize_wechaty_puppet_ContactSelfRoomAliasRequest,
|
|
2113
|
+
responseSerialize: serialize_wechaty_puppet_ContactSelfRoomAliasResponse,
|
|
2114
|
+
responseDeserialize: deserialize_wechaty_puppet_ContactSelfRoomAliasResponse,
|
|
2115
|
+
},
|
|
2083
2116
|
// *
|
|
2084
2117
|
//
|
|
2085
2118
|
// Contact
|
|
@@ -116,6 +116,15 @@ type PuppetContactSelfSignature = {
|
|
|
116
116
|
readonly responseType: typeof wechaty_puppet_contact_pb.ContactSelfSignatureResponse;
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
+
type PuppetContactSelfRoomAlias = {
|
|
120
|
+
readonly methodName: string;
|
|
121
|
+
readonly service: typeof Puppet;
|
|
122
|
+
readonly requestStream: false;
|
|
123
|
+
readonly responseStream: false;
|
|
124
|
+
readonly requestType: typeof wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest;
|
|
125
|
+
readonly responseType: typeof wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse;
|
|
126
|
+
};
|
|
127
|
+
|
|
119
128
|
type PuppetContactPayload = {
|
|
120
129
|
readonly methodName: string;
|
|
121
130
|
readonly service: typeof Puppet;
|
|
@@ -822,6 +831,7 @@ export class Puppet {
|
|
|
822
831
|
static readonly ContactSelfQRCode: PuppetContactSelfQRCode;
|
|
823
832
|
static readonly ContactSelfName: PuppetContactSelfName;
|
|
824
833
|
static readonly ContactSelfSignature: PuppetContactSelfSignature;
|
|
834
|
+
static readonly ContactSelfRoomAlias: PuppetContactSelfRoomAlias;
|
|
825
835
|
static readonly ContactPayload: PuppetContactPayload;
|
|
826
836
|
static readonly ContactAlias: PuppetContactAlias;
|
|
827
837
|
static readonly ContactAvatar: PuppetContactAvatar;
|
|
@@ -1024,6 +1034,15 @@ export class PuppetClient {
|
|
|
1024
1034
|
requestMessage: wechaty_puppet_contact_pb.ContactSelfSignatureRequest,
|
|
1025
1035
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfSignatureResponse|null) => void
|
|
1026
1036
|
): UnaryResponse;
|
|
1037
|
+
contactSelfRoomAlias(
|
|
1038
|
+
requestMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
1039
|
+
metadata: grpc.Metadata,
|
|
1040
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse|null) => void
|
|
1041
|
+
): UnaryResponse;
|
|
1042
|
+
contactSelfRoomAlias(
|
|
1043
|
+
requestMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
1044
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse|null) => void
|
|
1045
|
+
): UnaryResponse;
|
|
1027
1046
|
contactPayload(
|
|
1028
1047
|
requestMessage: wechaty_puppet_contact_pb.ContactPayloadRequest,
|
|
1029
1048
|
metadata: grpc.Metadata,
|
|
@@ -122,6 +122,15 @@ Puppet.ContactSelfSignature = {
|
|
|
122
122
|
responseType: wechaty_puppet_contact_pb.ContactSelfSignatureResponse
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
+
Puppet.ContactSelfRoomAlias = {
|
|
126
|
+
methodName: "ContactSelfRoomAlias",
|
|
127
|
+
service: Puppet,
|
|
128
|
+
requestStream: false,
|
|
129
|
+
responseStream: false,
|
|
130
|
+
requestType: wechaty_puppet_contact_pb.ContactSelfRoomAliasRequest,
|
|
131
|
+
responseType: wechaty_puppet_contact_pb.ContactSelfRoomAliasResponse
|
|
132
|
+
};
|
|
133
|
+
|
|
125
134
|
Puppet.ContactPayload = {
|
|
126
135
|
methodName: "ContactPayload",
|
|
127
136
|
service: Puppet,
|
|
@@ -1171,6 +1180,37 @@ PuppetClient.prototype.contactSelfSignature = function contactSelfSignature(requ
|
|
|
1171
1180
|
};
|
|
1172
1181
|
};
|
|
1173
1182
|
|
|
1183
|
+
PuppetClient.prototype.contactSelfRoomAlias = function contactSelfRoomAlias(requestMessage, metadata, callback) {
|
|
1184
|
+
if (arguments.length === 2) {
|
|
1185
|
+
callback = arguments[1];
|
|
1186
|
+
}
|
|
1187
|
+
var client = grpc.unary(Puppet.ContactSelfRoomAlias, {
|
|
1188
|
+
request: requestMessage,
|
|
1189
|
+
host: this.serviceHost,
|
|
1190
|
+
metadata: metadata,
|
|
1191
|
+
transport: this.options.transport,
|
|
1192
|
+
debug: this.options.debug,
|
|
1193
|
+
onEnd: function (response) {
|
|
1194
|
+
if (callback) {
|
|
1195
|
+
if (response.status !== grpc.Code.OK) {
|
|
1196
|
+
var err = new Error(response.statusMessage);
|
|
1197
|
+
err.code = response.status;
|
|
1198
|
+
err.metadata = response.trailers;
|
|
1199
|
+
callback(err, null);
|
|
1200
|
+
} else {
|
|
1201
|
+
callback(null, response.message);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
return {
|
|
1207
|
+
cancel: function () {
|
|
1208
|
+
callback = null;
|
|
1209
|
+
client.close();
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1174
1214
|
PuppetClient.prototype.contactPayload = function contactPayload(requestMessage, metadata, callback) {
|
|
1175
1215
|
if (arguments.length === 2) {
|
|
1176
1216
|
callback = arguments[1];
|