@juzi/wechaty-grpc 1.0.104 → 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.
Files changed (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +44 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +360 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +36 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +56 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +8 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +44 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +360 -0
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +36 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +56 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  23. package/dist/esm/proto/wechaty/puppet/room.proto +8 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +5 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/room_pb.d.ts +44 -0
  30. package/out/wechaty/puppet/room_pb.js +360 -0
  31. package/out/wechaty/puppet.openapi.yaml +36 -1
  32. package/out/wechaty/puppet.swagger.json +56 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  34. package/out/wechaty/puppet_grpc_pb.js +33 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  36. package/out/wechaty/puppet_pb_service.js +40 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -930,3 +930,47 @@ export namespace RoomDismissResponse {
930
930
  }
931
931
  }
932
932
 
933
+ export class BatchRoomPayloadRequest extends jspb.Message {
934
+ clearIdsList(): void;
935
+ getIdsList(): Array<string>;
936
+ setIdsList(value: Array<string>): void;
937
+ addIds(value: string, index?: number): string;
938
+
939
+ serializeBinary(): Uint8Array;
940
+ toObject(includeInstance?: boolean): BatchRoomPayloadRequest.AsObject;
941
+ static toObject(includeInstance: boolean, msg: BatchRoomPayloadRequest): BatchRoomPayloadRequest.AsObject;
942
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
943
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
944
+ static serializeBinaryToWriter(message: BatchRoomPayloadRequest, writer: jspb.BinaryWriter): void;
945
+ static deserializeBinary(bytes: Uint8Array): BatchRoomPayloadRequest;
946
+ static deserializeBinaryFromReader(message: BatchRoomPayloadRequest, reader: jspb.BinaryReader): BatchRoomPayloadRequest;
947
+ }
948
+
949
+ export namespace BatchRoomPayloadRequest {
950
+ export type AsObject = {
951
+ idsList: Array<string>,
952
+ }
953
+ }
954
+
955
+ export class BatchRoomPayloadResponse extends jspb.Message {
956
+ clearRoomPayloadsList(): void;
957
+ getRoomPayloadsList(): Array<RoomPayloadResponse>;
958
+ setRoomPayloadsList(value: Array<RoomPayloadResponse>): void;
959
+ addRoomPayloads(value?: RoomPayloadResponse, index?: number): RoomPayloadResponse;
960
+
961
+ serializeBinary(): Uint8Array;
962
+ toObject(includeInstance?: boolean): BatchRoomPayloadResponse.AsObject;
963
+ static toObject(includeInstance: boolean, msg: BatchRoomPayloadResponse): BatchRoomPayloadResponse.AsObject;
964
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
965
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
966
+ static serializeBinaryToWriter(message: BatchRoomPayloadResponse, writer: jspb.BinaryWriter): void;
967
+ static deserializeBinary(bytes: Uint8Array): BatchRoomPayloadResponse;
968
+ static deserializeBinaryFromReader(message: BatchRoomPayloadResponse, reader: jspb.BinaryReader): BatchRoomPayloadResponse;
969
+ }
970
+
971
+ export namespace BatchRoomPayloadResponse {
972
+ export type AsObject = {
973
+ roomPayloadsList: Array<RoomPayloadResponse.AsObject>,
974
+ }
975
+ }
976
+
@@ -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.104
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
@@ -3498,6 +3518,21 @@ definitions:
3498
3518
  items:
3499
3519
  type: object
3500
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'
3501
3536
  puppetBroadcastStatus:
3502
3537
  type: string
3503
3538
  enum:
@@ -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.104",
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",
@@ -5252,6 +5284,29 @@
5252
5284
  }
5253
5285
  }
5254
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
+ },
5255
5310
  "puppetBroadcastStatus": {
5256
5311
  "type": "string",
5257
5312
  "enum": [
@@ -105,6 +105,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
105
105
  createMessageBroadcast: IPuppetService_ICreateMessageBroadcast;
106
106
  getMessageBroadcastStatus: IPuppetService_IGetMessageBroadcastStatus;
107
107
  roomPayload: IPuppetService_IRoomPayload;
108
+ batchRoomPayload: IPuppetService_IBatchRoomPayload;
108
109
  roomList: IPuppetService_IRoomList;
109
110
  roomAdd: IPuppetService_IRoomAdd;
110
111
  roomAvatar: IPuppetService_IRoomAvatar;
@@ -880,6 +881,15 @@ interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_pupp
880
881
  responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPayloadResponse>;
881
882
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPayloadResponse>;
882
883
  }
884
+ interface IPuppetService_IBatchRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.BatchRoomPayloadRequest, wechaty_puppet_room_pb.BatchRoomPayloadResponse> {
885
+ path: "/wechaty.Puppet/BatchRoomPayload";
886
+ requestStream: false;
887
+ responseStream: false;
888
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.BatchRoomPayloadRequest>;
889
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.BatchRoomPayloadRequest>;
890
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
891
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
892
+ }
883
893
  interface IPuppetService_IRoomList extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse> {
884
894
  path: "/wechaty.Puppet/RoomList";
885
895
  requestStream: false;
@@ -1441,6 +1451,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1441
1451
  createMessageBroadcast: grpc.handleUnaryCall<wechaty_puppet_message_pb.CreateMessageBroadcastRequest, wechaty_puppet_message_pb.CreateMessageBroadcastResponse>;
1442
1452
  getMessageBroadcastStatus: grpc.handleUnaryCall<wechaty_puppet_message_pb.GetMessageBroadcastStatusRequest, wechaty_puppet_message_pb.GetMessageBroadcastStatusResponse>;
1443
1453
  roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
1454
+ batchRoomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.BatchRoomPayloadRequest, wechaty_puppet_room_pb.BatchRoomPayloadResponse>;
1444
1455
  roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
1445
1456
  roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
1446
1457
  roomAvatar: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAvatarRequest, wechaty_puppet_room_pb.RoomAvatarResponse>;
@@ -1736,6 +1747,9 @@ export interface IPuppetClient {
1736
1747
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
1737
1748
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
1738
1749
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
1750
+ batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
1751
+ batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
1752
+ batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
1739
1753
  roomList(request: wechaty_puppet_room_pb.RoomListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
1740
1754
  roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
1741
1755
  roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
@@ -2138,6 +2152,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
2138
2152
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
2139
2153
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
2140
2154
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
2155
+ public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
2156
+ public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
2157
+ public batchRoomPayload(request: wechaty_puppet_room_pb.BatchRoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.BatchRoomPayloadResponse) => void): grpc.ClientUnaryCall;
2141
2158
  public roomList(request: wechaty_puppet_room_pb.RoomListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
2142
2159
  public roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
2143
2160
  public roomList(request: wechaty_puppet_room_pb.RoomListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomListResponse) => void): grpc.ClientUnaryCall;
@@ -99,6 +99,28 @@ function deserialize_wechaty_puppet_BatchRoomMemberPayloadResponse(buffer_arg) {
99
99
  return wechaty_puppet_room$member_pb.BatchRoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
100
100
  }
101
101
 
102
+ function serialize_wechaty_puppet_BatchRoomPayloadRequest(arg) {
103
+ if (!(arg instanceof wechaty_puppet_room_pb.BatchRoomPayloadRequest)) {
104
+ throw new Error('Expected argument of type wechaty.puppet.BatchRoomPayloadRequest');
105
+ }
106
+ return Buffer.from(arg.serializeBinary());
107
+ }
108
+
109
+ function deserialize_wechaty_puppet_BatchRoomPayloadRequest(buffer_arg) {
110
+ return wechaty_puppet_room_pb.BatchRoomPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
111
+ }
112
+
113
+ function serialize_wechaty_puppet_BatchRoomPayloadResponse(arg) {
114
+ if (!(arg instanceof wechaty_puppet_room_pb.BatchRoomPayloadResponse)) {
115
+ throw new Error('Expected argument of type wechaty.puppet.BatchRoomPayloadResponse');
116
+ }
117
+ return Buffer.from(arg.serializeBinary());
118
+ }
119
+
120
+ function deserialize_wechaty_puppet_BatchRoomPayloadResponse(buffer_arg) {
121
+ return wechaty_puppet_room_pb.BatchRoomPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
122
+ }
123
+
102
124
  function serialize_wechaty_puppet_CallAcceptRequest(arg) {
103
125
  if (!(arg instanceof wechaty_puppet_call_pb.CallAcceptRequest)) {
104
126
  throw new Error('Expected argument of type wechaty.puppet.CallAcceptRequest');
@@ -3825,6 +3847,17 @@ roomPayload: {
3825
3847
  responseSerialize: serialize_wechaty_puppet_RoomPayloadResponse,
3826
3848
  responseDeserialize: deserialize_wechaty_puppet_RoomPayloadResponse,
3827
3849
  },
3850
+ batchRoomPayload: {
3851
+ path: '/wechaty.Puppet/BatchRoomPayload',
3852
+ requestStream: false,
3853
+ responseStream: false,
3854
+ requestType: wechaty_puppet_room_pb.BatchRoomPayloadRequest,
3855
+ responseType: wechaty_puppet_room_pb.BatchRoomPayloadResponse,
3856
+ requestSerialize: serialize_wechaty_puppet_BatchRoomPayloadRequest,
3857
+ requestDeserialize: deserialize_wechaty_puppet_BatchRoomPayloadRequest,
3858
+ responseSerialize: serialize_wechaty_puppet_BatchRoomPayloadResponse,
3859
+ responseDeserialize: deserialize_wechaty_puppet_BatchRoomPayloadResponse,
3860
+ },
3828
3861
  roomList: {
3829
3862
  path: '/wechaty.Puppet/RoomList',
3830
3863
  requestStream: false,