@juzi/wechaty-grpc 1.0.29 → 1.0.30

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.
@@ -729,60 +729,6 @@ type PuppetpostPayloadSayable = {
729
729
  readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadSayableResponse;
730
730
  };
731
731
 
732
- type PuppetMomentPublish = {
733
- readonly methodName: string;
734
- readonly service: typeof Puppet;
735
- readonly requestStream: false;
736
- readonly responseStream: false;
737
- readonly requestType: typeof wechaty_puppet_moment_pb.MomentPublishRequest;
738
- readonly responseType: typeof wechaty_puppet_moment_pb.MomentPublishResponse;
739
- };
740
-
741
- type PuppetPostTap = {
742
- readonly methodName: string;
743
- readonly service: typeof Puppet;
744
- readonly requestStream: false;
745
- readonly responseStream: false;
746
- readonly requestType: typeof wechaty_puppet_post_pb.PostTapRequest;
747
- readonly responseType: typeof wechaty_puppet_post_pb.PostTapResponse;
748
- };
749
-
750
- type PuppetMomentSignature = {
751
- readonly methodName: string;
752
- readonly service: typeof Puppet;
753
- readonly requestStream: false;
754
- readonly responseStream: false;
755
- readonly requestType: typeof wechaty_puppet_moment_pb.MomentSignatureRequest;
756
- readonly responseType: typeof wechaty_puppet_moment_pb.MomentSignatureResponse;
757
- };
758
-
759
- type PuppetMomentCoverage = {
760
- readonly methodName: string;
761
- readonly service: typeof Puppet;
762
- readonly requestStream: false;
763
- readonly responseStream: false;
764
- readonly requestType: typeof wechaty_puppet_moment_pb.MomentCoverageRequest;
765
- readonly responseType: typeof wechaty_puppet_moment_pb.MomentCoverageResponse;
766
- };
767
-
768
- type PuppetPostPayload = {
769
- readonly methodName: string;
770
- readonly service: typeof Puppet;
771
- readonly requestStream: false;
772
- readonly responseStream: false;
773
- readonly requestType: typeof wechaty_puppet_post_pb.PostPayloadRequest;
774
- readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadResponse;
775
- };
776
-
777
- type PuppetPostPayloadSayable = {
778
- readonly methodName: string;
779
- readonly service: typeof Puppet;
780
- readonly requestStream: false;
781
- readonly responseStream: false;
782
- readonly requestType: typeof wechaty_puppet_post_pb.PostPayloadSayableRequest;
783
- readonly responseType: typeof wechaty_puppet_post_pb.PostPayloadSayableResponse;
784
- };
785
-
786
732
  type PuppetMomentVisibleList = {
787
733
  readonly methodName: string;
788
734
  readonly service: typeof Puppet;
@@ -891,12 +837,6 @@ export class Puppet {
891
837
  static readonly momentCoverage: PuppetmomentCoverage;
892
838
  static readonly postPayload: PuppetpostPayload;
893
839
  static readonly postPayloadSayable: PuppetpostPayloadSayable;
894
- static readonly MomentPublish: PuppetMomentPublish;
895
- static readonly PostTap: PuppetPostTap;
896
- static readonly MomentSignature: PuppetMomentSignature;
897
- static readonly MomentCoverage: PuppetMomentCoverage;
898
- static readonly PostPayload: PuppetPostPayload;
899
- static readonly PostPayloadSayable: PuppetPostPayloadSayable;
900
840
  static readonly MomentVisibleList: PuppetMomentVisibleList;
901
841
  static readonly Download: PuppetDownload;
902
842
  static readonly Upload: PuppetUpload;
@@ -1613,60 +1553,6 @@ export class PuppetClient {
1613
1553
  requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
1614
1554
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
1615
1555
  ): UnaryResponse;
1616
- momentPublish(
1617
- requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
1618
- metadata: grpc.Metadata,
1619
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
1620
- ): UnaryResponse;
1621
- momentPublish(
1622
- requestMessage: wechaty_puppet_moment_pb.MomentPublishRequest,
1623
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentPublishResponse|null) => void
1624
- ): UnaryResponse;
1625
- postTap(
1626
- requestMessage: wechaty_puppet_post_pb.PostTapRequest,
1627
- metadata: grpc.Metadata,
1628
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostTapResponse|null) => void
1629
- ): UnaryResponse;
1630
- postTap(
1631
- requestMessage: wechaty_puppet_post_pb.PostTapRequest,
1632
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostTapResponse|null) => void
1633
- ): UnaryResponse;
1634
- momentSignature(
1635
- requestMessage: wechaty_puppet_moment_pb.MomentSignatureRequest,
1636
- metadata: grpc.Metadata,
1637
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentSignatureResponse|null) => void
1638
- ): UnaryResponse;
1639
- momentSignature(
1640
- requestMessage: wechaty_puppet_moment_pb.MomentSignatureRequest,
1641
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentSignatureResponse|null) => void
1642
- ): UnaryResponse;
1643
- momentCoverage(
1644
- requestMessage: wechaty_puppet_moment_pb.MomentCoverageRequest,
1645
- metadata: grpc.Metadata,
1646
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentCoverageResponse|null) => void
1647
- ): UnaryResponse;
1648
- momentCoverage(
1649
- requestMessage: wechaty_puppet_moment_pb.MomentCoverageRequest,
1650
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_moment_pb.MomentCoverageResponse|null) => void
1651
- ): UnaryResponse;
1652
- postPayload(
1653
- requestMessage: wechaty_puppet_post_pb.PostPayloadRequest,
1654
- metadata: grpc.Metadata,
1655
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadResponse|null) => void
1656
- ): UnaryResponse;
1657
- postPayload(
1658
- requestMessage: wechaty_puppet_post_pb.PostPayloadRequest,
1659
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadResponse|null) => void
1660
- ): UnaryResponse;
1661
- postPayloadSayable(
1662
- requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
1663
- metadata: grpc.Metadata,
1664
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
1665
- ): UnaryResponse;
1666
- postPayloadSayable(
1667
- requestMessage: wechaty_puppet_post_pb.PostPayloadSayableRequest,
1668
- callback: (error: ServiceError|null, responseMessage: wechaty_puppet_post_pb.PostPayloadSayableResponse|null) => void
1669
- ): UnaryResponse;
1670
1556
  momentVisibleList(
1671
1557
  requestMessage: wechaty_puppet_moment_pb.MomentVisibleListRequest,
1672
1558
  metadata: grpc.Metadata,
@@ -735,60 +735,6 @@ Puppet.postPayloadSayable = {
735
735
  responseType: wechaty_puppet_post_pb.PostPayloadSayableResponse
736
736
  };
737
737
 
738
- Puppet.MomentPublish = {
739
- methodName: "MomentPublish",
740
- service: Puppet,
741
- requestStream: false,
742
- responseStream: false,
743
- requestType: wechaty_puppet_moment_pb.MomentPublishRequest,
744
- responseType: wechaty_puppet_moment_pb.MomentPublishResponse
745
- };
746
-
747
- Puppet.PostTap = {
748
- methodName: "PostTap",
749
- service: Puppet,
750
- requestStream: false,
751
- responseStream: false,
752
- requestType: wechaty_puppet_post_pb.PostTapRequest,
753
- responseType: wechaty_puppet_post_pb.PostTapResponse
754
- };
755
-
756
- Puppet.MomentSignature = {
757
- methodName: "MomentSignature",
758
- service: Puppet,
759
- requestStream: false,
760
- responseStream: false,
761
- requestType: wechaty_puppet_moment_pb.MomentSignatureRequest,
762
- responseType: wechaty_puppet_moment_pb.MomentSignatureResponse
763
- };
764
-
765
- Puppet.MomentCoverage = {
766
- methodName: "MomentCoverage",
767
- service: Puppet,
768
- requestStream: false,
769
- responseStream: false,
770
- requestType: wechaty_puppet_moment_pb.MomentCoverageRequest,
771
- responseType: wechaty_puppet_moment_pb.MomentCoverageResponse
772
- };
773
-
774
- Puppet.PostPayload = {
775
- methodName: "PostPayload",
776
- service: Puppet,
777
- requestStream: false,
778
- responseStream: false,
779
- requestType: wechaty_puppet_post_pb.PostPayloadRequest,
780
- responseType: wechaty_puppet_post_pb.PostPayloadResponse
781
- };
782
-
783
- Puppet.PostPayloadSayable = {
784
- methodName: "PostPayloadSayable",
785
- service: Puppet,
786
- requestStream: false,
787
- responseStream: false,
788
- requestType: wechaty_puppet_post_pb.PostPayloadSayableRequest,
789
- responseType: wechaty_puppet_post_pb.PostPayloadSayableResponse
790
- };
791
-
792
738
  Puppet.MomentVisibleList = {
793
739
  methodName: "MomentVisibleList",
794
740
  service: Puppet,
@@ -3306,192 +3252,6 @@ PuppetClient.prototype.postPayloadSayable = function postPayloadSayable(requestM
3306
3252
  };
3307
3253
  };
3308
3254
 
3309
- PuppetClient.prototype.momentPublish = function momentPublish(requestMessage, metadata, callback) {
3310
- if (arguments.length === 2) {
3311
- callback = arguments[1];
3312
- }
3313
- var client = grpc.unary(Puppet.MomentPublish, {
3314
- request: requestMessage,
3315
- host: this.serviceHost,
3316
- metadata: metadata,
3317
- transport: this.options.transport,
3318
- debug: this.options.debug,
3319
- onEnd: function (response) {
3320
- if (callback) {
3321
- if (response.status !== grpc.Code.OK) {
3322
- var err = new Error(response.statusMessage);
3323
- err.code = response.status;
3324
- err.metadata = response.trailers;
3325
- callback(err, null);
3326
- } else {
3327
- callback(null, response.message);
3328
- }
3329
- }
3330
- }
3331
- });
3332
- return {
3333
- cancel: function () {
3334
- callback = null;
3335
- client.close();
3336
- }
3337
- };
3338
- };
3339
-
3340
- PuppetClient.prototype.postTap = function postTap(requestMessage, metadata, callback) {
3341
- if (arguments.length === 2) {
3342
- callback = arguments[1];
3343
- }
3344
- var client = grpc.unary(Puppet.PostTap, {
3345
- request: requestMessage,
3346
- host: this.serviceHost,
3347
- metadata: metadata,
3348
- transport: this.options.transport,
3349
- debug: this.options.debug,
3350
- onEnd: function (response) {
3351
- if (callback) {
3352
- if (response.status !== grpc.Code.OK) {
3353
- var err = new Error(response.statusMessage);
3354
- err.code = response.status;
3355
- err.metadata = response.trailers;
3356
- callback(err, null);
3357
- } else {
3358
- callback(null, response.message);
3359
- }
3360
- }
3361
- }
3362
- });
3363
- return {
3364
- cancel: function () {
3365
- callback = null;
3366
- client.close();
3367
- }
3368
- };
3369
- };
3370
-
3371
- PuppetClient.prototype.momentSignature = function momentSignature(requestMessage, metadata, callback) {
3372
- if (arguments.length === 2) {
3373
- callback = arguments[1];
3374
- }
3375
- var client = grpc.unary(Puppet.MomentSignature, {
3376
- request: requestMessage,
3377
- host: this.serviceHost,
3378
- metadata: metadata,
3379
- transport: this.options.transport,
3380
- debug: this.options.debug,
3381
- onEnd: function (response) {
3382
- if (callback) {
3383
- if (response.status !== grpc.Code.OK) {
3384
- var err = new Error(response.statusMessage);
3385
- err.code = response.status;
3386
- err.metadata = response.trailers;
3387
- callback(err, null);
3388
- } else {
3389
- callback(null, response.message);
3390
- }
3391
- }
3392
- }
3393
- });
3394
- return {
3395
- cancel: function () {
3396
- callback = null;
3397
- client.close();
3398
- }
3399
- };
3400
- };
3401
-
3402
- PuppetClient.prototype.momentCoverage = function momentCoverage(requestMessage, metadata, callback) {
3403
- if (arguments.length === 2) {
3404
- callback = arguments[1];
3405
- }
3406
- var client = grpc.unary(Puppet.MomentCoverage, {
3407
- request: requestMessage,
3408
- host: this.serviceHost,
3409
- metadata: metadata,
3410
- transport: this.options.transport,
3411
- debug: this.options.debug,
3412
- onEnd: function (response) {
3413
- if (callback) {
3414
- if (response.status !== grpc.Code.OK) {
3415
- var err = new Error(response.statusMessage);
3416
- err.code = response.status;
3417
- err.metadata = response.trailers;
3418
- callback(err, null);
3419
- } else {
3420
- callback(null, response.message);
3421
- }
3422
- }
3423
- }
3424
- });
3425
- return {
3426
- cancel: function () {
3427
- callback = null;
3428
- client.close();
3429
- }
3430
- };
3431
- };
3432
-
3433
- PuppetClient.prototype.postPayload = function postPayload(requestMessage, metadata, callback) {
3434
- if (arguments.length === 2) {
3435
- callback = arguments[1];
3436
- }
3437
- var client = grpc.unary(Puppet.PostPayload, {
3438
- request: requestMessage,
3439
- host: this.serviceHost,
3440
- metadata: metadata,
3441
- transport: this.options.transport,
3442
- debug: this.options.debug,
3443
- onEnd: function (response) {
3444
- if (callback) {
3445
- if (response.status !== grpc.Code.OK) {
3446
- var err = new Error(response.statusMessage);
3447
- err.code = response.status;
3448
- err.metadata = response.trailers;
3449
- callback(err, null);
3450
- } else {
3451
- callback(null, response.message);
3452
- }
3453
- }
3454
- }
3455
- });
3456
- return {
3457
- cancel: function () {
3458
- callback = null;
3459
- client.close();
3460
- }
3461
- };
3462
- };
3463
-
3464
- PuppetClient.prototype.postPayloadSayable = function postPayloadSayable(requestMessage, metadata, callback) {
3465
- if (arguments.length === 2) {
3466
- callback = arguments[1];
3467
- }
3468
- var client = grpc.unary(Puppet.PostPayloadSayable, {
3469
- request: requestMessage,
3470
- host: this.serviceHost,
3471
- metadata: metadata,
3472
- transport: this.options.transport,
3473
- debug: this.options.debug,
3474
- onEnd: function (response) {
3475
- if (callback) {
3476
- if (response.status !== grpc.Code.OK) {
3477
- var err = new Error(response.statusMessage);
3478
- err.code = response.status;
3479
- err.metadata = response.trailers;
3480
- callback(err, null);
3481
- } else {
3482
- callback(null, response.message);
3483
- }
3484
- }
3485
- }
3486
- });
3487
- return {
3488
- cancel: function () {
3489
- callback = null;
3490
- client.close();
3491
- }
3492
- };
3493
- };
3494
-
3495
3255
  PuppetClient.prototype.momentVisibleList = function momentVisibleList(requestMessage, metadata, callback) {
3496
3256
  if (arguments.length === 2) {
3497
3257
  callback = arguments[1];
@@ -642,48 +642,6 @@ service Puppet {
642
642
  *
643
643
  */
644
644
 
645
- rpc MomentPublish (puppet.MomentPublishRequest) returns (puppet.MomentPublishResponse) {
646
- option (google.api.http) = {
647
- post: "/moment/publish"
648
- body: "*"
649
- };
650
- }
651
-
652
- rpc PostTap (puppet.PostTapRequest) returns (puppet.PostTapResponse) {
653
- option (google.api.http) = {
654
- post: "/post/like"
655
- body: "*"
656
- };
657
- }
658
-
659
- rpc MomentSignature (puppet.MomentSignatureRequest) returns (puppet.MomentSignatureResponse) {
660
- option (google.api.http) = {
661
- post: "/moment/signature"
662
- body: "*"
663
- };
664
- }
665
-
666
- rpc MomentCoverage (puppet.MomentCoverageRequest) returns (puppet.MomentCoverageResponse) {
667
- option (google.api.http) = {
668
- post: "/moment/coverage"
669
- body: "*"
670
- };
671
- }
672
-
673
- rpc PostPayload (puppet.PostPayloadRequest) returns (puppet.PostPayloadResponse) {
674
- option (google.api.http) = {
675
- post: "/post/payload"
676
- body: "*"
677
- };
678
- }
679
-
680
- rpc PostPayloadSayable (puppet.PostPayloadSayableRequest) returns (puppet.PostPayloadSayableResponse) {
681
- option (google.api.http) = {
682
- post: "/post/sayable"
683
- body: "*"
684
- };
685
- }
686
-
687
645
  rpc MomentVisibleList (puppet.MomentVisibleListRequest) returns (puppet.MomentVisibleListResponse) {
688
646
  option (google.api.http) = {
689
647
  get: "/moment/visibleList"
@@ -1,6 +1,6 @@
1
1
  export const packageJson = {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.29
12
+ version: 1.0.30
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -1056,7 +1056,7 @@ paths:
1056
1056
  - Puppet
1057
1057
  /moment/coverage:
1058
1058
  post:
1059
- operationId: Puppet_MomentCoverage
1059
+ operationId: Puppet_momentCoverage
1060
1060
  responses:
1061
1061
  '200':
1062
1062
  description: A successful response.
@@ -1076,7 +1076,7 @@ paths:
1076
1076
  - Puppet
1077
1077
  /moment/publish:
1078
1078
  post:
1079
- operationId: Puppet_MomentPublish
1079
+ operationId: Puppet_momentPublish
1080
1080
  responses:
1081
1081
  '200':
1082
1082
  description: A successful response.
@@ -1096,7 +1096,7 @@ paths:
1096
1096
  - Puppet
1097
1097
  /moment/signature:
1098
1098
  post:
1099
- operationId: Puppet_MomentSignature
1099
+ operationId: Puppet_momentSignature
1100
1100
  responses:
1101
1101
  '200':
1102
1102
  description: A successful response.
@@ -1130,7 +1130,7 @@ paths:
1130
1130
  - Puppet
1131
1131
  /post/like:
1132
1132
  post:
1133
- operationId: Puppet_PostTap
1133
+ operationId: Puppet_postTap
1134
1134
  responses:
1135
1135
  '200':
1136
1136
  description: A successful response.
@@ -1150,7 +1150,7 @@ paths:
1150
1150
  - Puppet
1151
1151
  /post/payload:
1152
1152
  post:
1153
- operationId: Puppet_PostPayload
1153
+ operationId: Puppet_postPayload
1154
1154
  responses:
1155
1155
  '200':
1156
1156
  description: A successful response.
@@ -1170,7 +1170,7 @@ paths:
1170
1170
  - Puppet
1171
1171
  /post/sayable:
1172
1172
  post:
1173
- operationId: Puppet_PostPayloadSayable
1173
+ operationId: Puppet_postPayloadSayable
1174
1174
  responses:
1175
1175
  '200':
1176
1176
  description: A successful response.
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.29",
6
+ "version": "1.0.30",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -1555,7 +1555,7 @@
1555
1555
  },
1556
1556
  "/moment/coverage": {
1557
1557
  "post": {
1558
- "operationId": "Puppet_MomentCoverage",
1558
+ "operationId": "Puppet_momentCoverage",
1559
1559
  "responses": {
1560
1560
  "200": {
1561
1561
  "description": "A successful response.",
@@ -1587,7 +1587,7 @@
1587
1587
  },
1588
1588
  "/moment/publish": {
1589
1589
  "post": {
1590
- "operationId": "Puppet_MomentPublish",
1590
+ "operationId": "Puppet_momentPublish",
1591
1591
  "responses": {
1592
1592
  "200": {
1593
1593
  "description": "A successful response.",
@@ -1619,7 +1619,7 @@
1619
1619
  },
1620
1620
  "/moment/signature": {
1621
1621
  "post": {
1622
- "operationId": "Puppet_MomentSignature",
1622
+ "operationId": "Puppet_momentSignature",
1623
1623
  "responses": {
1624
1624
  "200": {
1625
1625
  "description": "A successful response.",
@@ -1673,7 +1673,7 @@
1673
1673
  },
1674
1674
  "/post/like": {
1675
1675
  "post": {
1676
- "operationId": "Puppet_PostTap",
1676
+ "operationId": "Puppet_postTap",
1677
1677
  "responses": {
1678
1678
  "200": {
1679
1679
  "description": "A successful response.",
@@ -1705,7 +1705,7 @@
1705
1705
  },
1706
1706
  "/post/payload": {
1707
1707
  "post": {
1708
- "operationId": "Puppet_PostPayload",
1708
+ "operationId": "Puppet_postPayload",
1709
1709
  "responses": {
1710
1710
  "200": {
1711
1711
  "description": "A successful response.",
@@ -1737,7 +1737,7 @@
1737
1737
  },
1738
1738
  "/post/sayable": {
1739
1739
  "post": {
1740
- "operationId": "Puppet_PostPayloadSayable",
1740
+ "operationId": "Puppet_postPayloadSayable",
1741
1741
  "responses": {
1742
1742
  "200": {
1743
1743
  "description": "A successful response.",