@juzi/wechaty-grpc 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/channel_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +53 -0
  5. package/dist/cjs/out/wechaty/puppet/channel_pb.js +380 -0
  6. package/dist/cjs/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/channel_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +102 -0
  9. package/dist/cjs/out/wechaty/puppet/message_pb.js +1500 -721
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +82 -4
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +129 -4
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -0
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  18. package/dist/cjs/proto/wechaty/puppet/channel.proto +17 -0
  19. package/dist/cjs/proto/wechaty/puppet/message.proto +21 -3
  20. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  24. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  25. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  26. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  27. package/dist/esm/out/wechaty/puppet/channel_grpc_pb.js +1 -0
  28. package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +53 -0
  29. package/dist/esm/out/wechaty/puppet/channel_pb.js +380 -0
  30. package/dist/esm/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  31. package/dist/esm/out/wechaty/puppet/channel_pb_service.js +3 -0
  32. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +102 -0
  33. package/dist/esm/out/wechaty/puppet/message_pb.js +1500 -721
  34. package/dist/esm/out/wechaty/puppet.openapi.yaml +82 -4
  35. package/dist/esm/out/wechaty/puppet.swagger.json +129 -4
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  37. package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -0
  38. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  39. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  40. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  42. package/dist/esm/proto/wechaty/puppet/channel.proto +17 -0
  43. package/dist/esm/proto/wechaty/puppet/message.proto +21 -3
  44. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  45. package/dist/esm/src/package-json.js +1 -1
  46. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  47. package/dist/esm/tests/puppet-server-impl.js +10 -0
  48. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  49. package/out/wechaty/puppet/channel_grpc_pb.js +1 -0
  50. package/out/wechaty/puppet/channel_pb.d.ts +53 -0
  51. package/out/wechaty/puppet/channel_pb.js +380 -0
  52. package/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
  53. package/out/wechaty/puppet/channel_pb_service.js +3 -0
  54. package/out/wechaty/puppet/message_pb.d.ts +102 -0
  55. package/out/wechaty/puppet/message_pb.js +1500 -721
  56. package/out/wechaty/puppet.openapi.yaml +82 -4
  57. package/out/wechaty/puppet.swagger.json +129 -4
  58. package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
  59. package/out/wechaty/puppet_grpc_pb.js +67 -0
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  63. package/out/wechaty/puppet_pb_service.js +80 -0
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -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.0
12
+ version: 1.0.3
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -391,6 +391,33 @@ paths:
391
391
  pattern: PAYLOADTYPECONTACT
392
392
  tags:
393
393
  - Puppet
394
+ '/conversations/{conversationId}/channel':
395
+ post:
396
+ operationId: Puppet_MessageSendChannel
397
+ responses:
398
+ '200':
399
+ description: A successful response.
400
+ schema:
401
+ $ref: '#/definitions/puppetMessageSendChannelResponse'
402
+ default:
403
+ description: An unexpected error response.
404
+ schema:
405
+ $ref: '#/definitions/rpcStatus'
406
+ parameters:
407
+ - name: conversationId
408
+ in: path
409
+ required: true
410
+ type: string
411
+ - name: body
412
+ in: body
413
+ required: true
414
+ schema:
415
+ type: object
416
+ properties:
417
+ channel:
418
+ $ref: '#/definitions/puppetChannelPayload'
419
+ tags:
420
+ - Puppet
394
421
  '/conversations/{conversationId}/contact':
395
422
  post:
396
423
  operationId: Puppet_MessageSendContact
@@ -532,9 +559,8 @@ paths:
532
559
  type: array
533
560
  items:
534
561
  type: string
535
- title: |-
536
- Huan(202011) FIXME: Issue #99
537
- https://github.com/wechaty/grpc/issues/99
562
+ quoteId:
563
+ type: string
538
564
  tags:
539
565
  - Puppet
540
566
  '/conversations/{conversationId}/url-link':
@@ -843,6 +869,25 @@ paths:
843
869
  type: string
844
870
  tags:
845
871
  - Puppet
872
+ '/message/{id}/channel':
873
+ get:
874
+ operationId: Puppet_MessageChannel
875
+ responses:
876
+ '200':
877
+ description: A successful response.
878
+ schema:
879
+ $ref: '#/definitions/puppetMessageChannelResponse'
880
+ default:
881
+ description: An unexpected error response.
882
+ schema:
883
+ $ref: '#/definitions/rpcStatus'
884
+ parameters:
885
+ - name: id
886
+ in: path
887
+ required: true
888
+ type: string
889
+ tags:
890
+ - Puppet
846
891
  '/message/{id}/contact':
847
892
  get:
848
893
  operationId: Puppet_MessageContact
@@ -1629,6 +1674,26 @@ definitions:
1629
1674
  '@type':
1630
1675
  type: string
1631
1676
  additionalProperties: {}
1677
+ puppetChannelPayload:
1678
+ type: object
1679
+ properties:
1680
+ avatar:
1681
+ type: string
1682
+ coverUrl:
1683
+ type: string
1684
+ desc:
1685
+ type: string
1686
+ extras:
1687
+ type: string
1688
+ feedType:
1689
+ type: integer
1690
+ format: int32
1691
+ nickname:
1692
+ type: string
1693
+ thumbUrl:
1694
+ type: string
1695
+ url:
1696
+ type: string
1632
1697
  puppetContactAliasResponse:
1633
1698
  type: object
1634
1699
  properties:
@@ -1914,6 +1979,11 @@ definitions:
1914
1979
  type: string
1915
1980
  puppetLogoutResponse:
1916
1981
  type: object
1982
+ puppetMessageChannelResponse:
1983
+ type: object
1984
+ properties:
1985
+ channel:
1986
+ $ref: '#/definitions/puppetChannelPayload'
1917
1987
  puppetMessageContactResponse:
1918
1988
  type: object
1919
1989
  properties:
@@ -2022,11 +2092,18 @@ definitions:
2022
2092
  receiveTime:
2023
2093
  type: string
2024
2094
  format: date-time
2095
+ quoteId:
2096
+ type: string
2025
2097
  puppetMessageRecallResponse:
2026
2098
  type: object
2027
2099
  properties:
2028
2100
  success:
2029
2101
  type: boolean
2102
+ puppetMessageSendChannelResponse:
2103
+ type: object
2104
+ properties:
2105
+ id:
2106
+ type: string
2030
2107
  puppetMessageSendContactResponse:
2031
2108
  type: object
2032
2109
  properties:
@@ -2145,6 +2222,7 @@ definitions:
2145
2222
  - MESSAGE_TYPE_RED_ENVELOPE
2146
2223
  - MESSAGE_TYPE_RECALLED
2147
2224
  - MESSAGE_TYPE_URL
2225
+ - MESSAGE_TYPE_CHANNEL
2148
2226
  default: MESSAGE_TYPE_UNSPECIFIED
2149
2227
  puppetMessageUrlResponse:
2150
2228
  type: object
@@ -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.0",
6
+ "version": "1.0.3",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -579,6 +579,49 @@
579
579
  ]
580
580
  }
581
581
  },
582
+ "/conversations/{conversationId}/channel": {
583
+ "post": {
584
+ "operationId": "Puppet_MessageSendChannel",
585
+ "responses": {
586
+ "200": {
587
+ "description": "A successful response.",
588
+ "schema": {
589
+ "$ref": "#/definitions/puppetMessageSendChannelResponse"
590
+ }
591
+ },
592
+ "default": {
593
+ "description": "An unexpected error response.",
594
+ "schema": {
595
+ "$ref": "#/definitions/rpcStatus"
596
+ }
597
+ }
598
+ },
599
+ "parameters": [
600
+ {
601
+ "name": "conversationId",
602
+ "in": "path",
603
+ "required": true,
604
+ "type": "string"
605
+ },
606
+ {
607
+ "name": "body",
608
+ "in": "body",
609
+ "required": true,
610
+ "schema": {
611
+ "type": "object",
612
+ "properties": {
613
+ "channel": {
614
+ "$ref": "#/definitions/puppetChannelPayload"
615
+ }
616
+ }
617
+ }
618
+ }
619
+ ],
620
+ "tags": [
621
+ "Puppet"
622
+ ]
623
+ }
624
+ },
582
625
  "/conversations/{conversationId}/contact": {
583
626
  "post": {
584
627
  "operationId": "Puppet_MessageSendContact",
@@ -786,8 +829,10 @@
786
829
  "type": "array",
787
830
  "items": {
788
831
  "type": "string"
789
- },
790
- "title": "Huan(202011) FIXME: Issue #99\nhttps://github.com/wechaty/grpc/issues/99"
832
+ }
833
+ },
834
+ "quoteId": {
835
+ "type": "string"
791
836
  }
792
837
  }
793
838
  }
@@ -1235,6 +1280,36 @@
1235
1280
  ]
1236
1281
  }
1237
1282
  },
1283
+ "/message/{id}/channel": {
1284
+ "get": {
1285
+ "operationId": "Puppet_MessageChannel",
1286
+ "responses": {
1287
+ "200": {
1288
+ "description": "A successful response.",
1289
+ "schema": {
1290
+ "$ref": "#/definitions/puppetMessageChannelResponse"
1291
+ }
1292
+ },
1293
+ "default": {
1294
+ "description": "An unexpected error response.",
1295
+ "schema": {
1296
+ "$ref": "#/definitions/rpcStatus"
1297
+ }
1298
+ }
1299
+ },
1300
+ "parameters": [
1301
+ {
1302
+ "name": "id",
1303
+ "in": "path",
1304
+ "required": true,
1305
+ "type": "string"
1306
+ }
1307
+ ],
1308
+ "tags": [
1309
+ "Puppet"
1310
+ ]
1311
+ }
1312
+ },
1238
1313
  "/message/{id}/contact": {
1239
1314
  "get": {
1240
1315
  "operationId": "Puppet_MessageContact",
@@ -2434,6 +2509,36 @@
2434
2509
  },
2435
2510
  "additionalProperties": {}
2436
2511
  },
2512
+ "puppetChannelPayload": {
2513
+ "type": "object",
2514
+ "properties": {
2515
+ "avatar": {
2516
+ "type": "string"
2517
+ },
2518
+ "coverUrl": {
2519
+ "type": "string"
2520
+ },
2521
+ "desc": {
2522
+ "type": "string"
2523
+ },
2524
+ "extras": {
2525
+ "type": "string"
2526
+ },
2527
+ "feedType": {
2528
+ "type": "integer",
2529
+ "format": "int32"
2530
+ },
2531
+ "nickname": {
2532
+ "type": "string"
2533
+ },
2534
+ "thumbUrl": {
2535
+ "type": "string"
2536
+ },
2537
+ "url": {
2538
+ "type": "string"
2539
+ }
2540
+ }
2541
+ },
2437
2542
  "puppetContactAliasResponse": {
2438
2543
  "type": "object",
2439
2544
  "properties": {
@@ -2789,6 +2894,14 @@
2789
2894
  "puppetLogoutResponse": {
2790
2895
  "type": "object"
2791
2896
  },
2897
+ "puppetMessageChannelResponse": {
2898
+ "type": "object",
2899
+ "properties": {
2900
+ "channel": {
2901
+ "$ref": "#/definitions/puppetChannelPayload"
2902
+ }
2903
+ }
2904
+ },
2792
2905
  "puppetMessageContactResponse": {
2793
2906
  "type": "object",
2794
2907
  "properties": {
@@ -2937,6 +3050,9 @@
2937
3050
  "receiveTime": {
2938
3051
  "type": "string",
2939
3052
  "format": "date-time"
3053
+ },
3054
+ "quoteId": {
3055
+ "type": "string"
2940
3056
  }
2941
3057
  }
2942
3058
  },
@@ -2948,6 +3064,14 @@
2948
3064
  }
2949
3065
  }
2950
3066
  },
3067
+ "puppetMessageSendChannelResponse": {
3068
+ "type": "object",
3069
+ "properties": {
3070
+ "id": {
3071
+ "type": "string"
3072
+ }
3073
+ }
3074
+ },
2951
3075
  "puppetMessageSendContactResponse": {
2952
3076
  "type": "object",
2953
3077
  "properties": {
@@ -3069,7 +3193,8 @@
3069
3193
  "MESSAGE_TYPE_TRANSFER",
3070
3194
  "MESSAGE_TYPE_RED_ENVELOPE",
3071
3195
  "MESSAGE_TYPE_RECALLED",
3072
- "MESSAGE_TYPE_URL"
3196
+ "MESSAGE_TYPE_URL",
3197
+ "MESSAGE_TYPE_CHANNEL"
3073
3198
  ],
3074
3199
  "default": "MESSAGE_TYPE_UNSPECIFIED"
3075
3200
  },
@@ -18,6 +18,7 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
18
18
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
19
19
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
20
20
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
21
+ import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
21
22
 
22
23
  interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
23
24
  messageFileStream: IPuppetService_IMessageFileStream;
@@ -53,6 +54,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
53
54
  messageContact: IPuppetService_IMessageContact;
54
55
  messageMiniProgram: IPuppetService_IMessageMiniProgram;
55
56
  messageUrl: IPuppetService_IMessageUrl;
57
+ messageChannel: IPuppetService_IMessageChannel;
56
58
  messageRecall: IPuppetService_IMessageRecall;
57
59
  messageForward: IPuppetService_IMessageForward;
58
60
  messageLocation: IPuppetService_IMessageLocation;
@@ -61,6 +63,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
61
63
  messageSendMiniProgram: IPuppetService_IMessageSendMiniProgram;
62
64
  messageSendUrl: IPuppetService_IMessageSendUrl;
63
65
  messageSendLocation: IPuppetService_IMessageSendLocation;
66
+ messageSendChannel: IPuppetService_IMessageSendChannel;
64
67
  roomPayload: IPuppetService_IRoomPayload;
65
68
  roomList: IPuppetService_IRoomList;
66
69
  roomAdd: IPuppetService_IRoomAdd;
@@ -380,6 +383,15 @@ interface IPuppetService_IMessageUrl extends grpc.MethodDefinition<wechaty_puppe
380
383
  responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageUrlResponse>;
381
384
  responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageUrlResponse>;
382
385
  }
386
+ interface IPuppetService_IMessageChannel extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse> {
387
+ path: "/wechaty.Puppet/MessageChannel";
388
+ requestStream: false;
389
+ responseStream: false;
390
+ requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelRequest>;
391
+ requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelRequest>;
392
+ responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelResponse>;
393
+ responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelResponse>;
394
+ }
383
395
  interface IPuppetService_IMessageRecall extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse> {
384
396
  path: "/wechaty.Puppet/MessageRecall";
385
397
  requestStream: false;
@@ -452,6 +464,15 @@ interface IPuppetService_IMessageSendLocation extends grpc.MethodDefinition<wech
452
464
  responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendLocationResponse>;
453
465
  responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendLocationResponse>;
454
466
  }
467
+ interface IPuppetService_IMessageSendChannel extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse> {
468
+ path: "/wechaty.Puppet/MessageSendChannel";
469
+ requestStream: false;
470
+ responseStream: false;
471
+ requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelRequest>;
472
+ requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelRequest>;
473
+ responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
474
+ responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageSendChannelResponse>;
475
+ }
455
476
  interface IPuppetService_IRoomPayload extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse> {
456
477
  path: "/wechaty.Puppet/RoomPayload";
457
478
  requestStream: false;
@@ -669,6 +690,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
669
690
  messageContact: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageContactRequest, wechaty_puppet_message_pb.MessageContactResponse>;
670
691
  messageMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageMiniProgramRequest, wechaty_puppet_message_pb.MessageMiniProgramResponse>;
671
692
  messageUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageUrlRequest, wechaty_puppet_message_pb.MessageUrlResponse>;
693
+ messageChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse>;
672
694
  messageRecall: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse>;
673
695
  messageForward: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageForwardRequest, wechaty_puppet_message_pb.MessageForwardResponse>;
674
696
  messageLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageLocationRequest, wechaty_puppet_message_pb.MessageLocationResponse>;
@@ -677,6 +699,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
677
699
  messageSendMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendMiniProgramRequest, wechaty_puppet_message_pb.MessageSendMiniProgramResponse>;
678
700
  messageSendUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendUrlRequest, wechaty_puppet_message_pb.MessageSendUrlResponse>;
679
701
  messageSendLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendLocationRequest, wechaty_puppet_message_pb.MessageSendLocationResponse>;
702
+ messageSendChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageSendChannelRequest, wechaty_puppet_message_pb.MessageSendChannelResponse>;
680
703
  roomPayload: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPayloadRequest, wechaty_puppet_room_pb.RoomPayloadResponse>;
681
704
  roomList: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomListRequest, wechaty_puppet_room_pb.RoomListResponse>;
682
705
  roomAdd: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddRequest, wechaty_puppet_room_pb.RoomAddResponse>;
@@ -797,6 +820,9 @@ export interface IPuppetClient {
797
820
  messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
798
821
  messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
799
822
  messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
823
+ messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
824
+ messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
825
+ messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
800
826
  messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
801
827
  messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
802
828
  messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
@@ -821,6 +847,9 @@ export interface IPuppetClient {
821
847
  messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
822
848
  messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
823
849
  messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
850
+ messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
851
+ messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
852
+ messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
824
853
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
825
854
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
826
855
  roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -982,6 +1011,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
982
1011
  public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
983
1012
  public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
984
1013
  public messageUrl(request: wechaty_puppet_message_pb.MessageUrlRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageUrlResponse) => void): grpc.ClientUnaryCall;
1014
+ public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
1015
+ public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
1016
+ public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
985
1017
  public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
986
1018
  public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
987
1019
  public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
@@ -1006,6 +1038,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1006
1038
  public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
1007
1039
  public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
1008
1040
  public messageSendLocation(request: wechaty_puppet_message_pb.MessageSendLocationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendLocationResponse) => void): grpc.ClientUnaryCall;
1041
+ public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
1042
+ public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
1043
+ public messageSendChannel(request: wechaty_puppet_message_pb.MessageSendChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageSendChannelResponse) => void): grpc.ClientUnaryCall;
1009
1044
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
1010
1045
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
1011
1046
  public roomPayload(request: wechaty_puppet_room_pb.RoomPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -27,6 +27,7 @@ var wechaty_puppet_room$invitation_pb = require('../wechaty/puppet/room-invitati
27
27
  var wechaty_puppet_room$member_pb = require('../wechaty/puppet/room-member_pb.js');
28
28
  var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
29
29
  var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
30
+ var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
30
31
 
31
32
  function serialize_wechaty_puppet_ContactAliasRequest(arg) {
32
33
  if (!(arg instanceof wechaty_puppet_contact_pb.ContactAliasRequest)) {
@@ -468,6 +469,28 @@ function deserialize_wechaty_puppet_LogoutResponse(buffer_arg) {
468
469
  return wechaty_puppet_base_pb.LogoutResponse.deserializeBinary(new Uint8Array(buffer_arg));
469
470
  }
470
471
 
472
+ function serialize_wechaty_puppet_MessageChannelRequest(arg) {
473
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelRequest)) {
474
+ throw new Error('Expected argument of type wechaty.puppet.MessageChannelRequest');
475
+ }
476
+ return Buffer.from(arg.serializeBinary());
477
+ }
478
+
479
+ function deserialize_wechaty_puppet_MessageChannelRequest(buffer_arg) {
480
+ return wechaty_puppet_message_pb.MessageChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
481
+ }
482
+
483
+ function serialize_wechaty_puppet_MessageChannelResponse(arg) {
484
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelResponse)) {
485
+ throw new Error('Expected argument of type wechaty.puppet.MessageChannelResponse');
486
+ }
487
+ return Buffer.from(arg.serializeBinary());
488
+ }
489
+
490
+ function deserialize_wechaty_puppet_MessageChannelResponse(buffer_arg) {
491
+ return wechaty_puppet_message_pb.MessageChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
492
+ }
493
+
471
494
  function serialize_wechaty_puppet_MessageContactRequest(arg) {
472
495
  if (!(arg instanceof wechaty_puppet_message_pb.MessageContactRequest)) {
473
496
  throw new Error('Expected argument of type wechaty.puppet.MessageContactRequest');
@@ -688,6 +711,28 @@ function deserialize_wechaty_puppet_MessageRecallResponse(buffer_arg) {
688
711
  return wechaty_puppet_message_pb.MessageRecallResponse.deserializeBinary(new Uint8Array(buffer_arg));
689
712
  }
690
713
 
714
+ function serialize_wechaty_puppet_MessageSendChannelRequest(arg) {
715
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelRequest)) {
716
+ throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelRequest');
717
+ }
718
+ return Buffer.from(arg.serializeBinary());
719
+ }
720
+
721
+ function deserialize_wechaty_puppet_MessageSendChannelRequest(buffer_arg) {
722
+ return wechaty_puppet_message_pb.MessageSendChannelRequest.deserializeBinary(new Uint8Array(buffer_arg));
723
+ }
724
+
725
+ function serialize_wechaty_puppet_MessageSendChannelResponse(arg) {
726
+ if (!(arg instanceof wechaty_puppet_message_pb.MessageSendChannelResponse)) {
727
+ throw new Error('Expected argument of type wechaty.puppet.MessageSendChannelResponse');
728
+ }
729
+ return Buffer.from(arg.serializeBinary());
730
+ }
731
+
732
+ function deserialize_wechaty_puppet_MessageSendChannelResponse(buffer_arg) {
733
+ return wechaty_puppet_message_pb.MessageSendChannelResponse.deserializeBinary(new Uint8Array(buffer_arg));
734
+ }
735
+
691
736
  function serialize_wechaty_puppet_MessageSendContactRequest(arg) {
692
737
  if (!(arg instanceof wechaty_puppet_message_pb.MessageSendContactRequest)) {
693
738
  throw new Error('Expected argument of type wechaty.puppet.MessageSendContactRequest');
@@ -1745,6 +1790,17 @@ messageFile: {
1745
1790
  responseSerialize: serialize_wechaty_puppet_MessageUrlResponse,
1746
1791
  responseDeserialize: deserialize_wechaty_puppet_MessageUrlResponse,
1747
1792
  },
1793
+ messageChannel: {
1794
+ path: '/wechaty.Puppet/MessageChannel',
1795
+ requestStream: false,
1796
+ responseStream: false,
1797
+ requestType: wechaty_puppet_message_pb.MessageChannelRequest,
1798
+ responseType: wechaty_puppet_message_pb.MessageChannelResponse,
1799
+ requestSerialize: serialize_wechaty_puppet_MessageChannelRequest,
1800
+ requestDeserialize: deserialize_wechaty_puppet_MessageChannelRequest,
1801
+ responseSerialize: serialize_wechaty_puppet_MessageChannelResponse,
1802
+ responseDeserialize: deserialize_wechaty_puppet_MessageChannelResponse,
1803
+ },
1748
1804
  messageRecall: {
1749
1805
  path: '/wechaty.Puppet/MessageRecall',
1750
1806
  requestStream: false,
@@ -1833,6 +1889,17 @@ messageFile: {
1833
1889
  responseSerialize: serialize_wechaty_puppet_MessageSendLocationResponse,
1834
1890
  responseDeserialize: deserialize_wechaty_puppet_MessageSendLocationResponse,
1835
1891
  },
1892
+ messageSendChannel: {
1893
+ path: '/wechaty.Puppet/MessageSendChannel',
1894
+ requestStream: false,
1895
+ responseStream: false,
1896
+ requestType: wechaty_puppet_message_pb.MessageSendChannelRequest,
1897
+ responseType: wechaty_puppet_message_pb.MessageSendChannelResponse,
1898
+ requestSerialize: serialize_wechaty_puppet_MessageSendChannelRequest,
1899
+ requestDeserialize: deserialize_wechaty_puppet_MessageSendChannelRequest,
1900
+ responseSerialize: serialize_wechaty_puppet_MessageSendChannelResponse,
1901
+ responseDeserialize: deserialize_wechaty_puppet_MessageSendChannelResponse,
1902
+ },
1836
1903
  // *
1837
1904
  //
1838
1905
  // Room
@@ -15,4 +15,5 @@ import * as wechaty_puppet_room_invitation_pb from "../wechaty/puppet/room-invit
15
15
  import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb";
16
16
  import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
17
17
  import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
18
+ import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
18
19
 
@@ -41,3 +41,5 @@ var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
41
41
  goog.object.extend(proto, wechaty_puppet_room_pb);
42
42
  var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
43
43
  goog.object.extend(proto, wechaty_puppet_tag_pb);
44
+ var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
45
+ goog.object.extend(proto, wechaty_puppet_channel_pb);
@@ -312,6 +312,15 @@ type PuppetMessageUrl = {
312
312
  readonly responseType: typeof wechaty_puppet_message_pb.MessageUrlResponse;
313
313
  };
314
314
 
315
+ type PuppetMessageChannel = {
316
+ readonly methodName: string;
317
+ readonly service: typeof Puppet;
318
+ readonly requestStream: false;
319
+ readonly responseStream: false;
320
+ readonly requestType: typeof wechaty_puppet_message_pb.MessageChannelRequest;
321
+ readonly responseType: typeof wechaty_puppet_message_pb.MessageChannelResponse;
322
+ };
323
+
315
324
  type PuppetMessageRecall = {
316
325
  readonly methodName: string;
317
326
  readonly service: typeof Puppet;
@@ -384,6 +393,15 @@ type PuppetMessageSendLocation = {
384
393
  readonly responseType: typeof wechaty_puppet_message_pb.MessageSendLocationResponse;
385
394
  };
386
395
 
396
+ type PuppetMessageSendChannel = {
397
+ readonly methodName: string;
398
+ readonly service: typeof Puppet;
399
+ readonly requestStream: false;
400
+ readonly responseStream: false;
401
+ readonly requestType: typeof wechaty_puppet_message_pb.MessageSendChannelRequest;
402
+ readonly responseType: typeof wechaty_puppet_message_pb.MessageSendChannelResponse;
403
+ };
404
+
387
405
  type PuppetRoomPayload = {
388
406
  readonly methodName: string;
389
407
  readonly service: typeof Puppet;
@@ -599,6 +617,7 @@ export class Puppet {
599
617
  static readonly MessageContact: PuppetMessageContact;
600
618
  static readonly MessageMiniProgram: PuppetMessageMiniProgram;
601
619
  static readonly MessageUrl: PuppetMessageUrl;
620
+ static readonly MessageChannel: PuppetMessageChannel;
602
621
  static readonly MessageRecall: PuppetMessageRecall;
603
622
  static readonly MessageForward: PuppetMessageForward;
604
623
  static readonly MessageLocation: PuppetMessageLocation;
@@ -607,6 +626,7 @@ export class Puppet {
607
626
  static readonly MessageSendMiniProgram: PuppetMessageSendMiniProgram;
608
627
  static readonly MessageSendUrl: PuppetMessageSendUrl;
609
628
  static readonly MessageSendLocation: PuppetMessageSendLocation;
629
+ static readonly MessageSendChannel: PuppetMessageSendChannel;
610
630
  static readonly RoomPayload: PuppetRoomPayload;
611
631
  static readonly RoomList: PuppetRoomList;
612
632
  static readonly RoomAdd: PuppetRoomAdd;
@@ -926,6 +946,15 @@ export class PuppetClient {
926
946
  requestMessage: wechaty_puppet_message_pb.MessageUrlRequest,
927
947
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageUrlResponse|null) => void
928
948
  ): UnaryResponse;
949
+ messageChannel(
950
+ requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
951
+ metadata: grpc.Metadata,
952
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
953
+ ): UnaryResponse;
954
+ messageChannel(
955
+ requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
956
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
957
+ ): UnaryResponse;
929
958
  messageRecall(
930
959
  requestMessage: wechaty_puppet_message_pb.MessageRecallRequest,
931
960
  metadata: grpc.Metadata,
@@ -998,6 +1027,15 @@ export class PuppetClient {
998
1027
  requestMessage: wechaty_puppet_message_pb.MessageSendLocationRequest,
999
1028
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendLocationResponse|null) => void
1000
1029
  ): UnaryResponse;
1030
+ messageSendChannel(
1031
+ requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
1032
+ metadata: grpc.Metadata,
1033
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
1034
+ ): UnaryResponse;
1035
+ messageSendChannel(
1036
+ requestMessage: wechaty_puppet_message_pb.MessageSendChannelRequest,
1037
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageSendChannelResponse|null) => void
1038
+ ): UnaryResponse;
1001
1039
  roomPayload(
1002
1040
  requestMessage: wechaty_puppet_room_pb.RoomPayloadRequest,
1003
1041
  metadata: grpc.Metadata,