@juzi/wechaty-grpc 1.0.26 → 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.
@@ -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.26",
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"
@@ -460,6 +464,7 @@
460
464
  "PAYLOAD_TYPE_ROOM",
461
465
  "PAYLOAD_TYPE_ROOM_MEMBER",
462
466
  "PAYLOAD_TYPE_FRIENDSHIP",
467
+ "PAYLOAD_TYPE_POST",
463
468
  "PAYLOAD_TYPE_TAG",
464
469
  "PAYLOAD_TYPE_TAG_GROUP"
465
470
  ],
@@ -617,12 +622,14 @@
617
622
  "parameters": [
618
623
  {
619
624
  "name": "conversationId",
625
+ "description": "对话id",
620
626
  "in": "path",
621
627
  "required": true,
622
628
  "type": "string"
623
629
  },
624
630
  {
625
631
  "name": "messageId",
632
+ "description": "要转发的消息id",
626
633
  "in": "path",
627
634
  "required": true,
628
635
  "type": "string"
@@ -696,6 +703,7 @@
696
703
  "parameters": [
697
704
  {
698
705
  "name": "conversationId",
706
+ "description": "对话id",
699
707
  "in": "path",
700
708
  "required": true,
701
709
  "type": "string"
@@ -709,10 +717,12 @@
709
717
  "properties": {
710
718
  "miniProgramDeprecated": {
711
719
  "type": "string",
720
+ "description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
712
721
  "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
713
722
  },
714
723
  "miniProgram": {
715
- "$ref": "#/definitions/puppetMiniProgramPayload"
724
+ "$ref": "#/definitions/puppetMiniProgramPayload",
725
+ "title": "小程序payload"
716
726
  }
717
727
  }
718
728
  }
@@ -743,6 +753,7 @@
743
753
  "parameters": [
744
754
  {
745
755
  "name": "conversationId",
756
+ "description": "对话id",
746
757
  "in": "path",
747
758
  "required": true,
748
759
  "type": "string"
@@ -755,18 +766,22 @@
755
766
  "type": "object",
756
767
  "properties": {
757
768
  "text": {
758
- "type": "string"
769
+ "type": "string",
770
+ "title": "文本内容"
759
771
  },
760
772
  "mentionalIds": {
761
773
  "type": "array",
762
774
  "items": {
763
775
  "type": "string"
764
- }
776
+ },
777
+ "title": "@人id列表"
765
778
  },
766
779
  "quoteId": {
767
- "type": "string"
780
+ "type": "string",
781
+ "title": "引用消息的id"
768
782
  }
769
- }
783
+ },
784
+ "title": "发文本消息"
770
785
  }
771
786
  }
772
787
  ],
@@ -795,6 +810,7 @@
795
810
  "parameters": [
796
811
  {
797
812
  "name": "conversationId",
813
+ "description": "对话id",
798
814
  "in": "path",
799
815
  "required": true,
800
816
  "type": "string"
@@ -808,10 +824,12 @@
808
824
  "properties": {
809
825
  "urlLinkDeprecated": {
810
826
  "type": "string",
827
+ "description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
811
828
  "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
812
829
  },
813
830
  "urlLink": {
814
- "$ref": "#/definitions/puppetUrlLinkPayload"
831
+ "$ref": "#/definitions/puppetUrlLinkPayload",
832
+ "title": "链接payload"
815
833
  }
816
834
  }
817
835
  }
@@ -1014,10 +1032,12 @@
1014
1032
  "type": "string"
1015
1033
  },
1016
1034
  "sourceRoomIdStringValueDeprecated": {
1017
- "type": "string"
1035
+ "type": "string",
1036
+ "title": "Deprecated: will be removed after Dec 31, 2022"
1018
1037
  },
1019
1038
  "sourceContactIdStringValueDeprecated": {
1020
- "type": "string"
1039
+ "type": "string",
1040
+ "title": "Deprecated: will be removed after Dec 31, 2022"
1021
1041
  },
1022
1042
  "referrer": {
1023
1043
  "$ref": "#/definitions/puppetReferrer"
@@ -1120,7 +1140,7 @@
1120
1140
  },
1121
1141
  {
1122
1142
  "name": "payloadStringValueDeprecated",
1123
- "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",
1124
1144
  "in": "query",
1125
1145
  "required": false,
1126
1146
  "type": "string"
@@ -1173,6 +1193,7 @@
1173
1193
  "PAYLOAD_TYPE_ROOM",
1174
1194
  "PAYLOAD_TYPE_ROOM_MEMBER",
1175
1195
  "PAYLOAD_TYPE_FRIENDSHIP",
1196
+ "PAYLOAD_TYPE_POST",
1176
1197
  "PAYLOAD_TYPE_TAG",
1177
1198
  "PAYLOAD_TYPE_TAG_GROUP"
1178
1199
  ],
@@ -1332,6 +1353,7 @@
1332
1353
  "PAYLOAD_TYPE_ROOM",
1333
1354
  "PAYLOAD_TYPE_ROOM_MEMBER",
1334
1355
  "PAYLOAD_TYPE_FRIENDSHIP",
1356
+ "PAYLOAD_TYPE_POST",
1335
1357
  "PAYLOAD_TYPE_TAG",
1336
1358
  "PAYLOAD_TYPE_TAG_GROUP"
1337
1359
  ],
@@ -1513,12 +1535,14 @@
1513
1535
  "parameters": [
1514
1536
  {
1515
1537
  "name": "messageId",
1538
+ "description": "要转发的消息id",
1516
1539
  "in": "path",
1517
1540
  "required": true,
1518
1541
  "type": "string"
1519
1542
  },
1520
1543
  {
1521
1544
  "name": "conversationId",
1545
+ "description": "对话id",
1522
1546
  "in": "path",
1523
1547
  "required": true,
1524
1548
  "type": "string"
@@ -1749,7 +1773,7 @@
1749
1773
  },
1750
1774
  {
1751
1775
  "name": "payloadStringValueDeprecated",
1752
- "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",
1753
1777
  "in": "query",
1754
1778
  "required": false,
1755
1779
  "type": "string"
@@ -1934,12 +1958,14 @@
1934
1958
  },
1935
1959
  {
1936
1960
  "name": "contactId",
1961
+ "description": "被邀请联系人id",
1937
1962
  "in": "path",
1938
1963
  "required": true,
1939
1964
  "type": "string"
1940
1965
  },
1941
1966
  {
1942
1967
  "name": "inviteOnly",
1968
+ "description": "不明确,目前没见到使用这个的地方",
1943
1969
  "in": "query",
1944
1970
  "required": false,
1945
1971
  "type": "boolean"
@@ -1976,6 +2002,7 @@
1976
2002
  },
1977
2003
  {
1978
2004
  "name": "textStringValueDeprecated",
2005
+ "description": "DEPRECATED, will be removed after Dec 31, 2022",
1979
2006
  "in": "query",
1980
2007
  "required": false,
1981
2008
  "type": "string"
@@ -2022,12 +2049,14 @@
2022
2049
  "type": "object",
2023
2050
  "properties": {
2024
2051
  "textStringValueDeprecated": {
2025
- "type": "string"
2052
+ "type": "string",
2053
+ "title": "DEPRECATED, will be removed after Dec 31, 2022"
2026
2054
  },
2027
2055
  "text": {
2028
2056
  "type": "string"
2029
2057
  }
2030
- }
2058
+ },
2059
+ "title": "群公告"
2031
2060
  }
2032
2061
  }
2033
2062
  ],
@@ -2102,6 +2131,7 @@
2102
2131
  "PAYLOAD_TYPE_ROOM",
2103
2132
  "PAYLOAD_TYPE_ROOM_MEMBER",
2104
2133
  "PAYLOAD_TYPE_FRIENDSHIP",
2134
+ "PAYLOAD_TYPE_POST",
2105
2135
  "PAYLOAD_TYPE_TAG",
2106
2136
  "PAYLOAD_TYPE_TAG_GROUP"
2107
2137
  ],
@@ -2149,6 +2179,7 @@
2149
2179
  "PAYLOAD_TYPE_ROOM",
2150
2180
  "PAYLOAD_TYPE_ROOM_MEMBER",
2151
2181
  "PAYLOAD_TYPE_FRIENDSHIP",
2182
+ "PAYLOAD_TYPE_POST",
2152
2183
  "PAYLOAD_TYPE_TAG",
2153
2184
  "PAYLOAD_TYPE_TAG_GROUP"
2154
2185
  ],
@@ -2186,6 +2217,7 @@
2186
2217
  },
2187
2218
  {
2188
2219
  "name": "contactId",
2220
+ "description": "Deprecated, will be removed after bot updated",
2189
2221
  "in": "path",
2190
2222
  "required": true,
2191
2223
  "type": "string"
@@ -2330,6 +2362,7 @@
2330
2362
  },
2331
2363
  {
2332
2364
  "name": "topicStringValueDeprecated",
2365
+ "description": "DEPRECATED, will be removed after Dec 31, 2022",
2333
2366
  "in": "query",
2334
2367
  "required": false,
2335
2368
  "type": "string"
@@ -3040,7 +3073,7 @@
3040
3073
  "parameters": [
3041
3074
  {
3042
3075
  "name": "body",
3043
- "description": " (streaming inputs)",
3076
+ "description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed. (streaming inputs)",
3044
3077
  "in": "body",
3045
3078
  "required": true,
3046
3079
  "schema": {
@@ -3068,29 +3101,37 @@
3068
3101
  "type": "object",
3069
3102
  "properties": {
3070
3103
  "avatar": {
3071
- "type": "string"
3104
+ "type": "string",
3105
+ "title": "头像"
3072
3106
  },
3073
3107
  "coverUrl": {
3074
- "type": "string"
3108
+ "type": "string",
3109
+ "title": "封面地址"
3075
3110
  },
3076
3111
  "desc": {
3077
- "type": "string"
3112
+ "type": "string",
3113
+ "title": "描述"
3078
3114
  },
3079
3115
  "extras": {
3080
- "type": "string"
3116
+ "type": "string",
3117
+ "title": "额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。"
3081
3118
  },
3082
3119
  "feedType": {
3083
3120
  "type": "integer",
3084
- "format": "int32"
3121
+ "format": "int32",
3122
+ "title": "暂不明确含义,目前请固定传4"
3085
3123
  },
3086
3124
  "nickname": {
3087
- "type": "string"
3125
+ "type": "string",
3126
+ "title": "用户名"
3088
3127
  },
3089
3128
  "thumbUrl": {
3090
- "type": "string"
3129
+ "type": "string",
3130
+ "title": "缩略图地址"
3091
3131
  },
3092
3132
  "url": {
3093
- "type": "string"
3133
+ "type": "string",
3134
+ "title": "视频号地址"
3094
3135
  }
3095
3136
  }
3096
3137
  },
@@ -3098,7 +3139,8 @@
3098
3139
  "type": "object",
3099
3140
  "properties": {
3100
3141
  "aliasStringValueDeprecated": {
3101
- "type": "string"
3142
+ "type": "string",
3143
+ "title": "DEPRECATED, will be removed after Dec 31, 2022"
3102
3144
  },
3103
3145
  "alias": {
3104
3146
  "type": "string"
@@ -3109,7 +3151,8 @@
3109
3151
  "type": "object",
3110
3152
  "properties": {
3111
3153
  "fileboxStringValueDeprecated": {
3112
- "type": "string"
3154
+ "type": "string",
3155
+ "title": "DEPRECATED, will be removed after Dec 31, 2022"
3113
3156
  },
3114
3157
  "fileBox": {
3115
3158
  "type": "string"
@@ -3129,7 +3172,9 @@
3129
3172
  "CONTACT_GENDER_MALE",
3130
3173
  "CONTACT_GENDER_FEMALE"
3131
3174
  ],
3132
- "default": "CONTACT_GENDER_UNSPECIFIED"
3175
+ "default": "CONTACT_GENDER_UNSPECIFIED",
3176
+ "description": "- CONTACT_GENDER_UNSPECIFIED: 不明确\n - CONTACT_GENDER_MALE: 男\n - CONTACT_GENDER_FEMALE: 女",
3177
+ "title": "性别枚举"
3133
3178
  },
3134
3179
  "puppetContactListResponse": {
3135
3180
  "type": "object",
@@ -3149,68 +3194,86 @@
3149
3194
  "type": "string"
3150
3195
  },
3151
3196
  "gender": {
3152
- "$ref": "#/definitions/puppetContactGender"
3197
+ "$ref": "#/definitions/puppetContactGender",
3198
+ "title": "性别"
3153
3199
  },
3154
3200
  "type": {
3155
- "$ref": "#/definitions/puppetContactType"
3201
+ "$ref": "#/definitions/puppetContactType",
3202
+ "title": "类型"
3156
3203
  },
3157
3204
  "name": {
3158
- "type": "string"
3205
+ "type": "string",
3206
+ "title": "姓名"
3159
3207
  },
3160
3208
  "avatar": {
3161
- "type": "string"
3209
+ "type": "string",
3210
+ "title": "头像"
3162
3211
  },
3163
3212
  "address": {
3164
- "type": "string"
3213
+ "type": "string",
3214
+ "title": "地址"
3165
3215
  },
3166
3216
  "alias": {
3167
- "type": "string"
3217
+ "type": "string",
3218
+ "title": "别名,即备注"
3168
3219
  },
3169
3220
  "city": {
3170
- "type": "string"
3221
+ "type": "string",
3222
+ "title": "城市"
3171
3223
  },
3172
3224
  "friend": {
3173
- "type": "boolean"
3225
+ "type": "boolean",
3226
+ "title": "是否为好友"
3174
3227
  },
3175
3228
  "province": {
3176
- "type": "string"
3229
+ "type": "string",
3230
+ "title": "省份"
3177
3231
  },
3178
3232
  "signature": {
3179
- "type": "string"
3233
+ "type": "string",
3234
+ "title": "签名"
3180
3235
  },
3181
3236
  "star": {
3182
- "type": "boolean"
3237
+ "type": "boolean",
3238
+ "title": "是否为特别好友"
3183
3239
  },
3184
3240
  "weixin": {
3185
3241
  "type": "string",
3186
- "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"
3187
3243
  },
3188
3244
  "corporation": {
3189
- "type": "string"
3245
+ "type": "string",
3246
+ "title": "企业"
3190
3247
  },
3191
3248
  "title": {
3192
- "type": "string"
3249
+ "type": "string",
3250
+ "title": "头衔"
3193
3251
  },
3194
3252
  "description": {
3195
- "type": "string"
3253
+ "type": "string",
3254
+ "title": "描述"
3196
3255
  },
3197
3256
  "coworker": {
3198
- "type": "boolean"
3257
+ "type": "boolean",
3258
+ "title": "是否为同事"
3199
3259
  },
3200
3260
  "phones": {
3201
3261
  "type": "array",
3202
3262
  "items": {
3203
3263
  "type": "string"
3204
- }
3264
+ },
3265
+ "title": "电话号码,企微中最多5个"
3205
3266
  },
3206
3267
  "additionalInfo": {
3207
- "type": "string"
3268
+ "type": "string",
3269
+ "title": "额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。"
3208
3270
  },
3209
3271
  "tagIds": {
3210
3272
  "type": "array",
3211
3273
  "items": {
3212
3274
  "type": "string"
3213
- }
3275
+ },
3276
+ "title": "标签(的id)"
3214
3277
  }
3215
3278
  }
3216
3279
  },
@@ -3255,7 +3318,9 @@
3255
3318
  "CONTACT_TYPE_OFFICIAL",
3256
3319
  "CONTACT_TYPE_CORPORATION"
3257
3320
  ],
3258
- "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": "类型枚举"
3259
3324
  },
3260
3325
  "puppetConversationReadResponse": {
3261
3326
  "type": "object"
@@ -3277,7 +3342,8 @@
3277
3342
  }
3278
3343
  },
3279
3344
  "puppetDingResponse": {
3280
- "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"
3281
3347
  },
3282
3348
  "puppetDirtyPayloadResponse": {
3283
3349
  "type": "object"
@@ -3299,6 +3365,7 @@
3299
3365
  },
3300
3366
  "payload": {
3301
3367
  "type": "string",
3368
+ "description": "JSON.stringify({ ... })",
3302
3369
  "title": "TODO: Huan(202002) consider to use a PB Map?"
3303
3370
  }
3304
3371
  }
@@ -3339,9 +3406,11 @@
3339
3406
  "title": "oneof payload {"
3340
3407
  },
3341
3408
  "name": {
3342
- "type": "string"
3409
+ "type": "string",
3410
+ "title": "}"
3343
3411
  }
3344
- }
3412
+ },
3413
+ "description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
3345
3414
  },
3346
3415
  "puppetFriendshipAcceptResponse": {
3347
3416
  "type": "object"
@@ -3356,22 +3425,28 @@
3356
3425
  "type": "string"
3357
3426
  },
3358
3427
  "contactId": {
3359
- "type": "string"
3428
+ "type": "string",
3429
+ "title": "加好友的联系人id"
3360
3430
  },
3361
3431
  "hello": {
3362
- "type": "string"
3432
+ "type": "string",
3433
+ "title": "加好友的打招呼消息"
3363
3434
  },
3364
3435
  "type": {
3365
- "$ref": "#/definitions/puppetFriendshipType"
3436
+ "$ref": "#/definitions/puppetFriendshipType",
3437
+ "title": "好友事件类型"
3366
3438
  },
3367
3439
  "stranger": {
3368
- "type": "string"
3440
+ "type": "string",
3441
+ "title": "不明确含义,wxwork中未使用"
3369
3442
  },
3370
3443
  "ticket": {
3371
- "type": "string"
3444
+ "type": "string",
3445
+ "title": "个微遗留字段,wxwork中会传corp_id"
3372
3446
  },
3373
3447
  "scene": {
3374
- "$ref": "#/definitions/puppetFriendshipSceneType"
3448
+ "$ref": "#/definitions/puppetFriendshipSceneType",
3449
+ "title": "加好友的场景(例如通过名片添加、通过群添加等),wxwork未使用"
3375
3450
  }
3376
3451
  }
3377
3452
  },
@@ -3391,7 +3466,8 @@
3391
3466
  "FRIENDSHIP_SCENE_TYPE_SHAKING",
3392
3467
  "FRIENDSHIP_SCENE_TYPE_QRCODE"
3393
3468
  ],
3394
- "default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED"
3469
+ "default": "FRIENDSHIP_SCENE_TYPE_UNSPECIFIED",
3470
+ "title": "事件场景 wxwork中未使用"
3395
3471
  },
3396
3472
  "puppetFriendshipSearchHandleRequest": {
3397
3473
  "type": "object",
@@ -3408,6 +3484,7 @@
3408
3484
  "properties": {
3409
3485
  "contactIdStringValueDeprecated": {
3410
3486
  "type": "string",
3487
+ "description": "DEPRECATED, will be removed after Dec 31, 2022",
3411
3488
  "title": "nullable"
3412
3489
  },
3413
3490
  "contactId": {
@@ -3420,6 +3497,7 @@
3420
3497
  "properties": {
3421
3498
  "contactIdStringValueDeprecated": {
3422
3499
  "type": "string",
3500
+ "description": "DEPRECATED, will be removed after Dec 31, 2022",
3423
3501
  "title": "nullable"
3424
3502
  },
3425
3503
  "contactId": {
@@ -3437,7 +3515,9 @@
3437
3515
  "FRIENDSHIP_TYPE_DELETE",
3438
3516
  "FRIENDSHIP_TYPE_REMOVED"
3439
3517
  ],
3440
- "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": "事件类型"
3441
3521
  },
3442
3522
  "puppetImageType": {
3443
3523
  "type": "string",
@@ -3454,21 +3534,26 @@
3454
3534
  "properties": {
3455
3535
  "accuracy": {
3456
3536
  "type": "number",
3457
- "format": "float"
3537
+ "format": "float",
3538
+ "title": "精确度,默认为15"
3458
3539
  },
3459
3540
  "address": {
3460
- "type": "string"
3541
+ "type": "string",
3542
+ "title": "地址,xx省xx市xx区xx路xx号"
3461
3543
  },
3462
3544
  "latitude": {
3463
3545
  "type": "number",
3464
- "format": "double"
3546
+ "format": "double",
3547
+ "title": "纬度,北纬为正"
3465
3548
  },
3466
3549
  "longitude": {
3467
3550
  "type": "number",
3468
- "format": "double"
3551
+ "format": "double",
3552
+ "title": "经度,东经为正"
3469
3553
  },
3470
3554
  "name": {
3471
- "type": "string"
3555
+ "type": "string",
3556
+ "title": "地址名,例如xx大厦"
3472
3557
  }
3473
3558
  }
3474
3559
  },
@@ -3528,6 +3613,7 @@
3528
3613
  "properties": {
3529
3614
  "idStringValueDeprecated": {
3530
3615
  "type": "string",
3616
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3531
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"
3532
3618
  },
3533
3619
  "id": {
@@ -3542,7 +3628,8 @@
3542
3628
  "type": "string"
3543
3629
  },
3544
3630
  "type": {
3545
- "$ref": "#/definitions/puppetImageType"
3631
+ "$ref": "#/definitions/puppetImageType",
3632
+ "title": "获取图片的类型(缩略图、原图)"
3546
3633
  }
3547
3634
  }
3548
3635
  },
@@ -3586,6 +3673,7 @@
3586
3673
  "properties": {
3587
3674
  "miniProgramDeprecated": {
3588
3675
  "type": "string",
3676
+ "description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
3589
3677
  "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
3590
3678
  },
3591
3679
  "miniProgram": {
@@ -3600,10 +3688,12 @@
3600
3688
  "type": "string"
3601
3689
  },
3602
3690
  "filename": {
3603
- "type": "string"
3691
+ "type": "string",
3692
+ "title": "文件名"
3604
3693
  },
3605
3694
  "text": {
3606
- "type": "string"
3695
+ "type": "string",
3696
+ "title": "文本内容"
3607
3697
  },
3608
3698
  "timestampDeprecated": {
3609
3699
  "type": "string",
@@ -3611,29 +3701,36 @@
3611
3701
  "title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
3612
3702
  },
3613
3703
  "type": {
3614
- "$ref": "#/definitions/puppetMessageType"
3704
+ "$ref": "#/definitions/puppetMessageType",
3705
+ "title": "类型"
3615
3706
  },
3616
3707
  "talkerId": {
3617
- "type": "string"
3708
+ "type": "string",
3709
+ "title": "发送者id"
3618
3710
  },
3619
3711
  "roomId": {
3620
- "type": "string"
3712
+ "type": "string",
3713
+ "title": "群聊id"
3621
3714
  },
3622
3715
  "listenerId": {
3623
- "type": "string"
3716
+ "type": "string",
3717
+ "title": "接受者id"
3624
3718
  },
3625
3719
  "mentionIds": {
3626
3720
  "type": "array",
3627
3721
  "items": {
3628
3722
  "type": "string"
3629
- }
3723
+ },
3724
+ "title": "群消息@人的id列表"
3630
3725
  },
3631
3726
  "receiveTime": {
3632
3727
  "type": "string",
3633
- "format": "date-time"
3728
+ "format": "date-time",
3729
+ "title": "收到消息时间"
3634
3730
  },
3635
3731
  "quoteId": {
3636
- "type": "string"
3732
+ "type": "string",
3733
+ "title": "被引用的消息id"
3637
3734
  }
3638
3735
  }
3639
3736
  },
@@ -3666,6 +3763,7 @@
3666
3763
  "properties": {
3667
3764
  "idStringValueDeprecated": {
3668
3765
  "type": "string",
3766
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3669
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"
3670
3768
  },
3671
3769
  "id": {
@@ -3677,10 +3775,12 @@
3677
3775
  "type": "object",
3678
3776
  "properties": {
3679
3777
  "conversationId": {
3680
- "type": "string"
3778
+ "type": "string",
3779
+ "title": "对话id"
3681
3780
  },
3682
3781
  "fileBox": {
3683
- "type": "string"
3782
+ "type": "string",
3783
+ "title": "发送文件的fileBox.toJSON()"
3684
3784
  }
3685
3785
  }
3686
3786
  },
@@ -3689,6 +3789,7 @@
3689
3789
  "properties": {
3690
3790
  "idStringValueDeprecated": {
3691
3791
  "type": "string",
3792
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3692
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"
3693
3794
  },
3694
3795
  "id": {
@@ -3704,15 +3805,18 @@
3704
3805
  "title": "oneof payload {"
3705
3806
  },
3706
3807
  "fileBoxChunk": {
3707
- "$ref": "#/definitions/puppetFileBoxChunk"
3808
+ "$ref": "#/definitions/puppetFileBoxChunk",
3809
+ "title": "};"
3708
3810
  }
3709
- }
3811
+ },
3812
+ "description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
3710
3813
  },
3711
3814
  "puppetMessageSendFileStreamResponse": {
3712
3815
  "type": "object",
3713
3816
  "properties": {
3714
3817
  "idStringValueDeprecated": {
3715
3818
  "type": "string",
3819
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3716
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"
3717
3821
  },
3718
3822
  "id": {
@@ -3734,6 +3838,7 @@
3734
3838
  "properties": {
3735
3839
  "idStringValueDeprecated": {
3736
3840
  "type": "string",
3841
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3737
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"
3738
3843
  },
3739
3844
  "id": {
@@ -3746,6 +3851,7 @@
3746
3851
  "properties": {
3747
3852
  "idStringValueDeprecated": {
3748
3853
  "type": "string",
3854
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3749
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"
3750
3856
  },
3751
3857
  "id": {
@@ -3758,6 +3864,7 @@
3758
3864
  "properties": {
3759
3865
  "idStringValueDeprecated": {
3760
3866
  "type": "string",
3867
+ "description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
3761
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"
3762
3869
  },
3763
3870
  "id": {
@@ -3788,13 +3895,16 @@
3788
3895
  "MESSAGE_TYPE_CHANNEL",
3789
3896
  "MESSAGE_TYPE_SYSTEM"
3790
3897
  ],
3791
- "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": "消息类型"
3792
3901
  },
3793
3902
  "puppetMessageUrlResponse": {
3794
3903
  "type": "object",
3795
3904
  "properties": {
3796
3905
  "urlLinkDeprecated": {
3797
3906
  "type": "string",
3907
+ "description": "deprecated after Sep 31, 2021, remove compatible code after Dec 31, 2022",
3798
3908
  "title": "*\nHuan(202110): We should use payload instead of JSON.stringify string\n The compatible code will be removed after Dec 31, 2022"
3799
3909
  },
3800
3910
  "urlLink": {
@@ -3806,31 +3916,40 @@
3806
3916
  "type": "object",
3807
3917
  "properties": {
3808
3918
  "appid": {
3809
- "type": "string"
3919
+ "type": "string",
3920
+ "title": "appId,形式如wx4ff94de0d8038c25"
3810
3921
  },
3811
3922
  "description": {
3812
- "type": "string"
3923
+ "type": "string",
3924
+ "title": "描述(副标题)"
3813
3925
  },
3814
3926
  "pagePath": {
3815
- "type": "string"
3927
+ "type": "string",
3928
+ "title": "访问路径"
3816
3929
  },
3817
3930
  "iconUrl": {
3818
- "type": "string"
3931
+ "type": "string",
3932
+ "title": "图标路径"
3819
3933
  },
3820
3934
  "shareId": {
3821
- "type": "string"
3935
+ "type": "string",
3936
+ "title": "发送小程序的用户id,可不填"
3822
3937
  },
3823
3938
  "thumbUrl": {
3824
- "type": "string"
3939
+ "type": "string",
3940
+ "title": "缩略图路径"
3825
3941
  },
3826
3942
  "title": {
3827
- "type": "string"
3943
+ "type": "string",
3944
+ "title": "标题"
3828
3945
  },
3829
3946
  "username": {
3830
- "type": "string"
3947
+ "type": "string",
3948
+ "title": "关联公众号id,形式gh_69105b80ea75@app"
3831
3949
  },
3832
3950
  "thumbKey": {
3833
- "type": "string"
3951
+ "type": "string",
3952
+ "title": "缩略图的key,可不填"
3834
3953
  }
3835
3954
  }
3836
3955
  },
@@ -3891,6 +4010,7 @@
3891
4010
  "PAYLOAD_TYPE_ROOM",
3892
4011
  "PAYLOAD_TYPE_ROOM_MEMBER",
3893
4012
  "PAYLOAD_TYPE_FRIENDSHIP",
4013
+ "PAYLOAD_TYPE_POST",
3894
4014
  "PAYLOAD_TYPE_TAG",
3895
4015
  "PAYLOAD_TYPE_TAG_GROUP"
3896
4016
  ],
@@ -3900,10 +4020,12 @@
3900
4020
  "type": "object",
3901
4021
  "properties": {
3902
4022
  "parentId": {
3903
- "type": "string"
4023
+ "type": "string",
4024
+ "title": "转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id"
3904
4025
  },
3905
4026
  "rootId": {
3906
- "type": "string"
4027
+ "type": "string",
4028
+ "title": "转发的根id,评论时应该是朋友圈的id"
3907
4029
  },
3908
4030
  "type": {
3909
4031
  "$ref": "#/definitions/puppetPostType"
@@ -3955,10 +4077,12 @@
3955
4077
  "type": "object",
3956
4078
  "properties": {
3957
4079
  "parentId": {
3958
- "type": "string"
4080
+ "type": "string",
4081
+ "title": "转发的上一级id"
3959
4082
  },
3960
4083
  "rootId": {
3961
- "type": "string"
4084
+ "type": "string",
4085
+ "title": "转发的根id"
3962
4086
  },
3963
4087
  "type": {
3964
4088
  "$ref": "#/definitions/puppetPostType"
@@ -3998,13 +4122,15 @@
3998
4122
  "$ref": "#/definitions/puppetSayableType"
3999
4123
  },
4000
4124
  "id": {
4001
- "type": "string"
4125
+ "type": "string",
4126
+ "title": "服务器端获取的Post只传回id,异步进行获取"
4002
4127
  },
4003
4128
  "text": {
4004
4129
  "type": "string"
4005
4130
  },
4006
4131
  "fileBox": {
4007
- "type": "string"
4132
+ "type": "string",
4133
+ "title": "FileBox.toJSON()"
4008
4134
  },
4009
4135
  "urlLink": {
4010
4136
  "$ref": "#/definitions/puppetUrlLinkPayload"
@@ -4016,7 +4142,8 @@
4016
4142
  "type": "array",
4017
4143
  "items": {
4018
4144
  "type": "string"
4019
- }
4145
+ },
4146
+ "title": "文本类型的sayable可传,朋友圈暂不支持"
4020
4147
  }
4021
4148
  }
4022
4149
  },
@@ -4030,7 +4157,8 @@
4030
4157
  "$ref": "#/definitions/puppetTapType"
4031
4158
  },
4032
4159
  "tap": {
4033
- "type": "boolean"
4160
+ "type": "boolean",
4161
+ "title": "点赞还是取消"
4034
4162
  }
4035
4163
  }
4036
4164
  },
@@ -4050,7 +4178,8 @@
4050
4178
  "POST_TYPE_CHANNEL",
4051
4179
  "POST_TYPE_MESSAGE"
4052
4180
  ],
4053
- "default": "POST_TYPE_UNSPECIFIED"
4181
+ "default": "POST_TYPE_UNSPECIFIED",
4182
+ "title": "- POST_TYPE_MOMENT: 朋友圈\n - POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message\n - POST_TYPE_MESSAGE: 消息——富媒体消息"
4054
4183
  },
4055
4184
  "puppetReferrer": {
4056
4185
  "type": "object",
@@ -4071,7 +4200,8 @@
4071
4200
  "type": "object",
4072
4201
  "properties": {
4073
4202
  "textStringValueDeprecated": {
4074
- "type": "string"
4203
+ "type": "string",
4204
+ "title": "DEPRECATED, will be removed after Dec 31, 2022"
4075
4205
  },
4076
4206
  "text": {
4077
4207
  "type": "string"
@@ -4093,10 +4223,12 @@
4093
4223
  "type": "array",
4094
4224
  "items": {
4095
4225
  "type": "string"
4096
- }
4226
+ },
4227
+ "title": "初始群成员id"
4097
4228
  },
4098
4229
  "topic": {
4099
- "type": "string"
4230
+ "type": "string",
4231
+ "title": "群名称"
4100
4232
  }
4101
4233
  }
4102
4234
  },
@@ -4121,38 +4253,47 @@
4121
4253
  "type": "string"
4122
4254
  },
4123
4255
  "inviterId": {
4124
- "type": "string"
4256
+ "type": "string",
4257
+ "title": "邀请者id"
4125
4258
  },
4126
4259
  "topic": {
4127
- "type": "string"
4260
+ "type": "string",
4261
+ "title": "群名称"
4128
4262
  },
4129
4263
  "memberCount": {
4130
4264
  "type": "integer",
4131
- "format": "int32"
4265
+ "format": "int32",
4266
+ "title": "群成员数量"
4132
4267
  },
4133
4268
  "memberIds": {
4134
4269
  "type": "array",
4135
4270
  "items": {
4136
4271
  "type": "string"
4137
- }
4272
+ },
4273
+ "title": "群成员id列表"
4138
4274
  },
4139
4275
  "timestampUint64Deprecated": {
4140
4276
  "type": "string",
4141
4277
  "format": "uint64",
4278
+ "description": "Deprecated: will be removed after Dec 31, 2022",
4142
4279
  "title": "*\n@deprecated will be removed after Dec 31, 2022\n Huan(202109): use receive_time(10) instead"
4143
4280
  },
4144
4281
  "avatar": {
4145
- "type": "string"
4282
+ "type": "string",
4283
+ "title": "群头像"
4146
4284
  },
4147
4285
  "invitation": {
4148
- "type": "string"
4286
+ "type": "string",
4287
+ "title": "在企微中为群邀请的链接地址"
4149
4288
  },
4150
4289
  "receiverId": {
4151
- "type": "string"
4290
+ "type": "string",
4291
+ "title": "收到群邀请的成员id"
4152
4292
  },
4153
4293
  "receiveTime": {
4154
4294
  "type": "string",
4155
- "format": "date-time"
4295
+ "format": "date-time",
4296
+ "title": "时间戳"
4156
4297
  }
4157
4298
  }
4158
4299
  },
@@ -4185,16 +4326,20 @@
4185
4326
  "type": "string"
4186
4327
  },
4187
4328
  "roomAlias": {
4188
- "type": "string"
4329
+ "type": "string",
4330
+ "title": "联系人在群内的别名(群备注)"
4189
4331
  },
4190
4332
  "inviterId": {
4191
- "type": "string"
4333
+ "type": "string",
4334
+ "title": "邀请者id"
4192
4335
  },
4193
4336
  "avatar": {
4194
- "type": "string"
4337
+ "type": "string",
4338
+ "title": "头像"
4195
4339
  },
4196
4340
  "name": {
4197
- "type": "string"
4341
+ "type": "string",
4342
+ "title": "名称"
4198
4343
  },
4199
4344
  "additionalInfo": {
4200
4345
  "type": "string"
@@ -4208,28 +4353,34 @@
4208
4353
  "type": "string"
4209
4354
  },
4210
4355
  "topic": {
4211
- "type": "string"
4356
+ "type": "string",
4357
+ "title": "群名称"
4212
4358
  },
4213
4359
  "avatar": {
4214
- "type": "string"
4360
+ "type": "string",
4361
+ "title": "群头像"
4215
4362
  },
4216
4363
  "ownerId": {
4217
- "type": "string"
4364
+ "type": "string",
4365
+ "title": "群主id"
4218
4366
  },
4219
4367
  "adminIds": {
4220
4368
  "type": "array",
4221
4369
  "items": {
4222
4370
  "type": "string"
4223
- }
4371
+ },
4372
+ "title": "群管理员id列表"
4224
4373
  },
4225
4374
  "memberIds": {
4226
4375
  "type": "array",
4227
4376
  "items": {
4228
4377
  "type": "string"
4229
- }
4378
+ },
4379
+ "title": "群成员id列表"
4230
4380
  },
4231
4381
  "handle": {
4232
- "type": "string"
4382
+ "type": "string",
4383
+ "title": "IM内部id,企微中为群的chat_id"
4233
4384
  },
4234
4385
  "additionalInfo": {
4235
4386
  "type": "string"
@@ -4251,7 +4402,8 @@
4251
4402
  "type": "object",
4252
4403
  "properties": {
4253
4404
  "topicStringValueDeprecated": {
4254
- "type": "string"
4405
+ "type": "string",
4406
+ "title": "DEPRECATED, will be removed after Dec 31, 2022"
4255
4407
  },
4256
4408
  "topic": {
4257
4409
  "type": "string"
@@ -4281,13 +4433,15 @@
4281
4433
  "type": "array",
4282
4434
  "items": {
4283
4435
  "type": "string"
4284
- }
4436
+ },
4437
+ "title": "要打的标签的id列表"
4285
4438
  },
4286
4439
  "contactIds": {
4287
4440
  "type": "array",
4288
4441
  "items": {
4289
4442
  "type": "string"
4290
- }
4443
+ },
4444
+ "title": "要打标签的联系人id列表"
4291
4445
  }
4292
4446
  }
4293
4447
  },
@@ -4411,10 +4565,12 @@
4411
4565
  "type": "string"
4412
4566
  },
4413
4567
  "name": {
4414
- "type": "string"
4568
+ "type": "string",
4569
+ "title": "标签名"
4415
4570
  },
4416
4571
  "groupId": {
4417
- "type": "string"
4572
+ "type": "string",
4573
+ "title": "所属标签组的id,可为空"
4418
4574
  },
4419
4575
  "type": {
4420
4576
  "$ref": "#/definitions/puppetTagType"
@@ -4496,7 +4652,8 @@
4496
4652
  "PERSONAL",
4497
4653
  "CORPORATION"
4498
4654
  ],
4499
- "default": "Unspecific"
4655
+ "default": "Unspecific",
4656
+ "title": "- PERSONAL: 个人标签\n - CORPORATION: 企业标签"
4500
4657
  },
4501
4658
  "puppetTapType": {
4502
4659
  "type": "string",
@@ -4527,16 +4684,20 @@
4527
4684
  "type": "object",
4528
4685
  "properties": {
4529
4686
  "description": {
4530
- "type": "string"
4687
+ "type": "string",
4688
+ "title": "描述"
4531
4689
  },
4532
4690
  "thumbnailUrl": {
4533
- "type": "string"
4691
+ "type": "string",
4692
+ "title": "缩略图地址"
4534
4693
  },
4535
4694
  "title": {
4536
- "type": "string"
4695
+ "type": "string",
4696
+ "title": "标题"
4537
4697
  },
4538
4698
  "url": {
4539
- "type": "string"
4699
+ "type": "string",
4700
+ "title": "文章地址"
4540
4701
  }
4541
4702
  }
4542
4703
  },