@juzi/wechaty-grpc 1.0.62 → 1.0.64
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/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/examples/auth/raw-https/client.js.map +1 -1
- package/dist/cjs/examples/auth/server.js +5 -6
- package/dist/cjs/examples/auth/server.js.map +1 -1
- package/dist/cjs/examples/client.js +2 -1
- package/dist/cjs/examples/client.js.map +1 -1
- package/dist/cjs/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +218 -84
- package/dist/cjs/out/wechaty/puppet.swagger.json +186 -5
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +77 -1
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- 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/call.proto +28 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/cjs/proto/wechaty/puppet/message.proto +11 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
- package/dist/cjs/proto/wechaty/puppet.proto +17 -1
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +7 -6
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/health-check.spec.js +2 -2
- package/dist/cjs/tests/health-check.spec.js.map +1 -1
- package/dist/cjs/tests/integration.spec.js.map +1 -1
- package/dist/cjs/tests/nullable.spec.js +4 -0
- package/dist/cjs/tests/nullable.spec.js.map +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/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/examples/auth/raw-https/client.js.map +1 -1
- package/dist/esm/examples/auth/server.js +2 -3
- package/dist/esm/examples/auth/server.js.map +1 -1
- package/dist/esm/examples/client.js +2 -1
- package/dist/esm/examples/client.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/esm/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +218 -84
- package/dist/esm/out/wechaty/puppet.swagger.json +186 -5
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +77 -1
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- 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/call.proto +28 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/esm/proto/wechaty/puppet/message.proto +11 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
- package/dist/esm/proto/wechaty/puppet.proto +17 -1
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +7 -6
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/health-check.spec.js +2 -2
- package/dist/esm/tests/health-check.spec.js.map +1 -1
- package/dist/esm/tests/integration.spec.js.map +1 -1
- package/dist/esm/tests/nullable.spec.js +4 -0
- package/dist/esm/tests/nullable.spec.js.map +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/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/out/wechaty/puppet/call_pb.js +338 -0
- package/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/call_pb_service.js +3 -0
- package/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/out/wechaty/puppet/channel_pb.js +19 -8
- package/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/out/wechaty/puppet/message_pb.js +330 -1
- package/out/wechaty/puppet/room_pb.d.ts +42 -0
- package/out/wechaty/puppet/room_pb.js +331 -0
- package/out/wechaty/puppet.openapi.yaml +218 -84
- package/out/wechaty/puppet.swagger.json +186 -5
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -1
- package/out/wechaty/puppet_grpc_pb.js +77 -1
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +7 -6
- package/src/package-json.ts +7 -6
|
@@ -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.64",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1632,6 +1632,36 @@
|
|
|
1632
1632
|
]
|
|
1633
1633
|
}
|
|
1634
1634
|
},
|
|
1635
|
+
"/message/{id}/call-record": {
|
|
1636
|
+
"get": {
|
|
1637
|
+
"operationId": "Puppet_MessageCallRecord",
|
|
1638
|
+
"responses": {
|
|
1639
|
+
"200": {
|
|
1640
|
+
"description": "A successful response.",
|
|
1641
|
+
"schema": {
|
|
1642
|
+
"$ref": "#/definitions/puppetMessageCallRecordlResponse"
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
"default": {
|
|
1646
|
+
"description": "An unexpected error response.",
|
|
1647
|
+
"schema": {
|
|
1648
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"parameters": [
|
|
1653
|
+
{
|
|
1654
|
+
"name": "id",
|
|
1655
|
+
"in": "path",
|
|
1656
|
+
"required": true,
|
|
1657
|
+
"type": "string"
|
|
1658
|
+
}
|
|
1659
|
+
],
|
|
1660
|
+
"tags": [
|
|
1661
|
+
"Puppet"
|
|
1662
|
+
]
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1635
1665
|
"/message/{id}/channel": {
|
|
1636
1666
|
"get": {
|
|
1637
1667
|
"operationId": "Puppet_MessageChannel",
|
|
@@ -2381,6 +2411,47 @@
|
|
|
2381
2411
|
]
|
|
2382
2412
|
}
|
|
2383
2413
|
},
|
|
2414
|
+
"/rooms/{id}/add/admins/{contactIds}": {
|
|
2415
|
+
"put": {
|
|
2416
|
+
"operationId": "Puppet_RoomAddAdmins",
|
|
2417
|
+
"responses": {
|
|
2418
|
+
"200": {
|
|
2419
|
+
"description": "A successful response.",
|
|
2420
|
+
"schema": {
|
|
2421
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
"default": {
|
|
2425
|
+
"description": "An unexpected error response.",
|
|
2426
|
+
"schema": {
|
|
2427
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
"parameters": [
|
|
2432
|
+
{
|
|
2433
|
+
"name": "id",
|
|
2434
|
+
"in": "path",
|
|
2435
|
+
"required": true,
|
|
2436
|
+
"type": "string"
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"name": "contactIds",
|
|
2440
|
+
"in": "path",
|
|
2441
|
+
"required": true,
|
|
2442
|
+
"type": "array",
|
|
2443
|
+
"items": {
|
|
2444
|
+
"type": "string"
|
|
2445
|
+
},
|
|
2446
|
+
"collectionFormat": "csv",
|
|
2447
|
+
"minItems": 1
|
|
2448
|
+
}
|
|
2449
|
+
],
|
|
2450
|
+
"tags": [
|
|
2451
|
+
"Puppet"
|
|
2452
|
+
]
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2384
2455
|
"/rooms/{id}/add/{contactId}": {
|
|
2385
2456
|
"put": {
|
|
2386
2457
|
"operationId": "Puppet_RoomAdd",
|
|
@@ -2544,6 +2615,47 @@
|
|
|
2544
2615
|
]
|
|
2545
2616
|
}
|
|
2546
2617
|
},
|
|
2618
|
+
"/rooms/{id}/del/admins/{contactIds}": {
|
|
2619
|
+
"delete": {
|
|
2620
|
+
"operationId": "Puppet_RoomDelAdmins",
|
|
2621
|
+
"responses": {
|
|
2622
|
+
"200": {
|
|
2623
|
+
"description": "A successful response.",
|
|
2624
|
+
"schema": {
|
|
2625
|
+
"$ref": "#/definitions/puppetRoomAdminsResponse"
|
|
2626
|
+
}
|
|
2627
|
+
},
|
|
2628
|
+
"default": {
|
|
2629
|
+
"description": "An unexpected error response.",
|
|
2630
|
+
"schema": {
|
|
2631
|
+
"$ref": "#/definitions/rpcStatus"
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
},
|
|
2635
|
+
"parameters": [
|
|
2636
|
+
{
|
|
2637
|
+
"name": "id",
|
|
2638
|
+
"in": "path",
|
|
2639
|
+
"required": true,
|
|
2640
|
+
"type": "string"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"name": "contactIds",
|
|
2644
|
+
"in": "path",
|
|
2645
|
+
"required": true,
|
|
2646
|
+
"type": "array",
|
|
2647
|
+
"items": {
|
|
2648
|
+
"type": "string"
|
|
2649
|
+
},
|
|
2650
|
+
"collectionFormat": "csv",
|
|
2651
|
+
"minItems": 1
|
|
2652
|
+
}
|
|
2653
|
+
],
|
|
2654
|
+
"tags": [
|
|
2655
|
+
"Puppet"
|
|
2656
|
+
]
|
|
2657
|
+
}
|
|
2658
|
+
},
|
|
2547
2659
|
"/rooms/{id}/dirty/members/{type}": {
|
|
2548
2660
|
"put": {
|
|
2549
2661
|
"operationId": "Puppet_DirtyPayload4",
|
|
@@ -3625,9 +3737,66 @@
|
|
|
3625
3737
|
],
|
|
3626
3738
|
"default": "BROADCAST_TARGET_STATUS_UNSENT"
|
|
3627
3739
|
},
|
|
3740
|
+
"puppetCallRecordPayload": {
|
|
3741
|
+
"type": "object",
|
|
3742
|
+
"properties": {
|
|
3743
|
+
"starterId": {
|
|
3744
|
+
"type": "string"
|
|
3745
|
+
},
|
|
3746
|
+
"participantIds": {
|
|
3747
|
+
"type": "array",
|
|
3748
|
+
"items": {
|
|
3749
|
+
"type": "string"
|
|
3750
|
+
}
|
|
3751
|
+
},
|
|
3752
|
+
"length": {
|
|
3753
|
+
"type": "integer",
|
|
3754
|
+
"format": "int32"
|
|
3755
|
+
},
|
|
3756
|
+
"type": {
|
|
3757
|
+
"$ref": "#/definitions/puppetCallType"
|
|
3758
|
+
},
|
|
3759
|
+
"status": {
|
|
3760
|
+
"$ref": "#/definitions/puppetCallStatus"
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
},
|
|
3764
|
+
"puppetCallStatus": {
|
|
3765
|
+
"type": "string",
|
|
3766
|
+
"enum": [
|
|
3767
|
+
"CALL_STATUS_UNKNOWN",
|
|
3768
|
+
"CALL_STATUS_CANCELED",
|
|
3769
|
+
"CALL_STATUS_REJECTED",
|
|
3770
|
+
"CALL_STATUS_ONGOING",
|
|
3771
|
+
"CALL_STATUS_ENDED"
|
|
3772
|
+
],
|
|
3773
|
+
"default": "CALL_STATUS_UNKNOWN",
|
|
3774
|
+
"description": "- CALL_STATUS_UNKNOWN: 不明确\n - CALL_STATUS_CANCELED: 自己取消\n - CALL_STATUS_REJECTED: 对方拒接\n - CALL_STATUS_ONGOING: 正在通话\n - CALL_STATUS_ENDED: 已结束",
|
|
3775
|
+
"title": "类型枚举"
|
|
3776
|
+
},
|
|
3777
|
+
"puppetCallType": {
|
|
3778
|
+
"type": "string",
|
|
3779
|
+
"enum": [
|
|
3780
|
+
"CALL_TYPE_UNKNOWN",
|
|
3781
|
+
"CALL_TYPE_VOICE",
|
|
3782
|
+
"CALL_TYPE_VIDEO"
|
|
3783
|
+
],
|
|
3784
|
+
"default": "CALL_TYPE_UNKNOWN",
|
|
3785
|
+
"title": "- CALL_TYPE_UNKNOWN: 不明确\n - CALL_TYPE_VOICE: 语音\n - CALL_TYPE_VIDEO: 视频"
|
|
3786
|
+
},
|
|
3628
3787
|
"puppetCancelVerifyCodeResponse": {
|
|
3629
3788
|
"type": "object"
|
|
3630
3789
|
},
|
|
3790
|
+
"puppetChannelFeedType": {
|
|
3791
|
+
"type": "string",
|
|
3792
|
+
"enum": [
|
|
3793
|
+
"CHANNEL_FEED_TYPE_UNKNOWN",
|
|
3794
|
+
"CHANNEL_FEED_TYPE_PHOTO",
|
|
3795
|
+
"CHANNEL_FEED_TYPE_VIDEO",
|
|
3796
|
+
"CHANNEL_FEED_TYPE_LIVE"
|
|
3797
|
+
],
|
|
3798
|
+
"default": "CHANNEL_FEED_TYPE_UNKNOWN"
|
|
3799
|
+
},
|
|
3631
3800
|
"puppetChannelPayload": {
|
|
3632
3801
|
"type": "object",
|
|
3633
3802
|
"properties": {
|
|
@@ -3648,8 +3817,7 @@
|
|
|
3648
3817
|
"title": "额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。"
|
|
3649
3818
|
},
|
|
3650
3819
|
"feedType": {
|
|
3651
|
-
"
|
|
3652
|
-
"format": "int32",
|
|
3820
|
+
"$ref": "#/definitions/puppetChannelFeedType",
|
|
3653
3821
|
"title": "暂不明确含义,目前请固定传4"
|
|
3654
3822
|
},
|
|
3655
3823
|
"nickname": {
|
|
@@ -4161,6 +4329,14 @@
|
|
|
4161
4329
|
"puppetLogoutResponse": {
|
|
4162
4330
|
"type": "object"
|
|
4163
4331
|
},
|
|
4332
|
+
"puppetMessageCallRecordlResponse": {
|
|
4333
|
+
"type": "object",
|
|
4334
|
+
"properties": {
|
|
4335
|
+
"channel": {
|
|
4336
|
+
"$ref": "#/definitions/puppetCallRecordPayload"
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
},
|
|
4164
4340
|
"puppetMessageChannelResponse": {
|
|
4165
4341
|
"type": "object",
|
|
4166
4342
|
"properties": {
|
|
@@ -4435,10 +4611,12 @@
|
|
|
4435
4611
|
"MESSAGE_TYPE_VIDEO",
|
|
4436
4612
|
"MESSAGE_TYPE_POST",
|
|
4437
4613
|
"MESSAGE_TYPE_CHANNEL",
|
|
4438
|
-
"MESSAGE_TYPE_SYSTEM"
|
|
4614
|
+
"MESSAGE_TYPE_SYSTEM",
|
|
4615
|
+
"MESSAGE_TYPE_MARKDOWN",
|
|
4616
|
+
"MESSAGE_TYPE_CALL_RECORD"
|
|
4439
4617
|
],
|
|
4440
4618
|
"default": "MESSAGE_TYPE_UNSPECIFIED",
|
|
4441
|
-
"description": "- MESSAGE_TYPE_ATTACHMENT: 文件消息\n - MESSAGE_TYPE_AUDIO: 音频\n - MESSAGE_TYPE_CONTACT: 名片\n - MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持\n - MESSAGE_TYPE_EMOTCION: 表情\n - MESSAGE_TYPE_IMAGE: 图片\n - MESSAGE_TYPE_TEXT: 文本\n - MESSAGE_TYPE_LOCATION: 地址\n - MESSAGE_TYPE_MINI_PROGRAM: 小程序\n - MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有\n - MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有\n - MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有\n - MESSAGE_TYPE_RECALLED: 撤回\n - MESSAGE_TYPE_URL: 链接\n - MESSAGE_TYPE_VIDEO: 视频\n - MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有\n - MESSAGE_TYPE_CHANNEL: 视频号\n - MESSAGE_TYPE_SYSTEM:
|
|
4619
|
+
"description": "- MESSAGE_TYPE_ATTACHMENT: 文件消息\n - MESSAGE_TYPE_AUDIO: 音频\n - MESSAGE_TYPE_CONTACT: 名片\n - MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持\n - MESSAGE_TYPE_EMOTCION: 表情\n - MESSAGE_TYPE_IMAGE: 图片\n - MESSAGE_TYPE_TEXT: 文本\n - MESSAGE_TYPE_LOCATION: 地址\n - MESSAGE_TYPE_MINI_PROGRAM: 小程序\n - MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有\n - MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有\n - MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有\n - MESSAGE_TYPE_RECALLED: 撤回\n - MESSAGE_TYPE_URL: 链接\n - MESSAGE_TYPE_VIDEO: 视频\n - MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有\n - MESSAGE_TYPE_CHANNEL: 视频号\n - MESSAGE_TYPE_SYSTEM: 系统消息\n - MESSAGE_TYPE_MARKDOWN: MarkDown\n - MESSAGE_TYPE_CALL_RECORD: 通话记录",
|
|
4442
4620
|
"title": "消息类型"
|
|
4443
4621
|
},
|
|
4444
4622
|
"puppetMessageUrlResponse": {
|
|
@@ -4788,6 +4966,9 @@
|
|
|
4788
4966
|
"puppetRoomAddResponse": {
|
|
4789
4967
|
"type": "object"
|
|
4790
4968
|
},
|
|
4969
|
+
"puppetRoomAdminsResponse": {
|
|
4970
|
+
"type": "object"
|
|
4971
|
+
},
|
|
4791
4972
|
"puppetRoomAnnounceResponse": {
|
|
4792
4973
|
"type": "object",
|
|
4793
4974
|
"properties": {
|
|
@@ -18,7 +18,6 @@ import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb
|
|
|
18
18
|
import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
|
|
19
19
|
import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
20
20
|
import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
|
|
21
|
-
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
22
21
|
import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
23
22
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
24
23
|
import * as wechaty_puppet_verify_code_pb from "../wechaty/puppet/verify-code_pb";
|
|
@@ -63,6 +62,7 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
63
62
|
messageMiniProgram: IPuppetService_IMessageMiniProgram;
|
|
64
63
|
messageUrl: IPuppetService_IMessageUrl;
|
|
65
64
|
messageChannel: IPuppetService_IMessageChannel;
|
|
65
|
+
messageCallRecord: IPuppetService_IMessageCallRecord;
|
|
66
66
|
messageRecall: IPuppetService_IMessageRecall;
|
|
67
67
|
messageForward: IPuppetService_IMessageForward;
|
|
68
68
|
messageLocation: IPuppetService_IMessageLocation;
|
|
@@ -89,6 +89,8 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
89
89
|
roomAnnounce: IPuppetService_IRoomAnnounce;
|
|
90
90
|
roomOwnerTransfer: IPuppetService_IRoomOwnerTransfer;
|
|
91
91
|
roomPermission: IPuppetService_IRoomPermission;
|
|
92
|
+
roomAddAdmins: IPuppetService_IRoomAddAdmins;
|
|
93
|
+
roomDelAdmins: IPuppetService_IRoomDelAdmins;
|
|
92
94
|
roomMemberPayload: IPuppetService_IRoomMemberPayload;
|
|
93
95
|
roomMemberList: IPuppetService_IRoomMemberList;
|
|
94
96
|
roomInvitationPayload: IPuppetService_IRoomInvitationPayload;
|
|
@@ -469,6 +471,15 @@ interface IPuppetService_IMessageChannel extends grpc.MethodDefinition<wechaty_p
|
|
|
469
471
|
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
470
472
|
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
471
473
|
}
|
|
474
|
+
interface IPuppetService_IMessageCallRecord extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageCallRecordRequest, wechaty_puppet_message_pb.MessageCallRecordlResponse> {
|
|
475
|
+
path: "/wechaty.Puppet/MessageCallRecord";
|
|
476
|
+
requestStream: false;
|
|
477
|
+
responseStream: false;
|
|
478
|
+
requestSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageCallRecordRequest>;
|
|
479
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageCallRecordRequest>;
|
|
480
|
+
responseSerialize: grpc.serialize<wechaty_puppet_message_pb.MessageCallRecordlResponse>;
|
|
481
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_message_pb.MessageCallRecordlResponse>;
|
|
482
|
+
}
|
|
472
483
|
interface IPuppetService_IMessageRecall extends grpc.MethodDefinition<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse> {
|
|
473
484
|
path: "/wechaty.Puppet/MessageRecall";
|
|
474
485
|
requestStream: false;
|
|
@@ -703,6 +714,24 @@ interface IPuppetService_IRoomPermission extends grpc.MethodDefinition<wechaty_p
|
|
|
703
714
|
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
704
715
|
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
705
716
|
}
|
|
717
|
+
interface IPuppetService_IRoomAddAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
718
|
+
path: "/wechaty.Puppet/RoomAddAdmins";
|
|
719
|
+
requestStream: false;
|
|
720
|
+
responseStream: false;
|
|
721
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
722
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
723
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
724
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
725
|
+
}
|
|
726
|
+
interface IPuppetService_IRoomDelAdmins extends grpc.MethodDefinition<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse> {
|
|
727
|
+
path: "/wechaty.Puppet/RoomDelAdmins";
|
|
728
|
+
requestStream: false;
|
|
729
|
+
responseStream: false;
|
|
730
|
+
requestSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
731
|
+
requestDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsRequest>;
|
|
732
|
+
responseSerialize: grpc.serialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
733
|
+
responseDeserialize: grpc.deserialize<wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
734
|
+
}
|
|
706
735
|
interface IPuppetService_IRoomMemberPayload extends grpc.MethodDefinition<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse> {
|
|
707
736
|
path: "/wechaty.Puppet/RoomMemberPayload";
|
|
708
737
|
requestStream: false;
|
|
@@ -989,6 +1018,7 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
989
1018
|
messageMiniProgram: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageMiniProgramRequest, wechaty_puppet_message_pb.MessageMiniProgramResponse>;
|
|
990
1019
|
messageUrl: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageUrlRequest, wechaty_puppet_message_pb.MessageUrlResponse>;
|
|
991
1020
|
messageChannel: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageChannelRequest, wechaty_puppet_message_pb.MessageChannelResponse>;
|
|
1021
|
+
messageCallRecord: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageCallRecordRequest, wechaty_puppet_message_pb.MessageCallRecordlResponse>;
|
|
992
1022
|
messageRecall: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageRecallRequest, wechaty_puppet_message_pb.MessageRecallResponse>;
|
|
993
1023
|
messageForward: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageForwardRequest, wechaty_puppet_message_pb.MessageForwardResponse>;
|
|
994
1024
|
messageLocation: grpc.handleUnaryCall<wechaty_puppet_message_pb.MessageLocationRequest, wechaty_puppet_message_pb.MessageLocationResponse>;
|
|
@@ -1015,6 +1045,8 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
1015
1045
|
roomAnnounce: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAnnounceRequest, wechaty_puppet_room_pb.RoomAnnounceResponse>;
|
|
1016
1046
|
roomOwnerTransfer: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomOwnerTransferRequest, wechaty_puppet_room_pb.RoomOwnerTransferResponse>;
|
|
1017
1047
|
roomPermission: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomPermissionRequest, wechaty_puppet_room_pb.RoomPermissionResponse>;
|
|
1048
|
+
roomAddAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
1049
|
+
roomDelAdmins: grpc.handleUnaryCall<wechaty_puppet_room_pb.RoomAdminsRequest, wechaty_puppet_room_pb.RoomAdminsResponse>;
|
|
1018
1050
|
roomMemberPayload: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, wechaty_puppet_room_member_pb.RoomMemberPayloadResponse>;
|
|
1019
1051
|
roomMemberList: grpc.handleUnaryCall<wechaty_puppet_room_member_pb.RoomMemberListRequest, wechaty_puppet_room_member_pb.RoomMemberListResponse>;
|
|
1020
1052
|
roomInvitationPayload: grpc.handleUnaryCall<wechaty_puppet_room_invitation_pb.RoomInvitationPayloadRequest, wechaty_puppet_room_invitation_pb.RoomInvitationPayloadResponse>;
|
|
@@ -1161,6 +1193,9 @@ export interface IPuppetClient {
|
|
|
1161
1193
|
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1162
1194
|
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1163
1195
|
messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1196
|
+
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1197
|
+
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1198
|
+
messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1164
1199
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
1165
1200
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
1166
1201
|
messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1239,6 +1274,12 @@ export interface IPuppetClient {
|
|
|
1239
1274
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1240
1275
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1241
1276
|
roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1277
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1278
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1279
|
+
roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1280
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1281
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1282
|
+
roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1242
1283
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1243
1284
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1244
1285
|
roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1440,6 +1481,9 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1440
1481
|
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1441
1482
|
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1442
1483
|
public messageChannel(request: wechaty_puppet_message_pb.MessageChannelRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageChannelResponse) => void): grpc.ClientUnaryCall;
|
|
1484
|
+
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1485
|
+
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1486
|
+
public messageCallRecord(request: wechaty_puppet_message_pb.MessageCallRecordRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageCallRecordlResponse) => void): grpc.ClientUnaryCall;
|
|
1443
1487
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
1444
1488
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
1445
1489
|
public messageRecall(request: wechaty_puppet_message_pb.MessageRecallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_message_pb.MessageRecallResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1518,6 +1562,12 @@ export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
|
1518
1562
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1519
1563
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1520
1564
|
public roomPermission(request: wechaty_puppet_room_pb.RoomPermissionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomPermissionResponse) => void): grpc.ClientUnaryCall;
|
|
1565
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1566
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1567
|
+
public roomAddAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1568
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1569
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1570
|
+
public roomDelAdmins(request: wechaty_puppet_room_pb.RoomAdminsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_pb.RoomAdminsResponse) => void): grpc.ClientUnaryCall;
|
|
1521
1571
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1522
1572
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
1523
1573
|
public roomMemberPayload(request: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_room_member_pb.RoomMemberPayloadResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -27,7 +27,6 @@ var wechaty_puppet_room$member_pb = require('../wechaty/puppet/room-member_pb.js
|
|
|
27
27
|
var wechaty_puppet_room_pb = require('../wechaty/puppet/room_pb.js');
|
|
28
28
|
var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
|
|
29
29
|
var wechaty_puppet_conversation_pb = require('../wechaty/puppet/conversation_pb.js');
|
|
30
|
-
var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
|
|
31
30
|
var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
|
|
32
31
|
var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
|
|
33
32
|
var wechaty_puppet_verify$code_pb = require('../wechaty/puppet/verify-code_pb.js');
|
|
@@ -692,6 +691,28 @@ function deserialize_wechaty_puppet_LogoutResponse(buffer_arg) {
|
|
|
692
691
|
return wechaty_puppet_base_pb.LogoutResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
693
692
|
}
|
|
694
693
|
|
|
694
|
+
function serialize_wechaty_puppet_MessageCallRecordRequest(arg) {
|
|
695
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageCallRecordRequest)) {
|
|
696
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageCallRecordRequest');
|
|
697
|
+
}
|
|
698
|
+
return Buffer.from(arg.serializeBinary());
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
function deserialize_wechaty_puppet_MessageCallRecordRequest(buffer_arg) {
|
|
702
|
+
return wechaty_puppet_message_pb.MessageCallRecordRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
function serialize_wechaty_puppet_MessageCallRecordlResponse(arg) {
|
|
706
|
+
if (!(arg instanceof wechaty_puppet_message_pb.MessageCallRecordlResponse)) {
|
|
707
|
+
throw new Error('Expected argument of type wechaty.puppet.MessageCallRecordlResponse');
|
|
708
|
+
}
|
|
709
|
+
return Buffer.from(arg.serializeBinary());
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function deserialize_wechaty_puppet_MessageCallRecordlResponse(buffer_arg) {
|
|
713
|
+
return wechaty_puppet_message_pb.MessageCallRecordlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
714
|
+
}
|
|
715
|
+
|
|
695
716
|
function serialize_wechaty_puppet_MessageChannelRequest(arg) {
|
|
696
717
|
if (!(arg instanceof wechaty_puppet_message_pb.MessageChannelRequest)) {
|
|
697
718
|
throw new Error('Expected argument of type wechaty.puppet.MessageChannelRequest');
|
|
@@ -1297,6 +1318,28 @@ function deserialize_wechaty_puppet_RoomAddResponse(buffer_arg) {
|
|
|
1297
1318
|
return wechaty_puppet_room_pb.RoomAddResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1298
1319
|
}
|
|
1299
1320
|
|
|
1321
|
+
function serialize_wechaty_puppet_RoomAdminsRequest(arg) {
|
|
1322
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsRequest)) {
|
|
1323
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsRequest');
|
|
1324
|
+
}
|
|
1325
|
+
return Buffer.from(arg.serializeBinary());
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
function deserialize_wechaty_puppet_RoomAdminsRequest(buffer_arg) {
|
|
1329
|
+
return wechaty_puppet_room_pb.RoomAdminsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
function serialize_wechaty_puppet_RoomAdminsResponse(arg) {
|
|
1333
|
+
if (!(arg instanceof wechaty_puppet_room_pb.RoomAdminsResponse)) {
|
|
1334
|
+
throw new Error('Expected argument of type wechaty.puppet.RoomAdminsResponse');
|
|
1335
|
+
}
|
|
1336
|
+
return Buffer.from(arg.serializeBinary());
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
function deserialize_wechaty_puppet_RoomAdminsResponse(buffer_arg) {
|
|
1340
|
+
return wechaty_puppet_room_pb.RoomAdminsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1300
1343
|
function serialize_wechaty_puppet_RoomAnnounceRequest(arg) {
|
|
1301
1344
|
if (!(arg instanceof wechaty_puppet_room_pb.RoomAnnounceRequest)) {
|
|
1302
1345
|
throw new Error('Expected argument of type wechaty.puppet.RoomAnnounceRequest');
|
|
@@ -2488,6 +2531,17 @@ messageFile: {
|
|
|
2488
2531
|
responseSerialize: serialize_wechaty_puppet_MessageChannelResponse,
|
|
2489
2532
|
responseDeserialize: deserialize_wechaty_puppet_MessageChannelResponse,
|
|
2490
2533
|
},
|
|
2534
|
+
messageCallRecord: {
|
|
2535
|
+
path: '/wechaty.Puppet/MessageCallRecord',
|
|
2536
|
+
requestStream: false,
|
|
2537
|
+
responseStream: false,
|
|
2538
|
+
requestType: wechaty_puppet_message_pb.MessageCallRecordRequest,
|
|
2539
|
+
responseType: wechaty_puppet_message_pb.MessageCallRecordlResponse,
|
|
2540
|
+
requestSerialize: serialize_wechaty_puppet_MessageCallRecordRequest,
|
|
2541
|
+
requestDeserialize: deserialize_wechaty_puppet_MessageCallRecordRequest,
|
|
2542
|
+
responseSerialize: serialize_wechaty_puppet_MessageCallRecordlResponse,
|
|
2543
|
+
responseDeserialize: deserialize_wechaty_puppet_MessageCallRecordlResponse,
|
|
2544
|
+
},
|
|
2491
2545
|
messageRecall: {
|
|
2492
2546
|
path: '/wechaty.Puppet/MessageRecall',
|
|
2493
2547
|
requestStream: false,
|
|
@@ -2778,6 +2832,28 @@ roomPayload: {
|
|
|
2778
2832
|
responseSerialize: serialize_wechaty_puppet_RoomPermissionResponse,
|
|
2779
2833
|
responseDeserialize: deserialize_wechaty_puppet_RoomPermissionResponse,
|
|
2780
2834
|
},
|
|
2835
|
+
roomAddAdmins: {
|
|
2836
|
+
path: '/wechaty.Puppet/RoomAddAdmins',
|
|
2837
|
+
requestStream: false,
|
|
2838
|
+
responseStream: false,
|
|
2839
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2840
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2841
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2842
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2843
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2844
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2845
|
+
},
|
|
2846
|
+
roomDelAdmins: {
|
|
2847
|
+
path: '/wechaty.Puppet/RoomDelAdmins',
|
|
2848
|
+
requestStream: false,
|
|
2849
|
+
responseStream: false,
|
|
2850
|
+
requestType: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
2851
|
+
responseType: wechaty_puppet_room_pb.RoomAdminsResponse,
|
|
2852
|
+
requestSerialize: serialize_wechaty_puppet_RoomAdminsRequest,
|
|
2853
|
+
requestDeserialize: deserialize_wechaty_puppet_RoomAdminsRequest,
|
|
2854
|
+
responseSerialize: serialize_wechaty_puppet_RoomAdminsResponse,
|
|
2855
|
+
responseDeserialize: deserialize_wechaty_puppet_RoomAdminsResponse,
|
|
2856
|
+
},
|
|
2781
2857
|
// *
|
|
2782
2858
|
//
|
|
2783
2859
|
// Room Member
|
|
@@ -15,7 +15,6 @@ import * as wechaty_puppet_room_member_pb from "../wechaty/puppet/room-member_pb
|
|
|
15
15
|
import * as wechaty_puppet_room_pb from "../wechaty/puppet/room_pb";
|
|
16
16
|
import * as wechaty_puppet_tag_pb from "../wechaty/puppet/tag_pb";
|
|
17
17
|
import * as wechaty_puppet_conversation_pb from "../wechaty/puppet/conversation_pb";
|
|
18
|
-
import * as wechaty_puppet_channel_pb from "../wechaty/puppet/channel_pb";
|
|
19
18
|
import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
20
19
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
21
20
|
import * as wechaty_puppet_verify_code_pb from "../wechaty/puppet/verify-code_pb";
|
|
@@ -41,8 +41,6 @@ var wechaty_puppet_tag_pb = require('../wechaty/puppet/tag_pb.js');
|
|
|
41
41
|
goog.object.extend(proto, wechaty_puppet_tag_pb);
|
|
42
42
|
var wechaty_puppet_conversation_pb = require('../wechaty/puppet/conversation_pb.js');
|
|
43
43
|
goog.object.extend(proto, wechaty_puppet_conversation_pb);
|
|
44
|
-
var wechaty_puppet_channel_pb = require('../wechaty/puppet/channel_pb.js');
|
|
45
|
-
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
46
44
|
var wechaty_puppet_post_pb = require('../wechaty/puppet/post_pb.js');
|
|
47
45
|
goog.object.extend(proto, wechaty_puppet_post_pb);
|
|
48
46
|
var wechaty_puppet_moment_pb = require('../wechaty/puppet/moment_pb.js');
|
|
@@ -369,6 +369,15 @@ type PuppetMessageChannel = {
|
|
|
369
369
|
readonly responseType: typeof wechaty_puppet_message_pb.MessageChannelResponse;
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
+
type PuppetMessageCallRecord = {
|
|
373
|
+
readonly methodName: string;
|
|
374
|
+
readonly service: typeof Puppet;
|
|
375
|
+
readonly requestStream: false;
|
|
376
|
+
readonly responseStream: false;
|
|
377
|
+
readonly requestType: typeof wechaty_puppet_message_pb.MessageCallRecordRequest;
|
|
378
|
+
readonly responseType: typeof wechaty_puppet_message_pb.MessageCallRecordlResponse;
|
|
379
|
+
};
|
|
380
|
+
|
|
372
381
|
type PuppetMessageRecall = {
|
|
373
382
|
readonly methodName: string;
|
|
374
383
|
readonly service: typeof Puppet;
|
|
@@ -603,6 +612,24 @@ type PuppetRoomPermission = {
|
|
|
603
612
|
readonly responseType: typeof wechaty_puppet_room_pb.RoomPermissionResponse;
|
|
604
613
|
};
|
|
605
614
|
|
|
615
|
+
type PuppetRoomAddAdmins = {
|
|
616
|
+
readonly methodName: string;
|
|
617
|
+
readonly service: typeof Puppet;
|
|
618
|
+
readonly requestStream: false;
|
|
619
|
+
readonly responseStream: false;
|
|
620
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomAdminsRequest;
|
|
621
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomAdminsResponse;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
type PuppetRoomDelAdmins = {
|
|
625
|
+
readonly methodName: string;
|
|
626
|
+
readonly service: typeof Puppet;
|
|
627
|
+
readonly requestStream: false;
|
|
628
|
+
readonly responseStream: false;
|
|
629
|
+
readonly requestType: typeof wechaty_puppet_room_pb.RoomAdminsRequest;
|
|
630
|
+
readonly responseType: typeof wechaty_puppet_room_pb.RoomAdminsResponse;
|
|
631
|
+
};
|
|
632
|
+
|
|
606
633
|
type PuppetRoomMemberPayload = {
|
|
607
634
|
readonly methodName: string;
|
|
608
635
|
readonly service: typeof Puppet;
|
|
@@ -887,6 +914,7 @@ export class Puppet {
|
|
|
887
914
|
static readonly MessageMiniProgram: PuppetMessageMiniProgram;
|
|
888
915
|
static readonly MessageUrl: PuppetMessageUrl;
|
|
889
916
|
static readonly MessageChannel: PuppetMessageChannel;
|
|
917
|
+
static readonly MessageCallRecord: PuppetMessageCallRecord;
|
|
890
918
|
static readonly MessageRecall: PuppetMessageRecall;
|
|
891
919
|
static readonly MessageForward: PuppetMessageForward;
|
|
892
920
|
static readonly MessageLocation: PuppetMessageLocation;
|
|
@@ -913,6 +941,8 @@ export class Puppet {
|
|
|
913
941
|
static readonly RoomAnnounce: PuppetRoomAnnounce;
|
|
914
942
|
static readonly RoomOwnerTransfer: PuppetRoomOwnerTransfer;
|
|
915
943
|
static readonly RoomPermission: PuppetRoomPermission;
|
|
944
|
+
static readonly RoomAddAdmins: PuppetRoomAddAdmins;
|
|
945
|
+
static readonly RoomDelAdmins: PuppetRoomDelAdmins;
|
|
916
946
|
static readonly RoomMemberPayload: PuppetRoomMemberPayload;
|
|
917
947
|
static readonly RoomMemberList: PuppetRoomMemberList;
|
|
918
948
|
static readonly RoomInvitationPayload: PuppetRoomInvitationPayload;
|
|
@@ -1317,6 +1347,15 @@ export class PuppetClient {
|
|
|
1317
1347
|
requestMessage: wechaty_puppet_message_pb.MessageChannelRequest,
|
|
1318
1348
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageChannelResponse|null) => void
|
|
1319
1349
|
): UnaryResponse;
|
|
1350
|
+
messageCallRecord(
|
|
1351
|
+
requestMessage: wechaty_puppet_message_pb.MessageCallRecordRequest,
|
|
1352
|
+
metadata: grpc.Metadata,
|
|
1353
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageCallRecordlResponse|null) => void
|
|
1354
|
+
): UnaryResponse;
|
|
1355
|
+
messageCallRecord(
|
|
1356
|
+
requestMessage: wechaty_puppet_message_pb.MessageCallRecordRequest,
|
|
1357
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_message_pb.MessageCallRecordlResponse|null) => void
|
|
1358
|
+
): UnaryResponse;
|
|
1320
1359
|
messageRecall(
|
|
1321
1360
|
requestMessage: wechaty_puppet_message_pb.MessageRecallRequest,
|
|
1322
1361
|
metadata: grpc.Metadata,
|
|
@@ -1551,6 +1590,24 @@ export class PuppetClient {
|
|
|
1551
1590
|
requestMessage: wechaty_puppet_room_pb.RoomPermissionRequest,
|
|
1552
1591
|
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomPermissionResponse|null) => void
|
|
1553
1592
|
): UnaryResponse;
|
|
1593
|
+
roomAddAdmins(
|
|
1594
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1595
|
+
metadata: grpc.Metadata,
|
|
1596
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1597
|
+
): UnaryResponse;
|
|
1598
|
+
roomAddAdmins(
|
|
1599
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1600
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1601
|
+
): UnaryResponse;
|
|
1602
|
+
roomDelAdmins(
|
|
1603
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1604
|
+
metadata: grpc.Metadata,
|
|
1605
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1606
|
+
): UnaryResponse;
|
|
1607
|
+
roomDelAdmins(
|
|
1608
|
+
requestMessage: wechaty_puppet_room_pb.RoomAdminsRequest,
|
|
1609
|
+
callback: (error: ServiceError|null, responseMessage: wechaty_puppet_room_pb.RoomAdminsResponse|null) => void
|
|
1610
|
+
): UnaryResponse;
|
|
1554
1611
|
roomMemberPayload(
|
|
1555
1612
|
requestMessage: wechaty_puppet_room_member_pb.RoomMemberPayloadRequest,
|
|
1556
1613
|
metadata: grpc.Metadata,
|