@juzi/wechaty-grpc 1.0.27 → 1.0.28
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/out/wechaty/puppet.openapi.yaml +220 -2
- package/dist/cjs/out/wechaty/puppet.swagger.json +282 -127
- package/dist/cjs/src/package-json.js +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/out/wechaty/puppet.openapi.yaml +220 -2
- package/dist/esm/out/wechaty/puppet.swagger.json +282 -127
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet.openapi.yaml +220 -2
- package/out/wechaty/puppet.swagger.json +282 -127
- 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.28",
|
|
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"
|
|
@@ -1752,7 +1773,7 @@
|
|
|
1752
1773
|
},
|
|
1753
1774
|
{
|
|
1754
1775
|
"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",
|
|
1776
|
+
"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
1777
|
"in": "query",
|
|
1757
1778
|
"required": false,
|
|
1758
1779
|
"type": "string"
|
|
@@ -1937,12 +1958,14 @@
|
|
|
1937
1958
|
},
|
|
1938
1959
|
{
|
|
1939
1960
|
"name": "contactId",
|
|
1961
|
+
"description": "被邀请联系人id",
|
|
1940
1962
|
"in": "path",
|
|
1941
1963
|
"required": true,
|
|
1942
1964
|
"type": "string"
|
|
1943
1965
|
},
|
|
1944
1966
|
{
|
|
1945
1967
|
"name": "inviteOnly",
|
|
1968
|
+
"description": "不明确,目前没见到使用这个的地方",
|
|
1946
1969
|
"in": "query",
|
|
1947
1970
|
"required": false,
|
|
1948
1971
|
"type": "boolean"
|
|
@@ -1979,6 +2002,7 @@
|
|
|
1979
2002
|
},
|
|
1980
2003
|
{
|
|
1981
2004
|
"name": "textStringValueDeprecated",
|
|
2005
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
1982
2006
|
"in": "query",
|
|
1983
2007
|
"required": false,
|
|
1984
2008
|
"type": "string"
|
|
@@ -2025,12 +2049,14 @@
|
|
|
2025
2049
|
"type": "object",
|
|
2026
2050
|
"properties": {
|
|
2027
2051
|
"textStringValueDeprecated": {
|
|
2028
|
-
"type": "string"
|
|
2052
|
+
"type": "string",
|
|
2053
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
2029
2054
|
},
|
|
2030
2055
|
"text": {
|
|
2031
2056
|
"type": "string"
|
|
2032
2057
|
}
|
|
2033
|
-
}
|
|
2058
|
+
},
|
|
2059
|
+
"title": "群公告"
|
|
2034
2060
|
}
|
|
2035
2061
|
}
|
|
2036
2062
|
],
|
|
@@ -2191,6 +2217,7 @@
|
|
|
2191
2217
|
},
|
|
2192
2218
|
{
|
|
2193
2219
|
"name": "contactId",
|
|
2220
|
+
"description": "Deprecated, will be removed after bot updated",
|
|
2194
2221
|
"in": "path",
|
|
2195
2222
|
"required": true,
|
|
2196
2223
|
"type": "string"
|
|
@@ -2335,6 +2362,7 @@
|
|
|
2335
2362
|
},
|
|
2336
2363
|
{
|
|
2337
2364
|
"name": "topicStringValueDeprecated",
|
|
2365
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
2338
2366
|
"in": "query",
|
|
2339
2367
|
"required": false,
|
|
2340
2368
|
"type": "string"
|
|
@@ -3045,7 +3073,7 @@
|
|
|
3045
3073
|
"parameters": [
|
|
3046
3074
|
{
|
|
3047
3075
|
"name": "body",
|
|
3048
|
-
"description": " (streaming inputs)",
|
|
3076
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed. (streaming inputs)",
|
|
3049
3077
|
"in": "body",
|
|
3050
3078
|
"required": true,
|
|
3051
3079
|
"schema": {
|
|
@@ -3073,29 +3101,37 @@
|
|
|
3073
3101
|
"type": "object",
|
|
3074
3102
|
"properties": {
|
|
3075
3103
|
"avatar": {
|
|
3076
|
-
"type": "string"
|
|
3104
|
+
"type": "string",
|
|
3105
|
+
"title": "头像"
|
|
3077
3106
|
},
|
|
3078
3107
|
"coverUrl": {
|
|
3079
|
-
"type": "string"
|
|
3108
|
+
"type": "string",
|
|
3109
|
+
"title": "封面地址"
|
|
3080
3110
|
},
|
|
3081
3111
|
"desc": {
|
|
3082
|
-
"type": "string"
|
|
3112
|
+
"type": "string",
|
|
3113
|
+
"title": "描述"
|
|
3083
3114
|
},
|
|
3084
3115
|
"extras": {
|
|
3085
|
-
"type": "string"
|
|
3116
|
+
"type": "string",
|
|
3117
|
+
"title": "额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。"
|
|
3086
3118
|
},
|
|
3087
3119
|
"feedType": {
|
|
3088
3120
|
"type": "integer",
|
|
3089
|
-
"format": "int32"
|
|
3121
|
+
"format": "int32",
|
|
3122
|
+
"title": "暂不明确含义,目前请固定传4"
|
|
3090
3123
|
},
|
|
3091
3124
|
"nickname": {
|
|
3092
|
-
"type": "string"
|
|
3125
|
+
"type": "string",
|
|
3126
|
+
"title": "用户名"
|
|
3093
3127
|
},
|
|
3094
3128
|
"thumbUrl": {
|
|
3095
|
-
"type": "string"
|
|
3129
|
+
"type": "string",
|
|
3130
|
+
"title": "缩略图地址"
|
|
3096
3131
|
},
|
|
3097
3132
|
"url": {
|
|
3098
|
-
"type": "string"
|
|
3133
|
+
"type": "string",
|
|
3134
|
+
"title": "视频号地址"
|
|
3099
3135
|
}
|
|
3100
3136
|
}
|
|
3101
3137
|
},
|
|
@@ -3103,7 +3139,8 @@
|
|
|
3103
3139
|
"type": "object",
|
|
3104
3140
|
"properties": {
|
|
3105
3141
|
"aliasStringValueDeprecated": {
|
|
3106
|
-
"type": "string"
|
|
3142
|
+
"type": "string",
|
|
3143
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3107
3144
|
},
|
|
3108
3145
|
"alias": {
|
|
3109
3146
|
"type": "string"
|
|
@@ -3114,7 +3151,8 @@
|
|
|
3114
3151
|
"type": "object",
|
|
3115
3152
|
"properties": {
|
|
3116
3153
|
"fileboxStringValueDeprecated": {
|
|
3117
|
-
"type": "string"
|
|
3154
|
+
"type": "string",
|
|
3155
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
3118
3156
|
},
|
|
3119
3157
|
"fileBox": {
|
|
3120
3158
|
"type": "string"
|
|
@@ -3134,7 +3172,9 @@
|
|
|
3134
3172
|
"CONTACT_GENDER_MALE",
|
|
3135
3173
|
"CONTACT_GENDER_FEMALE"
|
|
3136
3174
|
],
|
|
3137
|
-
"default": "CONTACT_GENDER_UNSPECIFIED"
|
|
3175
|
+
"default": "CONTACT_GENDER_UNSPECIFIED",
|
|
3176
|
+
"description": "- CONTACT_GENDER_UNSPECIFIED: 不明确\n - CONTACT_GENDER_MALE: 男\n - CONTACT_GENDER_FEMALE: 女",
|
|
3177
|
+
"title": "性别枚举"
|
|
3138
3178
|
},
|
|
3139
3179
|
"puppetContactListResponse": {
|
|
3140
3180
|
"type": "object",
|
|
@@ -3154,68 +3194,86 @@
|
|
|
3154
3194
|
"type": "string"
|
|
3155
3195
|
},
|
|
3156
3196
|
"gender": {
|
|
3157
|
-
"$ref": "#/definitions/puppetContactGender"
|
|
3197
|
+
"$ref": "#/definitions/puppetContactGender",
|
|
3198
|
+
"title": "性别"
|
|
3158
3199
|
},
|
|
3159
3200
|
"type": {
|
|
3160
|
-
"$ref": "#/definitions/puppetContactType"
|
|
3201
|
+
"$ref": "#/definitions/puppetContactType",
|
|
3202
|
+
"title": "类型"
|
|
3161
3203
|
},
|
|
3162
3204
|
"name": {
|
|
3163
|
-
"type": "string"
|
|
3205
|
+
"type": "string",
|
|
3206
|
+
"title": "姓名"
|
|
3164
3207
|
},
|
|
3165
3208
|
"avatar": {
|
|
3166
|
-
"type": "string"
|
|
3209
|
+
"type": "string",
|
|
3210
|
+
"title": "头像"
|
|
3167
3211
|
},
|
|
3168
3212
|
"address": {
|
|
3169
|
-
"type": "string"
|
|
3213
|
+
"type": "string",
|
|
3214
|
+
"title": "地址"
|
|
3170
3215
|
},
|
|
3171
3216
|
"alias": {
|
|
3172
|
-
"type": "string"
|
|
3217
|
+
"type": "string",
|
|
3218
|
+
"title": "别名,即备注"
|
|
3173
3219
|
},
|
|
3174
3220
|
"city": {
|
|
3175
|
-
"type": "string"
|
|
3221
|
+
"type": "string",
|
|
3222
|
+
"title": "城市"
|
|
3176
3223
|
},
|
|
3177
3224
|
"friend": {
|
|
3178
|
-
"type": "boolean"
|
|
3225
|
+
"type": "boolean",
|
|
3226
|
+
"title": "是否为好友"
|
|
3179
3227
|
},
|
|
3180
3228
|
"province": {
|
|
3181
|
-
"type": "string"
|
|
3229
|
+
"type": "string",
|
|
3230
|
+
"title": "省份"
|
|
3182
3231
|
},
|
|
3183
3232
|
"signature": {
|
|
3184
|
-
"type": "string"
|
|
3233
|
+
"type": "string",
|
|
3234
|
+
"title": "签名"
|
|
3185
3235
|
},
|
|
3186
3236
|
"star": {
|
|
3187
|
-
"type": "boolean"
|
|
3237
|
+
"type": "boolean",
|
|
3238
|
+
"title": "是否为特别好友"
|
|
3188
3239
|
},
|
|
3189
3240
|
"weixin": {
|
|
3190
3241
|
"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"
|
|
3242
|
+
"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
3243
|
},
|
|
3193
3244
|
"corporation": {
|
|
3194
|
-
"type": "string"
|
|
3245
|
+
"type": "string",
|
|
3246
|
+
"title": "企业"
|
|
3195
3247
|
},
|
|
3196
3248
|
"title": {
|
|
3197
|
-
"type": "string"
|
|
3249
|
+
"type": "string",
|
|
3250
|
+
"title": "头衔"
|
|
3198
3251
|
},
|
|
3199
3252
|
"description": {
|
|
3200
|
-
"type": "string"
|
|
3253
|
+
"type": "string",
|
|
3254
|
+
"title": "描述"
|
|
3201
3255
|
},
|
|
3202
3256
|
"coworker": {
|
|
3203
|
-
"type": "boolean"
|
|
3257
|
+
"type": "boolean",
|
|
3258
|
+
"title": "是否为同事"
|
|
3204
3259
|
},
|
|
3205
3260
|
"phones": {
|
|
3206
3261
|
"type": "array",
|
|
3207
3262
|
"items": {
|
|
3208
3263
|
"type": "string"
|
|
3209
|
-
}
|
|
3264
|
+
},
|
|
3265
|
+
"title": "电话号码,企微中最多5个"
|
|
3210
3266
|
},
|
|
3211
3267
|
"additionalInfo": {
|
|
3212
|
-
"type": "string"
|
|
3268
|
+
"type": "string",
|
|
3269
|
+
"title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
|
|
3213
3270
|
},
|
|
3214
3271
|
"tagIds": {
|
|
3215
3272
|
"type": "array",
|
|
3216
3273
|
"items": {
|
|
3217
3274
|
"type": "string"
|
|
3218
|
-
}
|
|
3275
|
+
},
|
|
3276
|
+
"title": "标签(的id)"
|
|
3219
3277
|
}
|
|
3220
3278
|
}
|
|
3221
3279
|
},
|
|
@@ -3260,7 +3318,9 @@
|
|
|
3260
3318
|
"CONTACT_TYPE_OFFICIAL",
|
|
3261
3319
|
"CONTACT_TYPE_CORPORATION"
|
|
3262
3320
|
],
|
|
3263
|
-
"default": "CONTACT_TYPE_UNSPECIFIED"
|
|
3321
|
+
"default": "CONTACT_TYPE_UNSPECIFIED",
|
|
3322
|
+
"description": "- CONTACT_TYPE_UNSPECIFIED: 不明确\n - CONTACT_TYPE_PERSONAL: 个微联系人\n - CONTACT_TYPE_OFFICIAL: 公众号\n - CONTACT_TYPE_CORPORATION: 企微联系人",
|
|
3323
|
+
"title": "类型枚举"
|
|
3264
3324
|
},
|
|
3265
3325
|
"puppetConversationReadResponse": {
|
|
3266
3326
|
"type": "object"
|
|
@@ -3282,7 +3342,8 @@
|
|
|
3282
3342
|
}
|
|
3283
3343
|
},
|
|
3284
3344
|
"puppetDingResponse": {
|
|
3285
|
-
"type": "object"
|
|
3345
|
+
"type": "object",
|
|
3346
|
+
"title": "*\n Ding has no return value\n Puppet should emit a `ding` event when it receives a `ding()` call"
|
|
3286
3347
|
},
|
|
3287
3348
|
"puppetDirtyPayloadResponse": {
|
|
3288
3349
|
"type": "object"
|
|
@@ -3304,6 +3365,7 @@
|
|
|
3304
3365
|
},
|
|
3305
3366
|
"payload": {
|
|
3306
3367
|
"type": "string",
|
|
3368
|
+
"description": "JSON.stringify({ ... })",
|
|
3307
3369
|
"title": "TODO: Huan(202002) consider to use a PB Map?"
|
|
3308
3370
|
}
|
|
3309
3371
|
}
|
|
@@ -3344,9 +3406,11 @@
|
|
|
3344
3406
|
"title": "oneof payload {"
|
|
3345
3407
|
},
|
|
3346
3408
|
"name": {
|
|
3347
|
-
"type": "string"
|
|
3409
|
+
"type": "string",
|
|
3410
|
+
"title": "}"
|
|
3348
3411
|
}
|
|
3349
|
-
}
|
|
3412
|
+
},
|
|
3413
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
3350
3414
|
},
|
|
3351
3415
|
"puppetFriendshipAcceptResponse": {
|
|
3352
3416
|
"type": "object"
|
|
@@ -3361,22 +3425,28 @@
|
|
|
3361
3425
|
"type": "string"
|
|
3362
3426
|
},
|
|
3363
3427
|
"contactId": {
|
|
3364
|
-
"type": "string"
|
|
3428
|
+
"type": "string",
|
|
3429
|
+
"title": "加好友的联系人id"
|
|
3365
3430
|
},
|
|
3366
3431
|
"hello": {
|
|
3367
|
-
"type": "string"
|
|
3432
|
+
"type": "string",
|
|
3433
|
+
"title": "加好友的打招呼消息"
|
|
3368
3434
|
},
|
|
3369
3435
|
"type": {
|
|
3370
|
-
"$ref": "#/definitions/puppetFriendshipType"
|
|
3436
|
+
"$ref": "#/definitions/puppetFriendshipType",
|
|
3437
|
+
"title": "好友事件类型"
|
|
3371
3438
|
},
|
|
3372
3439
|
"stranger": {
|
|
3373
|
-
"type": "string"
|
|
3440
|
+
"type": "string",
|
|
3441
|
+
"title": "不明确含义,wxwork中未使用"
|
|
3374
3442
|
},
|
|
3375
3443
|
"ticket": {
|
|
3376
|
-
"type": "string"
|
|
3444
|
+
"type": "string",
|
|
3445
|
+
"title": "个微遗留字段,wxwork中会传corp_id"
|
|
3377
3446
|
},
|
|
3378
3447
|
"scene": {
|
|
3379
|
-
"$ref": "#/definitions/puppetFriendshipSceneType"
|
|
3448
|
+
"$ref": "#/definitions/puppetFriendshipSceneType",
|
|
3449
|
+
"title": "加好友的场景(例如通过名片添加、通过群添加等),wxwork未使用"
|
|
3380
3450
|
}
|
|
3381
3451
|
}
|
|
3382
3452
|
},
|
|
@@ -3396,7 +3466,8 @@
|
|
|
3396
3466
|
"FRIENDSHIP_SCENE_TYPE_SHAKING",
|
|
3397
3467
|
"FRIENDSHIP_SCENE_TYPE_QRCODE"
|
|
3398
3468
|
],
|
|
3399
|
-
"default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED"
|
|
3469
|
+
"default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED",
|
|
3470
|
+
"title": "事件场景 wxwork中未使用"
|
|
3400
3471
|
},
|
|
3401
3472
|
"puppetFriendshipSearchHandleRequest": {
|
|
3402
3473
|
"type": "object",
|
|
@@ -3413,6 +3484,7 @@
|
|
|
3413
3484
|
"properties": {
|
|
3414
3485
|
"contactIdStringValueDeprecated": {
|
|
3415
3486
|
"type": "string",
|
|
3487
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
3416
3488
|
"title": "nullable"
|
|
3417
3489
|
},
|
|
3418
3490
|
"contactId": {
|
|
@@ -3425,6 +3497,7 @@
|
|
|
3425
3497
|
"properties": {
|
|
3426
3498
|
"contactIdStringValueDeprecated": {
|
|
3427
3499
|
"type": "string",
|
|
3500
|
+
"description": "DEPRECATED, will be removed after Dec 31, 2022",
|
|
3428
3501
|
"title": "nullable"
|
|
3429
3502
|
},
|
|
3430
3503
|
"contactId": {
|
|
@@ -3442,7 +3515,9 @@
|
|
|
3442
3515
|
"FRIENDSHIP_TYPE_DELETE",
|
|
3443
3516
|
"FRIENDSHIP_TYPE_REMOVED"
|
|
3444
3517
|
],
|
|
3445
|
-
"default": "FRIENDSHIP_TYPE_UNSPECIFIED"
|
|
3518
|
+
"default": "FRIENDSHIP_TYPE_UNSPECIFIED",
|
|
3519
|
+
"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: 被删除——被他人删除好友时触发",
|
|
3520
|
+
"title": "事件类型"
|
|
3446
3521
|
},
|
|
3447
3522
|
"puppetImageType": {
|
|
3448
3523
|
"type": "string",
|
|
@@ -3459,21 +3534,26 @@
|
|
|
3459
3534
|
"properties": {
|
|
3460
3535
|
"accuracy": {
|
|
3461
3536
|
"type": "number",
|
|
3462
|
-
"format": "float"
|
|
3537
|
+
"format": "float",
|
|
3538
|
+
"title": "精确度,默认为15"
|
|
3463
3539
|
},
|
|
3464
3540
|
"address": {
|
|
3465
|
-
"type": "string"
|
|
3541
|
+
"type": "string",
|
|
3542
|
+
"title": "地址,xx省xx市xx区xx路xx号"
|
|
3466
3543
|
},
|
|
3467
3544
|
"latitude": {
|
|
3468
3545
|
"type": "number",
|
|
3469
|
-
"format": "double"
|
|
3546
|
+
"format": "double",
|
|
3547
|
+
"title": "纬度,北纬为正"
|
|
3470
3548
|
},
|
|
3471
3549
|
"longitude": {
|
|
3472
3550
|
"type": "number",
|
|
3473
|
-
"format": "double"
|
|
3551
|
+
"format": "double",
|
|
3552
|
+
"title": "经度,东经为正"
|
|
3474
3553
|
},
|
|
3475
3554
|
"name": {
|
|
3476
|
-
"type": "string"
|
|
3555
|
+
"type": "string",
|
|
3556
|
+
"title": "地址名,例如xx大厦"
|
|
3477
3557
|
}
|
|
3478
3558
|
}
|
|
3479
3559
|
},
|
|
@@ -3533,6 +3613,7 @@
|
|
|
3533
3613
|
"properties": {
|
|
3534
3614
|
"idStringValueDeprecated": {
|
|
3535
3615
|
"type": "string",
|
|
3616
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3536
3617
|
"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
3618
|
},
|
|
3538
3619
|
"id": {
|
|
@@ -3547,7 +3628,8 @@
|
|
|
3547
3628
|
"type": "string"
|
|
3548
3629
|
},
|
|
3549
3630
|
"type": {
|
|
3550
|
-
"$ref": "#/definitions/puppetImageType"
|
|
3631
|
+
"$ref": "#/definitions/puppetImageType",
|
|
3632
|
+
"title": "获取图片的类型(缩略图、原图)"
|
|
3551
3633
|
}
|
|
3552
3634
|
}
|
|
3553
3635
|
},
|
|
@@ -3591,6 +3673,7 @@
|
|
|
3591
3673
|
"properties": {
|
|
3592
3674
|
"miniProgramDeprecated": {
|
|
3593
3675
|
"type": "string",
|
|
3676
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3594
3677
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3595
3678
|
},
|
|
3596
3679
|
"miniProgram": {
|
|
@@ -3605,10 +3688,12 @@
|
|
|
3605
3688
|
"type": "string"
|
|
3606
3689
|
},
|
|
3607
3690
|
"filename": {
|
|
3608
|
-
"type": "string"
|
|
3691
|
+
"type": "string",
|
|
3692
|
+
"title": "文件名"
|
|
3609
3693
|
},
|
|
3610
3694
|
"text": {
|
|
3611
|
-
"type": "string"
|
|
3695
|
+
"type": "string",
|
|
3696
|
+
"title": "文本内容"
|
|
3612
3697
|
},
|
|
3613
3698
|
"timestampDeprecated": {
|
|
3614
3699
|
"type": "string",
|
|
@@ -3616,29 +3701,36 @@
|
|
|
3616
3701
|
"title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
|
|
3617
3702
|
},
|
|
3618
3703
|
"type": {
|
|
3619
|
-
"$ref": "#/definitions/puppetMessageType"
|
|
3704
|
+
"$ref": "#/definitions/puppetMessageType",
|
|
3705
|
+
"title": "类型"
|
|
3620
3706
|
},
|
|
3621
3707
|
"talkerId": {
|
|
3622
|
-
"type": "string"
|
|
3708
|
+
"type": "string",
|
|
3709
|
+
"title": "发送者id"
|
|
3623
3710
|
},
|
|
3624
3711
|
"roomId": {
|
|
3625
|
-
"type": "string"
|
|
3712
|
+
"type": "string",
|
|
3713
|
+
"title": "群聊id"
|
|
3626
3714
|
},
|
|
3627
3715
|
"listenerId": {
|
|
3628
|
-
"type": "string"
|
|
3716
|
+
"type": "string",
|
|
3717
|
+
"title": "接受者id"
|
|
3629
3718
|
},
|
|
3630
3719
|
"mentionIds": {
|
|
3631
3720
|
"type": "array",
|
|
3632
3721
|
"items": {
|
|
3633
3722
|
"type": "string"
|
|
3634
|
-
}
|
|
3723
|
+
},
|
|
3724
|
+
"title": "群消息@人的id列表"
|
|
3635
3725
|
},
|
|
3636
3726
|
"receiveTime": {
|
|
3637
3727
|
"type": "string",
|
|
3638
|
-
"format": "date-time"
|
|
3728
|
+
"format": "date-time",
|
|
3729
|
+
"title": "收到消息时间"
|
|
3639
3730
|
},
|
|
3640
3731
|
"quoteId": {
|
|
3641
|
-
"type": "string"
|
|
3732
|
+
"type": "string",
|
|
3733
|
+
"title": "被引用的消息id"
|
|
3642
3734
|
}
|
|
3643
3735
|
}
|
|
3644
3736
|
},
|
|
@@ -3671,6 +3763,7 @@
|
|
|
3671
3763
|
"properties": {
|
|
3672
3764
|
"idStringValueDeprecated": {
|
|
3673
3765
|
"type": "string",
|
|
3766
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3674
3767
|
"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
3768
|
},
|
|
3676
3769
|
"id": {
|
|
@@ -3682,10 +3775,12 @@
|
|
|
3682
3775
|
"type": "object",
|
|
3683
3776
|
"properties": {
|
|
3684
3777
|
"conversationId": {
|
|
3685
|
-
"type": "string"
|
|
3778
|
+
"type": "string",
|
|
3779
|
+
"title": "对话id"
|
|
3686
3780
|
},
|
|
3687
3781
|
"fileBox": {
|
|
3688
|
-
"type": "string"
|
|
3782
|
+
"type": "string",
|
|
3783
|
+
"title": "发送文件的fileBox.toJSON()"
|
|
3689
3784
|
}
|
|
3690
3785
|
}
|
|
3691
3786
|
},
|
|
@@ -3694,6 +3789,7 @@
|
|
|
3694
3789
|
"properties": {
|
|
3695
3790
|
"idStringValueDeprecated": {
|
|
3696
3791
|
"type": "string",
|
|
3792
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3697
3793
|
"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
3794
|
},
|
|
3699
3795
|
"id": {
|
|
@@ -3709,15 +3805,18 @@
|
|
|
3709
3805
|
"title": "oneof payload {"
|
|
3710
3806
|
},
|
|
3711
3807
|
"fileBoxChunk": {
|
|
3712
|
-
"$ref": "#/definitions/puppetFileBoxChunk"
|
|
3808
|
+
"$ref": "#/definitions/puppetFileBoxChunk",
|
|
3809
|
+
"title": "};"
|
|
3713
3810
|
}
|
|
3714
|
-
}
|
|
3811
|
+
},
|
|
3812
|
+
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
3715
3813
|
},
|
|
3716
3814
|
"puppetMessageSendFileStreamResponse": {
|
|
3717
3815
|
"type": "object",
|
|
3718
3816
|
"properties": {
|
|
3719
3817
|
"idStringValueDeprecated": {
|
|
3720
3818
|
"type": "string",
|
|
3819
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3721
3820
|
"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
3821
|
},
|
|
3723
3822
|
"id": {
|
|
@@ -3739,6 +3838,7 @@
|
|
|
3739
3838
|
"properties": {
|
|
3740
3839
|
"idStringValueDeprecated": {
|
|
3741
3840
|
"type": "string",
|
|
3841
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3742
3842
|
"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
3843
|
},
|
|
3744
3844
|
"id": {
|
|
@@ -3751,6 +3851,7 @@
|
|
|
3751
3851
|
"properties": {
|
|
3752
3852
|
"idStringValueDeprecated": {
|
|
3753
3853
|
"type": "string",
|
|
3854
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3754
3855
|
"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
3856
|
},
|
|
3756
3857
|
"id": {
|
|
@@ -3763,6 +3864,7 @@
|
|
|
3763
3864
|
"properties": {
|
|
3764
3865
|
"idStringValueDeprecated": {
|
|
3765
3866
|
"type": "string",
|
|
3867
|
+
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
3766
3868
|
"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
3869
|
},
|
|
3768
3870
|
"id": {
|
|
@@ -3793,13 +3895,16 @@
|
|
|
3793
3895
|
"MESSAGE_TYPE_CHANNEL",
|
|
3794
3896
|
"MESSAGE_TYPE_SYSTEM"
|
|
3795
3897
|
],
|
|
3796
|
-
"default": "MESSAGE_TYPE_UNSPECIFIED"
|
|
3898
|
+
"default": "MESSAGE_TYPE_UNSPECIFIED",
|
|
3899
|
+
"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: 系统消息",
|
|
3900
|
+
"title": "消息类型"
|
|
3797
3901
|
},
|
|
3798
3902
|
"puppetMessageUrlResponse": {
|
|
3799
3903
|
"type": "object",
|
|
3800
3904
|
"properties": {
|
|
3801
3905
|
"urlLinkDeprecated": {
|
|
3802
3906
|
"type": "string",
|
|
3907
|
+
"description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
|
|
3803
3908
|
"title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
|
|
3804
3909
|
},
|
|
3805
3910
|
"urlLink": {
|
|
@@ -3811,31 +3916,40 @@
|
|
|
3811
3916
|
"type": "object",
|
|
3812
3917
|
"properties": {
|
|
3813
3918
|
"appid": {
|
|
3814
|
-
"type": "string"
|
|
3919
|
+
"type": "string",
|
|
3920
|
+
"title": "appId,形式如wx4ff94de0d8038c25"
|
|
3815
3921
|
},
|
|
3816
3922
|
"description": {
|
|
3817
|
-
"type": "string"
|
|
3923
|
+
"type": "string",
|
|
3924
|
+
"title": "描述(副标题)"
|
|
3818
3925
|
},
|
|
3819
3926
|
"pagePath": {
|
|
3820
|
-
"type": "string"
|
|
3927
|
+
"type": "string",
|
|
3928
|
+
"title": "访问路径"
|
|
3821
3929
|
},
|
|
3822
3930
|
"iconUrl": {
|
|
3823
|
-
"type": "string"
|
|
3931
|
+
"type": "string",
|
|
3932
|
+
"title": "图标路径"
|
|
3824
3933
|
},
|
|
3825
3934
|
"shareId": {
|
|
3826
|
-
"type": "string"
|
|
3935
|
+
"type": "string",
|
|
3936
|
+
"title": "发送小程序的用户id,可不填"
|
|
3827
3937
|
},
|
|
3828
3938
|
"thumbUrl": {
|
|
3829
|
-
"type": "string"
|
|
3939
|
+
"type": "string",
|
|
3940
|
+
"title": "缩略图路径"
|
|
3830
3941
|
},
|
|
3831
3942
|
"title": {
|
|
3832
|
-
"type": "string"
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"title": "标题"
|
|
3833
3945
|
},
|
|
3834
3946
|
"username": {
|
|
3835
|
-
"type": "string"
|
|
3947
|
+
"type": "string",
|
|
3948
|
+
"title": "关联公众号id,形式gh_69105b80ea75@app"
|
|
3836
3949
|
},
|
|
3837
3950
|
"thumbKey": {
|
|
3838
|
-
"type": "string"
|
|
3951
|
+
"type": "string",
|
|
3952
|
+
"title": "缩略图的key,可不填"
|
|
3839
3953
|
}
|
|
3840
3954
|
}
|
|
3841
3955
|
},
|
|
@@ -3906,10 +4020,12 @@
|
|
|
3906
4020
|
"type": "object",
|
|
3907
4021
|
"properties": {
|
|
3908
4022
|
"parentId": {
|
|
3909
|
-
"type": "string"
|
|
4023
|
+
"type": "string",
|
|
4024
|
+
"title": "转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id"
|
|
3910
4025
|
},
|
|
3911
4026
|
"rootId": {
|
|
3912
|
-
"type": "string"
|
|
4027
|
+
"type": "string",
|
|
4028
|
+
"title": "转发的根id,评论时应该是朋友圈的id"
|
|
3913
4029
|
},
|
|
3914
4030
|
"type": {
|
|
3915
4031
|
"$ref": "#/definitions/puppetPostType"
|
|
@@ -3961,10 +4077,12 @@
|
|
|
3961
4077
|
"type": "object",
|
|
3962
4078
|
"properties": {
|
|
3963
4079
|
"parentId": {
|
|
3964
|
-
"type": "string"
|
|
4080
|
+
"type": "string",
|
|
4081
|
+
"title": "转发的上一级id"
|
|
3965
4082
|
},
|
|
3966
4083
|
"rootId": {
|
|
3967
|
-
"type": "string"
|
|
4084
|
+
"type": "string",
|
|
4085
|
+
"title": "转发的根id"
|
|
3968
4086
|
},
|
|
3969
4087
|
"type": {
|
|
3970
4088
|
"$ref": "#/definitions/puppetPostType"
|
|
@@ -4004,13 +4122,15 @@
|
|
|
4004
4122
|
"$ref": "#/definitions/puppetSayableType"
|
|
4005
4123
|
},
|
|
4006
4124
|
"id": {
|
|
4007
|
-
"type": "string"
|
|
4125
|
+
"type": "string",
|
|
4126
|
+
"title": "服务器端获取的Post只传回id,异步进行获取"
|
|
4008
4127
|
},
|
|
4009
4128
|
"text": {
|
|
4010
4129
|
"type": "string"
|
|
4011
4130
|
},
|
|
4012
4131
|
"fileBox": {
|
|
4013
|
-
"type": "string"
|
|
4132
|
+
"type": "string",
|
|
4133
|
+
"title": "FileBox.toJSON()"
|
|
4014
4134
|
},
|
|
4015
4135
|
"urlLink": {
|
|
4016
4136
|
"$ref": "#/definitions/puppetUrlLinkPayload"
|
|
@@ -4022,7 +4142,8 @@
|
|
|
4022
4142
|
"type": "array",
|
|
4023
4143
|
"items": {
|
|
4024
4144
|
"type": "string"
|
|
4025
|
-
}
|
|
4145
|
+
},
|
|
4146
|
+
"title": "文本类型的sayable可传,朋友圈暂不支持"
|
|
4026
4147
|
}
|
|
4027
4148
|
}
|
|
4028
4149
|
},
|
|
@@ -4036,7 +4157,8 @@
|
|
|
4036
4157
|
"$ref": "#/definitions/puppetTapType"
|
|
4037
4158
|
},
|
|
4038
4159
|
"tap": {
|
|
4039
|
-
"type": "boolean"
|
|
4160
|
+
"type": "boolean",
|
|
4161
|
+
"title": "点赞还是取消"
|
|
4040
4162
|
}
|
|
4041
4163
|
}
|
|
4042
4164
|
},
|
|
@@ -4056,7 +4178,8 @@
|
|
|
4056
4178
|
"POST_TYPE_CHANNEL",
|
|
4057
4179
|
"POST_TYPE_MESSAGE"
|
|
4058
4180
|
],
|
|
4059
|
-
"default": "POST_TYPE_UNSPECIFIED"
|
|
4181
|
+
"default": "POST_TYPE_UNSPECIFIED",
|
|
4182
|
+
"title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息"
|
|
4060
4183
|
},
|
|
4061
4184
|
"puppetReferrer": {
|
|
4062
4185
|
"type": "object",
|
|
@@ -4077,7 +4200,8 @@
|
|
|
4077
4200
|
"type": "object",
|
|
4078
4201
|
"properties": {
|
|
4079
4202
|
"textStringValueDeprecated": {
|
|
4080
|
-
"type": "string"
|
|
4203
|
+
"type": "string",
|
|
4204
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
4081
4205
|
},
|
|
4082
4206
|
"text": {
|
|
4083
4207
|
"type": "string"
|
|
@@ -4099,10 +4223,12 @@
|
|
|
4099
4223
|
"type": "array",
|
|
4100
4224
|
"items": {
|
|
4101
4225
|
"type": "string"
|
|
4102
|
-
}
|
|
4226
|
+
},
|
|
4227
|
+
"title": "初始群成员id"
|
|
4103
4228
|
},
|
|
4104
4229
|
"topic": {
|
|
4105
|
-
"type": "string"
|
|
4230
|
+
"type": "string",
|
|
4231
|
+
"title": "群名称"
|
|
4106
4232
|
}
|
|
4107
4233
|
}
|
|
4108
4234
|
},
|
|
@@ -4127,38 +4253,47 @@
|
|
|
4127
4253
|
"type": "string"
|
|
4128
4254
|
},
|
|
4129
4255
|
"inviterId": {
|
|
4130
|
-
"type": "string"
|
|
4256
|
+
"type": "string",
|
|
4257
|
+
"title": "邀请者id"
|
|
4131
4258
|
},
|
|
4132
4259
|
"topic": {
|
|
4133
|
-
"type": "string"
|
|
4260
|
+
"type": "string",
|
|
4261
|
+
"title": "群名称"
|
|
4134
4262
|
},
|
|
4135
4263
|
"memberCount": {
|
|
4136
4264
|
"type": "integer",
|
|
4137
|
-
"format": "int32"
|
|
4265
|
+
"format": "int32",
|
|
4266
|
+
"title": "群成员数量"
|
|
4138
4267
|
},
|
|
4139
4268
|
"memberIds": {
|
|
4140
4269
|
"type": "array",
|
|
4141
4270
|
"items": {
|
|
4142
4271
|
"type": "string"
|
|
4143
|
-
}
|
|
4272
|
+
},
|
|
4273
|
+
"title": "群成员id列表"
|
|
4144
4274
|
},
|
|
4145
4275
|
"timestampUint64Deprecated": {
|
|
4146
4276
|
"type": "string",
|
|
4147
4277
|
"format": "uint64",
|
|
4278
|
+
"description": "Deprecated: will be removed after Dec 31, 2022",
|
|
4148
4279
|
"title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
|
|
4149
4280
|
},
|
|
4150
4281
|
"avatar": {
|
|
4151
|
-
"type": "string"
|
|
4282
|
+
"type": "string",
|
|
4283
|
+
"title": "群头像"
|
|
4152
4284
|
},
|
|
4153
4285
|
"invitation": {
|
|
4154
|
-
"type": "string"
|
|
4286
|
+
"type": "string",
|
|
4287
|
+
"title": "在企微中为群邀请的链接地址"
|
|
4155
4288
|
},
|
|
4156
4289
|
"receiverId": {
|
|
4157
|
-
"type": "string"
|
|
4290
|
+
"type": "string",
|
|
4291
|
+
"title": "收到群邀请的成员id"
|
|
4158
4292
|
},
|
|
4159
4293
|
"receiveTime": {
|
|
4160
4294
|
"type": "string",
|
|
4161
|
-
"format": "date-time"
|
|
4295
|
+
"format": "date-time",
|
|
4296
|
+
"title": "时间戳"
|
|
4162
4297
|
}
|
|
4163
4298
|
}
|
|
4164
4299
|
},
|
|
@@ -4191,16 +4326,20 @@
|
|
|
4191
4326
|
"type": "string"
|
|
4192
4327
|
},
|
|
4193
4328
|
"roomAlias": {
|
|
4194
|
-
"type": "string"
|
|
4329
|
+
"type": "string",
|
|
4330
|
+
"title": "联系人在群内的别名(群备注)"
|
|
4195
4331
|
},
|
|
4196
4332
|
"inviterId": {
|
|
4197
|
-
"type": "string"
|
|
4333
|
+
"type": "string",
|
|
4334
|
+
"title": "邀请者id"
|
|
4198
4335
|
},
|
|
4199
4336
|
"avatar": {
|
|
4200
|
-
"type": "string"
|
|
4337
|
+
"type": "string",
|
|
4338
|
+
"title": "头像"
|
|
4201
4339
|
},
|
|
4202
4340
|
"name": {
|
|
4203
|
-
"type": "string"
|
|
4341
|
+
"type": "string",
|
|
4342
|
+
"title": "名称"
|
|
4204
4343
|
},
|
|
4205
4344
|
"additionalInfo": {
|
|
4206
4345
|
"type": "string"
|
|
@@ -4214,28 +4353,34 @@
|
|
|
4214
4353
|
"type": "string"
|
|
4215
4354
|
},
|
|
4216
4355
|
"topic": {
|
|
4217
|
-
"type": "string"
|
|
4356
|
+
"type": "string",
|
|
4357
|
+
"title": "群名称"
|
|
4218
4358
|
},
|
|
4219
4359
|
"avatar": {
|
|
4220
|
-
"type": "string"
|
|
4360
|
+
"type": "string",
|
|
4361
|
+
"title": "群头像"
|
|
4221
4362
|
},
|
|
4222
4363
|
"ownerId": {
|
|
4223
|
-
"type": "string"
|
|
4364
|
+
"type": "string",
|
|
4365
|
+
"title": "群主id"
|
|
4224
4366
|
},
|
|
4225
4367
|
"adminIds": {
|
|
4226
4368
|
"type": "array",
|
|
4227
4369
|
"items": {
|
|
4228
4370
|
"type": "string"
|
|
4229
|
-
}
|
|
4371
|
+
},
|
|
4372
|
+
"title": "群管理员id列表"
|
|
4230
4373
|
},
|
|
4231
4374
|
"memberIds": {
|
|
4232
4375
|
"type": "array",
|
|
4233
4376
|
"items": {
|
|
4234
4377
|
"type": "string"
|
|
4235
|
-
}
|
|
4378
|
+
},
|
|
4379
|
+
"title": "群成员id列表"
|
|
4236
4380
|
},
|
|
4237
4381
|
"handle": {
|
|
4238
|
-
"type": "string"
|
|
4382
|
+
"type": "string",
|
|
4383
|
+
"title": "IM内部id,企微中为群的chat_id"
|
|
4239
4384
|
},
|
|
4240
4385
|
"additionalInfo": {
|
|
4241
4386
|
"type": "string"
|
|
@@ -4257,7 +4402,8 @@
|
|
|
4257
4402
|
"type": "object",
|
|
4258
4403
|
"properties": {
|
|
4259
4404
|
"topicStringValueDeprecated": {
|
|
4260
|
-
"type": "string"
|
|
4405
|
+
"type": "string",
|
|
4406
|
+
"title": "DEPRECATED, will be removed after Dec 31, 2022"
|
|
4261
4407
|
},
|
|
4262
4408
|
"topic": {
|
|
4263
4409
|
"type": "string"
|
|
@@ -4287,13 +4433,15 @@
|
|
|
4287
4433
|
"type": "array",
|
|
4288
4434
|
"items": {
|
|
4289
4435
|
"type": "string"
|
|
4290
|
-
}
|
|
4436
|
+
},
|
|
4437
|
+
"title": "要打的标签的id列表"
|
|
4291
4438
|
},
|
|
4292
4439
|
"contactIds": {
|
|
4293
4440
|
"type": "array",
|
|
4294
4441
|
"items": {
|
|
4295
4442
|
"type": "string"
|
|
4296
|
-
}
|
|
4443
|
+
},
|
|
4444
|
+
"title": "要打标签的联系人id列表"
|
|
4297
4445
|
}
|
|
4298
4446
|
}
|
|
4299
4447
|
},
|
|
@@ -4417,10 +4565,12 @@
|
|
|
4417
4565
|
"type": "string"
|
|
4418
4566
|
},
|
|
4419
4567
|
"name": {
|
|
4420
|
-
"type": "string"
|
|
4568
|
+
"type": "string",
|
|
4569
|
+
"title": "标签名"
|
|
4421
4570
|
},
|
|
4422
4571
|
"groupId": {
|
|
4423
|
-
"type": "string"
|
|
4572
|
+
"type": "string",
|
|
4573
|
+
"title": "所属标签组的id,可为空"
|
|
4424
4574
|
},
|
|
4425
4575
|
"type": {
|
|
4426
4576
|
"$ref": "#/definitions/puppetTagType"
|
|
@@ -4502,7 +4652,8 @@
|
|
|
4502
4652
|
"PERSONAL",
|
|
4503
4653
|
"CORPORATION"
|
|
4504
4654
|
],
|
|
4505
|
-
"default": "Unspecific"
|
|
4655
|
+
"default": "Unspecific",
|
|
4656
|
+
"title": "- PERSONAL: 个人标签\n - CORPORATION: 企业标签"
|
|
4506
4657
|
},
|
|
4507
4658
|
"puppetTapType": {
|
|
4508
4659
|
"type": "string",
|
|
@@ -4533,16 +4684,20 @@
|
|
|
4533
4684
|
"type": "object",
|
|
4534
4685
|
"properties": {
|
|
4535
4686
|
"description": {
|
|
4536
|
-
"type": "string"
|
|
4687
|
+
"type": "string",
|
|
4688
|
+
"title": "描述"
|
|
4537
4689
|
},
|
|
4538
4690
|
"thumbnailUrl": {
|
|
4539
|
-
"type": "string"
|
|
4691
|
+
"type": "string",
|
|
4692
|
+
"title": "缩略图地址"
|
|
4540
4693
|
},
|
|
4541
4694
|
"title": {
|
|
4542
|
-
"type": "string"
|
|
4695
|
+
"type": "string",
|
|
4696
|
+
"title": "标题"
|
|
4543
4697
|
},
|
|
4544
4698
|
"url": {
|
|
4545
|
-
"type": "string"
|
|
4699
|
+
"type": "string",
|
|
4700
|
+
"title": "文章地址"
|
|
4546
4701
|
}
|
|
4547
4702
|
}
|
|
4548
4703
|
},
|