@juzi/wechaty-grpc 1.0.103 → 1.0.105
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/message_pb.d.ts +84 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +98 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +155 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -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 +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +360 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +98 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +155 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +15 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +8 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -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 +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/out/wechaty/puppet/message_pb.js +638 -0
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +360 -0
- package/out/wechaty/puppet.openapi.yaml +98 -1
- package/out/wechaty/puppet.swagger.json +155 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/out/wechaty/puppet_grpc_pb.js +99 -0
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -21,6 +21,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
21
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
22
22
|
var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
|
|
23
23
|
goog.object.extend(proto, wechaty_puppet_util_pb);
|
|
24
|
+
goog.exportSymbol('proto.wechaty.puppet.BatchRoomPayloadRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.wechaty.puppet.BatchRoomPayloadResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.wechaty.puppet.RoomAddResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.RoomAddV2Request', null, global);
|
|
@@ -813,6 +815,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
813
815
|
*/
|
|
814
816
|
proto.wechaty.puppet.RoomDismissResponse.displayName = 'proto.wechaty.puppet.RoomDismissResponse';
|
|
815
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* Generated by JsPbCodeGenerator.
|
|
820
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
821
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
822
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
823
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
824
|
+
* valid.
|
|
825
|
+
* @extends {jspb.Message}
|
|
826
|
+
* @constructor
|
|
827
|
+
*/
|
|
828
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest = function(opt_data) {
|
|
829
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchRoomPayloadRequest.repeatedFields_, null);
|
|
830
|
+
};
|
|
831
|
+
goog.inherits(proto.wechaty.puppet.BatchRoomPayloadRequest, jspb.Message);
|
|
832
|
+
if (goog.DEBUG && !COMPILED) {
|
|
833
|
+
/**
|
|
834
|
+
* @public
|
|
835
|
+
* @override
|
|
836
|
+
*/
|
|
837
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.displayName = 'proto.wechaty.puppet.BatchRoomPayloadRequest';
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Generated by JsPbCodeGenerator.
|
|
841
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
842
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
843
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
844
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
845
|
+
* valid.
|
|
846
|
+
* @extends {jspb.Message}
|
|
847
|
+
* @constructor
|
|
848
|
+
*/
|
|
849
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse = function(opt_data) {
|
|
850
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchRoomPayloadResponse.repeatedFields_, null);
|
|
851
|
+
};
|
|
852
|
+
goog.inherits(proto.wechaty.puppet.BatchRoomPayloadResponse, jspb.Message);
|
|
853
|
+
if (goog.DEBUG && !COMPILED) {
|
|
854
|
+
/**
|
|
855
|
+
* @public
|
|
856
|
+
* @override
|
|
857
|
+
*/
|
|
858
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.displayName = 'proto.wechaty.puppet.BatchRoomPayloadResponse';
|
|
859
|
+
}
|
|
816
860
|
|
|
817
861
|
|
|
818
862
|
|
|
@@ -7205,4 +7249,320 @@ proto.wechaty.puppet.RoomDismissResponse.serializeBinaryToWriter = function(mess
|
|
|
7205
7249
|
};
|
|
7206
7250
|
|
|
7207
7251
|
|
|
7252
|
+
|
|
7253
|
+
/**
|
|
7254
|
+
* List of repeated fields within this message type.
|
|
7255
|
+
* @private {!Array<number>}
|
|
7256
|
+
* @const
|
|
7257
|
+
*/
|
|
7258
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.repeatedFields_ = [1];
|
|
7259
|
+
|
|
7260
|
+
|
|
7261
|
+
|
|
7262
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7263
|
+
/**
|
|
7264
|
+
* Creates an object representation of this proto.
|
|
7265
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7266
|
+
* Optional fields that are not set will be set to undefined.
|
|
7267
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7268
|
+
* For the list of reserved names please see:
|
|
7269
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7270
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7271
|
+
* JSPB instance for transitional soy proto support:
|
|
7272
|
+
* http://goto/soy-param-migration
|
|
7273
|
+
* @return {!Object}
|
|
7274
|
+
*/
|
|
7275
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7276
|
+
return proto.wechaty.puppet.BatchRoomPayloadRequest.toObject(opt_includeInstance, this);
|
|
7277
|
+
};
|
|
7278
|
+
|
|
7279
|
+
|
|
7280
|
+
/**
|
|
7281
|
+
* Static version of the {@see toObject} method.
|
|
7282
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7283
|
+
* the JSPB instance for transitional soy proto support:
|
|
7284
|
+
* http://goto/soy-param-migration
|
|
7285
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadRequest} msg The msg instance to transform.
|
|
7286
|
+
* @return {!Object}
|
|
7287
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7288
|
+
*/
|
|
7289
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.toObject = function(includeInstance, msg) {
|
|
7290
|
+
var f, obj = {
|
|
7291
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
7292
|
+
};
|
|
7293
|
+
|
|
7294
|
+
if (includeInstance) {
|
|
7295
|
+
obj.$jspbMessageInstance = msg;
|
|
7296
|
+
}
|
|
7297
|
+
return obj;
|
|
7298
|
+
};
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
|
|
7302
|
+
/**
|
|
7303
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7304
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7305
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadRequest}
|
|
7306
|
+
*/
|
|
7307
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.deserializeBinary = function(bytes) {
|
|
7308
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7309
|
+
var msg = new proto.wechaty.puppet.BatchRoomPayloadRequest;
|
|
7310
|
+
return proto.wechaty.puppet.BatchRoomPayloadRequest.deserializeBinaryFromReader(msg, reader);
|
|
7311
|
+
};
|
|
7312
|
+
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7316
|
+
* given reader into the given message object.
|
|
7317
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadRequest} msg The message object to deserialize into.
|
|
7318
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7319
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadRequest}
|
|
7320
|
+
*/
|
|
7321
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7322
|
+
while (reader.nextField()) {
|
|
7323
|
+
if (reader.isEndGroup()) {
|
|
7324
|
+
break;
|
|
7325
|
+
}
|
|
7326
|
+
var field = reader.getFieldNumber();
|
|
7327
|
+
switch (field) {
|
|
7328
|
+
case 1:
|
|
7329
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7330
|
+
msg.addIds(value);
|
|
7331
|
+
break;
|
|
7332
|
+
default:
|
|
7333
|
+
reader.skipField();
|
|
7334
|
+
break;
|
|
7335
|
+
}
|
|
7336
|
+
}
|
|
7337
|
+
return msg;
|
|
7338
|
+
};
|
|
7339
|
+
|
|
7340
|
+
|
|
7341
|
+
/**
|
|
7342
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7343
|
+
* @return {!Uint8Array}
|
|
7344
|
+
*/
|
|
7345
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.serializeBinary = function() {
|
|
7346
|
+
var writer = new jspb.BinaryWriter();
|
|
7347
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.serializeBinaryToWriter(this, writer);
|
|
7348
|
+
return writer.getResultBuffer();
|
|
7349
|
+
};
|
|
7350
|
+
|
|
7351
|
+
|
|
7352
|
+
/**
|
|
7353
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7354
|
+
* format), writing to the given BinaryWriter.
|
|
7355
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadRequest} message
|
|
7356
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7357
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7358
|
+
*/
|
|
7359
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7360
|
+
var f = undefined;
|
|
7361
|
+
f = message.getIdsList();
|
|
7362
|
+
if (f.length > 0) {
|
|
7363
|
+
writer.writeRepeatedString(
|
|
7364
|
+
1,
|
|
7365
|
+
f
|
|
7366
|
+
);
|
|
7367
|
+
}
|
|
7368
|
+
};
|
|
7369
|
+
|
|
7370
|
+
|
|
7371
|
+
/**
|
|
7372
|
+
* repeated string ids = 1;
|
|
7373
|
+
* @return {!Array<string>}
|
|
7374
|
+
*/
|
|
7375
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.getIdsList = function() {
|
|
7376
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
7377
|
+
};
|
|
7378
|
+
|
|
7379
|
+
|
|
7380
|
+
/**
|
|
7381
|
+
* @param {!Array<string>} value
|
|
7382
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadRequest} returns this
|
|
7383
|
+
*/
|
|
7384
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.setIdsList = function(value) {
|
|
7385
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
7386
|
+
};
|
|
7387
|
+
|
|
7388
|
+
|
|
7389
|
+
/**
|
|
7390
|
+
* @param {string} value
|
|
7391
|
+
* @param {number=} opt_index
|
|
7392
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadRequest} returns this
|
|
7393
|
+
*/
|
|
7394
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.addIds = function(value, opt_index) {
|
|
7395
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
7396
|
+
};
|
|
7397
|
+
|
|
7398
|
+
|
|
7399
|
+
/**
|
|
7400
|
+
* Clears the list making it empty but non-null.
|
|
7401
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadRequest} returns this
|
|
7402
|
+
*/
|
|
7403
|
+
proto.wechaty.puppet.BatchRoomPayloadRequest.prototype.clearIdsList = function() {
|
|
7404
|
+
return this.setIdsList([]);
|
|
7405
|
+
};
|
|
7406
|
+
|
|
7407
|
+
|
|
7408
|
+
|
|
7409
|
+
/**
|
|
7410
|
+
* List of repeated fields within this message type.
|
|
7411
|
+
* @private {!Array<number>}
|
|
7412
|
+
* @const
|
|
7413
|
+
*/
|
|
7414
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.repeatedFields_ = [1];
|
|
7415
|
+
|
|
7416
|
+
|
|
7417
|
+
|
|
7418
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7419
|
+
/**
|
|
7420
|
+
* Creates an object representation of this proto.
|
|
7421
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7422
|
+
* Optional fields that are not set will be set to undefined.
|
|
7423
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7424
|
+
* For the list of reserved names please see:
|
|
7425
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7426
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7427
|
+
* JSPB instance for transitional soy proto support:
|
|
7428
|
+
* http://goto/soy-param-migration
|
|
7429
|
+
* @return {!Object}
|
|
7430
|
+
*/
|
|
7431
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7432
|
+
return proto.wechaty.puppet.BatchRoomPayloadResponse.toObject(opt_includeInstance, this);
|
|
7433
|
+
};
|
|
7434
|
+
|
|
7435
|
+
|
|
7436
|
+
/**
|
|
7437
|
+
* Static version of the {@see toObject} method.
|
|
7438
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7439
|
+
* the JSPB instance for transitional soy proto support:
|
|
7440
|
+
* http://goto/soy-param-migration
|
|
7441
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadResponse} msg The msg instance to transform.
|
|
7442
|
+
* @return {!Object}
|
|
7443
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7444
|
+
*/
|
|
7445
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.toObject = function(includeInstance, msg) {
|
|
7446
|
+
var f, obj = {
|
|
7447
|
+
roomPayloadsList: jspb.Message.toObjectList(msg.getRoomPayloadsList(),
|
|
7448
|
+
proto.wechaty.puppet.RoomPayloadResponse.toObject, includeInstance)
|
|
7449
|
+
};
|
|
7450
|
+
|
|
7451
|
+
if (includeInstance) {
|
|
7452
|
+
obj.$jspbMessageInstance = msg;
|
|
7453
|
+
}
|
|
7454
|
+
return obj;
|
|
7455
|
+
};
|
|
7456
|
+
}
|
|
7457
|
+
|
|
7458
|
+
|
|
7459
|
+
/**
|
|
7460
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7461
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7462
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadResponse}
|
|
7463
|
+
*/
|
|
7464
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.deserializeBinary = function(bytes) {
|
|
7465
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7466
|
+
var msg = new proto.wechaty.puppet.BatchRoomPayloadResponse;
|
|
7467
|
+
return proto.wechaty.puppet.BatchRoomPayloadResponse.deserializeBinaryFromReader(msg, reader);
|
|
7468
|
+
};
|
|
7469
|
+
|
|
7470
|
+
|
|
7471
|
+
/**
|
|
7472
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7473
|
+
* given reader into the given message object.
|
|
7474
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadResponse} msg The message object to deserialize into.
|
|
7475
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7476
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadResponse}
|
|
7477
|
+
*/
|
|
7478
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7479
|
+
while (reader.nextField()) {
|
|
7480
|
+
if (reader.isEndGroup()) {
|
|
7481
|
+
break;
|
|
7482
|
+
}
|
|
7483
|
+
var field = reader.getFieldNumber();
|
|
7484
|
+
switch (field) {
|
|
7485
|
+
case 1:
|
|
7486
|
+
var value = new proto.wechaty.puppet.RoomPayloadResponse;
|
|
7487
|
+
reader.readMessage(value,proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader);
|
|
7488
|
+
msg.addRoomPayloads(value);
|
|
7489
|
+
break;
|
|
7490
|
+
default:
|
|
7491
|
+
reader.skipField();
|
|
7492
|
+
break;
|
|
7493
|
+
}
|
|
7494
|
+
}
|
|
7495
|
+
return msg;
|
|
7496
|
+
};
|
|
7497
|
+
|
|
7498
|
+
|
|
7499
|
+
/**
|
|
7500
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7501
|
+
* @return {!Uint8Array}
|
|
7502
|
+
*/
|
|
7503
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.serializeBinary = function() {
|
|
7504
|
+
var writer = new jspb.BinaryWriter();
|
|
7505
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.serializeBinaryToWriter(this, writer);
|
|
7506
|
+
return writer.getResultBuffer();
|
|
7507
|
+
};
|
|
7508
|
+
|
|
7509
|
+
|
|
7510
|
+
/**
|
|
7511
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7512
|
+
* format), writing to the given BinaryWriter.
|
|
7513
|
+
* @param {!proto.wechaty.puppet.BatchRoomPayloadResponse} message
|
|
7514
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7515
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7516
|
+
*/
|
|
7517
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7518
|
+
var f = undefined;
|
|
7519
|
+
f = message.getRoomPayloadsList();
|
|
7520
|
+
if (f.length > 0) {
|
|
7521
|
+
writer.writeRepeatedMessage(
|
|
7522
|
+
1,
|
|
7523
|
+
f,
|
|
7524
|
+
proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter
|
|
7525
|
+
);
|
|
7526
|
+
}
|
|
7527
|
+
};
|
|
7528
|
+
|
|
7529
|
+
|
|
7530
|
+
/**
|
|
7531
|
+
* repeated RoomPayloadResponse room_payloads = 1;
|
|
7532
|
+
* @return {!Array<!proto.wechaty.puppet.RoomPayloadResponse>}
|
|
7533
|
+
*/
|
|
7534
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.getRoomPayloadsList = function() {
|
|
7535
|
+
return /** @type{!Array<!proto.wechaty.puppet.RoomPayloadResponse>} */ (
|
|
7536
|
+
jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.RoomPayloadResponse, 1));
|
|
7537
|
+
};
|
|
7538
|
+
|
|
7539
|
+
|
|
7540
|
+
/**
|
|
7541
|
+
* @param {!Array<!proto.wechaty.puppet.RoomPayloadResponse>} value
|
|
7542
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadResponse} returns this
|
|
7543
|
+
*/
|
|
7544
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.setRoomPayloadsList = function(value) {
|
|
7545
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
7546
|
+
};
|
|
7547
|
+
|
|
7548
|
+
|
|
7549
|
+
/**
|
|
7550
|
+
* @param {!proto.wechaty.puppet.RoomPayloadResponse=} opt_value
|
|
7551
|
+
* @param {number=} opt_index
|
|
7552
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse}
|
|
7553
|
+
*/
|
|
7554
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.addRoomPayloads = function(opt_value, opt_index) {
|
|
7555
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.RoomPayloadResponse, opt_index);
|
|
7556
|
+
};
|
|
7557
|
+
|
|
7558
|
+
|
|
7559
|
+
/**
|
|
7560
|
+
* Clears the list making it empty but non-null.
|
|
7561
|
+
* @return {!proto.wechaty.puppet.BatchRoomPayloadResponse} returns this
|
|
7562
|
+
*/
|
|
7563
|
+
proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.clearRoomPayloadsList = function() {
|
|
7564
|
+
return this.setRoomPayloadsList([]);
|
|
7565
|
+
};
|
|
7566
|
+
|
|
7567
|
+
|
|
7208
7568
|
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.105
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -2043,6 +2043,26 @@ paths:
|
|
|
2043
2043
|
$ref: '#/definitions/puppetRoomCreateRequest'
|
|
2044
2044
|
tags:
|
|
2045
2045
|
- Puppet
|
|
2046
|
+
/rooms/batch-payload:
|
|
2047
|
+
post:
|
|
2048
|
+
operationId: Puppet_BatchRoomPayload
|
|
2049
|
+
responses:
|
|
2050
|
+
'200':
|
|
2051
|
+
description: A successful response.
|
|
2052
|
+
schema:
|
|
2053
|
+
$ref: '#/definitions/puppetBatchRoomPayloadResponse'
|
|
2054
|
+
default:
|
|
2055
|
+
description: An unexpected error response.
|
|
2056
|
+
schema:
|
|
2057
|
+
$ref: '#/definitions/rpcStatus'
|
|
2058
|
+
parameters:
|
|
2059
|
+
- name: body
|
|
2060
|
+
in: body
|
|
2061
|
+
required: true
|
|
2062
|
+
schema:
|
|
2063
|
+
$ref: '#/definitions/puppetBatchRoomPayloadRequest'
|
|
2064
|
+
tags:
|
|
2065
|
+
- Puppet
|
|
2046
2066
|
/rooms/{id_1}:
|
|
2047
2067
|
delete:
|
|
2048
2068
|
operationId: Puppet_RoomDismiss
|
|
@@ -3099,6 +3119,46 @@ paths:
|
|
|
3099
3119
|
$ref: '#/definitions/puppetMessageSendFileRequest'
|
|
3100
3120
|
tags:
|
|
3101
3121
|
- Puppet
|
|
3122
|
+
/wechaty.Puppet/MessageVoice:
|
|
3123
|
+
post:
|
|
3124
|
+
operationId: Puppet_MessageVoice
|
|
3125
|
+
responses:
|
|
3126
|
+
'200':
|
|
3127
|
+
description: A successful response.
|
|
3128
|
+
schema:
|
|
3129
|
+
$ref: '#/definitions/puppetMessageVoiceResponse'
|
|
3130
|
+
default:
|
|
3131
|
+
description: An unexpected error response.
|
|
3132
|
+
schema:
|
|
3133
|
+
$ref: '#/definitions/rpcStatus'
|
|
3134
|
+
parameters:
|
|
3135
|
+
- name: body
|
|
3136
|
+
in: body
|
|
3137
|
+
required: true
|
|
3138
|
+
schema:
|
|
3139
|
+
$ref: '#/definitions/puppetMessageVoiceRequest'
|
|
3140
|
+
tags:
|
|
3141
|
+
- Puppet
|
|
3142
|
+
/wechaty.Puppet/MessageVoiceText:
|
|
3143
|
+
post:
|
|
3144
|
+
operationId: Puppet_MessageVoiceText
|
|
3145
|
+
responses:
|
|
3146
|
+
'200':
|
|
3147
|
+
description: A successful response.
|
|
3148
|
+
schema:
|
|
3149
|
+
$ref: '#/definitions/puppetMessageVoiceTextResponse'
|
|
3150
|
+
default:
|
|
3151
|
+
description: An unexpected error response.
|
|
3152
|
+
schema:
|
|
3153
|
+
$ref: '#/definitions/rpcStatus'
|
|
3154
|
+
parameters:
|
|
3155
|
+
- name: body
|
|
3156
|
+
in: body
|
|
3157
|
+
required: true
|
|
3158
|
+
schema:
|
|
3159
|
+
$ref: '#/definitions/puppetMessageVoiceTextRequest'
|
|
3160
|
+
tags:
|
|
3161
|
+
- Puppet
|
|
3102
3162
|
/wecom/corpMessageInterceptionStrategyList:
|
|
3103
3163
|
get:
|
|
3104
3164
|
operationId: Puppet_GetCorpMessageInterceptionStrategies
|
|
@@ -3458,6 +3518,21 @@ definitions:
|
|
|
3458
3518
|
items:
|
|
3459
3519
|
type: object
|
|
3460
3520
|
$ref: '#/definitions/puppetRoomMemberPayloadResponse'
|
|
3521
|
+
puppetBatchRoomPayloadRequest:
|
|
3522
|
+
type: object
|
|
3523
|
+
properties:
|
|
3524
|
+
ids:
|
|
3525
|
+
type: array
|
|
3526
|
+
items:
|
|
3527
|
+
type: string
|
|
3528
|
+
puppetBatchRoomPayloadResponse:
|
|
3529
|
+
type: object
|
|
3530
|
+
properties:
|
|
3531
|
+
roomPayloads:
|
|
3532
|
+
type: array
|
|
3533
|
+
items:
|
|
3534
|
+
type: object
|
|
3535
|
+
$ref: '#/definitions/puppetRoomPayloadResponse'
|
|
3461
3536
|
puppetBroadcastStatus:
|
|
3462
3537
|
type: string
|
|
3463
3538
|
enum:
|
|
@@ -4825,6 +4900,28 @@ definitions:
|
|
|
4825
4900
|
The compatible code will be removed after Dec 31, 2022
|
|
4826
4901
|
urlLink:
|
|
4827
4902
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
4903
|
+
puppetMessageVoiceRequest:
|
|
4904
|
+
type: object
|
|
4905
|
+
properties:
|
|
4906
|
+
id:
|
|
4907
|
+
type: string
|
|
4908
|
+
puppetMessageVoiceResponse:
|
|
4909
|
+
type: object
|
|
4910
|
+
properties:
|
|
4911
|
+
fileBox:
|
|
4912
|
+
type: string
|
|
4913
|
+
puppetMessageVoiceTextRequest:
|
|
4914
|
+
type: object
|
|
4915
|
+
properties:
|
|
4916
|
+
id:
|
|
4917
|
+
type: string
|
|
4918
|
+
puppetMessageVoiceTextResponse:
|
|
4919
|
+
type: object
|
|
4920
|
+
properties:
|
|
4921
|
+
text:
|
|
4922
|
+
type: string
|
|
4923
|
+
noSpeech:
|
|
4924
|
+
type: boolean
|
|
4828
4925
|
puppetMiniProgramPayload:
|
|
4829
4926
|
type: object
|
|
4830
4927
|
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.105",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3086,6 +3086,38 @@
|
|
|
3086
3086
|
]
|
|
3087
3087
|
}
|
|
3088
3088
|
},
|
|
3089
|
+
"/rooms/batch-payload": {
|
|
3090
|
+
"post": {
|
|
3091
|
+
"operationId": "Puppet_BatchRoomPayload",
|
|
3092
|
+
"responses": {
|
|
3093
|
+
"200": {
|
|
3094
|
+
"description": "A successful response.",
|
|
3095
|
+
"schema": {
|
|
3096
|
+
"$ref": "#/definitions/puppetBatchRoomPayloadResponse"
|
|
3097
|
+
}
|
|
3098
|
+
},
|
|
3099
|
+
"default": {
|
|
3100
|
+
"description": "An unexpected error response.",
|
|
3101
|
+
"schema": {
|
|
3102
|
+
"$ref": "#/definitions/rpcStatus"
|
|
3103
|
+
}
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
"parameters": [
|
|
3107
|
+
{
|
|
3108
|
+
"name": "body",
|
|
3109
|
+
"in": "body",
|
|
3110
|
+
"required": true,
|
|
3111
|
+
"schema": {
|
|
3112
|
+
"$ref": "#/definitions/puppetBatchRoomPayloadRequest"
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
],
|
|
3116
|
+
"tags": [
|
|
3117
|
+
"Puppet"
|
|
3118
|
+
]
|
|
3119
|
+
}
|
|
3120
|
+
},
|
|
3089
3121
|
"/rooms/{id_1}": {
|
|
3090
3122
|
"delete": {
|
|
3091
3123
|
"operationId": "Puppet_RoomDismiss",
|
|
@@ -4685,6 +4717,70 @@
|
|
|
4685
4717
|
]
|
|
4686
4718
|
}
|
|
4687
4719
|
},
|
|
4720
|
+
"/wechaty.Puppet/MessageVoice": {
|
|
4721
|
+
"post": {
|
|
4722
|
+
"operationId": "Puppet_MessageVoice",
|
|
4723
|
+
"responses": {
|
|
4724
|
+
"200": {
|
|
4725
|
+
"description": "A successful response.",
|
|
4726
|
+
"schema": {
|
|
4727
|
+
"$ref": "#/definitions/puppetMessageVoiceResponse"
|
|
4728
|
+
}
|
|
4729
|
+
},
|
|
4730
|
+
"default": {
|
|
4731
|
+
"description": "An unexpected error response.",
|
|
4732
|
+
"schema": {
|
|
4733
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
},
|
|
4737
|
+
"parameters": [
|
|
4738
|
+
{
|
|
4739
|
+
"name": "body",
|
|
4740
|
+
"in": "body",
|
|
4741
|
+
"required": true,
|
|
4742
|
+
"schema": {
|
|
4743
|
+
"$ref": "#/definitions/puppetMessageVoiceRequest"
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4746
|
+
],
|
|
4747
|
+
"tags": [
|
|
4748
|
+
"Puppet"
|
|
4749
|
+
]
|
|
4750
|
+
}
|
|
4751
|
+
},
|
|
4752
|
+
"/wechaty.Puppet/MessageVoiceText": {
|
|
4753
|
+
"post": {
|
|
4754
|
+
"operationId": "Puppet_MessageVoiceText",
|
|
4755
|
+
"responses": {
|
|
4756
|
+
"200": {
|
|
4757
|
+
"description": "A successful response.",
|
|
4758
|
+
"schema": {
|
|
4759
|
+
"$ref": "#/definitions/puppetMessageVoiceTextResponse"
|
|
4760
|
+
}
|
|
4761
|
+
},
|
|
4762
|
+
"default": {
|
|
4763
|
+
"description": "An unexpected error response.",
|
|
4764
|
+
"schema": {
|
|
4765
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4768
|
+
},
|
|
4769
|
+
"parameters": [
|
|
4770
|
+
{
|
|
4771
|
+
"name": "body",
|
|
4772
|
+
"in": "body",
|
|
4773
|
+
"required": true,
|
|
4774
|
+
"schema": {
|
|
4775
|
+
"$ref": "#/definitions/puppetMessageVoiceTextRequest"
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
],
|
|
4779
|
+
"tags": [
|
|
4780
|
+
"Puppet"
|
|
4781
|
+
]
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4688
4784
|
"/wecom/corpMessageInterceptionStrategyList": {
|
|
4689
4785
|
"get": {
|
|
4690
4786
|
"operationId": "Puppet_GetCorpMessageInterceptionStrategies",
|
|
@@ -5188,6 +5284,29 @@
|
|
|
5188
5284
|
}
|
|
5189
5285
|
}
|
|
5190
5286
|
},
|
|
5287
|
+
"puppetBatchRoomPayloadRequest": {
|
|
5288
|
+
"type": "object",
|
|
5289
|
+
"properties": {
|
|
5290
|
+
"ids": {
|
|
5291
|
+
"type": "array",
|
|
5292
|
+
"items": {
|
|
5293
|
+
"type": "string"
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
},
|
|
5298
|
+
"puppetBatchRoomPayloadResponse": {
|
|
5299
|
+
"type": "object",
|
|
5300
|
+
"properties": {
|
|
5301
|
+
"roomPayloads": {
|
|
5302
|
+
"type": "array",
|
|
5303
|
+
"items": {
|
|
5304
|
+
"type": "object",
|
|
5305
|
+
"$ref": "#/definitions/puppetRoomPayloadResponse"
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
},
|
|
5191
5310
|
"puppetBroadcastStatus": {
|
|
5192
5311
|
"type": "string",
|
|
5193
5312
|
"enum": [
|
|
@@ -6948,6 +7067,41 @@
|
|
|
6948
7067
|
}
|
|
6949
7068
|
}
|
|
6950
7069
|
},
|
|
7070
|
+
"puppetMessageVoiceRequest": {
|
|
7071
|
+
"type": "object",
|
|
7072
|
+
"properties": {
|
|
7073
|
+
"id": {
|
|
7074
|
+
"type": "string"
|
|
7075
|
+
}
|
|
7076
|
+
}
|
|
7077
|
+
},
|
|
7078
|
+
"puppetMessageVoiceResponse": {
|
|
7079
|
+
"type": "object",
|
|
7080
|
+
"properties": {
|
|
7081
|
+
"fileBox": {
|
|
7082
|
+
"type": "string"
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
},
|
|
7086
|
+
"puppetMessageVoiceTextRequest": {
|
|
7087
|
+
"type": "object",
|
|
7088
|
+
"properties": {
|
|
7089
|
+
"id": {
|
|
7090
|
+
"type": "string"
|
|
7091
|
+
}
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7094
|
+
"puppetMessageVoiceTextResponse": {
|
|
7095
|
+
"type": "object",
|
|
7096
|
+
"properties": {
|
|
7097
|
+
"text": {
|
|
7098
|
+
"type": "string"
|
|
7099
|
+
},
|
|
7100
|
+
"noSpeech": {
|
|
7101
|
+
"type": "boolean"
|
|
7102
|
+
}
|
|
7103
|
+
}
|
|
7104
|
+
},
|
|
6951
7105
|
"puppetMiniProgramPayload": {
|
|
6952
7106
|
"type": "object",
|
|
6953
7107
|
"properties": {
|