@juzi/wechaty-grpc 1.0.5 → 1.0.8

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 (85) hide show
  1. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +36 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +275 -0
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +4 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +31 -1
  5. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  7. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  8. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  11. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +31 -1
  12. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +4 -0
  13. package/dist/cjs/out/wechaty/puppet/room_pb.js +31 -1
  14. package/dist/cjs/out/wechaty/puppet.openapi.yaml +282 -1
  15. package/dist/cjs/out/wechaty/puppet.swagger.json +423 -1
  16. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +171 -0
  17. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +336 -0
  18. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  19. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  20. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +191 -0
  21. package/dist/cjs/out/wechaty/puppet_pb_service.js +401 -0
  22. package/dist/cjs/proto/wechaty/puppet/base.proto +7 -0
  23. package/dist/cjs/proto/wechaty/puppet/contact.proto +19 -18
  24. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +90 -0
  25. package/dist/cjs/proto/wechaty/puppet/room-member.proto +6 -5
  26. package/dist/cjs/proto/wechaty/puppet/room.proto +6 -5
  27. package/dist/cjs/proto/wechaty/puppet.proto +65 -0
  28. package/dist/cjs/src/package-json.js +1 -1
  29. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  30. package/dist/cjs/tests/puppet-server-impl.js +50 -0
  31. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  32. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +36 -0
  33. package/dist/esm/out/wechaty/puppet/base_pb.js +275 -0
  34. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +4 -0
  35. package/dist/esm/out/wechaty/puppet/contact_pb.js +31 -1
  36. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  37. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  38. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  39. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  40. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  41. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  42. package/dist/esm/out/wechaty/puppet/room-member_pb.js +31 -1
  43. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +4 -0
  44. package/dist/esm/out/wechaty/puppet/room_pb.js +31 -1
  45. package/dist/esm/out/wechaty/puppet.openapi.yaml +282 -1
  46. package/dist/esm/out/wechaty/puppet.swagger.json +423 -1
  47. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +171 -0
  48. package/dist/esm/out/wechaty/puppet_grpc_pb.js +336 -0
  49. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  50. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  51. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +191 -0
  52. package/dist/esm/out/wechaty/puppet_pb_service.js +401 -0
  53. package/dist/esm/proto/wechaty/puppet/base.proto +7 -0
  54. package/dist/esm/proto/wechaty/puppet/contact.proto +19 -18
  55. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +90 -0
  56. package/dist/esm/proto/wechaty/puppet/room-member.proto +6 -5
  57. package/dist/esm/proto/wechaty/puppet/room.proto +6 -5
  58. package/dist/esm/proto/wechaty/puppet.proto +65 -0
  59. package/dist/esm/src/package-json.js +1 -1
  60. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  61. package/dist/esm/tests/puppet-server-impl.js +50 -0
  62. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  63. package/out/wechaty/puppet/base_pb.d.ts +36 -0
  64. package/out/wechaty/puppet/base_pb.js +275 -0
  65. package/out/wechaty/puppet/contact_pb.d.ts +4 -0
  66. package/out/wechaty/puppet/contact_pb.js +31 -1
  67. package/out/wechaty/puppet/corp-tag_grpc_pb.js +1 -0
  68. package/out/wechaty/puppet/corp-tag_pb.d.ts +431 -0
  69. package/out/wechaty/puppet/corp-tag_pb.js +3315 -0
  70. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +3 -0
  71. package/out/wechaty/puppet/corp-tag_pb_service.js +3 -0
  72. package/out/wechaty/puppet/room-member_pb.d.ts +4 -0
  73. package/out/wechaty/puppet/room-member_pb.js +31 -1
  74. package/out/wechaty/puppet/room_pb.d.ts +4 -0
  75. package/out/wechaty/puppet/room_pb.js +31 -1
  76. package/out/wechaty/puppet.openapi.yaml +282 -1
  77. package/out/wechaty/puppet.swagger.json +423 -1
  78. package/out/wechaty/puppet_grpc_pb.d.ts +171 -0
  79. package/out/wechaty/puppet_grpc_pb.js +336 -0
  80. package/out/wechaty/puppet_pb.d.ts +1 -0
  81. package/out/wechaty/puppet_pb.js +2 -0
  82. package/out/wechaty/puppet_pb_service.d.ts +191 -0
  83. package/out/wechaty/puppet_pb_service.js +401 -0
  84. package/package.json +1 -1
  85. package/src/package-json.ts +1 -1
@@ -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.5",
6
+ "version": "1.0.8",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -166,6 +166,118 @@
166
166
  ]
167
167
  }
168
168
  },
169
+ "/contacts/{contactId}/corp-tag/tags": {
170
+ "get": {
171
+ "operationId": "Puppet_CorpTagContactTagList",
172
+ "responses": {
173
+ "200": {
174
+ "description": "A successful response.",
175
+ "schema": {
176
+ "$ref": "#/definitions/puppetCorpTagContactTagListResponse"
177
+ }
178
+ },
179
+ "default": {
180
+ "description": "An unexpected error response.",
181
+ "schema": {
182
+ "$ref": "#/definitions/rpcStatus"
183
+ }
184
+ }
185
+ },
186
+ "parameters": [
187
+ {
188
+ "name": "contactId",
189
+ "in": "path",
190
+ "required": true,
191
+ "type": "string"
192
+ }
193
+ ],
194
+ "tags": [
195
+ "Puppet"
196
+ ]
197
+ }
198
+ },
199
+ "/contacts/{contactId}/corp-tag/tags/{corpTagId}": {
200
+ "delete": {
201
+ "operationId": "Puppet_CorpTagContactTagRemove",
202
+ "responses": {
203
+ "200": {
204
+ "description": "A successful response.",
205
+ "schema": {
206
+ "$ref": "#/definitions/puppetCorpTagContactTagRemoveResponse"
207
+ }
208
+ },
209
+ "default": {
210
+ "description": "An unexpected error response.",
211
+ "schema": {
212
+ "$ref": "#/definitions/rpcStatus"
213
+ }
214
+ }
215
+ },
216
+ "parameters": [
217
+ {
218
+ "name": "contactId",
219
+ "in": "path",
220
+ "required": true,
221
+ "type": "string"
222
+ },
223
+ {
224
+ "name": "corpTagId",
225
+ "in": "path",
226
+ "required": true,
227
+ "type": "string"
228
+ },
229
+ {
230
+ "name": "corpTagGroupId",
231
+ "in": "query",
232
+ "required": false,
233
+ "type": "string"
234
+ }
235
+ ],
236
+ "tags": [
237
+ "Puppet"
238
+ ]
239
+ },
240
+ "put": {
241
+ "operationId": "Puppet_CorpTagContactTagAdd",
242
+ "responses": {
243
+ "200": {
244
+ "description": "A successful response.",
245
+ "schema": {
246
+ "$ref": "#/definitions/puppetCorpTagContactTagAddResponse"
247
+ }
248
+ },
249
+ "default": {
250
+ "description": "An unexpected error response.",
251
+ "schema": {
252
+ "$ref": "#/definitions/rpcStatus"
253
+ }
254
+ }
255
+ },
256
+ "parameters": [
257
+ {
258
+ "name": "contactId",
259
+ "in": "path",
260
+ "required": true,
261
+ "type": "string"
262
+ },
263
+ {
264
+ "name": "corpTagId",
265
+ "in": "path",
266
+ "required": true,
267
+ "type": "string"
268
+ },
269
+ {
270
+ "name": "corpTagGroupId",
271
+ "in": "query",
272
+ "required": false,
273
+ "type": "string"
274
+ }
275
+ ],
276
+ "tags": [
277
+ "Puppet"
278
+ ]
279
+ }
280
+ },
169
281
  "/contacts/{contactId}/corporation-remark": {
170
282
  "put": {
171
283
  "operationId": "Puppet_ContactCorporationRemark",
@@ -890,6 +1002,212 @@
890
1002
  ]
891
1003
  }
892
1004
  },
1005
+ "/corp-tag/groups": {
1006
+ "get": {
1007
+ "operationId": "Puppet_CorpTagGroupList",
1008
+ "responses": {
1009
+ "200": {
1010
+ "description": "A successful response.",
1011
+ "schema": {
1012
+ "$ref": "#/definitions/puppetCorpTagGroupListResponse"
1013
+ }
1014
+ },
1015
+ "default": {
1016
+ "description": "An unexpected error response.",
1017
+ "schema": {
1018
+ "$ref": "#/definitions/rpcStatus"
1019
+ }
1020
+ }
1021
+ },
1022
+ "tags": [
1023
+ "Puppet"
1024
+ ]
1025
+ }
1026
+ },
1027
+ "/corp-tag/groups/{corpTagGroupId}": {
1028
+ "get": {
1029
+ "operationId": "Puppet_CorpTagTagList",
1030
+ "responses": {
1031
+ "200": {
1032
+ "description": "A successful response.",
1033
+ "schema": {
1034
+ "$ref": "#/definitions/puppetCorpTagTagListResponse"
1035
+ }
1036
+ },
1037
+ "default": {
1038
+ "description": "An unexpected error response.",
1039
+ "schema": {
1040
+ "$ref": "#/definitions/rpcStatus"
1041
+ }
1042
+ }
1043
+ },
1044
+ "parameters": [
1045
+ {
1046
+ "name": "corpTagGroupId",
1047
+ "in": "path",
1048
+ "required": true,
1049
+ "type": "string"
1050
+ }
1051
+ ],
1052
+ "tags": [
1053
+ "Puppet"
1054
+ ]
1055
+ }
1056
+ },
1057
+ "/corp-tags/groups/{corpTagGroupId}": {
1058
+ "delete": {
1059
+ "operationId": "Puppet_CorpTagGroupDelete",
1060
+ "responses": {
1061
+ "200": {
1062
+ "description": "A successful response.",
1063
+ "schema": {
1064
+ "$ref": "#/definitions/puppetCorpTagGroupDeleteResponse"
1065
+ }
1066
+ },
1067
+ "default": {
1068
+ "description": "An unexpected error response.",
1069
+ "schema": {
1070
+ "$ref": "#/definitions/rpcStatus"
1071
+ }
1072
+ }
1073
+ },
1074
+ "parameters": [
1075
+ {
1076
+ "name": "corpTagGroupId",
1077
+ "in": "path",
1078
+ "required": true,
1079
+ "type": "string"
1080
+ }
1081
+ ],
1082
+ "tags": [
1083
+ "Puppet"
1084
+ ]
1085
+ }
1086
+ },
1087
+ "/corp-tags/groups/{corpTagGroupId}/tags/{corpTagId}": {
1088
+ "delete": {
1089
+ "operationId": "Puppet_CorpTagTagDelete",
1090
+ "responses": {
1091
+ "200": {
1092
+ "description": "A successful response.",
1093
+ "schema": {
1094
+ "$ref": "#/definitions/puppetCorpTagTagDeleteResponse"
1095
+ }
1096
+ },
1097
+ "default": {
1098
+ "description": "An unexpected error response.",
1099
+ "schema": {
1100
+ "$ref": "#/definitions/rpcStatus"
1101
+ }
1102
+ }
1103
+ },
1104
+ "parameters": [
1105
+ {
1106
+ "name": "corpTagGroupId",
1107
+ "in": "path",
1108
+ "required": true,
1109
+ "type": "string"
1110
+ },
1111
+ {
1112
+ "name": "corpTagId",
1113
+ "in": "path",
1114
+ "required": true,
1115
+ "type": "string"
1116
+ }
1117
+ ],
1118
+ "tags": [
1119
+ "Puppet"
1120
+ ]
1121
+ }
1122
+ },
1123
+ "/corp-tags/groups/{corpTagGroupId}/tags/{corpTagName}": {
1124
+ "put": {
1125
+ "operationId": "Puppet_CorpTagTagAdd",
1126
+ "responses": {
1127
+ "200": {
1128
+ "description": "A successful response.",
1129
+ "schema": {
1130
+ "$ref": "#/definitions/puppetCorpTagTagAddResponse"
1131
+ }
1132
+ },
1133
+ "default": {
1134
+ "description": "An unexpected error response.",
1135
+ "schema": {
1136
+ "$ref": "#/definitions/rpcStatus"
1137
+ }
1138
+ }
1139
+ },
1140
+ "parameters": [
1141
+ {
1142
+ "name": "corpTagGroupId",
1143
+ "in": "path",
1144
+ "required": true,
1145
+ "type": "string"
1146
+ },
1147
+ {
1148
+ "name": "corpTagName",
1149
+ "in": "path",
1150
+ "required": true,
1151
+ "type": "string"
1152
+ }
1153
+ ],
1154
+ "tags": [
1155
+ "Puppet"
1156
+ ]
1157
+ }
1158
+ },
1159
+ "/corp-tags/groups/{corpTagGroupName}": {
1160
+ "put": {
1161
+ "operationId": "Puppet_CorpTagGroupAdd",
1162
+ "responses": {
1163
+ "200": {
1164
+ "description": "A successful response.",
1165
+ "schema": {
1166
+ "$ref": "#/definitions/puppetCorpTagGroupAddResponse"
1167
+ }
1168
+ },
1169
+ "default": {
1170
+ "description": "An unexpected error response.",
1171
+ "schema": {
1172
+ "$ref": "#/definitions/rpcStatus"
1173
+ }
1174
+ }
1175
+ },
1176
+ "parameters": [
1177
+ {
1178
+ "name": "corpTagGroupName",
1179
+ "in": "path",
1180
+ "required": true,
1181
+ "type": "string"
1182
+ }
1183
+ ],
1184
+ "tags": [
1185
+ "Puppet"
1186
+ ]
1187
+ }
1188
+ },
1189
+ "/currentUser": {
1190
+ "get": {
1191
+ "operationId": "Puppet_CurrentUser",
1192
+ "responses": {
1193
+ "200": {
1194
+ "description": "A successful response.",
1195
+ "schema": {
1196
+ "$ref": "#/definitions/puppetCurrentUserResponse"
1197
+ }
1198
+ },
1199
+ "default": {
1200
+ "description": "An unexpected error response.",
1201
+ "schema": {
1202
+ "$ref": "#/definitions/rpcStatus"
1203
+ }
1204
+ }
1205
+ },
1206
+ "tags": [
1207
+ "Puppet"
1208
+ ]
1209
+ }
1210
+ },
893
1211
  "/ding": {
894
1212
  "post": {
895
1213
  "operationId": "Puppet_Ding",
@@ -2304,6 +2622,7 @@
2304
2622
  "parameters": [
2305
2623
  {
2306
2624
  "name": "body",
2625
+ "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`",
2307
2626
  "in": "body",
2308
2627
  "required": true,
2309
2628
  "schema": {
@@ -2677,6 +2996,9 @@
2677
2996
  "items": {
2678
2997
  "type": "string"
2679
2998
  }
2999
+ },
3000
+ "additionalInfo": {
3001
+ "type": "string"
2680
3002
  }
2681
3003
  }
2682
3004
  },
@@ -2723,6 +3045,100 @@
2723
3045
  ],
2724
3046
  "default": "CONTACT_TYPE_UNSPECIFIED"
2725
3047
  },
3048
+ "puppetCorpTagContactTagAddResponse": {
3049
+ "type": "object"
3050
+ },
3051
+ "puppetCorpTagContactTagListResponse": {
3052
+ "type": "object",
3053
+ "properties": {
3054
+ "payloads": {
3055
+ "type": "array",
3056
+ "items": {
3057
+ "$ref": "#/definitions/puppetCorpTagPayload"
3058
+ }
3059
+ }
3060
+ }
3061
+ },
3062
+ "puppetCorpTagContactTagRemoveResponse": {
3063
+ "type": "object"
3064
+ },
3065
+ "puppetCorpTagGroupAddResponse": {
3066
+ "type": "object",
3067
+ "properties": {
3068
+ "payload": {
3069
+ "$ref": "#/definitions/puppetCorpTagGroupPayload"
3070
+ }
3071
+ }
3072
+ },
3073
+ "puppetCorpTagGroupDeleteResponse": {
3074
+ "type": "object"
3075
+ },
3076
+ "puppetCorpTagGroupListResponse": {
3077
+ "type": "object",
3078
+ "properties": {
3079
+ "payloads": {
3080
+ "type": "array",
3081
+ "items": {
3082
+ "$ref": "#/definitions/puppetCorpTagGroupPayload"
3083
+ }
3084
+ }
3085
+ }
3086
+ },
3087
+ "puppetCorpTagGroupPayload": {
3088
+ "type": "object",
3089
+ "properties": {
3090
+ "id": {
3091
+ "type": "string"
3092
+ },
3093
+ "name": {
3094
+ "type": "string"
3095
+ }
3096
+ }
3097
+ },
3098
+ "puppetCorpTagPayload": {
3099
+ "type": "object",
3100
+ "properties": {
3101
+ "id": {
3102
+ "type": "string"
3103
+ },
3104
+ "name": {
3105
+ "type": "string"
3106
+ },
3107
+ "groupId": {
3108
+ "type": "string"
3109
+ }
3110
+ }
3111
+ },
3112
+ "puppetCorpTagTagAddResponse": {
3113
+ "type": "object",
3114
+ "properties": {
3115
+ "payload": {
3116
+ "$ref": "#/definitions/puppetCorpTagPayload"
3117
+ }
3118
+ }
3119
+ },
3120
+ "puppetCorpTagTagDeleteResponse": {
3121
+ "type": "object"
3122
+ },
3123
+ "puppetCorpTagTagListResponse": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "payloads": {
3127
+ "type": "array",
3128
+ "items": {
3129
+ "$ref": "#/definitions/puppetCorpTagPayload"
3130
+ }
3131
+ }
3132
+ }
3133
+ },
3134
+ "puppetCurrentUserResponse": {
3135
+ "type": "object",
3136
+ "properties": {
3137
+ "userId": {
3138
+ "type": "string"
3139
+ }
3140
+ }
3141
+ },
2726
3142
  "puppetDingRequest": {
2727
3143
  "type": "object",
2728
3144
  "properties": {
@@ -3438,6 +3854,9 @@
3438
3854
  },
3439
3855
  "name": {
3440
3856
  "type": "string"
3857
+ },
3858
+ "additionalInfo": {
3859
+ "type": "string"
3441
3860
  }
3442
3861
  }
3443
3862
  },
@@ -3470,6 +3889,9 @@
3470
3889
  },
3471
3890
  "handle": {
3472
3891
  "type": "string"
3892
+ },
3893
+ "additionalInfo": {
3894
+ "type": "string"
3473
3895
  }
3474
3896
  }
3475
3897
  },