@juzi/wechaty-grpc 1.0.89 → 1.0.90

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 (30) hide show
  1. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  2. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  3. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  4. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  6. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  7. package/dist/cjs/out/wechaty/puppet.openapi.yaml +9 -1
  8. package/dist/cjs/out/wechaty/puppet.swagger.json +12 -1
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +1 -0
  10. package/dist/cjs/src/package-json.js +1 -1
  11. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  12. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  13. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  14. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +9 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +12 -1
  19. package/dist/esm/proto/wechaty/puppet/room.proto +1 -0
  20. package/dist/esm/src/package-json.js +1 -1
  21. package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
  22. package/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
  23. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
  24. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
  25. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  26. package/out/wechaty/puppet/room_pb.js +58 -2
  27. package/out/wechaty/puppet.openapi.yaml +9 -1
  28. package/out/wechaty/puppet.swagger.json +12 -1
  29. package/package.json +1 -1
  30. package/src/package-json.ts +1 -1
@@ -11,6 +11,8 @@ import * as protoc_gen_openapiv2_options_openapiv2_pb from "../../protoc-gen-ope
11
11
 
12
12
  export const openapiv2Schema: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Schema>;
13
13
 
14
+ export const openapiv2Enum: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.EnumSchema>;
15
+
14
16
  export const openapiv2Tag: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Tag>;
15
17
 
16
18
  export const openapiv2Field: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.JSONSchema>;
@@ -19,6 +19,7 @@ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/des
19
19
  goog.object.extend(proto, google_protobuf_descriptor_pb);
20
20
  var protoc$gen$openapiv2_options_openapiv2_pb = require('../../protoc-gen-openapiv2/options/openapiv2_pb.js');
21
21
  goog.object.extend(proto, protoc$gen$openapiv2_options_openapiv2_pb);
22
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Enum', null, global);
22
23
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field', null, global);
23
24
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation', null, global);
24
25
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema', null, global);
@@ -100,6 +101,31 @@ google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[1042] = new jspb.E
100
101
  google_protobuf_descriptor_pb.MessageOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema;
101
102
 
102
103
 
104
+ /**
105
+ * A tuple of {field number, class constructor} for the extension
106
+ * field named `openapiv2Enum`.
107
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema>}
108
+ */
109
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Enum = new jspb.ExtensionFieldInfo(
110
+ 1042,
111
+ {openapiv2Enum: 0},
112
+ protoc$gen$openapiv2_options_openapiv2_pb.EnumSchema,
113
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
114
+ protoc$gen$openapiv2_options_openapiv2_pb.EnumSchema.toObject),
115
+ 0);
116
+
117
+ google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(
118
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Enum,
119
+ jspb.BinaryReader.prototype.readMessage,
120
+ jspb.BinaryWriter.prototype.writeMessage,
121
+ protoc$gen$openapiv2_options_openapiv2_pb.EnumSchema.serializeBinaryToWriter,
122
+ protoc$gen$openapiv2_options_openapiv2_pb.EnumSchema.deserializeBinaryFromReader,
123
+ false);
124
+ // This registers the extension field with the extended class, so that
125
+ // toObject() will function correctly.
126
+ google_protobuf_descriptor_pb.EnumOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Enum;
127
+
128
+
103
129
  /**
104
130
  * A tuple of {field number, class constructor} for the extension
105
131
  * field named `openapiv2Tag`.
@@ -468,6 +468,59 @@ export namespace Schema {
468
468
  }
469
469
  }
470
470
 
471
+ export class EnumSchema extends jspb.Message {
472
+ getDescription(): string;
473
+ setDescription(value: string): void;
474
+
475
+ getDefault(): string;
476
+ setDefault(value: string): void;
477
+
478
+ getTitle(): string;
479
+ setTitle(value: string): void;
480
+
481
+ getRequired(): boolean;
482
+ setRequired(value: boolean): void;
483
+
484
+ getReadOnly(): boolean;
485
+ setReadOnly(value: boolean): void;
486
+
487
+ hasExternalDocs(): boolean;
488
+ clearExternalDocs(): void;
489
+ getExternalDocs(): ExternalDocumentation | undefined;
490
+ setExternalDocs(value?: ExternalDocumentation): void;
491
+
492
+ getExample(): string;
493
+ setExample(value: string): void;
494
+
495
+ getRef(): string;
496
+ setRef(value: string): void;
497
+
498
+ getExtensionsMap(): jspb.Map<string, google_protobuf_struct_pb.Value>;
499
+ clearExtensionsMap(): void;
500
+ serializeBinary(): Uint8Array;
501
+ toObject(includeInstance?: boolean): EnumSchema.AsObject;
502
+ static toObject(includeInstance: boolean, msg: EnumSchema): EnumSchema.AsObject;
503
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
504
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
505
+ static serializeBinaryToWriter(message: EnumSchema, writer: jspb.BinaryWriter): void;
506
+ static deserializeBinary(bytes: Uint8Array): EnumSchema;
507
+ static deserializeBinaryFromReader(message: EnumSchema, reader: jspb.BinaryReader): EnumSchema;
508
+ }
509
+
510
+ export namespace EnumSchema {
511
+ export type AsObject = {
512
+ description: string,
513
+ pb_default: string,
514
+ title: string,
515
+ required: boolean,
516
+ readOnly: boolean,
517
+ externalDocs?: ExternalDocumentation.AsObject,
518
+ example: string,
519
+ ref: string,
520
+ extensionsMap: Array<[string, google_protobuf_struct_pb.Value.AsObject]>,
521
+ }
522
+ }
523
+
471
524
  export class JSONSchema extends jspb.Message {
472
525
  getRef(): string;
473
526
  setRef(value: string): void;
@@ -18,6 +18,7 @@ var global = (function() { return this || window || global || self || Function('
18
18
  var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_struct_pb);
20
20
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.Contact', null, global);
21
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema', null, global);
21
22
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation', null, global);
22
23
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.Header', null, global);
23
24
  goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter', null, global);
@@ -273,6 +274,27 @@ if (goog.DEBUG && !COMPILED) {
273
274
  */
274
275
  proto.grpc.gateway.protoc_gen_openapiv2.options.Schema.displayName = 'proto.grpc.gateway.protoc_gen_openapiv2.options.Schema';
275
276
  }
277
+ /**
278
+ * Generated by JsPbCodeGenerator.
279
+ * @param {Array=} opt_data Optional initial data array, typically from a
280
+ * server response, or constructed directly in Javascript. The array is used
281
+ * in place and becomes part of the constructed object. It is not cloned.
282
+ * If no data is provided, the constructed object will be empty, but still
283
+ * valid.
284
+ * @extends {jspb.Message}
285
+ * @constructor
286
+ */
287
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema = function(opt_data) {
288
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
289
+ };
290
+ goog.inherits(proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema, jspb.Message);
291
+ if (goog.DEBUG && !COMPILED) {
292
+ /**
293
+ * @public
294
+ * @override
295
+ */
296
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.displayName = 'proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema';
297
+ }
276
298
  /**
277
299
  * Generated by JsPbCodeGenerator.
278
300
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3867,6 +3889,400 @@ proto.grpc.gateway.protoc_gen_openapiv2.options.Schema.prototype.setExample = fu
3867
3889
 
3868
3890
 
3869
3891
 
3892
+
3893
+
3894
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3895
+ /**
3896
+ * Creates an object representation of this proto.
3897
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3898
+ * Optional fields that are not set will be set to undefined.
3899
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3900
+ * For the list of reserved names please see:
3901
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3902
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3903
+ * JSPB instance for transitional soy proto support:
3904
+ * http://goto/soy-param-migration
3905
+ * @return {!Object}
3906
+ */
3907
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.toObject = function(opt_includeInstance) {
3908
+ return proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.toObject(opt_includeInstance, this);
3909
+ };
3910
+
3911
+
3912
+ /**
3913
+ * Static version of the {@see toObject} method.
3914
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3915
+ * the JSPB instance for transitional soy proto support:
3916
+ * http://goto/soy-param-migration
3917
+ * @param {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} msg The msg instance to transform.
3918
+ * @return {!Object}
3919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3920
+ */
3921
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.toObject = function(includeInstance, msg) {
3922
+ var f, obj = {
3923
+ description: jspb.Message.getFieldWithDefault(msg, 1, ""),
3924
+ pb_default: jspb.Message.getFieldWithDefault(msg, 2, ""),
3925
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
3926
+ required: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
3927
+ readOnly: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
3928
+ externalDocs: (f = msg.getExternalDocs()) && proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.toObject(includeInstance, f),
3929
+ example: jspb.Message.getFieldWithDefault(msg, 7, ""),
3930
+ ref: jspb.Message.getFieldWithDefault(msg, 8, ""),
3931
+ extensionsMap: (f = msg.getExtensionsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
3932
+ };
3933
+
3934
+ if (includeInstance) {
3935
+ obj.$jspbMessageInstance = msg;
3936
+ }
3937
+ return obj;
3938
+ };
3939
+ }
3940
+
3941
+
3942
+ /**
3943
+ * Deserializes binary data (in protobuf wire format).
3944
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3945
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema}
3946
+ */
3947
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.deserializeBinary = function(bytes) {
3948
+ var reader = new jspb.BinaryReader(bytes);
3949
+ var msg = new proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema;
3950
+ return proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.deserializeBinaryFromReader(msg, reader);
3951
+ };
3952
+
3953
+
3954
+ /**
3955
+ * Deserializes binary data (in protobuf wire format) from the
3956
+ * given reader into the given message object.
3957
+ * @param {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} msg The message object to deserialize into.
3958
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3959
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema}
3960
+ */
3961
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.deserializeBinaryFromReader = function(msg, reader) {
3962
+ while (reader.nextField()) {
3963
+ if (reader.isEndGroup()) {
3964
+ break;
3965
+ }
3966
+ var field = reader.getFieldNumber();
3967
+ switch (field) {
3968
+ case 1:
3969
+ var value = /** @type {string} */ (reader.readString());
3970
+ msg.setDescription(value);
3971
+ break;
3972
+ case 2:
3973
+ var value = /** @type {string} */ (reader.readString());
3974
+ msg.setDefault(value);
3975
+ break;
3976
+ case 3:
3977
+ var value = /** @type {string} */ (reader.readString());
3978
+ msg.setTitle(value);
3979
+ break;
3980
+ case 4:
3981
+ var value = /** @type {boolean} */ (reader.readBool());
3982
+ msg.setRequired(value);
3983
+ break;
3984
+ case 5:
3985
+ var value = /** @type {boolean} */ (reader.readBool());
3986
+ msg.setReadOnly(value);
3987
+ break;
3988
+ case 6:
3989
+ var value = new proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation;
3990
+ reader.readMessage(value,proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.deserializeBinaryFromReader);
3991
+ msg.setExternalDocs(value);
3992
+ break;
3993
+ case 7:
3994
+ var value = /** @type {string} */ (reader.readString());
3995
+ msg.setExample(value);
3996
+ break;
3997
+ case 8:
3998
+ var value = /** @type {string} */ (reader.readString());
3999
+ msg.setRef(value);
4000
+ break;
4001
+ case 9:
4002
+ var value = msg.getExtensionsMap();
4003
+ reader.readMessage(value, function(message, reader) {
4004
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
4005
+ });
4006
+ break;
4007
+ default:
4008
+ reader.skipField();
4009
+ break;
4010
+ }
4011
+ }
4012
+ return msg;
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * Serializes the message to binary data (in protobuf wire format).
4018
+ * @return {!Uint8Array}
4019
+ */
4020
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.serializeBinary = function() {
4021
+ var writer = new jspb.BinaryWriter();
4022
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.serializeBinaryToWriter(this, writer);
4023
+ return writer.getResultBuffer();
4024
+ };
4025
+
4026
+
4027
+ /**
4028
+ * Serializes the given message to binary data (in protobuf wire
4029
+ * format), writing to the given BinaryWriter.
4030
+ * @param {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} message
4031
+ * @param {!jspb.BinaryWriter} writer
4032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4033
+ */
4034
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.serializeBinaryToWriter = function(message, writer) {
4035
+ var f = undefined;
4036
+ f = message.getDescription();
4037
+ if (f.length > 0) {
4038
+ writer.writeString(
4039
+ 1,
4040
+ f
4041
+ );
4042
+ }
4043
+ f = message.getDefault();
4044
+ if (f.length > 0) {
4045
+ writer.writeString(
4046
+ 2,
4047
+ f
4048
+ );
4049
+ }
4050
+ f = message.getTitle();
4051
+ if (f.length > 0) {
4052
+ writer.writeString(
4053
+ 3,
4054
+ f
4055
+ );
4056
+ }
4057
+ f = message.getRequired();
4058
+ if (f) {
4059
+ writer.writeBool(
4060
+ 4,
4061
+ f
4062
+ );
4063
+ }
4064
+ f = message.getReadOnly();
4065
+ if (f) {
4066
+ writer.writeBool(
4067
+ 5,
4068
+ f
4069
+ );
4070
+ }
4071
+ f = message.getExternalDocs();
4072
+ if (f != null) {
4073
+ writer.writeMessage(
4074
+ 6,
4075
+ f,
4076
+ proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.serializeBinaryToWriter
4077
+ );
4078
+ }
4079
+ f = message.getExample();
4080
+ if (f.length > 0) {
4081
+ writer.writeString(
4082
+ 7,
4083
+ f
4084
+ );
4085
+ }
4086
+ f = message.getRef();
4087
+ if (f.length > 0) {
4088
+ writer.writeString(
4089
+ 8,
4090
+ f
4091
+ );
4092
+ }
4093
+ f = message.getExtensionsMap(true);
4094
+ if (f && f.getLength() > 0) {
4095
+ f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
4096
+ }
4097
+ };
4098
+
4099
+
4100
+ /**
4101
+ * optional string description = 1;
4102
+ * @return {string}
4103
+ */
4104
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getDescription = function() {
4105
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4106
+ };
4107
+
4108
+
4109
+ /**
4110
+ * @param {string} value
4111
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4112
+ */
4113
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setDescription = function(value) {
4114
+ return jspb.Message.setProto3StringField(this, 1, value);
4115
+ };
4116
+
4117
+
4118
+ /**
4119
+ * optional string default = 2;
4120
+ * @return {string}
4121
+ */
4122
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getDefault = function() {
4123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4124
+ };
4125
+
4126
+
4127
+ /**
4128
+ * @param {string} value
4129
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4130
+ */
4131
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setDefault = function(value) {
4132
+ return jspb.Message.setProto3StringField(this, 2, value);
4133
+ };
4134
+
4135
+
4136
+ /**
4137
+ * optional string title = 3;
4138
+ * @return {string}
4139
+ */
4140
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getTitle = function() {
4141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4142
+ };
4143
+
4144
+
4145
+ /**
4146
+ * @param {string} value
4147
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4148
+ */
4149
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setTitle = function(value) {
4150
+ return jspb.Message.setProto3StringField(this, 3, value);
4151
+ };
4152
+
4153
+
4154
+ /**
4155
+ * optional bool required = 4;
4156
+ * @return {boolean}
4157
+ */
4158
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getRequired = function() {
4159
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
4160
+ };
4161
+
4162
+
4163
+ /**
4164
+ * @param {boolean} value
4165
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4166
+ */
4167
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setRequired = function(value) {
4168
+ return jspb.Message.setProto3BooleanField(this, 4, value);
4169
+ };
4170
+
4171
+
4172
+ /**
4173
+ * optional bool read_only = 5;
4174
+ * @return {boolean}
4175
+ */
4176
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getReadOnly = function() {
4177
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
4178
+ };
4179
+
4180
+
4181
+ /**
4182
+ * @param {boolean} value
4183
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4184
+ */
4185
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setReadOnly = function(value) {
4186
+ return jspb.Message.setProto3BooleanField(this, 5, value);
4187
+ };
4188
+
4189
+
4190
+ /**
4191
+ * optional ExternalDocumentation external_docs = 6;
4192
+ * @return {?proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation}
4193
+ */
4194
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getExternalDocs = function() {
4195
+ return /** @type{?proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation} */ (
4196
+ jspb.Message.getWrapperField(this, proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation, 6));
4197
+ };
4198
+
4199
+
4200
+ /**
4201
+ * @param {?proto.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation|undefined} value
4202
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4203
+ */
4204
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setExternalDocs = function(value) {
4205
+ return jspb.Message.setWrapperField(this, 6, value);
4206
+ };
4207
+
4208
+
4209
+ /**
4210
+ * Clears the message field making it undefined.
4211
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4212
+ */
4213
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.clearExternalDocs = function() {
4214
+ return this.setExternalDocs(undefined);
4215
+ };
4216
+
4217
+
4218
+ /**
4219
+ * Returns whether this field is set.
4220
+ * @return {boolean}
4221
+ */
4222
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.hasExternalDocs = function() {
4223
+ return jspb.Message.getField(this, 6) != null;
4224
+ };
4225
+
4226
+
4227
+ /**
4228
+ * optional string example = 7;
4229
+ * @return {string}
4230
+ */
4231
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getExample = function() {
4232
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4233
+ };
4234
+
4235
+
4236
+ /**
4237
+ * @param {string} value
4238
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4239
+ */
4240
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setExample = function(value) {
4241
+ return jspb.Message.setProto3StringField(this, 7, value);
4242
+ };
4243
+
4244
+
4245
+ /**
4246
+ * optional string ref = 8;
4247
+ * @return {string}
4248
+ */
4249
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getRef = function() {
4250
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4251
+ };
4252
+
4253
+
4254
+ /**
4255
+ * @param {string} value
4256
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4257
+ */
4258
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.setRef = function(value) {
4259
+ return jspb.Message.setProto3StringField(this, 8, value);
4260
+ };
4261
+
4262
+
4263
+ /**
4264
+ * map<string, google.protobuf.Value> extensions = 9;
4265
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
4266
+ * empty, instead returning `undefined`
4267
+ * @return {!jspb.Map<string,!proto.google.protobuf.Value>}
4268
+ */
4269
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.getExtensionsMap = function(opt_noLazyCreate) {
4270
+ return /** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */ (
4271
+ jspb.Message.getMapField(this, 9, opt_noLazyCreate,
4272
+ proto.google.protobuf.Value));
4273
+ };
4274
+
4275
+
4276
+ /**
4277
+ * Clears values from the map. The map will be non-null.
4278
+ * @return {!proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema} returns this
4279
+ */
4280
+ proto.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.prototype.clearExtensionsMap = function() {
4281
+ this.getExtensionsMap().clear();
4282
+ return this;};
4283
+
4284
+
4285
+
3870
4286
  /**
3871
4287
  * List of repeated fields within this message type.
3872
4288
  * @private {!Array<number>}
@@ -140,6 +140,11 @@ export class RoomAddRequest extends jspb.Message {
140
140
  getInviteOnly(): boolean;
141
141
  setInviteOnly(value: boolean): void;
142
142
 
143
+ clearQuoteIdsList(): void;
144
+ getQuoteIdsList(): Array<string>;
145
+ setQuoteIdsList(value: Array<string>): void;
146
+ addQuoteIds(value: string, index?: number): string;
147
+
143
148
  serializeBinary(): Uint8Array;
144
149
  toObject(includeInstance?: boolean): RoomAddRequest.AsObject;
145
150
  static toObject(includeInstance: boolean, msg: RoomAddRequest): RoomAddRequest.AsObject;
@@ -155,6 +160,7 @@ export namespace RoomAddRequest {
155
160
  id: string,
156
161
  contactId: string,
157
162
  inviteOnly: boolean,
163
+ quoteIdsList: Array<string>,
158
164
  }
159
165
  }
160
166
 
@@ -148,7 +148,7 @@ if (goog.DEBUG && !COMPILED) {
148
148
  * @constructor
149
149
  */
150
150
  proto.wechaty.puppet.RoomAddRequest = function(opt_data) {
151
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
151
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAddRequest.repeatedFields_, null);
152
152
  };
153
153
  goog.inherits(proto.wechaty.puppet.RoomAddRequest, jspb.Message);
154
154
  if (goog.DEBUG && !COMPILED) {
@@ -1609,6 +1609,13 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
1609
1609
 
1610
1610
 
1611
1611
 
1612
+ /**
1613
+ * List of repeated fields within this message type.
1614
+ * @private {!Array<number>}
1615
+ * @const
1616
+ */
1617
+ proto.wechaty.puppet.RoomAddRequest.repeatedFields_ = [4];
1618
+
1612
1619
 
1613
1620
 
1614
1621
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1642,7 +1649,8 @@ proto.wechaty.puppet.RoomAddRequest.toObject = function(includeInstance, msg) {
1642
1649
  var f, obj = {
1643
1650
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1644
1651
  contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1645
- inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1652
+ inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1653
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
1646
1654
  };
1647
1655
 
1648
1656
  if (includeInstance) {
@@ -1691,6 +1699,10 @@ proto.wechaty.puppet.RoomAddRequest.deserializeBinaryFromReader = function(msg,
1691
1699
  var value = /** @type {boolean} */ (reader.readBool());
1692
1700
  msg.setInviteOnly(value);
1693
1701
  break;
1702
+ case 4:
1703
+ var value = /** @type {string} */ (reader.readString());
1704
+ msg.addQuoteIds(value);
1705
+ break;
1694
1706
  default:
1695
1707
  reader.skipField();
1696
1708
  break;
@@ -1741,6 +1753,13 @@ proto.wechaty.puppet.RoomAddRequest.serializeBinaryToWriter = function(message,
1741
1753
  f
1742
1754
  );
1743
1755
  }
1756
+ f = message.getQuoteIdsList();
1757
+ if (f.length > 0) {
1758
+ writer.writeRepeatedString(
1759
+ 4,
1760
+ f
1761
+ );
1762
+ }
1744
1763
  };
1745
1764
 
1746
1765
 
@@ -1798,6 +1817,43 @@ proto.wechaty.puppet.RoomAddRequest.prototype.setInviteOnly = function(value) {
1798
1817
  };
1799
1818
 
1800
1819
 
1820
+ /**
1821
+ * repeated string quote_ids = 4;
1822
+ * @return {!Array<string>}
1823
+ */
1824
+ proto.wechaty.puppet.RoomAddRequest.prototype.getQuoteIdsList = function() {
1825
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1826
+ };
1827
+
1828
+
1829
+ /**
1830
+ * @param {!Array<string>} value
1831
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1832
+ */
1833
+ proto.wechaty.puppet.RoomAddRequest.prototype.setQuoteIdsList = function(value) {
1834
+ return jspb.Message.setField(this, 4, value || []);
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * @param {string} value
1840
+ * @param {number=} opt_index
1841
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1842
+ */
1843
+ proto.wechaty.puppet.RoomAddRequest.prototype.addQuoteIds = function(value, opt_index) {
1844
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Clears the list making it empty but non-null.
1850
+ * @return {!proto.wechaty.puppet.RoomAddRequest} returns this
1851
+ */
1852
+ proto.wechaty.puppet.RoomAddRequest.prototype.clearQuoteIdsList = function() {
1853
+ return this.setQuoteIdsList([]);
1854
+ };
1855
+
1856
+
1801
1857
 
1802
1858
 
1803
1859
 
@@ -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.89
12
+ version: 1.0.90
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1712,6 +1712,14 @@ paths:
1712
1712
  in: query
1713
1713
  required: false
1714
1714
  type: boolean
1715
+ - name: quoteIds
1716
+ description: 要附带的聊天消息 id 列表
1717
+ in: query
1718
+ required: false
1719
+ type: array
1720
+ items:
1721
+ type: string
1722
+ collectionFormat: multi
1715
1723
  tags:
1716
1724
  - Puppet
1717
1725
  /rooms/{id}/announcement: