@juzi/wechaty-grpc 1.0.42 → 1.0.44

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 (69) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +0 -2
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
  3. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +105 -0
  4. package/dist/cjs/out/wechaty/puppet/message_pb.js +794 -21
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +69 -142
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +106 -194
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -102
  9. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  10. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -34
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -147
  13. package/dist/cjs/proto/wechaty/puppet/message.proto +25 -0
  14. package/dist/cjs/proto/wechaty/puppet.proto +13 -9
  15. package/dist/cjs/src/package-json.d.ts.map +1 -1
  16. package/dist/cjs/src/package-json.js +3 -2
  17. package/dist/cjs/src/package-json.js.map +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +10 -13
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/commonjs/generated/puppet.cjs +0 -2
  22. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
  23. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +105 -0
  24. package/dist/esm/out/wechaty/puppet/message_pb.js +794 -21
  25. package/dist/esm/out/wechaty/puppet.openapi.yaml +69 -142
  26. package/dist/esm/out/wechaty/puppet.swagger.json +106 -194
  27. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  28. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -102
  29. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  30. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -34
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -147
  33. package/dist/esm/proto/wechaty/puppet/message.proto +25 -0
  34. package/dist/esm/proto/wechaty/puppet.proto +13 -9
  35. package/dist/esm/src/package-json.d.ts.map +1 -1
  36. package/dist/esm/src/package-json.js +3 -2
  37. package/dist/esm/src/package-json.js.map +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +10 -13
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/message_pb.d.ts +105 -0
  42. package/out/wechaty/puppet/message_pb.js +794 -21
  43. package/out/wechaty/puppet.openapi.yaml +69 -142
  44. package/out/wechaty/puppet.swagger.json +106 -194
  45. package/out/wechaty/puppet_grpc_pb.d.ts +34 -50
  46. package/out/wechaty/puppet_grpc_pb.js +66 -102
  47. package/out/wechaty/puppet_pb.d.ts +0 -1
  48. package/out/wechaty/puppet_pb.js +0 -2
  49. package/out/wechaty/puppet_pb_service.d.ts +38 -34
  50. package/out/wechaty/puppet_pb_service.js +80 -147
  51. package/package.json +3 -2
  52. package/src/package-json.ts +3 -2
  53. package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  54. package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  55. package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
  56. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  57. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  58. package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
  59. package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  60. package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  61. package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
  62. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  63. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  64. package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
  65. package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  66. package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  67. package/out/wechaty/deprecated/file-box_pb.js +0 -1368
  68. package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  69. package/out/wechaty/deprecated/file-box_pb_service.js +0 -3
@@ -2,7 +2,6 @@
2
2
  // file: wechaty/puppet.proto
3
3
 
4
4
  var wechaty_puppet_pb = require("../wechaty/puppet_pb");
5
- var wechaty_deprecated_file_box_pb = require("../wechaty/deprecated/file-box_pb");
6
5
  var wechaty_puppet_base_pb = require("../wechaty/puppet/base_pb");
7
6
  var wechaty_puppet_contact_pb = require("../wechaty/puppet/contact_pb");
8
7
  var wechaty_puppet_download_upload_pb = require("../wechaty/puppet/download-upload_pb");
@@ -24,33 +23,6 @@ var Puppet = (function () {
24
23
  return Puppet;
25
24
  }());
26
25
 
27
- Puppet.MessageFileStream = {
28
- methodName: "MessageFileStream",
29
- service: Puppet,
30
- requestStream: false,
31
- responseStream: true,
32
- requestType: wechaty_deprecated_file_box_pb.MessageFileStreamRequest,
33
- responseType: wechaty_deprecated_file_box_pb.MessageFileStreamResponse
34
- };
35
-
36
- Puppet.MessageImageStream = {
37
- methodName: "MessageImageStream",
38
- service: Puppet,
39
- requestStream: false,
40
- responseStream: true,
41
- requestType: wechaty_deprecated_file_box_pb.MessageImageStreamRequest,
42
- responseType: wechaty_deprecated_file_box_pb.MessageImageStreamResponse
43
- };
44
-
45
- Puppet.MessageSendFileStream = {
46
- methodName: "MessageSendFileStream",
47
- service: Puppet,
48
- requestStream: true,
49
- responseStream: false,
50
- requestType: wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest,
51
- responseType: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse
52
- };
53
-
54
26
  Puppet.Start = {
55
27
  methodName: "Start",
56
28
  service: Puppet,
@@ -456,6 +428,24 @@ Puppet.MessagePreview = {
456
428
  responseType: wechaty_puppet_message_pb.MessagePreviewResponse
457
429
  };
458
430
 
431
+ Puppet.GetMessageBroadcastTarget = {
432
+ methodName: "GetMessageBroadcastTarget",
433
+ service: Puppet,
434
+ requestStream: false,
435
+ responseStream: false,
436
+ requestType: wechaty_puppet_message_pb.GetMessageBroadcastTargetRequest,
437
+ responseType: wechaty_puppet_message_pb.GetMessageBroadcastTargetResponse
438
+ };
439
+
440
+ Puppet.CreateMessageBroadcast = {
441
+ methodName: "CreateMessageBroadcast",
442
+ service: Puppet,
443
+ requestStream: false,
444
+ responseStream: false,
445
+ requestType: wechaty_puppet_message_pb.CreateMessageBroadcastRequest,
446
+ responseType: wechaty_puppet_message_pb.CreateMessageBroadcastResponse
447
+ };
448
+
459
449
  Puppet.RoomPayload = {
460
450
  methodName: "RoomPayload",
461
451
  service: Puppet,
@@ -796,125 +786,6 @@ function PuppetClient(serviceHost, options) {
796
786
  this.options = options || {};
797
787
  }
798
788
 
799
- PuppetClient.prototype.messageFileStream = function messageFileStream(requestMessage, metadata) {
800
- var listeners = {
801
- data: [],
802
- end: [],
803
- status: []
804
- };
805
- var client = grpc.invoke(Puppet.MessageFileStream, {
806
- request: requestMessage,
807
- host: this.serviceHost,
808
- metadata: metadata,
809
- transport: this.options.transport,
810
- debug: this.options.debug,
811
- onMessage: function (responseMessage) {
812
- listeners.data.forEach(function (handler) {
813
- handler(responseMessage);
814
- });
815
- },
816
- onEnd: function (status, statusMessage, trailers) {
817
- listeners.status.forEach(function (handler) {
818
- handler({ code: status, details: statusMessage, metadata: trailers });
819
- });
820
- listeners.end.forEach(function (handler) {
821
- handler({ code: status, details: statusMessage, metadata: trailers });
822
- });
823
- listeners = null;
824
- }
825
- });
826
- return {
827
- on: function (type, handler) {
828
- listeners[type].push(handler);
829
- return this;
830
- },
831
- cancel: function () {
832
- listeners = null;
833
- client.close();
834
- }
835
- };
836
- };
837
-
838
- PuppetClient.prototype.messageImageStream = function messageImageStream(requestMessage, metadata) {
839
- var listeners = {
840
- data: [],
841
- end: [],
842
- status: []
843
- };
844
- var client = grpc.invoke(Puppet.MessageImageStream, {
845
- request: requestMessage,
846
- host: this.serviceHost,
847
- metadata: metadata,
848
- transport: this.options.transport,
849
- debug: this.options.debug,
850
- onMessage: function (responseMessage) {
851
- listeners.data.forEach(function (handler) {
852
- handler(responseMessage);
853
- });
854
- },
855
- onEnd: function (status, statusMessage, trailers) {
856
- listeners.status.forEach(function (handler) {
857
- handler({ code: status, details: statusMessage, metadata: trailers });
858
- });
859
- listeners.end.forEach(function (handler) {
860
- handler({ code: status, details: statusMessage, metadata: trailers });
861
- });
862
- listeners = null;
863
- }
864
- });
865
- return {
866
- on: function (type, handler) {
867
- listeners[type].push(handler);
868
- return this;
869
- },
870
- cancel: function () {
871
- listeners = null;
872
- client.close();
873
- }
874
- };
875
- };
876
-
877
- PuppetClient.prototype.messageSendFileStream = function messageSendFileStream(metadata) {
878
- var listeners = {
879
- end: [],
880
- status: []
881
- };
882
- var client = grpc.client(Puppet.MessageSendFileStream, {
883
- host: this.serviceHost,
884
- metadata: metadata,
885
- transport: this.options.transport
886
- });
887
- client.onEnd(function (status, statusMessage, trailers) {
888
- listeners.status.forEach(function (handler) {
889
- handler({ code: status, details: statusMessage, metadata: trailers });
890
- });
891
- listeners.end.forEach(function (handler) {
892
- handler({ code: status, details: statusMessage, metadata: trailers });
893
- });
894
- listeners = null;
895
- });
896
- return {
897
- on: function (type, handler) {
898
- listeners[type].push(handler);
899
- return this;
900
- },
901
- write: function (requestMessage) {
902
- if (!client.started) {
903
- client.start(metadata);
904
- }
905
- client.send(requestMessage);
906
- return this;
907
- },
908
- end: function () {
909
- client.finishSend();
910
- },
911
- cancel: function () {
912
- listeners = null;
913
- client.close();
914
- }
915
- };
916
- };
917
-
918
789
  PuppetClient.prototype.start = function start(requestMessage, metadata, callback) {
919
790
  if (arguments.length === 2) {
920
791
  callback = arguments[1];
@@ -2318,6 +2189,68 @@ PuppetClient.prototype.messagePreview = function messagePreview(requestMessage,
2318
2189
  };
2319
2190
  };
2320
2191
 
2192
+ PuppetClient.prototype.getMessageBroadcastTarget = function getMessageBroadcastTarget(requestMessage, metadata, callback) {
2193
+ if (arguments.length === 2) {
2194
+ callback = arguments[1];
2195
+ }
2196
+ var client = grpc.unary(Puppet.GetMessageBroadcastTarget, {
2197
+ request: requestMessage,
2198
+ host: this.serviceHost,
2199
+ metadata: metadata,
2200
+ transport: this.options.transport,
2201
+ debug: this.options.debug,
2202
+ onEnd: function (response) {
2203
+ if (callback) {
2204
+ if (response.status !== grpc.Code.OK) {
2205
+ var err = new Error(response.statusMessage);
2206
+ err.code = response.status;
2207
+ err.metadata = response.trailers;
2208
+ callback(err, null);
2209
+ } else {
2210
+ callback(null, response.message);
2211
+ }
2212
+ }
2213
+ }
2214
+ });
2215
+ return {
2216
+ cancel: function () {
2217
+ callback = null;
2218
+ client.close();
2219
+ }
2220
+ };
2221
+ };
2222
+
2223
+ PuppetClient.prototype.createMessageBroadcast = function createMessageBroadcast(requestMessage, metadata, callback) {
2224
+ if (arguments.length === 2) {
2225
+ callback = arguments[1];
2226
+ }
2227
+ var client = grpc.unary(Puppet.CreateMessageBroadcast, {
2228
+ request: requestMessage,
2229
+ host: this.serviceHost,
2230
+ metadata: metadata,
2231
+ transport: this.options.transport,
2232
+ debug: this.options.debug,
2233
+ onEnd: function (response) {
2234
+ if (callback) {
2235
+ if (response.status !== grpc.Code.OK) {
2236
+ var err = new Error(response.statusMessage);
2237
+ err.code = response.status;
2238
+ err.metadata = response.trailers;
2239
+ callback(err, null);
2240
+ } else {
2241
+ callback(null, response.message);
2242
+ }
2243
+ }
2244
+ }
2245
+ });
2246
+ return {
2247
+ cancel: function () {
2248
+ callback = null;
2249
+ client.close();
2250
+ }
2251
+ };
2252
+ };
2253
+
2321
2254
  PuppetClient.prototype.roomPayload = function roomPayload(requestMessage, metadata, callback) {
2322
2255
  if (arguments.length === 2) {
2323
2256
  callback = arguments[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -75,7 +75,8 @@
75
75
  "request": "^2.88.2",
76
76
  "shx": "^0.3.3",
77
77
  "ts-protoc-gen": "^0.15.0",
78
- "tstest": "^0.7.3"
78
+ "tstest": "^0.7.3",
79
+ "esquery": "1.4.0"
79
80
  },
80
81
  "files": [
81
82
  "bin/",
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.42",
7
+ "version": "1.0.44",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {
@@ -79,7 +79,8 @@ export const packageJson: PackageJson = {
79
79
  "request": "^2.88.2",
80
80
  "shx": "^0.3.3",
81
81
  "ts-protoc-gen": "^0.15.0",
82
- "tstest": "^0.7.3"
82
+ "tstest": "^0.7.3",
83
+ "esquery": "1.4.0"
83
84
  },
84
85
  "files": [
85
86
  "bin/",
@@ -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
-