@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.
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +9 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +12 -1
- package/dist/cjs/proto/wechaty/puppet/room.proto +1 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +9 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +12 -1
- package/dist/esm/proto/wechaty/puppet/room.proto +1 -0
- package/dist/esm/src/package-json.js +1 -1
- package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +2 -0
- package/out/protoc-gen-openapiv2/options/annotations_pb.js +26 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +53 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +416 -0
- package/out/wechaty/puppet/room_pb.d.ts +6 -0
- package/out/wechaty/puppet/room_pb.js +58 -2
- package/out/wechaty/puppet.openapi.yaml +9 -1
- package/out/wechaty/puppet.swagger.json +12 -1
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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,
|
|
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.
|
|
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:
|
|
@@ -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.90",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -2559,6 +2559,17 @@
|
|
|
2559
2559
|
"in": "query",
|
|
2560
2560
|
"required": false,
|
|
2561
2561
|
"type": "boolean"
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
"name": "quoteIds",
|
|
2565
|
+
"description": "要附带的聊天消息 id 列表",
|
|
2566
|
+
"in": "query",
|
|
2567
|
+
"required": false,
|
|
2568
|
+
"type": "array",
|
|
2569
|
+
"items": {
|
|
2570
|
+
"type": "string"
|
|
2571
|
+
},
|
|
2572
|
+
"collectionFormat": "multi"
|
|
2562
2573
|
}
|
|
2563
2574
|
],
|
|
2564
2575
|
"tags": [
|
|
@@ -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;
|