@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.
Files changed (57) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +0 -2
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -2
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +1 -142
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +1 -194
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +0 -50
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +0 -102
  7. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  8. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +0 -34
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +0 -147
  11. package/dist/cjs/proto/wechaty/puppet.proto +0 -9
  12. package/dist/cjs/src/package-json.js +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  14. package/dist/cjs/tests/puppet-server-impl.js +0 -13
  15. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  16. package/dist/esm/commonjs/generated/puppet.cjs +0 -2
  17. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -2
  18. package/dist/esm/out/wechaty/puppet.openapi.yaml +1 -142
  19. package/dist/esm/out/wechaty/puppet.swagger.json +1 -194
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +0 -50
  21. package/dist/esm/out/wechaty/puppet_grpc_pb.js +0 -102
  22. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  23. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  24. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +0 -34
  25. package/dist/esm/out/wechaty/puppet_pb_service.js +0 -147
  26. package/dist/esm/proto/wechaty/puppet.proto +0 -9
  27. package/dist/esm/src/package-json.js +1 -1
  28. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  29. package/dist/esm/tests/puppet-server-impl.js +0 -13
  30. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  31. package/out/wechaty/puppet.openapi.yaml +1 -142
  32. package/out/wechaty/puppet.swagger.json +1 -194
  33. package/out/wechaty/puppet_grpc_pb.d.ts +0 -50
  34. package/out/wechaty/puppet_grpc_pb.js +0 -102
  35. package/out/wechaty/puppet_pb.d.ts +0 -1
  36. package/out/wechaty/puppet_pb.js +0 -2
  37. package/out/wechaty/puppet_pb_service.d.ts +0 -34
  38. package/out/wechaty/puppet_pb_service.js +0 -147
  39. package/package.json +1 -1
  40. package/src/package-json.ts +1 -1
  41. package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  42. package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  43. package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +0 -1368
  44. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  45. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  46. package/dist/cjs/proto/wechaty/deprecated/file-box.proto +0 -61
  47. package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  48. package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  49. package/dist/esm/out/wechaty/deprecated/file-box_pb.js +0 -1368
  50. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  51. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +0 -3
  52. package/dist/esm/proto/wechaty/deprecated/file-box.proto +0 -61
  53. package/out/wechaty/deprecated/file-box_grpc_pb.js +0 -1
  54. package/out/wechaty/deprecated/file-box_pb.d.ts +0 -179
  55. package/out/wechaty/deprecated/file-box_pb.js +0 -1368
  56. package/out/wechaty/deprecated/file-box_pb_service.d.ts +0 -3
  57. 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.42
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.42",
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;
@@ -16,7 +16,6 @@
16
16
  var grpc = require('@grpc/grpc-js');
17
17
  var google_api_annotations_pb = require('../google/api/annotations_pb.js');
18
18
  var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapiv2/options/annotations_pb.js');
19
- var wechaty_deprecated_file$box_pb = require('../wechaty/deprecated/file-box_pb.js');
20
19
  var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
21
20
  var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
22
21
  var wechaty_puppet_download$upload_pb = require('../wechaty/puppet/download-upload_pb.js');
@@ -626,28 +625,6 @@ function deserialize_wechaty_puppet_MessageFileResponse(buffer_arg) {
626
625
  return wechaty_puppet_message_pb.MessageFileResponse.deserializeBinary(new Uint8Array(buffer_arg));
627
626
  }
628
627
 
629
- function serialize_wechaty_puppet_MessageFileStreamRequest(arg) {
630
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageFileStreamRequest)) {
631
- throw new Error('Expected argument of type wechaty.puppet.MessageFileStreamRequest');
632
- }
633
- return Buffer.from(arg.serializeBinary());
634
- }
635
-
636
- function deserialize_wechaty_puppet_MessageFileStreamRequest(buffer_arg) {
637
- return wechaty_deprecated_file$box_pb.MessageFileStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
638
- }
639
-
640
- function serialize_wechaty_puppet_MessageFileStreamResponse(arg) {
641
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageFileStreamResponse)) {
642
- throw new Error('Expected argument of type wechaty.puppet.MessageFileStreamResponse');
643
- }
644
- return Buffer.from(arg.serializeBinary());
645
- }
646
-
647
- function deserialize_wechaty_puppet_MessageFileStreamResponse(buffer_arg) {
648
- return wechaty_deprecated_file$box_pb.MessageFileStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
649
- }
650
-
651
628
  function serialize_wechaty_puppet_MessageForwardRequest(arg) {
652
629
  if (!(arg instanceof wechaty_puppet_message_pb.MessageForwardRequest)) {
653
630
  throw new Error('Expected argument of type wechaty.puppet.MessageForwardRequest');
@@ -692,28 +669,6 @@ function deserialize_wechaty_puppet_MessageImageResponse(buffer_arg) {
692
669
  return wechaty_puppet_message_pb.MessageImageResponse.deserializeBinary(new Uint8Array(buffer_arg));
693
670
  }
694
671
 
695
- function serialize_wechaty_puppet_MessageImageStreamRequest(arg) {
696
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageImageStreamRequest)) {
697
- throw new Error('Expected argument of type wechaty.puppet.MessageImageStreamRequest');
698
- }
699
- return Buffer.from(arg.serializeBinary());
700
- }
701
-
702
- function deserialize_wechaty_puppet_MessageImageStreamRequest(buffer_arg) {
703
- return wechaty_deprecated_file$box_pb.MessageImageStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
704
- }
705
-
706
- function serialize_wechaty_puppet_MessageImageStreamResponse(arg) {
707
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageImageStreamResponse)) {
708
- throw new Error('Expected argument of type wechaty.puppet.MessageImageStreamResponse');
709
- }
710
- return Buffer.from(arg.serializeBinary());
711
- }
712
-
713
- function deserialize_wechaty_puppet_MessageImageStreamResponse(buffer_arg) {
714
- return wechaty_deprecated_file$box_pb.MessageImageStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
715
- }
716
-
717
672
  function serialize_wechaty_puppet_MessageLocationRequest(arg) {
718
673
  if (!(arg instanceof wechaty_puppet_message_pb.MessageLocationRequest)) {
719
674
  throw new Error('Expected argument of type wechaty.puppet.MessageLocationRequest');
@@ -890,28 +845,6 @@ function deserialize_wechaty_puppet_MessageSendFileResponse(buffer_arg) {
890
845
  return wechaty_puppet_message_pb.MessageSendFileResponse.deserializeBinary(new Uint8Array(buffer_arg));
891
846
  }
892
847
 
893
- function serialize_wechaty_puppet_MessageSendFileStreamRequest(arg) {
894
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest)) {
895
- throw new Error('Expected argument of type wechaty.puppet.MessageSendFileStreamRequest');
896
- }
897
- return Buffer.from(arg.serializeBinary());
898
- }
899
-
900
- function deserialize_wechaty_puppet_MessageSendFileStreamRequest(buffer_arg) {
901
- return wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest.deserializeBinary(new Uint8Array(buffer_arg));
902
- }
903
-
904
- function serialize_wechaty_puppet_MessageSendFileStreamResponse(arg) {
905
- if (!(arg instanceof wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse)) {
906
- throw new Error('Expected argument of type wechaty.puppet.MessageSendFileStreamResponse');
907
- }
908
- return Buffer.from(arg.serializeBinary());
909
- }
910
-
911
- function deserialize_wechaty_puppet_MessageSendFileStreamResponse(buffer_arg) {
912
- return wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse.deserializeBinary(new Uint8Array(buffer_arg));
913
- }
914
-
915
848
  function serialize_wechaty_puppet_MessageSendLocationRequest(arg) {
916
849
  if (!(arg instanceof wechaty_puppet_message_pb.MessageSendLocationRequest)) {
917
850
  throw new Error('Expected argument of type wechaty.puppet.MessageSendLocationRequest');
@@ -1883,41 +1816,6 @@ function deserialize_wechaty_puppet_VersionResponse(buffer_arg) {
1883
1816
 
1884
1817
  var PuppetService = exports.PuppetService = {
1885
1818
  // *
1886
- // Deprecated: will be removed after Dec 31, 2022
1887
- messageFileStream: {
1888
- path: '/wechaty.Puppet/MessageFileStream',
1889
- requestStream: false,
1890
- responseStream: true,
1891
- requestType: wechaty_deprecated_file$box_pb.MessageFileStreamRequest,
1892
- responseType: wechaty_deprecated_file$box_pb.MessageFileStreamResponse,
1893
- requestSerialize: serialize_wechaty_puppet_MessageFileStreamRequest,
1894
- requestDeserialize: deserialize_wechaty_puppet_MessageFileStreamRequest,
1895
- responseSerialize: serialize_wechaty_puppet_MessageFileStreamResponse,
1896
- responseDeserialize: deserialize_wechaty_puppet_MessageFileStreamResponse,
1897
- },
1898
- messageImageStream: {
1899
- path: '/wechaty.Puppet/MessageImageStream',
1900
- requestStream: false,
1901
- responseStream: true,
1902
- requestType: wechaty_deprecated_file$box_pb.MessageImageStreamRequest,
1903
- responseType: wechaty_deprecated_file$box_pb.MessageImageStreamResponse,
1904
- requestSerialize: serialize_wechaty_puppet_MessageImageStreamRequest,
1905
- requestDeserialize: deserialize_wechaty_puppet_MessageImageStreamRequest,
1906
- responseSerialize: serialize_wechaty_puppet_MessageImageStreamResponse,
1907
- responseDeserialize: deserialize_wechaty_puppet_MessageImageStreamResponse,
1908
- },
1909
- messageSendFileStream: {
1910
- path: '/wechaty.Puppet/MessageSendFileStream',
1911
- requestStream: true,
1912
- responseStream: false,
1913
- requestType: wechaty_deprecated_file$box_pb.MessageSendFileStreamRequest,
1914
- responseType: wechaty_deprecated_file$box_pb.MessageSendFileStreamResponse,
1915
- requestSerialize: serialize_wechaty_puppet_MessageSendFileStreamRequest,
1916
- requestDeserialize: deserialize_wechaty_puppet_MessageSendFileStreamRequest,
1917
- responseSerialize: serialize_wechaty_puppet_MessageSendFileStreamResponse,
1918
- responseDeserialize: deserialize_wechaty_puppet_MessageSendFileStreamResponse,
1919
- },
1920
- // *
1921
1819
  //
1922
1820
  // Base
1923
1821
  //
@@ -4,7 +4,6 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "../google/api/annotations_pb";
6
6
  import * as protoc_gen_openapiv2_options_annotations_pb from "../protoc-gen-openapiv2/options/annotations_pb";
7
- import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
8
7
  import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
9
8
  import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
10
9
  import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";