@juzi/wechaty-grpc 1.0.42 → 1.0.43
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/commonjs/generated/puppet.cjs +0 -2
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +1 -142
- package/dist/cjs/out/wechaty/puppet.swagger.json +1 -194
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +0 -102
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +0 -34
- package/dist/cjs/out/wechaty/puppet_pb_service.js +0 -147
- package/dist/cjs/proto/wechaty/puppet.proto +0 -9
- 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 +0 -13
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +0 -2
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/esm/out/wechaty/puppet.openapi.yaml +1 -142
- package/dist/esm/out/wechaty/puppet.swagger.json +1 -194
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +0 -102
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +0 -34
- package/dist/esm/out/wechaty/puppet_pb_service.js +0 -147
- package/dist/esm/proto/wechaty/puppet.proto +0 -9
- 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 +0 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet.openapi.yaml +1 -142
- package/out/wechaty/puppet.swagger.json +1 -194
- package/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/out/wechaty/puppet_grpc_pb.js +0 -102
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +0 -34
- package/out/wechaty/puppet_pb_service.js +0 -147
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
- package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
- package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
- package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/out/wechaty/deprecated/file-box_pb_service.js +0 -3
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Huan(202110): Deprecated
|
|
3
|
-
* - use Puppet.Download / Puppet.Upload
|
|
4
|
-
* - use DownloadResponse & UploadRequest to streaming chunks
|
|
5
|
-
*
|
|
6
|
-
* This file will be removed after Dec 31, 2022
|
|
7
|
-
*/
|
|
8
|
-
syntax = "proto3";
|
|
9
|
-
package wechaty.puppet;
|
|
10
|
-
|
|
11
|
-
option go_package = "github.com/wechaty/go-grpc/wechaty/puppet";
|
|
12
|
-
option csharp_namespace = "github.wechaty.grpc.puppet";
|
|
13
|
-
|
|
14
|
-
import "google/protobuf/wrappers.proto";
|
|
15
|
-
import "wechaty/puppet/image.proto";
|
|
16
|
-
|
|
17
|
-
message FileBoxChunk {
|
|
18
|
-
/**
|
|
19
|
-
* Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
20
|
-
* to be confirmed.
|
|
21
|
-
*/
|
|
22
|
-
// oneof payload {
|
|
23
|
-
optional bytes data = 1;
|
|
24
|
-
optional string name = 2;
|
|
25
|
-
// }
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message MessageImageStreamRequest {
|
|
29
|
-
string id = 1;
|
|
30
|
-
ImageType type = 2;
|
|
31
|
-
}
|
|
32
|
-
message MessageImageStreamResponse {
|
|
33
|
-
FileBoxChunk file_box_chunk = 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
message MessageFileStreamRequest {
|
|
37
|
-
string id = 1;
|
|
38
|
-
}
|
|
39
|
-
message MessageFileStreamResponse {
|
|
40
|
-
FileBoxChunk file_box_chunk = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message MessageSendFileStreamRequest {
|
|
44
|
-
/**
|
|
45
|
-
* Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
46
|
-
* to be confirmed.
|
|
47
|
-
*/
|
|
48
|
-
// oneof payload {
|
|
49
|
-
optional string conversation_id = 1;
|
|
50
|
-
optional FileBoxChunk file_box_chunk = 2;
|
|
51
|
-
// };
|
|
52
|
-
}
|
|
53
|
-
message MessageSendFileStreamResponse {
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated:
|
|
56
|
-
* Huan(202109): Wrapper types must not be used going forward.
|
|
57
|
-
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
58
|
-
*/
|
|
59
|
-
google.protobuf.StringValue id_string_value_deprecated = 1 [deprecated = true]; // Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
60
|
-
string id = 2;
|
|
61
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
// package: wechaty.puppet
|
|
2
|
-
// file: wechaty/deprecated/file-box.proto
|
|
3
|
-
|
|
4
|
-
import * as jspb from "google-protobuf";
|
|
5
|
-
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
6
|
-
import * as wechaty_puppet_image_pb from "../../wechaty/puppet/image_pb";
|
|
7
|
-
|
|
8
|
-
export class FileBoxChunk extends jspb.Message {
|
|
9
|
-
hasData(): boolean;
|
|
10
|
-
clearData(): void;
|
|
11
|
-
getData(): Uint8Array | string;
|
|
12
|
-
getData_asU8(): Uint8Array;
|
|
13
|
-
getData_asB64(): string;
|
|
14
|
-
setData(value: Uint8Array | string): void;
|
|
15
|
-
|
|
16
|
-
hasName(): boolean;
|
|
17
|
-
clearName(): void;
|
|
18
|
-
getName(): string;
|
|
19
|
-
setName(value: string): void;
|
|
20
|
-
|
|
21
|
-
serializeBinary(): Uint8Array;
|
|
22
|
-
toObject(includeInstance?: boolean): FileBoxChunk.AsObject;
|
|
23
|
-
static toObject(includeInstance: boolean, msg: FileBoxChunk): FileBoxChunk.AsObject;
|
|
24
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
25
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
26
|
-
static serializeBinaryToWriter(message: FileBoxChunk, writer: jspb.BinaryWriter): void;
|
|
27
|
-
static deserializeBinary(bytes: Uint8Array): FileBoxChunk;
|
|
28
|
-
static deserializeBinaryFromReader(message: FileBoxChunk, reader: jspb.BinaryReader): FileBoxChunk;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export namespace FileBoxChunk {
|
|
32
|
-
export type AsObject = {
|
|
33
|
-
data: Uint8Array | string,
|
|
34
|
-
name: string,
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class MessageImageStreamRequest extends jspb.Message {
|
|
39
|
-
getId(): string;
|
|
40
|
-
setId(value: string): void;
|
|
41
|
-
|
|
42
|
-
getType(): wechaty_puppet_image_pb.ImageTypeMap[keyof wechaty_puppet_image_pb.ImageTypeMap];
|
|
43
|
-
setType(value: wechaty_puppet_image_pb.ImageTypeMap[keyof wechaty_puppet_image_pb.ImageTypeMap]): void;
|
|
44
|
-
|
|
45
|
-
serializeBinary(): Uint8Array;
|
|
46
|
-
toObject(includeInstance?: boolean): MessageImageStreamRequest.AsObject;
|
|
47
|
-
static toObject(includeInstance: boolean, msg: MessageImageStreamRequest): MessageImageStreamRequest.AsObject;
|
|
48
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
49
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
50
|
-
static serializeBinaryToWriter(message: MessageImageStreamRequest, writer: jspb.BinaryWriter): void;
|
|
51
|
-
static deserializeBinary(bytes: Uint8Array): MessageImageStreamRequest;
|
|
52
|
-
static deserializeBinaryFromReader(message: MessageImageStreamRequest, reader: jspb.BinaryReader): MessageImageStreamRequest;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export namespace MessageImageStreamRequest {
|
|
56
|
-
export type AsObject = {
|
|
57
|
-
id: string,
|
|
58
|
-
type: wechaty_puppet_image_pb.ImageTypeMap[keyof wechaty_puppet_image_pb.ImageTypeMap],
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export class MessageImageStreamResponse extends jspb.Message {
|
|
63
|
-
hasFileBoxChunk(): boolean;
|
|
64
|
-
clearFileBoxChunk(): void;
|
|
65
|
-
getFileBoxChunk(): FileBoxChunk | undefined;
|
|
66
|
-
setFileBoxChunk(value?: FileBoxChunk): void;
|
|
67
|
-
|
|
68
|
-
serializeBinary(): Uint8Array;
|
|
69
|
-
toObject(includeInstance?: boolean): MessageImageStreamResponse.AsObject;
|
|
70
|
-
static toObject(includeInstance: boolean, msg: MessageImageStreamResponse): MessageImageStreamResponse.AsObject;
|
|
71
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
72
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
73
|
-
static serializeBinaryToWriter(message: MessageImageStreamResponse, writer: jspb.BinaryWriter): void;
|
|
74
|
-
static deserializeBinary(bytes: Uint8Array): MessageImageStreamResponse;
|
|
75
|
-
static deserializeBinaryFromReader(message: MessageImageStreamResponse, reader: jspb.BinaryReader): MessageImageStreamResponse;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export namespace MessageImageStreamResponse {
|
|
79
|
-
export type AsObject = {
|
|
80
|
-
fileBoxChunk?: FileBoxChunk.AsObject,
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export class MessageFileStreamRequest extends jspb.Message {
|
|
85
|
-
getId(): string;
|
|
86
|
-
setId(value: string): void;
|
|
87
|
-
|
|
88
|
-
serializeBinary(): Uint8Array;
|
|
89
|
-
toObject(includeInstance?: boolean): MessageFileStreamRequest.AsObject;
|
|
90
|
-
static toObject(includeInstance: boolean, msg: MessageFileStreamRequest): MessageFileStreamRequest.AsObject;
|
|
91
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
92
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
93
|
-
static serializeBinaryToWriter(message: MessageFileStreamRequest, writer: jspb.BinaryWriter): void;
|
|
94
|
-
static deserializeBinary(bytes: Uint8Array): MessageFileStreamRequest;
|
|
95
|
-
static deserializeBinaryFromReader(message: MessageFileStreamRequest, reader: jspb.BinaryReader): MessageFileStreamRequest;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export namespace MessageFileStreamRequest {
|
|
99
|
-
export type AsObject = {
|
|
100
|
-
id: string,
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export class MessageFileStreamResponse extends jspb.Message {
|
|
105
|
-
hasFileBoxChunk(): boolean;
|
|
106
|
-
clearFileBoxChunk(): void;
|
|
107
|
-
getFileBoxChunk(): FileBoxChunk | undefined;
|
|
108
|
-
setFileBoxChunk(value?: FileBoxChunk): void;
|
|
109
|
-
|
|
110
|
-
serializeBinary(): Uint8Array;
|
|
111
|
-
toObject(includeInstance?: boolean): MessageFileStreamResponse.AsObject;
|
|
112
|
-
static toObject(includeInstance: boolean, msg: MessageFileStreamResponse): MessageFileStreamResponse.AsObject;
|
|
113
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
114
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
115
|
-
static serializeBinaryToWriter(message: MessageFileStreamResponse, writer: jspb.BinaryWriter): void;
|
|
116
|
-
static deserializeBinary(bytes: Uint8Array): MessageFileStreamResponse;
|
|
117
|
-
static deserializeBinaryFromReader(message: MessageFileStreamResponse, reader: jspb.BinaryReader): MessageFileStreamResponse;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export namespace MessageFileStreamResponse {
|
|
121
|
-
export type AsObject = {
|
|
122
|
-
fileBoxChunk?: FileBoxChunk.AsObject,
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export class MessageSendFileStreamRequest extends jspb.Message {
|
|
127
|
-
hasConversationId(): boolean;
|
|
128
|
-
clearConversationId(): void;
|
|
129
|
-
getConversationId(): string;
|
|
130
|
-
setConversationId(value: string): void;
|
|
131
|
-
|
|
132
|
-
hasFileBoxChunk(): boolean;
|
|
133
|
-
clearFileBoxChunk(): void;
|
|
134
|
-
getFileBoxChunk(): FileBoxChunk | undefined;
|
|
135
|
-
setFileBoxChunk(value?: FileBoxChunk): void;
|
|
136
|
-
|
|
137
|
-
serializeBinary(): Uint8Array;
|
|
138
|
-
toObject(includeInstance?: boolean): MessageSendFileStreamRequest.AsObject;
|
|
139
|
-
static toObject(includeInstance: boolean, msg: MessageSendFileStreamRequest): MessageSendFileStreamRequest.AsObject;
|
|
140
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
141
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
142
|
-
static serializeBinaryToWriter(message: MessageSendFileStreamRequest, writer: jspb.BinaryWriter): void;
|
|
143
|
-
static deserializeBinary(bytes: Uint8Array): MessageSendFileStreamRequest;
|
|
144
|
-
static deserializeBinaryFromReader(message: MessageSendFileStreamRequest, reader: jspb.BinaryReader): MessageSendFileStreamRequest;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export namespace MessageSendFileStreamRequest {
|
|
148
|
-
export type AsObject = {
|
|
149
|
-
conversationId: string,
|
|
150
|
-
fileBoxChunk?: FileBoxChunk.AsObject,
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export class MessageSendFileStreamResponse extends jspb.Message {
|
|
155
|
-
hasIdStringValueDeprecated(): boolean;
|
|
156
|
-
clearIdStringValueDeprecated(): void;
|
|
157
|
-
getIdStringValueDeprecated(): google_protobuf_wrappers_pb.StringValue | undefined;
|
|
158
|
-
setIdStringValueDeprecated(value?: google_protobuf_wrappers_pb.StringValue): void;
|
|
159
|
-
|
|
160
|
-
getId(): string;
|
|
161
|
-
setId(value: string): void;
|
|
162
|
-
|
|
163
|
-
serializeBinary(): Uint8Array;
|
|
164
|
-
toObject(includeInstance?: boolean): MessageSendFileStreamResponse.AsObject;
|
|
165
|
-
static toObject(includeInstance: boolean, msg: MessageSendFileStreamResponse): MessageSendFileStreamResponse.AsObject;
|
|
166
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
167
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
168
|
-
static serializeBinaryToWriter(message: MessageSendFileStreamResponse, writer: jspb.BinaryWriter): void;
|
|
169
|
-
static deserializeBinary(bytes: Uint8Array): MessageSendFileStreamResponse;
|
|
170
|
-
static deserializeBinaryFromReader(message: MessageSendFileStreamResponse, reader: jspb.BinaryReader): MessageSendFileStreamResponse;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export namespace MessageSendFileStreamResponse {
|
|
174
|
-
export type AsObject = {
|
|
175
|
-
idStringValueDeprecated?: google_protobuf_wrappers_pb.StringValue.AsObject,
|
|
176
|
-
id: string,
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|