@juzi/wechaty-grpc 1.0.5 → 1.0.8
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 +36 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +275 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +3315 -0
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/room-member_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +31 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +282 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +423 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +171 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +336 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +191 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +401 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +19 -18
- package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +90 -0
- package/dist/cjs/proto/wechaty/puppet/room-member.proto +6 -5
- package/dist/cjs/proto/wechaty/puppet/room.proto +6 -5
- package/dist/cjs/proto/wechaty/puppet.proto +65 -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 +50 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +36 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +275 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
- package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +3315 -0
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/room-member_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +31 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +282 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +423 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +171 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +336 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +191 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +401 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +7 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +19 -18
- package/dist/esm/proto/wechaty/puppet/corp-tag.proto +90 -0
- package/dist/esm/proto/wechaty/puppet/room-member.proto +6 -5
- package/dist/esm/proto/wechaty/puppet/room.proto +6 -5
- package/dist/esm/proto/wechaty/puppet.proto +65 -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 +50 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +36 -0
- package/out/wechaty/puppet/base_pb.js +275 -0
- package/out/wechaty/puppet/contact_pb.d.ts +4 -0
- package/out/wechaty/puppet/contact_pb.js +31 -1
- package/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
- package/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
- package/out/wechaty/puppet/corp-tag_pb.js +3315 -0
- package/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
- package/out/wechaty/puppet/room-member_pb.d.ts +4 -0
- package/out/wechaty/puppet/room-member_pb.js +31 -1
- package/out/wechaty/puppet/room_pb.d.ts +4 -0
- package/out/wechaty/puppet/room_pb.js +31 -1
- package/out/wechaty/puppet.openapi.yaml +282 -1
- package/out/wechaty/puppet.swagger.json +423 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +171 -0
- package/out/wechaty/puppet_grpc_pb.js +336 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -0
- package/out/wechaty/puppet_pb_service.d.ts +191 -0
- package/out/wechaty/puppet_pb_service.js +401 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -13,6 +13,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
|
|
|
13
13
|
import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
|
|
14
14
|
import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
|
|
15
15
|
import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
16
|
+
import * as wechaty_puppet_corp_tag_pb from "../wechaty/puppet/corp-tag_pb";
|
|
16
17
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
17
18
|
|
|
18
19
|
type PuppetMessageFileStream = {
|
|
@@ -78,6 +79,15 @@ type PuppetDing = {
|
|
|
78
79
|
readonly responseType: typeof wechaty_puppet_base_pb.DingResponse;
|
|
79
80
|
};
|
|
80
81
|
|
|
82
|
+
type PuppetCurrentUser = {
|
|
83
|
+
readonly methodName: string;
|
|
84
|
+
readonly service: typeof Puppet;
|
|
85
|
+
readonly requestStream: false;
|
|
86
|
+
readonly responseStream: false;
|
|
87
|
+
readonly requestType: typeof wechaty_puppet_base_pb.CurrentUserRequest;
|
|
88
|
+
readonly responseType: typeof wechaty_puppet_base_pb.CurrentUserResponse;
|
|
89
|
+
};
|
|
90
|
+
|
|
81
91
|
type PuppetVersion = {
|
|
82
92
|
readonly methodName: string;
|
|
83
93
|
readonly service: typeof Puppet;
|
|
@@ -573,6 +583,87 @@ type PuppetTagContactList = {
|
|
|
573
583
|
readonly responseType: typeof wechaty_puppet_tag_pb.TagContactListResponse;
|
|
574
584
|
};
|
|
575
585
|
|
|
586
|
+
type PuppetCorpTagContactTagAdd = {
|
|
587
|
+
readonly methodName: string;
|
|
588
|
+
readonly service: typeof Puppet;
|
|
589
|
+
readonly requestStream: false;
|
|
590
|
+
readonly responseStream: false;
|
|
591
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagAddRequest;
|
|
592
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagAddResponse;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
type PuppetCorpTagContactTagRemove = {
|
|
596
|
+
readonly methodName: string;
|
|
597
|
+
readonly service: typeof Puppet;
|
|
598
|
+
readonly requestStream: false;
|
|
599
|
+
readonly responseStream: false;
|
|
600
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveRequest;
|
|
601
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveResponse;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
type PuppetCorpTagGroupAdd = {
|
|
605
|
+
readonly methodName: string;
|
|
606
|
+
readonly service: typeof Puppet;
|
|
607
|
+
readonly requestStream: false;
|
|
608
|
+
readonly responseStream: false;
|
|
609
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupAddRequest;
|
|
610
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupAddResponse;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
type PuppetCorpTagGroupDelete = {
|
|
614
|
+
readonly methodName: string;
|
|
615
|
+
readonly service: typeof Puppet;
|
|
616
|
+
readonly requestStream: false;
|
|
617
|
+
readonly responseStream: false;
|
|
618
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteRequest;
|
|
619
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteResponse;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
type PuppetCorpTagTagAdd = {
|
|
623
|
+
readonly methodName: string;
|
|
624
|
+
readonly service: typeof Puppet;
|
|
625
|
+
readonly requestStream: false;
|
|
626
|
+
readonly responseStream: false;
|
|
627
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagAddRequest;
|
|
628
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagAddResponse;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
type PuppetCorpTagTagDelete = {
|
|
632
|
+
readonly methodName: string;
|
|
633
|
+
readonly service: typeof Puppet;
|
|
634
|
+
readonly requestStream: false;
|
|
635
|
+
readonly responseStream: false;
|
|
636
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagDeleteRequest;
|
|
637
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagDeleteResponse;
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
type PuppetCorpTagGroupList = {
|
|
641
|
+
readonly methodName: string;
|
|
642
|
+
readonly service: typeof Puppet;
|
|
643
|
+
readonly requestStream: false;
|
|
644
|
+
readonly responseStream: false;
|
|
645
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupListRequest;
|
|
646
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagGroupListResponse;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
type PuppetCorpTagTagList = {
|
|
650
|
+
readonly methodName: string;
|
|
651
|
+
readonly service: typeof Puppet;
|
|
652
|
+
readonly requestStream: false;
|
|
653
|
+
readonly responseStream: false;
|
|
654
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagListRequest;
|
|
655
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagTagListResponse;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
type PuppetCorpTagContactTagList = {
|
|
659
|
+
readonly methodName: string;
|
|
660
|
+
readonly service: typeof Puppet;
|
|
661
|
+
readonly requestStream: false;
|
|
662
|
+
readonly responseStream: false;
|
|
663
|
+
readonly requestType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagListRequest;
|
|
664
|
+
readonly responseType: typeof wechaty_puppet_corp_tag_pb.CorpTagContactTagListResponse;
|
|
665
|
+
};
|
|
666
|
+
|
|
576
667
|
type PuppetDownload = {
|
|
577
668
|
readonly methodName: string;
|
|
578
669
|
readonly service: typeof Puppet;
|
|
@@ -600,6 +691,7 @@ export class Puppet {
|
|
|
600
691
|
static readonly Stop: PuppetStop;
|
|
601
692
|
static readonly Logout: PuppetLogout;
|
|
602
693
|
static readonly Ding: PuppetDing;
|
|
694
|
+
static readonly CurrentUser: PuppetCurrentUser;
|
|
603
695
|
static readonly Version: PuppetVersion;
|
|
604
696
|
static readonly Event: PuppetEvent;
|
|
605
697
|
static readonly DirtyPayload: PuppetDirtyPayload;
|
|
@@ -655,6 +747,15 @@ export class Puppet {
|
|
|
655
747
|
static readonly TagContactRemove: PuppetTagContactRemove;
|
|
656
748
|
static readonly TagContactDelete: PuppetTagContactDelete;
|
|
657
749
|
static readonly TagContactList: PuppetTagContactList;
|
|
750
|
+
static readonly CorpTagContactTagAdd: PuppetCorpTagContactTagAdd;
|
|
751
|
+
static readonly CorpTagContactTagRemove: PuppetCorpTagContactTagRemove;
|
|
752
|
+
static readonly CorpTagGroupAdd: PuppetCorpTagGroupAdd;
|
|
753
|
+
static readonly CorpTagGroupDelete: PuppetCorpTagGroupDelete;
|
|
754
|
+
static readonly CorpTagTagAdd: PuppetCorpTagTagAdd;
|
|
755
|
+
static readonly CorpTagTagDelete: PuppetCorpTagTagDelete;
|
|
756
|
+
static readonly CorpTagGroupList: PuppetCorpTagGroupList;
|
|
757
|
+
static readonly CorpTagTagList: PuppetCorpTagTagList;
|
|
758
|
+
static readonly CorpTagContactTagList: PuppetCorpTagContactTagList;
|
|
658
759
|
static readonly Download: PuppetDownload;
|
|
659
760
|
static readonly Upload: PuppetUpload;
|
|
660
761
|
}
|
|
@@ -730,6 +831,15 @@ export class PuppetClient {
|
|
|
730
831
|
requestMessage: wechaty_puppet_base_pb.DingRequest,
|
|
731
832
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.DingResponse|null) => void
|
|
732
833
|
): UnaryResponse;
|
|
834
|
+
currentUser(
|
|
835
|
+
requestMessage: wechaty_puppet_base_pb.CurrentUserRequest,
|
|
836
|
+
metadata: grpc.Metadata,
|
|
837
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.CurrentUserResponse|null) => void
|
|
838
|
+
): UnaryResponse;
|
|
839
|
+
currentUser(
|
|
840
|
+
requestMessage: wechaty_puppet_base_pb.CurrentUserRequest,
|
|
841
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_base_pb.CurrentUserResponse|null) => void
|
|
842
|
+
): UnaryResponse;
|
|
733
843
|
version(
|
|
734
844
|
requestMessage: wechaty_puppet_base_pb.VersionRequest,
|
|
735
845
|
metadata: grpc.Metadata,
|
|
@@ -1217,6 +1327,87 @@ export class PuppetClient {
|
|
|
1217
1327
|
requestMessage: wechaty_puppet_tag_pb.TagContactListRequest,
|
|
1218
1328
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagContactListResponse|null) => void
|
|
1219
1329
|
): UnaryResponse;
|
|
1330
|
+
corpTagContactTagAdd(
|
|
1331
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddRequest,
|
|
1332
|
+
metadata: grpc.Metadata,
|
|
1333
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddResponse|null) => void
|
|
1334
|
+
): UnaryResponse;
|
|
1335
|
+
corpTagContactTagAdd(
|
|
1336
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddRequest,
|
|
1337
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddResponse|null) => void
|
|
1338
|
+
): UnaryResponse;
|
|
1339
|
+
corpTagContactTagRemove(
|
|
1340
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveRequest,
|
|
1341
|
+
metadata: grpc.Metadata,
|
|
1342
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveResponse|null) => void
|
|
1343
|
+
): UnaryResponse;
|
|
1344
|
+
corpTagContactTagRemove(
|
|
1345
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveRequest,
|
|
1346
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveResponse|null) => void
|
|
1347
|
+
): UnaryResponse;
|
|
1348
|
+
corpTagGroupAdd(
|
|
1349
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupAddRequest,
|
|
1350
|
+
metadata: grpc.Metadata,
|
|
1351
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupAddResponse|null) => void
|
|
1352
|
+
): UnaryResponse;
|
|
1353
|
+
corpTagGroupAdd(
|
|
1354
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupAddRequest,
|
|
1355
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupAddResponse|null) => void
|
|
1356
|
+
): UnaryResponse;
|
|
1357
|
+
corpTagGroupDelete(
|
|
1358
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteRequest,
|
|
1359
|
+
metadata: grpc.Metadata,
|
|
1360
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteResponse|null) => void
|
|
1361
|
+
): UnaryResponse;
|
|
1362
|
+
corpTagGroupDelete(
|
|
1363
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteRequest,
|
|
1364
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteResponse|null) => void
|
|
1365
|
+
): UnaryResponse;
|
|
1366
|
+
corpTagTagAdd(
|
|
1367
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagAddRequest,
|
|
1368
|
+
metadata: grpc.Metadata,
|
|
1369
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagAddResponse|null) => void
|
|
1370
|
+
): UnaryResponse;
|
|
1371
|
+
corpTagTagAdd(
|
|
1372
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagAddRequest,
|
|
1373
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagAddResponse|null) => void
|
|
1374
|
+
): UnaryResponse;
|
|
1375
|
+
corpTagTagDelete(
|
|
1376
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteRequest,
|
|
1377
|
+
metadata: grpc.Metadata,
|
|
1378
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteResponse|null) => void
|
|
1379
|
+
): UnaryResponse;
|
|
1380
|
+
corpTagTagDelete(
|
|
1381
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteRequest,
|
|
1382
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteResponse|null) => void
|
|
1383
|
+
): UnaryResponse;
|
|
1384
|
+
corpTagGroupList(
|
|
1385
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupListRequest,
|
|
1386
|
+
metadata: grpc.Metadata,
|
|
1387
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupListResponse|null) => void
|
|
1388
|
+
): UnaryResponse;
|
|
1389
|
+
corpTagGroupList(
|
|
1390
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupListRequest,
|
|
1391
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagGroupListResponse|null) => void
|
|
1392
|
+
): UnaryResponse;
|
|
1393
|
+
corpTagTagList(
|
|
1394
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagListRequest,
|
|
1395
|
+
metadata: grpc.Metadata,
|
|
1396
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagListResponse|null) => void
|
|
1397
|
+
): UnaryResponse;
|
|
1398
|
+
corpTagTagList(
|
|
1399
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagTagListRequest,
|
|
1400
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagTagListResponse|null) => void
|
|
1401
|
+
): UnaryResponse;
|
|
1402
|
+
corpTagContactTagList(
|
|
1403
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagListRequest,
|
|
1404
|
+
metadata: grpc.Metadata,
|
|
1405
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagListResponse|null) => void
|
|
1406
|
+
): UnaryResponse;
|
|
1407
|
+
corpTagContactTagList(
|
|
1408
|
+
requestMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagListRequest,
|
|
1409
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_corp_tag_pb.CorpTagContactTagListResponse|null) => void
|
|
1410
|
+
): UnaryResponse;
|
|
1220
1411
|
download(requestMessage: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
|
|
1221
1412
|
upload(metadata?: grpc.Metadata): RequestStream<wechaty_puppet_download_upload_pb.UploadRequest>;
|
|
1222
1413
|
}
|
|
@@ -13,6 +13,7 @@ var wechaty_puppet_room_invitation_pb = require("../wechaty/puppet/room-invitati
|
|
|
13
13
|
var wechaty_puppet_room_member_pb = require("../wechaty/puppet/room-member_pb");
|
|
14
14
|
var wechaty_puppet_room_pb = require("../wechaty/puppet/room_pb");
|
|
15
15
|
var wechaty_puppet_tag_pb = require("../wechaty/puppet/tag_pb");
|
|
16
|
+
var wechaty_puppet_corp_tag_pb = require("../wechaty/puppet/corp-tag_pb");
|
|
16
17
|
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
17
18
|
|
|
18
19
|
var Puppet = (function () {
|
|
@@ -84,6 +85,15 @@ Puppet.Ding = {
|
|
|
84
85
|
responseType: wechaty_puppet_base_pb.DingResponse
|
|
85
86
|
};
|
|
86
87
|
|
|
88
|
+
Puppet.CurrentUser = {
|
|
89
|
+
methodName: "CurrentUser",
|
|
90
|
+
service: Puppet,
|
|
91
|
+
requestStream: false,
|
|
92
|
+
responseStream: false,
|
|
93
|
+
requestType: wechaty_puppet_base_pb.CurrentUserRequest,
|
|
94
|
+
responseType: wechaty_puppet_base_pb.CurrentUserResponse
|
|
95
|
+
};
|
|
96
|
+
|
|
87
97
|
Puppet.Version = {
|
|
88
98
|
methodName: "Version",
|
|
89
99
|
service: Puppet,
|
|
@@ -579,6 +589,87 @@ Puppet.TagContactList = {
|
|
|
579
589
|
responseType: wechaty_puppet_tag_pb.TagContactListResponse
|
|
580
590
|
};
|
|
581
591
|
|
|
592
|
+
Puppet.CorpTagContactTagAdd = {
|
|
593
|
+
methodName: "CorpTagContactTagAdd",
|
|
594
|
+
service: Puppet,
|
|
595
|
+
requestStream: false,
|
|
596
|
+
responseStream: false,
|
|
597
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddRequest,
|
|
598
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagAddResponse
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
Puppet.CorpTagContactTagRemove = {
|
|
602
|
+
methodName: "CorpTagContactTagRemove",
|
|
603
|
+
service: Puppet,
|
|
604
|
+
requestStream: false,
|
|
605
|
+
responseStream: false,
|
|
606
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveRequest,
|
|
607
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagRemoveResponse
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
Puppet.CorpTagGroupAdd = {
|
|
611
|
+
methodName: "CorpTagGroupAdd",
|
|
612
|
+
service: Puppet,
|
|
613
|
+
requestStream: false,
|
|
614
|
+
responseStream: false,
|
|
615
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupAddRequest,
|
|
616
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupAddResponse
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
Puppet.CorpTagGroupDelete = {
|
|
620
|
+
methodName: "CorpTagGroupDelete",
|
|
621
|
+
service: Puppet,
|
|
622
|
+
requestStream: false,
|
|
623
|
+
responseStream: false,
|
|
624
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteRequest,
|
|
625
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupDeleteResponse
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
Puppet.CorpTagTagAdd = {
|
|
629
|
+
methodName: "CorpTagTagAdd",
|
|
630
|
+
service: Puppet,
|
|
631
|
+
requestStream: false,
|
|
632
|
+
responseStream: false,
|
|
633
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagTagAddRequest,
|
|
634
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagTagAddResponse
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
Puppet.CorpTagTagDelete = {
|
|
638
|
+
methodName: "CorpTagTagDelete",
|
|
639
|
+
service: Puppet,
|
|
640
|
+
requestStream: false,
|
|
641
|
+
responseStream: false,
|
|
642
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteRequest,
|
|
643
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagTagDeleteResponse
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
Puppet.CorpTagGroupList = {
|
|
647
|
+
methodName: "CorpTagGroupList",
|
|
648
|
+
service: Puppet,
|
|
649
|
+
requestStream: false,
|
|
650
|
+
responseStream: false,
|
|
651
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagGroupListRequest,
|
|
652
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagGroupListResponse
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
Puppet.CorpTagTagList = {
|
|
656
|
+
methodName: "CorpTagTagList",
|
|
657
|
+
service: Puppet,
|
|
658
|
+
requestStream: false,
|
|
659
|
+
responseStream: false,
|
|
660
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagTagListRequest,
|
|
661
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagTagListResponse
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
Puppet.CorpTagContactTagList = {
|
|
665
|
+
methodName: "CorpTagContactTagList",
|
|
666
|
+
service: Puppet,
|
|
667
|
+
requestStream: false,
|
|
668
|
+
responseStream: false,
|
|
669
|
+
requestType: wechaty_puppet_corp_tag_pb.CorpTagContactTagListRequest,
|
|
670
|
+
responseType: wechaty_puppet_corp_tag_pb.CorpTagContactTagListResponse
|
|
671
|
+
};
|
|
672
|
+
|
|
582
673
|
Puppet.Download = {
|
|
583
674
|
methodName: "Download",
|
|
584
675
|
service: Puppet,
|
|
@@ -847,6 +938,37 @@ PuppetClient.prototype.ding = function ding(requestMessage, metadata, callback)
|
|
|
847
938
|
};
|
|
848
939
|
};
|
|
849
940
|
|
|
941
|
+
PuppetClient.prototype.currentUser = function currentUser(requestMessage, metadata, callback) {
|
|
942
|
+
if (arguments.length === 2) {
|
|
943
|
+
callback = arguments[1];
|
|
944
|
+
}
|
|
945
|
+
var client = grpc.unary(Puppet.CurrentUser, {
|
|
946
|
+
request: requestMessage,
|
|
947
|
+
host: this.serviceHost,
|
|
948
|
+
metadata: metadata,
|
|
949
|
+
transport: this.options.transport,
|
|
950
|
+
debug: this.options.debug,
|
|
951
|
+
onEnd: function (response) {
|
|
952
|
+
if (callback) {
|
|
953
|
+
if (response.status !== grpc.Code.OK) {
|
|
954
|
+
var err = new Error(response.statusMessage);
|
|
955
|
+
err.code = response.status;
|
|
956
|
+
err.metadata = response.trailers;
|
|
957
|
+
callback(err, null);
|
|
958
|
+
} else {
|
|
959
|
+
callback(null, response.message);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
return {
|
|
965
|
+
cancel: function () {
|
|
966
|
+
callback = null;
|
|
967
|
+
client.close();
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
|
|
850
972
|
PuppetClient.prototype.version = function version(requestMessage, metadata, callback) {
|
|
851
973
|
if (arguments.length === 2) {
|
|
852
974
|
callback = arguments[1];
|
|
@@ -2560,6 +2682,285 @@ PuppetClient.prototype.tagContactList = function tagContactList(requestMessage,
|
|
|
2560
2682
|
};
|
|
2561
2683
|
};
|
|
2562
2684
|
|
|
2685
|
+
PuppetClient.prototype.corpTagContactTagAdd = function corpTagContactTagAdd(requestMessage, metadata, callback) {
|
|
2686
|
+
if (arguments.length === 2) {
|
|
2687
|
+
callback = arguments[1];
|
|
2688
|
+
}
|
|
2689
|
+
var client = grpc.unary(Puppet.CorpTagContactTagAdd, {
|
|
2690
|
+
request: requestMessage,
|
|
2691
|
+
host: this.serviceHost,
|
|
2692
|
+
metadata: metadata,
|
|
2693
|
+
transport: this.options.transport,
|
|
2694
|
+
debug: this.options.debug,
|
|
2695
|
+
onEnd: function (response) {
|
|
2696
|
+
if (callback) {
|
|
2697
|
+
if (response.status !== grpc.Code.OK) {
|
|
2698
|
+
var err = new Error(response.statusMessage);
|
|
2699
|
+
err.code = response.status;
|
|
2700
|
+
err.metadata = response.trailers;
|
|
2701
|
+
callback(err, null);
|
|
2702
|
+
} else {
|
|
2703
|
+
callback(null, response.message);
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
return {
|
|
2709
|
+
cancel: function () {
|
|
2710
|
+
callback = null;
|
|
2711
|
+
client.close();
|
|
2712
|
+
}
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
PuppetClient.prototype.corpTagContactTagRemove = function corpTagContactTagRemove(requestMessage, metadata, callback) {
|
|
2717
|
+
if (arguments.length === 2) {
|
|
2718
|
+
callback = arguments[1];
|
|
2719
|
+
}
|
|
2720
|
+
var client = grpc.unary(Puppet.CorpTagContactTagRemove, {
|
|
2721
|
+
request: requestMessage,
|
|
2722
|
+
host: this.serviceHost,
|
|
2723
|
+
metadata: metadata,
|
|
2724
|
+
transport: this.options.transport,
|
|
2725
|
+
debug: this.options.debug,
|
|
2726
|
+
onEnd: function (response) {
|
|
2727
|
+
if (callback) {
|
|
2728
|
+
if (response.status !== grpc.Code.OK) {
|
|
2729
|
+
var err = new Error(response.statusMessage);
|
|
2730
|
+
err.code = response.status;
|
|
2731
|
+
err.metadata = response.trailers;
|
|
2732
|
+
callback(err, null);
|
|
2733
|
+
} else {
|
|
2734
|
+
callback(null, response.message);
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
}
|
|
2738
|
+
});
|
|
2739
|
+
return {
|
|
2740
|
+
cancel: function () {
|
|
2741
|
+
callback = null;
|
|
2742
|
+
client.close();
|
|
2743
|
+
}
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
PuppetClient.prototype.corpTagGroupAdd = function corpTagGroupAdd(requestMessage, metadata, callback) {
|
|
2748
|
+
if (arguments.length === 2) {
|
|
2749
|
+
callback = arguments[1];
|
|
2750
|
+
}
|
|
2751
|
+
var client = grpc.unary(Puppet.CorpTagGroupAdd, {
|
|
2752
|
+
request: requestMessage,
|
|
2753
|
+
host: this.serviceHost,
|
|
2754
|
+
metadata: metadata,
|
|
2755
|
+
transport: this.options.transport,
|
|
2756
|
+
debug: this.options.debug,
|
|
2757
|
+
onEnd: function (response) {
|
|
2758
|
+
if (callback) {
|
|
2759
|
+
if (response.status !== grpc.Code.OK) {
|
|
2760
|
+
var err = new Error(response.statusMessage);
|
|
2761
|
+
err.code = response.status;
|
|
2762
|
+
err.metadata = response.trailers;
|
|
2763
|
+
callback(err, null);
|
|
2764
|
+
} else {
|
|
2765
|
+
callback(null, response.message);
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
});
|
|
2770
|
+
return {
|
|
2771
|
+
cancel: function () {
|
|
2772
|
+
callback = null;
|
|
2773
|
+
client.close();
|
|
2774
|
+
}
|
|
2775
|
+
};
|
|
2776
|
+
};
|
|
2777
|
+
|
|
2778
|
+
PuppetClient.prototype.corpTagGroupDelete = function corpTagGroupDelete(requestMessage, metadata, callback) {
|
|
2779
|
+
if (arguments.length === 2) {
|
|
2780
|
+
callback = arguments[1];
|
|
2781
|
+
}
|
|
2782
|
+
var client = grpc.unary(Puppet.CorpTagGroupDelete, {
|
|
2783
|
+
request: requestMessage,
|
|
2784
|
+
host: this.serviceHost,
|
|
2785
|
+
metadata: metadata,
|
|
2786
|
+
transport: this.options.transport,
|
|
2787
|
+
debug: this.options.debug,
|
|
2788
|
+
onEnd: function (response) {
|
|
2789
|
+
if (callback) {
|
|
2790
|
+
if (response.status !== grpc.Code.OK) {
|
|
2791
|
+
var err = new Error(response.statusMessage);
|
|
2792
|
+
err.code = response.status;
|
|
2793
|
+
err.metadata = response.trailers;
|
|
2794
|
+
callback(err, null);
|
|
2795
|
+
} else {
|
|
2796
|
+
callback(null, response.message);
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
});
|
|
2801
|
+
return {
|
|
2802
|
+
cancel: function () {
|
|
2803
|
+
callback = null;
|
|
2804
|
+
client.close();
|
|
2805
|
+
}
|
|
2806
|
+
};
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
PuppetClient.prototype.corpTagTagAdd = function corpTagTagAdd(requestMessage, metadata, callback) {
|
|
2810
|
+
if (arguments.length === 2) {
|
|
2811
|
+
callback = arguments[1];
|
|
2812
|
+
}
|
|
2813
|
+
var client = grpc.unary(Puppet.CorpTagTagAdd, {
|
|
2814
|
+
request: requestMessage,
|
|
2815
|
+
host: this.serviceHost,
|
|
2816
|
+
metadata: metadata,
|
|
2817
|
+
transport: this.options.transport,
|
|
2818
|
+
debug: this.options.debug,
|
|
2819
|
+
onEnd: function (response) {
|
|
2820
|
+
if (callback) {
|
|
2821
|
+
if (response.status !== grpc.Code.OK) {
|
|
2822
|
+
var err = new Error(response.statusMessage);
|
|
2823
|
+
err.code = response.status;
|
|
2824
|
+
err.metadata = response.trailers;
|
|
2825
|
+
callback(err, null);
|
|
2826
|
+
} else {
|
|
2827
|
+
callback(null, response.message);
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2832
|
+
return {
|
|
2833
|
+
cancel: function () {
|
|
2834
|
+
callback = null;
|
|
2835
|
+
client.close();
|
|
2836
|
+
}
|
|
2837
|
+
};
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
PuppetClient.prototype.corpTagTagDelete = function corpTagTagDelete(requestMessage, metadata, callback) {
|
|
2841
|
+
if (arguments.length === 2) {
|
|
2842
|
+
callback = arguments[1];
|
|
2843
|
+
}
|
|
2844
|
+
var client = grpc.unary(Puppet.CorpTagTagDelete, {
|
|
2845
|
+
request: requestMessage,
|
|
2846
|
+
host: this.serviceHost,
|
|
2847
|
+
metadata: metadata,
|
|
2848
|
+
transport: this.options.transport,
|
|
2849
|
+
debug: this.options.debug,
|
|
2850
|
+
onEnd: function (response) {
|
|
2851
|
+
if (callback) {
|
|
2852
|
+
if (response.status !== grpc.Code.OK) {
|
|
2853
|
+
var err = new Error(response.statusMessage);
|
|
2854
|
+
err.code = response.status;
|
|
2855
|
+
err.metadata = response.trailers;
|
|
2856
|
+
callback(err, null);
|
|
2857
|
+
} else {
|
|
2858
|
+
callback(null, response.message);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
});
|
|
2863
|
+
return {
|
|
2864
|
+
cancel: function () {
|
|
2865
|
+
callback = null;
|
|
2866
|
+
client.close();
|
|
2867
|
+
}
|
|
2868
|
+
};
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
PuppetClient.prototype.corpTagGroupList = function corpTagGroupList(requestMessage, metadata, callback) {
|
|
2872
|
+
if (arguments.length === 2) {
|
|
2873
|
+
callback = arguments[1];
|
|
2874
|
+
}
|
|
2875
|
+
var client = grpc.unary(Puppet.CorpTagGroupList, {
|
|
2876
|
+
request: requestMessage,
|
|
2877
|
+
host: this.serviceHost,
|
|
2878
|
+
metadata: metadata,
|
|
2879
|
+
transport: this.options.transport,
|
|
2880
|
+
debug: this.options.debug,
|
|
2881
|
+
onEnd: function (response) {
|
|
2882
|
+
if (callback) {
|
|
2883
|
+
if (response.status !== grpc.Code.OK) {
|
|
2884
|
+
var err = new Error(response.statusMessage);
|
|
2885
|
+
err.code = response.status;
|
|
2886
|
+
err.metadata = response.trailers;
|
|
2887
|
+
callback(err, null);
|
|
2888
|
+
} else {
|
|
2889
|
+
callback(null, response.message);
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
});
|
|
2894
|
+
return {
|
|
2895
|
+
cancel: function () {
|
|
2896
|
+
callback = null;
|
|
2897
|
+
client.close();
|
|
2898
|
+
}
|
|
2899
|
+
};
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
PuppetClient.prototype.corpTagTagList = function corpTagTagList(requestMessage, metadata, callback) {
|
|
2903
|
+
if (arguments.length === 2) {
|
|
2904
|
+
callback = arguments[1];
|
|
2905
|
+
}
|
|
2906
|
+
var client = grpc.unary(Puppet.CorpTagTagList, {
|
|
2907
|
+
request: requestMessage,
|
|
2908
|
+
host: this.serviceHost,
|
|
2909
|
+
metadata: metadata,
|
|
2910
|
+
transport: this.options.transport,
|
|
2911
|
+
debug: this.options.debug,
|
|
2912
|
+
onEnd: function (response) {
|
|
2913
|
+
if (callback) {
|
|
2914
|
+
if (response.status !== grpc.Code.OK) {
|
|
2915
|
+
var err = new Error(response.statusMessage);
|
|
2916
|
+
err.code = response.status;
|
|
2917
|
+
err.metadata = response.trailers;
|
|
2918
|
+
callback(err, null);
|
|
2919
|
+
} else {
|
|
2920
|
+
callback(null, response.message);
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
});
|
|
2925
|
+
return {
|
|
2926
|
+
cancel: function () {
|
|
2927
|
+
callback = null;
|
|
2928
|
+
client.close();
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
};
|
|
2932
|
+
|
|
2933
|
+
PuppetClient.prototype.corpTagContactTagList = function corpTagContactTagList(requestMessage, metadata, callback) {
|
|
2934
|
+
if (arguments.length === 2) {
|
|
2935
|
+
callback = arguments[1];
|
|
2936
|
+
}
|
|
2937
|
+
var client = grpc.unary(Puppet.CorpTagContactTagList, {
|
|
2938
|
+
request: requestMessage,
|
|
2939
|
+
host: this.serviceHost,
|
|
2940
|
+
metadata: metadata,
|
|
2941
|
+
transport: this.options.transport,
|
|
2942
|
+
debug: this.options.debug,
|
|
2943
|
+
onEnd: function (response) {
|
|
2944
|
+
if (callback) {
|
|
2945
|
+
if (response.status !== grpc.Code.OK) {
|
|
2946
|
+
var err = new Error(response.statusMessage);
|
|
2947
|
+
err.code = response.status;
|
|
2948
|
+
err.metadata = response.trailers;
|
|
2949
|
+
callback(err, null);
|
|
2950
|
+
} else {
|
|
2951
|
+
callback(null, response.message);
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
});
|
|
2956
|
+
return {
|
|
2957
|
+
cancel: function () {
|
|
2958
|
+
callback = null;
|
|
2959
|
+
client.close();
|
|
2960
|
+
}
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2563
2964
|
PuppetClient.prototype.download = function download(requestMessage, metadata) {
|
|
2564
2965
|
var listeners = {
|
|
2565
2966
|
data: [],
|