@juzi/wechaty-grpc 1.0.61 → 1.0.63
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/base_pb.d.ts +32 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +144 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +144 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +160 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +6 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +22 -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 +20 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +32 -0
- package/out/wechaty/puppet/base_pb.js +246 -0
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +94 -1
- package/out/wechaty/puppet.swagger.json +144 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +68 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +76 -0
- package/out/wechaty/puppet_pb_service.js +160 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -43,3 +43,39 @@ export namespace EnterVerifyCodeResponse {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export class CancelVerifyCodeRequest extends jspb.Message {
|
|
47
|
+
getId(): string;
|
|
48
|
+
setId(value: string): void;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeRequest.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeRequest): CancelVerifyCodeRequest.AsObject;
|
|
53
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
54
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
55
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeRequest, writer: jspb.BinaryWriter): void;
|
|
56
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeRequest;
|
|
57
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeRequest, reader: jspb.BinaryReader): CancelVerifyCodeRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace CancelVerifyCodeRequest {
|
|
61
|
+
export type AsObject = {
|
|
62
|
+
id: string,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class CancelVerifyCodeResponse extends jspb.Message {
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeResponse): CancelVerifyCodeResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeResponse, reader: jspb.BinaryReader): CancelVerifyCodeResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace CancelVerifyCodeResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
17
|
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.CancelVerifyCodeRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.wechaty.puppet.CancelVerifyCodeResponse', null, global);
|
|
18
20
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeRequest', null, global);
|
|
19
21
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeResponse', null, global);
|
|
20
22
|
/**
|
|
@@ -59,6 +61,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
59
61
|
*/
|
|
60
62
|
proto.wechaty.puppet.EnterVerifyCodeResponse.displayName = 'proto.wechaty.puppet.EnterVerifyCodeResponse';
|
|
61
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Generated by JsPbCodeGenerator.
|
|
66
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
67
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
68
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
69
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
70
|
+
* valid.
|
|
71
|
+
* @extends {jspb.Message}
|
|
72
|
+
* @constructor
|
|
73
|
+
*/
|
|
74
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest = function(opt_data) {
|
|
75
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
76
|
+
};
|
|
77
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeRequest, jspb.Message);
|
|
78
|
+
if (goog.DEBUG && !COMPILED) {
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @override
|
|
82
|
+
*/
|
|
83
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.displayName = 'proto.wechaty.puppet.CancelVerifyCodeRequest';
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Generated by JsPbCodeGenerator.
|
|
87
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
88
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
89
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
90
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
91
|
+
* valid.
|
|
92
|
+
* @extends {jspb.Message}
|
|
93
|
+
* @constructor
|
|
94
|
+
*/
|
|
95
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse = function(opt_data) {
|
|
96
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
97
|
+
};
|
|
98
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeResponse, jspb.Message);
|
|
99
|
+
if (goog.DEBUG && !COMPILED) {
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* @override
|
|
103
|
+
*/
|
|
104
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.displayName = 'proto.wechaty.puppet.CancelVerifyCodeResponse';
|
|
105
|
+
}
|
|
62
106
|
|
|
63
107
|
|
|
64
108
|
|
|
@@ -320,4 +364,235 @@ proto.wechaty.puppet.EnterVerifyCodeResponse.serializeBinaryToWriter = function(
|
|
|
320
364
|
};
|
|
321
365
|
|
|
322
366
|
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
371
|
+
/**
|
|
372
|
+
* Creates an object representation of this proto.
|
|
373
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
374
|
+
* Optional fields that are not set will be set to undefined.
|
|
375
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
376
|
+
* For the list of reserved names please see:
|
|
377
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
378
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
379
|
+
* JSPB instance for transitional soy proto support:
|
|
380
|
+
* http://goto/soy-param-migration
|
|
381
|
+
* @return {!Object}
|
|
382
|
+
*/
|
|
383
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
384
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.toObject(opt_includeInstance, this);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Static version of the {@see toObject} method.
|
|
390
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
391
|
+
* the JSPB instance for transitional soy proto support:
|
|
392
|
+
* http://goto/soy-param-migration
|
|
393
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The msg instance to transform.
|
|
394
|
+
* @return {!Object}
|
|
395
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
396
|
+
*/
|
|
397
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.toObject = function(includeInstance, msg) {
|
|
398
|
+
var f, obj = {
|
|
399
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
if (includeInstance) {
|
|
403
|
+
obj.$jspbMessageInstance = msg;
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Deserializes binary data (in protobuf wire format).
|
|
412
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
413
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
414
|
+
*/
|
|
415
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinary = function(bytes) {
|
|
416
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
417
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeRequest;
|
|
418
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
424
|
+
* given reader into the given message object.
|
|
425
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The message object to deserialize into.
|
|
426
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
427
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
428
|
+
*/
|
|
429
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
430
|
+
while (reader.nextField()) {
|
|
431
|
+
if (reader.isEndGroup()) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
var field = reader.getFieldNumber();
|
|
435
|
+
switch (field) {
|
|
436
|
+
case 1:
|
|
437
|
+
var value = /** @type {string} */ (reader.readString());
|
|
438
|
+
msg.setId(value);
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
reader.skipField();
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return msg;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
451
|
+
* @return {!Uint8Array}
|
|
452
|
+
*/
|
|
453
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.serializeBinary = function() {
|
|
454
|
+
var writer = new jspb.BinaryWriter();
|
|
455
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter(this, writer);
|
|
456
|
+
return writer.getResultBuffer();
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
462
|
+
* format), writing to the given BinaryWriter.
|
|
463
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} message
|
|
464
|
+
* @param {!jspb.BinaryWriter} writer
|
|
465
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
466
|
+
*/
|
|
467
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
468
|
+
var f = undefined;
|
|
469
|
+
f = message.getId();
|
|
470
|
+
if (f.length > 0) {
|
|
471
|
+
writer.writeString(
|
|
472
|
+
1,
|
|
473
|
+
f
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* optional string id = 1;
|
|
481
|
+
* @return {string}
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.getId = function() {
|
|
484
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @param {string} value
|
|
490
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest} returns this
|
|
491
|
+
*/
|
|
492
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.setId = function(value) {
|
|
493
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
501
|
+
/**
|
|
502
|
+
* Creates an object representation of this proto.
|
|
503
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
504
|
+
* Optional fields that are not set will be set to undefined.
|
|
505
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
506
|
+
* For the list of reserved names please see:
|
|
507
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
508
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
509
|
+
* JSPB instance for transitional soy proto support:
|
|
510
|
+
* http://goto/soy-param-migration
|
|
511
|
+
* @return {!Object}
|
|
512
|
+
*/
|
|
513
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
514
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.toObject(opt_includeInstance, this);
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Static version of the {@see toObject} method.
|
|
520
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
521
|
+
* the JSPB instance for transitional soy proto support:
|
|
522
|
+
* http://goto/soy-param-migration
|
|
523
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The msg instance to transform.
|
|
524
|
+
* @return {!Object}
|
|
525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
526
|
+
*/
|
|
527
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.toObject = function(includeInstance, msg) {
|
|
528
|
+
var f, obj = {
|
|
529
|
+
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
if (includeInstance) {
|
|
533
|
+
obj.$jspbMessageInstance = msg;
|
|
534
|
+
}
|
|
535
|
+
return obj;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Deserializes binary data (in protobuf wire format).
|
|
542
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
543
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
544
|
+
*/
|
|
545
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinary = function(bytes) {
|
|
546
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
547
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeResponse;
|
|
548
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
554
|
+
* given reader into the given message object.
|
|
555
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The message object to deserialize into.
|
|
556
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
557
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
558
|
+
*/
|
|
559
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
560
|
+
while (reader.nextField()) {
|
|
561
|
+
if (reader.isEndGroup()) {
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
var field = reader.getFieldNumber();
|
|
565
|
+
switch (field) {
|
|
566
|
+
default:
|
|
567
|
+
reader.skipField();
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return msg;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
577
|
+
* @return {!Uint8Array}
|
|
578
|
+
*/
|
|
579
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.serializeBinary = function() {
|
|
580
|
+
var writer = new jspb.BinaryWriter();
|
|
581
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter(this, writer);
|
|
582
|
+
return writer.getResultBuffer();
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
588
|
+
* format), writing to the given BinaryWriter.
|
|
589
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} message
|
|
590
|
+
* @param {!jspb.BinaryWriter} writer
|
|
591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
592
|
+
*/
|
|
593
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
594
|
+
var f = undefined;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
323
598
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -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.63
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,25 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
/cancel_verify_code:
|
|
28
|
+
post:
|
|
29
|
+
operationId: Puppet_CancelVerifyCode
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetCancelVerifyCodeResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: id
|
|
41
|
+
in: query
|
|
42
|
+
required: false
|
|
43
|
+
type: string
|
|
44
|
+
tags:
|
|
45
|
+
- Puppet
|
|
27
46
|
'/contact/room/{roomId}/alias/{alias}':
|
|
28
47
|
put:
|
|
29
48
|
operationId: Puppet_ContactSelfRoomAlias
|
|
@@ -1440,6 +1459,20 @@ paths:
|
|
|
1440
1459
|
$ref: '#/definitions/puppetPostPayloadSayableRequest'
|
|
1441
1460
|
tags:
|
|
1442
1461
|
- Puppet
|
|
1462
|
+
/refresh_qr_code:
|
|
1463
|
+
post:
|
|
1464
|
+
operationId: Puppet_RefreshQRCode
|
|
1465
|
+
responses:
|
|
1466
|
+
'200':
|
|
1467
|
+
description: A successful response.
|
|
1468
|
+
schema:
|
|
1469
|
+
$ref: '#/definitions/puppetRefreshQRCodeRequest'
|
|
1470
|
+
default:
|
|
1471
|
+
description: An unexpected error response.
|
|
1472
|
+
schema:
|
|
1473
|
+
$ref: '#/definitions/rpcStatus'
|
|
1474
|
+
tags:
|
|
1475
|
+
- Puppet
|
|
1443
1476
|
'/room-invitations/{id}':
|
|
1444
1477
|
get:
|
|
1445
1478
|
summary: '*'
|
|
@@ -1571,6 +1604,33 @@ paths:
|
|
|
1571
1604
|
type: string
|
|
1572
1605
|
tags:
|
|
1573
1606
|
- Puppet
|
|
1607
|
+
'/rooms/{id}/add/admins/{contactIds}':
|
|
1608
|
+
put:
|
|
1609
|
+
operationId: Puppet_RoomAddAdmins
|
|
1610
|
+
responses:
|
|
1611
|
+
'200':
|
|
1612
|
+
description: A successful response.
|
|
1613
|
+
schema:
|
|
1614
|
+
$ref: '#/definitions/puppetRoomAdminsResponse'
|
|
1615
|
+
default:
|
|
1616
|
+
description: An unexpected error response.
|
|
1617
|
+
schema:
|
|
1618
|
+
$ref: '#/definitions/rpcStatus'
|
|
1619
|
+
parameters:
|
|
1620
|
+
- name: id
|
|
1621
|
+
in: path
|
|
1622
|
+
required: true
|
|
1623
|
+
type: string
|
|
1624
|
+
- name: contactIds
|
|
1625
|
+
in: path
|
|
1626
|
+
required: true
|
|
1627
|
+
type: array
|
|
1628
|
+
items:
|
|
1629
|
+
type: string
|
|
1630
|
+
collectionFormat: csv
|
|
1631
|
+
minItems: 1
|
|
1632
|
+
tags:
|
|
1633
|
+
- Puppet
|
|
1574
1634
|
'/rooms/{id}/add/{contactId}':
|
|
1575
1635
|
put:
|
|
1576
1636
|
operationId: Puppet_RoomAdd
|
|
@@ -1677,6 +1737,33 @@ paths:
|
|
|
1677
1737
|
type: string
|
|
1678
1738
|
tags:
|
|
1679
1739
|
- Puppet
|
|
1740
|
+
'/rooms/{id}/del/admins/{contactIds}':
|
|
1741
|
+
delete:
|
|
1742
|
+
operationId: Puppet_RoomDelAdmins
|
|
1743
|
+
responses:
|
|
1744
|
+
'200':
|
|
1745
|
+
description: A successful response.
|
|
1746
|
+
schema:
|
|
1747
|
+
$ref: '#/definitions/puppetRoomAdminsResponse'
|
|
1748
|
+
default:
|
|
1749
|
+
description: An unexpected error response.
|
|
1750
|
+
schema:
|
|
1751
|
+
$ref: '#/definitions/rpcStatus'
|
|
1752
|
+
parameters:
|
|
1753
|
+
- name: id
|
|
1754
|
+
in: path
|
|
1755
|
+
required: true
|
|
1756
|
+
type: string
|
|
1757
|
+
- name: contactIds
|
|
1758
|
+
in: path
|
|
1759
|
+
required: true
|
|
1760
|
+
type: array
|
|
1761
|
+
items:
|
|
1762
|
+
type: string
|
|
1763
|
+
collectionFormat: csv
|
|
1764
|
+
minItems: 1
|
|
1765
|
+
tags:
|
|
1766
|
+
- Puppet
|
|
1680
1767
|
'/rooms/{id}/dirty/members/{type}':
|
|
1681
1768
|
put:
|
|
1682
1769
|
operationId: Puppet_DirtyPayload4
|
|
@@ -2395,6 +2482,8 @@ definitions:
|
|
|
2395
2482
|
- BROADCAST_TARGET_STATUS_NOT_FRIEND
|
|
2396
2483
|
- BROADCAST_TARGET_STATUS_OCCUPIED
|
|
2397
2484
|
default: BROADCAST_TARGET_STATUS_UNSENT
|
|
2485
|
+
puppetCancelVerifyCodeResponse:
|
|
2486
|
+
type: object
|
|
2398
2487
|
puppetChannelPayload:
|
|
2399
2488
|
type: object
|
|
2400
2489
|
properties:
|
|
@@ -3341,8 +3430,12 @@ definitions:
|
|
|
3341
3430
|
"Referrer" and "Referral" refers to different things. "Referrer" is
|
|
3342
3431
|
something or somebody who refers. "Referral" is the act of referring.
|
|
3343
3432
|
- https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer
|
|
3433
|
+
puppetRefreshQRCodeRequest:
|
|
3434
|
+
type: object
|
|
3344
3435
|
puppetRoomAddResponse:
|
|
3345
3436
|
type: object
|
|
3437
|
+
puppetRoomAdminsResponse:
|
|
3438
|
+
type: object
|
|
3346
3439
|
puppetRoomAnnounceResponse:
|
|
3347
3440
|
type: object
|
|
3348
3441
|
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.63",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -26,6 +26,36 @@
|
|
|
26
26
|
"application/json"
|
|
27
27
|
],
|
|
28
28
|
"paths": {
|
|
29
|
+
"/cancel_verify_code": {
|
|
30
|
+
"post": {
|
|
31
|
+
"operationId": "Puppet_CancelVerifyCode",
|
|
32
|
+
"responses": {
|
|
33
|
+
"200": {
|
|
34
|
+
"description": "A successful response.",
|
|
35
|
+
"schema": {
|
|
36
|
+
"$ref": "#/definitions/puppetCancelVerifyCodeResponse"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"description": "An unexpected error response.",
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/definitions/rpcStatus"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"parameters": [
|
|
47
|
+
{
|
|
48
|
+
"name": "id",
|
|
49
|
+
"in": "query",
|
|
50
|
+
"required": false,
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"tags": [
|
|
55
|
+
"Puppet"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
29
59
|
"/contact/room/{roomId}/alias/{alias}": {
|
|
30
60
|
"put": {
|
|
31
61
|
"operationId": "Puppet_ContactSelfRoomAlias",
|
|
@@ -2142,6 +2172,28 @@
|
|
|
2142
2172
|
]
|
|
2143
2173
|
}
|
|
2144
2174
|
},
|
|
2175
|
+
"/refresh_qr_code": {
|
|
2176
|
+
"post": {
|
|
2177
|
+
"operationId": "Puppet_RefreshQRCode",
|
|
2178
|
+
"responses": {
|
|
2179
|
+
"200": {
|
|
2180
|
+
"description": "A successful response.",
|
|
2181
|
+
"schema": {
|
|
2182
|
+
"$ref": "#/definitions/puppetRefreshQRCodeRequest"
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"default": {
|
|
2186
|
+
"description": "An unexpected error response.",
|
|
2187
|
+
"schema": {
|
|
2188
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
"tags": [
|
|
2193
|
+
"Puppet"
|
|
2194
|
+
]
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2145
2197
|
"/room-invitations/{id}": {
|
|
2146
2198
|
"get": {
|
|
2147
2199
|
"summary": "*",
|
|
@@ -2329,6 +2381,47 @@
|
|
|
2329
2381
|
]
|
|
2330
2382
|
}
|
|
2331
2383
|
},
|
|
2384
|
+
"/rooms/{id}/add/admins/{contactIds}": {
|
|
2385
|
+
"put": {
|
|
2386
|
+
"operationId": "Puppet_RoomAddAdmins",
|
|
2387
|
+
"responses": {
|
|
2388
|
+
"200": {
|
|
2389
|
+
"description": "A successful response.",
|
|
2390
|
+
"schema": {
|
|
2391
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2392
|
+
}
|
|
2393
|
+
},
|
|
2394
|
+
"default": {
|
|
2395
|
+
"description": "An unexpected error response.",
|
|
2396
|
+
"schema": {
|
|
2397
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
"parameters": [
|
|
2402
|
+
{
|
|
2403
|
+
"name": "id",
|
|
2404
|
+
"in": "path",
|
|
2405
|
+
"required": true,
|
|
2406
|
+
"type": "string"
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "contactIds",
|
|
2410
|
+
"in": "path",
|
|
2411
|
+
"required": true,
|
|
2412
|
+
"type": "array",
|
|
2413
|
+
"items": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
},
|
|
2416
|
+
"collectionFormat": "csv",
|
|
2417
|
+
"minItems": 1
|
|
2418
|
+
}
|
|
2419
|
+
],
|
|
2420
|
+
"tags": [
|
|
2421
|
+
"Puppet"
|
|
2422
|
+
]
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2332
2425
|
"/rooms/{id}/add/{contactId}": {
|
|
2333
2426
|
"put": {
|
|
2334
2427
|
"operationId": "Puppet_RoomAdd",
|
|
@@ -2492,6 +2585,47 @@
|
|
|
2492
2585
|
]
|
|
2493
2586
|
}
|
|
2494
2587
|
},
|
|
2588
|
+
"/rooms/{id}/del/admins/{contactIds}": {
|
|
2589
|
+
"delete": {
|
|
2590
|
+
"operationId": "Puppet_RoomDelAdmins",
|
|
2591
|
+
"responses": {
|
|
2592
|
+
"200": {
|
|
2593
|
+
"description": "A successful response.",
|
|
2594
|
+
"schema": {
|
|
2595
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2596
|
+
}
|
|
2597
|
+
},
|
|
2598
|
+
"default": {
|
|
2599
|
+
"description": "An unexpected error response.",
|
|
2600
|
+
"schema": {
|
|
2601
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
"parameters": [
|
|
2606
|
+
{
|
|
2607
|
+
"name": "id",
|
|
2608
|
+
"in": "path",
|
|
2609
|
+
"required": true,
|
|
2610
|
+
"type": "string"
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"name": "contactIds",
|
|
2614
|
+
"in": "path",
|
|
2615
|
+
"required": true,
|
|
2616
|
+
"type": "array",
|
|
2617
|
+
"items": {
|
|
2618
|
+
"type": "string"
|
|
2619
|
+
},
|
|
2620
|
+
"collectionFormat": "csv",
|
|
2621
|
+
"minItems": 1
|
|
2622
|
+
}
|
|
2623
|
+
],
|
|
2624
|
+
"tags": [
|
|
2625
|
+
"Puppet"
|
|
2626
|
+
]
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2495
2629
|
"/rooms/{id}/dirty/members/{type}": {
|
|
2496
2630
|
"put": {
|
|
2497
2631
|
"operationId": "Puppet_DirtyPayload4",
|
|
@@ -3573,6 +3707,9 @@
|
|
|
3573
3707
|
],
|
|
3574
3708
|
"default": "BROADCAST_TARGET_STATUS_UNSENT"
|
|
3575
3709
|
},
|
|
3710
|
+
"puppetCancelVerifyCodeResponse": {
|
|
3711
|
+
"type": "object"
|
|
3712
|
+
},
|
|
3576
3713
|
"puppetChannelPayload": {
|
|
3577
3714
|
"type": "object",
|
|
3578
3715
|
"properties": {
|
|
@@ -4727,9 +4864,15 @@
|
|
|
4727
4864
|
},
|
|
4728
4865
|
"title": "*\n\"Referrer\" and \"Referral\" refers to different things. \"Referrer\" is something or somebody who refers. \"Referral\" is the act of referring.\n - https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer"
|
|
4729
4866
|
},
|
|
4867
|
+
"puppetRefreshQRCodeRequest": {
|
|
4868
|
+
"type": "object"
|
|
4869
|
+
},
|
|
4730
4870
|
"puppetRoomAddResponse": {
|
|
4731
4871
|
"type": "object"
|
|
4732
4872
|
},
|
|
4873
|
+
"puppetRoomAdminsResponse": {
|
|
4874
|
+
"type": "object"
|
|
4875
|
+
},
|
|
4733
4876
|
"puppetRoomAnnounceResponse": {
|
|
4734
4877
|
"type": "object",
|
|
4735
4878
|
"properties": {
|