@juzi/wechaty-grpc 1.0.41 → 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/room_pb.d.ts +44 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +28 -142
- package/dist/cjs/out/wechaty/puppet.swagger.json +43 -194
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -50
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -34
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -147
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +7 -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 +5 -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/room_pb.d.ts +44 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +336 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +28 -142
- package/dist/esm/out/wechaty/puppet.swagger.json +43 -194
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -50
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -34
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -147
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +7 -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 +5 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/room_pb.d.ts +44 -0
- package/out/wechaty/puppet/room_pb.js +336 -1
- package/out/wechaty/puppet.openapi.yaml +28 -142
- package/out/wechaty/puppet.swagger.json +43 -194
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -50
- package/out/wechaty/puppet_grpc_pb.js +33 -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 +19 -34
- package/out/wechaty/puppet_pb_service.js +40 -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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// file: wechaty/puppet.proto
|
|
3
3
|
|
|
4
4
|
import * as wechaty_puppet_pb from "../wechaty/puppet_pb";
|
|
5
|
-
import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
|
|
6
5
|
import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
|
|
7
6
|
import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
|
|
8
7
|
import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
|
|
@@ -18,33 +17,6 @@ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
|
18
17
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
19
18
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
20
19
|
|
|
21
|
-
type PuppetMessageFileStream = {
|
|
22
|
-
readonly methodName: string;
|
|
23
|
-
readonly service: typeof Puppet;
|
|
24
|
-
readonly requestStream: false;
|
|
25
|
-
readonly responseStream: true;
|
|
26
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamRequest;
|
|
27
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamResponse;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
type PuppetMessageImageStream = {
|
|
31
|
-
readonly methodName: string;
|
|
32
|
-
readonly service: typeof Puppet;
|
|
33
|
-
readonly requestStream: false;
|
|
34
|
-
readonly responseStream: true;
|
|
35
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamRequest;
|
|
36
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamResponse;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type PuppetMessageSendFileStream = {
|
|
40
|
-
readonly methodName: string;
|
|
41
|
-
readonly service: typeof Puppet;
|
|
42
|
-
readonly requestStream: true;
|
|
43
|
-
readonly responseStream: false;
|
|
44
|
-
readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest;
|
|
45
|
-
readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
20
|
type PuppetStart = {
|
|
49
21
|
readonly methodName: string;
|
|
50
22
|
readonly service: typeof Puppet;
|
|
@@ -522,6 +494,15 @@ type PuppetRoomTopic = {
|
|
|
522
494
|
readonly responseType: typeof wechaty_puppet_room_pb.RoomTopicResponse;
|
|
523
495
|
};
|
|
524
496
|
|
|
497
|
+
type PuppetRoomRemark = {
|
|
498
|
+
readonly methodName: string;
|
|
499
|
+
readonly service: typeof Puppet;
|
|
500
|
+
readonly requestStream: false;
|
|
501
|
+
readonly responseStream: false;
|
|
502
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomRemarkRequest;
|
|
503
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomRemarkResponse;
|
|
504
|
+
};
|
|
505
|
+
|
|
525
506
|
type PuppetRoomQRCode = {
|
|
526
507
|
readonly methodName: string;
|
|
527
508
|
readonly service: typeof Puppet;
|
|
@@ -776,9 +757,6 @@ type PuppetUpload = {
|
|
|
776
757
|
|
|
777
758
|
export class Puppet {
|
|
778
759
|
static readonly serviceName: string;
|
|
779
|
-
static readonly MessageFileStream: PuppetMessageFileStream;
|
|
780
|
-
static readonly MessageImageStream: PuppetMessageImageStream;
|
|
781
|
-
static readonly MessageSendFileStream: PuppetMessageSendFileStream;
|
|
782
760
|
static readonly Start: PuppetStart;
|
|
783
761
|
static readonly Stop: PuppetStop;
|
|
784
762
|
static readonly Logout: PuppetLogout;
|
|
@@ -832,6 +810,7 @@ export class Puppet {
|
|
|
832
810
|
static readonly RoomDel: PuppetRoomDel;
|
|
833
811
|
static readonly RoomQuit: PuppetRoomQuit;
|
|
834
812
|
static readonly RoomTopic: PuppetRoomTopic;
|
|
813
|
+
static readonly RoomRemark: PuppetRoomRemark;
|
|
835
814
|
static readonly RoomQRCode: PuppetRoomQRCode;
|
|
836
815
|
static readonly RoomAnnounce: PuppetRoomAnnounce;
|
|
837
816
|
static readonly RoomMemberPayload: PuppetRoomMemberPayload;
|
|
@@ -894,9 +873,6 @@ export class PuppetClient {
|
|
|
894
873
|
readonly serviceHost: string;
|
|
895
874
|
|
|
896
875
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
897
|
-
messageFileStream(requestMessage: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
898
|
-
messageImageStream(requestMessage: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
899
|
-
messageSendFileStream(metadata?: grpc.Metadata): RequestStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
900
876
|
start(
|
|
901
877
|
requestMessage: wechaty_puppet_base_pb.StartRequest,
|
|
902
878
|
metadata: grpc.Metadata,
|
|
@@ -1366,6 +1342,15 @@ export class PuppetClient {
|
|
|
1366
1342
|
requestMessage: wechaty_puppet_room_pb.RoomTopicRequest,
|
|
1367
1343
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomTopicResponse|null) => void
|
|
1368
1344
|
): UnaryResponse;
|
|
1345
|
+
roomRemark(
|
|
1346
|
+
requestMessage: wechaty_puppet_room_pb.RoomRemarkRequest,
|
|
1347
|
+
metadata: grpc.Metadata,
|
|
1348
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomRemarkResponse|null) => void
|
|
1349
|
+
): UnaryResponse;
|
|
1350
|
+
roomRemark(
|
|
1351
|
+
requestMessage: wechaty_puppet_room_pb.RoomRemarkRequest,
|
|
1352
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomRemarkResponse|null) => void
|
|
1353
|
+
): UnaryResponse;
|
|
1369
1354
|
roomQRCode(
|
|
1370
1355
|
requestMessage: wechaty_puppet_room_pb.RoomQRCodeRequest,
|
|
1371
1356
|
metadata: grpc.Metadata,
|
|
@@ -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,
|
|
@@ -528,6 +500,15 @@ Puppet.RoomTopic = {
|
|
|
528
500
|
responseType: wechaty_puppet_room_pb.RoomTopicResponse
|
|
529
501
|
};
|
|
530
502
|
|
|
503
|
+
Puppet.RoomRemark = {
|
|
504
|
+
methodName: "RoomRemark",
|
|
505
|
+
service: Puppet,
|
|
506
|
+
requestStream: false,
|
|
507
|
+
responseStream: false,
|
|
508
|
+
requestType: wechaty_puppet_room_pb.RoomRemarkRequest,
|
|
509
|
+
responseType: wechaty_puppet_room_pb.RoomRemarkResponse
|
|
510
|
+
};
|
|
511
|
+
|
|
531
512
|
Puppet.RoomQRCode = {
|
|
532
513
|
methodName: "RoomQRCode",
|
|
533
514
|
service: Puppet,
|
|
@@ -787,125 +768,6 @@ function PuppetClient(serviceHost, options) {
|
|
|
787
768
|
this.options = options || {};
|
|
788
769
|
}
|
|
789
770
|
|
|
790
|
-
PuppetClient.prototype.messageFileStream = function messageFileStream(requestMessage, metadata) {
|
|
791
|
-
var listeners = {
|
|
792
|
-
data: [],
|
|
793
|
-
end: [],
|
|
794
|
-
status: []
|
|
795
|
-
};
|
|
796
|
-
var client = grpc.invoke(Puppet.MessageFileStream, {
|
|
797
|
-
request: requestMessage,
|
|
798
|
-
host: this.serviceHost,
|
|
799
|
-
metadata: metadata,
|
|
800
|
-
transport: this.options.transport,
|
|
801
|
-
debug: this.options.debug,
|
|
802
|
-
onMessage: function (responseMessage) {
|
|
803
|
-
listeners.data.forEach(function (handler) {
|
|
804
|
-
handler(responseMessage);
|
|
805
|
-
});
|
|
806
|
-
},
|
|
807
|
-
onEnd: function (status, statusMessage, trailers) {
|
|
808
|
-
listeners.status.forEach(function (handler) {
|
|
809
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
810
|
-
});
|
|
811
|
-
listeners.end.forEach(function (handler) {
|
|
812
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
813
|
-
});
|
|
814
|
-
listeners = null;
|
|
815
|
-
}
|
|
816
|
-
});
|
|
817
|
-
return {
|
|
818
|
-
on: function (type, handler) {
|
|
819
|
-
listeners[type].push(handler);
|
|
820
|
-
return this;
|
|
821
|
-
},
|
|
822
|
-
cancel: function () {
|
|
823
|
-
listeners = null;
|
|
824
|
-
client.close();
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
PuppetClient.prototype.messageImageStream = function messageImageStream(requestMessage, metadata) {
|
|
830
|
-
var listeners = {
|
|
831
|
-
data: [],
|
|
832
|
-
end: [],
|
|
833
|
-
status: []
|
|
834
|
-
};
|
|
835
|
-
var client = grpc.invoke(Puppet.MessageImageStream, {
|
|
836
|
-
request: requestMessage,
|
|
837
|
-
host: this.serviceHost,
|
|
838
|
-
metadata: metadata,
|
|
839
|
-
transport: this.options.transport,
|
|
840
|
-
debug: this.options.debug,
|
|
841
|
-
onMessage: function (responseMessage) {
|
|
842
|
-
listeners.data.forEach(function (handler) {
|
|
843
|
-
handler(responseMessage);
|
|
844
|
-
});
|
|
845
|
-
},
|
|
846
|
-
onEnd: function (status, statusMessage, trailers) {
|
|
847
|
-
listeners.status.forEach(function (handler) {
|
|
848
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
849
|
-
});
|
|
850
|
-
listeners.end.forEach(function (handler) {
|
|
851
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
852
|
-
});
|
|
853
|
-
listeners = null;
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
return {
|
|
857
|
-
on: function (type, handler) {
|
|
858
|
-
listeners[type].push(handler);
|
|
859
|
-
return this;
|
|
860
|
-
},
|
|
861
|
-
cancel: function () {
|
|
862
|
-
listeners = null;
|
|
863
|
-
client.close();
|
|
864
|
-
}
|
|
865
|
-
};
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
PuppetClient.prototype.messageSendFileStream = function messageSendFileStream(metadata) {
|
|
869
|
-
var listeners = {
|
|
870
|
-
end: [],
|
|
871
|
-
status: []
|
|
872
|
-
};
|
|
873
|
-
var client = grpc.client(Puppet.MessageSendFileStream, {
|
|
874
|
-
host: this.serviceHost,
|
|
875
|
-
metadata: metadata,
|
|
876
|
-
transport: this.options.transport
|
|
877
|
-
});
|
|
878
|
-
client.onEnd(function (status, statusMessage, trailers) {
|
|
879
|
-
listeners.status.forEach(function (handler) {
|
|
880
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
881
|
-
});
|
|
882
|
-
listeners.end.forEach(function (handler) {
|
|
883
|
-
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
884
|
-
});
|
|
885
|
-
listeners = null;
|
|
886
|
-
});
|
|
887
|
-
return {
|
|
888
|
-
on: function (type, handler) {
|
|
889
|
-
listeners[type].push(handler);
|
|
890
|
-
return this;
|
|
891
|
-
},
|
|
892
|
-
write: function (requestMessage) {
|
|
893
|
-
if (!client.started) {
|
|
894
|
-
client.start(metadata);
|
|
895
|
-
}
|
|
896
|
-
client.send(requestMessage);
|
|
897
|
-
return this;
|
|
898
|
-
},
|
|
899
|
-
end: function () {
|
|
900
|
-
client.finishSend();
|
|
901
|
-
},
|
|
902
|
-
cancel: function () {
|
|
903
|
-
listeners = null;
|
|
904
|
-
client.close();
|
|
905
|
-
}
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
|
|
909
771
|
PuppetClient.prototype.start = function start(requestMessage, metadata, callback) {
|
|
910
772
|
if (arguments.length === 2) {
|
|
911
773
|
callback = arguments[1];
|
|
@@ -2557,6 +2419,37 @@ PuppetClient.prototype.roomTopic = function roomTopic(requestMessage, metadata,
|
|
|
2557
2419
|
};
|
|
2558
2420
|
};
|
|
2559
2421
|
|
|
2422
|
+
PuppetClient.prototype.roomRemark = function roomRemark(requestMessage, metadata, callback) {
|
|
2423
|
+
if (arguments.length === 2) {
|
|
2424
|
+
callback = arguments[1];
|
|
2425
|
+
}
|
|
2426
|
+
var client = grpc.unary(Puppet.RoomRemark, {
|
|
2427
|
+
request: requestMessage,
|
|
2428
|
+
host: this.serviceHost,
|
|
2429
|
+
metadata: metadata,
|
|
2430
|
+
transport: this.options.transport,
|
|
2431
|
+
debug: this.options.debug,
|
|
2432
|
+
onEnd: function (response) {
|
|
2433
|
+
if (callback) {
|
|
2434
|
+
if (response.status !== grpc.Code.OK) {
|
|
2435
|
+
var err = new Error(response.statusMessage);
|
|
2436
|
+
err.code = response.status;
|
|
2437
|
+
err.metadata = response.trailers;
|
|
2438
|
+
callback(err, null);
|
|
2439
|
+
} else {
|
|
2440
|
+
callback(null, response.message);
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
});
|
|
2445
|
+
return {
|
|
2446
|
+
cancel: function () {
|
|
2447
|
+
callback = null;
|
|
2448
|
+
client.close();
|
|
2449
|
+
}
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
|
|
2560
2453
|
PuppetClient.prototype.roomQRCode = function roomQRCode(requestMessage, metadata, callback) {
|
|
2561
2454
|
if (arguments.length === 2) {
|
|
2562
2455
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED
|
@@ -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
|
-
|