@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
@@ -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";
@@ -19,8 +19,6 @@ var google_api_annotations_pb = require('../google/api/annotations_pb.js');
19
19
  goog.object.extend(proto, google_api_annotations_pb);
20
20
  var protoc$gen$openapiv2_options_annotations_pb = require('../protoc-gen-openapiv2/options/annotations_pb.js');
21
21
  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
22
- var wechaty_deprecated_file$box_pb = require('../wechaty/deprecated/file-box_pb.js');
23
- goog.object.extend(proto, wechaty_deprecated_file$box_pb);
24
22
  var wechaty_puppet_base_pb = require('../wechaty/puppet/base_pb.js');
25
23
  goog.object.extend(proto, wechaty_puppet_base_pb);
26
24
  var wechaty_puppet_contact_pb = require('../wechaty/puppet/contact_pb.js');
@@ -2,7 +2,6 @@
2
2
  // file: wechaty/puppet.proto
3
3
 
4
4
  import * as wechaty_puppet_pb from "../wechaty/puppet_pb";
5
- import * as wechaty_deprecated_file_box_pb from "../wechaty/deprecated/file-box_pb";
6
5
  import * as wechaty_puppet_base_pb from "../wechaty/puppet/base_pb";
7
6
  import * as wechaty_puppet_contact_pb from "../wechaty/puppet/contact_pb";
8
7
  import * as wechaty_puppet_download_upload_pb from "../wechaty/puppet/download-upload_pb";
@@ -18,33 +17,6 @@ import * as wechaty_puppet_post_pb from "../wechaty/puppet/post_pb";
18
17
  import * as wechaty_puppet_moment_pb from "../wechaty/puppet/moment_pb";
19
18
  import {grpc} from "@improbable-eng/grpc-web";
20
19
 
21
- type PuppetMessageFileStream = {
22
- readonly methodName: string;
23
- readonly service: typeof Puppet;
24
- readonly requestStream: false;
25
- readonly responseStream: true;
26
- readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamRequest;
27
- readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageFileStreamResponse;
28
- };
29
-
30
- type PuppetMessageImageStream = {
31
- readonly methodName: string;
32
- readonly service: typeof Puppet;
33
- readonly requestStream: false;
34
- readonly responseStream: true;
35
- readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamRequest;
36
- readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageImageStreamResponse;
37
- };
38
-
39
- type PuppetMessageSendFileStream = {
40
- readonly methodName: string;
41
- readonly service: typeof Puppet;
42
- readonly requestStream: true;
43
- readonly responseStream: false;
44
- readonly requestType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest;
45
- readonly responseType: typeof wechaty_deprecated_file_box_pb.MessageSendFileStreamResponse;
46
- };
47
-
48
20
  type PuppetStart = {
49
21
  readonly methodName: string;
50
22
  readonly service: typeof Puppet;
@@ -785,9 +757,6 @@ type PuppetUpload = {
785
757
 
786
758
  export class Puppet {
787
759
  static readonly serviceName: string;
788
- static readonly MessageFileStream: PuppetMessageFileStream;
789
- static readonly MessageImageStream: PuppetMessageImageStream;
790
- static readonly MessageSendFileStream: PuppetMessageSendFileStream;
791
760
  static readonly Start: PuppetStart;
792
761
  static readonly Stop: PuppetStop;
793
762
  static readonly Logout: PuppetLogout;
@@ -904,9 +873,6 @@ export class PuppetClient {
904
873
  readonly serviceHost: string;
905
874
 
906
875
  constructor(serviceHost: string, options?: grpc.RpcOptions);
907
- messageFileStream(requestMessage: wechaty_deprecated_file_box_pb.MessageFileStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageFileStreamResponse>;
908
- messageImageStream(requestMessage: wechaty_deprecated_file_box_pb.MessageImageStreamRequest, metadata?: grpc.Metadata): ResponseStream<wechaty_deprecated_file_box_pb.MessageImageStreamResponse>;
909
- messageSendFileStream(metadata?: grpc.Metadata): RequestStream<wechaty_deprecated_file_box_pb.MessageSendFileStreamRequest>;
910
876
  start(
911
877
  requestMessage: wechaty_puppet_base_pb.StartRequest,
912
878
  metadata: grpc.Metadata,