@juzi/wechaty-grpc 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/examples/promisify.d.ts +5 -5
- package/dist/cjs/examples/promisify.d.ts.map +1 -1
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +249 -8
- package/dist/cjs/out/wechaty/puppet.swagger.json +323 -132
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +104 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +280 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/cjs/proto/wechaty/puppet.proto +56 -0
- package/dist/cjs/src/chunk-transformer.d.ts +1 -1
- package/dist/cjs/src/chunk-transformer.d.ts.map +1 -1
- package/dist/cjs/src/config.d.ts +1 -1
- package/dist/cjs/src/config.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +5 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/examples/promisify.d.ts +5 -5
- package/dist/esm/examples/promisify.d.ts.map +1 -1
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +49 -1
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet/moment_pb.js +301 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +249 -8
- package/dist/esm/out/wechaty/puppet.swagger.json +323 -132
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +104 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +280 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/moment.proto +6 -0
- package/dist/esm/proto/wechaty/puppet.proto +56 -0
- package/dist/esm/src/chunk-transformer.d.ts +1 -1
- package/dist/esm/src/chunk-transformer.d.ts.map +1 -1
- package/dist/esm/src/config.d.ts +1 -1
- package/dist/esm/src/config.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +5 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +74 -0
- package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +518 -1
- package/out/wechaty/puppet/message_pb.d.ts +6 -0
- package/out/wechaty/puppet/message_pb.js +49 -1
- package/out/wechaty/puppet/moment_pb.d.ts +38 -0
- package/out/wechaty/puppet/moment_pb.js +301 -0
- package/out/wechaty/puppet.openapi.yaml +249 -8
- package/out/wechaty/puppet.swagger.json +323 -132
- package/out/wechaty/puppet_grpc_pb.d.ts +119 -0
- package/out/wechaty/puppet_grpc_pb.js +104 -0
- package/out/wechaty/puppet_pb_service.d.ts +133 -0
- package/out/wechaty/puppet_pb_service.js +280 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.29
|
|
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
|
|
@@ -1029,7 +1056,7 @@ paths:
|
|
|
1029
1056
|
- Puppet
|
|
1030
1057
|
/moment/coverage:
|
|
1031
1058
|
post:
|
|
1032
|
-
operationId:
|
|
1059
|
+
operationId: Puppet_MomentCoverage
|
|
1033
1060
|
responses:
|
|
1034
1061
|
'200':
|
|
1035
1062
|
description: A successful response.
|
|
@@ -1049,7 +1076,7 @@ paths:
|
|
|
1049
1076
|
- Puppet
|
|
1050
1077
|
/moment/publish:
|
|
1051
1078
|
post:
|
|
1052
|
-
operationId:
|
|
1079
|
+
operationId: Puppet_MomentPublish
|
|
1053
1080
|
responses:
|
|
1054
1081
|
'200':
|
|
1055
1082
|
description: A successful response.
|
|
@@ -1069,7 +1096,7 @@ paths:
|
|
|
1069
1096
|
- Puppet
|
|
1070
1097
|
/moment/signature:
|
|
1071
1098
|
post:
|
|
1072
|
-
operationId:
|
|
1099
|
+
operationId: Puppet_MomentSignature
|
|
1073
1100
|
responses:
|
|
1074
1101
|
'200':
|
|
1075
1102
|
description: A successful response.
|
|
@@ -1087,9 +1114,23 @@ paths:
|
|
|
1087
1114
|
$ref: '#/definitions/puppetMomentSignatureRequest'
|
|
1088
1115
|
tags:
|
|
1089
1116
|
- Puppet
|
|
1117
|
+
/moment/visibleList:
|
|
1118
|
+
get:
|
|
1119
|
+
operationId: Puppet_MomentVisibleList
|
|
1120
|
+
responses:
|
|
1121
|
+
'200':
|
|
1122
|
+
description: A successful response.
|
|
1123
|
+
schema:
|
|
1124
|
+
$ref: '#/definitions/puppetMomentVisibleListResponse'
|
|
1125
|
+
default:
|
|
1126
|
+
description: An unexpected error response.
|
|
1127
|
+
schema:
|
|
1128
|
+
$ref: '#/definitions/rpcStatus'
|
|
1129
|
+
tags:
|
|
1130
|
+
- Puppet
|
|
1090
1131
|
/post/like:
|
|
1091
1132
|
post:
|
|
1092
|
-
operationId:
|
|
1133
|
+
operationId: Puppet_PostTap
|
|
1093
1134
|
responses:
|
|
1094
1135
|
'200':
|
|
1095
1136
|
description: A successful response.
|
|
@@ -1109,7 +1150,7 @@ paths:
|
|
|
1109
1150
|
- Puppet
|
|
1110
1151
|
/post/payload:
|
|
1111
1152
|
post:
|
|
1112
|
-
operationId:
|
|
1153
|
+
operationId: Puppet_PostPayload
|
|
1113
1154
|
responses:
|
|
1114
1155
|
'200':
|
|
1115
1156
|
description: A successful response.
|
|
@@ -1129,7 +1170,7 @@ paths:
|
|
|
1129
1170
|
- Puppet
|
|
1130
1171
|
/post/sayable:
|
|
1131
1172
|
post:
|
|
1132
|
-
operationId:
|
|
1173
|
+
operationId: Puppet_PostPayloadSayable
|
|
1133
1174
|
responses:
|
|
1134
1175
|
'200':
|
|
1135
1176
|
description: A successful response.
|
|
@@ -1176,6 +1217,8 @@ paths:
|
|
|
1176
1217
|
@deprecated: use payload instead.
|
|
1177
1218
|
Huan(202109): Wrapper types must not be used going forward.
|
|
1178
1219
|
https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
1220
|
+
|
|
1221
|
+
Deprecated: will be removed after Dec 31, 2022
|
|
1179
1222
|
in: query
|
|
1180
1223
|
required: false
|
|
1181
1224
|
type: string
|
|
@@ -1294,10 +1337,12 @@ paths:
|
|
|
1294
1337
|
required: true
|
|
1295
1338
|
type: string
|
|
1296
1339
|
- name: contactId
|
|
1340
|
+
description: 被邀请联系人id
|
|
1297
1341
|
in: path
|
|
1298
1342
|
required: true
|
|
1299
1343
|
type: string
|
|
1300
1344
|
- name: inviteOnly
|
|
1345
|
+
description: 不明确,目前没见到使用这个的地方
|
|
1301
1346
|
in: query
|
|
1302
1347
|
required: false
|
|
1303
1348
|
type: boolean
|
|
@@ -1321,6 +1366,7 @@ paths:
|
|
|
1321
1366
|
required: true
|
|
1322
1367
|
type: string
|
|
1323
1368
|
- name: textStringValueDeprecated
|
|
1369
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1324
1370
|
in: query
|
|
1325
1371
|
required: false
|
|
1326
1372
|
type: string
|
|
@@ -1354,8 +1400,10 @@ paths:
|
|
|
1354
1400
|
properties:
|
|
1355
1401
|
textStringValueDeprecated:
|
|
1356
1402
|
type: string
|
|
1403
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1357
1404
|
text:
|
|
1358
1405
|
type: string
|
|
1406
|
+
title: 群公告
|
|
1359
1407
|
tags:
|
|
1360
1408
|
- Puppet
|
|
1361
1409
|
'/rooms/{id}/avatar':
|
|
@@ -1463,6 +1511,7 @@ paths:
|
|
|
1463
1511
|
required: true
|
|
1464
1512
|
type: string
|
|
1465
1513
|
- name: contactId
|
|
1514
|
+
description: 'Deprecated, will be removed after bot updated'
|
|
1466
1515
|
in: path
|
|
1467
1516
|
required: true
|
|
1468
1517
|
type: string
|
|
@@ -1556,6 +1605,7 @@ paths:
|
|
|
1556
1605
|
required: true
|
|
1557
1606
|
type: string
|
|
1558
1607
|
- name: topicStringValueDeprecated
|
|
1608
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
1559
1609
|
in: query
|
|
1560
1610
|
required: false
|
|
1561
1611
|
type: string
|
|
@@ -2021,7 +2071,10 @@ paths:
|
|
|
2021
2071
|
$ref: '#/definitions/rpcStatus'
|
|
2022
2072
|
parameters:
|
|
2023
2073
|
- name: body
|
|
2024
|
-
description:
|
|
2074
|
+
description: |-
|
|
2075
|
+
*
|
|
2076
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2077
|
+
to be confirmed. (streaming inputs)
|
|
2025
2078
|
in: body
|
|
2026
2079
|
required: true
|
|
2027
2080
|
schema:
|
|
@@ -2040,26 +2093,35 @@ definitions:
|
|
|
2040
2093
|
properties:
|
|
2041
2094
|
avatar:
|
|
2042
2095
|
type: string
|
|
2096
|
+
title: 头像
|
|
2043
2097
|
coverUrl:
|
|
2044
2098
|
type: string
|
|
2099
|
+
title: 封面地址
|
|
2045
2100
|
desc:
|
|
2046
2101
|
type: string
|
|
2102
|
+
title: 描述
|
|
2047
2103
|
extras:
|
|
2048
2104
|
type: string
|
|
2105
|
+
title: 额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。
|
|
2049
2106
|
feedType:
|
|
2050
2107
|
type: integer
|
|
2051
2108
|
format: int32
|
|
2109
|
+
title: 暂不明确含义,目前请固定传4
|
|
2052
2110
|
nickname:
|
|
2053
2111
|
type: string
|
|
2112
|
+
title: 用户名
|
|
2054
2113
|
thumbUrl:
|
|
2055
2114
|
type: string
|
|
2115
|
+
title: 缩略图地址
|
|
2056
2116
|
url:
|
|
2057
2117
|
type: string
|
|
2118
|
+
title: 视频号地址
|
|
2058
2119
|
puppetContactAliasResponse:
|
|
2059
2120
|
type: object
|
|
2060
2121
|
properties:
|
|
2061
2122
|
aliasStringValueDeprecated:
|
|
2062
2123
|
type: string
|
|
2124
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2063
2125
|
alias:
|
|
2064
2126
|
type: string
|
|
2065
2127
|
puppetContactAvatarResponse:
|
|
@@ -2067,6 +2129,7 @@ definitions:
|
|
|
2067
2129
|
properties:
|
|
2068
2130
|
fileboxStringValueDeprecated:
|
|
2069
2131
|
type: string
|
|
2132
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2070
2133
|
fileBox:
|
|
2071
2134
|
type: string
|
|
2072
2135
|
puppetContactCorporationRemarkResponse:
|
|
@@ -2080,6 +2143,11 @@ definitions:
|
|
|
2080
2143
|
- CONTACT_GENDER_MALE
|
|
2081
2144
|
- CONTACT_GENDER_FEMALE
|
|
2082
2145
|
default: CONTACT_GENDER_UNSPECIFIED
|
|
2146
|
+
description: |-
|
|
2147
|
+
- CONTACT_GENDER_UNSPECIFIED: 不明确
|
|
2148
|
+
- CONTACT_GENDER_MALE: 男
|
|
2149
|
+
- CONTACT_GENDER_FEMALE: 女
|
|
2150
|
+
title: 性别枚举
|
|
2083
2151
|
puppetContactListResponse:
|
|
2084
2152
|
type: object
|
|
2085
2153
|
properties:
|
|
@@ -2094,26 +2162,37 @@ definitions:
|
|
|
2094
2162
|
type: string
|
|
2095
2163
|
gender:
|
|
2096
2164
|
$ref: '#/definitions/puppetContactGender'
|
|
2165
|
+
title: 性别
|
|
2097
2166
|
type:
|
|
2098
2167
|
$ref: '#/definitions/puppetContactType'
|
|
2168
|
+
title: 类型
|
|
2099
2169
|
name:
|
|
2100
2170
|
type: string
|
|
2171
|
+
title: 姓名
|
|
2101
2172
|
avatar:
|
|
2102
2173
|
type: string
|
|
2174
|
+
title: 头像
|
|
2103
2175
|
address:
|
|
2104
2176
|
type: string
|
|
2177
|
+
title: 地址
|
|
2105
2178
|
alias:
|
|
2106
2179
|
type: string
|
|
2180
|
+
title: 别名,即备注
|
|
2107
2181
|
city:
|
|
2108
2182
|
type: string
|
|
2183
|
+
title: 城市
|
|
2109
2184
|
friend:
|
|
2110
2185
|
type: boolean
|
|
2186
|
+
title: 是否为好友
|
|
2111
2187
|
province:
|
|
2112
2188
|
type: string
|
|
2189
|
+
title: 省份
|
|
2113
2190
|
signature:
|
|
2114
2191
|
type: string
|
|
2192
|
+
title: 签名
|
|
2115
2193
|
star:
|
|
2116
2194
|
type: boolean
|
|
2195
|
+
title: 是否为特别好友
|
|
2117
2196
|
weixin:
|
|
2118
2197
|
type: string
|
|
2119
2198
|
description: >-
|
|
@@ -2129,24 +2208,34 @@ definitions:
|
|
|
2129
2208
|
@link https://github.com/wechaty/getting-started/issues/254
|
|
2130
2209
|
|
|
2131
2210
|
TODO: rename `weixin` to `handle` in v2.0.0
|
|
2211
|
+
|
|
2212
|
+
|
|
2213
|
+
IM专属id,在企微环境中特指weixinId
|
|
2132
2214
|
corporation:
|
|
2133
2215
|
type: string
|
|
2216
|
+
title: 企业
|
|
2134
2217
|
title:
|
|
2135
2218
|
type: string
|
|
2219
|
+
title: 头衔
|
|
2136
2220
|
description:
|
|
2137
2221
|
type: string
|
|
2222
|
+
title: 描述
|
|
2138
2223
|
coworker:
|
|
2139
2224
|
type: boolean
|
|
2225
|
+
title: 是否为同事
|
|
2140
2226
|
phones:
|
|
2141
2227
|
type: array
|
|
2142
2228
|
items:
|
|
2143
2229
|
type: string
|
|
2230
|
+
title: 电话号码,企微中最多5个
|
|
2144
2231
|
additionalInfo:
|
|
2145
2232
|
type: string
|
|
2233
|
+
title: 额外信息,是由JS对象stringify得到的字符串,目前支持的内容包含addContactTime、corpId等。
|
|
2146
2234
|
tagIds:
|
|
2147
2235
|
type: array
|
|
2148
2236
|
items:
|
|
2149
2237
|
type: string
|
|
2238
|
+
title: 标签(的id)
|
|
2150
2239
|
puppetContactPhoneResponse:
|
|
2151
2240
|
type: object
|
|
2152
2241
|
properties:
|
|
@@ -2176,6 +2265,12 @@ definitions:
|
|
|
2176
2265
|
- CONTACT_TYPE_OFFICIAL
|
|
2177
2266
|
- CONTACT_TYPE_CORPORATION
|
|
2178
2267
|
default: CONTACT_TYPE_UNSPECIFIED
|
|
2268
|
+
description: |-
|
|
2269
|
+
- CONTACT_TYPE_UNSPECIFIED: 不明确
|
|
2270
|
+
- CONTACT_TYPE_PERSONAL: 个微联系人
|
|
2271
|
+
- CONTACT_TYPE_OFFICIAL: 公众号
|
|
2272
|
+
- CONTACT_TYPE_CORPORATION: 企微联系人
|
|
2273
|
+
title: 类型枚举
|
|
2179
2274
|
puppetConversationReadResponse:
|
|
2180
2275
|
type: object
|
|
2181
2276
|
puppetCurrentUserResponse:
|
|
@@ -2190,6 +2285,10 @@ definitions:
|
|
|
2190
2285
|
type: string
|
|
2191
2286
|
puppetDingResponse:
|
|
2192
2287
|
type: object
|
|
2288
|
+
title: |-
|
|
2289
|
+
*
|
|
2290
|
+
Ding has no return value
|
|
2291
|
+
Puppet should emit a `ding` event when it receives a `ding()` call
|
|
2193
2292
|
puppetDirtyPayloadResponse:
|
|
2194
2293
|
type: object
|
|
2195
2294
|
puppetDownloadResponse:
|
|
@@ -2205,6 +2304,7 @@ definitions:
|
|
|
2205
2304
|
$ref: '#/definitions/puppetEventType'
|
|
2206
2305
|
payload:
|
|
2207
2306
|
type: string
|
|
2307
|
+
description: 'JSON.stringify({ ... })'
|
|
2208
2308
|
title: 'TODO: Huan(202002) consider to use a PB Map?'
|
|
2209
2309
|
puppetEventType:
|
|
2210
2310
|
type: string
|
|
@@ -2240,6 +2340,11 @@ definitions:
|
|
|
2240
2340
|
title: 'oneof payload {'
|
|
2241
2341
|
name:
|
|
2242
2342
|
type: string
|
|
2343
|
+
title: '}'
|
|
2344
|
+
description: |-
|
|
2345
|
+
*
|
|
2346
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2347
|
+
to be confirmed.
|
|
2243
2348
|
puppetFriendshipAcceptResponse:
|
|
2244
2349
|
type: object
|
|
2245
2350
|
puppetFriendshipAddResponse:
|
|
@@ -2251,16 +2356,22 @@ definitions:
|
|
|
2251
2356
|
type: string
|
|
2252
2357
|
contactId:
|
|
2253
2358
|
type: string
|
|
2359
|
+
title: 加好友的联系人id
|
|
2254
2360
|
hello:
|
|
2255
2361
|
type: string
|
|
2362
|
+
title: 加好友的打招呼消息
|
|
2256
2363
|
type:
|
|
2257
2364
|
$ref: '#/definitions/puppetFriendshipType'
|
|
2365
|
+
title: 好友事件类型
|
|
2258
2366
|
stranger:
|
|
2259
2367
|
type: string
|
|
2368
|
+
title: 不明确含义,wxwork中未使用
|
|
2260
2369
|
ticket:
|
|
2261
2370
|
type: string
|
|
2371
|
+
title: 个微遗留字段,wxwork中会传corp_id
|
|
2262
2372
|
scene:
|
|
2263
2373
|
$ref: '#/definitions/puppetFriendshipSceneType'
|
|
2374
|
+
title: 加好友的场景(例如通过名片添加、通过群添加等),wxwork未使用
|
|
2264
2375
|
puppetFriendshipSceneType:
|
|
2265
2376
|
type: string
|
|
2266
2377
|
enum:
|
|
@@ -2277,6 +2388,7 @@ definitions:
|
|
|
2277
2388
|
- FRIENDSHIP_SCENE_TYPE_SHAKING
|
|
2278
2389
|
- FRIENDSHIP_SCENE_TYPE_QRCODE
|
|
2279
2390
|
default: FRIENDSHIP_SCENE_TYPE_UNSPECIFIED
|
|
2391
|
+
title: 事件场景 wxwork中未使用
|
|
2280
2392
|
puppetFriendshipSearchHandleRequest:
|
|
2281
2393
|
type: object
|
|
2282
2394
|
properties:
|
|
@@ -2312,6 +2424,7 @@ definitions:
|
|
|
2312
2424
|
properties:
|
|
2313
2425
|
contactIdStringValueDeprecated:
|
|
2314
2426
|
type: string
|
|
2427
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2315
2428
|
title: nullable
|
|
2316
2429
|
contactId:
|
|
2317
2430
|
type: string
|
|
@@ -2320,6 +2433,7 @@ definitions:
|
|
|
2320
2433
|
properties:
|
|
2321
2434
|
contactIdStringValueDeprecated:
|
|
2322
2435
|
type: string
|
|
2436
|
+
description: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2323
2437
|
title: nullable
|
|
2324
2438
|
contactId:
|
|
2325
2439
|
type: string
|
|
@@ -2333,6 +2447,14 @@ definitions:
|
|
|
2333
2447
|
- FRIENDSHIP_TYPE_DELETE
|
|
2334
2448
|
- FRIENDSHIP_TYPE_REMOVED
|
|
2335
2449
|
default: FRIENDSHIP_TYPE_UNSPECIFIED
|
|
2450
|
+
description: |-
|
|
2451
|
+
- FRIENDSHIP_TYPE_UNSPECIFIED: 不明确
|
|
2452
|
+
- FRIENDSHIP_TYPE_CONFIRM: 确认——双方互加后触发
|
|
2453
|
+
- FRIENDSHIP_TYPE_RECEIVE: 收到——收到好友请求后触发
|
|
2454
|
+
- FRIENDSHIP_TYPE_VERIFY: 验证——主动加他人为好友时触发,wxwork里暂无此事件
|
|
2455
|
+
- FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发
|
|
2456
|
+
- FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发
|
|
2457
|
+
title: 事件类型
|
|
2336
2458
|
puppetImageType:
|
|
2337
2459
|
type: string
|
|
2338
2460
|
enum:
|
|
@@ -2347,16 +2469,21 @@ definitions:
|
|
|
2347
2469
|
accuracy:
|
|
2348
2470
|
type: number
|
|
2349
2471
|
format: float
|
|
2472
|
+
title: 精确度,默认为15
|
|
2350
2473
|
address:
|
|
2351
2474
|
type: string
|
|
2475
|
+
title: 地址,xx省xx市xx区xx路xx号
|
|
2352
2476
|
latitude:
|
|
2353
2477
|
type: number
|
|
2354
2478
|
format: double
|
|
2479
|
+
title: 纬度,北纬为正
|
|
2355
2480
|
longitude:
|
|
2356
2481
|
type: number
|
|
2357
2482
|
format: double
|
|
2483
|
+
title: 经度,东经为正
|
|
2358
2484
|
name:
|
|
2359
2485
|
type: string
|
|
2486
|
+
title: 地址名,例如xx大厦
|
|
2360
2487
|
puppetLogoutResponse:
|
|
2361
2488
|
type: object
|
|
2362
2489
|
puppetMessageChannelResponse:
|
|
@@ -2394,6 +2521,7 @@ definitions:
|
|
|
2394
2521
|
properties:
|
|
2395
2522
|
idStringValueDeprecated:
|
|
2396
2523
|
type: string
|
|
2524
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2397
2525
|
title: |-
|
|
2398
2526
|
*
|
|
2399
2527
|
@deprecated: use payload instead.
|
|
@@ -2408,6 +2536,7 @@ definitions:
|
|
|
2408
2536
|
type: string
|
|
2409
2537
|
type:
|
|
2410
2538
|
$ref: '#/definitions/puppetImageType'
|
|
2539
|
+
title: 获取图片的类型(缩略图、原图)
|
|
2411
2540
|
puppetMessageImageResponse:
|
|
2412
2541
|
type: object
|
|
2413
2542
|
properties:
|
|
@@ -2435,6 +2564,9 @@ definitions:
|
|
|
2435
2564
|
properties:
|
|
2436
2565
|
miniProgramDeprecated:
|
|
2437
2566
|
type: string
|
|
2567
|
+
description: >-
|
|
2568
|
+
deprecated after Sep 31, 2021, remove compatible code after Dec 31,
|
|
2569
|
+
2022
|
|
2438
2570
|
title: |-
|
|
2439
2571
|
*
|
|
2440
2572
|
Huan(202110): We should use payload instead of JSON.stringify string
|
|
@@ -2448,8 +2580,10 @@ definitions:
|
|
|
2448
2580
|
type: string
|
|
2449
2581
|
filename:
|
|
2450
2582
|
type: string
|
|
2583
|
+
title: 文件名
|
|
2451
2584
|
text:
|
|
2452
2585
|
type: string
|
|
2586
|
+
title: 文本内容
|
|
2453
2587
|
timestampDeprecated:
|
|
2454
2588
|
type: string
|
|
2455
2589
|
format: uint64
|
|
@@ -2459,21 +2593,30 @@ definitions:
|
|
|
2459
2593
|
Huan(202109): use receive_time(10) instead
|
|
2460
2594
|
type:
|
|
2461
2595
|
$ref: '#/definitions/puppetMessageType'
|
|
2596
|
+
title: 类型
|
|
2462
2597
|
talkerId:
|
|
2463
2598
|
type: string
|
|
2599
|
+
title: 发送者id
|
|
2464
2600
|
roomId:
|
|
2465
2601
|
type: string
|
|
2602
|
+
title: 群聊id
|
|
2466
2603
|
listenerId:
|
|
2467
2604
|
type: string
|
|
2605
|
+
title: 接受者id
|
|
2468
2606
|
mentionIds:
|
|
2469
2607
|
type: array
|
|
2470
2608
|
items:
|
|
2471
2609
|
type: string
|
|
2610
|
+
title: 群消息@人的id列表
|
|
2472
2611
|
receiveTime:
|
|
2473
2612
|
type: string
|
|
2474
2613
|
format: date-time
|
|
2614
|
+
title: 收到消息时间
|
|
2475
2615
|
quoteId:
|
|
2476
2616
|
type: string
|
|
2617
|
+
title: 被引用的消息id
|
|
2618
|
+
additionalInfo:
|
|
2619
|
+
type: string
|
|
2477
2620
|
puppetMessagePreviewResponse:
|
|
2478
2621
|
type: object
|
|
2479
2622
|
properties:
|
|
@@ -2494,6 +2637,7 @@ definitions:
|
|
|
2494
2637
|
properties:
|
|
2495
2638
|
idStringValueDeprecated:
|
|
2496
2639
|
type: string
|
|
2640
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2497
2641
|
title: |-
|
|
2498
2642
|
*
|
|
2499
2643
|
@deprecated:
|
|
@@ -2506,13 +2650,16 @@ definitions:
|
|
|
2506
2650
|
properties:
|
|
2507
2651
|
conversationId:
|
|
2508
2652
|
type: string
|
|
2653
|
+
title: 对话id
|
|
2509
2654
|
fileBox:
|
|
2510
2655
|
type: string
|
|
2656
|
+
title: 发送文件的fileBox.toJSON()
|
|
2511
2657
|
puppetMessageSendFileResponse:
|
|
2512
2658
|
type: object
|
|
2513
2659
|
properties:
|
|
2514
2660
|
idStringValueDeprecated:
|
|
2515
2661
|
type: string
|
|
2662
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2516
2663
|
title: |-
|
|
2517
2664
|
*
|
|
2518
2665
|
@deprecated:
|
|
@@ -2528,11 +2675,17 @@ definitions:
|
|
|
2528
2675
|
title: 'oneof payload {'
|
|
2529
2676
|
fileBoxChunk:
|
|
2530
2677
|
$ref: '#/definitions/puppetFileBoxChunk'
|
|
2678
|
+
title: '};'
|
|
2679
|
+
description: |-
|
|
2680
|
+
*
|
|
2681
|
+
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2682
|
+
to be confirmed.
|
|
2531
2683
|
puppetMessageSendFileStreamResponse:
|
|
2532
2684
|
type: object
|
|
2533
2685
|
properties:
|
|
2534
2686
|
idStringValueDeprecated:
|
|
2535
2687
|
type: string
|
|
2688
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2536
2689
|
title: |-
|
|
2537
2690
|
*
|
|
2538
2691
|
@deprecated:
|
|
@@ -2558,6 +2711,7 @@ definitions:
|
|
|
2558
2711
|
properties:
|
|
2559
2712
|
idStringValueDeprecated:
|
|
2560
2713
|
type: string
|
|
2714
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2561
2715
|
title: |-
|
|
2562
2716
|
*
|
|
2563
2717
|
@deprecated:
|
|
@@ -2570,6 +2724,7 @@ definitions:
|
|
|
2570
2724
|
properties:
|
|
2571
2725
|
idStringValueDeprecated:
|
|
2572
2726
|
type: string
|
|
2727
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2573
2728
|
title: |-
|
|
2574
2729
|
*
|
|
2575
2730
|
@deprecated:
|
|
@@ -2582,6 +2737,7 @@ definitions:
|
|
|
2582
2737
|
properties:
|
|
2583
2738
|
idStringValueDeprecated:
|
|
2584
2739
|
type: string
|
|
2740
|
+
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2585
2741
|
title: |-
|
|
2586
2742
|
*
|
|
2587
2743
|
@deprecated:
|
|
@@ -2612,11 +2768,34 @@ definitions:
|
|
|
2612
2768
|
- MESSAGE_TYPE_CHANNEL
|
|
2613
2769
|
- MESSAGE_TYPE_SYSTEM
|
|
2614
2770
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
2771
|
+
description: |-
|
|
2772
|
+
- MESSAGE_TYPE_ATTACHMENT: 文件消息
|
|
2773
|
+
- MESSAGE_TYPE_AUDIO: 音频
|
|
2774
|
+
- MESSAGE_TYPE_CONTACT: 名片
|
|
2775
|
+
- MESSAGE_TYPE_CHAT_HISTORY: 聊天记录,wxwork暂不支持
|
|
2776
|
+
- MESSAGE_TYPE_EMOTCION: 表情
|
|
2777
|
+
- MESSAGE_TYPE_IMAGE: 图片
|
|
2778
|
+
- MESSAGE_TYPE_TEXT: 文本
|
|
2779
|
+
- MESSAGE_TYPE_LOCATION: 地址
|
|
2780
|
+
- MESSAGE_TYPE_MINI_PROGRAM: 小程序
|
|
2781
|
+
- MESSAGE_TYPE_GROUP_NOTE: 群接龙消息,wxwork中没有
|
|
2782
|
+
- MESSAGE_TYPE_TRANSFER: 转账,wxwork中没有
|
|
2783
|
+
- MESSAGE_TYPE_RED_ENVELOPE: 红包,wxwork中没有
|
|
2784
|
+
- MESSAGE_TYPE_RECALLED: 撤回
|
|
2785
|
+
- MESSAGE_TYPE_URL: 链接
|
|
2786
|
+
- MESSAGE_TYPE_VIDEO: 视频
|
|
2787
|
+
- MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有
|
|
2788
|
+
- MESSAGE_TYPE_CHANNEL: 视频号
|
|
2789
|
+
- MESSAGE_TYPE_SYSTEM: 系统消息
|
|
2790
|
+
title: 消息类型
|
|
2615
2791
|
puppetMessageUrlResponse:
|
|
2616
2792
|
type: object
|
|
2617
2793
|
properties:
|
|
2618
2794
|
urlLinkDeprecated:
|
|
2619
2795
|
type: string
|
|
2796
|
+
description: >-
|
|
2797
|
+
deprecated after Sep 31, 2021, remove compatible code after Dec 31,
|
|
2798
|
+
2022
|
|
2620
2799
|
title: |-
|
|
2621
2800
|
*
|
|
2622
2801
|
Huan(202110): We should use payload instead of JSON.stringify string
|
|
@@ -2628,22 +2807,31 @@ definitions:
|
|
|
2628
2807
|
properties:
|
|
2629
2808
|
appid:
|
|
2630
2809
|
type: string
|
|
2810
|
+
title: appId,形式如wx4ff94de0d8038c25
|
|
2631
2811
|
description:
|
|
2632
2812
|
type: string
|
|
2813
|
+
title: 描述(副标题)
|
|
2633
2814
|
pagePath:
|
|
2634
2815
|
type: string
|
|
2816
|
+
title: 访问路径
|
|
2635
2817
|
iconUrl:
|
|
2636
2818
|
type: string
|
|
2819
|
+
title: 图标路径
|
|
2637
2820
|
shareId:
|
|
2638
2821
|
type: string
|
|
2822
|
+
title: 发送小程序的用户id,可不填
|
|
2639
2823
|
thumbUrl:
|
|
2640
2824
|
type: string
|
|
2825
|
+
title: 缩略图路径
|
|
2641
2826
|
title:
|
|
2642
2827
|
type: string
|
|
2828
|
+
title: 标题
|
|
2643
2829
|
username:
|
|
2644
2830
|
type: string
|
|
2831
|
+
title: 关联公众号id,形式gh_69105b80ea75@app
|
|
2645
2832
|
thumbKey:
|
|
2646
2833
|
type: string
|
|
2834
|
+
title: 缩略图的key,可不填
|
|
2647
2835
|
puppetMomentCoverageRequest:
|
|
2648
2836
|
type: object
|
|
2649
2837
|
properties:
|
|
@@ -2674,6 +2862,13 @@ definitions:
|
|
|
2674
2862
|
properties:
|
|
2675
2863
|
text:
|
|
2676
2864
|
type: string
|
|
2865
|
+
puppetMomentVisibleListResponse:
|
|
2866
|
+
type: object
|
|
2867
|
+
properties:
|
|
2868
|
+
contactIds:
|
|
2869
|
+
type: array
|
|
2870
|
+
items:
|
|
2871
|
+
type: string
|
|
2677
2872
|
puppetPayloadType:
|
|
2678
2873
|
type: string
|
|
2679
2874
|
enum:
|
|
@@ -2692,8 +2887,10 @@ definitions:
|
|
|
2692
2887
|
properties:
|
|
2693
2888
|
parentId:
|
|
2694
2889
|
type: string
|
|
2890
|
+
title: '转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id'
|
|
2695
2891
|
rootId:
|
|
2696
2892
|
type: string
|
|
2893
|
+
title: 转发的根id,评论时应该是朋友圈的id
|
|
2697
2894
|
type:
|
|
2698
2895
|
$ref: '#/definitions/puppetPostType'
|
|
2699
2896
|
sayableList:
|
|
@@ -2727,8 +2924,10 @@ definitions:
|
|
|
2727
2924
|
properties:
|
|
2728
2925
|
parentId:
|
|
2729
2926
|
type: string
|
|
2927
|
+
title: 转发的上一级id
|
|
2730
2928
|
rootId:
|
|
2731
2929
|
type: string
|
|
2930
|
+
title: 转发的根id
|
|
2732
2931
|
type:
|
|
2733
2932
|
$ref: '#/definitions/puppetPostType'
|
|
2734
2933
|
sayableList:
|
|
@@ -2757,10 +2956,12 @@ definitions:
|
|
|
2757
2956
|
$ref: '#/definitions/puppetSayableType'
|
|
2758
2957
|
id:
|
|
2759
2958
|
type: string
|
|
2959
|
+
title: 服务器端获取的Post只传回id,异步进行获取
|
|
2760
2960
|
text:
|
|
2761
2961
|
type: string
|
|
2762
2962
|
fileBox:
|
|
2763
2963
|
type: string
|
|
2964
|
+
title: FileBox.toJSON()
|
|
2764
2965
|
urlLink:
|
|
2765
2966
|
$ref: '#/definitions/puppetUrlLinkPayload'
|
|
2766
2967
|
channel:
|
|
@@ -2769,6 +2970,7 @@ definitions:
|
|
|
2769
2970
|
type: array
|
|
2770
2971
|
items:
|
|
2771
2972
|
type: string
|
|
2973
|
+
title: 文本类型的sayable可传,朋友圈暂不支持
|
|
2772
2974
|
puppetPostTapRequest:
|
|
2773
2975
|
type: object
|
|
2774
2976
|
properties:
|
|
@@ -2778,6 +2980,7 @@ definitions:
|
|
|
2778
2980
|
$ref: '#/definitions/puppetTapType'
|
|
2779
2981
|
tap:
|
|
2780
2982
|
type: boolean
|
|
2983
|
+
title: 点赞还是取消
|
|
2781
2984
|
puppetPostTapResponse:
|
|
2782
2985
|
type: object
|
|
2783
2986
|
properties:
|
|
@@ -2791,6 +2994,10 @@ definitions:
|
|
|
2791
2994
|
- POST_TYPE_CHANNEL
|
|
2792
2995
|
- POST_TYPE_MESSAGE
|
|
2793
2996
|
default: POST_TYPE_UNSPECIFIED
|
|
2997
|
+
title: |-
|
|
2998
|
+
- POST_TYPE_MOMENT: 朋友圈
|
|
2999
|
+
- POST_TYPE_CHANNEL: 视频号——原始设计走post,实际目前采用message
|
|
3000
|
+
- POST_TYPE_MESSAGE: 消息——富媒体消息
|
|
2794
3001
|
puppetReferrer:
|
|
2795
3002
|
type: object
|
|
2796
3003
|
properties:
|
|
@@ -2811,6 +3018,7 @@ definitions:
|
|
|
2811
3018
|
properties:
|
|
2812
3019
|
textStringValueDeprecated:
|
|
2813
3020
|
type: string
|
|
3021
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2814
3022
|
text:
|
|
2815
3023
|
type: string
|
|
2816
3024
|
puppetRoomAvatarResponse:
|
|
@@ -2825,8 +3033,10 @@ definitions:
|
|
|
2825
3033
|
type: array
|
|
2826
3034
|
items:
|
|
2827
3035
|
type: string
|
|
3036
|
+
title: 初始群成员id
|
|
2828
3037
|
topic:
|
|
2829
3038
|
type: string
|
|
3039
|
+
title: 群名称
|
|
2830
3040
|
puppetRoomCreateResponse:
|
|
2831
3041
|
type: object
|
|
2832
3042
|
properties:
|
|
@@ -2843,31 +3053,40 @@ definitions:
|
|
|
2843
3053
|
type: string
|
|
2844
3054
|
inviterId:
|
|
2845
3055
|
type: string
|
|
3056
|
+
title: 邀请者id
|
|
2846
3057
|
topic:
|
|
2847
3058
|
type: string
|
|
3059
|
+
title: 群名称
|
|
2848
3060
|
memberCount:
|
|
2849
3061
|
type: integer
|
|
2850
3062
|
format: int32
|
|
3063
|
+
title: 群成员数量
|
|
2851
3064
|
memberIds:
|
|
2852
3065
|
type: array
|
|
2853
3066
|
items:
|
|
2854
3067
|
type: string
|
|
3068
|
+
title: 群成员id列表
|
|
2855
3069
|
timestampUint64Deprecated:
|
|
2856
3070
|
type: string
|
|
2857
3071
|
format: uint64
|
|
3072
|
+
description: 'Deprecated: will be removed after Dec 31, 2022'
|
|
2858
3073
|
title: |-
|
|
2859
3074
|
*
|
|
2860
3075
|
@deprecated will be removed after Dec 31, 2022
|
|
2861
3076
|
Huan(202109): use receive_time(10) instead
|
|
2862
3077
|
avatar:
|
|
2863
3078
|
type: string
|
|
3079
|
+
title: 群头像
|
|
2864
3080
|
invitation:
|
|
2865
3081
|
type: string
|
|
3082
|
+
title: 在企微中为群邀请的链接地址
|
|
2866
3083
|
receiverId:
|
|
2867
3084
|
type: string
|
|
3085
|
+
title: 收到群邀请的成员id
|
|
2868
3086
|
receiveTime:
|
|
2869
3087
|
type: string
|
|
2870
3088
|
format: date-time
|
|
3089
|
+
title: 时间戳
|
|
2871
3090
|
puppetRoomListResponse:
|
|
2872
3091
|
type: object
|
|
2873
3092
|
properties:
|
|
@@ -2889,12 +3108,16 @@ definitions:
|
|
|
2889
3108
|
type: string
|
|
2890
3109
|
roomAlias:
|
|
2891
3110
|
type: string
|
|
3111
|
+
title: 联系人在群内的别名(群备注)
|
|
2892
3112
|
inviterId:
|
|
2893
3113
|
type: string
|
|
3114
|
+
title: 邀请者id
|
|
2894
3115
|
avatar:
|
|
2895
3116
|
type: string
|
|
3117
|
+
title: 头像
|
|
2896
3118
|
name:
|
|
2897
3119
|
type: string
|
|
3120
|
+
title: 名称
|
|
2898
3121
|
additionalInfo:
|
|
2899
3122
|
type: string
|
|
2900
3123
|
puppetRoomPayloadResponse:
|
|
@@ -2904,20 +3127,26 @@ definitions:
|
|
|
2904
3127
|
type: string
|
|
2905
3128
|
topic:
|
|
2906
3129
|
type: string
|
|
3130
|
+
title: 群名称
|
|
2907
3131
|
avatar:
|
|
2908
3132
|
type: string
|
|
3133
|
+
title: 群头像
|
|
2909
3134
|
ownerId:
|
|
2910
3135
|
type: string
|
|
3136
|
+
title: 群主id
|
|
2911
3137
|
adminIds:
|
|
2912
3138
|
type: array
|
|
2913
3139
|
items:
|
|
2914
3140
|
type: string
|
|
3141
|
+
title: 群管理员id列表
|
|
2915
3142
|
memberIds:
|
|
2916
3143
|
type: array
|
|
2917
3144
|
items:
|
|
2918
3145
|
type: string
|
|
3146
|
+
title: 群成员id列表
|
|
2919
3147
|
handle:
|
|
2920
3148
|
type: string
|
|
3149
|
+
title: IM内部id,企微中为群的chat_id
|
|
2921
3150
|
additionalInfo:
|
|
2922
3151
|
type: string
|
|
2923
3152
|
puppetRoomQRCodeResponse:
|
|
@@ -2932,6 +3161,7 @@ definitions:
|
|
|
2932
3161
|
properties:
|
|
2933
3162
|
topicStringValueDeprecated:
|
|
2934
3163
|
type: string
|
|
3164
|
+
title: 'DEPRECATED, will be removed after Dec 31, 2022'
|
|
2935
3165
|
topic:
|
|
2936
3166
|
type: string
|
|
2937
3167
|
puppetSayableType:
|
|
@@ -2953,10 +3183,12 @@ definitions:
|
|
|
2953
3183
|
type: array
|
|
2954
3184
|
items:
|
|
2955
3185
|
type: string
|
|
3186
|
+
title: 要打的标签的id列表
|
|
2956
3187
|
contactIds:
|
|
2957
3188
|
type: array
|
|
2958
3189
|
items:
|
|
2959
3190
|
type: string
|
|
3191
|
+
title: 要打标签的联系人id列表
|
|
2960
3192
|
puppetTagContactTagAddResponse:
|
|
2961
3193
|
type: object
|
|
2962
3194
|
puppetTagContactTagListResponse:
|
|
@@ -3036,8 +3268,10 @@ definitions:
|
|
|
3036
3268
|
type: string
|
|
3037
3269
|
name:
|
|
3038
3270
|
type: string
|
|
3271
|
+
title: 标签名
|
|
3039
3272
|
groupId:
|
|
3040
3273
|
type: string
|
|
3274
|
+
title: 所属标签组的id,可为空
|
|
3041
3275
|
type:
|
|
3042
3276
|
$ref: '#/definitions/puppetTagType'
|
|
3043
3277
|
puppetTagPayloadRequest:
|
|
@@ -3090,6 +3324,9 @@ definitions:
|
|
|
3090
3324
|
- PERSONAL
|
|
3091
3325
|
- CORPORATION
|
|
3092
3326
|
default: Unspecific
|
|
3327
|
+
title: |-
|
|
3328
|
+
- PERSONAL: 个人标签
|
|
3329
|
+
- CORPORATION: 企业标签
|
|
3093
3330
|
puppetTapType:
|
|
3094
3331
|
type: string
|
|
3095
3332
|
enum:
|
|
@@ -3112,12 +3349,16 @@ definitions:
|
|
|
3112
3349
|
properties:
|
|
3113
3350
|
description:
|
|
3114
3351
|
type: string
|
|
3352
|
+
title: 描述
|
|
3115
3353
|
thumbnailUrl:
|
|
3116
3354
|
type: string
|
|
3355
|
+
title: 缩略图地址
|
|
3117
3356
|
title:
|
|
3118
3357
|
type: string
|
|
3358
|
+
title: 标题
|
|
3119
3359
|
url:
|
|
3120
3360
|
type: string
|
|
3361
|
+
title: 文章地址
|
|
3121
3362
|
puppetVersionResponse:
|
|
3122
3363
|
type: object
|
|
3123
3364
|
properties:
|