@juzi/wechaty-grpc 1.0.109 → 1.0.111
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.
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +34 -2
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +159 -4
- package/dist/cjs/out/wechaty/puppet.swagger.json +234 -3
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +89 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +4 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +55 -0
- package/dist/cjs/proto/wechaty/puppet.proto +5 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/cjs/tests/replay-barrier.spec.d.ts +2 -0
- package/dist/cjs/tests/replay-barrier.spec.d.ts.map +1 -0
- package/dist/cjs/tests/replay-barrier.spec.js +31 -0
- package/dist/cjs/tests/replay-barrier.spec.js.map +1 -0
- package/dist/cjs/tests/room-member-load.spec.d.ts +2 -0
- package/dist/cjs/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/cjs/tests/room-member-load.spec.js +134 -0
- package/dist/cjs/tests/room-member-load.spec.js.map +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +34 -2
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +159 -4
- package/dist/esm/out/wechaty/puppet.swagger.json +234 -3
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +89 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +4 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +55 -0
- package/dist/esm/proto/wechaty/puppet.proto +5 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/tests/replay-barrier.spec.d.ts +2 -0
- package/dist/esm/tests/replay-barrier.spec.d.ts.map +1 -0
- package/dist/esm/tests/replay-barrier.spec.js +29 -0
- package/dist/esm/tests/replay-barrier.spec.js.map +1 -0
- package/dist/esm/tests/room-member-load.spec.d.ts +2 -0
- package/dist/esm/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/esm/tests/room-member-load.spec.js +132 -0
- package/dist/esm/tests/room-member-load.spec.js.map +1 -0
- package/out/wechaty/puppet/event_pb.d.ts +6 -0
- package/out/wechaty/puppet/event_pb.js +34 -2
- package/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/out/wechaty/puppet/room_pb.js +1418 -1
- package/out/wechaty/puppet.openapi.yaml +159 -4
- package/out/wechaty/puppet.swagger.json +234 -3
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/out/wechaty/puppet_grpc_pb.js +89 -0
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +1 -1
- 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.
|
|
12
|
+
version: 1.0.111
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -1233,6 +1233,11 @@ paths:
|
|
|
1233
1233
|
in: query
|
|
1234
1234
|
required: false
|
|
1235
1235
|
type: string
|
|
1236
|
+
- name: replayBarrier
|
|
1237
|
+
description: request a completion marker after ordered replay
|
|
1238
|
+
in: query
|
|
1239
|
+
required: false
|
|
1240
|
+
type: boolean
|
|
1236
1241
|
tags:
|
|
1237
1242
|
- Puppet
|
|
1238
1243
|
/friendship/accept/{id}:
|
|
@@ -3179,6 +3184,67 @@ paths:
|
|
|
3179
3184
|
$ref: '#/definitions/puppetMessageVoiceTextRequest'
|
|
3180
3185
|
tags:
|
|
3181
3186
|
- Puppet
|
|
3187
|
+
/wechaty.Puppet/RoomMemberLoadState:
|
|
3188
|
+
post:
|
|
3189
|
+
operationId: Puppet_RoomMemberLoadState
|
|
3190
|
+
responses:
|
|
3191
|
+
'200':
|
|
3192
|
+
description: A successful response.
|
|
3193
|
+
schema:
|
|
3194
|
+
$ref: '#/definitions/puppetRoomMemberLoadStateResponse'
|
|
3195
|
+
default:
|
|
3196
|
+
description: An unexpected error response.
|
|
3197
|
+
schema:
|
|
3198
|
+
$ref: '#/definitions/rpcStatus'
|
|
3199
|
+
parameters:
|
|
3200
|
+
- name: body
|
|
3201
|
+
in: body
|
|
3202
|
+
required: true
|
|
3203
|
+
schema:
|
|
3204
|
+
$ref: '#/definitions/puppetRoomMemberLoadStateRequest'
|
|
3205
|
+
tags:
|
|
3206
|
+
- Puppet
|
|
3207
|
+
/wechaty.Puppet/RoomMemberSnapshot:
|
|
3208
|
+
post:
|
|
3209
|
+
summary: Reads an existing revision only; must not start member loading.
|
|
3210
|
+
operationId: Puppet_RoomMemberSnapshot
|
|
3211
|
+
responses:
|
|
3212
|
+
'200':
|
|
3213
|
+
description: A successful response.
|
|
3214
|
+
schema:
|
|
3215
|
+
$ref: '#/definitions/puppetRoomMemberSnapshotResponse'
|
|
3216
|
+
default:
|
|
3217
|
+
description: An unexpected error response.
|
|
3218
|
+
schema:
|
|
3219
|
+
$ref: '#/definitions/rpcStatus'
|
|
3220
|
+
parameters:
|
|
3221
|
+
- name: body
|
|
3222
|
+
in: body
|
|
3223
|
+
required: true
|
|
3224
|
+
schema:
|
|
3225
|
+
$ref: '#/definitions/puppetRoomMemberSnapshotRequest'
|
|
3226
|
+
tags:
|
|
3227
|
+
- Puppet
|
|
3228
|
+
/wechaty.Puppet/RoomMemberSync:
|
|
3229
|
+
post:
|
|
3230
|
+
operationId: Puppet_RoomMemberSync
|
|
3231
|
+
responses:
|
|
3232
|
+
'200':
|
|
3233
|
+
description: A successful response.
|
|
3234
|
+
schema:
|
|
3235
|
+
$ref: '#/definitions/puppetRoomMemberLoadStateResponse'
|
|
3236
|
+
default:
|
|
3237
|
+
description: An unexpected error response.
|
|
3238
|
+
schema:
|
|
3239
|
+
$ref: '#/definitions/rpcStatus'
|
|
3240
|
+
parameters:
|
|
3241
|
+
- name: body
|
|
3242
|
+
in: body
|
|
3243
|
+
required: true
|
|
3244
|
+
schema:
|
|
3245
|
+
$ref: '#/definitions/puppetRoomMemberSyncRequest'
|
|
3246
|
+
tags:
|
|
3247
|
+
- Puppet
|
|
3182
3248
|
/wecom/corpMessageInterceptionStrategyList:
|
|
3183
3249
|
get:
|
|
3184
3250
|
operationId: Puppet_GetCorpMessageInterceptionStrategies
|
|
@@ -4253,12 +4319,14 @@ definitions:
|
|
|
4253
4319
|
- EVENT_TYPE_SAME_NET_VERIFY
|
|
4254
4320
|
- EVENT_TYPE_ORG_BROADCAST_CREATED
|
|
4255
4321
|
- EVENT_TYPE_ORG_BROADCAST_SENT
|
|
4322
|
+
- EVENT_TYPE_ROOM_MEMBER_LOAD
|
|
4323
|
+
- EVENT_TYPE_REPLAY_COMPLETE
|
|
4256
4324
|
default: EVENT_TYPE_UNSPECIFIED
|
|
4257
|
-
description:
|
|
4258
|
-
|
|
4259
|
-
login on Mac protocol
|
|
4325
|
+
description: |2-
|
|
4326
|
+
- EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat login on Mac protocol
|
|
4260
4327
|
- EVENT_TYPE_ORG_BROADCAST_CREATED: wecom org (admin) broadcast plan arrived: member received the broadcast assistant card
|
|
4261
4328
|
- EVENT_TYPE_ORG_BROADCAST_SENT: wecom org (admin) broadcast plan executed, from any client
|
|
4329
|
+
- EVENT_TYPE_REPLAY_COMPLETE: Opt-in stream barrier: payload {accountId, throughSeq}, envelope seq=0.
|
|
4262
4330
|
puppetFriendshipAcceptResponse:
|
|
4263
4331
|
type: object
|
|
4264
4332
|
puppetFriendshipAddResponse:
|
|
@@ -5513,6 +5581,44 @@ definitions:
|
|
|
5513
5581
|
type: array
|
|
5514
5582
|
items:
|
|
5515
5583
|
type: string
|
|
5584
|
+
puppetRoomMemberLoadMode:
|
|
5585
|
+
type: string
|
|
5586
|
+
enum:
|
|
5587
|
+
- ROOM_MEMBER_LOAD_MODE_UNSPECIFIED
|
|
5588
|
+
- ROOM_MEMBER_LOAD_MODE_NORMAL
|
|
5589
|
+
- ROOM_MEMBER_LOAD_MODE_LAZY
|
|
5590
|
+
default: ROOM_MEMBER_LOAD_MODE_UNSPECIFIED
|
|
5591
|
+
puppetRoomMemberLoadStateRequest:
|
|
5592
|
+
type: object
|
|
5593
|
+
properties:
|
|
5594
|
+
id:
|
|
5595
|
+
type: string
|
|
5596
|
+
puppetRoomMemberLoadStateResponse:
|
|
5597
|
+
type: object
|
|
5598
|
+
properties:
|
|
5599
|
+
id:
|
|
5600
|
+
type: string
|
|
5601
|
+
taskId:
|
|
5602
|
+
type: string
|
|
5603
|
+
status:
|
|
5604
|
+
$ref: '#/definitions/puppetRoomMemberLoadStatus'
|
|
5605
|
+
revision:
|
|
5606
|
+
type: string
|
|
5607
|
+
description: Canonical non-negative decimal string; never convert to a JS number.
|
|
5608
|
+
loadedAt:
|
|
5609
|
+
type: string
|
|
5610
|
+
format: date-time
|
|
5611
|
+
error:
|
|
5612
|
+
type: string
|
|
5613
|
+
puppetRoomMemberLoadStatus:
|
|
5614
|
+
type: string
|
|
5615
|
+
enum:
|
|
5616
|
+
- ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED
|
|
5617
|
+
- ROOM_MEMBER_LOAD_STATUS_PENDING
|
|
5618
|
+
- ROOM_MEMBER_LOAD_STATUS_LOADING
|
|
5619
|
+
- ROOM_MEMBER_LOAD_STATUS_LOADED
|
|
5620
|
+
- ROOM_MEMBER_LOAD_STATUS_FAILED
|
|
5621
|
+
default: ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED
|
|
5516
5622
|
puppetRoomMemberPayloadResponse:
|
|
5517
5623
|
type: object
|
|
5518
5624
|
properties:
|
|
@@ -5537,6 +5643,43 @@ definitions:
|
|
|
5537
5643
|
format: double
|
|
5538
5644
|
joinScene:
|
|
5539
5645
|
$ref: '#/definitions/puppetRoomMemberJoinSceneType'
|
|
5646
|
+
puppetRoomMemberSnapshotRequest:
|
|
5647
|
+
type: object
|
|
5648
|
+
properties:
|
|
5649
|
+
id:
|
|
5650
|
+
type: string
|
|
5651
|
+
revision:
|
|
5652
|
+
type: string
|
|
5653
|
+
pageToken:
|
|
5654
|
+
type: string
|
|
5655
|
+
pageSize:
|
|
5656
|
+
type: integer
|
|
5657
|
+
format: int64
|
|
5658
|
+
description: Zero selects the adapter default (100); maximum 500.
|
|
5659
|
+
puppetRoomMemberSnapshotResponse:
|
|
5660
|
+
type: object
|
|
5661
|
+
properties:
|
|
5662
|
+
id:
|
|
5663
|
+
type: string
|
|
5664
|
+
revision:
|
|
5665
|
+
type: string
|
|
5666
|
+
loadedAt:
|
|
5667
|
+
type: string
|
|
5668
|
+
format: date-time
|
|
5669
|
+
members:
|
|
5670
|
+
type: array
|
|
5671
|
+
items:
|
|
5672
|
+
type: object
|
|
5673
|
+
$ref: '#/definitions/puppetRoomMemberPayloadResponse'
|
|
5674
|
+
nextPageToken:
|
|
5675
|
+
type: string
|
|
5676
|
+
puppetRoomMemberSyncRequest:
|
|
5677
|
+
type: object
|
|
5678
|
+
properties:
|
|
5679
|
+
id:
|
|
5680
|
+
type: string
|
|
5681
|
+
force:
|
|
5682
|
+
type: boolean
|
|
5540
5683
|
puppetRoomOwnerTransferResponse:
|
|
5541
5684
|
type: object
|
|
5542
5685
|
puppetRoomParseDynamicQRCodeResponse:
|
|
@@ -5587,6 +5730,18 @@ definitions:
|
|
|
5587
5730
|
createTime:
|
|
5588
5731
|
type: string
|
|
5589
5732
|
format: date-time
|
|
5733
|
+
memberCount:
|
|
5734
|
+
type: integer
|
|
5735
|
+
format: int64
|
|
5736
|
+
memberLoadMode:
|
|
5737
|
+
$ref: '#/definitions/puppetRoomMemberLoadMode'
|
|
5738
|
+
memberLoadStatus:
|
|
5739
|
+
$ref: '#/definitions/puppetRoomMemberLoadStatus'
|
|
5740
|
+
memberLoadRevision:
|
|
5741
|
+
type: string
|
|
5742
|
+
memberLoadedAt:
|
|
5743
|
+
type: string
|
|
5744
|
+
format: date-time
|
|
5590
5745
|
puppetRoomPermissionResponse:
|
|
5591
5746
|
type: object
|
|
5592
5747
|
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.
|
|
6
|
+
"version": "1.0.111",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1897,6 +1897,13 @@
|
|
|
1897
1897
|
"in": "query",
|
|
1898
1898
|
"required": false,
|
|
1899
1899
|
"type": "string"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"name": "replayBarrier",
|
|
1903
|
+
"description": "request a completion marker after ordered replay",
|
|
1904
|
+
"in": "query",
|
|
1905
|
+
"required": false,
|
|
1906
|
+
"type": "boolean"
|
|
1900
1907
|
}
|
|
1901
1908
|
],
|
|
1902
1909
|
"tags": [
|
|
@@ -4813,6 +4820,103 @@
|
|
|
4813
4820
|
]
|
|
4814
4821
|
}
|
|
4815
4822
|
},
|
|
4823
|
+
"/wechaty.Puppet/RoomMemberLoadState": {
|
|
4824
|
+
"post": {
|
|
4825
|
+
"operationId": "Puppet_RoomMemberLoadState",
|
|
4826
|
+
"responses": {
|
|
4827
|
+
"200": {
|
|
4828
|
+
"description": "A successful response.",
|
|
4829
|
+
"schema": {
|
|
4830
|
+
"$ref": "#/definitions/puppetRoomMemberLoadStateResponse"
|
|
4831
|
+
}
|
|
4832
|
+
},
|
|
4833
|
+
"default": {
|
|
4834
|
+
"description": "An unexpected error response.",
|
|
4835
|
+
"schema": {
|
|
4836
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
},
|
|
4840
|
+
"parameters": [
|
|
4841
|
+
{
|
|
4842
|
+
"name": "body",
|
|
4843
|
+
"in": "body",
|
|
4844
|
+
"required": true,
|
|
4845
|
+
"schema": {
|
|
4846
|
+
"$ref": "#/definitions/puppetRoomMemberLoadStateRequest"
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
],
|
|
4850
|
+
"tags": [
|
|
4851
|
+
"Puppet"
|
|
4852
|
+
]
|
|
4853
|
+
}
|
|
4854
|
+
},
|
|
4855
|
+
"/wechaty.Puppet/RoomMemberSnapshot": {
|
|
4856
|
+
"post": {
|
|
4857
|
+
"summary": "Reads an existing revision only; must not start member loading.",
|
|
4858
|
+
"operationId": "Puppet_RoomMemberSnapshot",
|
|
4859
|
+
"responses": {
|
|
4860
|
+
"200": {
|
|
4861
|
+
"description": "A successful response.",
|
|
4862
|
+
"schema": {
|
|
4863
|
+
"$ref": "#/definitions/puppetRoomMemberSnapshotResponse"
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
"default": {
|
|
4867
|
+
"description": "An unexpected error response.",
|
|
4868
|
+
"schema": {
|
|
4869
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4870
|
+
}
|
|
4871
|
+
}
|
|
4872
|
+
},
|
|
4873
|
+
"parameters": [
|
|
4874
|
+
{
|
|
4875
|
+
"name": "body",
|
|
4876
|
+
"in": "body",
|
|
4877
|
+
"required": true,
|
|
4878
|
+
"schema": {
|
|
4879
|
+
"$ref": "#/definitions/puppetRoomMemberSnapshotRequest"
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
],
|
|
4883
|
+
"tags": [
|
|
4884
|
+
"Puppet"
|
|
4885
|
+
]
|
|
4886
|
+
}
|
|
4887
|
+
},
|
|
4888
|
+
"/wechaty.Puppet/RoomMemberSync": {
|
|
4889
|
+
"post": {
|
|
4890
|
+
"operationId": "Puppet_RoomMemberSync",
|
|
4891
|
+
"responses": {
|
|
4892
|
+
"200": {
|
|
4893
|
+
"description": "A successful response.",
|
|
4894
|
+
"schema": {
|
|
4895
|
+
"$ref": "#/definitions/puppetRoomMemberLoadStateResponse"
|
|
4896
|
+
}
|
|
4897
|
+
},
|
|
4898
|
+
"default": {
|
|
4899
|
+
"description": "An unexpected error response.",
|
|
4900
|
+
"schema": {
|
|
4901
|
+
"$ref": "#/definitions/rpcStatus"
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
},
|
|
4905
|
+
"parameters": [
|
|
4906
|
+
{
|
|
4907
|
+
"name": "body",
|
|
4908
|
+
"in": "body",
|
|
4909
|
+
"required": true,
|
|
4910
|
+
"schema": {
|
|
4911
|
+
"$ref": "#/definitions/puppetRoomMemberSyncRequest"
|
|
4912
|
+
}
|
|
4913
|
+
}
|
|
4914
|
+
],
|
|
4915
|
+
"tags": [
|
|
4916
|
+
"Puppet"
|
|
4917
|
+
]
|
|
4918
|
+
}
|
|
4919
|
+
},
|
|
4816
4920
|
"/wecom/corpMessageInterceptionStrategyList": {
|
|
4817
4921
|
"get": {
|
|
4818
4922
|
"operationId": "Puppet_GetCorpMessageInterceptionStrategies",
|
|
@@ -6233,10 +6337,12 @@
|
|
|
6233
6337
|
"EVENT_TYPE_CALL",
|
|
6234
6338
|
"EVENT_TYPE_SAME_NET_VERIFY",
|
|
6235
6339
|
"EVENT_TYPE_ORG_BROADCAST_CREATED",
|
|
6236
|
-
"EVENT_TYPE_ORG_BROADCAST_SENT"
|
|
6340
|
+
"EVENT_TYPE_ORG_BROADCAST_SENT",
|
|
6341
|
+
"EVENT_TYPE_ROOM_MEMBER_LOAD",
|
|
6342
|
+
"EVENT_TYPE_REPLAY_COMPLETE"
|
|
6237
6343
|
],
|
|
6238
6344
|
"default": "EVENT_TYPE_UNSPECIFIED",
|
|
6239
|
-
"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"
|
|
6345
|
+
"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\n - EVENT_TYPE_REPLAY_COMPLETE: Opt-in stream barrier: payload {accountId, throughSeq}, envelope seq=0."
|
|
6240
6346
|
},
|
|
6241
6347
|
"puppetFriendshipAcceptResponse": {
|
|
6242
6348
|
"type": "object"
|
|
@@ -7899,6 +8005,59 @@
|
|
|
7899
8005
|
}
|
|
7900
8006
|
}
|
|
7901
8007
|
},
|
|
8008
|
+
"puppetRoomMemberLoadMode": {
|
|
8009
|
+
"type": "string",
|
|
8010
|
+
"enum": [
|
|
8011
|
+
"ROOM_MEMBER_LOAD_MODE_UNSPECIFIED",
|
|
8012
|
+
"ROOM_MEMBER_LOAD_MODE_NORMAL",
|
|
8013
|
+
"ROOM_MEMBER_LOAD_MODE_LAZY"
|
|
8014
|
+
],
|
|
8015
|
+
"default": "ROOM_MEMBER_LOAD_MODE_UNSPECIFIED"
|
|
8016
|
+
},
|
|
8017
|
+
"puppetRoomMemberLoadStateRequest": {
|
|
8018
|
+
"type": "object",
|
|
8019
|
+
"properties": {
|
|
8020
|
+
"id": {
|
|
8021
|
+
"type": "string"
|
|
8022
|
+
}
|
|
8023
|
+
}
|
|
8024
|
+
},
|
|
8025
|
+
"puppetRoomMemberLoadStateResponse": {
|
|
8026
|
+
"type": "object",
|
|
8027
|
+
"properties": {
|
|
8028
|
+
"id": {
|
|
8029
|
+
"type": "string"
|
|
8030
|
+
},
|
|
8031
|
+
"taskId": {
|
|
8032
|
+
"type": "string"
|
|
8033
|
+
},
|
|
8034
|
+
"status": {
|
|
8035
|
+
"$ref": "#/definitions/puppetRoomMemberLoadStatus"
|
|
8036
|
+
},
|
|
8037
|
+
"revision": {
|
|
8038
|
+
"type": "string",
|
|
8039
|
+
"description": "Canonical non-negative decimal string; never convert to a JS number."
|
|
8040
|
+
},
|
|
8041
|
+
"loadedAt": {
|
|
8042
|
+
"type": "string",
|
|
8043
|
+
"format": "date-time"
|
|
8044
|
+
},
|
|
8045
|
+
"error": {
|
|
8046
|
+
"type": "string"
|
|
8047
|
+
}
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
"puppetRoomMemberLoadStatus": {
|
|
8051
|
+
"type": "string",
|
|
8052
|
+
"enum": [
|
|
8053
|
+
"ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED",
|
|
8054
|
+
"ROOM_MEMBER_LOAD_STATUS_PENDING",
|
|
8055
|
+
"ROOM_MEMBER_LOAD_STATUS_LOADING",
|
|
8056
|
+
"ROOM_MEMBER_LOAD_STATUS_LOADED",
|
|
8057
|
+
"ROOM_MEMBER_LOAD_STATUS_FAILED"
|
|
8058
|
+
],
|
|
8059
|
+
"default": "ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED"
|
|
8060
|
+
},
|
|
7902
8061
|
"puppetRoomMemberPayloadResponse": {
|
|
7903
8062
|
"type": "object",
|
|
7904
8063
|
"properties": {
|
|
@@ -7933,6 +8092,61 @@
|
|
|
7933
8092
|
}
|
|
7934
8093
|
}
|
|
7935
8094
|
},
|
|
8095
|
+
"puppetRoomMemberSnapshotRequest": {
|
|
8096
|
+
"type": "object",
|
|
8097
|
+
"properties": {
|
|
8098
|
+
"id": {
|
|
8099
|
+
"type": "string"
|
|
8100
|
+
},
|
|
8101
|
+
"revision": {
|
|
8102
|
+
"type": "string"
|
|
8103
|
+
},
|
|
8104
|
+
"pageToken": {
|
|
8105
|
+
"type": "string"
|
|
8106
|
+
},
|
|
8107
|
+
"pageSize": {
|
|
8108
|
+
"type": "integer",
|
|
8109
|
+
"format": "int64",
|
|
8110
|
+
"description": "Zero selects the adapter default (100); maximum 500."
|
|
8111
|
+
}
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8114
|
+
"puppetRoomMemberSnapshotResponse": {
|
|
8115
|
+
"type": "object",
|
|
8116
|
+
"properties": {
|
|
8117
|
+
"id": {
|
|
8118
|
+
"type": "string"
|
|
8119
|
+
},
|
|
8120
|
+
"revision": {
|
|
8121
|
+
"type": "string"
|
|
8122
|
+
},
|
|
8123
|
+
"loadedAt": {
|
|
8124
|
+
"type": "string",
|
|
8125
|
+
"format": "date-time"
|
|
8126
|
+
},
|
|
8127
|
+
"members": {
|
|
8128
|
+
"type": "array",
|
|
8129
|
+
"items": {
|
|
8130
|
+
"type": "object",
|
|
8131
|
+
"$ref": "#/definitions/puppetRoomMemberPayloadResponse"
|
|
8132
|
+
}
|
|
8133
|
+
},
|
|
8134
|
+
"nextPageToken": {
|
|
8135
|
+
"type": "string"
|
|
8136
|
+
}
|
|
8137
|
+
}
|
|
8138
|
+
},
|
|
8139
|
+
"puppetRoomMemberSyncRequest": {
|
|
8140
|
+
"type": "object",
|
|
8141
|
+
"properties": {
|
|
8142
|
+
"id": {
|
|
8143
|
+
"type": "string"
|
|
8144
|
+
},
|
|
8145
|
+
"force": {
|
|
8146
|
+
"type": "boolean"
|
|
8147
|
+
}
|
|
8148
|
+
}
|
|
8149
|
+
},
|
|
7936
8150
|
"puppetRoomOwnerTransferResponse": {
|
|
7937
8151
|
"type": "object"
|
|
7938
8152
|
},
|
|
@@ -8001,6 +8215,23 @@
|
|
|
8001
8215
|
"createTime": {
|
|
8002
8216
|
"type": "string",
|
|
8003
8217
|
"format": "date-time"
|
|
8218
|
+
},
|
|
8219
|
+
"memberCount": {
|
|
8220
|
+
"type": "integer",
|
|
8221
|
+
"format": "int64"
|
|
8222
|
+
},
|
|
8223
|
+
"memberLoadMode": {
|
|
8224
|
+
"$ref": "#/definitions/puppetRoomMemberLoadMode"
|
|
8225
|
+
},
|
|
8226
|
+
"memberLoadStatus": {
|
|
8227
|
+
"$ref": "#/definitions/puppetRoomMemberLoadStatus"
|
|
8228
|
+
},
|
|
8229
|
+
"memberLoadRevision": {
|
|
8230
|
+
"type": "string"
|
|
8231
|
+
},
|
|
8232
|
+
"memberLoadedAt": {
|
|
8233
|
+
"type": "string",
|
|
8234
|
+
"format": "date-time"
|
|
8004
8235
|
}
|
|
8005
8236
|
}
|
|
8006
8237
|
},
|
|
@@ -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;
|