@juzi/wechaty-grpc 1.0.27 → 1.0.29
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/promisify.d.ts +5 -5
- package/dist/cjs/examples/promisify.d.ts.map +1 -1
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +249 -8
- package/dist/cjs/out/wechaty/puppet.swagger.json +323 -132
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +104 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +280 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet.proto +56 -0
- package/dist/cjs/src/chunk-transformer.d.ts +1 -1
- package/dist/cjs/src/chunk-transformer.d.ts.map +1 -1
- package/dist/cjs/src/config.d.ts +1 -1
- package/dist/cjs/src/config.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -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/promisify.d.ts +5 -5
- package/dist/esm/examples/promisify.d.ts.map +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +249 -8
- package/dist/esm/out/wechaty/puppet.swagger.json +323 -132
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +104 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +280 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/esm/proto/wechaty/puppet.proto +56 -0
- package/dist/esm/src/chunk-transformer.d.ts +1 -1
- package/dist/esm/src/chunk-transformer.d.ts.map +1 -1
- package/dist/esm/src/config.d.ts +1 -1
- package/dist/esm/src/config.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/out/wechaty/puppet/message_pb.js +49 -1
- package/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/out/wechaty/puppet/moment_pb.js +301 -0
- package/out/wechaty/puppet.openapi.yaml +249 -8
- package/out/wechaty/puppet.swagger.json +323 -132
- package/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/out/wechaty/puppet_grpc_pb.js +104 -0
- package/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/out/wechaty/puppet_pb_service.js +280 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.29",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -167,7 +167,8 @@
|
|
|
167
167
|
"type": "object",
|
|
168
168
|
"properties": {
|
|
169
169
|
"corporationRemarkStringValueDeprecated": {
|
|
170
|
-
"type": "string"
|
|
170
|
+
"type": "string",
|
|
171
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
171
172
|
},
|
|
172
173
|
"corporationRemark": {
|
|
173
174
|
"type": "string"
|
|
@@ -213,7 +214,8 @@
|
|
|
213
214
|
"type": "object",
|
|
214
215
|
"properties": {
|
|
215
216
|
"descriptionStringValueDeprecated": {
|
|
216
|
-
"type": "string"
|
|
217
|
+
"type": "string",
|
|
218
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
217
219
|
},
|
|
218
220
|
"description": {
|
|
219
221
|
"type": "string"
|
|
@@ -368,6 +370,7 @@
|
|
|
368
370
|
"properties": {
|
|
369
371
|
"aliasStringValueDeprecated": {
|
|
370
372
|
"type": "string",
|
|
373
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
371
374
|
"title": "nullable"
|
|
372
375
|
},
|
|
373
376
|
"alias": {
|
|
@@ -408,6 +411,7 @@
|
|
|
408
411
|
},
|
|
409
412
|
{
|
|
410
413
|
"name": "fileboxStringValueDeprecated",
|
|
414
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
411
415
|
"in": "query",
|
|
412
416
|
"required": false,
|
|
413
417
|
"type": "string"
|
|
@@ -618,12 +622,14 @@
|
|
|
618
622
|
"parameters": [
|
|
619
623
|
{
|
|
620
624
|
"name": "conversationId",
|
|
625
|
+
"description": "对话id",
|
|
621
626
|
"in": "path",
|
|
622
627
|
"required": true,
|
|
623
628
|
"type": "string"
|
|
624
629
|
},
|
|
625
630
|
{
|
|
626
631
|
"name": "messageId",
|
|
632
|
+
"description": "要转发的消息id",
|
|
627
633
|
"in": "path",
|
|
628
634
|
"required": true,
|
|
629
635
|
"type": "string"
|
|
@@ -697,6 +703,7 @@
|
|
|
697
703
|
"parameters": [
|
|
698
704
|
{
|
|
699
705
|
"name": "conversationId",
|
|
706
|
+
"description": "对话id",
|
|
700
707
|
"in": "path",
|
|
701
708
|
"required": true,
|
|
702
709
|
"type": "string"
|
|
@@ -710,10 +717,12 @@
|
|
|
710
717
|
"properties": {
|
|
711
718
|
"miniProgramDeprecated": {
|
|
712
719
|
"type": "string",
|
|
720
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
713
721
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
714
722
|
},
|
|
715
723
|
"miniProgram": {
|
|
716
|
-
"$ref": "#/definitions/puppetMiniProgramPayload"
|
|
724
|
+
"$ref": "#/definitions/puppetMiniProgramPayload",
|
|
725
|
+
"title": "小程序payload"
|
|
717
726
|
}
|
|
718
727
|
}
|
|
719
728
|
}
|
|
@@ -744,6 +753,7 @@
|
|
|
744
753
|
"parameters": [
|
|
745
754
|
{
|
|
746
755
|
"name": "conversationId",
|
|
756
|
+
"description": "对话id",
|
|
747
757
|
"in": "path",
|
|
748
758
|
"required": true,
|
|
749
759
|
"type": "string"
|
|
@@ -756,18 +766,22 @@
|
|
|
756
766
|
"type": "object",
|
|
757
767
|
"properties": {
|
|
758
768
|
"text": {
|
|
759
|
-
"type": "string"
|
|
769
|
+
"type": "string",
|
|
770
|
+
"title": "文本内容"
|
|
760
771
|
},
|
|
761
772
|
"mentionalIds": {
|
|
762
773
|
"type": "array",
|
|
763
774
|
"items": {
|
|
764
775
|
"type": "string"
|
|
765
|
-
}
|
|
776
|
+
},
|
|
777
|
+
"title": "@人id列表"
|
|
766
778
|
},
|
|
767
779
|
"quoteId": {
|
|
768
|
-
"type": "string"
|
|
780
|
+
"type": "string",
|
|
781
|
+
"title": "引用消息的id"
|
|
769
782
|
}
|
|
770
|
-
}
|
|
783
|
+
},
|
|
784
|
+
"title": "发文本消息"
|
|
771
785
|
}
|
|
772
786
|
}
|
|
773
787
|
],
|
|
@@ -796,6 +810,7 @@
|
|
|
796
810
|
"parameters": [
|
|
797
811
|
{
|
|
798
812
|
"name": "conversationId",
|
|
813
|
+
"description": "对话id",
|
|
799
814
|
"in": "path",
|
|
800
815
|
"required": true,
|
|
801
816
|
"type": "string"
|
|
@@ -809,10 +824,12 @@
|
|
|
809
824
|
"properties": {
|
|
810
825
|
"urlLinkDeprecated": {
|
|
811
826
|
"type": "string",
|
|
827
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
812
828
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
813
829
|
},
|
|
814
830
|
"urlLink": {
|
|
815
|
-
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
831
|
+
"$ref": "#/definitions/puppetUrlLinkPayload",
|
|
832
|
+
"title": "链接payload"
|
|
816
833
|
}
|
|
817
834
|
}
|
|
818
835
|
}
|
|
@@ -1015,10 +1032,12 @@
|
|
|
1015
1032
|
"type": "string"
|
|
1016
1033
|
},
|
|
1017
1034
|
"sourceRoomIdStringValueDeprecated": {
|
|
1018
|
-
"type": "string"
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
1019
1037
|
},
|
|
1020
1038
|
"sourceContactIdStringValueDeprecated": {
|
|
1021
|
-
"type": "string"
|
|
1039
|
+
"type": "string",
|
|
1040
|
+
"title": "Deprecated: will be removed after Dec 31, 2022"
|
|
1022
1041
|
},
|
|
1023
1042
|
"referrer": {
|
|
1024
1043
|
"$ref": "#/definitions/puppetReferrer"
|
|
@@ -1121,7 +1140,7 @@
|
|
|
1121
1140
|
},
|
|
1122
1141
|
{
|
|
1123
1142
|
"name": "payloadStringValueDeprecated",
|
|
1124
|
-
"description": "*\nHuan(202003):\n What's the reason we need belowing payload?\n We should remove it if possible
|
|
1143
|
+
"description": "*\nHuan(202003):\n What's the reason we need belowing payload?\n We should remove it if possible.\n\nDEPRECATED, will be removed after Dec 31, 2022",
|
|
1125
1144
|
"in": "query",
|
|
1126
1145
|
"required": false,
|
|
1127
1146
|
"type": "string"
|
|
@@ -1516,12 +1535,14 @@
|
|
|
1516
1535
|
"parameters": [
|
|
1517
1536
|
{
|
|
1518
1537
|
"name": "messageId",
|
|
1538
|
+
"description": "要转发的消息id",
|
|
1519
1539
|
"in": "path",
|
|
1520
1540
|
"required": true,
|
|
1521
1541
|
"type": "string"
|
|
1522
1542
|
},
|
|
1523
1543
|
{
|
|
1524
1544
|
"name": "conversationId",
|
|
1545
|
+
"description": "对话id",
|
|
1525
1546
|
"in": "path",
|
|
1526
1547
|
"required": true,
|
|
1527
1548
|
"type": "string"
|
|
@@ -1534,7 +1555,7 @@
|
|
|
1534
1555
|
},
|
|
1535
1556
|
"/moment/coverage": {
|
|
1536
1557
|
"post": {
|
|
1537
|
-
"operationId": "
|
|
1558
|
+
"operationId": "Puppet_MomentCoverage",
|
|
1538
1559
|
"responses": {
|
|
1539
1560
|
"200": {
|
|
1540
1561
|
"description": "A successful response.",
|
|
@@ -1566,7 +1587,7 @@
|
|
|
1566
1587
|
},
|
|
1567
1588
|
"/moment/publish": {
|
|
1568
1589
|
"post": {
|
|
1569
|
-
"operationId": "
|
|
1590
|
+
"operationId": "Puppet_MomentPublish",
|
|
1570
1591
|
"responses": {
|
|
1571
1592
|
"200": {
|
|
1572
1593
|
"description": "A successful response.",
|
|
@@ -1598,7 +1619,7 @@
|
|
|
1598
1619
|
},
|
|
1599
1620
|
"/moment/signature": {
|
|
1600
1621
|
"post": {
|
|
1601
|
-
"operationId": "
|
|
1622
|
+
"operationId": "Puppet_MomentSignature",
|
|
1602
1623
|
"responses": {
|
|
1603
1624
|
"200": {
|
|
1604
1625
|
"description": "A successful response.",
|
|
@@ -1628,9 +1649,31 @@
|
|
|
1628
1649
|
]
|
|
1629
1650
|
}
|
|
1630
1651
|
},
|
|
1652
|
+
"/moment/visibleList": {
|
|
1653
|
+
"get": {
|
|
1654
|
+
"operationId": "Puppet_MomentVisibleList",
|
|
1655
|
+
"responses": {
|
|
1656
|
+
"200": {
|
|
1657
|
+
"description": "A successful response.",
|
|
1658
|
+
"schema": {
|
|
1659
|
+
"$ref": "#/definitions/puppetMomentVisibleListResponse"
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"default": {
|
|
1663
|
+
"description": "An unexpected error response.",
|
|
1664
|
+
"schema": {
|
|
1665
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
"tags": [
|
|
1670
|
+
"Puppet"
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1631
1674
|
"/post/like": {
|
|
1632
1675
|
"post": {
|
|
1633
|
-
"operationId": "
|
|
1676
|
+
"operationId": "Puppet_PostTap",
|
|
1634
1677
|
"responses": {
|
|
1635
1678
|
"200": {
|
|
1636
1679
|
"description": "A successful response.",
|
|
@@ -1662,7 +1705,7 @@
|
|
|
1662
1705
|
},
|
|
1663
1706
|
"/post/payload": {
|
|
1664
1707
|
"post": {
|
|
1665
|
-
"operationId": "
|
|
1708
|
+
"operationId": "Puppet_PostPayload",
|
|
1666
1709
|
"responses": {
|
|
1667
1710
|
"200": {
|
|
1668
1711
|
"description": "A successful response.",
|
|
@@ -1694,7 +1737,7 @@
|
|
|
1694
1737
|
},
|
|
1695
1738
|
"/post/sayable": {
|
|
1696
1739
|
"post": {
|
|
1697
|
-
"operationId": "
|
|
1740
|
+
"operationId": "Puppet_PostPayloadSayable",
|
|
1698
1741
|
"responses": {
|
|
1699
1742
|
"200": {
|
|
1700
1743
|
"description": "A successful response.",
|
|
@@ -1752,7 +1795,7 @@
|
|
|
1752
1795
|
},
|
|
1753
1796
|
{
|
|
1754
1797
|
"name": "payloadStringValueDeprecated",
|
|
1755
|
-
"description": "*\nHuan(202002): `payload` should be removed.\n The puppet server should take the responsibilities\n for storing the unaccepted friend-request payload.\n\n@deprecated: use payload instead.\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields",
|
|
1798
|
+
"description": "*\nHuan(202002): `payload` should be removed.\n The puppet server should take the responsibilities\n for storing the unaccepted friend-request payload.\n\n@deprecated: use payload instead.\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields\n\nDeprecated: will be removed after Dec 31, 2022",
|
|
1756
1799
|
"in": "query",
|
|
1757
1800
|
"required": false,
|
|
1758
1801
|
"type": "string"
|
|
@@ -1937,12 +1980,14 @@
|
|
|
1937
1980
|
},
|
|
1938
1981
|
{
|
|
1939
1982
|
"name": "contactId",
|
|
1983
|
+
"description": "被邀请联系人id",
|
|
1940
1984
|
"in": "path",
|
|
1941
1985
|
"required": true,
|
|
1942
1986
|
"type": "string"
|
|
1943
1987
|
},
|
|
1944
1988
|
{
|
|
1945
1989
|
"name": "inviteOnly",
|
|
1990
|
+
"description": "不明确,目前没见到使用这个的地方",
|
|
1946
1991
|
"in": "query",
|
|
1947
1992
|
"required": false,
|
|
1948
1993
|
"type": "boolean"
|
|
@@ -1979,6 +2024,7 @@
|
|
|
1979
2024
|
},
|
|
1980
2025
|
{
|
|
1981
2026
|
"name": "textStringValueDeprecated",
|
|
2027
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
1982
2028
|
"in": "query",
|
|
1983
2029
|
"required": false,
|
|
1984
2030
|
"type": "string"
|
|
@@ -2025,12 +2071,14 @@
|
|
|
2025
2071
|
"type": "object",
|
|
2026
2072
|
"properties": {
|
|
2027
2073
|
"textStringValueDeprecated": {
|
|
2028
|
-
"type": "string"
|
|
2074
|
+
"type": "string",
|
|
2075
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
2029
2076
|
},
|
|
2030
2077
|
"text": {
|
|
2031
2078
|
"type": "string"
|
|
2032
2079
|
}
|
|
2033
|
-
}
|
|
2080
|
+
},
|
|
2081
|
+
"title": "群公告"
|
|
2034
2082
|
}
|
|
2035
2083
|
}
|
|
2036
2084
|
],
|
|
@@ -2191,6 +2239,7 @@
|
|
|
2191
2239
|
},
|
|
2192
2240
|
{
|
|
2193
2241
|
"name": "contactId",
|
|
2242
|
+
"description": "Deprecated, will be removed after bot updated",
|
|
2194
2243
|
"in": "path",
|
|
2195
2244
|
"required": true,
|
|
2196
2245
|
"type": "string"
|
|
@@ -2335,6 +2384,7 @@
|
|
|
2335
2384
|
},
|
|
2336
2385
|
{
|
|
2337
2386
|
"name": "topicStringValueDeprecated",
|
|
2387
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
2338
2388
|
"in": "query",
|
|
2339
2389
|
"required": false,
|
|
2340
2390
|
"type": "string"
|
|
@@ -3045,7 +3095,7 @@
|
|
|
3045
3095
|
"parameters": [
|
|
3046
3096
|
{
|
|
3047
3097
|
"name": "body",
|
|
3048
|
-
"description": " (streaming inputs)",
|
|
3098
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed. (streaming inputs)",
|
|
3049
3099
|
"in": "body",
|
|
3050
3100
|
"required": true,
|
|
3051
3101
|
"schema": {
|
|
@@ -3073,29 +3123,37 @@
|
|
|
3073
3123
|
"type": "object",
|
|
3074
3124
|
"properties": {
|
|
3075
3125
|
"avatar": {
|
|
3076
|
-
"type": "string"
|
|
3126
|
+
"type": "string",
|
|
3127
|
+
"title": "头像"
|
|
3077
3128
|
},
|
|
3078
3129
|
"coverUrl": {
|
|
3079
|
-
"type": "string"
|
|
3130
|
+
"type": "string",
|
|
3131
|
+
"title": "封面地址"
|
|
3080
3132
|
},
|
|
3081
3133
|
"desc": {
|
|
3082
|
-
"type": "string"
|
|
3134
|
+
"type": "string",
|
|
3135
|
+
"title": "描述"
|
|
3083
3136
|
},
|
|
3084
3137
|
"extras": {
|
|
3085
|
-
"type": "string"
|
|
3138
|
+
"type": "string",
|
|
3139
|
+
"title": "额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。"
|
|
3086
3140
|
},
|
|
3087
3141
|
"feedType": {
|
|
3088
3142
|
"type": "integer",
|
|
3089
|
-
"format": "int32"
|
|
3143
|
+
"format": "int32",
|
|
3144
|
+
"title": "暂不明确含义,目前请固定传4"
|
|
3090
3145
|
},
|
|
3091
3146
|
"nickname": {
|
|
3092
|
-
"type": "string"
|
|
3147
|
+
"type": "string",
|
|
3148
|
+
"title": "用户名"
|
|
3093
3149
|
},
|
|
3094
3150
|
"thumbUrl": {
|
|
3095
|
-
"type": "string"
|
|
3151
|
+
"type": "string",
|
|
3152
|
+
"title": "缩略图地址"
|
|
3096
3153
|
},
|
|
3097
3154
|
"url": {
|
|
3098
|
-
"type": "string"
|
|
3155
|
+
"type": "string",
|
|
3156
|
+
"title": "视频号地址"
|
|
3099
3157
|
}
|
|
3100
3158
|
}
|
|
3101
3159
|
},
|
|
@@ -3103,7 +3161,8 @@
|
|
|
3103
3161
|
"type": "object",
|
|
3104
3162
|
"properties": {
|
|
3105
3163
|
"aliasStringValueDeprecated": {
|
|
3106
|
-
"type": "string"
|
|
3164
|
+
"type": "string",
|
|
3165
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3107
3166
|
},
|
|
3108
3167
|
"alias": {
|
|
3109
3168
|
"type": "string"
|
|
@@ -3114,7 +3173,8 @@
|
|
|
3114
3173
|
"type": "object",
|
|
3115
3174
|
"properties": {
|
|
3116
3175
|
"fileboxStringValueDeprecated": {
|
|
3117
|
-
"type": "string"
|
|
3176
|
+
"type": "string",
|
|
3177
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3118
3178
|
},
|
|
3119
3179
|
"fileBox": {
|
|
3120
3180
|
"type": "string"
|
|
@@ -3134,7 +3194,9 @@
|
|
|
3134
3194
|
"CONTACT_GENDER_MALE",
|
|
3135
3195
|
"CONTACT_GENDER_FEMALE"
|
|
3136
3196
|
],
|
|
3137
|
-
"default": "CONTACT_GENDER_UNSPECIFIED"
|
|
3197
|
+
"default": "CONTACT_GENDER_UNSPECIFIED",
|
|
3198
|
+
"description": "- CONTACT_GENDER_UNSPECIFIED: 不明确\n - CONTACT_GENDER_MALE: 男\n - CONTACT_GENDER_FEMALE: 女",
|
|
3199
|
+
"title": "性别枚举"
|
|
3138
3200
|
},
|
|
3139
3201
|
"puppetContactListResponse": {
|
|
3140
3202
|
"type": "object",
|
|
@@ -3154,68 +3216,86 @@
|
|
|
3154
3216
|
"type": "string"
|
|
3155
3217
|
},
|
|
3156
3218
|
"gender": {
|
|
3157
|
-
"$ref": "#/definitions/puppetContactGender"
|
|
3219
|
+
"$ref": "#/definitions/puppetContactGender",
|
|
3220
|
+
"title": "性别"
|
|
3158
3221
|
},
|
|
3159
3222
|
"type": {
|
|
3160
|
-
"$ref": "#/definitions/puppetContactType"
|
|
3223
|
+
"$ref": "#/definitions/puppetContactType",
|
|
3224
|
+
"title": "类型"
|
|
3161
3225
|
},
|
|
3162
3226
|
"name": {
|
|
3163
|
-
"type": "string"
|
|
3227
|
+
"type": "string",
|
|
3228
|
+
"title": "姓名"
|
|
3164
3229
|
},
|
|
3165
3230
|
"avatar": {
|
|
3166
|
-
"type": "string"
|
|
3231
|
+
"type": "string",
|
|
3232
|
+
"title": "头像"
|
|
3167
3233
|
},
|
|
3168
3234
|
"address": {
|
|
3169
|
-
"type": "string"
|
|
3235
|
+
"type": "string",
|
|
3236
|
+
"title": "地址"
|
|
3170
3237
|
},
|
|
3171
3238
|
"alias": {
|
|
3172
|
-
"type": "string"
|
|
3239
|
+
"type": "string",
|
|
3240
|
+
"title": "别名,即备注"
|
|
3173
3241
|
},
|
|
3174
3242
|
"city": {
|
|
3175
|
-
"type": "string"
|
|
3243
|
+
"type": "string",
|
|
3244
|
+
"title": "城市"
|
|
3176
3245
|
},
|
|
3177
3246
|
"friend": {
|
|
3178
|
-
"type": "boolean"
|
|
3247
|
+
"type": "boolean",
|
|
3248
|
+
"title": "是否为好友"
|
|
3179
3249
|
},
|
|
3180
3250
|
"province": {
|
|
3181
|
-
"type": "string"
|
|
3251
|
+
"type": "string",
|
|
3252
|
+
"title": "省份"
|
|
3182
3253
|
},
|
|
3183
3254
|
"signature": {
|
|
3184
|
-
"type": "string"
|
|
3255
|
+
"type": "string",
|
|
3256
|
+
"title": "签名"
|
|
3185
3257
|
},
|
|
3186
3258
|
"star": {
|
|
3187
|
-
"type": "boolean"
|
|
3259
|
+
"type": "boolean",
|
|
3260
|
+
"title": "是否为特别好友"
|
|
3188
3261
|
},
|
|
3189
3262
|
"weixin": {
|
|
3190
3263
|
"type": "string",
|
|
3191
|
-
"description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0"
|
|
3264
|
+
"description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0\n\nIM专属id,在企微环境中特指weixinId"
|
|
3192
3265
|
},
|
|
3193
3266
|
"corporation": {
|
|
3194
|
-
"type": "string"
|
|
3267
|
+
"type": "string",
|
|
3268
|
+
"title": "企业"
|
|
3195
3269
|
},
|
|
3196
3270
|
"title": {
|
|
3197
|
-
"type": "string"
|
|
3271
|
+
"type": "string",
|
|
3272
|
+
"title": "头衔"
|
|
3198
3273
|
},
|
|
3199
3274
|
"description": {
|
|
3200
|
-
"type": "string"
|
|
3275
|
+
"type": "string",
|
|
3276
|
+
"title": "描述"
|
|
3201
3277
|
},
|
|
3202
3278
|
"coworker": {
|
|
3203
|
-
"type": "boolean"
|
|
3279
|
+
"type": "boolean",
|
|
3280
|
+
"title": "是否为同事"
|
|
3204
3281
|
},
|
|
3205
3282
|
"phones": {
|
|
3206
3283
|
"type": "array",
|
|
3207
3284
|
"items": {
|
|
3208
3285
|
"type": "string"
|
|
3209
|
-
}
|
|
3286
|
+
},
|
|
3287
|
+
"title": "电话号码,企微中最多5个"
|
|
3210
3288
|
},
|
|
3211
3289
|
"additionalInfo": {
|
|
3212
|
-
"type": "string"
|
|
3290
|
+
"type": "string",
|
|
3291
|
+
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
3213
3292
|
},
|
|
3214
3293
|
"tagIds": {
|
|
3215
3294
|
"type": "array",
|
|
3216
3295
|
"items": {
|
|
3217
3296
|
"type": "string"
|
|
3218
|
-
}
|
|
3297
|
+
},
|
|
3298
|
+
"title": "标签(的id)"
|
|
3219
3299
|
}
|
|
3220
3300
|
}
|
|
3221
3301
|
},
|
|
@@ -3260,7 +3340,9 @@
|
|
|
3260
3340
|
"CONTACT_TYPE_OFFICIAL",
|
|
3261
3341
|
"CONTACT_TYPE_CORPORATION"
|
|
3262
3342
|
],
|
|
3263
|
-
"default": "CONTACT_TYPE_UNSPECIFIED"
|
|
3343
|
+
"default": "CONTACT_TYPE_UNSPECIFIED",
|
|
3344
|
+
"description": "- CONTACT_TYPE_UNSPECIFIED: 不明确\n - CONTACT_TYPE_PERSONAL: 个微联系人\n - CONTACT_TYPE_OFFICIAL: 公众号\n - CONTACT_TYPE_CORPORATION: 企微联系人",
|
|
3345
|
+
"title": "类型枚举"
|
|
3264
3346
|
},
|
|
3265
3347
|
"puppetConversationReadResponse": {
|
|
3266
3348
|
"type": "object"
|
|
@@ -3282,7 +3364,8 @@
|
|
|
3282
3364
|
}
|
|
3283
3365
|
},
|
|
3284
3366
|
"puppetDingResponse": {
|
|
3285
|
-
"type": "object"
|
|
3367
|
+
"type": "object",
|
|
3368
|
+
"title": "*\n Ding has no return value\n Puppet should emit a `ding` event when it receives a `ding()` call"
|
|
3286
3369
|
},
|
|
3287
3370
|
"puppetDirtyPayloadResponse": {
|
|
3288
3371
|
"type": "object"
|
|
@@ -3304,6 +3387,7 @@
|
|
|
3304
3387
|
},
|
|
3305
3388
|
"payload": {
|
|
3306
3389
|
"type": "string",
|
|
3390
|
+
"description": "JSON.stringify({ ... })",
|
|
3307
3391
|
"title": "TODO: Huan(202002) consider to use a PB Map?"
|
|
3308
3392
|
}
|
|
3309
3393
|
}
|
|
@@ -3344,9 +3428,11 @@
|
|
|
3344
3428
|
"title": "oneof payload {"
|
|
3345
3429
|
},
|
|
3346
3430
|
"name": {
|
|
3347
|
-
"type": "string"
|
|
3431
|
+
"type": "string",
|
|
3432
|
+
"title": "}"
|
|
3348
3433
|
}
|
|
3349
|
-
}
|
|
3434
|
+
},
|
|
3435
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
3350
3436
|
},
|
|
3351
3437
|
"puppetFriendshipAcceptResponse": {
|
|
3352
3438
|
"type": "object"
|
|
@@ -3361,22 +3447,28 @@
|
|
|
3361
3447
|
"type": "string"
|
|
3362
3448
|
},
|
|
3363
3449
|
"contactId": {
|
|
3364
|
-
"type": "string"
|
|
3450
|
+
"type": "string",
|
|
3451
|
+
"title": "加好友的联系人id"
|
|
3365
3452
|
},
|
|
3366
3453
|
"hello": {
|
|
3367
|
-
"type": "string"
|
|
3454
|
+
"type": "string",
|
|
3455
|
+
"title": "加好友的打招呼消息"
|
|
3368
3456
|
},
|
|
3369
3457
|
"type": {
|
|
3370
|
-
"$ref": "#/definitions/puppetFriendshipType"
|
|
3458
|
+
"$ref": "#/definitions/puppetFriendshipType",
|
|
3459
|
+
"title": "好友事件类型"
|
|
3371
3460
|
},
|
|
3372
3461
|
"stranger": {
|
|
3373
|
-
"type": "string"
|
|
3462
|
+
"type": "string",
|
|
3463
|
+
"title": "不明确含义,wxwork中未使用"
|
|
3374
3464
|
},
|
|
3375
3465
|
"ticket": {
|
|
3376
|
-
"type": "string"
|
|
3466
|
+
"type": "string",
|
|
3467
|
+
"title": "个微遗留字段,wxwork中会传corp_id"
|
|
3377
3468
|
},
|
|
3378
3469
|
"scene": {
|
|
3379
|
-
"$ref": "#/definitions/puppetFriendshipSceneType"
|
|
3470
|
+
"$ref": "#/definitions/puppetFriendshipSceneType",
|
|
3471
|
+
"title": "加好友的场景(例如通过名片添加、通过群添加等),wxwork未使用"
|
|
3380
3472
|
}
|
|
3381
3473
|
}
|
|
3382
3474
|
},
|
|
@@ -3396,7 +3488,8 @@
|
|
|
3396
3488
|
"FRIENDSHIP_SCENE_TYPE_SHAKING",
|
|
3397
3489
|
"FRIENDSHIP_SCENE_TYPE_QRCODE"
|
|
3398
3490
|
],
|
|
3399
|
-
"default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED"
|
|
3491
|
+
"default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED",
|
|
3492
|
+
"title": "事件场景 wxwork中未使用"
|
|
3400
3493
|
},
|
|
3401
3494
|
"puppetFriendshipSearchHandleRequest": {
|
|
3402
3495
|
"type": "object",
|
|
@@ -3413,6 +3506,7 @@
|
|
|
3413
3506
|
"properties": {
|
|
3414
3507
|
"contactIdStringValueDeprecated": {
|
|
3415
3508
|
"type": "string",
|
|
3509
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
3416
3510
|
"title": "nullable"
|
|
3417
3511
|
},
|
|
3418
3512
|
"contactId": {
|
|
@@ -3425,6 +3519,7 @@
|
|
|
3425
3519
|
"properties": {
|
|
3426
3520
|
"contactIdStringValueDeprecated": {
|
|
3427
3521
|
"type": "string",
|
|
3522
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
3428
3523
|
"title": "nullable"
|
|
3429
3524
|
},
|
|
3430
3525
|
"contactId": {
|
|
@@ -3442,7 +3537,9 @@
|
|
|
3442
3537
|
"FRIENDSHIP_TYPE_DELETE",
|
|
3443
3538
|
"FRIENDSHIP_TYPE_REMOVED"
|
|
3444
3539
|
],
|
|
3445
|
-
"default": "FRIENDSHIP_TYPE_UNSPECIFIED"
|
|
3540
|
+
"default": "FRIENDSHIP_TYPE_UNSPECIFIED",
|
|
3541
|
+
"description": "- FRIENDSHIP_TYPE_UNSPECIFIED: 不明确\n - FRIENDSHIP_TYPE_CONFIRM: 确认——双方互加后触发\n - FRIENDSHIP_TYPE_RECEIVE: 收到——收到好友请求后触发\n - FRIENDSHIP_TYPE_VERIFY: 验证——主动加他人为好友时触发,wxwork里暂无此事件\n - FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发\n - FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发",
|
|
3542
|
+
"title": "事件类型"
|
|
3446
3543
|
},
|
|
3447
3544
|
"puppetImageType": {
|
|
3448
3545
|
"type": "string",
|
|
@@ -3459,21 +3556,26 @@
|
|
|
3459
3556
|
"properties": {
|
|
3460
3557
|
"accuracy": {
|
|
3461
3558
|
"type": "number",
|
|
3462
|
-
"format": "float"
|
|
3559
|
+
"format": "float",
|
|
3560
|
+
"title": "精确度,默认为15"
|
|
3463
3561
|
},
|
|
3464
3562
|
"address": {
|
|
3465
|
-
"type": "string"
|
|
3563
|
+
"type": "string",
|
|
3564
|
+
"title": "地址,xx省xx市xx区xx路xx号"
|
|
3466
3565
|
},
|
|
3467
3566
|
"latitude": {
|
|
3468
3567
|
"type": "number",
|
|
3469
|
-
"format": "double"
|
|
3568
|
+
"format": "double",
|
|
3569
|
+
"title": "纬度,北纬为正"
|
|
3470
3570
|
},
|
|
3471
3571
|
"longitude": {
|
|
3472
3572
|
"type": "number",
|
|
3473
|
-
"format": "double"
|
|
3573
|
+
"format": "double",
|
|
3574
|
+
"title": "经度,东经为正"
|
|
3474
3575
|
},
|
|
3475
3576
|
"name": {
|
|
3476
|
-
"type": "string"
|
|
3577
|
+
"type": "string",
|
|
3578
|
+
"title": "地址名,例如xx大厦"
|
|
3477
3579
|
}
|
|
3478
3580
|
}
|
|
3479
3581
|
},
|
|
@@ -3533,6 +3635,7 @@
|
|
|
3533
3635
|
"properties": {
|
|
3534
3636
|
"idStringValueDeprecated": {
|
|
3535
3637
|
"type": "string",
|
|
3638
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3536
3639
|
"title": "*\n@deprecated: use payload instead.\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3537
3640
|
},
|
|
3538
3641
|
"id": {
|
|
@@ -3547,7 +3650,8 @@
|
|
|
3547
3650
|
"type": "string"
|
|
3548
3651
|
},
|
|
3549
3652
|
"type": {
|
|
3550
|
-
"$ref": "#/definitions/puppetImageType"
|
|
3653
|
+
"$ref": "#/definitions/puppetImageType",
|
|
3654
|
+
"title": "获取图片的类型(缩略图、原图)"
|
|
3551
3655
|
}
|
|
3552
3656
|
}
|
|
3553
3657
|
},
|
|
@@ -3591,6 +3695,7 @@
|
|
|
3591
3695
|
"properties": {
|
|
3592
3696
|
"miniProgramDeprecated": {
|
|
3593
3697
|
"type": "string",
|
|
3698
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3594
3699
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3595
3700
|
},
|
|
3596
3701
|
"miniProgram": {
|
|
@@ -3605,10 +3710,12 @@
|
|
|
3605
3710
|
"type": "string"
|
|
3606
3711
|
},
|
|
3607
3712
|
"filename": {
|
|
3608
|
-
"type": "string"
|
|
3713
|
+
"type": "string",
|
|
3714
|
+
"title": "文件名"
|
|
3609
3715
|
},
|
|
3610
3716
|
"text": {
|
|
3611
|
-
"type": "string"
|
|
3717
|
+
"type": "string",
|
|
3718
|
+
"title": "文本内容"
|
|
3612
3719
|
},
|
|
3613
3720
|
"timestampDeprecated": {
|
|
3614
3721
|
"type": "string",
|
|
@@ -3616,28 +3723,38 @@
|
|
|
3616
3723
|
"title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
|
|
3617
3724
|
},
|
|
3618
3725
|
"type": {
|
|
3619
|
-
"$ref": "#/definitions/puppetMessageType"
|
|
3726
|
+
"$ref": "#/definitions/puppetMessageType",
|
|
3727
|
+
"title": "类型"
|
|
3620
3728
|
},
|
|
3621
3729
|
"talkerId": {
|
|
3622
|
-
"type": "string"
|
|
3730
|
+
"type": "string",
|
|
3731
|
+
"title": "发送者id"
|
|
3623
3732
|
},
|
|
3624
3733
|
"roomId": {
|
|
3625
|
-
"type": "string"
|
|
3734
|
+
"type": "string",
|
|
3735
|
+
"title": "群聊id"
|
|
3626
3736
|
},
|
|
3627
3737
|
"listenerId": {
|
|
3628
|
-
"type": "string"
|
|
3738
|
+
"type": "string",
|
|
3739
|
+
"title": "接受者id"
|
|
3629
3740
|
},
|
|
3630
3741
|
"mentionIds": {
|
|
3631
3742
|
"type": "array",
|
|
3632
3743
|
"items": {
|
|
3633
3744
|
"type": "string"
|
|
3634
|
-
}
|
|
3745
|
+
},
|
|
3746
|
+
"title": "群消息@人的id列表"
|
|
3635
3747
|
},
|
|
3636
3748
|
"receiveTime": {
|
|
3637
3749
|
"type": "string",
|
|
3638
|
-
"format": "date-time"
|
|
3750
|
+
"format": "date-time",
|
|
3751
|
+
"title": "收到消息时间"
|
|
3639
3752
|
},
|
|
3640
3753
|
"quoteId": {
|
|
3754
|
+
"type": "string",
|
|
3755
|
+
"title": "被引用的消息id"
|
|
3756
|
+
},
|
|
3757
|
+
"additionalInfo": {
|
|
3641
3758
|
"type": "string"
|
|
3642
3759
|
}
|
|
3643
3760
|
}
|
|
@@ -3671,6 +3788,7 @@
|
|
|
3671
3788
|
"properties": {
|
|
3672
3789
|
"idStringValueDeprecated": {
|
|
3673
3790
|
"type": "string",
|
|
3791
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3674
3792
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3675
3793
|
},
|
|
3676
3794
|
"id": {
|
|
@@ -3682,10 +3800,12 @@
|
|
|
3682
3800
|
"type": "object",
|
|
3683
3801
|
"properties": {
|
|
3684
3802
|
"conversationId": {
|
|
3685
|
-
"type": "string"
|
|
3803
|
+
"type": "string",
|
|
3804
|
+
"title": "对话id"
|
|
3686
3805
|
},
|
|
3687
3806
|
"fileBox": {
|
|
3688
|
-
"type": "string"
|
|
3807
|
+
"type": "string",
|
|
3808
|
+
"title": "发送文件的fileBox.toJSON()"
|
|
3689
3809
|
}
|
|
3690
3810
|
}
|
|
3691
3811
|
},
|
|
@@ -3694,6 +3814,7 @@
|
|
|
3694
3814
|
"properties": {
|
|
3695
3815
|
"idStringValueDeprecated": {
|
|
3696
3816
|
"type": "string",
|
|
3817
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3697
3818
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3698
3819
|
},
|
|
3699
3820
|
"id": {
|
|
@@ -3709,15 +3830,18 @@
|
|
|
3709
3830
|
"title": "oneof payload {"
|
|
3710
3831
|
},
|
|
3711
3832
|
"fileBoxChunk": {
|
|
3712
|
-
"$ref": "#/definitions/puppetFileBoxChunk"
|
|
3833
|
+
"$ref": "#/definitions/puppetFileBoxChunk",
|
|
3834
|
+
"title": "};"
|
|
3713
3835
|
}
|
|
3714
|
-
}
|
|
3836
|
+
},
|
|
3837
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
3715
3838
|
},
|
|
3716
3839
|
"puppetMessageSendFileStreamResponse": {
|
|
3717
3840
|
"type": "object",
|
|
3718
3841
|
"properties": {
|
|
3719
3842
|
"idStringValueDeprecated": {
|
|
3720
3843
|
"type": "string",
|
|
3844
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3721
3845
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3722
3846
|
},
|
|
3723
3847
|
"id": {
|
|
@@ -3739,6 +3863,7 @@
|
|
|
3739
3863
|
"properties": {
|
|
3740
3864
|
"idStringValueDeprecated": {
|
|
3741
3865
|
"type": "string",
|
|
3866
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3742
3867
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3743
3868
|
},
|
|
3744
3869
|
"id": {
|
|
@@ -3751,6 +3876,7 @@
|
|
|
3751
3876
|
"properties": {
|
|
3752
3877
|
"idStringValueDeprecated": {
|
|
3753
3878
|
"type": "string",
|
|
3879
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3754
3880
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3755
3881
|
},
|
|
3756
3882
|
"id": {
|
|
@@ -3763,6 +3889,7 @@
|
|
|
3763
3889
|
"properties": {
|
|
3764
3890
|
"idStringValueDeprecated": {
|
|
3765
3891
|
"type": "string",
|
|
3892
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3766
3893
|
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
3767
3894
|
},
|
|
3768
3895
|
"id": {
|
|
@@ -3793,13 +3920,16 @@
|
|
|
3793
3920
|
"MESSAGE_TYPE_CHANNEL",
|
|
3794
3921
|
"MESSAGE_TYPE_SYSTEM"
|
|
3795
3922
|
],
|
|
3796
|
-
"default": "MESSAGE_TYPE_UNSPECIFIED"
|
|
3923
|
+
"default": "MESSAGE_TYPE_UNSPECIFIED",
|
|
3924
|
+
"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: 系统消息",
|
|
3925
|
+
"title": "消息类型"
|
|
3797
3926
|
},
|
|
3798
3927
|
"puppetMessageUrlResponse": {
|
|
3799
3928
|
"type": "object",
|
|
3800
3929
|
"properties": {
|
|
3801
3930
|
"urlLinkDeprecated": {
|
|
3802
3931
|
"type": "string",
|
|
3932
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3803
3933
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3804
3934
|
},
|
|
3805
3935
|
"urlLink": {
|
|
@@ -3811,31 +3941,40 @@
|
|
|
3811
3941
|
"type": "object",
|
|
3812
3942
|
"properties": {
|
|
3813
3943
|
"appid": {
|
|
3814
|
-
"type": "string"
|
|
3944
|
+
"type": "string",
|
|
3945
|
+
"title": "appId,形式如wx4ff94de0d8038c25"
|
|
3815
3946
|
},
|
|
3816
3947
|
"description": {
|
|
3817
|
-
"type": "string"
|
|
3948
|
+
"type": "string",
|
|
3949
|
+
"title": "描述(副标题)"
|
|
3818
3950
|
},
|
|
3819
3951
|
"pagePath": {
|
|
3820
|
-
"type": "string"
|
|
3952
|
+
"type": "string",
|
|
3953
|
+
"title": "访问路径"
|
|
3821
3954
|
},
|
|
3822
3955
|
"iconUrl": {
|
|
3823
|
-
"type": "string"
|
|
3956
|
+
"type": "string",
|
|
3957
|
+
"title": "图标路径"
|
|
3824
3958
|
},
|
|
3825
3959
|
"shareId": {
|
|
3826
|
-
"type": "string"
|
|
3960
|
+
"type": "string",
|
|
3961
|
+
"title": "发送小程序的用户id,可不填"
|
|
3827
3962
|
},
|
|
3828
3963
|
"thumbUrl": {
|
|
3829
|
-
"type": "string"
|
|
3964
|
+
"type": "string",
|
|
3965
|
+
"title": "缩略图路径"
|
|
3830
3966
|
},
|
|
3831
3967
|
"title": {
|
|
3832
|
-
"type": "string"
|
|
3968
|
+
"type": "string",
|
|
3969
|
+
"title": "标题"
|
|
3833
3970
|
},
|
|
3834
3971
|
"username": {
|
|
3835
|
-
"type": "string"
|
|
3972
|
+
"type": "string",
|
|
3973
|
+
"title": "关联公众号id,形式gh_69105b80ea75@app"
|
|
3836
3974
|
},
|
|
3837
3975
|
"thumbKey": {
|
|
3838
|
-
"type": "string"
|
|
3976
|
+
"type": "string",
|
|
3977
|
+
"title": "缩略图的key,可不填"
|
|
3839
3978
|
}
|
|
3840
3979
|
}
|
|
3841
3980
|
},
|
|
@@ -3887,6 +4026,17 @@
|
|
|
3887
4026
|
}
|
|
3888
4027
|
}
|
|
3889
4028
|
},
|
|
4029
|
+
"puppetMomentVisibleListResponse": {
|
|
4030
|
+
"type": "object",
|
|
4031
|
+
"properties": {
|
|
4032
|
+
"contactIds": {
|
|
4033
|
+
"type": "array",
|
|
4034
|
+
"items": {
|
|
4035
|
+
"type": "string"
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
},
|
|
3890
4040
|
"puppetPayloadType": {
|
|
3891
4041
|
"type": "string",
|
|
3892
4042
|
"enum": [
|
|
@@ -3906,10 +4056,12 @@
|
|
|
3906
4056
|
"type": "object",
|
|
3907
4057
|
"properties": {
|
|
3908
4058
|
"parentId": {
|
|
3909
|
-
"type": "string"
|
|
4059
|
+
"type": "string",
|
|
4060
|
+
"title": "转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id"
|
|
3910
4061
|
},
|
|
3911
4062
|
"rootId": {
|
|
3912
|
-
"type": "string"
|
|
4063
|
+
"type": "string",
|
|
4064
|
+
"title": "转发的根id,评论时应该是朋友圈的id"
|
|
3913
4065
|
},
|
|
3914
4066
|
"type": {
|
|
3915
4067
|
"$ref": "#/definitions/puppetPostType"
|
|
@@ -3961,10 +4113,12 @@
|
|
|
3961
4113
|
"type": "object",
|
|
3962
4114
|
"properties": {
|
|
3963
4115
|
"parentId": {
|
|
3964
|
-
"type": "string"
|
|
4116
|
+
"type": "string",
|
|
4117
|
+
"title": "转发的上一级id"
|
|
3965
4118
|
},
|
|
3966
4119
|
"rootId": {
|
|
3967
|
-
"type": "string"
|
|
4120
|
+
"type": "string",
|
|
4121
|
+
"title": "转发的根id"
|
|
3968
4122
|
},
|
|
3969
4123
|
"type": {
|
|
3970
4124
|
"$ref": "#/definitions/puppetPostType"
|
|
@@ -4004,13 +4158,15 @@
|
|
|
4004
4158
|
"$ref": "#/definitions/puppetSayableType"
|
|
4005
4159
|
},
|
|
4006
4160
|
"id": {
|
|
4007
|
-
"type": "string"
|
|
4161
|
+
"type": "string",
|
|
4162
|
+
"title": "服务器端获取的Post只传回id,异步进行获取"
|
|
4008
4163
|
},
|
|
4009
4164
|
"text": {
|
|
4010
4165
|
"type": "string"
|
|
4011
4166
|
},
|
|
4012
4167
|
"fileBox": {
|
|
4013
|
-
"type": "string"
|
|
4168
|
+
"type": "string",
|
|
4169
|
+
"title": "FileBox.toJSON()"
|
|
4014
4170
|
},
|
|
4015
4171
|
"urlLink": {
|
|
4016
4172
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
@@ -4022,7 +4178,8 @@
|
|
|
4022
4178
|
"type": "array",
|
|
4023
4179
|
"items": {
|
|
4024
4180
|
"type": "string"
|
|
4025
|
-
}
|
|
4181
|
+
},
|
|
4182
|
+
"title": "文本类型的sayable可传,朋友圈暂不支持"
|
|
4026
4183
|
}
|
|
4027
4184
|
}
|
|
4028
4185
|
},
|
|
@@ -4036,7 +4193,8 @@
|
|
|
4036
4193
|
"$ref": "#/definitions/puppetTapType"
|
|
4037
4194
|
},
|
|
4038
4195
|
"tap": {
|
|
4039
|
-
"type": "boolean"
|
|
4196
|
+
"type": "boolean",
|
|
4197
|
+
"title": "点赞还是取消"
|
|
4040
4198
|
}
|
|
4041
4199
|
}
|
|
4042
4200
|
},
|
|
@@ -4056,7 +4214,8 @@
|
|
|
4056
4214
|
"POST_TYPE_CHANNEL",
|
|
4057
4215
|
"POST_TYPE_MESSAGE"
|
|
4058
4216
|
],
|
|
4059
|
-
"default": "POST_TYPE_UNSPECIFIED"
|
|
4217
|
+
"default": "POST_TYPE_UNSPECIFIED",
|
|
4218
|
+
"title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息"
|
|
4060
4219
|
},
|
|
4061
4220
|
"puppetReferrer": {
|
|
4062
4221
|
"type": "object",
|
|
@@ -4077,7 +4236,8 @@
|
|
|
4077
4236
|
"type": "object",
|
|
4078
4237
|
"properties": {
|
|
4079
4238
|
"textStringValueDeprecated": {
|
|
4080
|
-
"type": "string"
|
|
4239
|
+
"type": "string",
|
|
4240
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
4081
4241
|
},
|
|
4082
4242
|
"text": {
|
|
4083
4243
|
"type": "string"
|
|
@@ -4099,10 +4259,12 @@
|
|
|
4099
4259
|
"type": "array",
|
|
4100
4260
|
"items": {
|
|
4101
4261
|
"type": "string"
|
|
4102
|
-
}
|
|
4262
|
+
},
|
|
4263
|
+
"title": "初始群成员id"
|
|
4103
4264
|
},
|
|
4104
4265
|
"topic": {
|
|
4105
|
-
"type": "string"
|
|
4266
|
+
"type": "string",
|
|
4267
|
+
"title": "群名称"
|
|
4106
4268
|
}
|
|
4107
4269
|
}
|
|
4108
4270
|
},
|
|
@@ -4127,38 +4289,47 @@
|
|
|
4127
4289
|
"type": "string"
|
|
4128
4290
|
},
|
|
4129
4291
|
"inviterId": {
|
|
4130
|
-
"type": "string"
|
|
4292
|
+
"type": "string",
|
|
4293
|
+
"title": "邀请者id"
|
|
4131
4294
|
},
|
|
4132
4295
|
"topic": {
|
|
4133
|
-
"type": "string"
|
|
4296
|
+
"type": "string",
|
|
4297
|
+
"title": "群名称"
|
|
4134
4298
|
},
|
|
4135
4299
|
"memberCount": {
|
|
4136
4300
|
"type": "integer",
|
|
4137
|
-
"format": "int32"
|
|
4301
|
+
"format": "int32",
|
|
4302
|
+
"title": "群成员数量"
|
|
4138
4303
|
},
|
|
4139
4304
|
"memberIds": {
|
|
4140
4305
|
"type": "array",
|
|
4141
4306
|
"items": {
|
|
4142
4307
|
"type": "string"
|
|
4143
|
-
}
|
|
4308
|
+
},
|
|
4309
|
+
"title": "群成员id列表"
|
|
4144
4310
|
},
|
|
4145
4311
|
"timestampUint64Deprecated": {
|
|
4146
4312
|
"type": "string",
|
|
4147
4313
|
"format": "uint64",
|
|
4314
|
+
"description": "Deprecated: will be removed after Dec 31, 2022",
|
|
4148
4315
|
"title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
|
|
4149
4316
|
},
|
|
4150
4317
|
"avatar": {
|
|
4151
|
-
"type": "string"
|
|
4318
|
+
"type": "string",
|
|
4319
|
+
"title": "群头像"
|
|
4152
4320
|
},
|
|
4153
4321
|
"invitation": {
|
|
4154
|
-
"type": "string"
|
|
4322
|
+
"type": "string",
|
|
4323
|
+
"title": "在企微中为群邀请的链接地址"
|
|
4155
4324
|
},
|
|
4156
4325
|
"receiverId": {
|
|
4157
|
-
"type": "string"
|
|
4326
|
+
"type": "string",
|
|
4327
|
+
"title": "收到群邀请的成员id"
|
|
4158
4328
|
},
|
|
4159
4329
|
"receiveTime": {
|
|
4160
4330
|
"type": "string",
|
|
4161
|
-
"format": "date-time"
|
|
4331
|
+
"format": "date-time",
|
|
4332
|
+
"title": "时间戳"
|
|
4162
4333
|
}
|
|
4163
4334
|
}
|
|
4164
4335
|
},
|
|
@@ -4191,16 +4362,20 @@
|
|
|
4191
4362
|
"type": "string"
|
|
4192
4363
|
},
|
|
4193
4364
|
"roomAlias": {
|
|
4194
|
-
"type": "string"
|
|
4365
|
+
"type": "string",
|
|
4366
|
+
"title": "联系人在群内的别名(群备注)"
|
|
4195
4367
|
},
|
|
4196
4368
|
"inviterId": {
|
|
4197
|
-
"type": "string"
|
|
4369
|
+
"type": "string",
|
|
4370
|
+
"title": "邀请者id"
|
|
4198
4371
|
},
|
|
4199
4372
|
"avatar": {
|
|
4200
|
-
"type": "string"
|
|
4373
|
+
"type": "string",
|
|
4374
|
+
"title": "头像"
|
|
4201
4375
|
},
|
|
4202
4376
|
"name": {
|
|
4203
|
-
"type": "string"
|
|
4377
|
+
"type": "string",
|
|
4378
|
+
"title": "名称"
|
|
4204
4379
|
},
|
|
4205
4380
|
"additionalInfo": {
|
|
4206
4381
|
"type": "string"
|
|
@@ -4214,28 +4389,34 @@
|
|
|
4214
4389
|
"type": "string"
|
|
4215
4390
|
},
|
|
4216
4391
|
"topic": {
|
|
4217
|
-
"type": "string"
|
|
4392
|
+
"type": "string",
|
|
4393
|
+
"title": "群名称"
|
|
4218
4394
|
},
|
|
4219
4395
|
"avatar": {
|
|
4220
|
-
"type": "string"
|
|
4396
|
+
"type": "string",
|
|
4397
|
+
"title": "群头像"
|
|
4221
4398
|
},
|
|
4222
4399
|
"ownerId": {
|
|
4223
|
-
"type": "string"
|
|
4400
|
+
"type": "string",
|
|
4401
|
+
"title": "群主id"
|
|
4224
4402
|
},
|
|
4225
4403
|
"adminIds": {
|
|
4226
4404
|
"type": "array",
|
|
4227
4405
|
"items": {
|
|
4228
4406
|
"type": "string"
|
|
4229
|
-
}
|
|
4407
|
+
},
|
|
4408
|
+
"title": "群管理员id列表"
|
|
4230
4409
|
},
|
|
4231
4410
|
"memberIds": {
|
|
4232
4411
|
"type": "array",
|
|
4233
4412
|
"items": {
|
|
4234
4413
|
"type": "string"
|
|
4235
|
-
}
|
|
4414
|
+
},
|
|
4415
|
+
"title": "群成员id列表"
|
|
4236
4416
|
},
|
|
4237
4417
|
"handle": {
|
|
4238
|
-
"type": "string"
|
|
4418
|
+
"type": "string",
|
|
4419
|
+
"title": "IM内部id,企微中为群的chat_id"
|
|
4239
4420
|
},
|
|
4240
4421
|
"additionalInfo": {
|
|
4241
4422
|
"type": "string"
|
|
@@ -4257,7 +4438,8 @@
|
|
|
4257
4438
|
"type": "object",
|
|
4258
4439
|
"properties": {
|
|
4259
4440
|
"topicStringValueDeprecated": {
|
|
4260
|
-
"type": "string"
|
|
4441
|
+
"type": "string",
|
|
4442
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
4261
4443
|
},
|
|
4262
4444
|
"topic": {
|
|
4263
4445
|
"type": "string"
|
|
@@ -4287,13 +4469,15 @@
|
|
|
4287
4469
|
"type": "array",
|
|
4288
4470
|
"items": {
|
|
4289
4471
|
"type": "string"
|
|
4290
|
-
}
|
|
4472
|
+
},
|
|
4473
|
+
"title": "要打的标签的id列表"
|
|
4291
4474
|
},
|
|
4292
4475
|
"contactIds": {
|
|
4293
4476
|
"type": "array",
|
|
4294
4477
|
"items": {
|
|
4295
4478
|
"type": "string"
|
|
4296
|
-
}
|
|
4479
|
+
},
|
|
4480
|
+
"title": "要打标签的联系人id列表"
|
|
4297
4481
|
}
|
|
4298
4482
|
}
|
|
4299
4483
|
},
|
|
@@ -4417,10 +4601,12 @@
|
|
|
4417
4601
|
"type": "string"
|
|
4418
4602
|
},
|
|
4419
4603
|
"name": {
|
|
4420
|
-
"type": "string"
|
|
4604
|
+
"type": "string",
|
|
4605
|
+
"title": "标签名"
|
|
4421
4606
|
},
|
|
4422
4607
|
"groupId": {
|
|
4423
|
-
"type": "string"
|
|
4608
|
+
"type": "string",
|
|
4609
|
+
"title": "所属标签组的id,可为空"
|
|
4424
4610
|
},
|
|
4425
4611
|
"type": {
|
|
4426
4612
|
"$ref": "#/definitions/puppetTagType"
|
|
@@ -4502,7 +4688,8 @@
|
|
|
4502
4688
|
"PERSONAL",
|
|
4503
4689
|
"CORPORATION"
|
|
4504
4690
|
],
|
|
4505
|
-
"default": "Unspecific"
|
|
4691
|
+
"default": "Unspecific",
|
|
4692
|
+
"title": "- PERSONAL: 个人标签\n - CORPORATION: 企业标签"
|
|
4506
4693
|
},
|
|
4507
4694
|
"puppetTapType": {
|
|
4508
4695
|
"type": "string",
|
|
@@ -4533,16 +4720,20 @@
|
|
|
4533
4720
|
"type": "object",
|
|
4534
4721
|
"properties": {
|
|
4535
4722
|
"description": {
|
|
4536
|
-
"type": "string"
|
|
4723
|
+
"type": "string",
|
|
4724
|
+
"title": "描述"
|
|
4537
4725
|
},
|
|
4538
4726
|
"thumbnailUrl": {
|
|
4539
|
-
"type": "string"
|
|
4727
|
+
"type": "string",
|
|
4728
|
+
"title": "缩略图地址"
|
|
4540
4729
|
},
|
|
4541
4730
|
"title": {
|
|
4542
|
-
"type": "string"
|
|
4731
|
+
"type": "string",
|
|
4732
|
+
"title": "标题"
|
|
4543
4733
|
},
|
|
4544
4734
|
"url": {
|
|
4545
|
-
"type": "string"
|
|
4735
|
+
"type": "string",
|
|
4736
|
+
"title": "文章地址"
|
|
4546
4737
|
}
|
|
4547
4738
|
}
|
|
4548
4739
|
},
|