@juzi/wechaty-grpc 1.0.108 → 1.0.109

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +2 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +3 -1
  3. package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  4. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1257 -4
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +132 -1
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +178 -3
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  11. package/dist/cjs/proto/wechaty/puppet/event.proto +4 -0
  12. package/dist/cjs/proto/wechaty/puppet/wecom.proto +47 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +13 -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 +10 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +2 -0
  19. package/dist/esm/out/wechaty/puppet/event_pb.js +3 -1
  20. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  21. package/dist/esm/out/wechaty/puppet/wecom_pb.js +1257 -4
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +132 -1
  23. package/dist/esm/out/wechaty/puppet.swagger.json +178 -3
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  28. package/dist/esm/proto/wechaty/puppet/event.proto +4 -0
  29. package/dist/esm/proto/wechaty/puppet/wecom.proto +47 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +10 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/event_pb.d.ts +2 -0
  36. package/out/wechaty/puppet/event_pb.js +3 -1
  37. package/out/wechaty/puppet/wecom_pb.d.ts +174 -0
  38. package/out/wechaty/puppet/wecom_pb.js +1257 -4
  39. package/out/wechaty/puppet.openapi.yaml +132 -1
  40. package/out/wechaty/puppet.swagger.json +178 -3
  41. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  42. package/out/wechaty/puppet_grpc_pb.js +66 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  44. package/out/wechaty/puppet_pb_service.js +80 -0
  45. package/package.json +1 -1
  46. 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.109
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: https://github.com/wechaty/openapi
@@ -3193,6 +3193,49 @@ paths:
3193
3193
  $ref: '#/definitions/rpcStatus'
3194
3194
  tags:
3195
3195
  - Puppet
3196
+ /wecom/orgBroadcast/{id}:
3197
+ get:
3198
+ operationId: Puppet_OrgBroadcastPayload
3199
+ responses:
3200
+ '200':
3201
+ description: A successful response.
3202
+ schema:
3203
+ $ref: '#/definitions/puppetOrgBroadcastPayloadResponse'
3204
+ default:
3205
+ description: An unexpected error response.
3206
+ schema:
3207
+ $ref: '#/definitions/rpcStatus'
3208
+ parameters:
3209
+ - name: id
3210
+ in: path
3211
+ required: true
3212
+ type: string
3213
+ tags:
3214
+ - Puppet
3215
+ /wecom/orgBroadcast/{id}/execute:
3216
+ post:
3217
+ operationId: Puppet_OrgBroadcastExecute
3218
+ responses:
3219
+ '200':
3220
+ description: A successful response.
3221
+ schema:
3222
+ $ref: '#/definitions/puppetOrgBroadcastExecuteResponse'
3223
+ default:
3224
+ description: An unexpected error response.
3225
+ schema:
3226
+ $ref: '#/definitions/rpcStatus'
3227
+ parameters:
3228
+ - name: id
3229
+ in: path
3230
+ required: true
3231
+ type: string
3232
+ - name: body
3233
+ in: body
3234
+ required: true
3235
+ schema:
3236
+ $ref: '#/definitions/PuppetOrgBroadcastExecuteBody'
3237
+ tags:
3238
+ - Puppet
3196
3239
  /wecom/roomAntiSpamStrategy/apply:
3197
3240
  post:
3198
3241
  operationId: Puppet_ApplyRoomAntiSpamStrategy
@@ -3487,6 +3530,19 @@ definitions:
3487
3530
  urlLink:
3488
3531
  $ref: '#/definitions/puppetUrlLinkPayload'
3489
3532
  title: 链接payload
3533
+ PuppetOrgBroadcastExecuteBody:
3534
+ type: object
3535
+ properties:
3536
+ targetIds:
3537
+ type: array
3538
+ items:
3539
+ type: string
3540
+ title: >-
3541
+ empty means all targets of the plan; otherwise a subset of the plan
3542
+ targets.
3543
+
3544
+ clients must not send an explicit empty selection, it would be read as
3545
+ all targets
3490
3546
  PuppetRoomAnnounceBody:
3491
3547
  type: object
3492
3548
  properties:
@@ -4195,10 +4251,14 @@ definitions:
4195
4251
  - EVENT_TYPE_VERIFY_SLIDE
4196
4252
  - EVENT_TYPE_CALL
4197
4253
  - EVENT_TYPE_SAME_NET_VERIFY
4254
+ - EVENT_TYPE_ORG_BROADCAST_CREATED
4255
+ - EVENT_TYPE_ORG_BROADCAST_SENT
4198
4256
  default: EVENT_TYPE_UNSPECIFIED
4199
4257
  description: >-
4200
4258
  - EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat
4201
4259
  login on Mac protocol
4260
+ - EVENT_TYPE_ORG_BROADCAST_CREATED: wecom org (admin) broadcast plan arrived: member received the broadcast assistant card
4261
+ - EVENT_TYPE_ORG_BROADCAST_SENT: wecom org (admin) broadcast plan executed, from any client
4202
4262
  puppetFriendshipAcceptResponse:
4203
4263
  type: object
4204
4264
  puppetFriendshipAddResponse:
@@ -5064,6 +5124,77 @@ definitions:
5064
5124
  - BOOL_FALSE
5065
5125
  - BOOL_TRUE
5066
5126
  default: BOOL_UNSET
5127
+ puppetOrgBroadcastExecuteResponse:
5128
+ type: object
5129
+ puppetOrgBroadcastPayloadResponse:
5130
+ type: object
5131
+ properties:
5132
+ id:
5133
+ type: string
5134
+ sendType:
5135
+ type: integer
5136
+ format: int32
5137
+ title: '0: official (org admin), 1: personal, 2: special'
5138
+ conversationType:
5139
+ type: integer
5140
+ format: int32
5141
+ title: '0: person, 1: group'
5142
+ creatorId:
5143
+ type: string
5144
+ execTime:
5145
+ type: string
5146
+ format: int64
5147
+ title: milliseconds timestamp of the scheduled sending, 0 means immediately
5148
+ status:
5149
+ type: integer
5150
+ format: int32
5151
+ title: >-
5152
+ 0: checking, 1: check succeeded, 2: check failed, 3: delayed send
5153
+ succeeded, 4: delayed send canceled
5154
+ canCancel:
5155
+ type: boolean
5156
+ allowSelect:
5157
+ type: boolean
5158
+ title: members may adjust targets before sending
5159
+ sent:
5160
+ type: boolean
5161
+ totalCount:
5162
+ type: integer
5163
+ format: int32
5164
+ sentCount:
5165
+ type: integer
5166
+ format: int32
5167
+ contentListJson:
5168
+ type: string
5169
+ targets:
5170
+ type: array
5171
+ items:
5172
+ type: object
5173
+ $ref: '#/definitions/puppetOrgBroadcastTarget'
5174
+ puppetOrgBroadcastTarget:
5175
+ type: object
5176
+ properties:
5177
+ contactId:
5178
+ type: string
5179
+ title: set when conversation_type is person
5180
+ roomId:
5181
+ type: string
5182
+ title: set when conversation_type is group
5183
+ status:
5184
+ $ref: '#/definitions/puppetOrgBroadcastTargetStatus'
5185
+ puppetOrgBroadcastTargetStatus:
5186
+ type: string
5187
+ enum:
5188
+ - ORG_BROADCAST_TARGET_STATUS_UNSENT
5189
+ - ORG_BROADCAST_TARGET_STATUS_SENT
5190
+ - ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND
5191
+ - ORG_BROADCAST_TARGET_STATUS_OCCUPIED
5192
+ - ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED
5193
+ - ORG_BROADCAST_TARGET_STATUS_CONFIRMED
5194
+ - ORG_BROADCAST_TARGET_STATUS_EXPIRED
5195
+ - ORG_BROADCAST_TARGET_STATUS_CANCELED
5196
+ - ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT
5197
+ default: ORG_BROADCAST_TARGET_STATUS_UNSENT
5067
5198
  puppetPayloadType:
5068
5199
  type: string
5069
5200
  enum:
@@ -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.108",
6
+ "version": "1.0.109",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -4835,6 +4835,74 @@
4835
4835
  ]
4836
4836
  }
4837
4837
  },
4838
+ "/wecom/orgBroadcast/{id}": {
4839
+ "get": {
4840
+ "operationId": "Puppet_OrgBroadcastPayload",
4841
+ "responses": {
4842
+ "200": {
4843
+ "description": "A successful response.",
4844
+ "schema": {
4845
+ "$ref": "#/definitions/puppetOrgBroadcastPayloadResponse"
4846
+ }
4847
+ },
4848
+ "default": {
4849
+ "description": "An unexpected error response.",
4850
+ "schema": {
4851
+ "$ref": "#/definitions/rpcStatus"
4852
+ }
4853
+ }
4854
+ },
4855
+ "parameters": [
4856
+ {
4857
+ "name": "id",
4858
+ "in": "path",
4859
+ "required": true,
4860
+ "type": "string"
4861
+ }
4862
+ ],
4863
+ "tags": [
4864
+ "Puppet"
4865
+ ]
4866
+ }
4867
+ },
4868
+ "/wecom/orgBroadcast/{id}/execute": {
4869
+ "post": {
4870
+ "operationId": "Puppet_OrgBroadcastExecute",
4871
+ "responses": {
4872
+ "200": {
4873
+ "description": "A successful response.",
4874
+ "schema": {
4875
+ "$ref": "#/definitions/puppetOrgBroadcastExecuteResponse"
4876
+ }
4877
+ },
4878
+ "default": {
4879
+ "description": "An unexpected error response.",
4880
+ "schema": {
4881
+ "$ref": "#/definitions/rpcStatus"
4882
+ }
4883
+ }
4884
+ },
4885
+ "parameters": [
4886
+ {
4887
+ "name": "id",
4888
+ "in": "path",
4889
+ "required": true,
4890
+ "type": "string"
4891
+ },
4892
+ {
4893
+ "name": "body",
4894
+ "in": "body",
4895
+ "required": true,
4896
+ "schema": {
4897
+ "$ref": "#/definitions/PuppetOrgBroadcastExecuteBody"
4898
+ }
4899
+ }
4900
+ ],
4901
+ "tags": [
4902
+ "Puppet"
4903
+ ]
4904
+ }
4905
+ },
4838
4906
  "/wecom/roomAntiSpamStrategy/apply": {
4839
4907
  "post": {
4840
4908
  "operationId": "Puppet_ApplyRoomAntiSpamStrategy",
@@ -5239,6 +5307,18 @@
5239
5307
  }
5240
5308
  }
5241
5309
  },
5310
+ "PuppetOrgBroadcastExecuteBody": {
5311
+ "type": "object",
5312
+ "properties": {
5313
+ "targetIds": {
5314
+ "type": "array",
5315
+ "items": {
5316
+ "type": "string"
5317
+ },
5318
+ "title": "empty means all targets of the plan; otherwise a subset of the plan targets.\nclients must not send an explicit empty selection, it would be read as all targets"
5319
+ }
5320
+ }
5321
+ },
5242
5322
  "PuppetRoomAnnounceBody": {
5243
5323
  "type": "object",
5244
5324
  "properties": {
@@ -6151,10 +6231,12 @@
6151
6231
  "EVENT_TYPE_VERIFY_CODE",
6152
6232
  "EVENT_TYPE_VERIFY_SLIDE",
6153
6233
  "EVENT_TYPE_CALL",
6154
- "EVENT_TYPE_SAME_NET_VERIFY"
6234
+ "EVENT_TYPE_SAME_NET_VERIFY",
6235
+ "EVENT_TYPE_ORG_BROADCAST_CREATED",
6236
+ "EVENT_TYPE_ORG_BROADCAST_SENT"
6155
6237
  ],
6156
6238
  "default": "EVENT_TYPE_UNSPECIFIED",
6157
- "description": "- EVENT_TYPE_SAME_NET_VERIFY: same network verify for personal wechat login on Mac protocol"
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"
6158
6240
  },
6159
6241
  "puppetFriendshipAcceptResponse": {
6160
6242
  "type": "object"
@@ -7287,6 +7369,99 @@
7287
7369
  ],
7288
7370
  "default": "BOOL_UNSET"
7289
7371
  },
7372
+ "puppetOrgBroadcastExecuteResponse": {
7373
+ "type": "object"
7374
+ },
7375
+ "puppetOrgBroadcastPayloadResponse": {
7376
+ "type": "object",
7377
+ "properties": {
7378
+ "id": {
7379
+ "type": "string"
7380
+ },
7381
+ "sendType": {
7382
+ "type": "integer",
7383
+ "format": "int32",
7384
+ "title": "0: official (org admin), 1: personal, 2: special"
7385
+ },
7386
+ "conversationType": {
7387
+ "type": "integer",
7388
+ "format": "int32",
7389
+ "title": "0: person, 1: group"
7390
+ },
7391
+ "creatorId": {
7392
+ "type": "string"
7393
+ },
7394
+ "execTime": {
7395
+ "type": "string",
7396
+ "format": "int64",
7397
+ "title": "milliseconds timestamp of the scheduled sending, 0 means immediately"
7398
+ },
7399
+ "status": {
7400
+ "type": "integer",
7401
+ "format": "int32",
7402
+ "title": "0: checking, 1: check succeeded, 2: check failed, 3: delayed send succeeded, 4: delayed send canceled"
7403
+ },
7404
+ "canCancel": {
7405
+ "type": "boolean"
7406
+ },
7407
+ "allowSelect": {
7408
+ "type": "boolean",
7409
+ "title": "members may adjust targets before sending"
7410
+ },
7411
+ "sent": {
7412
+ "type": "boolean"
7413
+ },
7414
+ "totalCount": {
7415
+ "type": "integer",
7416
+ "format": "int32"
7417
+ },
7418
+ "sentCount": {
7419
+ "type": "integer",
7420
+ "format": "int32"
7421
+ },
7422
+ "contentListJson": {
7423
+ "type": "string"
7424
+ },
7425
+ "targets": {
7426
+ "type": "array",
7427
+ "items": {
7428
+ "type": "object",
7429
+ "$ref": "#/definitions/puppetOrgBroadcastTarget"
7430
+ }
7431
+ }
7432
+ }
7433
+ },
7434
+ "puppetOrgBroadcastTarget": {
7435
+ "type": "object",
7436
+ "properties": {
7437
+ "contactId": {
7438
+ "type": "string",
7439
+ "title": "set when conversation_type is person"
7440
+ },
7441
+ "roomId": {
7442
+ "type": "string",
7443
+ "title": "set when conversation_type is group"
7444
+ },
7445
+ "status": {
7446
+ "$ref": "#/definitions/puppetOrgBroadcastTargetStatus"
7447
+ }
7448
+ }
7449
+ },
7450
+ "puppetOrgBroadcastTargetStatus": {
7451
+ "type": "string",
7452
+ "enum": [
7453
+ "ORG_BROADCAST_TARGET_STATUS_UNSENT",
7454
+ "ORG_BROADCAST_TARGET_STATUS_SENT",
7455
+ "ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND",
7456
+ "ORG_BROADCAST_TARGET_STATUS_OCCUPIED",
7457
+ "ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED",
7458
+ "ORG_BROADCAST_TARGET_STATUS_CONFIRMED",
7459
+ "ORG_BROADCAST_TARGET_STATUS_EXPIRED",
7460
+ "ORG_BROADCAST_TARGET_STATUS_CANCELED",
7461
+ "ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT"
7462
+ ],
7463
+ "default": "ORG_BROADCAST_TARGET_STATUS_UNSENT"
7464
+ },
7290
7465
  "puppetPayloadType": {
7291
7466
  "type": "string",
7292
7467
  "enum": [
@@ -158,6 +158,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
158
158
  getRoomAntiSpamStrategyEffectRoomList: IPuppetService_IGetRoomAntiSpamStrategyEffectRoomList;
159
159
  applyRoomAntiSpamStrategy: IPuppetService_IApplyRoomAntiSpamStrategy;
160
160
  getCorpMessageInterceptionStrategies: IPuppetService_IGetCorpMessageInterceptionStrategies;
161
+ orgBroadcastPayload: IPuppetService_IOrgBroadcastPayload;
162
+ orgBroadcastExecute: IPuppetService_IOrgBroadcastExecute;
161
163
  download: IPuppetService_IDownload;
162
164
  upload: IPuppetService_IUpload;
163
165
  }
@@ -1359,6 +1361,24 @@ interface IPuppetService_IGetCorpMessageInterceptionStrategies extends grpc.Meth
1359
1361
  responseSerialize: grpc.serialize<wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse>;
1360
1362
  responseDeserialize: grpc.deserialize<wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse>;
1361
1363
  }
1364
+ interface IPuppetService_IOrgBroadcastPayload extends grpc.MethodDefinition<wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse> {
1365
+ path: "/wechaty.Puppet/OrgBroadcastPayload";
1366
+ requestStream: false;
1367
+ responseStream: false;
1368
+ requestSerialize: grpc.serialize<wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest>;
1369
+ requestDeserialize: grpc.deserialize<wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest>;
1370
+ responseSerialize: grpc.serialize<wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse>;
1371
+ responseDeserialize: grpc.deserialize<wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse>;
1372
+ }
1373
+ interface IPuppetService_IOrgBroadcastExecute extends grpc.MethodDefinition<wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse> {
1374
+ path: "/wechaty.Puppet/OrgBroadcastExecute";
1375
+ requestStream: false;
1376
+ responseStream: false;
1377
+ requestSerialize: grpc.serialize<wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest>;
1378
+ requestDeserialize: grpc.deserialize<wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest>;
1379
+ responseSerialize: grpc.serialize<wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse>;
1380
+ responseDeserialize: grpc.deserialize<wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse>;
1381
+ }
1362
1382
  interface IPuppetService_IDownload extends grpc.MethodDefinition<wechaty_puppet_download_upload_pb.DownloadRequest, wechaty_puppet_download_upload_pb.DownloadResponse> {
1363
1383
  path: "/wechaty.Puppet/Download";
1364
1384
  requestStream: false;
@@ -1514,6 +1534,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
1514
1534
  getRoomAntiSpamStrategyEffectRoomList: grpc.handleUnaryCall<wechaty_puppet_wecom_pb.GetRoomAntiSpamStrategyEffectRoomListRequest, wechaty_puppet_wecom_pb.GetRoomAntiSpamStrategyEffectRoomListResponse>;
1515
1535
  applyRoomAntiSpamStrategy: grpc.handleUnaryCall<wechaty_puppet_wecom_pb.ApplyRoomAntiSpamStrategyRequest, wechaty_puppet_wecom_pb.ApplyRoomAntiSpamStrategyResponse>;
1516
1536
  getCorpMessageInterceptionStrategies: grpc.handleUnaryCall<wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse>;
1537
+ orgBroadcastPayload: grpc.handleUnaryCall<wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse>;
1538
+ orgBroadcastExecute: grpc.handleUnaryCall<wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse>;
1517
1539
  download: grpc.handleServerStreamingCall<wechaty_puppet_download_upload_pb.DownloadRequest, wechaty_puppet_download_upload_pb.DownloadResponse>;
1518
1540
  upload: grpc.handleClientStreamingCall<wechaty_puppet_download_upload_pb.UploadRequest, wechaty_puppet_download_upload_pb.UploadResponse>;
1519
1541
  }
@@ -1917,6 +1939,12 @@ export interface IPuppetClient {
1917
1939
  getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
1918
1940
  getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
1919
1941
  getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
1942
+ orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
1943
+ orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
1944
+ orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
1945
+ orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
1946
+ orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
1947
+ orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
1920
1948
  download(request: wechaty_puppet_download_upload_pb.DownloadRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
1921
1949
  download(request: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
1922
1950
  upload(callback: (error: grpc.ServiceError | null, response: wechaty_puppet_download_upload_pb.UploadResponse) => void): grpc.ClientWritableStream<wechaty_puppet_download_upload_pb.UploadRequest>;
@@ -2325,6 +2353,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
2325
2353
  public getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
2326
2354
  public getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
2327
2355
  public getCorpMessageInterceptionStrategies(request: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse) => void): grpc.ClientUnaryCall;
2356
+ public orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
2357
+ public orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
2358
+ public orgBroadcastPayload(request: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse) => void): grpc.ClientUnaryCall;
2359
+ public orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
2360
+ public orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
2361
+ public orgBroadcastExecute(request: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse) => void): grpc.ClientUnaryCall;
2328
2362
  public download(request: wechaty_puppet_download_upload_pb.DownloadRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
2329
2363
  public download(request: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
2330
2364
  public upload(callback: (error: grpc.ServiceError | null, response: wechaty_puppet_download_upload_pb.UploadResponse) => void): grpc.ClientWritableStream<wechaty_puppet_download_upload_pb.UploadRequest>;
@@ -1969,6 +1969,50 @@ function deserialize_wechaty_puppet_MomentVisibleListResponse(buffer_arg) {
1969
1969
  return wechaty_puppet_moment_pb.MomentVisibleListResponse.deserializeBinary(new Uint8Array(buffer_arg));
1970
1970
  }
1971
1971
 
1972
+ function serialize_wechaty_puppet_OrgBroadcastExecuteRequest(arg) {
1973
+ if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest)) {
1974
+ throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastExecuteRequest');
1975
+ }
1976
+ return Buffer.from(arg.serializeBinary());
1977
+ }
1978
+
1979
+ function deserialize_wechaty_puppet_OrgBroadcastExecuteRequest(buffer_arg) {
1980
+ return wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest.deserializeBinary(new Uint8Array(buffer_arg));
1981
+ }
1982
+
1983
+ function serialize_wechaty_puppet_OrgBroadcastExecuteResponse(arg) {
1984
+ if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse)) {
1985
+ throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastExecuteResponse');
1986
+ }
1987
+ return Buffer.from(arg.serializeBinary());
1988
+ }
1989
+
1990
+ function deserialize_wechaty_puppet_OrgBroadcastExecuteResponse(buffer_arg) {
1991
+ return wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse.deserializeBinary(new Uint8Array(buffer_arg));
1992
+ }
1993
+
1994
+ function serialize_wechaty_puppet_OrgBroadcastPayloadRequest(arg) {
1995
+ if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest)) {
1996
+ throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastPayloadRequest');
1997
+ }
1998
+ return Buffer.from(arg.serializeBinary());
1999
+ }
2000
+
2001
+ function deserialize_wechaty_puppet_OrgBroadcastPayloadRequest(buffer_arg) {
2002
+ return wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest.deserializeBinary(new Uint8Array(buffer_arg));
2003
+ }
2004
+
2005
+ function serialize_wechaty_puppet_OrgBroadcastPayloadResponse(arg) {
2006
+ if (!(arg instanceof wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse)) {
2007
+ throw new Error('Expected argument of type wechaty.puppet.OrgBroadcastPayloadResponse');
2008
+ }
2009
+ return Buffer.from(arg.serializeBinary());
2010
+ }
2011
+
2012
+ function deserialize_wechaty_puppet_OrgBroadcastPayloadResponse(buffer_arg) {
2013
+ return wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
2014
+ }
2015
+
1972
2016
  function serialize_wechaty_puppet_PostPayloadRequest(arg) {
1973
2017
  if (!(arg instanceof wechaty_puppet_post_pb.PostPayloadRequest)) {
1974
2018
  throw new Error('Expected argument of type wechaty.puppet.PostPayloadRequest');
@@ -4478,6 +4522,28 @@ getContactExternalUserId: {
4478
4522
  responseSerialize: serialize_wechaty_puppet_GetCorpMessageInterceptionStrategiesResponse,
4479
4523
  responseDeserialize: deserialize_wechaty_puppet_GetCorpMessageInterceptionStrategiesResponse,
4480
4524
  },
4525
+ orgBroadcastPayload: {
4526
+ path: '/wechaty.Puppet/OrgBroadcastPayload',
4527
+ requestStream: false,
4528
+ responseStream: false,
4529
+ requestType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
4530
+ responseType: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse,
4531
+ requestSerialize: serialize_wechaty_puppet_OrgBroadcastPayloadRequest,
4532
+ requestDeserialize: deserialize_wechaty_puppet_OrgBroadcastPayloadRequest,
4533
+ responseSerialize: serialize_wechaty_puppet_OrgBroadcastPayloadResponse,
4534
+ responseDeserialize: deserialize_wechaty_puppet_OrgBroadcastPayloadResponse,
4535
+ },
4536
+ orgBroadcastExecute: {
4537
+ path: '/wechaty.Puppet/OrgBroadcastExecute',
4538
+ requestStream: false,
4539
+ responseStream: false,
4540
+ requestType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
4541
+ responseType: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse,
4542
+ requestSerialize: serialize_wechaty_puppet_OrgBroadcastExecuteRequest,
4543
+ requestDeserialize: deserialize_wechaty_puppet_OrgBroadcastExecuteRequest,
4544
+ responseSerialize: serialize_wechaty_puppet_OrgBroadcastExecuteResponse,
4545
+ responseDeserialize: deserialize_wechaty_puppet_OrgBroadcastExecuteResponse,
4546
+ },
4481
4547
  // *
4482
4548
  // File/Blob download & upload
4483
4549
  download: {
@@ -1217,6 +1217,24 @@ type PuppetGetCorpMessageInterceptionStrategies = {
1217
1217
  readonly responseType: typeof wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse;
1218
1218
  };
1219
1219
 
1220
+ type PuppetOrgBroadcastPayload = {
1221
+ readonly methodName: string;
1222
+ readonly service: typeof Puppet;
1223
+ readonly requestStream: false;
1224
+ readonly responseStream: false;
1225
+ readonly requestType: typeof wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest;
1226
+ readonly responseType: typeof wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse;
1227
+ };
1228
+
1229
+ type PuppetOrgBroadcastExecute = {
1230
+ readonly methodName: string;
1231
+ readonly service: typeof Puppet;
1232
+ readonly requestStream: false;
1233
+ readonly responseStream: false;
1234
+ readonly requestType: typeof wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest;
1235
+ readonly responseType: typeof wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse;
1236
+ };
1237
+
1220
1238
  type PuppetDownload = {
1221
1239
  readonly methodName: string;
1222
1240
  readonly service: typeof Puppet;
@@ -1370,6 +1388,8 @@ export class Puppet {
1370
1388
  static readonly GetRoomAntiSpamStrategyEffectRoomList: PuppetGetRoomAntiSpamStrategyEffectRoomList;
1371
1389
  static readonly ApplyRoomAntiSpamStrategy: PuppetApplyRoomAntiSpamStrategy;
1372
1390
  static readonly GetCorpMessageInterceptionStrategies: PuppetGetCorpMessageInterceptionStrategies;
1391
+ static readonly OrgBroadcastPayload: PuppetOrgBroadcastPayload;
1392
+ static readonly OrgBroadcastExecute: PuppetOrgBroadcastExecute;
1373
1393
  static readonly Download: PuppetDownload;
1374
1394
  static readonly Upload: PuppetUpload;
1375
1395
  }
@@ -2595,6 +2615,24 @@ export class PuppetClient {
2595
2615
  requestMessage: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesRequest,
2596
2616
  callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.GetCorpMessageInterceptionStrategiesResponse|null) => void
2597
2617
  ): UnaryResponse;
2618
+ orgBroadcastPayload(
2619
+ requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
2620
+ metadata: grpc.Metadata,
2621
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse|null) => void
2622
+ ): UnaryResponse;
2623
+ orgBroadcastPayload(
2624
+ requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadRequest,
2625
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastPayloadResponse|null) => void
2626
+ ): UnaryResponse;
2627
+ orgBroadcastExecute(
2628
+ requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
2629
+ metadata: grpc.Metadata,
2630
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse|null) => void
2631
+ ): UnaryResponse;
2632
+ orgBroadcastExecute(
2633
+ requestMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteRequest,
2634
+ callback: (error: ServiceError|null, responseMessage: wechaty_puppet_wecom_pb.OrgBroadcastExecuteResponse|null) => void
2635
+ ): UnaryResponse;
2598
2636
  download(requestMessage: wechaty_puppet_download_upload_pb.DownloadRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_puppet_download_upload_pb.DownloadResponse>;
2599
2637
  upload(metadata?: grpc.Metadata): RequestStream<wechaty_puppet_download_upload_pb.UploadRequest>;
2600
2638
  }