@juzi/wechaty-grpc 1.0.61 → 1.0.62
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/base_pb.d.ts +32 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +59 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +55 -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/base.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +10 -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/base_pb.d.ts +32 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +59 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +55 -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/base.proto +6 -0
- package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +10 -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/base_pb.d.ts +32 -0
- package/out/wechaty/puppet/base_pb.js +246 -0
- package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
- package/out/wechaty/puppet/verify-code_pb.js +275 -0
- package/out/wechaty/puppet.openapi.yaml +38 -1
- package/out/wechaty/puppet.swagger.json +59 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +55 -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
|
@@ -24,6 +24,8 @@ goog.exportSymbol('proto.wechaty.puppet.DirtyPayloadResponse', null, global);
|
|
|
24
24
|
goog.exportSymbol('proto.wechaty.puppet.LogoutRequest', null, global);
|
|
25
25
|
goog.exportSymbol('proto.wechaty.puppet.LogoutResponse', null, global);
|
|
26
26
|
goog.exportSymbol('proto.wechaty.puppet.PayloadType', null, global);
|
|
27
|
+
goog.exportSymbol('proto.wechaty.puppet.RefreshQRCodeRequest', null, global);
|
|
28
|
+
goog.exportSymbol('proto.wechaty.puppet.RefreshQRCodeResponse', null, global);
|
|
27
29
|
goog.exportSymbol('proto.wechaty.puppet.StartRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.wechaty.puppet.StartResponse', null, global);
|
|
29
31
|
goog.exportSymbol('proto.wechaty.puppet.StopRequest', null, global);
|
|
@@ -324,6 +326,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
324
326
|
*/
|
|
325
327
|
proto.wechaty.puppet.CurrentUserResponse.displayName = 'proto.wechaty.puppet.CurrentUserResponse';
|
|
326
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Generated by JsPbCodeGenerator.
|
|
331
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
332
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
333
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
334
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
335
|
+
* valid.
|
|
336
|
+
* @extends {jspb.Message}
|
|
337
|
+
* @constructor
|
|
338
|
+
*/
|
|
339
|
+
proto.wechaty.puppet.RefreshQRCodeRequest = function(opt_data) {
|
|
340
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
341
|
+
};
|
|
342
|
+
goog.inherits(proto.wechaty.puppet.RefreshQRCodeRequest, jspb.Message);
|
|
343
|
+
if (goog.DEBUG && !COMPILED) {
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
* @override
|
|
347
|
+
*/
|
|
348
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.displayName = 'proto.wechaty.puppet.RefreshQRCodeRequest';
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Generated by JsPbCodeGenerator.
|
|
352
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
353
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
354
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
355
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
356
|
+
* valid.
|
|
357
|
+
* @extends {jspb.Message}
|
|
358
|
+
* @constructor
|
|
359
|
+
*/
|
|
360
|
+
proto.wechaty.puppet.RefreshQRCodeResponse = function(opt_data) {
|
|
361
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
362
|
+
};
|
|
363
|
+
goog.inherits(proto.wechaty.puppet.RefreshQRCodeResponse, jspb.Message);
|
|
364
|
+
if (goog.DEBUG && !COMPILED) {
|
|
365
|
+
/**
|
|
366
|
+
* @public
|
|
367
|
+
* @override
|
|
368
|
+
*/
|
|
369
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.displayName = 'proto.wechaty.puppet.RefreshQRCodeResponse';
|
|
370
|
+
}
|
|
327
371
|
|
|
328
372
|
|
|
329
373
|
|
|
@@ -1884,6 +1928,208 @@ proto.wechaty.puppet.CurrentUserResponse.prototype.setUserId = function(value) {
|
|
|
1884
1928
|
};
|
|
1885
1929
|
|
|
1886
1930
|
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1935
|
+
/**
|
|
1936
|
+
* Creates an object representation of this proto.
|
|
1937
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1938
|
+
* Optional fields that are not set will be set to undefined.
|
|
1939
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1940
|
+
* For the list of reserved names please see:
|
|
1941
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1942
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1943
|
+
* JSPB instance for transitional soy proto support:
|
|
1944
|
+
* http://goto/soy-param-migration
|
|
1945
|
+
* @return {!Object}
|
|
1946
|
+
*/
|
|
1947
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1948
|
+
return proto.wechaty.puppet.RefreshQRCodeRequest.toObject(opt_includeInstance, this);
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Static version of the {@see toObject} method.
|
|
1954
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1955
|
+
* the JSPB instance for transitional soy proto support:
|
|
1956
|
+
* http://goto/soy-param-migration
|
|
1957
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeRequest} msg The msg instance to transform.
|
|
1958
|
+
* @return {!Object}
|
|
1959
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1960
|
+
*/
|
|
1961
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.toObject = function(includeInstance, msg) {
|
|
1962
|
+
var f, obj = {
|
|
1963
|
+
|
|
1964
|
+
};
|
|
1965
|
+
|
|
1966
|
+
if (includeInstance) {
|
|
1967
|
+
obj.$jspbMessageInstance = msg;
|
|
1968
|
+
}
|
|
1969
|
+
return obj;
|
|
1970
|
+
};
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1976
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1977
|
+
* @return {!proto.wechaty.puppet.RefreshQRCodeRequest}
|
|
1978
|
+
*/
|
|
1979
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinary = function(bytes) {
|
|
1980
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1981
|
+
var msg = new proto.wechaty.puppet.RefreshQRCodeRequest;
|
|
1982
|
+
return proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1988
|
+
* given reader into the given message object.
|
|
1989
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeRequest} msg The message object to deserialize into.
|
|
1990
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1991
|
+
* @return {!proto.wechaty.puppet.RefreshQRCodeRequest}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1994
|
+
while (reader.nextField()) {
|
|
1995
|
+
if (reader.isEndGroup()) {
|
|
1996
|
+
break;
|
|
1997
|
+
}
|
|
1998
|
+
var field = reader.getFieldNumber();
|
|
1999
|
+
switch (field) {
|
|
2000
|
+
default:
|
|
2001
|
+
reader.skipField();
|
|
2002
|
+
break;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
return msg;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2011
|
+
* @return {!Uint8Array}
|
|
2012
|
+
*/
|
|
2013
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.prototype.serializeBinary = function() {
|
|
2014
|
+
var writer = new jspb.BinaryWriter();
|
|
2015
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.serializeBinaryToWriter(this, writer);
|
|
2016
|
+
return writer.getResultBuffer();
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2022
|
+
* format), writing to the given BinaryWriter.
|
|
2023
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeRequest} message
|
|
2024
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2025
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2026
|
+
*/
|
|
2027
|
+
proto.wechaty.puppet.RefreshQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2028
|
+
var f = undefined;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2036
|
+
/**
|
|
2037
|
+
* Creates an object representation of this proto.
|
|
2038
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2039
|
+
* Optional fields that are not set will be set to undefined.
|
|
2040
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2041
|
+
* For the list of reserved names please see:
|
|
2042
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2043
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2044
|
+
* JSPB instance for transitional soy proto support:
|
|
2045
|
+
* http://goto/soy-param-migration
|
|
2046
|
+
* @return {!Object}
|
|
2047
|
+
*/
|
|
2048
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2049
|
+
return proto.wechaty.puppet.RefreshQRCodeResponse.toObject(opt_includeInstance, this);
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Static version of the {@see toObject} method.
|
|
2055
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2056
|
+
* the JSPB instance for transitional soy proto support:
|
|
2057
|
+
* http://goto/soy-param-migration
|
|
2058
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeResponse} msg The msg instance to transform.
|
|
2059
|
+
* @return {!Object}
|
|
2060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2061
|
+
*/
|
|
2062
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.toObject = function(includeInstance, msg) {
|
|
2063
|
+
var f, obj = {
|
|
2064
|
+
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
if (includeInstance) {
|
|
2068
|
+
obj.$jspbMessageInstance = msg;
|
|
2069
|
+
}
|
|
2070
|
+
return obj;
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
/**
|
|
2076
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2077
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2078
|
+
* @return {!proto.wechaty.puppet.RefreshQRCodeResponse}
|
|
2079
|
+
*/
|
|
2080
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinary = function(bytes) {
|
|
2081
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2082
|
+
var msg = new proto.wechaty.puppet.RefreshQRCodeResponse;
|
|
2083
|
+
return proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2089
|
+
* given reader into the given message object.
|
|
2090
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeResponse} msg The message object to deserialize into.
|
|
2091
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2092
|
+
* @return {!proto.wechaty.puppet.RefreshQRCodeResponse}
|
|
2093
|
+
*/
|
|
2094
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2095
|
+
while (reader.nextField()) {
|
|
2096
|
+
if (reader.isEndGroup()) {
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
var field = reader.getFieldNumber();
|
|
2100
|
+
switch (field) {
|
|
2101
|
+
default:
|
|
2102
|
+
reader.skipField();
|
|
2103
|
+
break;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
return msg;
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
/**
|
|
2111
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2112
|
+
* @return {!Uint8Array}
|
|
2113
|
+
*/
|
|
2114
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.prototype.serializeBinary = function() {
|
|
2115
|
+
var writer = new jspb.BinaryWriter();
|
|
2116
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.serializeBinaryToWriter(this, writer);
|
|
2117
|
+
return writer.getResultBuffer();
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2123
|
+
* format), writing to the given BinaryWriter.
|
|
2124
|
+
* @param {!proto.wechaty.puppet.RefreshQRCodeResponse} message
|
|
2125
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2126
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2127
|
+
*/
|
|
2128
|
+
proto.wechaty.puppet.RefreshQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2129
|
+
var f = undefined;
|
|
2130
|
+
};
|
|
2131
|
+
|
|
2132
|
+
|
|
1887
2133
|
/**
|
|
1888
2134
|
* @enum {number}
|
|
1889
2135
|
*/
|
|
@@ -43,3 +43,39 @@ export namespace EnterVerifyCodeResponse {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
export class CancelVerifyCodeRequest extends jspb.Message {
|
|
47
|
+
getId(): string;
|
|
48
|
+
setId(value: string): void;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeRequest.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeRequest): CancelVerifyCodeRequest.AsObject;
|
|
53
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
54
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
55
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeRequest, writer: jspb.BinaryWriter): void;
|
|
56
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeRequest;
|
|
57
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeRequest, reader: jspb.BinaryReader): CancelVerifyCodeRequest;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace CancelVerifyCodeRequest {
|
|
61
|
+
export type AsObject = {
|
|
62
|
+
id: string,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class CancelVerifyCodeResponse extends jspb.Message {
|
|
67
|
+
serializeBinary(): Uint8Array;
|
|
68
|
+
toObject(includeInstance?: boolean): CancelVerifyCodeResponse.AsObject;
|
|
69
|
+
static toObject(includeInstance: boolean, msg: CancelVerifyCodeResponse): CancelVerifyCodeResponse.AsObject;
|
|
70
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
71
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
72
|
+
static serializeBinaryToWriter(message: CancelVerifyCodeResponse, writer: jspb.BinaryWriter): void;
|
|
73
|
+
static deserializeBinary(bytes: Uint8Array): CancelVerifyCodeResponse;
|
|
74
|
+
static deserializeBinaryFromReader(message: CancelVerifyCodeResponse, reader: jspb.BinaryReader): CancelVerifyCodeResponse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace CancelVerifyCodeResponse {
|
|
78
|
+
export type AsObject = {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
|
|
17
17
|
|
|
18
|
+
goog.exportSymbol('proto.wechaty.puppet.CancelVerifyCodeRequest', null, global);
|
|
19
|
+
goog.exportSymbol('proto.wechaty.puppet.CancelVerifyCodeResponse', null, global);
|
|
18
20
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeRequest', null, global);
|
|
19
21
|
goog.exportSymbol('proto.wechaty.puppet.EnterVerifyCodeResponse', null, global);
|
|
20
22
|
/**
|
|
@@ -59,6 +61,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
59
61
|
*/
|
|
60
62
|
proto.wechaty.puppet.EnterVerifyCodeResponse.displayName = 'proto.wechaty.puppet.EnterVerifyCodeResponse';
|
|
61
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Generated by JsPbCodeGenerator.
|
|
66
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
67
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
68
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
69
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
70
|
+
* valid.
|
|
71
|
+
* @extends {jspb.Message}
|
|
72
|
+
* @constructor
|
|
73
|
+
*/
|
|
74
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest = function(opt_data) {
|
|
75
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
76
|
+
};
|
|
77
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeRequest, jspb.Message);
|
|
78
|
+
if (goog.DEBUG && !COMPILED) {
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @override
|
|
82
|
+
*/
|
|
83
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.displayName = 'proto.wechaty.puppet.CancelVerifyCodeRequest';
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Generated by JsPbCodeGenerator.
|
|
87
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
88
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
89
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
90
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
91
|
+
* valid.
|
|
92
|
+
* @extends {jspb.Message}
|
|
93
|
+
* @constructor
|
|
94
|
+
*/
|
|
95
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse = function(opt_data) {
|
|
96
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
97
|
+
};
|
|
98
|
+
goog.inherits(proto.wechaty.puppet.CancelVerifyCodeResponse, jspb.Message);
|
|
99
|
+
if (goog.DEBUG && !COMPILED) {
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* @override
|
|
103
|
+
*/
|
|
104
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.displayName = 'proto.wechaty.puppet.CancelVerifyCodeResponse';
|
|
105
|
+
}
|
|
62
106
|
|
|
63
107
|
|
|
64
108
|
|
|
@@ -320,4 +364,235 @@ proto.wechaty.puppet.EnterVerifyCodeResponse.serializeBinaryToWriter = function(
|
|
|
320
364
|
};
|
|
321
365
|
|
|
322
366
|
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
371
|
+
/**
|
|
372
|
+
* Creates an object representation of this proto.
|
|
373
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
374
|
+
* Optional fields that are not set will be set to undefined.
|
|
375
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
376
|
+
* For the list of reserved names please see:
|
|
377
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
378
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
379
|
+
* JSPB instance for transitional soy proto support:
|
|
380
|
+
* http://goto/soy-param-migration
|
|
381
|
+
* @return {!Object}
|
|
382
|
+
*/
|
|
383
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
384
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.toObject(opt_includeInstance, this);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Static version of the {@see toObject} method.
|
|
390
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
391
|
+
* the JSPB instance for transitional soy proto support:
|
|
392
|
+
* http://goto/soy-param-migration
|
|
393
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The msg instance to transform.
|
|
394
|
+
* @return {!Object}
|
|
395
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
396
|
+
*/
|
|
397
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.toObject = function(includeInstance, msg) {
|
|
398
|
+
var f, obj = {
|
|
399
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
if (includeInstance) {
|
|
403
|
+
obj.$jspbMessageInstance = msg;
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Deserializes binary data (in protobuf wire format).
|
|
412
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
413
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
414
|
+
*/
|
|
415
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinary = function(bytes) {
|
|
416
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
417
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeRequest;
|
|
418
|
+
return proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader(msg, reader);
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
424
|
+
* given reader into the given message object.
|
|
425
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} msg The message object to deserialize into.
|
|
426
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
427
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest}
|
|
428
|
+
*/
|
|
429
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
430
|
+
while (reader.nextField()) {
|
|
431
|
+
if (reader.isEndGroup()) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
var field = reader.getFieldNumber();
|
|
435
|
+
switch (field) {
|
|
436
|
+
case 1:
|
|
437
|
+
var value = /** @type {string} */ (reader.readString());
|
|
438
|
+
msg.setId(value);
|
|
439
|
+
break;
|
|
440
|
+
default:
|
|
441
|
+
reader.skipField();
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return msg;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
451
|
+
* @return {!Uint8Array}
|
|
452
|
+
*/
|
|
453
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.serializeBinary = function() {
|
|
454
|
+
var writer = new jspb.BinaryWriter();
|
|
455
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter(this, writer);
|
|
456
|
+
return writer.getResultBuffer();
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
462
|
+
* format), writing to the given BinaryWriter.
|
|
463
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeRequest} message
|
|
464
|
+
* @param {!jspb.BinaryWriter} writer
|
|
465
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
466
|
+
*/
|
|
467
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
468
|
+
var f = undefined;
|
|
469
|
+
f = message.getId();
|
|
470
|
+
if (f.length > 0) {
|
|
471
|
+
writer.writeString(
|
|
472
|
+
1,
|
|
473
|
+
f
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* optional string id = 1;
|
|
481
|
+
* @return {string}
|
|
482
|
+
*/
|
|
483
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.getId = function() {
|
|
484
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @param {string} value
|
|
490
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeRequest} returns this
|
|
491
|
+
*/
|
|
492
|
+
proto.wechaty.puppet.CancelVerifyCodeRequest.prototype.setId = function(value) {
|
|
493
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
501
|
+
/**
|
|
502
|
+
* Creates an object representation of this proto.
|
|
503
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
504
|
+
* Optional fields that are not set will be set to undefined.
|
|
505
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
506
|
+
* For the list of reserved names please see:
|
|
507
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
508
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
509
|
+
* JSPB instance for transitional soy proto support:
|
|
510
|
+
* http://goto/soy-param-migration
|
|
511
|
+
* @return {!Object}
|
|
512
|
+
*/
|
|
513
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
514
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.toObject(opt_includeInstance, this);
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Static version of the {@see toObject} method.
|
|
520
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
521
|
+
* the JSPB instance for transitional soy proto support:
|
|
522
|
+
* http://goto/soy-param-migration
|
|
523
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The msg instance to transform.
|
|
524
|
+
* @return {!Object}
|
|
525
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
526
|
+
*/
|
|
527
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.toObject = function(includeInstance, msg) {
|
|
528
|
+
var f, obj = {
|
|
529
|
+
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
if (includeInstance) {
|
|
533
|
+
obj.$jspbMessageInstance = msg;
|
|
534
|
+
}
|
|
535
|
+
return obj;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Deserializes binary data (in protobuf wire format).
|
|
542
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
543
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
544
|
+
*/
|
|
545
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinary = function(bytes) {
|
|
546
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
547
|
+
var msg = new proto.wechaty.puppet.CancelVerifyCodeResponse;
|
|
548
|
+
return proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader(msg, reader);
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
554
|
+
* given reader into the given message object.
|
|
555
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} msg The message object to deserialize into.
|
|
556
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
557
|
+
* @return {!proto.wechaty.puppet.CancelVerifyCodeResponse}
|
|
558
|
+
*/
|
|
559
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
560
|
+
while (reader.nextField()) {
|
|
561
|
+
if (reader.isEndGroup()) {
|
|
562
|
+
break;
|
|
563
|
+
}
|
|
564
|
+
var field = reader.getFieldNumber();
|
|
565
|
+
switch (field) {
|
|
566
|
+
default:
|
|
567
|
+
reader.skipField();
|
|
568
|
+
break;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
return msg;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
577
|
+
* @return {!Uint8Array}
|
|
578
|
+
*/
|
|
579
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.prototype.serializeBinary = function() {
|
|
580
|
+
var writer = new jspb.BinaryWriter();
|
|
581
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter(this, writer);
|
|
582
|
+
return writer.getResultBuffer();
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
588
|
+
* format), writing to the given BinaryWriter.
|
|
589
|
+
* @param {!proto.wechaty.puppet.CancelVerifyCodeResponse} message
|
|
590
|
+
* @param {!jspb.BinaryWriter} writer
|
|
591
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
592
|
+
*/
|
|
593
|
+
proto.wechaty.puppet.CancelVerifyCodeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
594
|
+
var f = undefined;
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
|
|
323
598
|
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.62
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -24,6 +24,25 @@ consumes:
|
|
|
24
24
|
produces:
|
|
25
25
|
- application/json
|
|
26
26
|
paths:
|
|
27
|
+
/cancel_verify_code:
|
|
28
|
+
post:
|
|
29
|
+
operationId: Puppet_CancelVerifyCode
|
|
30
|
+
responses:
|
|
31
|
+
'200':
|
|
32
|
+
description: A successful response.
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/definitions/puppetCancelVerifyCodeResponse'
|
|
35
|
+
default:
|
|
36
|
+
description: An unexpected error response.
|
|
37
|
+
schema:
|
|
38
|
+
$ref: '#/definitions/rpcStatus'
|
|
39
|
+
parameters:
|
|
40
|
+
- name: id
|
|
41
|
+
in: query
|
|
42
|
+
required: false
|
|
43
|
+
type: string
|
|
44
|
+
tags:
|
|
45
|
+
- Puppet
|
|
27
46
|
'/contact/room/{roomId}/alias/{alias}':
|
|
28
47
|
put:
|
|
29
48
|
operationId: Puppet_ContactSelfRoomAlias
|
|
@@ -1440,6 +1459,20 @@ paths:
|
|
|
1440
1459
|
$ref: '#/definitions/puppetPostPayloadSayableRequest'
|
|
1441
1460
|
tags:
|
|
1442
1461
|
- Puppet
|
|
1462
|
+
/refresh_qr_code:
|
|
1463
|
+
post:
|
|
1464
|
+
operationId: Puppet_RefreshQRCode
|
|
1465
|
+
responses:
|
|
1466
|
+
'200':
|
|
1467
|
+
description: A successful response.
|
|
1468
|
+
schema:
|
|
1469
|
+
$ref: '#/definitions/puppetRefreshQRCodeRequest'
|
|
1470
|
+
default:
|
|
1471
|
+
description: An unexpected error response.
|
|
1472
|
+
schema:
|
|
1473
|
+
$ref: '#/definitions/rpcStatus'
|
|
1474
|
+
tags:
|
|
1475
|
+
- Puppet
|
|
1443
1476
|
'/room-invitations/{id}':
|
|
1444
1477
|
get:
|
|
1445
1478
|
summary: '*'
|
|
@@ -2395,6 +2428,8 @@ definitions:
|
|
|
2395
2428
|
- BROADCAST_TARGET_STATUS_NOT_FRIEND
|
|
2396
2429
|
- BROADCAST_TARGET_STATUS_OCCUPIED
|
|
2397
2430
|
default: BROADCAST_TARGET_STATUS_UNSENT
|
|
2431
|
+
puppetCancelVerifyCodeResponse:
|
|
2432
|
+
type: object
|
|
2398
2433
|
puppetChannelPayload:
|
|
2399
2434
|
type: object
|
|
2400
2435
|
properties:
|
|
@@ -3341,6 +3376,8 @@ definitions:
|
|
|
3341
3376
|
"Referrer" and "Referral" refers to different things. "Referrer" is
|
|
3342
3377
|
something or somebody who refers. "Referral" is the act of referring.
|
|
3343
3378
|
- https://english.stackexchange.com/questions/33135/referrer-versus-referral-versus-referer
|
|
3379
|
+
puppetRefreshQRCodeRequest:
|
|
3380
|
+
type: object
|
|
3344
3381
|
puppetRoomAddResponse:
|
|
3345
3382
|
type: object
|
|
3346
3383
|
puppetRoomAnnounceResponse:
|