@juzi/wechaty-grpc 1.0.108 → 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 (62) hide show
  1. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +3 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +4 -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/wecom_pb.d.ts +174 -0
  6. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1257 -4
  7. package/dist/cjs/out/wechaty/puppet.openapi.yaml +281 -1
  8. package/dist/cjs/out/wechaty/puppet.swagger.json +401 -3
  9. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +85 -0
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +155 -0
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +95 -0
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +200 -0
  13. package/dist/cjs/proto/wechaty/puppet/event.proto +5 -0
  14. package/dist/cjs/proto/wechaty/puppet/room.proto +55 -0
  15. package/dist/cjs/proto/wechaty/puppet/wecom.proto +47 -0
  16. package/dist/cjs/proto/wechaty/puppet.proto +18 -0
  17. package/dist/cjs/src/package-json.js +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +25 -0
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/cjs/tests/room-member-load.spec.d.ts +2 -0
  22. package/dist/cjs/tests/room-member-load.spec.d.ts.map +1 -0
  23. package/dist/cjs/tests/room-member-load.spec.js +134 -0
  24. package/dist/cjs/tests/room-member-load.spec.js.map +1 -0
  25. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +3 -0
  26. package/dist/esm/out/wechaty/puppet/event_pb.js +4 -1
  27. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +199 -0
  28. package/dist/esm/out/wechaty/puppet/room_pb.js +1418 -1
  29. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  30. package/dist/esm/out/wechaty/puppet/wecom_pb.js +1257 -4
  31. package/dist/esm/out/wechaty/puppet.openapi.yaml +281 -1
  32. package/dist/esm/out/wechaty/puppet.swagger.json +401 -3
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +85 -0
  34. package/dist/esm/out/wechaty/puppet_grpc_pb.js +155 -0
  35. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +95 -0
  36. package/dist/esm/out/wechaty/puppet_pb_service.js +200 -0
  37. package/dist/esm/proto/wechaty/puppet/event.proto +5 -0
  38. package/dist/esm/proto/wechaty/puppet/room.proto +55 -0
  39. package/dist/esm/proto/wechaty/puppet/wecom.proto +47 -0
  40. package/dist/esm/proto/wechaty/puppet.proto +18 -0
  41. package/dist/esm/src/package-json.js +1 -1
  42. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +25 -0
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/dist/esm/tests/room-member-load.spec.d.ts +2 -0
  46. package/dist/esm/tests/room-member-load.spec.d.ts.map +1 -0
  47. package/dist/esm/tests/room-member-load.spec.js +132 -0
  48. package/dist/esm/tests/room-member-load.spec.js.map +1 -0
  49. package/out/wechaty/puppet/event_pb.d.ts +3 -0
  50. package/out/wechaty/puppet/event_pb.js +4 -1
  51. package/out/wechaty/puppet/room_pb.d.ts +199 -0
  52. package/out/wechaty/puppet/room_pb.js +1418 -1
  53. package/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  54. package/out/wechaty/puppet/wecom_pb.js +1257 -4
  55. package/out/wechaty/puppet.openapi.yaml +281 -1
  56. package/out/wechaty/puppet.swagger.json +401 -3
  57. package/out/wechaty/puppet_grpc_pb.d.ts +85 -0
  58. package/out/wechaty/puppet_grpc_pb.js +155 -0
  59. package/out/wechaty/puppet_pb_service.d.ts +95 -0
  60. package/out/wechaty/puppet_pb_service.js +200 -0
  61. package/package.json +1 -1
  62. 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.108
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
@@ -3193,6 +3254,49 @@ paths:
3193
3254
  $ref: '#/definitions/rpcStatus'
3194
3255
  tags:
3195
3256
  - Puppet
3257
+ /wecom/orgBroadcast/{id}:
3258
+ get:
3259
+ operationId: Puppet_OrgBroadcastPayload
3260
+ responses:
3261
+ '200':
3262
+ description: A successful response.
3263
+ schema:
3264
+ $ref: '#/definitions/puppetOrgBroadcastPayloadResponse'
3265
+ default:
3266
+ description: An unexpected error response.
3267
+ schema:
3268
+ $ref: '#/definitions/rpcStatus'
3269
+ parameters:
3270
+ - name: id
3271
+ in: path
3272
+ required: true
3273
+ type: string
3274
+ tags:
3275
+ - Puppet
3276
+ /wecom/orgBroadcast/{id}/execute:
3277
+ post:
3278
+ operationId: Puppet_OrgBroadcastExecute
3279
+ responses:
3280
+ '200':
3281
+ description: A successful response.
3282
+ schema:
3283
+ $ref: '#/definitions/puppetOrgBroadcastExecuteResponse'
3284
+ default:
3285
+ description: An unexpected error response.
3286
+ schema:
3287
+ $ref: '#/definitions/rpcStatus'
3288
+ parameters:
3289
+ - name: id
3290
+ in: path
3291
+ required: true
3292
+ type: string
3293
+ - name: body
3294
+ in: body
3295
+ required: true
3296
+ schema:
3297
+ $ref: '#/definitions/PuppetOrgBroadcastExecuteBody'
3298
+ tags:
3299
+ - Puppet
3196
3300
  /wecom/roomAntiSpamStrategy/apply:
3197
3301
  post:
3198
3302
  operationId: Puppet_ApplyRoomAntiSpamStrategy
@@ -3487,6 +3591,19 @@ definitions:
3487
3591
  urlLink:
3488
3592
  $ref: '#/definitions/puppetUrlLinkPayload'
3489
3593
  title: 链接payload
3594
+ PuppetOrgBroadcastExecuteBody:
3595
+ type: object
3596
+ properties:
3597
+ targetIds:
3598
+ type: array
3599
+ items:
3600
+ type: string
3601
+ title: >-
3602
+ empty means all targets of the plan; otherwise a subset of the plan
3603
+ targets.
3604
+
3605
+ clients must not send an explicit empty selection, it would be read as
3606
+ all targets
3490
3607
  PuppetRoomAnnounceBody:
3491
3608
  type: object
3492
3609
  properties:
@@ -4195,10 +4312,15 @@ definitions:
4195
4312
  - EVENT_TYPE_VERIFY_SLIDE
4196
4313
  - EVENT_TYPE_CALL
4197
4314
  - EVENT_TYPE_SAME_NET_VERIFY
4315
+ - EVENT_TYPE_ORG_BROADCAST_CREATED
4316
+ - EVENT_TYPE_ORG_BROADCAST_SENT
4317
+ - EVENT_TYPE_ROOM_MEMBER_LOAD
4198
4318
  default: EVENT_TYPE_UNSPECIFIED
4199
4319
  description: >-
4200
4320
  - EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat
4201
4321
  login on Mac protocol
4322
+ - EVENT_TYPE_ORG_BROADCAST_CREATED: wecom org (admin) broadcast plan arrived: member received the broadcast assistant card
4323
+ - EVENT_TYPE_ORG_BROADCAST_SENT: wecom org (admin) broadcast plan executed, from any client
4202
4324
  puppetFriendshipAcceptResponse:
4203
4325
  type: object
4204
4326
  puppetFriendshipAddResponse:
@@ -5064,6 +5186,77 @@ definitions:
5064
5186
  - BOOL_FALSE
5065
5187
  - BOOL_TRUE
5066
5188
  default: BOOL_UNSET
5189
+ puppetOrgBroadcastExecuteResponse:
5190
+ type: object
5191
+ puppetOrgBroadcastPayloadResponse:
5192
+ type: object
5193
+ properties:
5194
+ id:
5195
+ type: string
5196
+ sendType:
5197
+ type: integer
5198
+ format: int32
5199
+ title: '0: official (org admin), 1: personal, 2: special'
5200
+ conversationType:
5201
+ type: integer
5202
+ format: int32
5203
+ title: '0: person, 1: group'
5204
+ creatorId:
5205
+ type: string
5206
+ execTime:
5207
+ type: string
5208
+ format: int64
5209
+ title: milliseconds timestamp of the scheduled sending, 0 means immediately
5210
+ status:
5211
+ type: integer
5212
+ format: int32
5213
+ title: >-
5214
+ 0: checking, 1: check succeeded, 2: check failed, 3: delayed send
5215
+ succeeded, 4: delayed send canceled
5216
+ canCancel:
5217
+ type: boolean
5218
+ allowSelect:
5219
+ type: boolean
5220
+ title: members may adjust targets before sending
5221
+ sent:
5222
+ type: boolean
5223
+ totalCount:
5224
+ type: integer
5225
+ format: int32
5226
+ sentCount:
5227
+ type: integer
5228
+ format: int32
5229
+ contentListJson:
5230
+ type: string
5231
+ targets:
5232
+ type: array
5233
+ items:
5234
+ type: object
5235
+ $ref: '#/definitions/puppetOrgBroadcastTarget'
5236
+ puppetOrgBroadcastTarget:
5237
+ type: object
5238
+ properties:
5239
+ contactId:
5240
+ type: string
5241
+ title: set when conversation_type is person
5242
+ roomId:
5243
+ type: string
5244
+ title: set when conversation_type is group
5245
+ status:
5246
+ $ref: '#/definitions/puppetOrgBroadcastTargetStatus'
5247
+ puppetOrgBroadcastTargetStatus:
5248
+ type: string
5249
+ enum:
5250
+ - ORG_BROADCAST_TARGET_STATUS_UNSENT
5251
+ - ORG_BROADCAST_TARGET_STATUS_SENT
5252
+ - ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND
5253
+ - ORG_BROADCAST_TARGET_STATUS_OCCUPIED
5254
+ - ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED
5255
+ - ORG_BROADCAST_TARGET_STATUS_CONFIRMED
5256
+ - ORG_BROADCAST_TARGET_STATUS_EXPIRED
5257
+ - ORG_BROADCAST_TARGET_STATUS_CANCELED
5258
+ - ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT
5259
+ default: ORG_BROADCAST_TARGET_STATUS_UNSENT
5067
5260
  puppetPayloadType:
5068
5261
  type: string
5069
5262
  enum:
@@ -5382,6 +5575,44 @@ definitions:
5382
5575
  type: array
5383
5576
  items:
5384
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
5385
5616
  puppetRoomMemberPayloadResponse:
5386
5617
  type: object
5387
5618
  properties:
@@ -5406,6 +5637,43 @@ definitions:
5406
5637
  format: double
5407
5638
  joinScene:
5408
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
5409
5677
  puppetRoomOwnerTransferResponse:
5410
5678
  type: object
5411
5679
  puppetRoomParseDynamicQRCodeResponse:
@@ -5456,6 +5724,18 @@ definitions:
5456
5724
  createTime:
5457
5725
  type: string
5458
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
5459
5739
  puppetRoomPermissionResponse:
5460
5740
  type: object
5461
5741
  properties: