@juzi/wechaty-grpc 1.0.12 → 1.0.15
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 +2 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +7 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +57 -2
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +123 -35
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +821 -145
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -14
- package/dist/cjs/out/wechaty/puppet.swagger.json +140 -21
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/base.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +4 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +26 -9
- package/dist/cjs/proto/wechaty/puppet.proto +14 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +7 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +57 -2
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +123 -35
- package/dist/esm/out/wechaty/puppet/tag_pb.js +821 -145
- package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -14
- package/dist/esm/out/wechaty/puppet.swagger.json +140 -21
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/base.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +4 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +26 -9
- package/dist/esm/proto/wechaty/puppet.proto +14 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/out/wechaty/puppet/base_pb.js +3 -1
- package/out/wechaty/puppet/contact_pb.d.ts +7 -0
- package/out/wechaty/puppet/contact_pb.js +57 -2
- package/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/out/wechaty/puppet/event_pb.js +3 -1
- package/out/wechaty/puppet/tag_pb.d.ts +123 -35
- package/out/wechaty/puppet/tag_pb.js +821 -145
- package/out/wechaty/puppet.openapi.yaml +94 -14
- package/out/wechaty/puppet.swagger.json +140 -21
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -1437,6 +1437,28 @@ function deserialize_wechaty_puppet_TagGroupListResponse(buffer_arg) {
|
|
|
1437
1437
|
return wechaty_puppet_tag_pb.TagGroupListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
+
function serialize_wechaty_puppet_TagGroupPayloadRequest(arg) {
|
|
1441
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupPayloadRequest)) {
|
|
1442
|
+
throw new Error('Expected argument of type wechaty.puppet.TagGroupPayloadRequest');
|
|
1443
|
+
}
|
|
1444
|
+
return Buffer.from(arg.serializeBinary());
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
function deserialize_wechaty_puppet_TagGroupPayloadRequest(buffer_arg) {
|
|
1448
|
+
return wechaty_puppet_tag_pb.TagGroupPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
function serialize_wechaty_puppet_TagGroupPayloadResponse(arg) {
|
|
1452
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupPayloadResponse)) {
|
|
1453
|
+
throw new Error('Expected argument of type wechaty.puppet.TagGroupPayloadResponse');
|
|
1454
|
+
}
|
|
1455
|
+
return Buffer.from(arg.serializeBinary());
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
function deserialize_wechaty_puppet_TagGroupPayloadResponse(buffer_arg) {
|
|
1459
|
+
return wechaty_puppet_tag_pb.TagGroupPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1440
1462
|
function serialize_wechaty_puppet_TagGroupTagListRequest(arg) {
|
|
1441
1463
|
if (!(arg instanceof wechaty_puppet_tag_pb.TagGroupTagListRequest)) {
|
|
1442
1464
|
throw new Error('Expected argument of type wechaty.puppet.TagGroupTagListRequest');
|
|
@@ -1459,6 +1481,28 @@ function deserialize_wechaty_puppet_TagGroupTagListResponse(buffer_arg) {
|
|
|
1459
1481
|
return wechaty_puppet_tag_pb.TagGroupTagListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1460
1482
|
}
|
|
1461
1483
|
|
|
1484
|
+
function serialize_wechaty_puppet_TagPayloadRequest(arg) {
|
|
1485
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagPayloadRequest)) {
|
|
1486
|
+
throw new Error('Expected argument of type wechaty.puppet.TagPayloadRequest');
|
|
1487
|
+
}
|
|
1488
|
+
return Buffer.from(arg.serializeBinary());
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
function deserialize_wechaty_puppet_TagPayloadRequest(buffer_arg) {
|
|
1492
|
+
return wechaty_puppet_tag_pb.TagPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
function serialize_wechaty_puppet_TagPayloadResponse(arg) {
|
|
1496
|
+
if (!(arg instanceof wechaty_puppet_tag_pb.TagPayloadResponse)) {
|
|
1497
|
+
throw new Error('Expected argument of type wechaty.puppet.TagPayloadResponse');
|
|
1498
|
+
}
|
|
1499
|
+
return Buffer.from(arg.serializeBinary());
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
function deserialize_wechaty_puppet_TagPayloadResponse(buffer_arg) {
|
|
1503
|
+
return wechaty_puppet_tag_pb.TagPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1462
1506
|
function serialize_wechaty_puppet_TagTagAddRequest(arg) {
|
|
1463
1507
|
if (!(arg instanceof wechaty_puppet_tag_pb.TagTagAddRequest)) {
|
|
1464
1508
|
throw new Error('Expected argument of type wechaty.puppet.TagTagAddRequest');
|
|
@@ -2335,6 +2379,17 @@ tagContactTagAdd: {
|
|
|
2335
2379
|
responseSerialize: serialize_wechaty_puppet_TagGroupDeleteResponse,
|
|
2336
2380
|
responseDeserialize: deserialize_wechaty_puppet_TagGroupDeleteResponse,
|
|
2337
2381
|
},
|
|
2382
|
+
tagGroupPayload: {
|
|
2383
|
+
path: '/wechaty.Puppet/TagGroupPayload',
|
|
2384
|
+
requestStream: false,
|
|
2385
|
+
responseStream: false,
|
|
2386
|
+
requestType: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
2387
|
+
responseType: wechaty_puppet_tag_pb.TagGroupPayloadResponse,
|
|
2388
|
+
requestSerialize: serialize_wechaty_puppet_TagGroupPayloadRequest,
|
|
2389
|
+
requestDeserialize: deserialize_wechaty_puppet_TagGroupPayloadRequest,
|
|
2390
|
+
responseSerialize: serialize_wechaty_puppet_TagGroupPayloadResponse,
|
|
2391
|
+
responseDeserialize: deserialize_wechaty_puppet_TagGroupPayloadResponse,
|
|
2392
|
+
},
|
|
2338
2393
|
tagTagAdd: {
|
|
2339
2394
|
path: '/wechaty.Puppet/TagTagAdd',
|
|
2340
2395
|
requestStream: false,
|
|
@@ -2357,6 +2412,17 @@ tagContactTagAdd: {
|
|
|
2357
2412
|
responseSerialize: serialize_wechaty_puppet_TagTagDeleteResponse,
|
|
2358
2413
|
responseDeserialize: deserialize_wechaty_puppet_TagTagDeleteResponse,
|
|
2359
2414
|
},
|
|
2415
|
+
tagPayload: {
|
|
2416
|
+
path: '/wechaty.Puppet/TagPayload',
|
|
2417
|
+
requestStream: false,
|
|
2418
|
+
responseStream: false,
|
|
2419
|
+
requestType: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
2420
|
+
responseType: wechaty_puppet_tag_pb.TagPayloadResponse,
|
|
2421
|
+
requestSerialize: serialize_wechaty_puppet_TagPayloadRequest,
|
|
2422
|
+
requestDeserialize: deserialize_wechaty_puppet_TagPayloadRequest,
|
|
2423
|
+
responseSerialize: serialize_wechaty_puppet_TagPayloadResponse,
|
|
2424
|
+
responseDeserialize: deserialize_wechaty_puppet_TagPayloadResponse,
|
|
2425
|
+
},
|
|
2360
2426
|
tagGroupList: {
|
|
2361
2427
|
path: '/wechaty.Puppet/TagGroupList',
|
|
2362
2428
|
requestStream: false,
|
|
@@ -582,6 +582,15 @@ type PuppetTagGroupDelete = {
|
|
|
582
582
|
readonly responseType: typeof wechaty_puppet_tag_pb.TagGroupDeleteResponse;
|
|
583
583
|
};
|
|
584
584
|
|
|
585
|
+
type PuppetTagGroupPayload = {
|
|
586
|
+
readonly methodName: string;
|
|
587
|
+
readonly service: typeof Puppet;
|
|
588
|
+
readonly requestStream: false;
|
|
589
|
+
readonly responseStream: false;
|
|
590
|
+
readonly requestType: typeof wechaty_puppet_tag_pb.TagGroupPayloadRequest;
|
|
591
|
+
readonly responseType: typeof wechaty_puppet_tag_pb.TagGroupPayloadResponse;
|
|
592
|
+
};
|
|
593
|
+
|
|
585
594
|
type PuppetTagTagAdd = {
|
|
586
595
|
readonly methodName: string;
|
|
587
596
|
readonly service: typeof Puppet;
|
|
@@ -600,6 +609,15 @@ type PuppetTagTagDelete = {
|
|
|
600
609
|
readonly responseType: typeof wechaty_puppet_tag_pb.TagTagDeleteResponse;
|
|
601
610
|
};
|
|
602
611
|
|
|
612
|
+
type PuppetTagPayload = {
|
|
613
|
+
readonly methodName: string;
|
|
614
|
+
readonly service: typeof Puppet;
|
|
615
|
+
readonly requestStream: false;
|
|
616
|
+
readonly responseStream: false;
|
|
617
|
+
readonly requestType: typeof wechaty_puppet_tag_pb.TagPayloadRequest;
|
|
618
|
+
readonly responseType: typeof wechaty_puppet_tag_pb.TagPayloadResponse;
|
|
619
|
+
};
|
|
620
|
+
|
|
603
621
|
type PuppetTagGroupList = {
|
|
604
622
|
readonly methodName: string;
|
|
605
623
|
readonly service: typeof Puppet;
|
|
@@ -728,8 +746,10 @@ export class Puppet {
|
|
|
728
746
|
static readonly TagContactTagRemove: PuppetTagContactTagRemove;
|
|
729
747
|
static readonly TagGroupAdd: PuppetTagGroupAdd;
|
|
730
748
|
static readonly TagGroupDelete: PuppetTagGroupDelete;
|
|
749
|
+
static readonly TagGroupPayload: PuppetTagGroupPayload;
|
|
731
750
|
static readonly TagTagAdd: PuppetTagTagAdd;
|
|
732
751
|
static readonly TagTagDelete: PuppetTagTagDelete;
|
|
752
|
+
static readonly TagPayload: PuppetTagPayload;
|
|
733
753
|
static readonly TagGroupList: PuppetTagGroupList;
|
|
734
754
|
static readonly TagGroupTagList: PuppetTagGroupTagList;
|
|
735
755
|
static readonly TagTagList: PuppetTagTagList;
|
|
@@ -1306,6 +1326,15 @@ export class PuppetClient {
|
|
|
1306
1326
|
requestMessage: wechaty_puppet_tag_pb.TagGroupDeleteRequest,
|
|
1307
1327
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupDeleteResponse|null) => void
|
|
1308
1328
|
): UnaryResponse;
|
|
1329
|
+
tagGroupPayload(
|
|
1330
|
+
requestMessage: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
1331
|
+
metadata: grpc.Metadata,
|
|
1332
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupPayloadResponse|null) => void
|
|
1333
|
+
): UnaryResponse;
|
|
1334
|
+
tagGroupPayload(
|
|
1335
|
+
requestMessage: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
1336
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagGroupPayloadResponse|null) => void
|
|
1337
|
+
): UnaryResponse;
|
|
1309
1338
|
tagTagAdd(
|
|
1310
1339
|
requestMessage: wechaty_puppet_tag_pb.TagTagAddRequest,
|
|
1311
1340
|
metadata: grpc.Metadata,
|
|
@@ -1324,6 +1353,15 @@ export class PuppetClient {
|
|
|
1324
1353
|
requestMessage: wechaty_puppet_tag_pb.TagTagDeleteRequest,
|
|
1325
1354
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagTagDeleteResponse|null) => void
|
|
1326
1355
|
): UnaryResponse;
|
|
1356
|
+
tagPayload(
|
|
1357
|
+
requestMessage: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
1358
|
+
metadata: grpc.Metadata,
|
|
1359
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagPayloadResponse|null) => void
|
|
1360
|
+
): UnaryResponse;
|
|
1361
|
+
tagPayload(
|
|
1362
|
+
requestMessage: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
1363
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_tag_pb.TagPayloadResponse|null) => void
|
|
1364
|
+
): UnaryResponse;
|
|
1327
1365
|
tagGroupList(
|
|
1328
1366
|
requestMessage: wechaty_puppet_tag_pb.TagGroupListRequest,
|
|
1329
1367
|
metadata: grpc.Metadata,
|
|
@@ -588,6 +588,15 @@ Puppet.TagGroupDelete = {
|
|
|
588
588
|
responseType: wechaty_puppet_tag_pb.TagGroupDeleteResponse
|
|
589
589
|
};
|
|
590
590
|
|
|
591
|
+
Puppet.TagGroupPayload = {
|
|
592
|
+
methodName: "TagGroupPayload",
|
|
593
|
+
service: Puppet,
|
|
594
|
+
requestStream: false,
|
|
595
|
+
responseStream: false,
|
|
596
|
+
requestType: wechaty_puppet_tag_pb.TagGroupPayloadRequest,
|
|
597
|
+
responseType: wechaty_puppet_tag_pb.TagGroupPayloadResponse
|
|
598
|
+
};
|
|
599
|
+
|
|
591
600
|
Puppet.TagTagAdd = {
|
|
592
601
|
methodName: "TagTagAdd",
|
|
593
602
|
service: Puppet,
|
|
@@ -606,6 +615,15 @@ Puppet.TagTagDelete = {
|
|
|
606
615
|
responseType: wechaty_puppet_tag_pb.TagTagDeleteResponse
|
|
607
616
|
};
|
|
608
617
|
|
|
618
|
+
Puppet.TagPayload = {
|
|
619
|
+
methodName: "TagPayload",
|
|
620
|
+
service: Puppet,
|
|
621
|
+
requestStream: false,
|
|
622
|
+
responseStream: false,
|
|
623
|
+
requestType: wechaty_puppet_tag_pb.TagPayloadRequest,
|
|
624
|
+
responseType: wechaty_puppet_tag_pb.TagPayloadResponse
|
|
625
|
+
};
|
|
626
|
+
|
|
609
627
|
Puppet.TagGroupList = {
|
|
610
628
|
methodName: "TagGroupList",
|
|
611
629
|
service: Puppet,
|
|
@@ -2663,6 +2681,37 @@ PuppetClient.prototype.tagGroupDelete = function tagGroupDelete(requestMessage,
|
|
|
2663
2681
|
};
|
|
2664
2682
|
};
|
|
2665
2683
|
|
|
2684
|
+
PuppetClient.prototype.tagGroupPayload = function tagGroupPayload(requestMessage, metadata, callback) {
|
|
2685
|
+
if (arguments.length === 2) {
|
|
2686
|
+
callback = arguments[1];
|
|
2687
|
+
}
|
|
2688
|
+
var client = grpc.unary(Puppet.TagGroupPayload, {
|
|
2689
|
+
request: requestMessage,
|
|
2690
|
+
host: this.serviceHost,
|
|
2691
|
+
metadata: metadata,
|
|
2692
|
+
transport: this.options.transport,
|
|
2693
|
+
debug: this.options.debug,
|
|
2694
|
+
onEnd: function (response) {
|
|
2695
|
+
if (callback) {
|
|
2696
|
+
if (response.status !== grpc.Code.OK) {
|
|
2697
|
+
var err = new Error(response.statusMessage);
|
|
2698
|
+
err.code = response.status;
|
|
2699
|
+
err.metadata = response.trailers;
|
|
2700
|
+
callback(err, null);
|
|
2701
|
+
} else {
|
|
2702
|
+
callback(null, response.message);
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
});
|
|
2707
|
+
return {
|
|
2708
|
+
cancel: function () {
|
|
2709
|
+
callback = null;
|
|
2710
|
+
client.close();
|
|
2711
|
+
}
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2666
2715
|
PuppetClient.prototype.tagTagAdd = function tagTagAdd(requestMessage, metadata, callback) {
|
|
2667
2716
|
if (arguments.length === 2) {
|
|
2668
2717
|
callback = arguments[1];
|
|
@@ -2725,6 +2774,37 @@ PuppetClient.prototype.tagTagDelete = function tagTagDelete(requestMessage, meta
|
|
|
2725
2774
|
};
|
|
2726
2775
|
};
|
|
2727
2776
|
|
|
2777
|
+
PuppetClient.prototype.tagPayload = function tagPayload(requestMessage, metadata, callback) {
|
|
2778
|
+
if (arguments.length === 2) {
|
|
2779
|
+
callback = arguments[1];
|
|
2780
|
+
}
|
|
2781
|
+
var client = grpc.unary(Puppet.TagPayload, {
|
|
2782
|
+
request: requestMessage,
|
|
2783
|
+
host: this.serviceHost,
|
|
2784
|
+
metadata: metadata,
|
|
2785
|
+
transport: this.options.transport,
|
|
2786
|
+
debug: this.options.debug,
|
|
2787
|
+
onEnd: function (response) {
|
|
2788
|
+
if (callback) {
|
|
2789
|
+
if (response.status !== grpc.Code.OK) {
|
|
2790
|
+
var err = new Error(response.statusMessage);
|
|
2791
|
+
err.code = response.status;
|
|
2792
|
+
err.metadata = response.trailers;
|
|
2793
|
+
callback(err, null);
|
|
2794
|
+
} else {
|
|
2795
|
+
callback(null, response.message);
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
return {
|
|
2801
|
+
cancel: function () {
|
|
2802
|
+
callback = null;
|
|
2803
|
+
client.close();
|
|
2804
|
+
}
|
|
2805
|
+
};
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2728
2808
|
PuppetClient.prototype.tagGroupList = function tagGroupList(requestMessage, metadata, callback) {
|
|
2729
2809
|
if (arguments.length === 2) {
|
|
2730
2810
|
callback = arguments[1];
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED