@juzi/wechaty-grpc 1.0.86 → 1.0.89
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/room-invitation_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +426 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +75 -6
- package/dist/cjs/out/wechaty/puppet.swagger.json +110 -6
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +11 -0
- package/dist/cjs/proto/wechaty/puppet.proto +11 -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 +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +426 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +75 -6
- package/dist/esm/out/wechaty/puppet.swagger.json +110 -6
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +11 -0
- package/dist/esm/proto/wechaty/puppet.proto +11 -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 +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/room-invitation_pb.d.ts +44 -0
- package/out/wechaty/puppet/room-invitation_pb.js +334 -0
- package/out/wechaty/puppet/room_pb.d.ts +56 -0
- package/out/wechaty/puppet/room_pb.js +426 -2
- package/out/wechaty/puppet.openapi.yaml +75 -6
- package/out/wechaty/puppet.swagger.json +110 -6
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -131,3 +131,47 @@ export namespace RoomInvitationAcceptResponse {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
export class RoomInvitationAcceptByQRCodeRequest extends jspb.Message {
|
|
135
|
+
getQrcode(): string;
|
|
136
|
+
setQrcode(value: string): void;
|
|
137
|
+
|
|
138
|
+
serializeBinary(): Uint8Array;
|
|
139
|
+
toObject(includeInstance?: boolean): RoomInvitationAcceptByQRCodeRequest.AsObject;
|
|
140
|
+
static toObject(includeInstance: boolean, msg: RoomInvitationAcceptByQRCodeRequest): RoomInvitationAcceptByQRCodeRequest.AsObject;
|
|
141
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
142
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
143
|
+
static serializeBinaryToWriter(message: RoomInvitationAcceptByQRCodeRequest, writer: jspb.BinaryWriter): void;
|
|
144
|
+
static deserializeBinary(bytes: Uint8Array): RoomInvitationAcceptByQRCodeRequest;
|
|
145
|
+
static deserializeBinaryFromReader(message: RoomInvitationAcceptByQRCodeRequest, reader: jspb.BinaryReader): RoomInvitationAcceptByQRCodeRequest;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export namespace RoomInvitationAcceptByQRCodeRequest {
|
|
149
|
+
export type AsObject = {
|
|
150
|
+
qrcode: string,
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export class RoomInvitationAcceptByQRCodeResponse extends jspb.Message {
|
|
155
|
+
getRoomId(): string;
|
|
156
|
+
setRoomId(value: string): void;
|
|
157
|
+
|
|
158
|
+
getChatId(): string;
|
|
159
|
+
setChatId(value: string): void;
|
|
160
|
+
|
|
161
|
+
serializeBinary(): Uint8Array;
|
|
162
|
+
toObject(includeInstance?: boolean): RoomInvitationAcceptByQRCodeResponse.AsObject;
|
|
163
|
+
static toObject(includeInstance: boolean, msg: RoomInvitationAcceptByQRCodeResponse): RoomInvitationAcceptByQRCodeResponse.AsObject;
|
|
164
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
165
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
166
|
+
static serializeBinaryToWriter(message: RoomInvitationAcceptByQRCodeResponse, writer: jspb.BinaryWriter): void;
|
|
167
|
+
static deserializeBinary(bytes: Uint8Array): RoomInvitationAcceptByQRCodeResponse;
|
|
168
|
+
static deserializeBinaryFromReader(message: RoomInvitationAcceptByQRCodeResponse, reader: jspb.BinaryReader): RoomInvitationAcceptByQRCodeResponse;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export namespace RoomInvitationAcceptByQRCodeResponse {
|
|
172
|
+
export type AsObject = {
|
|
173
|
+
roomId: string,
|
|
174
|
+
chatId: string,
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -19,6 +19,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
19
19
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
20
|
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
|
|
21
21
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
22
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest', null, global);
|
|
23
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse', null, global);
|
|
22
24
|
goog.exportSymbol('proto.wechaty.puppet.RoomInvitationAcceptRequest', null, global);
|
|
23
25
|
goog.exportSymbol('proto.wechaty.puppet.RoomInvitationAcceptResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.wechaty.puppet.RoomInvitationPayloadRequest', null, global);
|
|
@@ -107,6 +109,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
107
109
|
*/
|
|
108
110
|
proto.wechaty.puppet.RoomInvitationAcceptResponse.displayName = 'proto.wechaty.puppet.RoomInvitationAcceptResponse';
|
|
109
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Generated by JsPbCodeGenerator.
|
|
114
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
115
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
116
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
117
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
118
|
+
* valid.
|
|
119
|
+
* @extends {jspb.Message}
|
|
120
|
+
* @constructor
|
|
121
|
+
*/
|
|
122
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest = function(opt_data) {
|
|
123
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
124
|
+
};
|
|
125
|
+
goog.inherits(proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest, jspb.Message);
|
|
126
|
+
if (goog.DEBUG && !COMPILED) {
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @override
|
|
130
|
+
*/
|
|
131
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.displayName = 'proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest';
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Generated by JsPbCodeGenerator.
|
|
135
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
136
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
137
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
138
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
139
|
+
* valid.
|
|
140
|
+
* @extends {jspb.Message}
|
|
141
|
+
* @constructor
|
|
142
|
+
*/
|
|
143
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse = function(opt_data) {
|
|
144
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
|
+
};
|
|
146
|
+
goog.inherits(proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse, jspb.Message);
|
|
147
|
+
if (goog.DEBUG && !COMPILED) {
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
* @override
|
|
151
|
+
*/
|
|
152
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.displayName = 'proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse';
|
|
153
|
+
}
|
|
110
154
|
|
|
111
155
|
|
|
112
156
|
|
|
@@ -996,4 +1040,294 @@ proto.wechaty.puppet.RoomInvitationAcceptResponse.serializeBinaryToWriter = func
|
|
|
996
1040
|
};
|
|
997
1041
|
|
|
998
1042
|
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1047
|
+
/**
|
|
1048
|
+
* Creates an object representation of this proto.
|
|
1049
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1050
|
+
* Optional fields that are not set will be set to undefined.
|
|
1051
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1052
|
+
* For the list of reserved names please see:
|
|
1053
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1054
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1055
|
+
* JSPB instance for transitional soy proto support:
|
|
1056
|
+
* http://goto/soy-param-migration
|
|
1057
|
+
* @return {!Object}
|
|
1058
|
+
*/
|
|
1059
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1060
|
+
return proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.toObject(opt_includeInstance, this);
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Static version of the {@see toObject} method.
|
|
1066
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1067
|
+
* the JSPB instance for transitional soy proto support:
|
|
1068
|
+
* http://goto/soy-param-migration
|
|
1069
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest} msg The msg instance to transform.
|
|
1070
|
+
* @return {!Object}
|
|
1071
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1072
|
+
*/
|
|
1073
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.toObject = function(includeInstance, msg) {
|
|
1074
|
+
var f, obj = {
|
|
1075
|
+
qrcode: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
if (includeInstance) {
|
|
1079
|
+
obj.$jspbMessageInstance = msg;
|
|
1080
|
+
}
|
|
1081
|
+
return obj;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1088
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1089
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest}
|
|
1090
|
+
*/
|
|
1091
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.deserializeBinary = function(bytes) {
|
|
1092
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1093
|
+
var msg = new proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest;
|
|
1094
|
+
return proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1100
|
+
* given reader into the given message object.
|
|
1101
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest} msg The message object to deserialize into.
|
|
1102
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1103
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest}
|
|
1104
|
+
*/
|
|
1105
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1106
|
+
while (reader.nextField()) {
|
|
1107
|
+
if (reader.isEndGroup()) {
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
var field = reader.getFieldNumber();
|
|
1111
|
+
switch (field) {
|
|
1112
|
+
case 1:
|
|
1113
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1114
|
+
msg.setQrcode(value);
|
|
1115
|
+
break;
|
|
1116
|
+
default:
|
|
1117
|
+
reader.skipField();
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
return msg;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1127
|
+
* @return {!Uint8Array}
|
|
1128
|
+
*/
|
|
1129
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.prototype.serializeBinary = function() {
|
|
1130
|
+
var writer = new jspb.BinaryWriter();
|
|
1131
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.serializeBinaryToWriter(this, writer);
|
|
1132
|
+
return writer.getResultBuffer();
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1138
|
+
* format), writing to the given BinaryWriter.
|
|
1139
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest} message
|
|
1140
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1142
|
+
*/
|
|
1143
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1144
|
+
var f = undefined;
|
|
1145
|
+
f = message.getQrcode();
|
|
1146
|
+
if (f.length > 0) {
|
|
1147
|
+
writer.writeString(
|
|
1148
|
+
1,
|
|
1149
|
+
f
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* optional string qrcode = 1;
|
|
1157
|
+
* @return {string}
|
|
1158
|
+
*/
|
|
1159
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.prototype.getQrcode = function() {
|
|
1160
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* @param {string} value
|
|
1166
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest} returns this
|
|
1167
|
+
*/
|
|
1168
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeRequest.prototype.setQrcode = function(value) {
|
|
1169
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1177
|
+
/**
|
|
1178
|
+
* Creates an object representation of this proto.
|
|
1179
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1180
|
+
* Optional fields that are not set will be set to undefined.
|
|
1181
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1182
|
+
* For the list of reserved names please see:
|
|
1183
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1184
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1185
|
+
* JSPB instance for transitional soy proto support:
|
|
1186
|
+
* http://goto/soy-param-migration
|
|
1187
|
+
* @return {!Object}
|
|
1188
|
+
*/
|
|
1189
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1190
|
+
return proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.toObject(opt_includeInstance, this);
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Static version of the {@see toObject} method.
|
|
1196
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1197
|
+
* the JSPB instance for transitional soy proto support:
|
|
1198
|
+
* http://goto/soy-param-migration
|
|
1199
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse} msg The msg instance to transform.
|
|
1200
|
+
* @return {!Object}
|
|
1201
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1202
|
+
*/
|
|
1203
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.toObject = function(includeInstance, msg) {
|
|
1204
|
+
var f, obj = {
|
|
1205
|
+
roomId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1206
|
+
chatId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
if (includeInstance) {
|
|
1210
|
+
obj.$jspbMessageInstance = msg;
|
|
1211
|
+
}
|
|
1212
|
+
return obj;
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1219
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1220
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse}
|
|
1221
|
+
*/
|
|
1222
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.deserializeBinary = function(bytes) {
|
|
1223
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1224
|
+
var msg = new proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse;
|
|
1225
|
+
return proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1231
|
+
* given reader into the given message object.
|
|
1232
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse} msg The message object to deserialize into.
|
|
1233
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1234
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse}
|
|
1235
|
+
*/
|
|
1236
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1237
|
+
while (reader.nextField()) {
|
|
1238
|
+
if (reader.isEndGroup()) {
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
var field = reader.getFieldNumber();
|
|
1242
|
+
switch (field) {
|
|
1243
|
+
case 1:
|
|
1244
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1245
|
+
msg.setRoomId(value);
|
|
1246
|
+
break;
|
|
1247
|
+
case 2:
|
|
1248
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1249
|
+
msg.setChatId(value);
|
|
1250
|
+
break;
|
|
1251
|
+
default:
|
|
1252
|
+
reader.skipField();
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return msg;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1262
|
+
* @return {!Uint8Array}
|
|
1263
|
+
*/
|
|
1264
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.serializeBinary = function() {
|
|
1265
|
+
var writer = new jspb.BinaryWriter();
|
|
1266
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.serializeBinaryToWriter(this, writer);
|
|
1267
|
+
return writer.getResultBuffer();
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1273
|
+
* format), writing to the given BinaryWriter.
|
|
1274
|
+
* @param {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse} message
|
|
1275
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1276
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1277
|
+
*/
|
|
1278
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1279
|
+
var f = undefined;
|
|
1280
|
+
f = message.getRoomId();
|
|
1281
|
+
if (f.length > 0) {
|
|
1282
|
+
writer.writeString(
|
|
1283
|
+
1,
|
|
1284
|
+
f
|
|
1285
|
+
);
|
|
1286
|
+
}
|
|
1287
|
+
f = message.getChatId();
|
|
1288
|
+
if (f.length > 0) {
|
|
1289
|
+
writer.writeString(
|
|
1290
|
+
2,
|
|
1291
|
+
f
|
|
1292
|
+
);
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* optional string room_id = 1;
|
|
1299
|
+
* @return {string}
|
|
1300
|
+
*/
|
|
1301
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.getRoomId = function() {
|
|
1302
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @param {string} value
|
|
1308
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse} returns this
|
|
1309
|
+
*/
|
|
1310
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.setRoomId = function(value) {
|
|
1311
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1312
|
+
};
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* optional string chat_id = 2;
|
|
1317
|
+
* @return {string}
|
|
1318
|
+
*/
|
|
1319
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.getChatId = function() {
|
|
1320
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* @param {string} value
|
|
1326
|
+
* @return {!proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse} returns this
|
|
1327
|
+
*/
|
|
1328
|
+
proto.wechaty.puppet.RoomInvitationAcceptByQRCodeResponse.prototype.setChatId = function(value) {
|
|
1329
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
|
|
999
1333
|
goog.object.extend(exports, proto.wechaty.puppet);
|
|
@@ -440,6 +440,54 @@ export namespace RoomQRCodeResponse {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
export class RoomParseDynamicQRCodeRequest extends jspb.Message {
|
|
444
|
+
getUrl(): string;
|
|
445
|
+
setUrl(value: string): void;
|
|
446
|
+
|
|
447
|
+
serializeBinary(): Uint8Array;
|
|
448
|
+
toObject(includeInstance?: boolean): RoomParseDynamicQRCodeRequest.AsObject;
|
|
449
|
+
static toObject(includeInstance: boolean, msg: RoomParseDynamicQRCodeRequest): RoomParseDynamicQRCodeRequest.AsObject;
|
|
450
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
451
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
452
|
+
static serializeBinaryToWriter(message: RoomParseDynamicQRCodeRequest, writer: jspb.BinaryWriter): void;
|
|
453
|
+
static deserializeBinary(bytes: Uint8Array): RoomParseDynamicQRCodeRequest;
|
|
454
|
+
static deserializeBinaryFromReader(message: RoomParseDynamicQRCodeRequest, reader: jspb.BinaryReader): RoomParseDynamicQRCodeRequest;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export namespace RoomParseDynamicQRCodeRequest {
|
|
458
|
+
export type AsObject = {
|
|
459
|
+
url: string,
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export class RoomParseDynamicQRCodeResponse extends jspb.Message {
|
|
464
|
+
getQrcode(): string;
|
|
465
|
+
setQrcode(value: string): void;
|
|
466
|
+
|
|
467
|
+
getQrcodeImageUrl(): string;
|
|
468
|
+
setQrcodeImageUrl(value: string): void;
|
|
469
|
+
|
|
470
|
+
getRoomName(): string;
|
|
471
|
+
setRoomName(value: string): void;
|
|
472
|
+
|
|
473
|
+
serializeBinary(): Uint8Array;
|
|
474
|
+
toObject(includeInstance?: boolean): RoomParseDynamicQRCodeResponse.AsObject;
|
|
475
|
+
static toObject(includeInstance: boolean, msg: RoomParseDynamicQRCodeResponse): RoomParseDynamicQRCodeResponse.AsObject;
|
|
476
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
477
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
478
|
+
static serializeBinaryToWriter(message: RoomParseDynamicQRCodeResponse, writer: jspb.BinaryWriter): void;
|
|
479
|
+
static deserializeBinary(bytes: Uint8Array): RoomParseDynamicQRCodeResponse;
|
|
480
|
+
static deserializeBinaryFromReader(message: RoomParseDynamicQRCodeResponse, reader: jspb.BinaryReader): RoomParseDynamicQRCodeResponse;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export namespace RoomParseDynamicQRCodeResponse {
|
|
484
|
+
export type AsObject = {
|
|
485
|
+
qrcode: string,
|
|
486
|
+
qrcodeImageUrl: string,
|
|
487
|
+
roomName: string,
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
443
491
|
export class RoomAnnounceRequest extends jspb.Message {
|
|
444
492
|
getId(): string;
|
|
445
493
|
setId(value: string): void;
|
|
@@ -597,6 +645,9 @@ export class RoomPermissionRequest extends jspb.Message {
|
|
|
597
645
|
getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
598
646
|
setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
599
647
|
|
|
648
|
+
getDisableMemberMutualAdd(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
649
|
+
setDisableMemberMutualAdd(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
650
|
+
|
|
600
651
|
serializeBinary(): Uint8Array;
|
|
601
652
|
toObject(includeInstance?: boolean): RoomPermissionRequest.AsObject;
|
|
602
653
|
static toObject(includeInstance: boolean, msg: RoomPermissionRequest): RoomPermissionRequest.AsObject;
|
|
@@ -615,6 +666,7 @@ export namespace RoomPermissionRequest {
|
|
|
615
666
|
adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
616
667
|
muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
617
668
|
forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
669
|
+
disableMemberMutualAdd: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
618
670
|
}
|
|
619
671
|
}
|
|
620
672
|
|
|
@@ -634,6 +686,9 @@ export class RoomPermissionResponse extends jspb.Message {
|
|
|
634
686
|
getForbidRoomTopicEdit(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
635
687
|
setForbidRoomTopicEdit(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
636
688
|
|
|
689
|
+
getDisableMemberMutualAdd(): wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap];
|
|
690
|
+
setDisableMemberMutualAdd(value: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap]): void;
|
|
691
|
+
|
|
637
692
|
serializeBinary(): Uint8Array;
|
|
638
693
|
toObject(includeInstance?: boolean): RoomPermissionResponse.AsObject;
|
|
639
694
|
static toObject(includeInstance: boolean, msg: RoomPermissionResponse): RoomPermissionResponse.AsObject;
|
|
@@ -651,6 +706,7 @@ export namespace RoomPermissionResponse {
|
|
|
651
706
|
adminOnlyAtAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
652
707
|
muteAll: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
653
708
|
forbidRoomTopicEdit: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
709
|
+
disableMemberMutualAdd: wechaty_puppet_util_pb.OptionalBooleanMap[keyof wechaty_puppet_util_pb.OptionalBooleanMap],
|
|
654
710
|
}
|
|
655
711
|
}
|
|
656
712
|
|