@juzi/wechaty-grpc 1.0.42 → 1.0.43
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.openapi.yaml +1 -142
- package/dist/cjs/out/wechaty/puppet.swagger.json +1 -194
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +0 -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 +0 -34
- package/dist/cjs/out/wechaty/puppet_pb_service.js +0 -147
- package/dist/cjs/proto/wechaty/puppet.proto +0 -9
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +0 -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.openapi.yaml +1 -142
- package/dist/esm/out/wechaty/puppet.swagger.json +1 -194
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +0 -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 +0 -34
- package/dist/esm/out/wechaty/puppet_pb_service.js +0 -147
- package/dist/esm/proto/wechaty/puppet.proto +0 -9
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +0 -13
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet.openapi.yaml +1 -142
- package/out/wechaty/puppet.swagger.json +1 -194
- package/out/wechaty/puppet_grpc_pb.d.ts +0 -50
- package/out/wechaty/puppet_grpc_pb.js +0 -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 +0 -34
- package/out/wechaty/puppet_pb_service.js +0 -147
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
- 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
|
@@ -21,8 +21,6 @@
|
|
|
21
21
|
* const puppet = pkg['puppet']
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export * from '../../out/wechaty/deprecated/file-box_pb.js'
|
|
25
|
-
|
|
26
24
|
export * from '../../out/wechaty/puppet/base_pb.js'
|
|
27
25
|
export * from '../../out/wechaty/puppet/contact_pb.js'
|
|
28
26
|
export * from '../../out/wechaty/puppet/download-upload_pb.js'
|
|
@@ -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.43
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: 'https://github.com/wechaty/openapi'
|
|
@@ -2098,35 +2098,6 @@ paths:
|
|
|
2098
2098
|
$ref: '#/definitions/puppetMessageFileRequest'
|
|
2099
2099
|
tags:
|
|
2100
2100
|
- 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
2101
|
/wechaty.Puppet/MessageImage:
|
|
2131
2102
|
post:
|
|
2132
2103
|
operationId: Puppet_MessageImage
|
|
@@ -2147,32 +2118,6 @@ paths:
|
|
|
2147
2118
|
$ref: '#/definitions/puppetMessageImageRequest'
|
|
2148
2119
|
tags:
|
|
2149
2120
|
- 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
2121
|
/wechaty.Puppet/MessageSendFile:
|
|
2177
2122
|
post:
|
|
2178
2123
|
operationId: Puppet_MessageSendFile
|
|
@@ -2193,30 +2138,6 @@ paths:
|
|
|
2193
2138
|
$ref: '#/definitions/puppetMessageSendFileRequest'
|
|
2194
2139
|
tags:
|
|
2195
2140
|
- 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
2141
|
definitions:
|
|
2221
2142
|
protobufAny:
|
|
2222
2143
|
type: object
|
|
@@ -2482,20 +2403,6 @@ definitions:
|
|
|
2482
2403
|
- EVENT_TYPE_POST_TAP
|
|
2483
2404
|
- EVENT_TYPE_ROOM_ANNOUNCE
|
|
2484
2405
|
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
2406
|
puppetFriendshipAcceptResponse:
|
|
2500
2407
|
type: object
|
|
2501
2408
|
puppetFriendshipAddResponse:
|
|
@@ -2657,16 +2564,6 @@ definitions:
|
|
|
2657
2564
|
properties:
|
|
2658
2565
|
fileBox:
|
|
2659
2566
|
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
2567
|
puppetMessageForwardResponse:
|
|
2671
2568
|
type: object
|
|
2672
2569
|
properties:
|
|
@@ -2693,18 +2590,6 @@ definitions:
|
|
|
2693
2590
|
properties:
|
|
2694
2591
|
fileBox:
|
|
2695
2592
|
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
2593
|
puppetMessageLocationResponse:
|
|
2709
2594
|
type: object
|
|
2710
2595
|
properties:
|
|
@@ -2818,32 +2703,6 @@ definitions:
|
|
|
2818
2703
|
https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields
|
|
2819
2704
|
id:
|
|
2820
2705
|
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
2706
|
puppetMessageSendLocationResponse:
|
|
2848
2707
|
type: object
|
|
2849
2708
|
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.43",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -3129,48 +3129,6 @@
|
|
|
3129
3129
|
]
|
|
3130
3130
|
}
|
|
3131
3131
|
},
|
|
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
3132
|
"/wechaty.Puppet/MessageImage": {
|
|
3175
3133
|
"post": {
|
|
3176
3134
|
"operationId": "Puppet_MessageImage",
|
|
@@ -3203,47 +3161,6 @@
|
|
|
3203
3161
|
]
|
|
3204
3162
|
}
|
|
3205
3163
|
},
|
|
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
3164
|
"/wechaty.Puppet/MessageSendFile": {
|
|
3248
3165
|
"post": {
|
|
3249
3166
|
"operationId": "Puppet_MessageSendFile",
|
|
@@ -3275,39 +3192,6 @@
|
|
|
3275
3192
|
"Puppet"
|
|
3276
3193
|
]
|
|
3277
3194
|
}
|
|
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
3195
|
}
|
|
3312
3196
|
},
|
|
3313
3197
|
"definitions": {
|
|
@@ -3640,21 +3524,6 @@
|
|
|
3640
3524
|
],
|
|
3641
3525
|
"default": "EVENT_TYPE_UNSPECIFIED"
|
|
3642
3526
|
},
|
|
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
3527
|
"puppetFriendshipAcceptResponse": {
|
|
3659
3528
|
"type": "object"
|
|
3660
3529
|
},
|
|
@@ -3835,22 +3704,6 @@
|
|
|
3835
3704
|
}
|
|
3836
3705
|
}
|
|
3837
3706
|
},
|
|
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
3707
|
"puppetMessageForwardResponse": {
|
|
3855
3708
|
"type": "object",
|
|
3856
3709
|
"properties": {
|
|
@@ -3884,25 +3737,6 @@
|
|
|
3884
3737
|
}
|
|
3885
3738
|
}
|
|
3886
3739
|
},
|
|
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
3740
|
"puppetMessageLocationResponse": {
|
|
3907
3741
|
"type": "object",
|
|
3908
3742
|
"properties": {
|
|
@@ -4043,33 +3877,6 @@
|
|
|
4043
3877
|
}
|
|
4044
3878
|
}
|
|
4045
3879
|
},
|
|
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
3880
|
"puppetMessageSendLocationResponse": {
|
|
4074
3881
|
"type": "object",
|
|
4075
3882
|
"properties": {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as wechaty_puppet_pb from "../wechaty/puppet_pb";
|
|
9
9
|
import * as protoc_gen_openapiv2_options_annotations_pb from "../protoc-gen-openapiv2/options/annotations_pb";
|
|
10
|
-
import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
|
|
11
10
|
import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
|
|
12
11
|
import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
|
|
13
12
|
import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
|
|
@@ -24,9 +23,6 @@ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
|
|
|
24
23
|
import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
|
|
25
24
|
|
|
26
25
|
interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
27
|
-
messageFileStream: IPuppetService_IMessageFileStream;
|
|
28
|
-
messageImageStream: IPuppetService_IMessageImageStream;
|
|
29
|
-
messageSendFileStream: IPuppetService_IMessageSendFileStream;
|
|
30
26
|
start: IPuppetService_IStart;
|
|
31
27
|
stop: IPuppetService_IStop;
|
|
32
28
|
logout: IPuppetService_ILogout;
|
|
@@ -111,33 +107,6 @@ interface IPuppetService extends grpc.ServiceDefinition<grpc.UntypedServiceImple
|
|
|
111
107
|
upload: IPuppetService_IUpload;
|
|
112
108
|
}
|
|
113
109
|
|
|
114
|
-
interface IPuppetService_IMessageFileStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageFileStreamRequest, wechaty_deprecated_file_box_pb.MessageFileStreamResponse> {
|
|
115
|
-
path: "/wechaty.Puppet/MessageFileStream";
|
|
116
|
-
requestStream: false;
|
|
117
|
-
responseStream: true;
|
|
118
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageFileStreamRequest>;
|
|
119
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageFileStreamRequest>;
|
|
120
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
121
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
122
|
-
}
|
|
123
|
-
interface IPuppetService_IMessageImageStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageImageStreamRequest, wechaty_deprecated_file_box_pb.MessageImageStreamResponse> {
|
|
124
|
-
path: "/wechaty.Puppet/MessageImageStream";
|
|
125
|
-
requestStream: false;
|
|
126
|
-
responseStream: true;
|
|
127
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageImageStreamRequest>;
|
|
128
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageImageStreamRequest>;
|
|
129
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
130
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
131
|
-
}
|
|
132
|
-
interface IPuppetService_IMessageSendFileStream extends grpc.MethodDefinition<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest, wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse> {
|
|
133
|
-
path: "/wechaty.Puppet/MessageSendFileStream";
|
|
134
|
-
requestStream: true;
|
|
135
|
-
responseStream: false;
|
|
136
|
-
requestSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
137
|
-
requestDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
138
|
-
responseSerialize: grpc.serialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
139
|
-
responseDeserialize: grpc.deserialize<wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
140
|
-
}
|
|
141
110
|
interface IPuppetService_IStart extends grpc.MethodDefinition<wechaty_puppet_base_pb.StartRequest, wechaty_puppet_base_pb.StartResponse> {
|
|
142
111
|
path: "/wechaty.Puppet/Start";
|
|
143
112
|
requestStream: false;
|
|
@@ -880,9 +849,6 @@ interface IPuppetService_IUpload extends grpc.MethodDefinition<wechaty_puppet_do
|
|
|
880
849
|
export const PuppetService: IPuppetService;
|
|
881
850
|
|
|
882
851
|
export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
883
|
-
messageFileStream: grpc.handleServerStreamingCall<wechaty_deprecated_file_box_pb.MessageFileStreamRequest, wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
884
|
-
messageImageStream: grpc.handleServerStreamingCall<wechaty_deprecated_file_box_pb.MessageImageStreamRequest, wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
885
|
-
messageSendFileStream: grpc.handleClientStreamingCall<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest, wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse>;
|
|
886
852
|
start: grpc.handleUnaryCall<wechaty_puppet_base_pb.StartRequest, wechaty_puppet_base_pb.StartResponse>;
|
|
887
853
|
stop: grpc.handleUnaryCall<wechaty_puppet_base_pb.StopRequest, wechaty_puppet_base_pb.StopResponse>;
|
|
888
854
|
logout: grpc.handleUnaryCall<wechaty_puppet_base_pb.LogoutRequest, wechaty_puppet_base_pb.LogoutResponse>;
|
|
@@ -968,14 +934,6 @@ export interface IPuppetServer extends grpc.UntypedServiceImplementation {
|
|
|
968
934
|
}
|
|
969
935
|
|
|
970
936
|
export interface IPuppetClient {
|
|
971
|
-
messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
972
|
-
messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
973
|
-
messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
974
|
-
messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
975
|
-
messageSendFileStream(callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
976
|
-
messageSendFileStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
977
|
-
messageSendFileStream(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
978
|
-
messageSendFileStream(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
979
937
|
start(request: wechaty_puppet_base_pb.StartRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
980
938
|
start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
981
939
|
start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
@@ -1225,14 +1183,6 @@ export interface IPuppetClient {
|
|
|
1225
1183
|
|
|
1226
1184
|
export class PuppetClient extends grpc.Client implements IPuppetClient {
|
|
1227
1185
|
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
1228
|
-
public messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
1229
|
-
public messageFileStream(request: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
|
|
1230
|
-
public messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
1231
|
-
public messageImageStream(request: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
|
|
1232
|
-
public messageSendFileStream(callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1233
|
-
public messageSendFileStream(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1234
|
-
public messageSendFileStream(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1235
|
-
public messageSendFileStream(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse) => void): grpc.ClientWritableStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
|
|
1236
1186
|
public start(request: wechaty_puppet_base_pb.StartRequest, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
1237
1187
|
public start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|
|
1238
1188
|
public start(request: wechaty_puppet_base_pb.StartRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: wechaty_puppet_base_pb.StartResponse) => void): grpc.ClientUnaryCall;
|