@juzi/wechaty-grpc 1.0.54 → 1.0.56

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 (55) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +101 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +761 -0
  3. package/dist/cjs/out/wechaty/puppet/util_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/util_pb.d.ts +13 -0
  5. package/dist/cjs/out/wechaty/puppet/util_pb.js +28 -0
  6. package/dist/cjs/out/wechaty/puppet/util_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/util_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +88 -1
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +129 -1
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  12. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  13. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  14. package/dist/cjs/proto/wechaty/puppet/room.proto +22 -0
  15. package/dist/cjs/proto/wechaty/puppet/util.proto +12 -0
  16. package/dist/cjs/proto/wechaty/puppet.proto +12 -0
  17. package/dist/cjs/src/package-json.js +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +101 -0
  22. package/dist/esm/out/wechaty/puppet/room_pb.js +761 -0
  23. package/dist/esm/out/wechaty/puppet/util_grpc_pb.js +1 -0
  24. package/dist/esm/out/wechaty/puppet/util_pb.d.ts +13 -0
  25. package/dist/esm/out/wechaty/puppet/util_pb.js +28 -0
  26. package/dist/esm/out/wechaty/puppet/util_pb_service.d.ts +3 -0
  27. package/dist/esm/out/wechaty/puppet/util_pb_service.js +3 -0
  28. package/dist/esm/out/wechaty/puppet.openapi.yaml +88 -1
  29. package/dist/esm/out/wechaty/puppet.swagger.json +129 -1
  30. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  31. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  32. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  33. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  34. package/dist/esm/proto/wechaty/puppet/room.proto +22 -0
  35. package/dist/esm/proto/wechaty/puppet/util.proto +12 -0
  36. package/dist/esm/proto/wechaty/puppet.proto +12 -0
  37. package/dist/esm/src/package-json.js +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +10 -0
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/room_pb.d.ts +101 -0
  42. package/out/wechaty/puppet/room_pb.js +761 -0
  43. package/out/wechaty/puppet/util_grpc_pb.js +1 -0
  44. package/out/wechaty/puppet/util_pb.d.ts +13 -0
  45. package/out/wechaty/puppet/util_pb.js +28 -0
  46. package/out/wechaty/puppet/util_pb_service.d.ts +3 -0
  47. package/out/wechaty/puppet/util_pb_service.js +3 -0
  48. package/out/wechaty/puppet.openapi.yaml +88 -1
  49. package/out/wechaty/puppet.swagger.json +129 -1
  50. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  51. package/out/wechaty/puppet_grpc_pb.js +66 -0
  52. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  53. package/out/wechaty/puppet_pb_service.js +80 -0
  54. package/package.json +1 -1
  55. package/src/package-json.ts +1 -1
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,13 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/util.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+
6
+ export interface Bool_OptionalMap {
7
+ BOOL_UNSET: 0;
8
+ BOOL_FALSE: 1;
9
+ BOOL_TRUE: 2;
10
+ }
11
+
12
+ export const Bool_Optional: Bool_OptionalMap;
13
+
@@ -0,0 +1,28 @@
1
+ // source: wechaty/puppet/util.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ goog.exportSymbol('proto.wechaty.puppet.Bool_Optional', null, global);
19
+ /**
20
+ * @enum {number}
21
+ */
22
+ proto.wechaty.puppet.Bool_Optional = {
23
+ BOOL_UNSET: 0,
24
+ BOOL_FALSE: 1,
25
+ BOOL_TRUE: 2
26
+ };
27
+
28
+ goog.object.extend(exports, proto.wechaty.puppet);
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/util.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/util.proto
3
+
@@ -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.54
12
+ version: 1.0.56
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -1774,6 +1774,52 @@ paths:
1774
1774
  type: string
1775
1775
  tags:
1776
1776
  - Puppet
1777
+ '/rooms/{id}/permission':
1778
+ get:
1779
+ operationId: Puppet_RoomPermission
1780
+ responses:
1781
+ '200':
1782
+ description: A successful response.
1783
+ schema:
1784
+ $ref: '#/definitions/puppetRoomPermissionResponse'
1785
+ default:
1786
+ description: An unexpected error response.
1787
+ schema:
1788
+ $ref: '#/definitions/rpcStatus'
1789
+ parameters:
1790
+ - name: id
1791
+ in: path
1792
+ required: true
1793
+ type: string
1794
+ - name: sendMessage
1795
+ in: query
1796
+ required: false
1797
+ type: string
1798
+ enum:
1799
+ - BOOL_UNSET
1800
+ - BOOL_FALSE
1801
+ - BOOL_TRUE
1802
+ default: BOOL_UNSET
1803
+ - name: invitationCheck
1804
+ in: query
1805
+ required: false
1806
+ type: string
1807
+ enum:
1808
+ - BOOL_UNSET
1809
+ - BOOL_FALSE
1810
+ - BOOL_TRUE
1811
+ default: BOOL_UNSET
1812
+ - name: roomTopicEdit
1813
+ in: query
1814
+ required: false
1815
+ type: string
1816
+ enum:
1817
+ - BOOL_UNSET
1818
+ - BOOL_FALSE
1819
+ - BOOL_TRUE
1820
+ default: BOOL_UNSET
1821
+ tags:
1822
+ - Puppet
1777
1823
  '/rooms/{id}/qrcode':
1778
1824
  get:
1779
1825
  operationId: Puppet_RoomQRCode
@@ -1844,6 +1890,29 @@ paths:
1844
1890
  type: string
1845
1891
  tags:
1846
1892
  - Puppet
1893
+ '/rooms/{id}/transfer/{contactId}':
1894
+ post:
1895
+ operationId: Puppet_RoomOwnerTransfer
1896
+ responses:
1897
+ '200':
1898
+ description: A successful response.
1899
+ schema:
1900
+ $ref: '#/definitions/puppetRoomOwnerTransferResponse'
1901
+ default:
1902
+ description: An unexpected error response.
1903
+ schema:
1904
+ $ref: '#/definitions/rpcStatus'
1905
+ parameters:
1906
+ - name: id
1907
+ in: path
1908
+ required: true
1909
+ type: string
1910
+ - name: contactId
1911
+ in: path
1912
+ required: true
1913
+ type: string
1914
+ tags:
1915
+ - Puppet
1847
1916
  /start:
1848
1917
  put:
1849
1918
  summary: '*'
@@ -2238,6 +2307,13 @@ definitions:
2238
2307
  '@type':
2239
2308
  type: string
2240
2309
  additionalProperties: {}
2310
+ puppetBool_Optional:
2311
+ type: string
2312
+ enum:
2313
+ - BOOL_UNSET
2314
+ - BOOL_FALSE
2315
+ - BOOL_TRUE
2316
+ default: BOOL_UNSET
2241
2317
  puppetBroadcastStatus:
2242
2318
  type: string
2243
2319
  enum:
@@ -3320,6 +3396,8 @@ definitions:
3320
3396
  format: double
3321
3397
  joinScene:
3322
3398
  $ref: '#/definitions/puppetRoomMemberJoinSceneType'
3399
+ puppetRoomOwnerTransferResponse:
3400
+ type: object
3323
3401
  puppetRoomPayloadResponse:
3324
3402
  type: object
3325
3403
  properties:
@@ -3351,6 +3429,15 @@ definitions:
3351
3429
  type: string
3352
3430
  roomRemark:
3353
3431
  type: string
3432
+ puppetRoomPermissionResponse:
3433
+ type: object
3434
+ properties:
3435
+ sendMessage:
3436
+ type: boolean
3437
+ invitationCheck:
3438
+ type: boolean
3439
+ roomTopicEdit:
3440
+ type: boolean
3354
3441
  puppetRoomQRCodeResponse:
3355
3442
  type: object
3356
3443
  properties:
@@ -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.54",
6
+ "version": "1.0.56",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2631,6 +2631,72 @@
2631
2631
  ]
2632
2632
  }
2633
2633
  },
2634
+ "/rooms/{id}/permission": {
2635
+ "get": {
2636
+ "operationId": "Puppet_RoomPermission",
2637
+ "responses": {
2638
+ "200": {
2639
+ "description": "A successful response.",
2640
+ "schema": {
2641
+ "$ref": "#/definitions/puppetRoomPermissionResponse"
2642
+ }
2643
+ },
2644
+ "default": {
2645
+ "description": "An unexpected error response.",
2646
+ "schema": {
2647
+ "$ref": "#/definitions/rpcStatus"
2648
+ }
2649
+ }
2650
+ },
2651
+ "parameters": [
2652
+ {
2653
+ "name": "id",
2654
+ "in": "path",
2655
+ "required": true,
2656
+ "type": "string"
2657
+ },
2658
+ {
2659
+ "name": "sendMessage",
2660
+ "in": "query",
2661
+ "required": false,
2662
+ "type": "string",
2663
+ "enum": [
2664
+ "BOOL_UNSET",
2665
+ "BOOL_FALSE",
2666
+ "BOOL_TRUE"
2667
+ ],
2668
+ "default": "BOOL_UNSET"
2669
+ },
2670
+ {
2671
+ "name": "invitationCheck",
2672
+ "in": "query",
2673
+ "required": false,
2674
+ "type": "string",
2675
+ "enum": [
2676
+ "BOOL_UNSET",
2677
+ "BOOL_FALSE",
2678
+ "BOOL_TRUE"
2679
+ ],
2680
+ "default": "BOOL_UNSET"
2681
+ },
2682
+ {
2683
+ "name": "roomTopicEdit",
2684
+ "in": "query",
2685
+ "required": false,
2686
+ "type": "string",
2687
+ "enum": [
2688
+ "BOOL_UNSET",
2689
+ "BOOL_FALSE",
2690
+ "BOOL_TRUE"
2691
+ ],
2692
+ "default": "BOOL_UNSET"
2693
+ }
2694
+ ],
2695
+ "tags": [
2696
+ "Puppet"
2697
+ ]
2698
+ }
2699
+ },
2634
2700
  "/rooms/{id}/qrcode": {
2635
2701
  "get": {
2636
2702
  "operationId": "Puppet_RoomQRCode",
@@ -2740,6 +2806,42 @@
2740
2806
  ]
2741
2807
  }
2742
2808
  },
2809
+ "/rooms/{id}/transfer/{contactId}": {
2810
+ "post": {
2811
+ "operationId": "Puppet_RoomOwnerTransfer",
2812
+ "responses": {
2813
+ "200": {
2814
+ "description": "A successful response.",
2815
+ "schema": {
2816
+ "$ref": "#/definitions/puppetRoomOwnerTransferResponse"
2817
+ }
2818
+ },
2819
+ "default": {
2820
+ "description": "An unexpected error response.",
2821
+ "schema": {
2822
+ "$ref": "#/definitions/rpcStatus"
2823
+ }
2824
+ }
2825
+ },
2826
+ "parameters": [
2827
+ {
2828
+ "name": "id",
2829
+ "in": "path",
2830
+ "required": true,
2831
+ "type": "string"
2832
+ },
2833
+ {
2834
+ "name": "contactId",
2835
+ "in": "path",
2836
+ "required": true,
2837
+ "type": "string"
2838
+ }
2839
+ ],
2840
+ "tags": [
2841
+ "Puppet"
2842
+ ]
2843
+ }
2844
+ },
2743
2845
  "/start": {
2744
2846
  "put": {
2745
2847
  "summary": "*",
@@ -3342,6 +3444,15 @@
3342
3444
  },
3343
3445
  "additionalProperties": {}
3344
3446
  },
3447
+ "puppetBool_Optional": {
3448
+ "type": "string",
3449
+ "enum": [
3450
+ "BOOL_UNSET",
3451
+ "BOOL_FALSE",
3452
+ "BOOL_TRUE"
3453
+ ],
3454
+ "default": "BOOL_UNSET"
3455
+ },
3345
3456
  "puppetBroadcastStatus": {
3346
3457
  "type": "string",
3347
3458
  "enum": [
@@ -4685,6 +4796,9 @@
4685
4796
  }
4686
4797
  }
4687
4798
  },
4799
+ "puppetRoomOwnerTransferResponse": {
4800
+ "type": "object"
4801
+ },
4688
4802
  "puppetRoomPayloadResponse": {
4689
4803
  "type": "object",
4690
4804
  "properties": {
@@ -4729,6 +4843,20 @@
4729
4843
  }
4730
4844
  }
4731
4845
  },
4846
+ "puppetRoomPermissionResponse": {
4847
+ "type": "object",
4848
+ "properties": {
4849
+ "sendMessage": {
4850
+ "type": "boolean"
4851
+ },
4852
+ "invitationCheck": {
4853
+ "type": "boolean"
4854
+ },
4855
+ "roomTopicEdit": {
4856
+ "type": "boolean"
4857
+ }
4858
+ }
4859
+ },
4732
4860
  "puppetRoomQRCodeResponse": {
4733
4861
  "type": "object",
4734
4862
  "properties": {
@@ -82,6 +82,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
82
82
  roomRemark: IPuppetService_IRoomRemark;
83
83
  roomQRCode: IPuppetService_IRoomQRCode;
84
84
  roomAnnounce: IPuppetService_IRoomAnnounce;
85
+ roomOwnerTransfer: IPuppetService_IRoomOwnerTransfer;
86
+ roomPermission: IPuppetService_IRoomPermission;
85
87
  roomMemberPayload: IPuppetService_IRoomMemberPayload;
86
88
  roomMemberList: IPuppetService_IRoomMemberList;
87
89
  roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
@@ -642,6 +644,24 @@ interface IPuppetService_IRoomAnnounce extends grpc.MethodDefinition<wechaty_pup
642
644
  responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAnnounceResponse>;
643
645
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAnnounceResponse>;
644
646
  }
647
+ interface IPuppetService_IRoomOwnerTransfer extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse> {
648
+ path: "/wechaty.Puppet/RoomOwnerTransfer";
649
+ requestStream: false;
650
+ responseStream: false;
651
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomOwnerTransferRequest>;
652
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomOwnerTransferRequest>;
653
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
654
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
655
+ }
656
+ interface IPuppetService_IRoomPermission extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse> {
657
+ path: "/wechaty.Puppet/RoomPermission";
658
+ requestStream: false;
659
+ responseStream: false;
660
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPermissionRequest>;
661
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPermissionRequest>;
662
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
663
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
664
+ }
645
665
  interface IPuppetService_IRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse> {
646
666
  path: "/wechaty.Puppet/RoomMemberPayload";
647
667
  requestStream: false;
@@ -948,6 +968,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
948
968
  roomRemark: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomRemarkRequest, wechaty_puppet_room_pb.RoomRemarkResponse>;
949
969
  roomQRCode: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomQRCodeRequest, wechaty_puppet_room_pb.RoomQRCodeResponse>;
950
970
  roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
971
+ roomOwnerTransfer: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
972
+ roomPermission: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse>;
951
973
  roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
952
974
  roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
953
975
  roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
@@ -1154,6 +1176,12 @@ export interface IPuppetClient {
1154
1176
  roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1155
1177
  roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1156
1178
  roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1179
+ roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1180
+ roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1181
+ roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1182
+ roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1183
+ roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1184
+ roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1157
1185
  roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1158
1186
  roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1159
1187
  roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -1415,6 +1443,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1415
1443
  public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1416
1444
  public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1417
1445
  public roomAnnounce(request: wechaty_puppet_room_pb.RoomAnnounceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAnnounceResponse) => void): grpc.ClientUnaryCall;
1446
+ public roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1447
+ public roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1448
+ public roomOwnerTransfer(request: wechaty_puppet_room_pb.RoomOwnerTransferRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomOwnerTransferResponse) => void): grpc.ClientUnaryCall;
1449
+ public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1450
+ public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1451
+ public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
1418
1452
  public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1419
1453
  public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1420
1454
  public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -1417,6 +1417,28 @@ function deserialize_wechaty_puppet_RoomMemberPayloadResponse(buffer_arg) {
1417
1417
  return wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
1418
1418
  }
1419
1419
 
1420
+ function serialize_wechaty_puppet_RoomOwnerTransferRequest(arg) {
1421
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomOwnerTransferRequest)) {
1422
+ throw new Error('Expected argument of type wechaty.puppet.RoomOwnerTransferRequest');
1423
+ }
1424
+ return Buffer.from(arg.serializeBinary());
1425
+ }
1426
+
1427
+ function deserialize_wechaty_puppet_RoomOwnerTransferRequest(buffer_arg) {
1428
+ return wechaty_puppet_room_pb.RoomOwnerTransferRequest.deserializeBinary(new Uint8Array(buffer_arg));
1429
+ }
1430
+
1431
+ function serialize_wechaty_puppet_RoomOwnerTransferResponse(arg) {
1432
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomOwnerTransferResponse)) {
1433
+ throw new Error('Expected argument of type wechaty.puppet.RoomOwnerTransferResponse');
1434
+ }
1435
+ return Buffer.from(arg.serializeBinary());
1436
+ }
1437
+
1438
+ function deserialize_wechaty_puppet_RoomOwnerTransferResponse(buffer_arg) {
1439
+ return wechaty_puppet_room_pb.RoomOwnerTransferResponse.deserializeBinary(new Uint8Array(buffer_arg));
1440
+ }
1441
+
1420
1442
  function serialize_wechaty_puppet_RoomPayloadRequest(arg) {
1421
1443
  if (!(arg instanceof wechaty_puppet_room_pb.RoomPayloadRequest)) {
1422
1444
  throw new Error('Expected argument of type wechaty.puppet.RoomPayloadRequest');
@@ -1439,6 +1461,28 @@ function deserialize_wechaty_puppet_RoomPayloadResponse(buffer_arg) {
1439
1461
  return wechaty_puppet_room_pb.RoomPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
1440
1462
  }
1441
1463
 
1464
+ function serialize_wechaty_puppet_RoomPermissionRequest(arg) {
1465
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomPermissionRequest)) {
1466
+ throw new Error('Expected argument of type wechaty.puppet.RoomPermissionRequest');
1467
+ }
1468
+ return Buffer.from(arg.serializeBinary());
1469
+ }
1470
+
1471
+ function deserialize_wechaty_puppet_RoomPermissionRequest(buffer_arg) {
1472
+ return wechaty_puppet_room_pb.RoomPermissionRequest.deserializeBinary(new Uint8Array(buffer_arg));
1473
+ }
1474
+
1475
+ function serialize_wechaty_puppet_RoomPermissionResponse(arg) {
1476
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomPermissionResponse)) {
1477
+ throw new Error('Expected argument of type wechaty.puppet.RoomPermissionResponse');
1478
+ }
1479
+ return Buffer.from(arg.serializeBinary());
1480
+ }
1481
+
1482
+ function deserialize_wechaty_puppet_RoomPermissionResponse(buffer_arg) {
1483
+ return wechaty_puppet_room_pb.RoomPermissionResponse.deserializeBinary(new Uint8Array(buffer_arg));
1484
+ }
1485
+
1442
1486
  function serialize_wechaty_puppet_RoomQRCodeRequest(arg) {
1443
1487
  if (!(arg instanceof wechaty_puppet_room_pb.RoomQRCodeRequest)) {
1444
1488
  throw new Error('Expected argument of type wechaty.puppet.RoomQRCodeRequest');
@@ -2590,6 +2634,28 @@ roomPayload: {
2590
2634
  responseSerialize: serialize_wechaty_puppet_RoomAnnounceResponse,
2591
2635
  responseDeserialize: deserialize_wechaty_puppet_RoomAnnounceResponse,
2592
2636
  },
2637
+ roomOwnerTransfer: {
2638
+ path: '/wechaty.Puppet/RoomOwnerTransfer',
2639
+ requestStream: false,
2640
+ responseStream: false,
2641
+ requestType: wechaty_puppet_room_pb.RoomOwnerTransferRequest,
2642
+ responseType: wechaty_puppet_room_pb.RoomOwnerTransferResponse,
2643
+ requestSerialize: serialize_wechaty_puppet_RoomOwnerTransferRequest,
2644
+ requestDeserialize: deserialize_wechaty_puppet_RoomOwnerTransferRequest,
2645
+ responseSerialize: serialize_wechaty_puppet_RoomOwnerTransferResponse,
2646
+ responseDeserialize: deserialize_wechaty_puppet_RoomOwnerTransferResponse,
2647
+ },
2648
+ roomPermission: {
2649
+ path: '/wechaty.Puppet/RoomPermission',
2650
+ requestStream: false,
2651
+ responseStream: false,
2652
+ requestType: wechaty_puppet_room_pb.RoomPermissionRequest,
2653
+ responseType: wechaty_puppet_room_pb.RoomPermissionResponse,
2654
+ requestSerialize: serialize_wechaty_puppet_RoomPermissionRequest,
2655
+ requestDeserialize: deserialize_wechaty_puppet_RoomPermissionRequest,
2656
+ responseSerialize: serialize_wechaty_puppet_RoomPermissionResponse,
2657
+ responseDeserialize: deserialize_wechaty_puppet_RoomPermissionResponse,
2658
+ },
2593
2659
  // *
2594
2660
  //
2595
2661
  // Room Member
@@ -548,6 +548,24 @@ type PuppetRoomAnnounce = {
548
548
  readonly responseType: typeof wechaty_puppet_room_pb.RoomAnnounceResponse;
549
549
  };
550
550
 
551
+ type PuppetRoomOwnerTransfer = {
552
+ readonly methodName: string;
553
+ readonly service: typeof Puppet;
554
+ readonly requestStream: false;
555
+ readonly responseStream: false;
556
+ readonly requestType: typeof wechaty_puppet_room_pb.RoomOwnerTransferRequest;
557
+ readonly responseType: typeof wechaty_puppet_room_pb.RoomOwnerTransferResponse;
558
+ };
559
+
560
+ type PuppetRoomPermission = {
561
+ readonly methodName: string;
562
+ readonly service: typeof Puppet;
563
+ readonly requestStream: false;
564
+ readonly responseStream: false;
565
+ readonly requestType: typeof wechaty_puppet_room_pb.RoomPermissionRequest;
566
+ readonly responseType: typeof wechaty_puppet_room_pb.RoomPermissionResponse;
567
+ };
568
+
551
569
  type PuppetRoomMemberPayload = {
552
570
  readonly methodName: string;
553
571
  readonly service: typeof Puppet;
@@ -852,6 +870,8 @@ export class Puppet {
852
870
  static readonly RoomRemark: PuppetRoomRemark;
853
871
  static readonly RoomQRCode: PuppetRoomQRCode;
854
872
  static readonly RoomAnnounce: PuppetRoomAnnounce;
873
+ static readonly RoomOwnerTransfer: PuppetRoomOwnerTransfer;
874
+ static readonly RoomPermission: PuppetRoomPermission;
855
875
  static readonly RoomMemberPayload: PuppetRoomMemberPayload;
856
876
  static readonly RoomMemberList: PuppetRoomMemberList;
857
877
  static readonly RoomInvitationPayload: PuppetRoomInvitationPayload;
@@ -1436,6 +1456,24 @@ export class PuppetClient {
1436
1456
  requestMessage: wechaty_puppet_room_pb.RoomAnnounceRequest,
1437
1457
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAnnounceResponse|null) => void
1438
1458
  ): UnaryResponse;
1459
+ roomOwnerTransfer(
1460
+ requestMessage: wechaty_puppet_room_pb.RoomOwnerTransferRequest,
1461
+ metadata: grpc.Metadata,
1462
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomOwnerTransferResponse|null) => void
1463
+ ): UnaryResponse;
1464
+ roomOwnerTransfer(
1465
+ requestMessage: wechaty_puppet_room_pb.RoomOwnerTransferRequest,
1466
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomOwnerTransferResponse|null) => void
1467
+ ): UnaryResponse;
1468
+ roomPermission(
1469
+ requestMessage: wechaty_puppet_room_pb.RoomPermissionRequest,
1470
+ metadata: grpc.Metadata,
1471
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomPermissionResponse|null) => void
1472
+ ): UnaryResponse;
1473
+ roomPermission(
1474
+ requestMessage: wechaty_puppet_room_pb.RoomPermissionRequest,
1475
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomPermissionResponse|null) => void
1476
+ ): UnaryResponse;
1439
1477
  roomMemberPayload(
1440
1478
  requestMessage: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest,
1441
1479
  metadata: grpc.Metadata,
@@ -554,6 +554,24 @@ Puppet.RoomAnnounce = {
554
554
  responseType: wechaty_puppet_room_pb.RoomAnnounceResponse
555
555
  };
556
556
 
557
+ Puppet.RoomOwnerTransfer = {
558
+ methodName: "RoomOwnerTransfer",
559
+ service: Puppet,
560
+ requestStream: false,
561
+ responseStream: false,
562
+ requestType: wechaty_puppet_room_pb.RoomOwnerTransferRequest,
563
+ responseType: wechaty_puppet_room_pb.RoomOwnerTransferResponse
564
+ };
565
+
566
+ Puppet.RoomPermission = {
567
+ methodName: "RoomPermission",
568
+ service: Puppet,
569
+ requestStream: false,
570
+ responseStream: false,
571
+ requestType: wechaty_puppet_room_pb.RoomPermissionRequest,
572
+ responseType: wechaty_puppet_room_pb.RoomPermissionResponse
573
+ };
574
+
557
575
  Puppet.RoomMemberPayload = {
558
576
  methodName: "RoomMemberPayload",
559
577
  service: Puppet,
@@ -2641,6 +2659,68 @@ PuppetClient.prototype.roomAnnounce = function roomAnnounce(requestMessage, meta
2641
2659
  };
2642
2660
  };
2643
2661
 
2662
+ PuppetClient.prototype.roomOwnerTransfer = function roomOwnerTransfer(requestMessage, metadata, callback) {
2663
+ if (arguments.length === 2) {
2664
+ callback = arguments[1];
2665
+ }
2666
+ var client = grpc.unary(Puppet.RoomOwnerTransfer, {
2667
+ request: requestMessage,
2668
+ host: this.serviceHost,
2669
+ metadata: metadata,
2670
+ transport: this.options.transport,
2671
+ debug: this.options.debug,
2672
+ onEnd: function (response) {
2673
+ if (callback) {
2674
+ if (response.status !== grpc.Code.OK) {
2675
+ var err = new Error(response.statusMessage);
2676
+ err.code = response.status;
2677
+ err.metadata = response.trailers;
2678
+ callback(err, null);
2679
+ } else {
2680
+ callback(null, response.message);
2681
+ }
2682
+ }
2683
+ }
2684
+ });
2685
+ return {
2686
+ cancel: function () {
2687
+ callback = null;
2688
+ client.close();
2689
+ }
2690
+ };
2691
+ };
2692
+
2693
+ PuppetClient.prototype.roomPermission = function roomPermission(requestMessage, metadata, callback) {
2694
+ if (arguments.length === 2) {
2695
+ callback = arguments[1];
2696
+ }
2697
+ var client = grpc.unary(Puppet.RoomPermission, {
2698
+ request: requestMessage,
2699
+ host: this.serviceHost,
2700
+ metadata: metadata,
2701
+ transport: this.options.transport,
2702
+ debug: this.options.debug,
2703
+ onEnd: function (response) {
2704
+ if (callback) {
2705
+ if (response.status !== grpc.Code.OK) {
2706
+ var err = new Error(response.statusMessage);
2707
+ err.code = response.status;
2708
+ err.metadata = response.trailers;
2709
+ callback(err, null);
2710
+ } else {
2711
+ callback(null, response.message);
2712
+ }
2713
+ }
2714
+ }
2715
+ });
2716
+ return {
2717
+ cancel: function () {
2718
+ callback = null;
2719
+ client.close();
2720
+ }
2721
+ };
2722
+ };
2723
+
2644
2724
  PuppetClient.prototype.roomMemberPayload = function roomMemberPayload(requestMessage, metadata, callback) {
2645
2725
  if (arguments.length === 2) {
2646
2726
  callback = arguments[1];