@juzi/wechaty-grpc 1.0.109 → 1.0.110

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 (54) hide show
  1. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  3. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +199 -0
  4. package/dist/cjs/out/wechaty/puppet/room_pb.js +1418 -1
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +150 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +225 -2
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +89 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
  11. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  12. package/dist/cjs/proto/wechaty/puppet/room.proto +55 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +5 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +15 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/cjs/tests/room-member-load.spec.d.ts +2 -0
  19. package/dist/cjs/tests/room-member-load.spec.d.ts.map +1 -0
  20. package/dist/cjs/tests/room-member-load.spec.js +134 -0
  21. package/dist/cjs/tests/room-member-load.spec.js.map +1 -0
  22. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  23. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  24. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +199 -0
  25. package/dist/esm/out/wechaty/puppet/room_pb.js +1418 -1
  26. package/dist/esm/out/wechaty/puppet.openapi.yaml +150 -1
  27. package/dist/esm/out/wechaty/puppet.swagger.json +225 -2
  28. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
  29. package/dist/esm/out/wechaty/puppet_grpc_pb.js +89 -0
  30. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
  31. package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
  32. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  33. package/dist/esm/proto/wechaty/puppet/room.proto +55 -0
  34. package/dist/esm/proto/wechaty/puppet.proto +5 -0
  35. package/dist/esm/src/package-json.js +1 -1
  36. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  37. package/dist/esm/tests/puppet-server-impl.js +15 -0
  38. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  39. package/dist/esm/tests/room-member-load.spec.d.ts +2 -0
  40. package/dist/esm/tests/room-member-load.spec.d.ts.map +1 -0
  41. package/dist/esm/tests/room-member-load.spec.js +132 -0
  42. package/dist/esm/tests/room-member-load.spec.js.map +1 -0
  43. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  44. package/out/wechaty/puppet/event_pb.js +2 -1
  45. package/out/wechaty/puppet/room_pb.d.ts +199 -0
  46. package/out/wechaty/puppet/room_pb.js +1418 -1
  47. package/out/wechaty/puppet.openapi.yaml +150 -1
  48. package/out/wechaty/puppet.swagger.json +225 -2
  49. package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
  50. package/out/wechaty/puppet_grpc_pb.js +89 -0
  51. package/out/wechaty/puppet_pb_service.d.ts +57 -0
  52. package/out/wechaty/puppet_pb_service.js +120 -0
  53. package/package.json +1 -1
  54. 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.109
12
+ version: 1.0.110
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -3179,6 +3179,67 @@ paths:
3179
3179
  $ref: '#/definitions/puppetMessageVoiceTextRequest'
3180
3180
  tags:
3181
3181
  - Puppet
3182
+ /wechaty.Puppet/RoomMemberLoadState:
3183
+ post:
3184
+ operationId: Puppet_RoomMemberLoadState
3185
+ responses:
3186
+ '200':
3187
+ description: A successful response.
3188
+ schema:
3189
+ $ref: '#/definitions/puppetRoomMemberLoadStateResponse'
3190
+ default:
3191
+ description: An unexpected error response.
3192
+ schema:
3193
+ $ref: '#/definitions/rpcStatus'
3194
+ parameters:
3195
+ - name: body
3196
+ in: body
3197
+ required: true
3198
+ schema:
3199
+ $ref: '#/definitions/puppetRoomMemberLoadStateRequest'
3200
+ tags:
3201
+ - Puppet
3202
+ /wechaty.Puppet/RoomMemberSnapshot:
3203
+ post:
3204
+ summary: Reads an existing revision only; must not start member loading.
3205
+ operationId: Puppet_RoomMemberSnapshot
3206
+ responses:
3207
+ '200':
3208
+ description: A successful response.
3209
+ schema:
3210
+ $ref: '#/definitions/puppetRoomMemberSnapshotResponse'
3211
+ default:
3212
+ description: An unexpected error response.
3213
+ schema:
3214
+ $ref: '#/definitions/rpcStatus'
3215
+ parameters:
3216
+ - name: body
3217
+ in: body
3218
+ required: true
3219
+ schema:
3220
+ $ref: '#/definitions/puppetRoomMemberSnapshotRequest'
3221
+ tags:
3222
+ - Puppet
3223
+ /wechaty.Puppet/RoomMemberSync:
3224
+ post:
3225
+ operationId: Puppet_RoomMemberSync
3226
+ responses:
3227
+ '200':
3228
+ description: A successful response.
3229
+ schema:
3230
+ $ref: '#/definitions/puppetRoomMemberLoadStateResponse'
3231
+ default:
3232
+ description: An unexpected error response.
3233
+ schema:
3234
+ $ref: '#/definitions/rpcStatus'
3235
+ parameters:
3236
+ - name: body
3237
+ in: body
3238
+ required: true
3239
+ schema:
3240
+ $ref: '#/definitions/puppetRoomMemberSyncRequest'
3241
+ tags:
3242
+ - Puppet
3182
3243
  /wecom/corpMessageInterceptionStrategyList:
3183
3244
  get:
3184
3245
  operationId: Puppet_GetCorpMessageInterceptionStrategies
@@ -4253,6 +4314,7 @@ definitions:
4253
4314
  - EVENT_TYPE_SAME_NET_VERIFY
4254
4315
  - EVENT_TYPE_ORG_BROADCAST_CREATED
4255
4316
  - EVENT_TYPE_ORG_BROADCAST_SENT
4317
+ - EVENT_TYPE_ROOM_MEMBER_LOAD
4256
4318
  default: EVENT_TYPE_UNSPECIFIED
4257
4319
  description: >-
4258
4320
  - EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat
@@ -5513,6 +5575,44 @@ definitions:
5513
5575
  type: array
5514
5576
  items:
5515
5577
  type: string
5578
+ puppetRoomMemberLoadMode:
5579
+ type: string
5580
+ enum:
5581
+ - ROOM_MEMBER_LOAD_MODE_UNSPECIFIED
5582
+ - ROOM_MEMBER_LOAD_MODE_NORMAL
5583
+ - ROOM_MEMBER_LOAD_MODE_LAZY
5584
+ default: ROOM_MEMBER_LOAD_MODE_UNSPECIFIED
5585
+ puppetRoomMemberLoadStateRequest:
5586
+ type: object
5587
+ properties:
5588
+ id:
5589
+ type: string
5590
+ puppetRoomMemberLoadStateResponse:
5591
+ type: object
5592
+ properties:
5593
+ id:
5594
+ type: string
5595
+ taskId:
5596
+ type: string
5597
+ status:
5598
+ $ref: '#/definitions/puppetRoomMemberLoadStatus'
5599
+ revision:
5600
+ type: string
5601
+ description: Canonical non-negative decimal string; never convert to a JS number.
5602
+ loadedAt:
5603
+ type: string
5604
+ format: date-time
5605
+ error:
5606
+ type: string
5607
+ puppetRoomMemberLoadStatus:
5608
+ type: string
5609
+ enum:
5610
+ - ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED
5611
+ - ROOM_MEMBER_LOAD_STATUS_PENDING
5612
+ - ROOM_MEMBER_LOAD_STATUS_LOADING
5613
+ - ROOM_MEMBER_LOAD_STATUS_LOADED
5614
+ - ROOM_MEMBER_LOAD_STATUS_FAILED
5615
+ default: ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED
5516
5616
  puppetRoomMemberPayloadResponse:
5517
5617
  type: object
5518
5618
  properties:
@@ -5537,6 +5637,43 @@ definitions:
5537
5637
  format: double
5538
5638
  joinScene:
5539
5639
  $ref: '#/definitions/puppetRoomMemberJoinSceneType'
5640
+ puppetRoomMemberSnapshotRequest:
5641
+ type: object
5642
+ properties:
5643
+ id:
5644
+ type: string
5645
+ revision:
5646
+ type: string
5647
+ pageToken:
5648
+ type: string
5649
+ pageSize:
5650
+ type: integer
5651
+ format: int64
5652
+ description: Zero selects the adapter default (100); maximum 500.
5653
+ puppetRoomMemberSnapshotResponse:
5654
+ type: object
5655
+ properties:
5656
+ id:
5657
+ type: string
5658
+ revision:
5659
+ type: string
5660
+ loadedAt:
5661
+ type: string
5662
+ format: date-time
5663
+ members:
5664
+ type: array
5665
+ items:
5666
+ type: object
5667
+ $ref: '#/definitions/puppetRoomMemberPayloadResponse'
5668
+ nextPageToken:
5669
+ type: string
5670
+ puppetRoomMemberSyncRequest:
5671
+ type: object
5672
+ properties:
5673
+ id:
5674
+ type: string
5675
+ force:
5676
+ type: boolean
5540
5677
  puppetRoomOwnerTransferResponse:
5541
5678
  type: object
5542
5679
  puppetRoomParseDynamicQRCodeResponse:
@@ -5587,6 +5724,18 @@ definitions:
5587
5724
  createTime:
5588
5725
  type: string
5589
5726
  format: date-time
5727
+ memberCount:
5728
+ type: integer
5729
+ format: int64
5730
+ memberLoadMode:
5731
+ $ref: '#/definitions/puppetRoomMemberLoadMode'
5732
+ memberLoadStatus:
5733
+ $ref: '#/definitions/puppetRoomMemberLoadStatus'
5734
+ memberLoadRevision:
5735
+ type: string
5736
+ memberLoadedAt:
5737
+ type: string
5738
+ format: date-time
5590
5739
  puppetRoomPermissionResponse:
5591
5740
  type: object
5592
5741
  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.109",
6
+ "version": "1.0.110",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4813,6 +4813,103 @@
4813
4813
  ]
4814
4814
  }
4815
4815
  },
4816
+ "/wechaty.Puppet/RoomMemberLoadState": {
4817
+ "post": {
4818
+ "operationId": "Puppet_RoomMemberLoadState",
4819
+ "responses": {
4820
+ "200": {
4821
+ "description": "A successful response.",
4822
+ "schema": {
4823
+ "$ref": "#/definitions/puppetRoomMemberLoadStateResponse"
4824
+ }
4825
+ },
4826
+ "default": {
4827
+ "description": "An unexpected error response.",
4828
+ "schema": {
4829
+ "$ref": "#/definitions/rpcStatus"
4830
+ }
4831
+ }
4832
+ },
4833
+ "parameters": [
4834
+ {
4835
+ "name": "body",
4836
+ "in": "body",
4837
+ "required": true,
4838
+ "schema": {
4839
+ "$ref": "#/definitions/puppetRoomMemberLoadStateRequest"
4840
+ }
4841
+ }
4842
+ ],
4843
+ "tags": [
4844
+ "Puppet"
4845
+ ]
4846
+ }
4847
+ },
4848
+ "/wechaty.Puppet/RoomMemberSnapshot": {
4849
+ "post": {
4850
+ "summary": "Reads an existing revision only; must not start member loading.",
4851
+ "operationId": "Puppet_RoomMemberSnapshot",
4852
+ "responses": {
4853
+ "200": {
4854
+ "description": "A successful response.",
4855
+ "schema": {
4856
+ "$ref": "#/definitions/puppetRoomMemberSnapshotResponse"
4857
+ }
4858
+ },
4859
+ "default": {
4860
+ "description": "An unexpected error response.",
4861
+ "schema": {
4862
+ "$ref": "#/definitions/rpcStatus"
4863
+ }
4864
+ }
4865
+ },
4866
+ "parameters": [
4867
+ {
4868
+ "name": "body",
4869
+ "in": "body",
4870
+ "required": true,
4871
+ "schema": {
4872
+ "$ref": "#/definitions/puppetRoomMemberSnapshotRequest"
4873
+ }
4874
+ }
4875
+ ],
4876
+ "tags": [
4877
+ "Puppet"
4878
+ ]
4879
+ }
4880
+ },
4881
+ "/wechaty.Puppet/RoomMemberSync": {
4882
+ "post": {
4883
+ "operationId": "Puppet_RoomMemberSync",
4884
+ "responses": {
4885
+ "200": {
4886
+ "description": "A successful response.",
4887
+ "schema": {
4888
+ "$ref": "#/definitions/puppetRoomMemberLoadStateResponse"
4889
+ }
4890
+ },
4891
+ "default": {
4892
+ "description": "An unexpected error response.",
4893
+ "schema": {
4894
+ "$ref": "#/definitions/rpcStatus"
4895
+ }
4896
+ }
4897
+ },
4898
+ "parameters": [
4899
+ {
4900
+ "name": "body",
4901
+ "in": "body",
4902
+ "required": true,
4903
+ "schema": {
4904
+ "$ref": "#/definitions/puppetRoomMemberSyncRequest"
4905
+ }
4906
+ }
4907
+ ],
4908
+ "tags": [
4909
+ "Puppet"
4910
+ ]
4911
+ }
4912
+ },
4816
4913
  "/wecom/corpMessageInterceptionStrategyList": {
4817
4914
  "get": {
4818
4915
  "operationId": "Puppet_GetCorpMessageInterceptionStrategies",
@@ -6233,7 +6330,8 @@
6233
6330
  "EVENT_TYPE_CALL",
6234
6331
  "EVENT_TYPE_SAME_NET_VERIFY",
6235
6332
  "EVENT_TYPE_ORG_BROADCAST_CREATED",
6236
- "EVENT_TYPE_ORG_BROADCAST_SENT"
6333
+ "EVENT_TYPE_ORG_BROADCAST_SENT",
6334
+ "EVENT_TYPE_ROOM_MEMBER_LOAD"
6237
6335
  ],
6238
6336
  "default": "EVENT_TYPE_UNSPECIFIED",
6239
6337
  "description": "- EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat login on Mac protocol\n - EVENT_TYPE_ORG_BROADCAST_CREATED: wecom org (admin) broadcast plan arrived: member received the broadcast assistant card\n - EVENT_TYPE_ORG_BROADCAST_SENT: wecom org (admin) broadcast plan executed, from any client"
@@ -7899,6 +7997,59 @@
7899
7997
  }
7900
7998
  }
7901
7999
  },
8000
+ "puppetRoomMemberLoadMode": {
8001
+ "type": "string",
8002
+ "enum": [
8003
+ "ROOM_MEMBER_LOAD_MODE_UNSPECIFIED",
8004
+ "ROOM_MEMBER_LOAD_MODE_NORMAL",
8005
+ "ROOM_MEMBER_LOAD_MODE_LAZY"
8006
+ ],
8007
+ "default": "ROOM_MEMBER_LOAD_MODE_UNSPECIFIED"
8008
+ },
8009
+ "puppetRoomMemberLoadStateRequest": {
8010
+ "type": "object",
8011
+ "properties": {
8012
+ "id": {
8013
+ "type": "string"
8014
+ }
8015
+ }
8016
+ },
8017
+ "puppetRoomMemberLoadStateResponse": {
8018
+ "type": "object",
8019
+ "properties": {
8020
+ "id": {
8021
+ "type": "string"
8022
+ },
8023
+ "taskId": {
8024
+ "type": "string"
8025
+ },
8026
+ "status": {
8027
+ "$ref": "#/definitions/puppetRoomMemberLoadStatus"
8028
+ },
8029
+ "revision": {
8030
+ "type": "string",
8031
+ "description": "Canonical non-negative decimal string; never convert to a JS number."
8032
+ },
8033
+ "loadedAt": {
8034
+ "type": "string",
8035
+ "format": "date-time"
8036
+ },
8037
+ "error": {
8038
+ "type": "string"
8039
+ }
8040
+ }
8041
+ },
8042
+ "puppetRoomMemberLoadStatus": {
8043
+ "type": "string",
8044
+ "enum": [
8045
+ "ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED",
8046
+ "ROOM_MEMBER_LOAD_STATUS_PENDING",
8047
+ "ROOM_MEMBER_LOAD_STATUS_LOADING",
8048
+ "ROOM_MEMBER_LOAD_STATUS_LOADED",
8049
+ "ROOM_MEMBER_LOAD_STATUS_FAILED"
8050
+ ],
8051
+ "default": "ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED"
8052
+ },
7902
8053
  "puppetRoomMemberPayloadResponse": {
7903
8054
  "type": "object",
7904
8055
  "properties": {
@@ -7933,6 +8084,61 @@
7933
8084
  }
7934
8085
  }
7935
8086
  },
8087
+ "puppetRoomMemberSnapshotRequest": {
8088
+ "type": "object",
8089
+ "properties": {
8090
+ "id": {
8091
+ "type": "string"
8092
+ },
8093
+ "revision": {
8094
+ "type": "string"
8095
+ },
8096
+ "pageToken": {
8097
+ "type": "string"
8098
+ },
8099
+ "pageSize": {
8100
+ "type": "integer",
8101
+ "format": "int64",
8102
+ "description": "Zero selects the adapter default (100); maximum 500."
8103
+ }
8104
+ }
8105
+ },
8106
+ "puppetRoomMemberSnapshotResponse": {
8107
+ "type": "object",
8108
+ "properties": {
8109
+ "id": {
8110
+ "type": "string"
8111
+ },
8112
+ "revision": {
8113
+ "type": "string"
8114
+ },
8115
+ "loadedAt": {
8116
+ "type": "string",
8117
+ "format": "date-time"
8118
+ },
8119
+ "members": {
8120
+ "type": "array",
8121
+ "items": {
8122
+ "type": "object",
8123
+ "$ref": "#/definitions/puppetRoomMemberPayloadResponse"
8124
+ }
8125
+ },
8126
+ "nextPageToken": {
8127
+ "type": "string"
8128
+ }
8129
+ }
8130
+ },
8131
+ "puppetRoomMemberSyncRequest": {
8132
+ "type": "object",
8133
+ "properties": {
8134
+ "id": {
8135
+ "type": "string"
8136
+ },
8137
+ "force": {
8138
+ "type": "boolean"
8139
+ }
8140
+ }
8141
+ },
7936
8142
  "puppetRoomOwnerTransferResponse": {
7937
8143
  "type": "object"
7938
8144
  },
@@ -8001,6 +8207,23 @@
8001
8207
  "createTime": {
8002
8208
  "type": "string",
8003
8209
  "format": "date-time"
8210
+ },
8211
+ "memberCount": {
8212
+ "type": "integer",
8213
+ "format": "int64"
8214
+ },
8215
+ "memberLoadMode": {
8216
+ "$ref": "#/definitions/puppetRoomMemberLoadMode"
8217
+ },
8218
+ "memberLoadStatus": {
8219
+ "$ref": "#/definitions/puppetRoomMemberLoadStatus"
8220
+ },
8221
+ "memberLoadRevision": {
8222
+ "type": "string"
8223
+ },
8224
+ "memberLoadedAt": {
8225
+ "type": "string",
8226
+ "format": "date-time"
8004
8227
  }
8005
8228
  }
8006
8229
  },
@@ -127,6 +127,9 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
127
127
  roomDelV2: IPuppetService_IRoomDelV2;
128
128
  roomMemberPayload: IPuppetService_IRoomMemberPayload;
129
129
  roomMemberList: IPuppetService_IRoomMemberList;
130
+ roomMemberSync: IPuppetService_IRoomMemberSync;
131
+ roomMemberLoadState: IPuppetService_IRoomMemberLoadState;
132
+ roomMemberSnapshot: IPuppetService_IRoomMemberSnapshot;
130
133
  batchRoomMemberPayload: IPuppetService_IBatchRoomMemberPayload;
131
134
  roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
132
135
  roomInvitationAccept: IPuppetService_IRoomInvitationAccept;
@@ -1082,6 +1085,33 @@ interface IPuppetService_IRoomMemberList extends grpc.MethodDefinition<wechaty_p
1082
1085
  responseSerialize: grpc.serialize<wechaty_puppet_room_member_pb.RoomMemberListResponse>;
1083
1086
  responseDeserialize: grpc.deserialize<wechaty_puppet_room_member_pb.RoomMemberListResponse>;
1084
1087
  }
1088
+ interface IPuppetService_IRoomMemberSync extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomMemberSyncRequest, wechaty_puppet_room_pb.RoomMemberLoadStateResponse> {
1089
+ path: "/wechaty.Puppet/RoomMemberSync";
1090
+ requestStream: false;
1091
+ responseStream: false;
1092
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberSyncRequest>;
1093
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberSyncRequest>;
1094
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1095
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1096
+ }
1097
+ interface IPuppetService_IRoomMemberLoadState extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomMemberLoadStateRequest, wechaty_puppet_room_pb.RoomMemberLoadStateResponse> {
1098
+ path: "/wechaty.Puppet/RoomMemberLoadState";
1099
+ requestStream: false;
1100
+ responseStream: false;
1101
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberLoadStateRequest>;
1102
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberLoadStateRequest>;
1103
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1104
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1105
+ }
1106
+ interface IPuppetService_IRoomMemberSnapshot extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomMemberSnapshotRequest, wechaty_puppet_room_pb.RoomMemberSnapshotResponse> {
1107
+ path: "/wechaty.Puppet/RoomMemberSnapshot";
1108
+ requestStream: false;
1109
+ responseStream: false;
1110
+ requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberSnapshotRequest>;
1111
+ requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberSnapshotRequest>;
1112
+ responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomMemberSnapshotResponse>;
1113
+ responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomMemberSnapshotResponse>;
1114
+ }
1085
1115
  interface IPuppetService_IBatchRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse> {
1086
1116
  path: "/wechaty.Puppet/BatchRoomMemberPayload";
1087
1117
  requestStream: false;
@@ -1503,6 +1533,9 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1503
1533
  roomDelV2: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomDelV2Request, wechaty_puppet_room_pb.RoomDelV2Response>;
1504
1534
  roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
1505
1535
  roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
1536
+ roomMemberSync: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomMemberSyncRequest, wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1537
+ roomMemberLoadState: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomMemberLoadStateRequest, wechaty_puppet_room_pb.RoomMemberLoadStateResponse>;
1538
+ roomMemberSnapshot: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomMemberSnapshotRequest, wechaty_puppet_room_pb.RoomMemberSnapshotResponse>;
1506
1539
  batchRoomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse>;
1507
1540
  roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
1508
1541
  roomInvitationAccept: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationAcceptRequest, wechaty_puppet_room_invitation_pb.RoomInvitationAcceptResponse>;
@@ -1846,6 +1879,15 @@ export interface IPuppetClient {
1846
1879
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1847
1880
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1848
1881
  roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
1882
+ roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1883
+ roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1884
+ roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1885
+ roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1886
+ roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1887
+ roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
1888
+ roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
1889
+ roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
1890
+ roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
1849
1891
  batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1850
1892
  batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
1851
1893
  batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -2260,6 +2302,15 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
2260
2302
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
2261
2303
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
2262
2304
  public roomMemberList(request: wechaty_puppet_room_member_pb.RoomMemberListRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberListResponse) => void): grpc.ClientUnaryCall;
2305
+ public roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2306
+ public roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2307
+ public roomMemberSync(request: wechaty_puppet_room_pb.RoomMemberSyncRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2308
+ public roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2309
+ public roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2310
+ public roomMemberLoadState(request: wechaty_puppet_room_pb.RoomMemberLoadStateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberLoadStateResponse) => void): grpc.ClientUnaryCall;
2311
+ public roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
2312
+ public roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
2313
+ public roomMemberSnapshot(request: wechaty_puppet_room_pb.RoomMemberSnapshotRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomMemberSnapshotResponse) => void): grpc.ClientUnaryCall;
2263
2314
  public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
2264
2315
  public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
2265
2316
  public batchRoomMemberPayload(request: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.BatchRoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
@@ -2398,6 +2398,28 @@ function deserialize_wechaty_puppet_RoomMemberListResponse(buffer_arg) {
2398
2398
  return wechaty_puppet_room$member_pb.RoomMemberListResponse.deserializeBinary(new Uint8Array(buffer_arg));
2399
2399
  }
2400
2400
 
2401
+ function serialize_wechaty_puppet_RoomMemberLoadStateRequest(arg) {
2402
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberLoadStateRequest)) {
2403
+ throw new Error('Expected argument of type wechaty.puppet.RoomMemberLoadStateRequest');
2404
+ }
2405
+ return Buffer.from(arg.serializeBinary());
2406
+ }
2407
+
2408
+ function deserialize_wechaty_puppet_RoomMemberLoadStateRequest(buffer_arg) {
2409
+ return wechaty_puppet_room_pb.RoomMemberLoadStateRequest.deserializeBinary(new Uint8Array(buffer_arg));
2410
+ }
2411
+
2412
+ function serialize_wechaty_puppet_RoomMemberLoadStateResponse(arg) {
2413
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberLoadStateResponse)) {
2414
+ throw new Error('Expected argument of type wechaty.puppet.RoomMemberLoadStateResponse');
2415
+ }
2416
+ return Buffer.from(arg.serializeBinary());
2417
+ }
2418
+
2419
+ function deserialize_wechaty_puppet_RoomMemberLoadStateResponse(buffer_arg) {
2420
+ return wechaty_puppet_room_pb.RoomMemberLoadStateResponse.deserializeBinary(new Uint8Array(buffer_arg));
2421
+ }
2422
+
2401
2423
  function serialize_wechaty_puppet_RoomMemberPayloadRequest(arg) {
2402
2424
  if (!(arg instanceof wechaty_puppet_room$member_pb.RoomMemberPayloadRequest)) {
2403
2425
  throw new Error('Expected argument of type wechaty.puppet.RoomMemberPayloadRequest');
@@ -2420,6 +2442,39 @@ function deserialize_wechaty_puppet_RoomMemberPayloadResponse(buffer_arg) {
2420
2442
  return wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
2421
2443
  }
2422
2444
 
2445
+ function serialize_wechaty_puppet_RoomMemberSnapshotRequest(arg) {
2446
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSnapshotRequest)) {
2447
+ throw new Error('Expected argument of type wechaty.puppet.RoomMemberSnapshotRequest');
2448
+ }
2449
+ return Buffer.from(arg.serializeBinary());
2450
+ }
2451
+
2452
+ function deserialize_wechaty_puppet_RoomMemberSnapshotRequest(buffer_arg) {
2453
+ return wechaty_puppet_room_pb.RoomMemberSnapshotRequest.deserializeBinary(new Uint8Array(buffer_arg));
2454
+ }
2455
+
2456
+ function serialize_wechaty_puppet_RoomMemberSnapshotResponse(arg) {
2457
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSnapshotResponse)) {
2458
+ throw new Error('Expected argument of type wechaty.puppet.RoomMemberSnapshotResponse');
2459
+ }
2460
+ return Buffer.from(arg.serializeBinary());
2461
+ }
2462
+
2463
+ function deserialize_wechaty_puppet_RoomMemberSnapshotResponse(buffer_arg) {
2464
+ return wechaty_puppet_room_pb.RoomMemberSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
2465
+ }
2466
+
2467
+ function serialize_wechaty_puppet_RoomMemberSyncRequest(arg) {
2468
+ if (!(arg instanceof wechaty_puppet_room_pb.RoomMemberSyncRequest)) {
2469
+ throw new Error('Expected argument of type wechaty.puppet.RoomMemberSyncRequest');
2470
+ }
2471
+ return Buffer.from(arg.serializeBinary());
2472
+ }
2473
+
2474
+ function deserialize_wechaty_puppet_RoomMemberSyncRequest(buffer_arg) {
2475
+ return wechaty_puppet_room_pb.RoomMemberSyncRequest.deserializeBinary(new Uint8Array(buffer_arg));
2476
+ }
2477
+
2423
2478
  function serialize_wechaty_puppet_RoomOwnerTransferRequest(arg) {
2424
2479
  if (!(arg instanceof wechaty_puppet_room_pb.RoomOwnerTransferRequest)) {
2425
2480
  throw new Error('Expected argument of type wechaty.puppet.RoomOwnerTransferRequest');
@@ -4159,6 +4214,40 @@ roomMemberPayload: {
4159
4214
  responseSerialize: serialize_wechaty_puppet_RoomMemberListResponse,
4160
4215
  responseDeserialize: deserialize_wechaty_puppet_RoomMemberListResponse,
4161
4216
  },
4217
+ roomMemberSync: {
4218
+ path: '/wechaty.Puppet/RoomMemberSync',
4219
+ requestStream: false,
4220
+ responseStream: false,
4221
+ requestType: wechaty_puppet_room_pb.RoomMemberSyncRequest,
4222
+ responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse,
4223
+ requestSerialize: serialize_wechaty_puppet_RoomMemberSyncRequest,
4224
+ requestDeserialize: deserialize_wechaty_puppet_RoomMemberSyncRequest,
4225
+ responseSerialize: serialize_wechaty_puppet_RoomMemberLoadStateResponse,
4226
+ responseDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateResponse,
4227
+ },
4228
+ roomMemberLoadState: {
4229
+ path: '/wechaty.Puppet/RoomMemberLoadState',
4230
+ requestStream: false,
4231
+ responseStream: false,
4232
+ requestType: wechaty_puppet_room_pb.RoomMemberLoadStateRequest,
4233
+ responseType: wechaty_puppet_room_pb.RoomMemberLoadStateResponse,
4234
+ requestSerialize: serialize_wechaty_puppet_RoomMemberLoadStateRequest,
4235
+ requestDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateRequest,
4236
+ responseSerialize: serialize_wechaty_puppet_RoomMemberLoadStateResponse,
4237
+ responseDeserialize: deserialize_wechaty_puppet_RoomMemberLoadStateResponse,
4238
+ },
4239
+ // Reads an existing revision only; must not start member loading.
4240
+ roomMemberSnapshot: {
4241
+ path: '/wechaty.Puppet/RoomMemberSnapshot',
4242
+ requestStream: false,
4243
+ responseStream: false,
4244
+ requestType: wechaty_puppet_room_pb.RoomMemberSnapshotRequest,
4245
+ responseType: wechaty_puppet_room_pb.RoomMemberSnapshotResponse,
4246
+ requestSerialize: serialize_wechaty_puppet_RoomMemberSnapshotRequest,
4247
+ requestDeserialize: deserialize_wechaty_puppet_RoomMemberSnapshotRequest,
4248
+ responseSerialize: serialize_wechaty_puppet_RoomMemberSnapshotResponse,
4249
+ responseDeserialize: deserialize_wechaty_puppet_RoomMemberSnapshotResponse,
4250
+ },
4162
4251
  batchRoomMemberPayload: {
4163
4252
  path: '/wechaty.Puppet/BatchRoomMemberPayload',
4164
4253
  requestStream: false,