@juzi/wechaty-grpc 1.0.104 → 1.0.106
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/call_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +31 -1
- 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 +39 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +60 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/call.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/call_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +31 -1
- 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 +39 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +60 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/call.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +8 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/call_pb.d.ts +4 -0
- package/out/wechaty/puppet/call_pb.js +31 -1
- 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 +39 -1
- package/out/wechaty/puppet.swagger.json +60 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
- package/out/wechaty/puppet_grpc_pb.js +33 -0
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -22,6 +22,9 @@ export class CallRecordPayload extends jspb.Message {
|
|
|
22
22
|
getStatus(): CallStatusMap[keyof CallStatusMap];
|
|
23
23
|
setStatus(value: CallStatusMap[keyof CallStatusMap]): void;
|
|
24
24
|
|
|
25
|
+
getCallId(): string;
|
|
26
|
+
setCallId(value: string): void;
|
|
27
|
+
|
|
25
28
|
serializeBinary(): Uint8Array;
|
|
26
29
|
toObject(includeInstance?: boolean): CallRecordPayload.AsObject;
|
|
27
30
|
static toObject(includeInstance: boolean, msg: CallRecordPayload): CallRecordPayload.AsObject;
|
|
@@ -39,6 +42,7 @@ export namespace CallRecordPayload {
|
|
|
39
42
|
length: number,
|
|
40
43
|
type: CallTypeMap[keyof CallTypeMap],
|
|
41
44
|
status: CallStatusMap[keyof CallStatusMap],
|
|
45
|
+
callId: string,
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
@@ -436,7 +436,8 @@ proto.wechaty.puppet.CallRecordPayload.toObject = function(includeInstance, msg)
|
|
|
436
436
|
participantIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
437
437
|
length: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
438
438
|
type: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
439
|
-
status: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
439
|
+
status: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
440
|
+
callId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
440
441
|
};
|
|
441
442
|
|
|
442
443
|
if (includeInstance) {
|
|
@@ -493,6 +494,10 @@ proto.wechaty.puppet.CallRecordPayload.deserializeBinaryFromReader = function(ms
|
|
|
493
494
|
var value = /** @type {!proto.wechaty.puppet.CallStatus} */ (reader.readEnum());
|
|
494
495
|
msg.setStatus(value);
|
|
495
496
|
break;
|
|
497
|
+
case 6:
|
|
498
|
+
var value = /** @type {string} */ (reader.readString());
|
|
499
|
+
msg.setCallId(value);
|
|
500
|
+
break;
|
|
496
501
|
default:
|
|
497
502
|
reader.skipField();
|
|
498
503
|
break;
|
|
@@ -557,6 +562,13 @@ proto.wechaty.puppet.CallRecordPayload.serializeBinaryToWriter = function(messag
|
|
|
557
562
|
f
|
|
558
563
|
);
|
|
559
564
|
}
|
|
565
|
+
f = message.getCallId();
|
|
566
|
+
if (f.length > 0) {
|
|
567
|
+
writer.writeString(
|
|
568
|
+
6,
|
|
569
|
+
f
|
|
570
|
+
);
|
|
571
|
+
}
|
|
560
572
|
};
|
|
561
573
|
|
|
562
574
|
|
|
@@ -669,6 +681,24 @@ proto.wechaty.puppet.CallRecordPayload.prototype.setStatus = function(value) {
|
|
|
669
681
|
};
|
|
670
682
|
|
|
671
683
|
|
|
684
|
+
/**
|
|
685
|
+
* optional string call_id = 6;
|
|
686
|
+
* @return {string}
|
|
687
|
+
*/
|
|
688
|
+
proto.wechaty.puppet.CallRecordPayload.prototype.getCallId = function() {
|
|
689
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* @param {string} value
|
|
695
|
+
* @return {!proto.wechaty.puppet.CallRecordPayload} returns this
|
|
696
|
+
*/
|
|
697
|
+
proto.wechaty.puppet.CallRecordPayload.prototype.setCallId = function(value) {
|
|
698
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
|
|
672
702
|
|
|
673
703
|
/**
|
|
674
704
|
* List of repeated fields within this message type.
|
|
@@ -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.
|
|
12
|
+
version: 1.0.106
|
|
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:
|
|
@@ -3610,6 +3645,9 @@ definitions:
|
|
|
3610
3645
|
$ref: '#/definitions/puppetCallType'
|
|
3611
3646
|
status:
|
|
3612
3647
|
$ref: '#/definitions/puppetCallStatus'
|
|
3648
|
+
callId:
|
|
3649
|
+
type: string
|
|
3650
|
+
title: 关联控制面 call_id,可空字符串表示历史/未知
|
|
3613
3651
|
puppetCallRejectResponse:
|
|
3614
3652
|
type: object
|
|
3615
3653
|
puppetCallStatus:
|
|
@@ -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.106",
|
|
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": [
|
|
@@ -5399,6 +5454,10 @@
|
|
|
5399
5454
|
},
|
|
5400
5455
|
"status": {
|
|
5401
5456
|
"$ref": "#/definitions/puppetCallStatus"
|
|
5457
|
+
},
|
|
5458
|
+
"callId": {
|
|
5459
|
+
"type": "string",
|
|
5460
|
+
"title": "关联控制面 call_id,可空字符串表示历史/未知"
|
|
5402
5461
|
}
|
|
5403
5462
|
}
|
|
5404
5463
|
},
|