@juzi/wechaty-grpc 1.0.42 → 1.0.44
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 +0 -2
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +794 -21
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +69 -142
- package/dist/cjs/out/wechaty/puppet.swagger.json +106 -194
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -102
- 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 +38 -34
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -147
- package/dist/cjs/proto/wechaty/puppet/message.proto +25 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -9
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +3 -2
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -13
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/commonjs/generated/puppet.cjs +0 -2
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +794 -21
- package/dist/esm/out/wechaty/puppet.openapi.yaml +69 -142
- package/dist/esm/out/wechaty/puppet.swagger.json +106 -194
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -102
- 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 +38 -34
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -147
- package/dist/esm/proto/wechaty/puppet/message.proto +25 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -9
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +3 -2
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +105 -0
- package/out/wechaty/puppet/message_pb.js +794 -21
- package/out/wechaty/puppet.openapi.yaml +69 -142
- package/out/wechaty/puppet.swagger.json +106 -194
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -50
- package/out/wechaty/puppet_grpc_pb.js +66 -102
- 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 +38 -34
- package/out/wechaty/puppet_pb_service.js +80 -147
- package/package.json +3 -2
- package/src/package-json.ts +3 -2
- package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
- package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
- package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
- package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
- package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
- package/out/wechaty/deprecated/file-box_pb.js +0 -1368
- package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
- package/out/wechaty/deprecated/file-box_pb_service.js +0 -3
|
@@ -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.44
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -956,6 +956,40 @@ paths:
|
|
|
956
956
|
$ref: '#/definitions/rpcStatus'
|
|
957
957
|
tags:
|
|
958
958
|
- Puppet
|
|
959
|
+
/message/broadcast/create:
|
|
960
|
+
post:
|
|
961
|
+
operationId: Puppet_CreateMessageBroadcast
|
|
962
|
+
responses:
|
|
963
|
+
'200':
|
|
964
|
+
description: A successful response.
|
|
965
|
+
schema:
|
|
966
|
+
$ref: '#/definitions/puppetCreateMessageBroadcastResponse'
|
|
967
|
+
default:
|
|
968
|
+
description: An unexpected error response.
|
|
969
|
+
schema:
|
|
970
|
+
$ref: '#/definitions/rpcStatus'
|
|
971
|
+
parameters:
|
|
972
|
+
- name: body
|
|
973
|
+
in: body
|
|
974
|
+
required: true
|
|
975
|
+
schema:
|
|
976
|
+
$ref: '#/definitions/puppetCreateMessageBroadcastRequest'
|
|
977
|
+
tags:
|
|
978
|
+
- Puppet
|
|
979
|
+
/message/broadcast/target:
|
|
980
|
+
get:
|
|
981
|
+
operationId: Puppet_GetMessageBroadcastTarget
|
|
982
|
+
responses:
|
|
983
|
+
'200':
|
|
984
|
+
description: A successful response.
|
|
985
|
+
schema:
|
|
986
|
+
$ref: '#/definitions/puppetGetMessageBroadcastTargetResponse'
|
|
987
|
+
default:
|
|
988
|
+
description: An unexpected error response.
|
|
989
|
+
schema:
|
|
990
|
+
$ref: '#/definitions/rpcStatus'
|
|
991
|
+
tags:
|
|
992
|
+
- Puppet
|
|
959
993
|
'/message/{id}':
|
|
960
994
|
get:
|
|
961
995
|
operationId: Puppet_MessagePayload
|
|
@@ -2098,35 +2132,6 @@ paths:
|
|
|
2098
2132
|
$ref: '#/definitions/puppetMessageFileRequest'
|
|
2099
2133
|
tags:
|
|
2100
2134
|
- Puppet
|
|
2101
|
-
/wechaty.Puppet/MessageFileStream:
|
|
2102
|
-
post:
|
|
2103
|
-
summary: |-
|
|
2104
|
-
*
|
|
2105
|
-
Deprecated: will be removed after Dec 31, 2022
|
|
2106
|
-
operationId: Puppet_MessageFileStream
|
|
2107
|
-
responses:
|
|
2108
|
-
'200':
|
|
2109
|
-
description: A successful response.(streaming responses)
|
|
2110
|
-
schema:
|
|
2111
|
-
type: object
|
|
2112
|
-
properties:
|
|
2113
|
-
result:
|
|
2114
|
-
$ref: '#/definitions/puppetMessageFileStreamResponse'
|
|
2115
|
-
error:
|
|
2116
|
-
$ref: '#/definitions/rpcStatus'
|
|
2117
|
-
title: Stream result of puppetMessageFileStreamResponse
|
|
2118
|
-
default:
|
|
2119
|
-
description: An unexpected error response.
|
|
2120
|
-
schema:
|
|
2121
|
-
$ref: '#/definitions/rpcStatus'
|
|
2122
|
-
parameters:
|
|
2123
|
-
- name: body
|
|
2124
|
-
in: body
|
|
2125
|
-
required: true
|
|
2126
|
-
schema:
|
|
2127
|
-
$ref: '#/definitions/puppetMessageFileStreamRequest'
|
|
2128
|
-
tags:
|
|
2129
|
-
- Puppet
|
|
2130
2135
|
/wechaty.Puppet/MessageImage:
|
|
2131
2136
|
post:
|
|
2132
2137
|
operationId: Puppet_MessageImage
|
|
@@ -2147,32 +2152,6 @@ paths:
|
|
|
2147
2152
|
$ref: '#/definitions/puppetMessageImageRequest'
|
|
2148
2153
|
tags:
|
|
2149
2154
|
- Puppet
|
|
2150
|
-
/wechaty.Puppet/MessageImageStream:
|
|
2151
|
-
post:
|
|
2152
|
-
operationId: Puppet_MessageImageStream
|
|
2153
|
-
responses:
|
|
2154
|
-
'200':
|
|
2155
|
-
description: A successful response.(streaming responses)
|
|
2156
|
-
schema:
|
|
2157
|
-
type: object
|
|
2158
|
-
properties:
|
|
2159
|
-
result:
|
|
2160
|
-
$ref: '#/definitions/puppetMessageImageStreamResponse'
|
|
2161
|
-
error:
|
|
2162
|
-
$ref: '#/definitions/rpcStatus'
|
|
2163
|
-
title: Stream result of puppetMessageImageStreamResponse
|
|
2164
|
-
default:
|
|
2165
|
-
description: An unexpected error response.
|
|
2166
|
-
schema:
|
|
2167
|
-
$ref: '#/definitions/rpcStatus'
|
|
2168
|
-
parameters:
|
|
2169
|
-
- name: body
|
|
2170
|
-
in: body
|
|
2171
|
-
required: true
|
|
2172
|
-
schema:
|
|
2173
|
-
$ref: '#/definitions/puppetMessageImageStreamRequest'
|
|
2174
|
-
tags:
|
|
2175
|
-
- Puppet
|
|
2176
2155
|
/wechaty.Puppet/MessageSendFile:
|
|
2177
2156
|
post:
|
|
2178
2157
|
operationId: Puppet_MessageSendFile
|
|
@@ -2193,30 +2172,6 @@ paths:
|
|
|
2193
2172
|
$ref: '#/definitions/puppetMessageSendFileRequest'
|
|
2194
2173
|
tags:
|
|
2195
2174
|
- Puppet
|
|
2196
|
-
/wechaty.Puppet/MessageSendFileStream:
|
|
2197
|
-
post:
|
|
2198
|
-
operationId: Puppet_MessageSendFileStream
|
|
2199
|
-
responses:
|
|
2200
|
-
'200':
|
|
2201
|
-
description: A successful response.
|
|
2202
|
-
schema:
|
|
2203
|
-
$ref: '#/definitions/puppetMessageSendFileStreamResponse'
|
|
2204
|
-
default:
|
|
2205
|
-
description: An unexpected error response.
|
|
2206
|
-
schema:
|
|
2207
|
-
$ref: '#/definitions/rpcStatus'
|
|
2208
|
-
parameters:
|
|
2209
|
-
- name: body
|
|
2210
|
-
description: |-
|
|
2211
|
-
*
|
|
2212
|
-
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2213
|
-
to be confirmed. (streaming inputs)
|
|
2214
|
-
in: body
|
|
2215
|
-
required: true
|
|
2216
|
-
schema:
|
|
2217
|
-
$ref: '#/definitions/puppetMessageSendFileStreamRequest'
|
|
2218
|
-
tags:
|
|
2219
|
-
- Puppet
|
|
2220
2175
|
definitions:
|
|
2221
2176
|
protobufAny:
|
|
2222
2177
|
type: object
|
|
@@ -2423,6 +2378,22 @@ definitions:
|
|
|
2423
2378
|
properties:
|
|
2424
2379
|
hasRead:
|
|
2425
2380
|
type: boolean
|
|
2381
|
+
puppetCreateMessageBroadcastRequest:
|
|
2382
|
+
type: object
|
|
2383
|
+
properties:
|
|
2384
|
+
targetIds:
|
|
2385
|
+
type: array
|
|
2386
|
+
items:
|
|
2387
|
+
type: string
|
|
2388
|
+
type:
|
|
2389
|
+
$ref: '#/definitions/puppetMessageBroadcastTargetType'
|
|
2390
|
+
content:
|
|
2391
|
+
$ref: '#/definitions/puppetPostPayloadClient'
|
|
2392
|
+
puppetCreateMessageBroadcastResponse:
|
|
2393
|
+
type: object
|
|
2394
|
+
properties:
|
|
2395
|
+
id:
|
|
2396
|
+
type: string
|
|
2426
2397
|
puppetCurrentUserResponse:
|
|
2427
2398
|
type: object
|
|
2428
2399
|
properties:
|
|
@@ -2482,20 +2453,6 @@ definitions:
|
|
|
2482
2453
|
- EVENT_TYPE_POST_TAP
|
|
2483
2454
|
- EVENT_TYPE_ROOM_ANNOUNCE
|
|
2484
2455
|
default: EVENT_TYPE_UNSPECIFIED
|
|
2485
|
-
puppetFileBoxChunk:
|
|
2486
|
-
type: object
|
|
2487
|
-
properties:
|
|
2488
|
-
data:
|
|
2489
|
-
type: string
|
|
2490
|
-
format: byte
|
|
2491
|
-
title: 'oneof payload {'
|
|
2492
|
-
name:
|
|
2493
|
-
type: string
|
|
2494
|
-
title: '}'
|
|
2495
|
-
description: |-
|
|
2496
|
-
*
|
|
2497
|
-
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2498
|
-
to be confirmed.
|
|
2499
2456
|
puppetFriendshipAcceptResponse:
|
|
2500
2457
|
type: object
|
|
2501
2458
|
puppetFriendshipAddResponse:
|
|
@@ -2606,6 +2563,17 @@ definitions:
|
|
|
2606
2563
|
- FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发
|
|
2607
2564
|
- FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发
|
|
2608
2565
|
title: 事件类型
|
|
2566
|
+
puppetGetMessageBroadcastTargetResponse:
|
|
2567
|
+
type: object
|
|
2568
|
+
properties:
|
|
2569
|
+
contactIds:
|
|
2570
|
+
type: array
|
|
2571
|
+
items:
|
|
2572
|
+
type: string
|
|
2573
|
+
roomIds:
|
|
2574
|
+
type: array
|
|
2575
|
+
items:
|
|
2576
|
+
type: string
|
|
2609
2577
|
puppetImageType:
|
|
2610
2578
|
type: string
|
|
2611
2579
|
enum:
|
|
@@ -2637,6 +2605,13 @@ definitions:
|
|
|
2637
2605
|
title: 地址名,例如xx大厦
|
|
2638
2606
|
puppetLogoutResponse:
|
|
2639
2607
|
type: object
|
|
2608
|
+
puppetMessageBroadcastTargetType:
|
|
2609
|
+
type: string
|
|
2610
|
+
enum:
|
|
2611
|
+
- MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2612
|
+
- MESSAGE_BROADCAST_TARGET_TYPE_CONTACT
|
|
2613
|
+
- MESSAGE_BROADCAST_TARGET_TYPE_ROOM
|
|
2614
|
+
default: MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN
|
|
2640
2615
|
puppetMessageChannelResponse:
|
|
2641
2616
|
type: object
|
|
2642
2617
|
properties:
|
|
@@ -2657,16 +2632,6 @@ definitions:
|
|
|
2657
2632
|
properties:
|
|
2658
2633
|
fileBox:
|
|
2659
2634
|
type: string
|
|
2660
|
-
puppetMessageFileStreamRequest:
|
|
2661
|
-
type: object
|
|
2662
|
-
properties:
|
|
2663
|
-
id:
|
|
2664
|
-
type: string
|
|
2665
|
-
puppetMessageFileStreamResponse:
|
|
2666
|
-
type: object
|
|
2667
|
-
properties:
|
|
2668
|
-
fileBoxChunk:
|
|
2669
|
-
$ref: '#/definitions/puppetFileBoxChunk'
|
|
2670
2635
|
puppetMessageForwardResponse:
|
|
2671
2636
|
type: object
|
|
2672
2637
|
properties:
|
|
@@ -2693,18 +2658,6 @@ definitions:
|
|
|
2693
2658
|
properties:
|
|
2694
2659
|
fileBox:
|
|
2695
2660
|
type: string
|
|
2696
|
-
puppetMessageImageStreamRequest:
|
|
2697
|
-
type: object
|
|
2698
|
-
properties:
|
|
2699
|
-
id:
|
|
2700
|
-
type: string
|
|
2701
|
-
type:
|
|
2702
|
-
$ref: '#/definitions/puppetImageType'
|
|
2703
|
-
puppetMessageImageStreamResponse:
|
|
2704
|
-
type: object
|
|
2705
|
-
properties:
|
|
2706
|
-
fileBoxChunk:
|
|
2707
|
-
$ref: '#/definitions/puppetFileBoxChunk'
|
|
2708
2661
|
puppetMessageLocationResponse:
|
|
2709
2662
|
type: object
|
|
2710
2663
|
properties:
|
|
@@ -2818,32 +2771,6 @@ definitions:
|
|
|
2818
2771
|
https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
2819
2772
|
id:
|
|
2820
2773
|
type: string
|
|
2821
|
-
puppetMessageSendFileStreamRequest:
|
|
2822
|
-
type: object
|
|
2823
|
-
properties:
|
|
2824
|
-
conversationId:
|
|
2825
|
-
type: string
|
|
2826
|
-
title: 'oneof payload {'
|
|
2827
|
-
fileBoxChunk:
|
|
2828
|
-
$ref: '#/definitions/puppetFileBoxChunk'
|
|
2829
|
-
title: '};'
|
|
2830
|
-
description: |-
|
|
2831
|
-
*
|
|
2832
|
-
Huan(202110): `oneof xxx {}` seems equal with `optional`?
|
|
2833
|
-
to be confirmed.
|
|
2834
|
-
puppetMessageSendFileStreamResponse:
|
|
2835
|
-
type: object
|
|
2836
|
-
properties:
|
|
2837
|
-
idStringValueDeprecated:
|
|
2838
|
-
type: string
|
|
2839
|
-
description: 'Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022'
|
|
2840
|
-
title: |-
|
|
2841
|
-
*
|
|
2842
|
-
@deprecated:
|
|
2843
|
-
Huan(202109): Wrapper types must not be used going forward.
|
|
2844
|
-
https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
2845
|
-
id:
|
|
2846
|
-
type: string
|
|
2847
2774
|
puppetMessageSendLocationResponse:
|
|
2848
2775
|
type: object
|
|
2849
2776
|
properties:
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Wechaty Puppet Service OpenAPI Specification",
|
|
5
5
|
"description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.44",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1392,6 +1392,60 @@
|
|
|
1392
1392
|
]
|
|
1393
1393
|
}
|
|
1394
1394
|
},
|
|
1395
|
+
"/message/broadcast/create": {
|
|
1396
|
+
"post": {
|
|
1397
|
+
"operationId": "Puppet_CreateMessageBroadcast",
|
|
1398
|
+
"responses": {
|
|
1399
|
+
"200": {
|
|
1400
|
+
"description": "A successful response.",
|
|
1401
|
+
"schema": {
|
|
1402
|
+
"$ref": "#/definitions/puppetCreateMessageBroadcastResponse"
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"default": {
|
|
1406
|
+
"description": "An unexpected error response.",
|
|
1407
|
+
"schema": {
|
|
1408
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
},
|
|
1412
|
+
"parameters": [
|
|
1413
|
+
{
|
|
1414
|
+
"name": "body",
|
|
1415
|
+
"in": "body",
|
|
1416
|
+
"required": true,
|
|
1417
|
+
"schema": {
|
|
1418
|
+
"$ref": "#/definitions/puppetCreateMessageBroadcastRequest"
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
],
|
|
1422
|
+
"tags": [
|
|
1423
|
+
"Puppet"
|
|
1424
|
+
]
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"/message/broadcast/target": {
|
|
1428
|
+
"get": {
|
|
1429
|
+
"operationId": "Puppet_GetMessageBroadcastTarget",
|
|
1430
|
+
"responses": {
|
|
1431
|
+
"200": {
|
|
1432
|
+
"description": "A successful response.",
|
|
1433
|
+
"schema": {
|
|
1434
|
+
"$ref": "#/definitions/puppetGetMessageBroadcastTargetResponse"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"default": {
|
|
1438
|
+
"description": "An unexpected error response.",
|
|
1439
|
+
"schema": {
|
|
1440
|
+
"$ref": "#/definitions/rpcStatus"
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"tags": [
|
|
1445
|
+
"Puppet"
|
|
1446
|
+
]
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1395
1449
|
"/message/{id}": {
|
|
1396
1450
|
"get": {
|
|
1397
1451
|
"operationId": "Puppet_MessagePayload",
|
|
@@ -3129,48 +3183,6 @@
|
|
|
3129
3183
|
]
|
|
3130
3184
|
}
|
|
3131
3185
|
},
|
|
3132
|
-
"/wechaty.Puppet/MessageFileStream": {
|
|
3133
|
-
"post": {
|
|
3134
|
-
"summary": "*\nDeprecated: will be removed after Dec 31, 2022",
|
|
3135
|
-
"operationId": "Puppet_MessageFileStream",
|
|
3136
|
-
"responses": {
|
|
3137
|
-
"200": {
|
|
3138
|
-
"description": "A successful response.(streaming responses)",
|
|
3139
|
-
"schema": {
|
|
3140
|
-
"type": "object",
|
|
3141
|
-
"properties": {
|
|
3142
|
-
"result": {
|
|
3143
|
-
"$ref": "#/definitions/puppetMessageFileStreamResponse"
|
|
3144
|
-
},
|
|
3145
|
-
"error": {
|
|
3146
|
-
"$ref": "#/definitions/rpcStatus"
|
|
3147
|
-
}
|
|
3148
|
-
},
|
|
3149
|
-
"title": "Stream result of puppetMessageFileStreamResponse"
|
|
3150
|
-
}
|
|
3151
|
-
},
|
|
3152
|
-
"default": {
|
|
3153
|
-
"description": "An unexpected error response.",
|
|
3154
|
-
"schema": {
|
|
3155
|
-
"$ref": "#/definitions/rpcStatus"
|
|
3156
|
-
}
|
|
3157
|
-
}
|
|
3158
|
-
},
|
|
3159
|
-
"parameters": [
|
|
3160
|
-
{
|
|
3161
|
-
"name": "body",
|
|
3162
|
-
"in": "body",
|
|
3163
|
-
"required": true,
|
|
3164
|
-
"schema": {
|
|
3165
|
-
"$ref": "#/definitions/puppetMessageFileStreamRequest"
|
|
3166
|
-
}
|
|
3167
|
-
}
|
|
3168
|
-
],
|
|
3169
|
-
"tags": [
|
|
3170
|
-
"Puppet"
|
|
3171
|
-
]
|
|
3172
|
-
}
|
|
3173
|
-
},
|
|
3174
3186
|
"/wechaty.Puppet/MessageImage": {
|
|
3175
3187
|
"post": {
|
|
3176
3188
|
"operationId": "Puppet_MessageImage",
|
|
@@ -3203,47 +3215,6 @@
|
|
|
3203
3215
|
]
|
|
3204
3216
|
}
|
|
3205
3217
|
},
|
|
3206
|
-
"/wechaty.Puppet/MessageImageStream": {
|
|
3207
|
-
"post": {
|
|
3208
|
-
"operationId": "Puppet_MessageImageStream",
|
|
3209
|
-
"responses": {
|
|
3210
|
-
"200": {
|
|
3211
|
-
"description": "A successful response.(streaming responses)",
|
|
3212
|
-
"schema": {
|
|
3213
|
-
"type": "object",
|
|
3214
|
-
"properties": {
|
|
3215
|
-
"result": {
|
|
3216
|
-
"$ref": "#/definitions/puppetMessageImageStreamResponse"
|
|
3217
|
-
},
|
|
3218
|
-
"error": {
|
|
3219
|
-
"$ref": "#/definitions/rpcStatus"
|
|
3220
|
-
}
|
|
3221
|
-
},
|
|
3222
|
-
"title": "Stream result of puppetMessageImageStreamResponse"
|
|
3223
|
-
}
|
|
3224
|
-
},
|
|
3225
|
-
"default": {
|
|
3226
|
-
"description": "An unexpected error response.",
|
|
3227
|
-
"schema": {
|
|
3228
|
-
"$ref": "#/definitions/rpcStatus"
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
},
|
|
3232
|
-
"parameters": [
|
|
3233
|
-
{
|
|
3234
|
-
"name": "body",
|
|
3235
|
-
"in": "body",
|
|
3236
|
-
"required": true,
|
|
3237
|
-
"schema": {
|
|
3238
|
-
"$ref": "#/definitions/puppetMessageImageStreamRequest"
|
|
3239
|
-
}
|
|
3240
|
-
}
|
|
3241
|
-
],
|
|
3242
|
-
"tags": [
|
|
3243
|
-
"Puppet"
|
|
3244
|
-
]
|
|
3245
|
-
}
|
|
3246
|
-
},
|
|
3247
3218
|
"/wechaty.Puppet/MessageSendFile": {
|
|
3248
3219
|
"post": {
|
|
3249
3220
|
"operationId": "Puppet_MessageSendFile",
|
|
@@ -3275,39 +3246,6 @@
|
|
|
3275
3246
|
"Puppet"
|
|
3276
3247
|
]
|
|
3277
3248
|
}
|
|
3278
|
-
},
|
|
3279
|
-
"/wechaty.Puppet/MessageSendFileStream": {
|
|
3280
|
-
"post": {
|
|
3281
|
-
"operationId": "Puppet_MessageSendFileStream",
|
|
3282
|
-
"responses": {
|
|
3283
|
-
"200": {
|
|
3284
|
-
"description": "A successful response.",
|
|
3285
|
-
"schema": {
|
|
3286
|
-
"$ref": "#/definitions/puppetMessageSendFileStreamResponse"
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
|
-
"default": {
|
|
3290
|
-
"description": "An unexpected error response.",
|
|
3291
|
-
"schema": {
|
|
3292
|
-
"$ref": "#/definitions/rpcStatus"
|
|
3293
|
-
}
|
|
3294
|
-
}
|
|
3295
|
-
},
|
|
3296
|
-
"parameters": [
|
|
3297
|
-
{
|
|
3298
|
-
"name": "body",
|
|
3299
|
-
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed. (streaming inputs)",
|
|
3300
|
-
"in": "body",
|
|
3301
|
-
"required": true,
|
|
3302
|
-
"schema": {
|
|
3303
|
-
"$ref": "#/definitions/puppetMessageSendFileStreamRequest"
|
|
3304
|
-
}
|
|
3305
|
-
}
|
|
3306
|
-
],
|
|
3307
|
-
"tags": [
|
|
3308
|
-
"Puppet"
|
|
3309
|
-
]
|
|
3310
|
-
}
|
|
3311
3249
|
}
|
|
3312
3250
|
},
|
|
3313
3251
|
"definitions": {
|
|
@@ -3567,6 +3505,31 @@
|
|
|
3567
3505
|
}
|
|
3568
3506
|
}
|
|
3569
3507
|
},
|
|
3508
|
+
"puppetCreateMessageBroadcastRequest": {
|
|
3509
|
+
"type": "object",
|
|
3510
|
+
"properties": {
|
|
3511
|
+
"targetIds": {
|
|
3512
|
+
"type": "array",
|
|
3513
|
+
"items": {
|
|
3514
|
+
"type": "string"
|
|
3515
|
+
}
|
|
3516
|
+
},
|
|
3517
|
+
"type": {
|
|
3518
|
+
"$ref": "#/definitions/puppetMessageBroadcastTargetType"
|
|
3519
|
+
},
|
|
3520
|
+
"content": {
|
|
3521
|
+
"$ref": "#/definitions/puppetPostPayloadClient"
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
"puppetCreateMessageBroadcastResponse": {
|
|
3526
|
+
"type": "object",
|
|
3527
|
+
"properties": {
|
|
3528
|
+
"id": {
|
|
3529
|
+
"type": "string"
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
},
|
|
3570
3533
|
"puppetCurrentUserResponse": {
|
|
3571
3534
|
"type": "object",
|
|
3572
3535
|
"properties": {
|
|
@@ -3640,21 +3603,6 @@
|
|
|
3640
3603
|
],
|
|
3641
3604
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3642
3605
|
},
|
|
3643
|
-
"puppetFileBoxChunk": {
|
|
3644
|
-
"type": "object",
|
|
3645
|
-
"properties": {
|
|
3646
|
-
"data": {
|
|
3647
|
-
"type": "string",
|
|
3648
|
-
"format": "byte",
|
|
3649
|
-
"title": "oneof payload {"
|
|
3650
|
-
},
|
|
3651
|
-
"name": {
|
|
3652
|
-
"type": "string",
|
|
3653
|
-
"title": "}"
|
|
3654
|
-
}
|
|
3655
|
-
},
|
|
3656
|
-
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
3657
|
-
},
|
|
3658
3606
|
"puppetFriendshipAcceptResponse": {
|
|
3659
3607
|
"type": "object"
|
|
3660
3608
|
},
|
|
@@ -3762,6 +3710,23 @@
|
|
|
3762
3710
|
"description": "- FRIENDSHIP_TYPE_UNSPECIFIED: 不明确\n - FRIENDSHIP_TYPE_CONFIRM: 确认——双方互加后触发\n - FRIENDSHIP_TYPE_RECEIVE: 收到——收到好友请求后触发\n - FRIENDSHIP_TYPE_VERIFY: 验证——主动加他人为好友时触发,wxwork里暂无此事件\n - FRIENDSHIP_TYPE_DELETE: 删除——主动删除好友时触发\n - FRIENDSHIP_TYPE_REMOVED: 被删除——被他人删除好友时触发",
|
|
3763
3711
|
"title": "事件类型"
|
|
3764
3712
|
},
|
|
3713
|
+
"puppetGetMessageBroadcastTargetResponse": {
|
|
3714
|
+
"type": "object",
|
|
3715
|
+
"properties": {
|
|
3716
|
+
"contactIds": {
|
|
3717
|
+
"type": "array",
|
|
3718
|
+
"items": {
|
|
3719
|
+
"type": "string"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
"roomIds": {
|
|
3723
|
+
"type": "array",
|
|
3724
|
+
"items": {
|
|
3725
|
+
"type": "string"
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3765
3730
|
"puppetImageType": {
|
|
3766
3731
|
"type": "string",
|
|
3767
3732
|
"enum": [
|
|
@@ -3803,6 +3768,15 @@
|
|
|
3803
3768
|
"puppetLogoutResponse": {
|
|
3804
3769
|
"type": "object"
|
|
3805
3770
|
},
|
|
3771
|
+
"puppetMessageBroadcastTargetType": {
|
|
3772
|
+
"type": "string",
|
|
3773
|
+
"enum": [
|
|
3774
|
+
"MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN",
|
|
3775
|
+
"MESSAGE_BROADCAST_TARGET_TYPE_CONTACT",
|
|
3776
|
+
"MESSAGE_BROADCAST_TARGET_TYPE_ROOM"
|
|
3777
|
+
],
|
|
3778
|
+
"default": "MESSAGE_BROADCAST_TARGET_TYPE_UNKNOWN"
|
|
3779
|
+
},
|
|
3806
3780
|
"puppetMessageChannelResponse": {
|
|
3807
3781
|
"type": "object",
|
|
3808
3782
|
"properties": {
|
|
@@ -3835,22 +3809,6 @@
|
|
|
3835
3809
|
}
|
|
3836
3810
|
}
|
|
3837
3811
|
},
|
|
3838
|
-
"puppetMessageFileStreamRequest": {
|
|
3839
|
-
"type": "object",
|
|
3840
|
-
"properties": {
|
|
3841
|
-
"id": {
|
|
3842
|
-
"type": "string"
|
|
3843
|
-
}
|
|
3844
|
-
}
|
|
3845
|
-
},
|
|
3846
|
-
"puppetMessageFileStreamResponse": {
|
|
3847
|
-
"type": "object",
|
|
3848
|
-
"properties": {
|
|
3849
|
-
"fileBoxChunk": {
|
|
3850
|
-
"$ref": "#/definitions/puppetFileBoxChunk"
|
|
3851
|
-
}
|
|
3852
|
-
}
|
|
3853
|
-
},
|
|
3854
3812
|
"puppetMessageForwardResponse": {
|
|
3855
3813
|
"type": "object",
|
|
3856
3814
|
"properties": {
|
|
@@ -3884,25 +3842,6 @@
|
|
|
3884
3842
|
}
|
|
3885
3843
|
}
|
|
3886
3844
|
},
|
|
3887
|
-
"puppetMessageImageStreamRequest": {
|
|
3888
|
-
"type": "object",
|
|
3889
|
-
"properties": {
|
|
3890
|
-
"id": {
|
|
3891
|
-
"type": "string"
|
|
3892
|
-
},
|
|
3893
|
-
"type": {
|
|
3894
|
-
"$ref": "#/definitions/puppetImageType"
|
|
3895
|
-
}
|
|
3896
|
-
}
|
|
3897
|
-
},
|
|
3898
|
-
"puppetMessageImageStreamResponse": {
|
|
3899
|
-
"type": "object",
|
|
3900
|
-
"properties": {
|
|
3901
|
-
"fileBoxChunk": {
|
|
3902
|
-
"$ref": "#/definitions/puppetFileBoxChunk"
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
},
|
|
3906
3845
|
"puppetMessageLocationResponse": {
|
|
3907
3846
|
"type": "object",
|
|
3908
3847
|
"properties": {
|
|
@@ -4043,33 +3982,6 @@
|
|
|
4043
3982
|
}
|
|
4044
3983
|
}
|
|
4045
3984
|
},
|
|
4046
|
-
"puppetMessageSendFileStreamRequest": {
|
|
4047
|
-
"type": "object",
|
|
4048
|
-
"properties": {
|
|
4049
|
-
"conversationId": {
|
|
4050
|
-
"type": "string",
|
|
4051
|
-
"title": "oneof payload {"
|
|
4052
|
-
},
|
|
4053
|
-
"fileBoxChunk": {
|
|
4054
|
-
"$ref": "#/definitions/puppetFileBoxChunk",
|
|
4055
|
-
"title": "};"
|
|
4056
|
-
}
|
|
4057
|
-
},
|
|
4058
|
-
"description": "*\n Huan(202110): `oneof xxx {}` seems equal with `optional`?\n to be confirmed."
|
|
4059
|
-
},
|
|
4060
|
-
"puppetMessageSendFileStreamResponse": {
|
|
4061
|
-
"type": "object",
|
|
4062
|
-
"properties": {
|
|
4063
|
-
"idStringValueDeprecated": {
|
|
4064
|
-
"type": "string",
|
|
4065
|
-
"description": "Deprecated after Sep 31, 2021, will be removed after Dec 31, 2022",
|
|
4066
|
-
"title": "*\n@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields"
|
|
4067
|
-
},
|
|
4068
|
-
"id": {
|
|
4069
|
-
"type": "string"
|
|
4070
|
-
}
|
|
4071
|
-
}
|
|
4072
|
-
},
|
|
4073
3985
|
"puppetMessageSendLocationResponse": {
|
|
4074
3986
|
"type": "object",
|
|
4075
3987
|
"properties": {
|