@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
|
@@ -9,7 +9,7 @@ info:
|
|
|
9
9
|
|
|
10
10
|
Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
|
|
11
11
|
top of the Wechaty Puppet Abstraction and the gRPC proto definition.
|
|
12
|
-
version: 1.0.
|
|
12
|
+
version: 1.0.28
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -123,6 +123,7 @@ paths:
|
|
|
123
123
|
properties:
|
|
124
124
|
corporationRemarkStringValueDeprecated:
|
|
125
125
|
type: string
|
|
126
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
126
127
|
corporationRemark:
|
|
127
128
|
type: string
|
|
128
129
|
tags:
|
|
@@ -152,6 +153,7 @@ paths:
|
|
|
152
153
|
properties:
|
|
153
154
|
descriptionStringValueDeprecated:
|
|
154
155
|
type: string
|
|
156
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
155
157
|
description:
|
|
156
158
|
type: string
|
|
157
159
|
tags:
|
|
@@ -250,6 +252,7 @@ paths:
|
|
|
250
252
|
properties:
|
|
251
253
|
aliasStringValueDeprecated:
|
|
252
254
|
type: string
|
|
255
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
253
256
|
title: nullable
|
|
254
257
|
alias:
|
|
255
258
|
type: string
|
|
@@ -273,6 +276,7 @@ paths:
|
|
|
273
276
|
required: true
|
|
274
277
|
type: string
|
|
275
278
|
- name: fileboxStringValueDeprecated
|
|
279
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
276
280
|
in: query
|
|
277
281
|
required: false
|
|
278
282
|
type: string
|
|
@@ -410,10 +414,12 @@ paths:
|
|
|
410
414
|
$ref: '#/definitions/rpcStatus'
|
|
411
415
|
parameters:
|
|
412
416
|
- name: conversationId
|
|
417
|
+
description: 对话id
|
|
413
418
|
in: path
|
|
414
419
|
required: true
|
|
415
420
|
type: string
|
|
416
421
|
- name: messageId
|
|
422
|
+
description: 要转发的消息id
|
|
417
423
|
in: path
|
|
418
424
|
required: true
|
|
419
425
|
type: string
|
|
@@ -460,6 +466,7 @@ paths:
|
|
|
460
466
|
$ref: '#/definitions/rpcStatus'
|
|
461
467
|
parameters:
|
|
462
468
|
- name: conversationId
|
|
469
|
+
description: 对话id
|
|
463
470
|
in: path
|
|
464
471
|
required: true
|
|
465
472
|
type: string
|
|
@@ -471,6 +478,9 @@ paths:
|
|
|
471
478
|
properties:
|
|
472
479
|
miniProgramDeprecated:
|
|
473
480
|
type: string
|
|
481
|
+
description: >-
|
|
482
|
+
deprecated after Sep 31, 2021, remove compatible code after
|
|
483
|
+
Dec 31, 2022
|
|
474
484
|
title: >-
|
|
475
485
|
*
|
|
476
486
|
|
|
@@ -479,6 +489,7 @@ paths:
|
|
|
479
489
|
The compatible code will be removed after Dec 31, 2022
|
|
480
490
|
miniProgram:
|
|
481
491
|
$ref: '#/definitions/puppetMiniProgramPayload'
|
|
492
|
+
title: 小程序payload
|
|
482
493
|
tags:
|
|
483
494
|
- Puppet
|
|
484
495
|
'/conversations/{conversationId}/text':
|
|
@@ -495,6 +506,7 @@ paths:
|
|
|
495
506
|
$ref: '#/definitions/rpcStatus'
|
|
496
507
|
parameters:
|
|
497
508
|
- name: conversationId
|
|
509
|
+
description: 对话id
|
|
498
510
|
in: path
|
|
499
511
|
required: true
|
|
500
512
|
type: string
|
|
@@ -506,12 +518,16 @@ paths:
|
|
|
506
518
|
properties:
|
|
507
519
|
text:
|
|
508
520
|
type: string
|
|
521
|
+
title: 文本内容
|
|
509
522
|
mentionalIds:
|
|
510
523
|
type: array
|
|
511
524
|
items:
|
|
512
525
|
type: string
|
|
526
|
+
title: '@人id列表'
|
|
513
527
|
quoteId:
|
|
514
528
|
type: string
|
|
529
|
+
title: 引用消息的id
|
|
530
|
+
title: 发文本消息
|
|
515
531
|
tags:
|
|
516
532
|
- Puppet
|
|
517
533
|
'/conversations/{conversationId}/url-link':
|
|
@@ -528,6 +544,7 @@ paths:
|
|
|
528
544
|
$ref: '#/definitions/rpcStatus'
|
|
529
545
|
parameters:
|
|
530
546
|
- name: conversationId
|
|
547
|
+
description: 对话id
|
|
531
548
|
in: path
|
|
532
549
|
required: true
|
|
533
550
|
type: string
|
|
@@ -539,6 +556,9 @@ paths:
|
|
|
539
556
|
properties:
|
|
540
557
|
urlLinkDeprecated:
|
|
541
558
|
type: string
|
|
559
|
+
description: >-
|
|
560
|
+
deprecated after Sep 31, 2021, remove compatible code after
|
|
561
|
+
Dec 31, 2022
|
|
542
562
|
title: >-
|
|
543
563
|
*
|
|
544
564
|
|
|
@@ -547,6 +567,7 @@ paths:
|
|
|
547
567
|
The compatible code will be removed after Dec 31, 2022
|
|
548
568
|
urlLink:
|
|
549
569
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
570
|
+
title: 链接payload
|
|
550
571
|
tags:
|
|
551
572
|
- Puppet
|
|
552
573
|
/currentUser:
|
|
@@ -679,8 +700,10 @@ paths:
|
|
|
679
700
|
type: string
|
|
680
701
|
sourceRoomIdStringValueDeprecated:
|
|
681
702
|
type: string
|
|
703
|
+
title: 'Deprecated: will be removed after Dec 31, 2022'
|
|
682
704
|
sourceContactIdStringValueDeprecated:
|
|
683
705
|
type: string
|
|
706
|
+
title: 'Deprecated: will be removed after Dec 31, 2022'
|
|
684
707
|
referrer:
|
|
685
708
|
$ref: '#/definitions/puppetReferrer'
|
|
686
709
|
tags:
|
|
@@ -761,6 +784,8 @@ paths:
|
|
|
761
784
|
Huan(202003):
|
|
762
785
|
What's the reason we need belowing payload?
|
|
763
786
|
We should remove it if possible.
|
|
787
|
+
|
|
788
|
+
DEPRECATED, will be removed after Dec 31, 2022
|
|
764
789
|
in: query
|
|
765
790
|
required: false
|
|
766
791
|
type: string
|
|
@@ -1018,10 +1043,12 @@ paths:
|
|
|
1018
1043
|
$ref: '#/definitions/rpcStatus'
|
|
1019
1044
|
parameters:
|
|
1020
1045
|
- name: messageId
|
|
1046
|
+
description: 要转发的消息id
|
|
1021
1047
|
in: path
|
|
1022
1048
|
required: true
|
|
1023
1049
|
type: string
|
|
1024
1050
|
- name: conversationId
|
|
1051
|
+
description: 对话id
|
|
1025
1052
|
in: path
|
|
1026
1053
|
required: true
|
|
1027
1054
|
type: string
|
|
@@ -1176,6 +1203,8 @@ paths:
|
|
|
1176
1203
|
@deprecated: use payload instead.
|
|
1177
1204
|
Huan(202109): Wrapper types must not be used going forward.
|
|
1178
1205
|
https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
1206
|
+
|
|
1207
|
+
Deprecated: will be removed after Dec 31, 2022
|
|
1179
1208
|
in: query
|
|
1180
1209
|
required: false
|
|
1181
1210
|
type: string
|
|
@@ -1294,10 +1323,12 @@ paths:
|
|
|
1294
1323
|
required: true
|
|
1295
1324
|
type: string
|
|
1296
1325
|
- name: contactId
|
|
1326
|
+
description: 被邀请联系人id
|
|
1297
1327
|
in: path
|
|
1298
1328
|
required: true
|
|
1299
1329
|
type: string
|
|
1300
1330
|
- name: inviteOnly
|
|
1331
|
+
description: 不明确,目前没见到使用这个的地方
|
|
1301
1332
|
in: query
|
|
1302
1333
|
required: false
|
|
1303
1334
|
type: boolean
|
|
@@ -1321,6 +1352,7 @@ paths:
|
|
|
1321
1352
|
required: true
|
|
1322
1353
|
type: string
|
|
1323
1354
|
- name: textStringValueDeprecated
|
|
1355
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1324
1356
|
in: query
|
|
1325
1357
|
required: false
|
|
1326
1358
|
type: string
|
|
@@ -1354,8 +1386,10 @@ paths:
|
|
|
1354
1386
|
properties:
|
|
1355
1387
|
textStringValueDeprecated:
|
|
1356
1388
|
type: string
|
|
1389
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1357
1390
|
text:
|
|
1358
1391
|
type: string
|
|
1392
|
+
title: 群公告
|
|
1359
1393
|
tags:
|
|
1360
1394
|
- Puppet
|
|
1361
1395
|
'/rooms/{id}/avatar':
|
|
@@ -1463,6 +1497,7 @@ paths:
|
|
|
1463
1497
|
required: true
|
|
1464
1498
|
type: string
|
|
1465
1499
|
- name: contactId
|
|
1500
|
+
description: 'Deprecated, will be removed after bot updated'
|
|
1466
1501
|
in: path
|
|
1467
1502
|
required: true
|
|
1468
1503
|
type: string
|
|
@@ -1556,6 +1591,7 @@ paths:
|
|
|
1556
1591
|
required: true
|
|
1557
1592
|
type: string
|
|
1558
1593
|
- name: topicStringValueDeprecated
|
|
1594
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1559
1595
|
in: query
|
|
1560
1596
|
required: false
|
|
1561
1597
|
type: string
|
|
@@ -2021,7 +2057,10 @@ paths:
|
|
|
2021
2057
|
$ref: '#/definitions/rpcStatus'
|
|
2022
2058
|
parameters:
|
|
2023
2059
|
- name: body
|
|
2024
|
-
description:
|
|
2060
|
+
description: |-
|
|
2061
|
+
*
|
|
2062
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2063
|
+
to be confirmed. (streaming inputs)
|
|
2025
2064
|
in: body
|
|
2026
2065
|
required: true
|
|
2027
2066
|
schema:
|
|
@@ -2040,26 +2079,35 @@ definitions:
|
|
|
2040
2079
|
properties:
|
|
2041
2080
|
avatar:
|
|
2042
2081
|
type: string
|
|
2082
|
+
title: 头像
|
|
2043
2083
|
coverUrl:
|
|
2044
2084
|
type: string
|
|
2085
|
+
title: 封面地址
|
|
2045
2086
|
desc:
|
|
2046
2087
|
type: string
|
|
2088
|
+
title: 描述
|
|
2047
2089
|
extras:
|
|
2048
2090
|
type: string
|
|
2091
|
+
title: 额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。
|
|
2049
2092
|
feedType:
|
|
2050
2093
|
type: integer
|
|
2051
2094
|
format: int32
|
|
2095
|
+
title: 暂不明确含义,目前请固定传4
|
|
2052
2096
|
nickname:
|
|
2053
2097
|
type: string
|
|
2098
|
+
title: 用户名
|
|
2054
2099
|
thumbUrl:
|
|
2055
2100
|
type: string
|
|
2101
|
+
title: 缩略图地址
|
|
2056
2102
|
url:
|
|
2057
2103
|
type: string
|
|
2104
|
+
title: 视频号地址
|
|
2058
2105
|
puppetContactAliasResponse:
|
|
2059
2106
|
type: object
|
|
2060
2107
|
properties:
|
|
2061
2108
|
aliasStringValueDeprecated:
|
|
2062
2109
|
type: string
|
|
2110
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2063
2111
|
alias:
|
|
2064
2112
|
type: string
|
|
2065
2113
|
puppetContactAvatarResponse:
|
|
@@ -2067,6 +2115,7 @@ definitions:
|
|
|
2067
2115
|
properties:
|
|
2068
2116
|
fileboxStringValueDeprecated:
|
|
2069
2117
|
type: string
|
|
2118
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2070
2119
|
fileBox:
|
|
2071
2120
|
type: string
|
|
2072
2121
|
puppetContactCorporationRemarkResponse:
|
|
@@ -2080,6 +2129,11 @@ definitions:
|
|
|
2080
2129
|
- CONTACT_GENDER_MALE
|
|
2081
2130
|
- CONTACT_GENDER_FEMALE
|
|
2082
2131
|
default: CONTACT_GENDER_UNSPECIFIED
|
|
2132
|
+
description: |-
|
|
2133
|
+
- CONTACT_GENDER_UNSPECIFIED: 不明确
|
|
2134
|
+
- CONTACT_GENDER_MALE: 男
|
|
2135
|
+
- CONTACT_GENDER_FEMALE: 女
|
|
2136
|
+
title: 性别枚举
|
|
2083
2137
|
puppetContactListResponse:
|
|
2084
2138
|
type: object
|
|
2085
2139
|
properties:
|
|
@@ -2094,26 +2148,37 @@ definitions:
|
|
|
2094
2148
|
type: string
|
|
2095
2149
|
gender:
|
|
2096
2150
|
$ref: '#/definitions/puppetContactGender'
|
|
2151
|
+
title: 性别
|
|
2097
2152
|
type:
|
|
2098
2153
|
$ref: '#/definitions/puppetContactType'
|
|
2154
|
+
title: 类型
|
|
2099
2155
|
name:
|
|
2100
2156
|
type: string
|
|
2157
|
+
title: 姓名
|
|
2101
2158
|
avatar:
|
|
2102
2159
|
type: string
|
|
2160
|
+
title: 头像
|
|
2103
2161
|
address:
|
|
2104
2162
|
type: string
|
|
2163
|
+
title: 地址
|
|
2105
2164
|
alias:
|
|
2106
2165
|
type: string
|
|
2166
|
+
title: 别名,即备注
|
|
2107
2167
|
city:
|
|
2108
2168
|
type: string
|
|
2169
|
+
title: 城市
|
|
2109
2170
|
friend:
|
|
2110
2171
|
type: boolean
|
|
2172
|
+
title: 是否为好友
|
|
2111
2173
|
province:
|
|
2112
2174
|
type: string
|
|
2175
|
+
title: 省份
|
|
2113
2176
|
signature:
|
|
2114
2177
|
type: string
|
|
2178
|
+
title: 签名
|
|
2115
2179
|
star:
|
|
2116
2180
|
type: boolean
|
|
2181
|
+
title: 是否为特别好友
|
|
2117
2182
|
weixin:
|
|
2118
2183
|
type: string
|
|
2119
2184
|
description: >-
|
|
@@ -2129,24 +2194,34 @@ definitions:
|
|
|
2129
2194
|
@link https://github.com/wechaty/getting-started/issues/254
|
|
2130
2195
|
|
|
2131
2196
|
TODO: rename `weixin` to `handle` in v2.0.0
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
IM专属id,在企微环境中特指weixinId
|
|
2132
2200
|
corporation:
|
|
2133
2201
|
type: string
|
|
2202
|
+
title: 企业
|
|
2134
2203
|
title:
|
|
2135
2204
|
type: string
|
|
2205
|
+
title: 头衔
|
|
2136
2206
|
description:
|
|
2137
2207
|
type: string
|
|
2208
|
+
title: 描述
|
|
2138
2209
|
coworker:
|
|
2139
2210
|
type: boolean
|
|
2211
|
+
title: 是否为同事
|
|
2140
2212
|
phones:
|
|
2141
2213
|
type: array
|
|
2142
2214
|
items:
|
|
2143
2215
|
type: string
|
|
2216
|
+
title: 电话号码,企微中最多5个
|
|
2144
2217
|
additionalInfo:
|
|
2145
2218
|
type: string
|
|
2219
|
+
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
2146
2220
|
tagIds:
|
|
2147
2221
|
type: array
|
|
2148
2222
|
items:
|
|
2149
2223
|
type: string
|
|
2224
|
+
title: 标签(的id)
|
|
2150
2225
|
puppetContactPhoneResponse:
|
|
2151
2226
|
type: object
|
|
2152
2227
|
properties:
|
|
@@ -2176,6 +2251,12 @@ definitions:
|
|
|
2176
2251
|
- CONTACT_TYPE_OFFICIAL
|
|
2177
2252
|
- CONTACT_TYPE_CORPORATION
|
|
2178
2253
|
default: CONTACT_TYPE_UNSPECIFIED
|
|
2254
|
+
description: |-
|
|
2255
|
+
- CONTACT_TYPE_UNSPECIFIED: 不明确
|
|
2256
|
+
- CONTACT_TYPE_PERSONAL: 个微联系人
|
|
2257
|
+
- CONTACT_TYPE_OFFICIAL: 公众号
|
|
2258
|
+
- CONTACT_TYPE_CORPORATION: 企微联系人
|
|
2259
|
+
title: 类型枚举
|
|
2179
2260
|
puppetConversationReadResponse:
|
|
2180
2261
|
type: object
|
|
2181
2262
|
puppetCurrentUserResponse:
|
|
@@ -2190,6 +2271,10 @@ definitions:
|
|
|
2190
2271
|
type: string
|
|
2191
2272
|
puppetDingResponse:
|
|
2192
2273
|
type: object
|
|
2274
|
+
title: |-
|
|
2275
|
+
*
|
|
2276
|
+
Ding has no return value
|
|
2277
|
+
Puppet should emit a `ding` event when it receives a `ding()` call
|
|
2193
2278
|
puppetDirtyPayloadResponse:
|
|
2194
2279
|
type: object
|
|
2195
2280
|
puppetDownloadResponse:
|
|
@@ -2205,6 +2290,7 @@ definitions:
|
|
|
2205
2290
|
$ref: '#/definitions/puppetEventType'
|
|
2206
2291
|
payload:
|
|
2207
2292
|
type: string
|
|
2293
|
+
description: 'JSON.stringify({ ... })'
|
|
2208
2294
|
title: 'TODO: Huan(202002) consider to use a PB Map?'
|
|
2209
2295
|
puppetEventType:
|
|
2210
2296
|
type: string
|
|
@@ -2240,6 +2326,11 @@ definitions:
|
|
|
2240
2326
|
title: 'oneof payload {'
|
|
2241
2327
|
name:
|
|
2242
2328
|
type: string
|
|
2329
|
+
title: '}'
|
|
2330
|
+
description: |-
|
|
2331
|
+
*
|
|
2332
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2333
|
+
to be confirmed.
|
|
2243
2334
|
puppetFriendshipAcceptResponse:
|
|
2244
2335
|
type: object
|
|
2245
2336
|
puppetFriendshipAddResponse:
|
|
@@ -2251,16 +2342,22 @@ definitions:
|
|
|
2251
2342
|
type: string
|
|
2252
2343
|
contactId:
|
|
2253
2344
|
type: string
|
|
2345
|
+
title: 加好友的联系人id
|
|
2254
2346
|
hello:
|
|
2255
2347
|
type: string
|
|
2348
|
+
title: 加好友的打招呼消息
|
|
2256
2349
|
type:
|
|
2257
2350
|
$ref: '#/definitions/puppetFriendshipType'
|
|
2351
|
+
title: 好友事件类型
|
|
2258
2352
|
stranger:
|
|
2259
2353
|
type: string
|
|
2354
|
+
title: 不明确含义,wxwork中未使用
|
|
2260
2355
|
ticket:
|
|
2261
2356
|
type: string
|
|
2357
|
+
title: 个微遗留字段,wxwork中会传corp_id
|
|
2262
2358
|
scene:
|
|
2263
2359
|
$ref: '#/definitions/puppetFriendshipSceneType'
|
|
2360
|
+
title: 加好友的场景(例如通过名片添加、通过群添加等),wxwork未使用
|
|
2264
2361
|
puppetFriendshipSceneType:
|
|
2265
2362
|
type: string
|
|
2266
2363
|
enum:
|
|
@@ -2277,6 +2374,7 @@ definitions:
|
|
|
2277
2374
|
- FRIENDSHIP_SCENE_TYPE_SHAKING
|
|
2278
2375
|
- FRIENDSHIP_SCENE_TYPE_QRCODE
|
|
2279
2376
|
default: FRIENDSHIP_SCENE_TYPE_UNSPECIFIED
|
|
2377
|
+
title: 事件场景 wxwork中未使用
|
|
2280
2378
|
puppetFriendshipSearchHandleRequest:
|
|
2281
2379
|
type: object
|
|
2282
2380
|
properties:
|
|
@@ -2312,6 +2410,7 @@ definitions:
|
|
|
2312
2410
|
properties:
|
|
2313
2411
|
contactIdStringValueDeprecated:
|
|
2314
2412
|
type: string
|
|
2413
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2315
2414
|
title: nullable
|
|
2316
2415
|
contactId:
|
|
2317
2416
|
type: string
|
|
@@ -2320,6 +2419,7 @@ definitions:
|
|
|
2320
2419
|
properties:
|
|
2321
2420
|
contactIdStringValueDeprecated:
|
|
2322
2421
|
type: string
|
|
2422
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2323
2423
|
title: nullable
|
|
2324
2424
|
contactId:
|
|
2325
2425
|
type: string
|
|
@@ -2333,6 +2433,14 @@ definitions:
|
|
|
2333
2433
|
- FRIENDSHIP_TYPE_DELETE
|
|
2334
2434
|
- FRIENDSHIP_TYPE_REMOVED
|
|
2335
2435
|
default: FRIENDSHIP_TYPE_UNSPECIFIED
|
|
2436
|
+
description: |-
|
|
2437
|
+
- FRIENDSHIP_TYPE_UNSPECIFIED: 不明确
|
|
2438
|
+
- FRIENDSHIP_TYPE_CONFIRM: 确认——双方互加后触发
|
|
2439
|
+
- FRIENDSHIP_TYPE_RECEIVE: 收到——收到好友请求后触发
|
|
2440
|
+
- FRIENDSHIP_TYPE_VERIFY: 验证——主动加他人为好友时触发,wxwork里暂无此事件
|
|
2441
|
+
- FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发
|
|
2442
|
+
- FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发
|
|
2443
|
+
title: 事件类型
|
|
2336
2444
|
puppetImageType:
|
|
2337
2445
|
type: string
|
|
2338
2446
|
enum:
|
|
@@ -2347,16 +2455,21 @@ definitions:
|
|
|
2347
2455
|
accuracy:
|
|
2348
2456
|
type: number
|
|
2349
2457
|
format: float
|
|
2458
|
+
title: 精确度,默认为15
|
|
2350
2459
|
address:
|
|
2351
2460
|
type: string
|
|
2461
|
+
title: 地址,xx省xx市xx区xx路xx号
|
|
2352
2462
|
latitude:
|
|
2353
2463
|
type: number
|
|
2354
2464
|
format: double
|
|
2465
|
+
title: 纬度,北纬为正
|
|
2355
2466
|
longitude:
|
|
2356
2467
|
type: number
|
|
2357
2468
|
format: double
|
|
2469
|
+
title: 经度,东经为正
|
|
2358
2470
|
name:
|
|
2359
2471
|
type: string
|
|
2472
|
+
title: 地址名,例如xx大厦
|
|
2360
2473
|
puppetLogoutResponse:
|
|
2361
2474
|
type: object
|
|
2362
2475
|
puppetMessageChannelResponse:
|
|
@@ -2394,6 +2507,7 @@ definitions:
|
|
|
2394
2507
|
properties:
|
|
2395
2508
|
idStringValueDeprecated:
|
|
2396
2509
|
type: string
|
|
2510
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2397
2511
|
title: |-
|
|
2398
2512
|
*
|
|
2399
2513
|
@deprecated: use payload instead.
|
|
@@ -2408,6 +2522,7 @@ definitions:
|
|
|
2408
2522
|
type: string
|
|
2409
2523
|
type:
|
|
2410
2524
|
$ref: '#/definitions/puppetImageType'
|
|
2525
|
+
title: 获取图片的类型(缩略图、原图)
|
|
2411
2526
|
puppetMessageImageResponse:
|
|
2412
2527
|
type: object
|
|
2413
2528
|
properties:
|
|
@@ -2435,6 +2550,9 @@ definitions:
|
|
|
2435
2550
|
properties:
|
|
2436
2551
|
miniProgramDeprecated:
|
|
2437
2552
|
type: string
|
|
2553
|
+
description: >-
|
|
2554
|
+
deprecated after Sep 31, 2021, remove compatible code after Dec 31,
|
|
2555
|
+
2022
|
|
2438
2556
|
title: |-
|
|
2439
2557
|
*
|
|
2440
2558
|
Huan(202110): We should use payload instead of JSON.stringify string
|
|
@@ -2448,8 +2566,10 @@ definitions:
|
|
|
2448
2566
|
type: string
|
|
2449
2567
|
filename:
|
|
2450
2568
|
type: string
|
|
2569
|
+
title: 文件名
|
|
2451
2570
|
text:
|
|
2452
2571
|
type: string
|
|
2572
|
+
title: 文本内容
|
|
2453
2573
|
timestampDeprecated:
|
|
2454
2574
|
type: string
|
|
2455
2575
|
format: uint64
|
|
@@ -2459,21 +2579,28 @@ definitions:
|
|
|
2459
2579
|
Huan(202109): use receive_time(10) instead
|
|
2460
2580
|
type:
|
|
2461
2581
|
$ref: '#/definitions/puppetMessageType'
|
|
2582
|
+
title: 类型
|
|
2462
2583
|
talkerId:
|
|
2463
2584
|
type: string
|
|
2585
|
+
title: 发送者id
|
|
2464
2586
|
roomId:
|
|
2465
2587
|
type: string
|
|
2588
|
+
title: 群聊id
|
|
2466
2589
|
listenerId:
|
|
2467
2590
|
type: string
|
|
2591
|
+
title: 接受者id
|
|
2468
2592
|
mentionIds:
|
|
2469
2593
|
type: array
|
|
2470
2594
|
items:
|
|
2471
2595
|
type: string
|
|
2596
|
+
title: 群消息@人的id列表
|
|
2472
2597
|
receiveTime:
|
|
2473
2598
|
type: string
|
|
2474
2599
|
format: date-time
|
|
2600
|
+
title: 收到消息时间
|
|
2475
2601
|
quoteId:
|
|
2476
2602
|
type: string
|
|
2603
|
+
title: 被引用的消息id
|
|
2477
2604
|
puppetMessagePreviewResponse:
|
|
2478
2605
|
type: object
|
|
2479
2606
|
properties:
|
|
@@ -2494,6 +2621,7 @@ definitions:
|
|
|
2494
2621
|
properties:
|
|
2495
2622
|
idStringValueDeprecated:
|
|
2496
2623
|
type: string
|
|
2624
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2497
2625
|
title: |-
|
|
2498
2626
|
*
|
|
2499
2627
|
@deprecated:
|
|
@@ -2506,13 +2634,16 @@ definitions:
|
|
|
2506
2634
|
properties:
|
|
2507
2635
|
conversationId:
|
|
2508
2636
|
type: string
|
|
2637
|
+
title: 对话id
|
|
2509
2638
|
fileBox:
|
|
2510
2639
|
type: string
|
|
2640
|
+
title: 发送文件的fileBox.toJSON()
|
|
2511
2641
|
puppetMessageSendFileResponse:
|
|
2512
2642
|
type: object
|
|
2513
2643
|
properties:
|
|
2514
2644
|
idStringValueDeprecated:
|
|
2515
2645
|
type: string
|
|
2646
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2516
2647
|
title: |-
|
|
2517
2648
|
*
|
|
2518
2649
|
@deprecated:
|
|
@@ -2528,11 +2659,17 @@ definitions:
|
|
|
2528
2659
|
title: 'oneof payload {'
|
|
2529
2660
|
fileBoxChunk:
|
|
2530
2661
|
$ref: '#/definitions/puppetFileBoxChunk'
|
|
2662
|
+
title: '};'
|
|
2663
|
+
description: |-
|
|
2664
|
+
*
|
|
2665
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2666
|
+
to be confirmed.
|
|
2531
2667
|
puppetMessageSendFileStreamResponse:
|
|
2532
2668
|
type: object
|
|
2533
2669
|
properties:
|
|
2534
2670
|
idStringValueDeprecated:
|
|
2535
2671
|
type: string
|
|
2672
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2536
2673
|
title: |-
|
|
2537
2674
|
*
|
|
2538
2675
|
@deprecated:
|
|
@@ -2558,6 +2695,7 @@ definitions:
|
|
|
2558
2695
|
properties:
|
|
2559
2696
|
idStringValueDeprecated:
|
|
2560
2697
|
type: string
|
|
2698
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2561
2699
|
title: |-
|
|
2562
2700
|
*
|
|
2563
2701
|
@deprecated:
|
|
@@ -2570,6 +2708,7 @@ definitions:
|
|
|
2570
2708
|
properties:
|
|
2571
2709
|
idStringValueDeprecated:
|
|
2572
2710
|
type: string
|
|
2711
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2573
2712
|
title: |-
|
|
2574
2713
|
*
|
|
2575
2714
|
@deprecated:
|
|
@@ -2582,6 +2721,7 @@ definitions:
|
|
|
2582
2721
|
properties:
|
|
2583
2722
|
idStringValueDeprecated:
|
|
2584
2723
|
type: string
|
|
2724
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2585
2725
|
title: |-
|
|
2586
2726
|
*
|
|
2587
2727
|
@deprecated:
|
|
@@ -2612,11 +2752,34 @@ definitions:
|
|
|
2612
2752
|
- MESSAGE_TYPE_CHANNEL
|
|
2613
2753
|
- MESSAGE_TYPE_SYSTEM
|
|
2614
2754
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
2755
|
+
description: |-
|
|
2756
|
+
- MESSAGE_TYPE_ATTACHMENT: 文件消息
|
|
2757
|
+
- MESSAGE_TYPE_AUDIO: 音频
|
|
2758
|
+
- MESSAGE_TYPE_CONTACT: 名片
|
|
2759
|
+
- MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持
|
|
2760
|
+
- MESSAGE_TYPE_EMOTCION: 表情
|
|
2761
|
+
- MESSAGE_TYPE_IMAGE: 图片
|
|
2762
|
+
- MESSAGE_TYPE_TEXT: 文本
|
|
2763
|
+
- MESSAGE_TYPE_LOCATION: 地址
|
|
2764
|
+
- MESSAGE_TYPE_MINI_PROGRAM: 小程序
|
|
2765
|
+
- MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有
|
|
2766
|
+
- MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有
|
|
2767
|
+
- MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有
|
|
2768
|
+
- MESSAGE_TYPE_RECALLED: 撤回
|
|
2769
|
+
- MESSAGE_TYPE_URL: 链接
|
|
2770
|
+
- MESSAGE_TYPE_VIDEO: 视频
|
|
2771
|
+
- MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有
|
|
2772
|
+
- MESSAGE_TYPE_CHANNEL: 视频号
|
|
2773
|
+
- MESSAGE_TYPE_SYSTEM: 系统消息
|
|
2774
|
+
title: 消息类型
|
|
2615
2775
|
puppetMessageUrlResponse:
|
|
2616
2776
|
type: object
|
|
2617
2777
|
properties:
|
|
2618
2778
|
urlLinkDeprecated:
|
|
2619
2779
|
type: string
|
|
2780
|
+
description: >-
|
|
2781
|
+
deprecated after Sep 31, 2021, remove compatible code after Dec 31,
|
|
2782
|
+
2022
|
|
2620
2783
|
title: |-
|
|
2621
2784
|
*
|
|
2622
2785
|
Huan(202110): We should use payload instead of JSON.stringify string
|
|
@@ -2628,22 +2791,31 @@ definitions:
|
|
|
2628
2791
|
properties:
|
|
2629
2792
|
appid:
|
|
2630
2793
|
type: string
|
|
2794
|
+
title: appId,形式如wx4ff94de0d8038c25
|
|
2631
2795
|
description:
|
|
2632
2796
|
type: string
|
|
2797
|
+
title: 描述(副标题)
|
|
2633
2798
|
pagePath:
|
|
2634
2799
|
type: string
|
|
2800
|
+
title: 访问路径
|
|
2635
2801
|
iconUrl:
|
|
2636
2802
|
type: string
|
|
2803
|
+
title: 图标路径
|
|
2637
2804
|
shareId:
|
|
2638
2805
|
type: string
|
|
2806
|
+
title: 发送小程序的用户id,可不填
|
|
2639
2807
|
thumbUrl:
|
|
2640
2808
|
type: string
|
|
2809
|
+
title: 缩略图路径
|
|
2641
2810
|
title:
|
|
2642
2811
|
type: string
|
|
2812
|
+
title: 标题
|
|
2643
2813
|
username:
|
|
2644
2814
|
type: string
|
|
2815
|
+
title: 关联公众号id,形式gh_69105b80ea75@app
|
|
2645
2816
|
thumbKey:
|
|
2646
2817
|
type: string
|
|
2818
|
+
title: 缩略图的key,可不填
|
|
2647
2819
|
puppetMomentCoverageRequest:
|
|
2648
2820
|
type: object
|
|
2649
2821
|
properties:
|
|
@@ -2692,8 +2864,10 @@ definitions:
|
|
|
2692
2864
|
properties:
|
|
2693
2865
|
parentId:
|
|
2694
2866
|
type: string
|
|
2867
|
+
title: '转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id'
|
|
2695
2868
|
rootId:
|
|
2696
2869
|
type: string
|
|
2870
|
+
title: 转发的根id,评论时应该是朋友圈的id
|
|
2697
2871
|
type:
|
|
2698
2872
|
$ref: '#/definitions/puppetPostType'
|
|
2699
2873
|
sayableList:
|
|
@@ -2727,8 +2901,10 @@ definitions:
|
|
|
2727
2901
|
properties:
|
|
2728
2902
|
parentId:
|
|
2729
2903
|
type: string
|
|
2904
|
+
title: 转发的上一级id
|
|
2730
2905
|
rootId:
|
|
2731
2906
|
type: string
|
|
2907
|
+
title: 转发的根id
|
|
2732
2908
|
type:
|
|
2733
2909
|
$ref: '#/definitions/puppetPostType'
|
|
2734
2910
|
sayableList:
|
|
@@ -2757,10 +2933,12 @@ definitions:
|
|
|
2757
2933
|
$ref: '#/definitions/puppetSayableType'
|
|
2758
2934
|
id:
|
|
2759
2935
|
type: string
|
|
2936
|
+
title: 服务器端获取的Post只传回id,异步进行获取
|
|
2760
2937
|
text:
|
|
2761
2938
|
type: string
|
|
2762
2939
|
fileBox:
|
|
2763
2940
|
type: string
|
|
2941
|
+
title: FileBox.toJSON()
|
|
2764
2942
|
urlLink:
|
|
2765
2943
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2766
2944
|
channel:
|
|
@@ -2769,6 +2947,7 @@ definitions:
|
|
|
2769
2947
|
type: array
|
|
2770
2948
|
items:
|
|
2771
2949
|
type: string
|
|
2950
|
+
title: 文本类型的sayable可传,朋友圈暂不支持
|
|
2772
2951
|
puppetPostTapRequest:
|
|
2773
2952
|
type: object
|
|
2774
2953
|
properties:
|
|
@@ -2778,6 +2957,7 @@ definitions:
|
|
|
2778
2957
|
$ref: '#/definitions/puppetTapType'
|
|
2779
2958
|
tap:
|
|
2780
2959
|
type: boolean
|
|
2960
|
+
title: 点赞还是取消
|
|
2781
2961
|
puppetPostTapResponse:
|
|
2782
2962
|
type: object
|
|
2783
2963
|
properties:
|
|
@@ -2791,6 +2971,10 @@ definitions:
|
|
|
2791
2971
|
- POST_TYPE_CHANNEL
|
|
2792
2972
|
- POST_TYPE_MESSAGE
|
|
2793
2973
|
default: POST_TYPE_UNSPECIFIED
|
|
2974
|
+
title: |-
|
|
2975
|
+
- POST_TYPE_MOMENT: 朋友圈
|
|
2976
|
+
- POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
|
|
2977
|
+
- POST_TYPE_MESSAGE: 消息——富媒体消息
|
|
2794
2978
|
puppetReferrer:
|
|
2795
2979
|
type: object
|
|
2796
2980
|
properties:
|
|
@@ -2811,6 +2995,7 @@ definitions:
|
|
|
2811
2995
|
properties:
|
|
2812
2996
|
textStringValueDeprecated:
|
|
2813
2997
|
type: string
|
|
2998
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2814
2999
|
text:
|
|
2815
3000
|
type: string
|
|
2816
3001
|
puppetRoomAvatarResponse:
|
|
@@ -2825,8 +3010,10 @@ definitions:
|
|
|
2825
3010
|
type: array
|
|
2826
3011
|
items:
|
|
2827
3012
|
type: string
|
|
3013
|
+
title: 初始群成员id
|
|
2828
3014
|
topic:
|
|
2829
3015
|
type: string
|
|
3016
|
+
title: 群名称
|
|
2830
3017
|
puppetRoomCreateResponse:
|
|
2831
3018
|
type: object
|
|
2832
3019
|
properties:
|
|
@@ -2843,31 +3030,40 @@ definitions:
|
|
|
2843
3030
|
type: string
|
|
2844
3031
|
inviterId:
|
|
2845
3032
|
type: string
|
|
3033
|
+
title: 邀请者id
|
|
2846
3034
|
topic:
|
|
2847
3035
|
type: string
|
|
3036
|
+
title: 群名称
|
|
2848
3037
|
memberCount:
|
|
2849
3038
|
type: integer
|
|
2850
3039
|
format: int32
|
|
3040
|
+
title: 群成员数量
|
|
2851
3041
|
memberIds:
|
|
2852
3042
|
type: array
|
|
2853
3043
|
items:
|
|
2854
3044
|
type: string
|
|
3045
|
+
title: 群成员id列表
|
|
2855
3046
|
timestampUint64Deprecated:
|
|
2856
3047
|
type: string
|
|
2857
3048
|
format: uint64
|
|
3049
|
+
description: 'Deprecated: will be removed after Dec 31, 2022'
|
|
2858
3050
|
title: |-
|
|
2859
3051
|
*
|
|
2860
3052
|
@deprecated will be removed after Dec 31, 2022
|
|
2861
3053
|
Huan(202109): use receive_time(10) instead
|
|
2862
3054
|
avatar:
|
|
2863
3055
|
type: string
|
|
3056
|
+
title: 群头像
|
|
2864
3057
|
invitation:
|
|
2865
3058
|
type: string
|
|
3059
|
+
title: 在企微中为群邀请的链接地址
|
|
2866
3060
|
receiverId:
|
|
2867
3061
|
type: string
|
|
3062
|
+
title: 收到群邀请的成员id
|
|
2868
3063
|
receiveTime:
|
|
2869
3064
|
type: string
|
|
2870
3065
|
format: date-time
|
|
3066
|
+
title: 时间戳
|
|
2871
3067
|
puppetRoomListResponse:
|
|
2872
3068
|
type: object
|
|
2873
3069
|
properties:
|
|
@@ -2889,12 +3085,16 @@ definitions:
|
|
|
2889
3085
|
type: string
|
|
2890
3086
|
roomAlias:
|
|
2891
3087
|
type: string
|
|
3088
|
+
title: 联系人在群内的别名(群备注)
|
|
2892
3089
|
inviterId:
|
|
2893
3090
|
type: string
|
|
3091
|
+
title: 邀请者id
|
|
2894
3092
|
avatar:
|
|
2895
3093
|
type: string
|
|
3094
|
+
title: 头像
|
|
2896
3095
|
name:
|
|
2897
3096
|
type: string
|
|
3097
|
+
title: 名称
|
|
2898
3098
|
additionalInfo:
|
|
2899
3099
|
type: string
|
|
2900
3100
|
puppetRoomPayloadResponse:
|
|
@@ -2904,20 +3104,26 @@ definitions:
|
|
|
2904
3104
|
type: string
|
|
2905
3105
|
topic:
|
|
2906
3106
|
type: string
|
|
3107
|
+
title: 群名称
|
|
2907
3108
|
avatar:
|
|
2908
3109
|
type: string
|
|
3110
|
+
title: 群头像
|
|
2909
3111
|
ownerId:
|
|
2910
3112
|
type: string
|
|
3113
|
+
title: 群主id
|
|
2911
3114
|
adminIds:
|
|
2912
3115
|
type: array
|
|
2913
3116
|
items:
|
|
2914
3117
|
type: string
|
|
3118
|
+
title: 群管理员id列表
|
|
2915
3119
|
memberIds:
|
|
2916
3120
|
type: array
|
|
2917
3121
|
items:
|
|
2918
3122
|
type: string
|
|
3123
|
+
title: 群成员id列表
|
|
2919
3124
|
handle:
|
|
2920
3125
|
type: string
|
|
3126
|
+
title: IM内部id,企微中为群的chat_id
|
|
2921
3127
|
additionalInfo:
|
|
2922
3128
|
type: string
|
|
2923
3129
|
puppetRoomQRCodeResponse:
|
|
@@ -2932,6 +3138,7 @@ definitions:
|
|
|
2932
3138
|
properties:
|
|
2933
3139
|
topicStringValueDeprecated:
|
|
2934
3140
|
type: string
|
|
3141
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2935
3142
|
topic:
|
|
2936
3143
|
type: string
|
|
2937
3144
|
puppetSayableType:
|
|
@@ -2953,10 +3160,12 @@ definitions:
|
|
|
2953
3160
|
type: array
|
|
2954
3161
|
items:
|
|
2955
3162
|
type: string
|
|
3163
|
+
title: 要打的标签的id列表
|
|
2956
3164
|
contactIds:
|
|
2957
3165
|
type: array
|
|
2958
3166
|
items:
|
|
2959
3167
|
type: string
|
|
3168
|
+
title: 要打标签的联系人id列表
|
|
2960
3169
|
puppetTagContactTagAddResponse:
|
|
2961
3170
|
type: object
|
|
2962
3171
|
puppetTagContactTagListResponse:
|
|
@@ -3036,8 +3245,10 @@ definitions:
|
|
|
3036
3245
|
type: string
|
|
3037
3246
|
name:
|
|
3038
3247
|
type: string
|
|
3248
|
+
title: 标签名
|
|
3039
3249
|
groupId:
|
|
3040
3250
|
type: string
|
|
3251
|
+
title: 所属标签组的id,可为空
|
|
3041
3252
|
type:
|
|
3042
3253
|
$ref: '#/definitions/puppetTagType'
|
|
3043
3254
|
puppetTagPayloadRequest:
|
|
@@ -3090,6 +3301,9 @@ definitions:
|
|
|
3090
3301
|
- PERSONAL
|
|
3091
3302
|
- CORPORATION
|
|
3092
3303
|
default: Unspecific
|
|
3304
|
+
title: |-
|
|
3305
|
+
- PERSONAL: 个人标签
|
|
3306
|
+
- CORPORATION: 企业标签
|
|
3093
3307
|
puppetTapType:
|
|
3094
3308
|
type: string
|
|
3095
3309
|
enum:
|
|
@@ -3112,12 +3326,16 @@ definitions:
|
|
|
3112
3326
|
properties:
|
|
3113
3327
|
description:
|
|
3114
3328
|
type: string
|
|
3329
|
+
title: 描述
|
|
3115
3330
|
thumbnailUrl:
|
|
3116
3331
|
type: string
|
|
3332
|
+
title: 缩略图地址
|
|
3117
3333
|
title:
|
|
3118
3334
|
type: string
|
|
3335
|
+
title: 标题
|
|
3119
3336
|
url:
|
|
3120
3337
|
type: string
|
|
3338
|
+
title: 文章地址
|
|
3121
3339
|
puppetVersionResponse:
|
|
3122
3340
|
type: object
|
|
3123
3341
|
properties:
|