@juzi/wechaty-grpc 1.0.78 → 1.0.80
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/out/wechaty/puppet/friendship_pb.d.ts +9 -0
- package/dist/cjs/out/wechaty/puppet/friendship_pb.js +64 -2
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +522 -48
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +74 -8
- package/dist/cjs/out/wechaty/puppet.swagger.json +85 -8
- package/dist/cjs/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +18 -8
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +9 -0
- package/dist/esm/out/wechaty/puppet/friendship_pb.js +64 -2
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/dist/esm/out/wechaty/puppet/tag_pb.js +522 -48
- package/dist/esm/out/wechaty/puppet.openapi.yaml +74 -8
- package/dist/esm/out/wechaty/puppet.swagger.json +85 -8
- package/dist/esm/proto/wechaty/puppet/friendship.proto +3 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +18 -8
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/friendship_pb.d.ts +9 -0
- package/out/wechaty/puppet/friendship_pb.js +64 -2
- package/out/wechaty/puppet/tag_pb.d.ts +74 -20
- package/out/wechaty/puppet/tag_pb.js +522 -48
- package/out/wechaty/puppet.openapi.yaml +74 -8
- package/out/wechaty/puppet.swagger.json +85 -8
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.80
|
|
13
13
|
contact:
|
|
14
14
|
name: Wechaty
|
|
15
15
|
url: https://github.com/wechaty/openapi
|
|
@@ -845,6 +845,23 @@ paths:
|
|
|
845
845
|
in: path
|
|
846
846
|
required: true
|
|
847
847
|
type: string
|
|
848
|
+
- name: type
|
|
849
|
+
description: |2-
|
|
850
|
+
- CONTACT_TYPE_UNSPECIFIED: 不明确
|
|
851
|
+
- CONTACT_TYPE_PERSONAL: 个微联系人
|
|
852
|
+
- CONTACT_TYPE_OFFICIAL: 公众号
|
|
853
|
+
- CONTACT_TYPE_CORPORATION: 企微联系人
|
|
854
|
+
- CONTACT_TYPE_APPLICATION: 应用联系人 例如小助手
|
|
855
|
+
in: query
|
|
856
|
+
required: false
|
|
857
|
+
type: string
|
|
858
|
+
enum:
|
|
859
|
+
- CONTACT_TYPE_UNSPECIFIED
|
|
860
|
+
- CONTACT_TYPE_PERSONAL
|
|
861
|
+
- CONTACT_TYPE_OFFICIAL
|
|
862
|
+
- CONTACT_TYPE_CORPORATION
|
|
863
|
+
- CONTACT_TYPE_APPLICATION
|
|
864
|
+
default: CONTACT_TYPE_UNSPECIFIED
|
|
848
865
|
tags:
|
|
849
866
|
- Puppet
|
|
850
867
|
/friendship/search/phone/{phone}:
|
|
@@ -864,6 +881,23 @@ paths:
|
|
|
864
881
|
in: path
|
|
865
882
|
required: true
|
|
866
883
|
type: string
|
|
884
|
+
- name: type
|
|
885
|
+
description: |2-
|
|
886
|
+
- CONTACT_TYPE_UNSPECIFIED: 不明确
|
|
887
|
+
- CONTACT_TYPE_PERSONAL: 个微联系人
|
|
888
|
+
- CONTACT_TYPE_OFFICIAL: 公众号
|
|
889
|
+
- CONTACT_TYPE_CORPORATION: 企微联系人
|
|
890
|
+
- CONTACT_TYPE_APPLICATION: 应用联系人 例如小助手
|
|
891
|
+
in: query
|
|
892
|
+
required: false
|
|
893
|
+
type: string
|
|
894
|
+
enum:
|
|
895
|
+
- CONTACT_TYPE_UNSPECIFIED
|
|
896
|
+
- CONTACT_TYPE_PERSONAL
|
|
897
|
+
- CONTACT_TYPE_OFFICIAL
|
|
898
|
+
- CONTACT_TYPE_CORPORATION
|
|
899
|
+
- CONTACT_TYPE_APPLICATION
|
|
900
|
+
default: CONTACT_TYPE_UNSPECIFIED
|
|
867
901
|
tags:
|
|
868
902
|
- Puppet
|
|
869
903
|
/friendship/{id}:
|
|
@@ -3194,6 +3228,8 @@ definitions:
|
|
|
3194
3228
|
@link https://github.com/wechaty/getting-started/issues/254
|
|
3195
3229
|
|
|
3196
3230
|
TODO: rename `weixin` to `handle` in v2.0.0
|
|
3231
|
+
type:
|
|
3232
|
+
$ref: '#/definitions/puppetContactType'
|
|
3197
3233
|
description: >-
|
|
3198
3234
|
*
|
|
3199
3235
|
|
|
@@ -4154,15 +4190,24 @@ definitions:
|
|
|
4154
4190
|
puppetTagTagAddRequest:
|
|
4155
4191
|
type: object
|
|
4156
4192
|
properties:
|
|
4157
|
-
|
|
4193
|
+
deprecatedTagName:
|
|
4158
4194
|
type: string
|
|
4159
4195
|
tagGroupId:
|
|
4160
4196
|
type: string
|
|
4197
|
+
tagName:
|
|
4198
|
+
type: array
|
|
4199
|
+
items:
|
|
4200
|
+
type: string
|
|
4161
4201
|
puppetTagTagAddResponse:
|
|
4162
4202
|
type: object
|
|
4163
4203
|
properties:
|
|
4164
|
-
|
|
4204
|
+
deprecatedTagId:
|
|
4165
4205
|
type: string
|
|
4206
|
+
tagInfo:
|
|
4207
|
+
type: array
|
|
4208
|
+
items:
|
|
4209
|
+
type: object
|
|
4210
|
+
$ref: '#/definitions/puppetTagTagInfo'
|
|
4166
4211
|
puppetTagTagContactListResponse:
|
|
4167
4212
|
type: object
|
|
4168
4213
|
properties:
|
|
@@ -4173,10 +4218,21 @@ definitions:
|
|
|
4173
4218
|
puppetTagTagDeleteRequest:
|
|
4174
4219
|
type: object
|
|
4175
4220
|
properties:
|
|
4176
|
-
|
|
4221
|
+
deprecatedTagId:
|
|
4177
4222
|
type: string
|
|
4223
|
+
tagId:
|
|
4224
|
+
type: array
|
|
4225
|
+
items:
|
|
4226
|
+
type: string
|
|
4178
4227
|
puppetTagTagDeleteResponse:
|
|
4179
4228
|
type: object
|
|
4229
|
+
puppetTagTagInfo:
|
|
4230
|
+
type: object
|
|
4231
|
+
properties:
|
|
4232
|
+
tagId:
|
|
4233
|
+
type: string
|
|
4234
|
+
tagName:
|
|
4235
|
+
type: string
|
|
4180
4236
|
puppetTagTagListResponse:
|
|
4181
4237
|
type: object
|
|
4182
4238
|
properties:
|
|
@@ -4187,17 +4243,27 @@ definitions:
|
|
|
4187
4243
|
puppetTagTagModifyRequest:
|
|
4188
4244
|
type: object
|
|
4189
4245
|
properties:
|
|
4190
|
-
|
|
4246
|
+
deprecatedTagId:
|
|
4191
4247
|
type: string
|
|
4192
|
-
|
|
4248
|
+
deprecatedTagNewName:
|
|
4193
4249
|
type: string
|
|
4250
|
+
tagNewInfo:
|
|
4251
|
+
type: array
|
|
4252
|
+
items:
|
|
4253
|
+
type: object
|
|
4254
|
+
$ref: '#/definitions/puppetTagTagInfo'
|
|
4194
4255
|
puppetTagTagModifyResponse:
|
|
4195
4256
|
type: object
|
|
4196
4257
|
properties:
|
|
4197
|
-
|
|
4258
|
+
deprecatedTagId:
|
|
4198
4259
|
type: string
|
|
4199
|
-
|
|
4260
|
+
deprecatedTagName:
|
|
4200
4261
|
type: string
|
|
4262
|
+
tagInfo:
|
|
4263
|
+
type: array
|
|
4264
|
+
items:
|
|
4265
|
+
type: object
|
|
4266
|
+
$ref: '#/definitions/puppetTagTagInfo'
|
|
4201
4267
|
puppetTagType:
|
|
4202
4268
|
type: string
|
|
4203
4269
|
enum:
|
|
@@ -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.80",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Wechaty",
|
|
9
9
|
"url": "https://github.com/wechaty/openapi",
|
|
@@ -1266,6 +1266,21 @@
|
|
|
1266
1266
|
"in": "path",
|
|
1267
1267
|
"required": true,
|
|
1268
1268
|
"type": "string"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "type",
|
|
1272
|
+
"description": " - CONTACT_TYPE_UNSPECIFIED: 不明确\n - CONTACT_TYPE_PERSONAL: 个微联系人\n - CONTACT_TYPE_OFFICIAL: 公众号\n - CONTACT_TYPE_CORPORATION: 企微联系人\n - CONTACT_TYPE_APPLICATION: 应用联系人 例如小助手",
|
|
1273
|
+
"in": "query",
|
|
1274
|
+
"required": false,
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"enum": [
|
|
1277
|
+
"CONTACT_TYPE_UNSPECIFIED",
|
|
1278
|
+
"CONTACT_TYPE_PERSONAL",
|
|
1279
|
+
"CONTACT_TYPE_OFFICIAL",
|
|
1280
|
+
"CONTACT_TYPE_CORPORATION",
|
|
1281
|
+
"CONTACT_TYPE_APPLICATION"
|
|
1282
|
+
],
|
|
1283
|
+
"default": "CONTACT_TYPE_UNSPECIFIED"
|
|
1269
1284
|
}
|
|
1270
1285
|
],
|
|
1271
1286
|
"tags": [
|
|
@@ -1296,6 +1311,21 @@
|
|
|
1296
1311
|
"in": "path",
|
|
1297
1312
|
"required": true,
|
|
1298
1313
|
"type": "string"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "type",
|
|
1317
|
+
"description": " - CONTACT_TYPE_UNSPECIFIED: 不明确\n - CONTACT_TYPE_PERSONAL: 个微联系人\n - CONTACT_TYPE_OFFICIAL: 公众号\n - CONTACT_TYPE_CORPORATION: 企微联系人\n - CONTACT_TYPE_APPLICATION: 应用联系人 例如小助手",
|
|
1318
|
+
"in": "query",
|
|
1319
|
+
"required": false,
|
|
1320
|
+
"type": "string",
|
|
1321
|
+
"enum": [
|
|
1322
|
+
"CONTACT_TYPE_UNSPECIFIED",
|
|
1323
|
+
"CONTACT_TYPE_PERSONAL",
|
|
1324
|
+
"CONTACT_TYPE_OFFICIAL",
|
|
1325
|
+
"CONTACT_TYPE_CORPORATION",
|
|
1326
|
+
"CONTACT_TYPE_APPLICATION"
|
|
1327
|
+
],
|
|
1328
|
+
"default": "CONTACT_TYPE_UNSPECIFIED"
|
|
1299
1329
|
}
|
|
1300
1330
|
],
|
|
1301
1331
|
"tags": [
|
|
@@ -4665,6 +4695,9 @@
|
|
|
4665
4695
|
"weixin": {
|
|
4666
4696
|
"type": "string",
|
|
4667
4697
|
"description": "*\nHuan(202203): in gRPC, we can freely rename the field name as long as the number keep consistent.\n so we can just rename `weixin` to `handle` here.\n\n(Huan(20220329): use `weixin` for now, until we upgrade to v2.0\n the `wechaty-grpc@1.0.0` will use the latest v1.x automatically when running `npm install`\n which will causing a breaking change.\n @link https://github.com/wechaty/getting-started/issues/254\n\nTODO: rename `weixin` to `handle` in v2.0.0"
|
|
4698
|
+
},
|
|
4699
|
+
"type": {
|
|
4700
|
+
"$ref": "#/definitions/puppetContactType"
|
|
4668
4701
|
}
|
|
4669
4702
|
},
|
|
4670
4703
|
"description": "*\nHuan(202003): we just rename the payload message because gRPC only care about the message structure\n (and as long as we keep consistent with the old structure).\n\n @link https://github.com/wechaty/grpc/pull/173\n\nRename:\n 1. `FriendshipSearchWeixinRequest` -> `FriendshipSearchHandleRequest`\n 2. `FriendshipSearchWeixinReqsponse` -> `FriendshipSearchHandleResponse`"
|
|
@@ -5920,19 +5953,32 @@
|
|
|
5920
5953
|
"puppetTagTagAddRequest": {
|
|
5921
5954
|
"type": "object",
|
|
5922
5955
|
"properties": {
|
|
5923
|
-
"
|
|
5956
|
+
"deprecatedTagName": {
|
|
5924
5957
|
"type": "string"
|
|
5925
5958
|
},
|
|
5926
5959
|
"tagGroupId": {
|
|
5927
5960
|
"type": "string"
|
|
5961
|
+
},
|
|
5962
|
+
"tagName": {
|
|
5963
|
+
"type": "array",
|
|
5964
|
+
"items": {
|
|
5965
|
+
"type": "string"
|
|
5966
|
+
}
|
|
5928
5967
|
}
|
|
5929
5968
|
}
|
|
5930
5969
|
},
|
|
5931
5970
|
"puppetTagTagAddResponse": {
|
|
5932
5971
|
"type": "object",
|
|
5933
5972
|
"properties": {
|
|
5934
|
-
"
|
|
5973
|
+
"deprecatedTagId": {
|
|
5935
5974
|
"type": "string"
|
|
5975
|
+
},
|
|
5976
|
+
"tagInfo": {
|
|
5977
|
+
"type": "array",
|
|
5978
|
+
"items": {
|
|
5979
|
+
"type": "object",
|
|
5980
|
+
"$ref": "#/definitions/puppetTagTagInfo"
|
|
5981
|
+
}
|
|
5936
5982
|
}
|
|
5937
5983
|
}
|
|
5938
5984
|
},
|
|
@@ -5950,14 +5996,31 @@
|
|
|
5950
5996
|
"puppetTagTagDeleteRequest": {
|
|
5951
5997
|
"type": "object",
|
|
5952
5998
|
"properties": {
|
|
5953
|
-
"
|
|
5999
|
+
"deprecatedTagId": {
|
|
5954
6000
|
"type": "string"
|
|
6001
|
+
},
|
|
6002
|
+
"tagId": {
|
|
6003
|
+
"type": "array",
|
|
6004
|
+
"items": {
|
|
6005
|
+
"type": "string"
|
|
6006
|
+
}
|
|
5955
6007
|
}
|
|
5956
6008
|
}
|
|
5957
6009
|
},
|
|
5958
6010
|
"puppetTagTagDeleteResponse": {
|
|
5959
6011
|
"type": "object"
|
|
5960
6012
|
},
|
|
6013
|
+
"puppetTagTagInfo": {
|
|
6014
|
+
"type": "object",
|
|
6015
|
+
"properties": {
|
|
6016
|
+
"tagId": {
|
|
6017
|
+
"type": "string"
|
|
6018
|
+
},
|
|
6019
|
+
"tagName": {
|
|
6020
|
+
"type": "string"
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
6023
|
+
},
|
|
5961
6024
|
"puppetTagTagListResponse": {
|
|
5962
6025
|
"type": "object",
|
|
5963
6026
|
"properties": {
|
|
@@ -5972,22 +6035,36 @@
|
|
|
5972
6035
|
"puppetTagTagModifyRequest": {
|
|
5973
6036
|
"type": "object",
|
|
5974
6037
|
"properties": {
|
|
5975
|
-
"
|
|
6038
|
+
"deprecatedTagId": {
|
|
5976
6039
|
"type": "string"
|
|
5977
6040
|
},
|
|
5978
|
-
"
|
|
6041
|
+
"deprecatedTagNewName": {
|
|
5979
6042
|
"type": "string"
|
|
6043
|
+
},
|
|
6044
|
+
"tagNewInfo": {
|
|
6045
|
+
"type": "array",
|
|
6046
|
+
"items": {
|
|
6047
|
+
"type": "object",
|
|
6048
|
+
"$ref": "#/definitions/puppetTagTagInfo"
|
|
6049
|
+
}
|
|
5980
6050
|
}
|
|
5981
6051
|
}
|
|
5982
6052
|
},
|
|
5983
6053
|
"puppetTagTagModifyResponse": {
|
|
5984
6054
|
"type": "object",
|
|
5985
6055
|
"properties": {
|
|
5986
|
-
"
|
|
6056
|
+
"deprecatedTagId": {
|
|
5987
6057
|
"type": "string"
|
|
5988
6058
|
},
|
|
5989
|
-
"
|
|
6059
|
+
"deprecatedTagName": {
|
|
5990
6060
|
"type": "string"
|
|
6061
|
+
},
|
|
6062
|
+
"tagInfo": {
|
|
6063
|
+
"type": "array",
|
|
6064
|
+
"items": {
|
|
6065
|
+
"type": "object",
|
|
6066
|
+
"$ref": "#/definitions/puppetTagTagInfo"
|
|
6067
|
+
}
|
|
5991
6068
|
}
|
|
5992
6069
|
}
|
|
5993
6070
|
},
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED