@juzi/wechaty-grpc 1.0.63 → 1.0.65
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/auth/raw-https/client.js.map +1 -1
- package/dist/cjs/examples/auth/server.js +5 -6
- package/dist/cjs/examples/auth/server.js.map +1 -1
- package/dist/cjs/examples/client.js +2 -1
- package/dist/cjs/examples/client.js.map +1 -1
- package/dist/cjs/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/cjs/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +164 -86
- package/dist/cjs/out/wechaty/puppet.swagger.json +101 -5
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -1
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/cjs/proto/wechaty/puppet/call.proto +28 -0
- package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/cjs/proto/wechaty/puppet/message.proto +11 -0
- package/dist/cjs/proto/wechaty/puppet.proto +5 -1
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +7 -6
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/health-check.spec.js +2 -2
- package/dist/cjs/tests/health-check.spec.js.map +1 -1
- package/dist/cjs/tests/integration.spec.js.map +1 -1
- package/dist/cjs/tests/nullable.spec.js +4 -0
- package/dist/cjs/tests/nullable.spec.js.map +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/auth/raw-https/client.js.map +1 -1
- package/dist/esm/examples/auth/server.js +2 -3
- package/dist/esm/examples/auth/server.js.map +1 -1
- package/dist/esm/examples/client.js +2 -1
- package/dist/esm/examples/client.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/call_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/dist/esm/out/wechaty/puppet/call_pb.js +338 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/call_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/dist/esm/out/wechaty/puppet/channel_pb.js +19 -8
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +330 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +164 -86
- package/dist/esm/out/wechaty/puppet.swagger.json +101 -5
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -1
- package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
- package/dist/esm/out/wechaty/puppet_pb.js +0 -2
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
- package/dist/esm/proto/wechaty/puppet/call.proto +28 -0
- package/dist/esm/proto/wechaty/puppet/channel.proto +8 -1
- package/dist/esm/proto/wechaty/puppet/message.proto +11 -0
- package/dist/esm/proto/wechaty/puppet.proto +5 -1
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +7 -6
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/health-check.spec.js +2 -2
- package/dist/esm/tests/health-check.spec.js.map +1 -1
- package/dist/esm/tests/integration.spec.js.map +1 -1
- package/dist/esm/tests/nullable.spec.js +4 -0
- package/dist/esm/tests/nullable.spec.js.map +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/wechaty/puppet/call_grpc_pb.js +1 -0
- package/out/wechaty/puppet/call_pb.d.ts +61 -0
- package/out/wechaty/puppet/call_pb.js +338 -0
- package/out/wechaty/puppet/call_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/call_pb_service.js +3 -0
- package/out/wechaty/puppet/channel_pb.d.ts +12 -3
- package/out/wechaty/puppet/channel_pb.js +19 -8
- package/out/wechaty/puppet/message_pb.d.ts +45 -0
- package/out/wechaty/puppet/message_pb.js +330 -1
- package/out/wechaty/puppet.openapi.yaml +164 -86
- package/out/wechaty/puppet.swagger.json +101 -5
- package/out/wechaty/puppet_grpc_pb.d.ts +17 -1
- package/out/wechaty/puppet_grpc_pb.js +33 -1
- package/out/wechaty/puppet_pb.d.ts +0 -1
- package/out/wechaty/puppet_pb.js +0 -2
- package/out/wechaty/puppet_pb_service.d.ts +19 -0
- package/out/wechaty/puppet_pb_service.js +40 -0
- package/package.json +7 -6
- package/src/package-json.ts +7 -6
|
@@ -9,14 +9,14 @@ 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.65
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
|
-
url:
|
|
15
|
+
url: https://github.com/wechaty/openapi
|
|
16
16
|
email: wechaty@chatie.io
|
|
17
17
|
license:
|
|
18
18
|
name: Apache-2.0
|
|
19
|
-
url:
|
|
19
|
+
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
20
20
|
tags:
|
|
21
21
|
- name: Puppet
|
|
22
22
|
consumes:
|
|
@@ -43,7 +43,7 @@ paths:
|
|
|
43
43
|
type: string
|
|
44
44
|
tags:
|
|
45
45
|
- Puppet
|
|
46
|
-
|
|
46
|
+
/contact/room/{roomId}/alias/{alias}:
|
|
47
47
|
put:
|
|
48
48
|
operationId: Puppet_ContactSelfRoomAlias
|
|
49
49
|
responses:
|
|
@@ -85,7 +85,7 @@ paths:
|
|
|
85
85
|
$ref: '#/definitions/rpcStatus'
|
|
86
86
|
tags:
|
|
87
87
|
- Puppet
|
|
88
|
-
|
|
88
|
+
/contacts/self/name/{name}:
|
|
89
89
|
put:
|
|
90
90
|
operationId: Puppet_ContactSelfName
|
|
91
91
|
responses:
|
|
@@ -140,7 +140,7 @@ paths:
|
|
|
140
140
|
$ref: '#/definitions/puppetContactSelfSignatureRequest'
|
|
141
141
|
tags:
|
|
142
142
|
- Puppet
|
|
143
|
-
|
|
143
|
+
/contacts/{contactId}/corporation-remark:
|
|
144
144
|
put:
|
|
145
145
|
operationId: Puppet_ContactCorporationRemark
|
|
146
146
|
responses:
|
|
@@ -165,12 +165,12 @@ paths:
|
|
|
165
165
|
properties:
|
|
166
166
|
corporationRemarkStringValueDeprecated:
|
|
167
167
|
type: string
|
|
168
|
-
title:
|
|
168
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
169
169
|
corporationRemark:
|
|
170
170
|
type: string
|
|
171
171
|
tags:
|
|
172
172
|
- Puppet
|
|
173
|
-
|
|
173
|
+
/contacts/{contactId}/delete:
|
|
174
174
|
put:
|
|
175
175
|
operationId: Puppet_ContactDelete
|
|
176
176
|
responses:
|
|
@@ -194,7 +194,7 @@ paths:
|
|
|
194
194
|
type: object
|
|
195
195
|
tags:
|
|
196
196
|
- Puppet
|
|
197
|
-
|
|
197
|
+
/contacts/{contactId}/description:
|
|
198
198
|
put:
|
|
199
199
|
operationId: Puppet_ContactDescription
|
|
200
200
|
responses:
|
|
@@ -219,12 +219,12 @@ paths:
|
|
|
219
219
|
properties:
|
|
220
220
|
descriptionStringValueDeprecated:
|
|
221
221
|
type: string
|
|
222
|
-
title:
|
|
222
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
223
223
|
description:
|
|
224
224
|
type: string
|
|
225
225
|
tags:
|
|
226
226
|
- Puppet
|
|
227
|
-
|
|
227
|
+
/contacts/{contactId}/phone:
|
|
228
228
|
put:
|
|
229
229
|
operationId: Puppet_ContactPhone
|
|
230
230
|
responses:
|
|
@@ -253,7 +253,7 @@ paths:
|
|
|
253
253
|
type: string
|
|
254
254
|
tags:
|
|
255
255
|
- Puppet
|
|
256
|
-
|
|
256
|
+
/contacts/{contactId}/tag/tags:
|
|
257
257
|
get:
|
|
258
258
|
operationId: Puppet_TagContactTagList
|
|
259
259
|
responses:
|
|
@@ -272,7 +272,7 @@ paths:
|
|
|
272
272
|
type: string
|
|
273
273
|
tags:
|
|
274
274
|
- Puppet
|
|
275
|
-
|
|
275
|
+
/contacts/{id}:
|
|
276
276
|
get:
|
|
277
277
|
summary: Get a contact payload
|
|
278
278
|
description: Contact
|
|
@@ -293,7 +293,7 @@ paths:
|
|
|
293
293
|
type: string
|
|
294
294
|
tags:
|
|
295
295
|
- contact
|
|
296
|
-
|
|
296
|
+
/contacts/{id}/alias:
|
|
297
297
|
put:
|
|
298
298
|
operationId: Puppet_ContactAlias
|
|
299
299
|
responses:
|
|
@@ -318,13 +318,13 @@ paths:
|
|
|
318
318
|
properties:
|
|
319
319
|
aliasStringValueDeprecated:
|
|
320
320
|
type: string
|
|
321
|
-
description:
|
|
321
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
322
322
|
title: nullable
|
|
323
323
|
alias:
|
|
324
324
|
type: string
|
|
325
325
|
tags:
|
|
326
326
|
- Puppet
|
|
327
|
-
|
|
327
|
+
/contacts/{id}/avatar:
|
|
328
328
|
get:
|
|
329
329
|
operationId: Puppet_ContactAvatar
|
|
330
330
|
responses:
|
|
@@ -342,7 +342,7 @@ paths:
|
|
|
342
342
|
required: true
|
|
343
343
|
type: string
|
|
344
344
|
- name: fileboxStringValueDeprecated
|
|
345
|
-
description:
|
|
345
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
346
346
|
in: query
|
|
347
347
|
required: false
|
|
348
348
|
type: string
|
|
@@ -352,7 +352,7 @@ paths:
|
|
|
352
352
|
type: string
|
|
353
353
|
tags:
|
|
354
354
|
- Puppet
|
|
355
|
-
|
|
355
|
+
/contacts/{id}/dirty/{type}:
|
|
356
356
|
put:
|
|
357
357
|
operationId: Puppet_DirtyPayload2
|
|
358
358
|
responses:
|
|
@@ -386,7 +386,7 @@ paths:
|
|
|
386
386
|
pattern: PAYLOADTYPECONTACT
|
|
387
387
|
tags:
|
|
388
388
|
- Puppet
|
|
389
|
-
|
|
389
|
+
/contacts/{id}/payload-modify:
|
|
390
390
|
put:
|
|
391
391
|
operationId: Puppet_ContactPayloadModify
|
|
392
392
|
responses:
|
|
@@ -481,7 +481,7 @@ paths:
|
|
|
481
481
|
type: boolean
|
|
482
482
|
tags:
|
|
483
483
|
- Puppet
|
|
484
|
-
|
|
484
|
+
/conversation/{conversationId}/read:
|
|
485
485
|
put:
|
|
486
486
|
summary: '*'
|
|
487
487
|
description: Conversation
|
|
@@ -510,7 +510,7 @@ paths:
|
|
|
510
510
|
type: boolean
|
|
511
511
|
tags:
|
|
512
512
|
- Puppet
|
|
513
|
-
|
|
513
|
+
/conversations/{conversationId}/channel:
|
|
514
514
|
post:
|
|
515
515
|
operationId: Puppet_MessageSendChannel
|
|
516
516
|
responses:
|
|
@@ -537,7 +537,7 @@ paths:
|
|
|
537
537
|
$ref: '#/definitions/puppetChannelPayload'
|
|
538
538
|
tags:
|
|
539
539
|
- Puppet
|
|
540
|
-
|
|
540
|
+
/conversations/{conversationId}/contact:
|
|
541
541
|
post:
|
|
542
542
|
operationId: Puppet_MessageSendContact
|
|
543
543
|
responses:
|
|
@@ -564,7 +564,7 @@ paths:
|
|
|
564
564
|
type: string
|
|
565
565
|
tags:
|
|
566
566
|
- Puppet
|
|
567
|
-
|
|
567
|
+
/conversations/{conversationId}/forward/{messageId}:
|
|
568
568
|
post:
|
|
569
569
|
operationId: Puppet_MessageForward2
|
|
570
570
|
responses:
|
|
@@ -589,7 +589,7 @@ paths:
|
|
|
589
589
|
type: string
|
|
590
590
|
tags:
|
|
591
591
|
- Puppet
|
|
592
|
-
|
|
592
|
+
/conversations/{conversationId}/location:
|
|
593
593
|
post:
|
|
594
594
|
operationId: Puppet_MessageSendLocation
|
|
595
595
|
responses:
|
|
@@ -616,7 +616,7 @@ paths:
|
|
|
616
616
|
$ref: '#/definitions/puppetLocationPayload'
|
|
617
617
|
tags:
|
|
618
618
|
- Puppet
|
|
619
|
-
|
|
619
|
+
/conversations/{conversationId}/mini-program:
|
|
620
620
|
post:
|
|
621
621
|
operationId: Puppet_MessageSendMiniProgram
|
|
622
622
|
responses:
|
|
@@ -656,7 +656,7 @@ paths:
|
|
|
656
656
|
title: 小程序payload
|
|
657
657
|
tags:
|
|
658
658
|
- Puppet
|
|
659
|
-
|
|
659
|
+
/conversations/{conversationId}/text:
|
|
660
660
|
post:
|
|
661
661
|
operationId: Puppet_MessageSendText
|
|
662
662
|
responses:
|
|
@@ -694,7 +694,7 @@ paths:
|
|
|
694
694
|
title: 发文本消息
|
|
695
695
|
tags:
|
|
696
696
|
- Puppet
|
|
697
|
-
|
|
697
|
+
/conversations/{conversationId}/url-link:
|
|
698
698
|
post:
|
|
699
699
|
operationId: Puppet_MessageSendUrl
|
|
700
700
|
responses:
|
|
@@ -768,7 +768,7 @@ paths:
|
|
|
768
768
|
$ref: '#/definitions/puppetDingRequest'
|
|
769
769
|
tags:
|
|
770
770
|
- Puppet
|
|
771
|
-
|
|
771
|
+
/download/{id}:
|
|
772
772
|
get:
|
|
773
773
|
summary: |-
|
|
774
774
|
*
|
|
@@ -853,7 +853,7 @@ paths:
|
|
|
853
853
|
type: string
|
|
854
854
|
tags:
|
|
855
855
|
- Puppet
|
|
856
|
-
|
|
856
|
+
/friendship/accept/{id}:
|
|
857
857
|
put:
|
|
858
858
|
operationId: Puppet_FriendshipAccept
|
|
859
859
|
responses:
|
|
@@ -872,7 +872,7 @@ paths:
|
|
|
872
872
|
type: string
|
|
873
873
|
tags:
|
|
874
874
|
- Puppet
|
|
875
|
-
|
|
875
|
+
/friendship/add/{contactId}:
|
|
876
876
|
put:
|
|
877
877
|
operationId: Puppet_FriendshipAdd
|
|
878
878
|
responses:
|
|
@@ -907,7 +907,7 @@ paths:
|
|
|
907
907
|
$ref: '#/definitions/puppetReferrer'
|
|
908
908
|
tags:
|
|
909
909
|
- Puppet
|
|
910
|
-
|
|
910
|
+
/friendship/search/handle/{weixin}:
|
|
911
911
|
get:
|
|
912
912
|
operationId: Puppet_FriendshipSearchHandle
|
|
913
913
|
responses:
|
|
@@ -939,7 +939,7 @@ paths:
|
|
|
939
939
|
type: string
|
|
940
940
|
tags:
|
|
941
941
|
- Puppet
|
|
942
|
-
|
|
942
|
+
/friendship/search/phone/{phone}:
|
|
943
943
|
get:
|
|
944
944
|
operationId: Puppet_FriendshipSearchPhone
|
|
945
945
|
responses:
|
|
@@ -958,7 +958,7 @@ paths:
|
|
|
958
958
|
type: string
|
|
959
959
|
tags:
|
|
960
960
|
- Puppet
|
|
961
|
-
|
|
961
|
+
/friendship/{id}:
|
|
962
962
|
get:
|
|
963
963
|
summary: '*'
|
|
964
964
|
description: Friendship
|
|
@@ -994,7 +994,7 @@ paths:
|
|
|
994
994
|
type: string
|
|
995
995
|
tags:
|
|
996
996
|
- Puppet
|
|
997
|
-
|
|
997
|
+
/friendships/{id}/dirty/{type}:
|
|
998
998
|
put:
|
|
999
999
|
operationId: Puppet_DirtyPayload5
|
|
1000
1000
|
responses:
|
|
@@ -1076,7 +1076,7 @@ paths:
|
|
|
1076
1076
|
$ref: '#/definitions/rpcStatus'
|
|
1077
1077
|
tags:
|
|
1078
1078
|
- Puppet
|
|
1079
|
-
|
|
1079
|
+
/message/broadcast/{id}:
|
|
1080
1080
|
get:
|
|
1081
1081
|
operationId: Puppet_GetMessageBroadcastStatus
|
|
1082
1082
|
responses:
|
|
@@ -1095,7 +1095,7 @@ paths:
|
|
|
1095
1095
|
type: string
|
|
1096
1096
|
tags:
|
|
1097
1097
|
- Puppet
|
|
1098
|
-
|
|
1098
|
+
/message/{id}:
|
|
1099
1099
|
get:
|
|
1100
1100
|
operationId: Puppet_MessagePayload
|
|
1101
1101
|
responses:
|
|
@@ -1114,7 +1114,26 @@ paths:
|
|
|
1114
1114
|
type: string
|
|
1115
1115
|
tags:
|
|
1116
1116
|
- Puppet
|
|
1117
|
-
|
|
1117
|
+
/message/{id}/call-record:
|
|
1118
|
+
get:
|
|
1119
|
+
operationId: Puppet_MessageCallRecord
|
|
1120
|
+
responses:
|
|
1121
|
+
'200':
|
|
1122
|
+
description: A successful response.
|
|
1123
|
+
schema:
|
|
1124
|
+
$ref: '#/definitions/puppetMessageCallRecordlResponse'
|
|
1125
|
+
default:
|
|
1126
|
+
description: An unexpected error response.
|
|
1127
|
+
schema:
|
|
1128
|
+
$ref: '#/definitions/rpcStatus'
|
|
1129
|
+
parameters:
|
|
1130
|
+
- name: id
|
|
1131
|
+
in: path
|
|
1132
|
+
required: true
|
|
1133
|
+
type: string
|
|
1134
|
+
tags:
|
|
1135
|
+
- Puppet
|
|
1136
|
+
/message/{id}/channel:
|
|
1118
1137
|
get:
|
|
1119
1138
|
operationId: Puppet_MessageChannel
|
|
1120
1139
|
responses:
|
|
@@ -1133,7 +1152,7 @@ paths:
|
|
|
1133
1152
|
type: string
|
|
1134
1153
|
tags:
|
|
1135
1154
|
- Puppet
|
|
1136
|
-
|
|
1155
|
+
/message/{id}/contact:
|
|
1137
1156
|
get:
|
|
1138
1157
|
operationId: Puppet_MessageContact
|
|
1139
1158
|
responses:
|
|
@@ -1152,7 +1171,7 @@ paths:
|
|
|
1152
1171
|
type: string
|
|
1153
1172
|
tags:
|
|
1154
1173
|
- Puppet
|
|
1155
|
-
|
|
1174
|
+
/message/{id}/dirty/{type}:
|
|
1156
1175
|
put:
|
|
1157
1176
|
operationId: Puppet_DirtyPayload
|
|
1158
1177
|
responses:
|
|
@@ -1186,7 +1205,7 @@ paths:
|
|
|
1186
1205
|
pattern: PAYLOADTYPEMESSAGE
|
|
1187
1206
|
tags:
|
|
1188
1207
|
- Puppet
|
|
1189
|
-
|
|
1208
|
+
/message/{id}/location:
|
|
1190
1209
|
get:
|
|
1191
1210
|
operationId: Puppet_MessageLocation
|
|
1192
1211
|
responses:
|
|
@@ -1205,7 +1224,7 @@ paths:
|
|
|
1205
1224
|
type: string
|
|
1206
1225
|
tags:
|
|
1207
1226
|
- Puppet
|
|
1208
|
-
|
|
1227
|
+
/message/{id}/mini-program:
|
|
1209
1228
|
get:
|
|
1210
1229
|
operationId: Puppet_MessageMiniProgram
|
|
1211
1230
|
responses:
|
|
@@ -1224,7 +1243,7 @@ paths:
|
|
|
1224
1243
|
type: string
|
|
1225
1244
|
tags:
|
|
1226
1245
|
- Puppet
|
|
1227
|
-
|
|
1246
|
+
/message/{id}/preview:
|
|
1228
1247
|
get:
|
|
1229
1248
|
operationId: Puppet_MessagePreview
|
|
1230
1249
|
responses:
|
|
@@ -1243,7 +1262,7 @@ paths:
|
|
|
1243
1262
|
type: string
|
|
1244
1263
|
tags:
|
|
1245
1264
|
- Puppet
|
|
1246
|
-
|
|
1265
|
+
/message/{id}/recall:
|
|
1247
1266
|
put:
|
|
1248
1267
|
operationId: Puppet_MessageRecall
|
|
1249
1268
|
responses:
|
|
@@ -1262,7 +1281,7 @@ paths:
|
|
|
1262
1281
|
type: string
|
|
1263
1282
|
tags:
|
|
1264
1283
|
- Puppet
|
|
1265
|
-
|
|
1284
|
+
/message/{id}/url-link:
|
|
1266
1285
|
get:
|
|
1267
1286
|
operationId: Puppet_MessageUrl
|
|
1268
1287
|
responses:
|
|
@@ -1281,7 +1300,7 @@ paths:
|
|
|
1281
1300
|
type: string
|
|
1282
1301
|
tags:
|
|
1283
1302
|
- Puppet
|
|
1284
|
-
|
|
1303
|
+
/messages/{messageId}/forward/{conversationId}:
|
|
1285
1304
|
post:
|
|
1286
1305
|
operationId: Puppet_MessageForward
|
|
1287
1306
|
responses:
|
|
@@ -1380,7 +1399,7 @@ paths:
|
|
|
1380
1399
|
$ref: '#/definitions/rpcStatus'
|
|
1381
1400
|
tags:
|
|
1382
1401
|
- Puppet
|
|
1383
|
-
|
|
1402
|
+
/moment/{momentId}:
|
|
1384
1403
|
delete:
|
|
1385
1404
|
operationId: Puppet_MomentUnpublish
|
|
1386
1405
|
responses:
|
|
@@ -1473,7 +1492,7 @@ paths:
|
|
|
1473
1492
|
$ref: '#/definitions/rpcStatus'
|
|
1474
1493
|
tags:
|
|
1475
1494
|
- Puppet
|
|
1476
|
-
|
|
1495
|
+
/room-invitations/{id}:
|
|
1477
1496
|
get:
|
|
1478
1497
|
summary: '*'
|
|
1479
1498
|
description: Room Invitation
|
|
@@ -1513,7 +1532,7 @@ paths:
|
|
|
1513
1532
|
type: string
|
|
1514
1533
|
tags:
|
|
1515
1534
|
- Puppet
|
|
1516
|
-
|
|
1535
|
+
/room-invitations/{id}/accept:
|
|
1517
1536
|
put:
|
|
1518
1537
|
operationId: Puppet_RoomInvitationAccept
|
|
1519
1538
|
responses:
|
|
@@ -1565,7 +1584,7 @@ paths:
|
|
|
1565
1584
|
$ref: '#/definitions/puppetRoomCreateRequest'
|
|
1566
1585
|
tags:
|
|
1567
1586
|
- Puppet
|
|
1568
|
-
|
|
1587
|
+
/rooms/{id}:
|
|
1569
1588
|
get:
|
|
1570
1589
|
summary: '*'
|
|
1571
1590
|
description: Room
|
|
@@ -1604,7 +1623,7 @@ paths:
|
|
|
1604
1623
|
type: string
|
|
1605
1624
|
tags:
|
|
1606
1625
|
- Puppet
|
|
1607
|
-
|
|
1626
|
+
/rooms/{id}/add/admins/{contactIds}:
|
|
1608
1627
|
put:
|
|
1609
1628
|
operationId: Puppet_RoomAddAdmins
|
|
1610
1629
|
responses:
|
|
@@ -1631,7 +1650,7 @@ paths:
|
|
|
1631
1650
|
minItems: 1
|
|
1632
1651
|
tags:
|
|
1633
1652
|
- Puppet
|
|
1634
|
-
|
|
1653
|
+
/rooms/{id}/add/{contactId}:
|
|
1635
1654
|
put:
|
|
1636
1655
|
operationId: Puppet_RoomAdd
|
|
1637
1656
|
responses:
|
|
@@ -1660,7 +1679,7 @@ paths:
|
|
|
1660
1679
|
type: boolean
|
|
1661
1680
|
tags:
|
|
1662
1681
|
- Puppet
|
|
1663
|
-
|
|
1682
|
+
/rooms/{id}/announcement:
|
|
1664
1683
|
get:
|
|
1665
1684
|
operationId: Puppet_RoomAnnounce
|
|
1666
1685
|
responses:
|
|
@@ -1678,7 +1697,7 @@ paths:
|
|
|
1678
1697
|
required: true
|
|
1679
1698
|
type: string
|
|
1680
1699
|
- name: textStringValueDeprecated
|
|
1681
|
-
description:
|
|
1700
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
1682
1701
|
in: query
|
|
1683
1702
|
required: false
|
|
1684
1703
|
type: string
|
|
@@ -1712,13 +1731,13 @@ paths:
|
|
|
1712
1731
|
properties:
|
|
1713
1732
|
textStringValueDeprecated:
|
|
1714
1733
|
type: string
|
|
1715
|
-
title:
|
|
1734
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
1716
1735
|
text:
|
|
1717
1736
|
type: string
|
|
1718
1737
|
title: 群公告
|
|
1719
1738
|
tags:
|
|
1720
1739
|
- Puppet
|
|
1721
|
-
|
|
1740
|
+
/rooms/{id}/avatar:
|
|
1722
1741
|
get:
|
|
1723
1742
|
operationId: Puppet_RoomAvatar
|
|
1724
1743
|
responses:
|
|
@@ -1737,7 +1756,7 @@ paths:
|
|
|
1737
1756
|
type: string
|
|
1738
1757
|
tags:
|
|
1739
1758
|
- Puppet
|
|
1740
|
-
|
|
1759
|
+
/rooms/{id}/del/admins/{contactIds}:
|
|
1741
1760
|
delete:
|
|
1742
1761
|
operationId: Puppet_RoomDelAdmins
|
|
1743
1762
|
responses:
|
|
@@ -1764,7 +1783,7 @@ paths:
|
|
|
1764
1783
|
minItems: 1
|
|
1765
1784
|
tags:
|
|
1766
1785
|
- Puppet
|
|
1767
|
-
|
|
1786
|
+
/rooms/{id}/dirty/members/{type}:
|
|
1768
1787
|
put:
|
|
1769
1788
|
operationId: Puppet_DirtyPayload4
|
|
1770
1789
|
responses:
|
|
@@ -1798,7 +1817,7 @@ paths:
|
|
|
1798
1817
|
pattern: PAYLOADTYPEROOMMEMBER
|
|
1799
1818
|
tags:
|
|
1800
1819
|
- Puppet
|
|
1801
|
-
|
|
1820
|
+
/rooms/{id}/dirty/{type}:
|
|
1802
1821
|
put:
|
|
1803
1822
|
operationId: Puppet_DirtyPayload3
|
|
1804
1823
|
responses:
|
|
@@ -1832,7 +1851,7 @@ paths:
|
|
|
1832
1851
|
pattern: PAYLOADTYPEROOM
|
|
1833
1852
|
tags:
|
|
1834
1853
|
- Puppet
|
|
1835
|
-
|
|
1854
|
+
/rooms/{id}/member/{contactId}:
|
|
1836
1855
|
delete:
|
|
1837
1856
|
operationId: Puppet_RoomDel
|
|
1838
1857
|
responses:
|
|
@@ -1850,7 +1869,7 @@ paths:
|
|
|
1850
1869
|
required: true
|
|
1851
1870
|
type: string
|
|
1852
1871
|
- name: contactId
|
|
1853
|
-
description:
|
|
1872
|
+
description: Deprecated, will be removed after bot updated
|
|
1854
1873
|
in: path
|
|
1855
1874
|
required: true
|
|
1856
1875
|
type: string
|
|
@@ -1863,7 +1882,7 @@ paths:
|
|
|
1863
1882
|
collectionFormat: multi
|
|
1864
1883
|
tags:
|
|
1865
1884
|
- Puppet
|
|
1866
|
-
|
|
1885
|
+
/rooms/{id}/members:
|
|
1867
1886
|
get:
|
|
1868
1887
|
operationId: Puppet_RoomMemberList
|
|
1869
1888
|
responses:
|
|
@@ -1882,7 +1901,7 @@ paths:
|
|
|
1882
1901
|
type: string
|
|
1883
1902
|
tags:
|
|
1884
1903
|
- Puppet
|
|
1885
|
-
|
|
1904
|
+
/rooms/{id}/members/{memberId}:
|
|
1886
1905
|
get:
|
|
1887
1906
|
summary: '*'
|
|
1888
1907
|
description: Room Member
|
|
@@ -1907,7 +1926,7 @@ paths:
|
|
|
1907
1926
|
type: string
|
|
1908
1927
|
tags:
|
|
1909
1928
|
- Puppet
|
|
1910
|
-
|
|
1929
|
+
/rooms/{id}/permission:
|
|
1911
1930
|
get:
|
|
1912
1931
|
operationId: Puppet_RoomPermission
|
|
1913
1932
|
responses:
|
|
@@ -1971,7 +1990,7 @@ paths:
|
|
|
1971
1990
|
default: BOOL_UNSET
|
|
1972
1991
|
tags:
|
|
1973
1992
|
- Puppet
|
|
1974
|
-
|
|
1993
|
+
/rooms/{id}/qrcode:
|
|
1975
1994
|
get:
|
|
1976
1995
|
operationId: Puppet_RoomQRCode
|
|
1977
1996
|
responses:
|
|
@@ -1990,7 +2009,7 @@ paths:
|
|
|
1990
2009
|
type: string
|
|
1991
2010
|
tags:
|
|
1992
2011
|
- Puppet
|
|
1993
|
-
|
|
2012
|
+
/rooms/{id}/remark:
|
|
1994
2013
|
put:
|
|
1995
2014
|
operationId: Puppet_RoomRemark
|
|
1996
2015
|
responses:
|
|
@@ -2013,7 +2032,7 @@ paths:
|
|
|
2013
2032
|
type: string
|
|
2014
2033
|
tags:
|
|
2015
2034
|
- Puppet
|
|
2016
|
-
|
|
2035
|
+
/rooms/{id}/topic:
|
|
2017
2036
|
get:
|
|
2018
2037
|
operationId: Puppet_RoomTopic
|
|
2019
2038
|
responses:
|
|
@@ -2031,7 +2050,7 @@ paths:
|
|
|
2031
2050
|
required: true
|
|
2032
2051
|
type: string
|
|
2033
2052
|
- name: topicStringValueDeprecated
|
|
2034
|
-
description:
|
|
2053
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
2035
2054
|
in: query
|
|
2036
2055
|
required: false
|
|
2037
2056
|
type: string
|
|
@@ -2041,7 +2060,7 @@ paths:
|
|
|
2041
2060
|
type: string
|
|
2042
2061
|
tags:
|
|
2043
2062
|
- Puppet
|
|
2044
|
-
|
|
2063
|
+
/rooms/{id}/transfer/{contactId}:
|
|
2045
2064
|
post:
|
|
2046
2065
|
operationId: Puppet_RoomOwnerTransfer
|
|
2047
2066
|
responses:
|
|
@@ -2154,7 +2173,7 @@ paths:
|
|
|
2154
2173
|
$ref: '#/definitions/puppetTagTagDeleteRequest'
|
|
2155
2174
|
tags:
|
|
2156
2175
|
- Puppet
|
|
2157
|
-
|
|
2176
|
+
/tag/groups/{tagGroupId}/tags:
|
|
2158
2177
|
get:
|
|
2159
2178
|
operationId: Puppet_TagGroupTagList
|
|
2160
2179
|
responses:
|
|
@@ -2227,7 +2246,7 @@ paths:
|
|
|
2227
2246
|
$ref: '#/definitions/puppetTagContactTagRemoveRequest'
|
|
2228
2247
|
tags:
|
|
2229
2248
|
- Puppet
|
|
2230
|
-
|
|
2249
|
+
/tag/{tagId}/contacts:
|
|
2231
2250
|
get:
|
|
2232
2251
|
operationId: Puppet_TagTagContactList
|
|
2233
2252
|
responses:
|
|
@@ -2482,8 +2501,59 @@ definitions:
|
|
|
2482
2501
|
- BROADCAST_TARGET_STATUS_NOT_FRIEND
|
|
2483
2502
|
- BROADCAST_TARGET_STATUS_OCCUPIED
|
|
2484
2503
|
default: BROADCAST_TARGET_STATUS_UNSENT
|
|
2504
|
+
puppetCallRecordPayload:
|
|
2505
|
+
type: object
|
|
2506
|
+
properties:
|
|
2507
|
+
starterId:
|
|
2508
|
+
type: string
|
|
2509
|
+
participantIds:
|
|
2510
|
+
type: array
|
|
2511
|
+
items:
|
|
2512
|
+
type: string
|
|
2513
|
+
length:
|
|
2514
|
+
type: integer
|
|
2515
|
+
format: int32
|
|
2516
|
+
type:
|
|
2517
|
+
$ref: '#/definitions/puppetCallType'
|
|
2518
|
+
status:
|
|
2519
|
+
$ref: '#/definitions/puppetCallStatus'
|
|
2520
|
+
puppetCallStatus:
|
|
2521
|
+
type: string
|
|
2522
|
+
enum:
|
|
2523
|
+
- CALL_STATUS_UNKNOWN
|
|
2524
|
+
- CALL_STATUS_CANCELED
|
|
2525
|
+
- CALL_STATUS_REJECTED
|
|
2526
|
+
- CALL_STATUS_ONGOING
|
|
2527
|
+
- CALL_STATUS_ENDED
|
|
2528
|
+
default: CALL_STATUS_UNKNOWN
|
|
2529
|
+
description: |-
|
|
2530
|
+
- CALL_STATUS_UNKNOWN: 不明确
|
|
2531
|
+
- CALL_STATUS_CANCELED: 自己取消
|
|
2532
|
+
- CALL_STATUS_REJECTED: 对方拒接
|
|
2533
|
+
- CALL_STATUS_ONGOING: 正在通话
|
|
2534
|
+
- CALL_STATUS_ENDED: 已结束
|
|
2535
|
+
title: 类型枚举
|
|
2536
|
+
puppetCallType:
|
|
2537
|
+
type: string
|
|
2538
|
+
enum:
|
|
2539
|
+
- CALL_TYPE_UNKNOWN
|
|
2540
|
+
- CALL_TYPE_VOICE
|
|
2541
|
+
- CALL_TYPE_VIDEO
|
|
2542
|
+
default: CALL_TYPE_UNKNOWN
|
|
2543
|
+
title: |-
|
|
2544
|
+
- CALL_TYPE_UNKNOWN: 不明确
|
|
2545
|
+
- CALL_TYPE_VOICE: 语音
|
|
2546
|
+
- CALL_TYPE_VIDEO: 视频
|
|
2485
2547
|
puppetCancelVerifyCodeResponse:
|
|
2486
2548
|
type: object
|
|
2549
|
+
puppetChannelFeedType:
|
|
2550
|
+
type: string
|
|
2551
|
+
enum:
|
|
2552
|
+
- CHANNEL_FEED_TYPE_UNKNOWN
|
|
2553
|
+
- CHANNEL_FEED_TYPE_PHOTO
|
|
2554
|
+
- CHANNEL_FEED_TYPE_VIDEO
|
|
2555
|
+
- CHANNEL_FEED_TYPE_LIVE
|
|
2556
|
+
default: CHANNEL_FEED_TYPE_UNKNOWN
|
|
2487
2557
|
puppetChannelPayload:
|
|
2488
2558
|
type: object
|
|
2489
2559
|
properties:
|
|
@@ -2500,8 +2570,7 @@ definitions:
|
|
|
2500
2570
|
type: string
|
|
2501
2571
|
title: 额外信息,暂不明确含义,但传错会导致无法发出(红色感叹号)。应根据收到的视频号的extras字段填入。
|
|
2502
2572
|
feedType:
|
|
2503
|
-
|
|
2504
|
-
format: int32
|
|
2573
|
+
$ref: '#/definitions/puppetChannelFeedType'
|
|
2505
2574
|
title: 暂不明确含义,目前请固定传4
|
|
2506
2575
|
nickname:
|
|
2507
2576
|
type: string
|
|
@@ -2522,7 +2591,7 @@ definitions:
|
|
|
2522
2591
|
properties:
|
|
2523
2592
|
aliasStringValueDeprecated:
|
|
2524
2593
|
type: string
|
|
2525
|
-
title:
|
|
2594
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
2526
2595
|
alias:
|
|
2527
2596
|
type: string
|
|
2528
2597
|
puppetContactAvatarResponse:
|
|
@@ -2530,7 +2599,7 @@ definitions:
|
|
|
2530
2599
|
properties:
|
|
2531
2600
|
fileboxStringValueDeprecated:
|
|
2532
2601
|
type: string
|
|
2533
|
-
title:
|
|
2602
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
2534
2603
|
fileBox:
|
|
2535
2604
|
type: string
|
|
2536
2605
|
puppetContactCorporationRemarkResponse:
|
|
@@ -2732,7 +2801,7 @@ definitions:
|
|
|
2732
2801
|
$ref: '#/definitions/puppetEventType'
|
|
2733
2802
|
payload:
|
|
2734
2803
|
type: string
|
|
2735
|
-
description:
|
|
2804
|
+
description: JSON.stringify({ ... })
|
|
2736
2805
|
title: 'TODO: Huan(202002) consider to use a PB Map?'
|
|
2737
2806
|
seq:
|
|
2738
2807
|
type: integer
|
|
@@ -2843,7 +2912,7 @@ definitions:
|
|
|
2843
2912
|
properties:
|
|
2844
2913
|
contactIdStringValueDeprecated:
|
|
2845
2914
|
type: string
|
|
2846
|
-
description:
|
|
2915
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
2847
2916
|
title: nullable
|
|
2848
2917
|
contactId:
|
|
2849
2918
|
type: string
|
|
@@ -2852,7 +2921,7 @@ definitions:
|
|
|
2852
2921
|
properties:
|
|
2853
2922
|
contactIdStringValueDeprecated:
|
|
2854
2923
|
type: string
|
|
2855
|
-
description:
|
|
2924
|
+
description: DEPRECATED, will be removed after Dec 31, 2022
|
|
2856
2925
|
title: nullable
|
|
2857
2926
|
contactId:
|
|
2858
2927
|
type: string
|
|
@@ -2926,6 +2995,11 @@ definitions:
|
|
|
2926
2995
|
title: 地址名,例如xx大厦
|
|
2927
2996
|
puppetLogoutResponse:
|
|
2928
2997
|
type: object
|
|
2998
|
+
puppetMessageCallRecordlResponse:
|
|
2999
|
+
type: object
|
|
3000
|
+
properties:
|
|
3001
|
+
callRecord:
|
|
3002
|
+
$ref: '#/definitions/puppetCallRecordPayload'
|
|
2929
3003
|
puppetMessageChannelResponse:
|
|
2930
3004
|
type: object
|
|
2931
3005
|
properties:
|
|
@@ -2951,7 +3025,7 @@ definitions:
|
|
|
2951
3025
|
properties:
|
|
2952
3026
|
idStringValueDeprecated:
|
|
2953
3027
|
type: string
|
|
2954
|
-
description:
|
|
3028
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
2955
3029
|
title: |-
|
|
2956
3030
|
*
|
|
2957
3031
|
@deprecated: use payload instead.
|
|
@@ -3055,7 +3129,7 @@ definitions:
|
|
|
3055
3129
|
properties:
|
|
3056
3130
|
idStringValueDeprecated:
|
|
3057
3131
|
type: string
|
|
3058
|
-
description:
|
|
3132
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
3059
3133
|
title: |-
|
|
3060
3134
|
*
|
|
3061
3135
|
@deprecated:
|
|
@@ -3077,7 +3151,7 @@ definitions:
|
|
|
3077
3151
|
properties:
|
|
3078
3152
|
idStringValueDeprecated:
|
|
3079
3153
|
type: string
|
|
3080
|
-
description:
|
|
3154
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
3081
3155
|
title: |-
|
|
3082
3156
|
*
|
|
3083
3157
|
@deprecated:
|
|
@@ -3103,7 +3177,7 @@ definitions:
|
|
|
3103
3177
|
properties:
|
|
3104
3178
|
idStringValueDeprecated:
|
|
3105
3179
|
type: string
|
|
3106
|
-
description:
|
|
3180
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
3107
3181
|
title: |-
|
|
3108
3182
|
*
|
|
3109
3183
|
@deprecated:
|
|
@@ -3116,7 +3190,7 @@ definitions:
|
|
|
3116
3190
|
properties:
|
|
3117
3191
|
idStringValueDeprecated:
|
|
3118
3192
|
type: string
|
|
3119
|
-
description:
|
|
3193
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
3120
3194
|
title: |-
|
|
3121
3195
|
*
|
|
3122
3196
|
@deprecated:
|
|
@@ -3129,7 +3203,7 @@ definitions:
|
|
|
3129
3203
|
properties:
|
|
3130
3204
|
idStringValueDeprecated:
|
|
3131
3205
|
type: string
|
|
3132
|
-
description:
|
|
3206
|
+
description: Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022
|
|
3133
3207
|
title: |-
|
|
3134
3208
|
*
|
|
3135
3209
|
@deprecated:
|
|
@@ -3159,6 +3233,8 @@ definitions:
|
|
|
3159
3233
|
- MESSAGE_TYPE_POST
|
|
3160
3234
|
- MESSAGE_TYPE_CHANNEL
|
|
3161
3235
|
- MESSAGE_TYPE_SYSTEM
|
|
3236
|
+
- MESSAGE_TYPE_MARKDOWN
|
|
3237
|
+
- MESSAGE_TYPE_CALL_RECORD
|
|
3162
3238
|
default: MESSAGE_TYPE_UNSPECIFIED
|
|
3163
3239
|
description: |-
|
|
3164
3240
|
- MESSAGE_TYPE_ATTACHMENT: 文件消息
|
|
@@ -3179,6 +3255,8 @@ definitions:
|
|
|
3179
3255
|
- MESSAGE_TYPE_POST: 特殊的复合类型,wxwork中没有
|
|
3180
3256
|
- MESSAGE_TYPE_CHANNEL: 视频号
|
|
3181
3257
|
- MESSAGE_TYPE_SYSTEM: 系统消息
|
|
3258
|
+
- MESSAGE_TYPE_MARKDOWN: MarkDown
|
|
3259
|
+
- MESSAGE_TYPE_CALL_RECORD: 通话记录
|
|
3182
3260
|
title: 消息类型
|
|
3183
3261
|
puppetMessageUrlResponse:
|
|
3184
3262
|
type: object
|
|
@@ -3288,7 +3366,7 @@ definitions:
|
|
|
3288
3366
|
properties:
|
|
3289
3367
|
parentId:
|
|
3290
3368
|
type: string
|
|
3291
|
-
title:
|
|
3369
|
+
title: 转发的上一级id,评论时如果是回复,则是回复的评论的id,否则是朋友圈的id
|
|
3292
3370
|
rootId:
|
|
3293
3371
|
type: string
|
|
3294
3372
|
title: 转发的根id,评论时应该是朋友圈的id
|
|
@@ -3441,7 +3519,7 @@ definitions:
|
|
|
3441
3519
|
properties:
|
|
3442
3520
|
textStringValueDeprecated:
|
|
3443
3521
|
type: string
|
|
3444
|
-
title:
|
|
3522
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
3445
3523
|
text:
|
|
3446
3524
|
type: string
|
|
3447
3525
|
puppetRoomAvatarResponse:
|
|
@@ -3618,7 +3696,7 @@ definitions:
|
|
|
3618
3696
|
properties:
|
|
3619
3697
|
topicStringValueDeprecated:
|
|
3620
3698
|
type: string
|
|
3621
|
-
title:
|
|
3699
|
+
title: DEPRECATED, will be removed after Dec 31, 2022
|
|
3622
3700
|
topic:
|
|
3623
3701
|
type: string
|
|
3624
3702
|
puppetSayableType:
|