@juzi/wechaty-grpc 1.0.98 → 1.0.99

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 (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +130 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +1047 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +143 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +22 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +130 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +1047 -0
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +143 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  23. package/dist/esm/proto/wechaty/puppet/room.proto +22 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +10 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/room_pb.d.ts +130 -0
  30. package/out/wechaty/puppet/room_pb.js +1047 -0
  31. package/out/wechaty/puppet.openapi.yaml +94 -1
  32. package/out/wechaty/puppet.swagger.json +143 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  34. package/out/wechaty/puppet_grpc_pb.js +66 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  36. package/out/wechaty/puppet_pb_service.js +80 -0
  37. package/package.json +1 -1
  38. 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.98
12
+ version: 1.0.99
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -1793,6 +1793,43 @@ paths:
1793
1793
  collectionFormat: multi
1794
1794
  tags:
1795
1795
  - Puppet
1796
+ /rooms/{id}/addV2:
1797
+ put:
1798
+ operationId: Puppet_RoomAddV2
1799
+ responses:
1800
+ '200':
1801
+ description: A successful response.
1802
+ schema:
1803
+ $ref: '#/definitions/puppetRoomAddV2Response'
1804
+ default:
1805
+ description: An unexpected error response.
1806
+ schema:
1807
+ $ref: '#/definitions/rpcStatus'
1808
+ parameters:
1809
+ - name: id
1810
+ in: path
1811
+ required: true
1812
+ type: string
1813
+ - name: contactIds
1814
+ in: query
1815
+ required: false
1816
+ type: array
1817
+ items:
1818
+ type: string
1819
+ collectionFormat: multi
1820
+ - name: inviteOnly
1821
+ in: query
1822
+ required: false
1823
+ type: boolean
1824
+ - name: quoteIds
1825
+ in: query
1826
+ required: false
1827
+ type: array
1828
+ items:
1829
+ type: string
1830
+ collectionFormat: multi
1831
+ tags:
1832
+ - Puppet
1796
1833
  /rooms/{id}/announcement:
1797
1834
  get:
1798
1835
  operationId: Puppet_RoomAnnounce
@@ -1890,6 +1927,32 @@ paths:
1890
1927
  minItems: 1
1891
1928
  tags:
1892
1929
  - Puppet
1930
+ /rooms/{id}/delV2:
1931
+ delete:
1932
+ operationId: Puppet_RoomDelV2
1933
+ responses:
1934
+ '200':
1935
+ description: A successful response.
1936
+ schema:
1937
+ $ref: '#/definitions/puppetRoomDelV2Response'
1938
+ default:
1939
+ description: An unexpected error response.
1940
+ schema:
1941
+ $ref: '#/definitions/rpcStatus'
1942
+ parameters:
1943
+ - name: id
1944
+ in: path
1945
+ required: true
1946
+ type: string
1947
+ - name: contactIds
1948
+ in: query
1949
+ required: false
1950
+ type: array
1951
+ items:
1952
+ type: string
1953
+ collectionFormat: multi
1954
+ tags:
1955
+ - Puppet
1893
1956
  /rooms/{id}/dirty/members/{type}:
1894
1957
  put:
1895
1958
  operationId: Puppet_DirtyPayload4
@@ -4199,6 +4262,21 @@ definitions:
4199
4262
  type: object
4200
4263
  puppetRoomAddResponse:
4201
4264
  type: object
4265
+ puppetRoomAddV2Response:
4266
+ type: object
4267
+ properties:
4268
+ successIds:
4269
+ type: array
4270
+ items:
4271
+ type: string
4272
+ failedIds:
4273
+ type: array
4274
+ items:
4275
+ type: string
4276
+ failedReasons:
4277
+ type: array
4278
+ items:
4279
+ type: string
4202
4280
  puppetRoomAdminsResponse:
4203
4281
  type: object
4204
4282
  puppetRoomAnnounceResponse:
@@ -4239,6 +4317,21 @@ definitions:
4239
4317
  type: string
4240
4318
  puppetRoomDelResponse:
4241
4319
  type: object
4320
+ puppetRoomDelV2Response:
4321
+ type: object
4322
+ properties:
4323
+ successIds:
4324
+ type: array
4325
+ items:
4326
+ type: string
4327
+ failedIds:
4328
+ type: array
4329
+ items:
4330
+ type: string
4331
+ failedReasons:
4332
+ type: array
4333
+ items:
4334
+ type: string
4242
4335
  puppetRoomDismissResponse:
4243
4336
  type: object
4244
4337
  puppetRoomInvitationAcceptByQRCodeResponse:
@@ -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.98",
6
+ "version": "1.0.99",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -2688,6 +2688,62 @@
2688
2688
  ]
2689
2689
  }
2690
2690
  },
2691
+ "/rooms/{id}/addV2": {
2692
+ "put": {
2693
+ "operationId": "Puppet_RoomAddV2",
2694
+ "responses": {
2695
+ "200": {
2696
+ "description": "A successful response.",
2697
+ "schema": {
2698
+ "$ref": "#/definitions/puppetRoomAddV2Response"
2699
+ }
2700
+ },
2701
+ "default": {
2702
+ "description": "An unexpected error response.",
2703
+ "schema": {
2704
+ "$ref": "#/definitions/rpcStatus"
2705
+ }
2706
+ }
2707
+ },
2708
+ "parameters": [
2709
+ {
2710
+ "name": "id",
2711
+ "in": "path",
2712
+ "required": true,
2713
+ "type": "string"
2714
+ },
2715
+ {
2716
+ "name": "contactIds",
2717
+ "in": "query",
2718
+ "required": false,
2719
+ "type": "array",
2720
+ "items": {
2721
+ "type": "string"
2722
+ },
2723
+ "collectionFormat": "multi"
2724
+ },
2725
+ {
2726
+ "name": "inviteOnly",
2727
+ "in": "query",
2728
+ "required": false,
2729
+ "type": "boolean"
2730
+ },
2731
+ {
2732
+ "name": "quoteIds",
2733
+ "in": "query",
2734
+ "required": false,
2735
+ "type": "array",
2736
+ "items": {
2737
+ "type": "string"
2738
+ },
2739
+ "collectionFormat": "multi"
2740
+ }
2741
+ ],
2742
+ "tags": [
2743
+ "Puppet"
2744
+ ]
2745
+ }
2746
+ },
2691
2747
  "/rooms/{id}/announcement": {
2692
2748
  "get": {
2693
2749
  "operationId": "Puppet_RoomAnnounce",
@@ -2838,6 +2894,46 @@
2838
2894
  ]
2839
2895
  }
2840
2896
  },
2897
+ "/rooms/{id}/delV2": {
2898
+ "delete": {
2899
+ "operationId": "Puppet_RoomDelV2",
2900
+ "responses": {
2901
+ "200": {
2902
+ "description": "A successful response.",
2903
+ "schema": {
2904
+ "$ref": "#/definitions/puppetRoomDelV2Response"
2905
+ }
2906
+ },
2907
+ "default": {
2908
+ "description": "An unexpected error response.",
2909
+ "schema": {
2910
+ "$ref": "#/definitions/rpcStatus"
2911
+ }
2912
+ }
2913
+ },
2914
+ "parameters": [
2915
+ {
2916
+ "name": "id",
2917
+ "in": "path",
2918
+ "required": true,
2919
+ "type": "string"
2920
+ },
2921
+ {
2922
+ "name": "contactIds",
2923
+ "in": "query",
2924
+ "required": false,
2925
+ "type": "array",
2926
+ "items": {
2927
+ "type": "string"
2928
+ },
2929
+ "collectionFormat": "multi"
2930
+ }
2931
+ ],
2932
+ "tags": [
2933
+ "Puppet"
2934
+ ]
2935
+ }
2936
+ },
2841
2937
  "/rooms/{id}/dirty/members/{type}": {
2842
2938
  "put": {
2843
2939
  "operationId": "Puppet_DirtyPayload4",
@@ -5983,6 +6079,29 @@
5983
6079
  "puppetRoomAddResponse": {
5984
6080
  "type": "object"
5985
6081
  },
6082
+ "puppetRoomAddV2Response": {
6083
+ "type": "object",
6084
+ "properties": {
6085
+ "successIds": {
6086
+ "type": "array",
6087
+ "items": {
6088
+ "type": "string"
6089
+ }
6090
+ },
6091
+ "failedIds": {
6092
+ "type": "array",
6093
+ "items": {
6094
+ "type": "string"
6095
+ }
6096
+ },
6097
+ "failedReasons": {
6098
+ "type": "array",
6099
+ "items": {
6100
+ "type": "string"
6101
+ }
6102
+ }
6103
+ }
6104
+ },
5986
6105
  "puppetRoomAdminsResponse": {
5987
6106
  "type": "object"
5988
6107
  },
@@ -6044,6 +6163,29 @@
6044
6163
  "puppetRoomDelResponse": {
6045
6164
  "type": "object"
6046
6165
  },
6166
+ "puppetRoomDelV2Response": {
6167
+ "type": "object",
6168
+ "properties": {
6169
+ "successIds": {
6170
+ "type": "array",
6171
+ "items": {
6172
+ "type": "string"
6173
+ }
6174
+ },
6175
+ "failedIds": {
6176
+ "type": "array",
6177
+ "items": {
6178
+ "type": "string"
6179
+ }
6180
+ },
6181
+ "failedReasons": {
6182
+ "type": "array",
6183
+ "items": {
6184
+ "type": "string"
6185
+ }
6186
+ }
6187
+ }
6188
+ },
6047
6189
  "puppetRoomDismissResponse": {
6048
6190
  "type": "object"
6049
6191
  },
@@ -101,6 +101,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
101
101
  roomAddAdmins: IPuppetService_IRoomAddAdmins;
102
102
  roomDelAdmins: IPuppetService_IRoomDelAdmins;
103
103
  roomDismiss: IPuppetService_IRoomDismiss;
104
+ roomAddV2: IPuppetService_IRoomAddV2;
105
+ roomDelV2: IPuppetService_IRoomDelV2;
104
106
  roomMemberPayload: IPuppetService_IRoomMemberPayload;
105
107
  roomMemberList: IPuppetService_IRoomMemberList;
106
108
  batchRoomMemberPayload: IPuppetService_IBatchRoomMemberPayload;
@@ -831,6 +833,24 @@ interface IPuppetService_IRoomDismiss extends grpc.MethodDefinition<wechaty_pupp
831
833
  responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomDismissResponse>;
832
834
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomDismissResponse>;
833
835
  }
836
+ interface IPuppetService_IRoomAddV2 extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAddV2Request, wechaty_puppet_room_pb.RoomAddV2Response> {
837
+ path: "/wechaty.Puppet/RoomAddV2";
838
+ requestStream: false;
839
+ responseStream: false;
840
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAddV2Request>;
841
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAddV2Request>;
842
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAddV2Response>;
843
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAddV2Response>;
844
+ }
845
+ interface IPuppetService_IRoomDelV2 extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomDelV2Request, wechaty_puppet_room_pb.RoomDelV2Response> {
846
+ path: "/wechaty.Puppet/RoomDelV2";
847
+ requestStream: false;
848
+ responseStream: false;
849
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomDelV2Request>;
850
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomDelV2Request>;
851
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomDelV2Response>;
852
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomDelV2Response>;
853
+ }
834
854
  interface IPuppetService_IRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse> {
835
855
  path: "/wechaty.Puppet/RoomMemberPayload";
836
856
  requestStream: false;
@@ -1227,6 +1247,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1227
1247
  roomAddAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
1228
1248
  roomDelAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
1229
1249
  roomDismiss: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomDismissRequest, wechaty_puppet_room_pb.RoomDismissResponse>;
1250
+ roomAddV2: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAddV2Request, wechaty_puppet_room_pb.RoomAddV2Response>;
1251
+ roomDelV2: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomDelV2Request, wechaty_puppet_room_pb.RoomDelV2Response>;
1230
1252
  roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
1231
1253
  roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
1232
1254
  batchRoomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse>;
@@ -1495,6 +1517,12 @@ export interface IPuppetClient {
1495
1517
  roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1496
1518
  roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1497
1519
  roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1520
+ roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1521
+ roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1522
+ roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1523
+ roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1524
+ roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1525
+ roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1498
1526
  roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1499
1527
  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;
1500
1528
  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;
@@ -1834,6 +1862,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
1834
1862
  public roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1835
1863
  public roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1836
1864
  public roomDismiss(request: wechaty_puppet_room_pb.RoomDismissRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDismissResponse) => void): grpc.ClientUnaryCall;
1865
+ public roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1866
+ public roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1867
+ public roomAddV2(request: wechaty_puppet_room_pb.RoomAddV2Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAddV2Response) => void): grpc.ClientUnaryCall;
1868
+ public roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1869
+ public roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1870
+ public roomDelV2(request: wechaty_puppet_room_pb.RoomDelV2Request, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomDelV2Response) => void): grpc.ClientUnaryCall;
1837
1871
  public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1838
1872
  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;
1839
1873
  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;
@@ -1605,6 +1605,28 @@ function deserialize_wechaty_puppet_RoomAddResponse(buffer_arg) {
1605
1605
  return wechaty_puppet_room_pb.RoomAddResponse.deserializeBinary(new Uint8Array(buffer_arg));
1606
1606
  }
1607
1607
 
1608
+ function serialize_wechaty_puppet_RoomAddV2Request(arg) {
1609
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomAddV2Request)) {
1610
+ throw new Error('Expected argument of type wechaty.puppet.RoomAddV2Request');
1611
+ }
1612
+ return Buffer.from(arg.serializeBinary());
1613
+ }
1614
+
1615
+ function deserialize_wechaty_puppet_RoomAddV2Request(buffer_arg) {
1616
+ return wechaty_puppet_room_pb.RoomAddV2Request.deserializeBinary(new Uint8Array(buffer_arg));
1617
+ }
1618
+
1619
+ function serialize_wechaty_puppet_RoomAddV2Response(arg) {
1620
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomAddV2Response)) {
1621
+ throw new Error('Expected argument of type wechaty.puppet.RoomAddV2Response');
1622
+ }
1623
+ return Buffer.from(arg.serializeBinary());
1624
+ }
1625
+
1626
+ function deserialize_wechaty_puppet_RoomAddV2Response(buffer_arg) {
1627
+ return wechaty_puppet_room_pb.RoomAddV2Response.deserializeBinary(new Uint8Array(buffer_arg));
1628
+ }
1629
+
1608
1630
  function serialize_wechaty_puppet_RoomAdminsRequest(arg) {
1609
1631
  if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsRequest)) {
1610
1632
  throw new Error('Expected argument of type wechaty.puppet.RoomAdminsRequest');
@@ -1715,6 +1737,28 @@ function deserialize_wechaty_puppet_RoomDelResponse(buffer_arg) {
1715
1737
  return wechaty_puppet_room_pb.RoomDelResponse.deserializeBinary(new Uint8Array(buffer_arg));
1716
1738
  }
1717
1739
 
1740
+ function serialize_wechaty_puppet_RoomDelV2Request(arg) {
1741
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomDelV2Request)) {
1742
+ throw new Error('Expected argument of type wechaty.puppet.RoomDelV2Request');
1743
+ }
1744
+ return Buffer.from(arg.serializeBinary());
1745
+ }
1746
+
1747
+ function deserialize_wechaty_puppet_RoomDelV2Request(buffer_arg) {
1748
+ return wechaty_puppet_room_pb.RoomDelV2Request.deserializeBinary(new Uint8Array(buffer_arg));
1749
+ }
1750
+
1751
+ function serialize_wechaty_puppet_RoomDelV2Response(arg) {
1752
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomDelV2Response)) {
1753
+ throw new Error('Expected argument of type wechaty.puppet.RoomDelV2Response');
1754
+ }
1755
+ return Buffer.from(arg.serializeBinary());
1756
+ }
1757
+
1758
+ function deserialize_wechaty_puppet_RoomDelV2Response(buffer_arg) {
1759
+ return wechaty_puppet_room_pb.RoomDelV2Response.deserializeBinary(new Uint8Array(buffer_arg));
1760
+ }
1761
+
1718
1762
  function serialize_wechaty_puppet_RoomDismissRequest(arg) {
1719
1763
  if (!(arg instanceof wechaty_puppet_room_pb.RoomDismissRequest)) {
1720
1764
  throw new Error('Expected argument of type wechaty.puppet.RoomDismissRequest');
@@ -3328,6 +3372,28 @@ roomPayload: {
3328
3372
  responseSerialize: serialize_wechaty_puppet_RoomDismissResponse,
3329
3373
  responseDeserialize: deserialize_wechaty_puppet_RoomDismissResponse,
3330
3374
  },
3375
+ roomAddV2: {
3376
+ path: '/wechaty.Puppet/RoomAddV2',
3377
+ requestStream: false,
3378
+ responseStream: false,
3379
+ requestType: wechaty_puppet_room_pb.RoomAddV2Request,
3380
+ responseType: wechaty_puppet_room_pb.RoomAddV2Response,
3381
+ requestSerialize: serialize_wechaty_puppet_RoomAddV2Request,
3382
+ requestDeserialize: deserialize_wechaty_puppet_RoomAddV2Request,
3383
+ responseSerialize: serialize_wechaty_puppet_RoomAddV2Response,
3384
+ responseDeserialize: deserialize_wechaty_puppet_RoomAddV2Response,
3385
+ },
3386
+ roomDelV2: {
3387
+ path: '/wechaty.Puppet/RoomDelV2',
3388
+ requestStream: false,
3389
+ responseStream: false,
3390
+ requestType: wechaty_puppet_room_pb.RoomDelV2Request,
3391
+ responseType: wechaty_puppet_room_pb.RoomDelV2Response,
3392
+ requestSerialize: serialize_wechaty_puppet_RoomDelV2Request,
3393
+ requestDeserialize: deserialize_wechaty_puppet_RoomDelV2Request,
3394
+ responseSerialize: serialize_wechaty_puppet_RoomDelV2Response,
3395
+ responseDeserialize: deserialize_wechaty_puppet_RoomDelV2Response,
3396
+ },
3331
3397
  // *
3332
3398
  //
3333
3399
  // Room Member
@@ -712,6 +712,24 @@ type PuppetRoomDismiss = {
712
712
  readonly responseType: typeof wechaty_puppet_room_pb.RoomDismissResponse;
713
713
  };
714
714
 
715
+ type PuppetRoomAddV2 = {
716
+ readonly methodName: string;
717
+ readonly service: typeof Puppet;
718
+ readonly requestStream: false;
719
+ readonly responseStream: false;
720
+ readonly requestType: typeof wechaty_puppet_room_pb.RoomAddV2Request;
721
+ readonly responseType: typeof wechaty_puppet_room_pb.RoomAddV2Response;
722
+ };
723
+
724
+ type PuppetRoomDelV2 = {
725
+ readonly methodName: string;
726
+ readonly service: typeof Puppet;
727
+ readonly requestStream: false;
728
+ readonly responseStream: false;
729
+ readonly requestType: typeof wechaty_puppet_room_pb.RoomDelV2Request;
730
+ readonly responseType: typeof wechaty_puppet_room_pb.RoomDelV2Response;
731
+ };
732
+
715
733
  type PuppetRoomMemberPayload = {
716
734
  readonly methodName: string;
717
735
  readonly service: typeof Puppet;
@@ -1106,6 +1124,8 @@ export class Puppet {
1106
1124
  static readonly RoomAddAdmins: PuppetRoomAddAdmins;
1107
1125
  static readonly RoomDelAdmins: PuppetRoomDelAdmins;
1108
1126
  static readonly RoomDismiss: PuppetRoomDismiss;
1127
+ static readonly RoomAddV2: PuppetRoomAddV2;
1128
+ static readonly RoomDelV2: PuppetRoomDelV2;
1109
1129
  static readonly RoomMemberPayload: PuppetRoomMemberPayload;
1110
1130
  static readonly RoomMemberList: PuppetRoomMemberList;
1111
1131
  static readonly BatchRoomMemberPayload: PuppetBatchRoomMemberPayload;
@@ -1860,6 +1880,24 @@ export class PuppetClient {
1860
1880
  requestMessage: wechaty_puppet_room_pb.RoomDismissRequest,
1861
1881
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomDismissResponse|null) => void
1862
1882
  ): UnaryResponse;
1883
+ roomAddV2(
1884
+ requestMessage: wechaty_puppet_room_pb.RoomAddV2Request,
1885
+ metadata: grpc.Metadata,
1886
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAddV2Response|null) => void
1887
+ ): UnaryResponse;
1888
+ roomAddV2(
1889
+ requestMessage: wechaty_puppet_room_pb.RoomAddV2Request,
1890
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAddV2Response|null) => void
1891
+ ): UnaryResponse;
1892
+ roomDelV2(
1893
+ requestMessage: wechaty_puppet_room_pb.RoomDelV2Request,
1894
+ metadata: grpc.Metadata,
1895
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomDelV2Response|null) => void
1896
+ ): UnaryResponse;
1897
+ roomDelV2(
1898
+ requestMessage: wechaty_puppet_room_pb.RoomDelV2Request,
1899
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomDelV2Response|null) => void
1900
+ ): UnaryResponse;
1863
1901
  roomMemberPayload(
1864
1902
  requestMessage: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest,
1865
1903
  metadata: grpc.Metadata,
@@ -718,6 +718,24 @@ Puppet.RoomDismiss = {
718
718
  responseType: wechaty_puppet_room_pb.RoomDismissResponse
719
719
  };
720
720
 
721
+ Puppet.RoomAddV2 = {
722
+ methodName: "RoomAddV2",
723
+ service: Puppet,
724
+ requestStream: false,
725
+ responseStream: false,
726
+ requestType: wechaty_puppet_room_pb.RoomAddV2Request,
727
+ responseType: wechaty_puppet_room_pb.RoomAddV2Response
728
+ };
729
+
730
+ Puppet.RoomDelV2 = {
731
+ methodName: "RoomDelV2",
732
+ service: Puppet,
733
+ requestStream: false,
734
+ responseStream: false,
735
+ requestType: wechaty_puppet_room_pb.RoomDelV2Request,
736
+ responseType: wechaty_puppet_room_pb.RoomDelV2Response
737
+ };
738
+
721
739
  Puppet.RoomMemberPayload = {
722
740
  methodName: "RoomMemberPayload",
723
741
  service: Puppet,
@@ -3435,6 +3453,68 @@ PuppetClient.prototype.roomDismiss = function roomDismiss(requestMessage, metada
3435
3453
  };
3436
3454
  };
3437
3455
 
3456
+ PuppetClient.prototype.roomAddV2 = function roomAddV2(requestMessage, metadata, callback) {
3457
+ if (arguments.length === 2) {
3458
+ callback = arguments[1];
3459
+ }
3460
+ var client = grpc.unary(Puppet.RoomAddV2, {
3461
+ request: requestMessage,
3462
+ host: this.serviceHost,
3463
+ metadata: metadata,
3464
+ transport: this.options.transport,
3465
+ debug: this.options.debug,
3466
+ onEnd: function (response) {
3467
+ if (callback) {
3468
+ if (response.status !== grpc.Code.OK) {
3469
+ var err = new Error(response.statusMessage);
3470
+ err.code = response.status;
3471
+ err.metadata = response.trailers;
3472
+ callback(err, null);
3473
+ } else {
3474
+ callback(null, response.message);
3475
+ }
3476
+ }
3477
+ }
3478
+ });
3479
+ return {
3480
+ cancel: function () {
3481
+ callback = null;
3482
+ client.close();
3483
+ }
3484
+ };
3485
+ };
3486
+
3487
+ PuppetClient.prototype.roomDelV2 = function roomDelV2(requestMessage, metadata, callback) {
3488
+ if (arguments.length === 2) {
3489
+ callback = arguments[1];
3490
+ }
3491
+ var client = grpc.unary(Puppet.RoomDelV2, {
3492
+ request: requestMessage,
3493
+ host: this.serviceHost,
3494
+ metadata: metadata,
3495
+ transport: this.options.transport,
3496
+ debug: this.options.debug,
3497
+ onEnd: function (response) {
3498
+ if (callback) {
3499
+ if (response.status !== grpc.Code.OK) {
3500
+ var err = new Error(response.statusMessage);
3501
+ err.code = response.status;
3502
+ err.metadata = response.trailers;
3503
+ callback(err, null);
3504
+ } else {
3505
+ callback(null, response.message);
3506
+ }
3507
+ }
3508
+ }
3509
+ });
3510
+ return {
3511
+ cancel: function () {
3512
+ callback = null;
3513
+ client.close();
3514
+ }
3515
+ };
3516
+ };
3517
+
3438
3518
  PuppetClient.prototype.roomMemberPayload = function roomMemberPayload(requestMessage, metadata, callback) {
3439
3519
  if (arguments.length === 2) {
3440
3520
  callback = arguments[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-grpc",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "gRPC for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-grpc",
7
- "version": "1.0.98",
7
+ "version": "1.0.99",
8
8
  "description": "gRPC for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {