@juzi/wechaty-grpc 1.0.10 → 1.0.13

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 (77) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -1
  2. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  4. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +536 -76
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3909 -328
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +413 -362
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +652 -556
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +343 -351
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  13. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +130 -131
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +78 -79
  16. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  17. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  18. package/dist/cjs/proto/wechaty/puppet/tag.proto +115 -29
  19. package/dist/cjs/proto/wechaty/puppet.proto +36 -37
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.js +13 -13
  22. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  23. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
  24. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  25. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  26. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  27. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  28. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +536 -76
  29. package/dist/esm/out/wechaty/puppet/tag_pb.js +3909 -328
  30. package/dist/esm/out/wechaty/puppet.openapi.yaml +413 -362
  31. package/dist/esm/out/wechaty/puppet.swagger.json +652 -556
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.js +343 -351
  34. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  35. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  36. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +130 -131
  37. package/dist/esm/out/wechaty/puppet_pb_service.js +78 -79
  38. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  39. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  40. package/dist/esm/proto/wechaty/puppet/tag.proto +115 -29
  41. package/dist/esm/proto/wechaty/puppet.proto +36 -37
  42. package/dist/esm/src/package-json.js +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +13 -13
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  46. package/out/wechaty/puppet/event_pb.js +2 -1
  47. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  48. package/out/wechaty/puppet/room_pb.js +58 -2
  49. package/out/wechaty/puppet/tag_pb.d.ts +536 -76
  50. package/out/wechaty/puppet/tag_pb.js +3909 -328
  51. package/out/wechaty/puppet.openapi.yaml +413 -362
  52. package/out/wechaty/puppet.swagger.json +652 -556
  53. package/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  54. package/out/wechaty/puppet_grpc_pb.js +343 -351
  55. package/out/wechaty/puppet_pb.d.ts +0 -1
  56. package/out/wechaty/puppet_pb.js +0 -2
  57. package/out/wechaty/puppet_pb_service.d.ts +130 -131
  58. package/out/wechaty/puppet_pb_service.js +78 -79
  59. package/package.json +1 -1
  60. package/src/package-json.ts +1 -1
  61. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  62. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  63. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  64. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  65. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  66. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  67. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  68. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  69. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  70. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  71. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  72. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  73. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  74. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  75. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  76. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  77. package/out/wechaty/puppet/corp-tag_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.10",
6
+ "version": "1.0.13",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -49,37 +49,6 @@
49
49
  ]
50
50
  }
51
51
  },
52
- "/contacts/-/tags/{id}": {
53
- "delete": {
54
- "summary": "*\nOperate Sub-Collections\n https://cloud.google.com/apis/design/design_patterns#list_sub-collections",
55
- "operationId": "Puppet_TagContactDelete",
56
- "responses": {
57
- "200": {
58
- "description": "A successful response.",
59
- "schema": {
60
- "$ref": "#/definitions/puppetTagContactDeleteResponse"
61
- }
62
- },
63
- "default": {
64
- "description": "An unexpected error response.",
65
- "schema": {
66
- "$ref": "#/definitions/rpcStatus"
67
- }
68
- }
69
- },
70
- "parameters": [
71
- {
72
- "name": "id",
73
- "in": "path",
74
- "required": true,
75
- "type": "string"
76
- }
77
- ],
78
- "tags": [
79
- "Puppet"
80
- ]
81
- }
82
- },
83
52
  "/contacts/self/name/{name}": {
84
53
  "put": {
85
54
  "operationId": "Puppet_ContactSelfName",
@@ -166,118 +135,6 @@
166
135
  ]
167
136
  }
168
137
  },
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
- },
281
138
  "/contacts/{contactId}/corporation-remark": {
282
139
  "put": {
283
140
  "operationId": "Puppet_ContactCorporationRemark",
@@ -416,87 +273,14 @@
416
273
  ]
417
274
  }
418
275
  },
419
- "/contacts/{contactId}/tags": {
276
+ "/contacts/{contactId}/tag/tags": {
420
277
  "get": {
421
- "operationId": "Puppet_TagContactList",
422
- "responses": {
423
- "200": {
424
- "description": "A successful response.",
425
- "schema": {
426
- "$ref": "#/definitions/puppetTagContactListResponse"
427
- }
428
- },
429
- "default": {
430
- "description": "An unexpected error response.",
431
- "schema": {
432
- "$ref": "#/definitions/rpcStatus"
433
- }
434
- }
435
- },
436
- "parameters": [
437
- {
438
- "name": "contactId",
439
- "in": "path",
440
- "required": true,
441
- "type": "string"
442
- },
443
- {
444
- "name": "contactIdStringValueDeprecated",
445
- "description": "@deprecated:\n Huan(202109): Wrapper types must not be used going forward.\n https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields",
446
- "in": "query",
447
- "required": false,
448
- "type": "string"
449
- }
450
- ],
451
- "tags": [
452
- "Puppet"
453
- ]
454
- }
455
- },
456
- "/contacts/{contactId}/tags/{id}": {
457
- "delete": {
458
- "operationId": "Puppet_TagContactRemove",
459
- "responses": {
460
- "200": {
461
- "description": "A successful response.",
462
- "schema": {
463
- "$ref": "#/definitions/puppetTagContactRemoveResponse"
464
- }
465
- },
466
- "default": {
467
- "description": "An unexpected error response.",
468
- "schema": {
469
- "$ref": "#/definitions/rpcStatus"
470
- }
471
- }
472
- },
473
- "parameters": [
474
- {
475
- "name": "contactId",
476
- "in": "path",
477
- "required": true,
478
- "type": "string"
479
- },
480
- {
481
- "name": "id",
482
- "in": "path",
483
- "required": true,
484
- "type": "string"
485
- }
486
- ],
487
- "tags": [
488
- "Puppet"
489
- ]
490
- },
491
- "put": {
492
- "summary": "*",
493
- "description": "Tag",
494
- "operationId": "Puppet_TagContactAdd",
278
+ "operationId": "Puppet_TagContactTagList",
495
279
  "responses": {
496
280
  "200": {
497
281
  "description": "A successful response.",
498
282
  "schema": {
499
- "$ref": "#/definitions/puppetTagContactAddResponse"
283
+ "$ref": "#/definitions/puppetTagContactTagListResponse"
500
284
  }
501
285
  },
502
286
  "default": {
@@ -512,12 +296,6 @@
512
296
  "in": "path",
513
297
  "required": true,
514
298
  "type": "string"
515
- },
516
- {
517
- "name": "id",
518
- "in": "path",
519
- "required": true,
520
- "type": "string"
521
299
  }
522
300
  ],
523
301
  "tags": [
@@ -1002,14 +780,14 @@
1002
780
  ]
1003
781
  }
1004
782
  },
1005
- "/corp-tag/groups": {
783
+ "/currentUser": {
1006
784
  "get": {
1007
- "operationId": "Puppet_CorpTagGroupList",
785
+ "operationId": "Puppet_CurrentUser",
1008
786
  "responses": {
1009
787
  "200": {
1010
788
  "description": "A successful response.",
1011
789
  "schema": {
1012
- "$ref": "#/definitions/puppetCorpTagGroupListResponse"
790
+ "$ref": "#/definitions/puppetCurrentUserResponse"
1013
791
  }
1014
792
  },
1015
793
  "default": {
@@ -1024,14 +802,14 @@
1024
802
  ]
1025
803
  }
1026
804
  },
1027
- "/corp-tag/groups/{corpTagGroupId}": {
1028
- "get": {
1029
- "operationId": "Puppet_CorpTagTagList",
805
+ "/ding": {
806
+ "post": {
807
+ "operationId": "Puppet_Ding",
1030
808
  "responses": {
1031
809
  "200": {
1032
810
  "description": "A successful response.",
1033
811
  "schema": {
1034
- "$ref": "#/definitions/puppetCorpTagTagListResponse"
812
+ "$ref": "#/definitions/puppetDingResponse"
1035
813
  }
1036
814
  },
1037
815
  "default": {
@@ -1043,10 +821,12 @@
1043
821
  },
1044
822
  "parameters": [
1045
823
  {
1046
- "name": "corpTagGroupId",
1047
- "in": "path",
824
+ "name": "body",
825
+ "in": "body",
1048
826
  "required": true,
1049
- "type": "string"
827
+ "schema": {
828
+ "$ref": "#/definitions/puppetDingRequest"
829
+ }
1050
830
  }
1051
831
  ],
1052
832
  "tags": [
@@ -1054,14 +834,24 @@
1054
834
  ]
1055
835
  }
1056
836
  },
1057
- "/corp-tags/groups/{corpTagGroupId}": {
1058
- "delete": {
1059
- "operationId": "Puppet_CorpTagGroupDelete",
837
+ "/download/{id}": {
838
+ "get": {
839
+ "summary": "*\nFile/Blob download & upload",
840
+ "operationId": "Puppet_Download",
1060
841
  "responses": {
1061
842
  "200": {
1062
- "description": "A successful response.",
843
+ "description": "A successful response.(streaming responses)",
1063
844
  "schema": {
1064
- "$ref": "#/definitions/puppetCorpTagGroupDeleteResponse"
845
+ "type": "object",
846
+ "properties": {
847
+ "result": {
848
+ "$ref": "#/definitions/puppetDownloadResponse"
849
+ },
850
+ "error": {
851
+ "$ref": "#/definitions/rpcStatus"
852
+ }
853
+ },
854
+ "title": "Stream result of puppetDownloadResponse"
1065
855
  }
1066
856
  },
1067
857
  "default": {
@@ -1073,7 +863,7 @@
1073
863
  },
1074
864
  "parameters": [
1075
865
  {
1076
- "name": "corpTagGroupId",
866
+ "name": "id",
1077
867
  "in": "path",
1078
868
  "required": true,
1079
869
  "type": "string"
@@ -1084,221 +874,25 @@
1084
874
  ]
1085
875
  }
1086
876
  },
1087
- "/corp-tags/groups/{corpTagGroupId}/tags/{corpTagId}": {
1088
- "delete": {
1089
- "operationId": "Puppet_CorpTagTagDelete",
877
+ "/events": {
878
+ "get": {
879
+ "summary": "*",
880
+ "description": "Event - Server Stream",
881
+ "operationId": "Puppet_Event",
1090
882
  "responses": {
1091
883
  "200": {
1092
- "description": "A successful response.",
884
+ "description": "A successful response.(streaming responses)",
1093
885
  "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
- },
1211
- "/ding": {
1212
- "post": {
1213
- "operationId": "Puppet_Ding",
1214
- "responses": {
1215
- "200": {
1216
- "description": "A successful response.",
1217
- "schema": {
1218
- "$ref": "#/definitions/puppetDingResponse"
1219
- }
1220
- },
1221
- "default": {
1222
- "description": "An unexpected error response.",
1223
- "schema": {
1224
- "$ref": "#/definitions/rpcStatus"
1225
- }
1226
- }
1227
- },
1228
- "parameters": [
1229
- {
1230
- "name": "body",
1231
- "in": "body",
1232
- "required": true,
1233
- "schema": {
1234
- "$ref": "#/definitions/puppetDingRequest"
1235
- }
1236
- }
1237
- ],
1238
- "tags": [
1239
- "Puppet"
1240
- ]
1241
- }
1242
- },
1243
- "/download/{id}": {
1244
- "get": {
1245
- "summary": "*\nFile/Blob download & upload",
1246
- "operationId": "Puppet_Download",
1247
- "responses": {
1248
- "200": {
1249
- "description": "A successful response.(streaming responses)",
1250
- "schema": {
1251
- "type": "object",
1252
- "properties": {
1253
- "result": {
1254
- "$ref": "#/definitions/puppetDownloadResponse"
1255
- },
1256
- "error": {
1257
- "$ref": "#/definitions/rpcStatus"
1258
- }
1259
- },
1260
- "title": "Stream result of puppetDownloadResponse"
1261
- }
1262
- },
1263
- "default": {
1264
- "description": "An unexpected error response.",
1265
- "schema": {
1266
- "$ref": "#/definitions/rpcStatus"
1267
- }
1268
- }
1269
- },
1270
- "parameters": [
1271
- {
1272
- "name": "id",
1273
- "in": "path",
1274
- "required": true,
1275
- "type": "string"
1276
- }
1277
- ],
1278
- "tags": [
1279
- "Puppet"
1280
- ]
1281
- }
1282
- },
1283
- "/events": {
1284
- "get": {
1285
- "summary": "*",
1286
- "description": "Event - Server Stream",
1287
- "operationId": "Puppet_Event",
1288
- "responses": {
1289
- "200": {
1290
- "description": "A successful response.(streaming responses)",
1291
- "schema": {
1292
- "type": "object",
1293
- "properties": {
1294
- "result": {
1295
- "$ref": "#/definitions/puppetEventResponse"
1296
- },
1297
- "error": {
1298
- "$ref": "#/definitions/rpcStatus"
1299
- }
1300
- },
1301
- "title": "Stream result of puppetEventResponse"
886
+ "type": "object",
887
+ "properties": {
888
+ "result": {
889
+ "$ref": "#/definitions/puppetEventResponse"
890
+ },
891
+ "error": {
892
+ "$ref": "#/definitions/rpcStatus"
893
+ }
894
+ },
895
+ "title": "Stream result of puppetEventResponse"
1302
896
  }
1303
897
  },
1304
898
  "default": {
@@ -2353,6 +1947,16 @@
2353
1947
  "in": "path",
2354
1948
  "required": true,
2355
1949
  "type": "string"
1950
+ },
1951
+ {
1952
+ "name": "contactIds",
1953
+ "in": "query",
1954
+ "required": false,
1955
+ "type": "array",
1956
+ "items": {
1957
+ "type": "string"
1958
+ },
1959
+ "collectionFormat": "multi"
2356
1960
  }
2357
1961
  ],
2358
1962
  "tags": [
@@ -2500,16 +2104,372 @@
2500
2104
  ]
2501
2105
  }
2502
2106
  },
2503
- "/start": {
2504
- "put": {
2505
- "summary": "*",
2506
- "description": "Base",
2507
- "operationId": "Puppet_Start",
2107
+ "/start": {
2108
+ "put": {
2109
+ "summary": "*",
2110
+ "description": "Base",
2111
+ "operationId": "Puppet_Start",
2112
+ "responses": {
2113
+ "200": {
2114
+ "description": "A successful response.",
2115
+ "schema": {
2116
+ "$ref": "#/definitions/puppetStartResponse"
2117
+ }
2118
+ },
2119
+ "default": {
2120
+ "description": "An unexpected error response.",
2121
+ "schema": {
2122
+ "$ref": "#/definitions/rpcStatus"
2123
+ }
2124
+ }
2125
+ },
2126
+ "tags": [
2127
+ "Puppet"
2128
+ ]
2129
+ }
2130
+ },
2131
+ "/stop": {
2132
+ "put": {
2133
+ "operationId": "Puppet_Stop",
2134
+ "responses": {
2135
+ "200": {
2136
+ "description": "A successful response.",
2137
+ "schema": {
2138
+ "$ref": "#/definitions/puppetStopResponse"
2139
+ }
2140
+ },
2141
+ "default": {
2142
+ "description": "An unexpected error response.",
2143
+ "schema": {
2144
+ "$ref": "#/definitions/rpcStatus"
2145
+ }
2146
+ }
2147
+ },
2148
+ "tags": [
2149
+ "Puppet"
2150
+ ]
2151
+ }
2152
+ },
2153
+ "/tag/add": {
2154
+ "post": {
2155
+ "operationId": "Puppet_TagTagAdd",
2156
+ "responses": {
2157
+ "200": {
2158
+ "description": "A successful response.",
2159
+ "schema": {
2160
+ "$ref": "#/definitions/puppetTagTagAddResponse"
2161
+ }
2162
+ },
2163
+ "default": {
2164
+ "description": "An unexpected error response.",
2165
+ "schema": {
2166
+ "$ref": "#/definitions/rpcStatus"
2167
+ }
2168
+ }
2169
+ },
2170
+ "parameters": [
2171
+ {
2172
+ "name": "body",
2173
+ "in": "body",
2174
+ "required": true,
2175
+ "schema": {
2176
+ "$ref": "#/definitions/puppetTagTagAddRequest"
2177
+ }
2178
+ }
2179
+ ],
2180
+ "tags": [
2181
+ "Puppet"
2182
+ ]
2183
+ }
2184
+ },
2185
+ "/tag/addContactTag": {
2186
+ "post": {
2187
+ "operationId": "Puppet_TagContactTagAdd",
2188
+ "responses": {
2189
+ "200": {
2190
+ "description": "A successful response.",
2191
+ "schema": {
2192
+ "$ref": "#/definitions/puppetTagContactTagAddResponse"
2193
+ }
2194
+ },
2195
+ "default": {
2196
+ "description": "An unexpected error response.",
2197
+ "schema": {
2198
+ "$ref": "#/definitions/rpcStatus"
2199
+ }
2200
+ }
2201
+ },
2202
+ "parameters": [
2203
+ {
2204
+ "name": "body",
2205
+ "in": "body",
2206
+ "required": true,
2207
+ "schema": {
2208
+ "$ref": "#/definitions/puppetTagContactTagAddRequest"
2209
+ }
2210
+ }
2211
+ ],
2212
+ "tags": [
2213
+ "Puppet"
2214
+ ]
2215
+ }
2216
+ },
2217
+ "/tag/delete": {
2218
+ "post": {
2219
+ "operationId": "Puppet_TagTagDelete",
2220
+ "responses": {
2221
+ "200": {
2222
+ "description": "A successful response.",
2223
+ "schema": {
2224
+ "$ref": "#/definitions/puppetTagTagDeleteResponse"
2225
+ }
2226
+ },
2227
+ "default": {
2228
+ "description": "An unexpected error response.",
2229
+ "schema": {
2230
+ "$ref": "#/definitions/rpcStatus"
2231
+ }
2232
+ }
2233
+ },
2234
+ "parameters": [
2235
+ {
2236
+ "name": "body",
2237
+ "in": "body",
2238
+ "required": true,
2239
+ "schema": {
2240
+ "$ref": "#/definitions/puppetTagTagDeleteRequest"
2241
+ }
2242
+ }
2243
+ ],
2244
+ "tags": [
2245
+ "Puppet"
2246
+ ]
2247
+ }
2248
+ },
2249
+ "/tag/groups/{tagGroupId}/tags": {
2250
+ "get": {
2251
+ "operationId": "Puppet_TagGroupTagList",
2252
+ "responses": {
2253
+ "200": {
2254
+ "description": "A successful response.",
2255
+ "schema": {
2256
+ "$ref": "#/definitions/puppetTagGroupTagListResponse"
2257
+ }
2258
+ },
2259
+ "default": {
2260
+ "description": "An unexpected error response.",
2261
+ "schema": {
2262
+ "$ref": "#/definitions/rpcStatus"
2263
+ }
2264
+ }
2265
+ },
2266
+ "parameters": [
2267
+ {
2268
+ "name": "tagGroupId",
2269
+ "in": "path",
2270
+ "required": true,
2271
+ "type": "string"
2272
+ }
2273
+ ],
2274
+ "tags": [
2275
+ "Puppet"
2276
+ ]
2277
+ }
2278
+ },
2279
+ "/tag/list": {
2280
+ "get": {
2281
+ "operationId": "Puppet_TagTagList",
2282
+ "responses": {
2283
+ "200": {
2284
+ "description": "A successful response.",
2285
+ "schema": {
2286
+ "$ref": "#/definitions/puppetTagTagListResponse"
2287
+ }
2288
+ },
2289
+ "default": {
2290
+ "description": "An unexpected error response.",
2291
+ "schema": {
2292
+ "$ref": "#/definitions/rpcStatus"
2293
+ }
2294
+ }
2295
+ },
2296
+ "tags": [
2297
+ "Puppet"
2298
+ ]
2299
+ }
2300
+ },
2301
+ "/tag/payload": {
2302
+ "post": {
2303
+ "operationId": "Puppet_TagPayload",
2304
+ "responses": {
2305
+ "200": {
2306
+ "description": "A successful response.",
2307
+ "schema": {
2308
+ "$ref": "#/definitions/puppetTagPayloadResponse"
2309
+ }
2310
+ },
2311
+ "default": {
2312
+ "description": "An unexpected error response.",
2313
+ "schema": {
2314
+ "$ref": "#/definitions/rpcStatus"
2315
+ }
2316
+ }
2317
+ },
2318
+ "parameters": [
2319
+ {
2320
+ "name": "body",
2321
+ "in": "body",
2322
+ "required": true,
2323
+ "schema": {
2324
+ "$ref": "#/definitions/puppetTagPayloadRequest"
2325
+ }
2326
+ }
2327
+ ],
2328
+ "tags": [
2329
+ "Puppet"
2330
+ ]
2331
+ }
2332
+ },
2333
+ "/tag/removeContactTag": {
2334
+ "post": {
2335
+ "operationId": "Puppet_TagContactTagRemove",
2336
+ "responses": {
2337
+ "200": {
2338
+ "description": "A successful response.",
2339
+ "schema": {
2340
+ "$ref": "#/definitions/puppetTagContactTagRemoveResponse"
2341
+ }
2342
+ },
2343
+ "default": {
2344
+ "description": "An unexpected error response.",
2345
+ "schema": {
2346
+ "$ref": "#/definitions/rpcStatus"
2347
+ }
2348
+ }
2349
+ },
2350
+ "parameters": [
2351
+ {
2352
+ "name": "body",
2353
+ "in": "body",
2354
+ "required": true,
2355
+ "schema": {
2356
+ "$ref": "#/definitions/puppetTagContactTagRemoveRequest"
2357
+ }
2358
+ }
2359
+ ],
2360
+ "tags": [
2361
+ "Puppet"
2362
+ ]
2363
+ }
2364
+ },
2365
+ "/tag/{tag.groupId}/{tag.id}/contacts": {
2366
+ "get": {
2367
+ "operationId": "Puppet_TagTagContactList",
2368
+ "responses": {
2369
+ "200": {
2370
+ "description": "A successful response.",
2371
+ "schema": {
2372
+ "$ref": "#/definitions/puppetTagTagContactListResponse"
2373
+ }
2374
+ },
2375
+ "default": {
2376
+ "description": "An unexpected error response.",
2377
+ "schema": {
2378
+ "$ref": "#/definitions/rpcStatus"
2379
+ }
2380
+ }
2381
+ },
2382
+ "parameters": [
2383
+ {
2384
+ "name": "tag.groupId",
2385
+ "in": "path",
2386
+ "required": true,
2387
+ "type": "string"
2388
+ },
2389
+ {
2390
+ "name": "tag.id",
2391
+ "in": "path",
2392
+ "required": true,
2393
+ "type": "string"
2394
+ }
2395
+ ],
2396
+ "tags": [
2397
+ "Puppet"
2398
+ ]
2399
+ }
2400
+ },
2401
+ "/tagGroup/add": {
2402
+ "post": {
2403
+ "operationId": "Puppet_TagGroupAdd",
2404
+ "responses": {
2405
+ "200": {
2406
+ "description": "A successful response.",
2407
+ "schema": {
2408
+ "$ref": "#/definitions/puppetTagGroupAddResponse"
2409
+ }
2410
+ },
2411
+ "default": {
2412
+ "description": "An unexpected error response.",
2413
+ "schema": {
2414
+ "$ref": "#/definitions/rpcStatus"
2415
+ }
2416
+ }
2417
+ },
2418
+ "parameters": [
2419
+ {
2420
+ "name": "body",
2421
+ "in": "body",
2422
+ "required": true,
2423
+ "schema": {
2424
+ "$ref": "#/definitions/puppetTagGroupAddRequest"
2425
+ }
2426
+ }
2427
+ ],
2428
+ "tags": [
2429
+ "Puppet"
2430
+ ]
2431
+ }
2432
+ },
2433
+ "/tagGroup/delete": {
2434
+ "post": {
2435
+ "operationId": "Puppet_TagGroupDelete",
2436
+ "responses": {
2437
+ "200": {
2438
+ "description": "A successful response.",
2439
+ "schema": {
2440
+ "$ref": "#/definitions/puppetTagGroupDeleteResponse"
2441
+ }
2442
+ },
2443
+ "default": {
2444
+ "description": "An unexpected error response.",
2445
+ "schema": {
2446
+ "$ref": "#/definitions/rpcStatus"
2447
+ }
2448
+ }
2449
+ },
2450
+ "parameters": [
2451
+ {
2452
+ "name": "body",
2453
+ "in": "body",
2454
+ "required": true,
2455
+ "schema": {
2456
+ "$ref": "#/definitions/puppetTagGroupDeleteRequest"
2457
+ }
2458
+ }
2459
+ ],
2460
+ "tags": [
2461
+ "Puppet"
2462
+ ]
2463
+ }
2464
+ },
2465
+ "/tagGroup/list": {
2466
+ "get": {
2467
+ "operationId": "Puppet_TagGroupList",
2508
2468
  "responses": {
2509
2469
  "200": {
2510
2470
  "description": "A successful response.",
2511
2471
  "schema": {
2512
- "$ref": "#/definitions/puppetStartResponse"
2472
+ "$ref": "#/definitions/puppetTagGroupListResponse"
2513
2473
  }
2514
2474
  },
2515
2475
  "default": {
@@ -2524,14 +2484,14 @@
2524
2484
  ]
2525
2485
  }
2526
2486
  },
2527
- "/stop": {
2528
- "put": {
2529
- "operationId": "Puppet_Stop",
2487
+ "/tagGroup/payload": {
2488
+ "post": {
2489
+ "operationId": "Puppet_TagGroupPayload",
2530
2490
  "responses": {
2531
2491
  "200": {
2532
2492
  "description": "A successful response.",
2533
2493
  "schema": {
2534
- "$ref": "#/definitions/puppetStopResponse"
2494
+ "$ref": "#/definitions/puppetTagGroupPayloadResponse"
2535
2495
  }
2536
2496
  },
2537
2497
  "default": {
@@ -2541,6 +2501,16 @@
2541
2501
  }
2542
2502
  }
2543
2503
  },
2504
+ "parameters": [
2505
+ {
2506
+ "name": "body",
2507
+ "in": "body",
2508
+ "required": true,
2509
+ "schema": {
2510
+ "$ref": "#/definitions/puppetTagGroupPayloadRequest"
2511
+ }
2512
+ }
2513
+ ],
2544
2514
  "tags": [
2545
2515
  "Puppet"
2546
2516
  ]
@@ -3045,92 +3015,6 @@
3045
3015
  ],
3046
3016
  "default": "CONTACT_TYPE_UNSPECIFIED"
3047
3017
  },
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
3018
  "puppetCurrentUserResponse": {
3135
3019
  "type": "object",
3136
3020
  "properties": {
@@ -3193,7 +3077,8 @@
3193
3077
  "EVENT_TYPE_RESET",
3194
3078
  "EVENT_TYPE_LOGIN",
3195
3079
  "EVENT_TYPE_LOGOUT",
3196
- "EVENT_TYPE_DIRTY"
3080
+ "EVENT_TYPE_DIRTY",
3081
+ "EVENT_TYPE_TAG"
3197
3082
  ],
3198
3083
  "default": "EVENT_TYPE_UNSPECIFIED"
3199
3084
  },
@@ -3925,16 +3810,200 @@
3925
3810
  "puppetStopResponse": {
3926
3811
  "type": "object"
3927
3812
  },
3928
- "puppetTagContactAddResponse": {
3813
+ "puppetTagContactTagAddRequest": {
3814
+ "type": "object",
3815
+ "properties": {
3816
+ "tags": {
3817
+ "type": "array",
3818
+ "items": {
3819
+ "$ref": "#/definitions/puppetTagIdentifier"
3820
+ }
3821
+ },
3822
+ "contactIds": {
3823
+ "type": "array",
3824
+ "items": {
3825
+ "type": "string"
3826
+ }
3827
+ }
3828
+ }
3829
+ },
3830
+ "puppetTagContactTagAddResponse": {
3831
+ "type": "object"
3832
+ },
3833
+ "puppetTagContactTagListResponse": {
3834
+ "type": "object",
3835
+ "properties": {
3836
+ "tags": {
3837
+ "type": "array",
3838
+ "items": {
3839
+ "$ref": "#/definitions/puppetTagIdentifier"
3840
+ }
3841
+ }
3842
+ }
3843
+ },
3844
+ "puppetTagContactTagRemoveRequest": {
3845
+ "type": "object",
3846
+ "properties": {
3847
+ "tags": {
3848
+ "type": "array",
3849
+ "items": {
3850
+ "$ref": "#/definitions/puppetTagIdentifier"
3851
+ }
3852
+ },
3853
+ "contactIds": {
3854
+ "type": "array",
3855
+ "items": {
3856
+ "type": "string"
3857
+ }
3858
+ }
3859
+ }
3860
+ },
3861
+ "puppetTagContactTagRemoveResponse": {
3929
3862
  "type": "object"
3930
3863
  },
3931
- "puppetTagContactDeleteResponse": {
3864
+ "puppetTagGroupAddRequest": {
3865
+ "type": "object",
3866
+ "properties": {
3867
+ "tagGroupName": {
3868
+ "type": "string"
3869
+ }
3870
+ }
3871
+ },
3872
+ "puppetTagGroupAddResponse": {
3873
+ "type": "object",
3874
+ "properties": {
3875
+ "tagGroupId": {
3876
+ "type": "string"
3877
+ }
3878
+ }
3879
+ },
3880
+ "puppetTagGroupDeleteRequest": {
3881
+ "type": "object",
3882
+ "properties": {
3883
+ "tagGroupId": {
3884
+ "type": "string"
3885
+ }
3886
+ }
3887
+ },
3888
+ "puppetTagGroupDeleteResponse": {
3932
3889
  "type": "object"
3933
3890
  },
3934
- "puppetTagContactListResponse": {
3891
+ "puppetTagGroupListResponse": {
3935
3892
  "type": "object",
3936
3893
  "properties": {
3937
- "ids": {
3894
+ "tagGroupIds": {
3895
+ "type": "array",
3896
+ "items": {
3897
+ "type": "string"
3898
+ }
3899
+ }
3900
+ }
3901
+ },
3902
+ "puppetTagGroupPayload": {
3903
+ "type": "object",
3904
+ "properties": {
3905
+ "id": {
3906
+ "type": "string"
3907
+ },
3908
+ "name": {
3909
+ "type": "string"
3910
+ }
3911
+ }
3912
+ },
3913
+ "puppetTagGroupPayloadRequest": {
3914
+ "type": "object",
3915
+ "properties": {
3916
+ "groupId": {
3917
+ "type": "string"
3918
+ }
3919
+ }
3920
+ },
3921
+ "puppetTagGroupPayloadResponse": {
3922
+ "type": "object",
3923
+ "properties": {
3924
+ "payload": {
3925
+ "$ref": "#/definitions/puppetTagGroupPayload"
3926
+ }
3927
+ }
3928
+ },
3929
+ "puppetTagGroupTagListResponse": {
3930
+ "type": "object",
3931
+ "properties": {
3932
+ "tags": {
3933
+ "type": "array",
3934
+ "items": {
3935
+ "$ref": "#/definitions/puppetTagIdentifier"
3936
+ }
3937
+ }
3938
+ }
3939
+ },
3940
+ "puppetTagIdentifier": {
3941
+ "type": "object",
3942
+ "properties": {
3943
+ "id": {
3944
+ "type": "string"
3945
+ },
3946
+ "groupId": {
3947
+ "type": "string"
3948
+ }
3949
+ }
3950
+ },
3951
+ "puppetTagPayload": {
3952
+ "type": "object",
3953
+ "properties": {
3954
+ "id": {
3955
+ "type": "string"
3956
+ },
3957
+ "name": {
3958
+ "type": "string"
3959
+ },
3960
+ "groupId": {
3961
+ "type": "string"
3962
+ },
3963
+ "type": {
3964
+ "$ref": "#/definitions/puppetTagType"
3965
+ }
3966
+ }
3967
+ },
3968
+ "puppetTagPayloadRequest": {
3969
+ "type": "object",
3970
+ "properties": {
3971
+ "tag": {
3972
+ "$ref": "#/definitions/puppetTagIdentifier"
3973
+ }
3974
+ }
3975
+ },
3976
+ "puppetTagPayloadResponse": {
3977
+ "type": "object",
3978
+ "properties": {
3979
+ "payload": {
3980
+ "$ref": "#/definitions/puppetTagPayload"
3981
+ }
3982
+ }
3983
+ },
3984
+ "puppetTagTagAddRequest": {
3985
+ "type": "object",
3986
+ "properties": {
3987
+ "tagName": {
3988
+ "type": "string"
3989
+ },
3990
+ "tagGroupId": {
3991
+ "type": "string"
3992
+ }
3993
+ }
3994
+ },
3995
+ "puppetTagTagAddResponse": {
3996
+ "type": "object",
3997
+ "properties": {
3998
+ "tag": {
3999
+ "$ref": "#/definitions/puppetTagIdentifier"
4000
+ }
4001
+ }
4002
+ },
4003
+ "puppetTagTagContactListResponse": {
4004
+ "type": "object",
4005
+ "properties": {
4006
+ "contactIds": {
3938
4007
  "type": "array",
3939
4008
  "items": {
3940
4009
  "type": "string"
@@ -3942,9 +4011,36 @@
3942
4011
  }
3943
4012
  }
3944
4013
  },
3945
- "puppetTagContactRemoveResponse": {
4014
+ "puppetTagTagDeleteRequest": {
4015
+ "type": "object",
4016
+ "properties": {
4017
+ "tag": {
4018
+ "$ref": "#/definitions/puppetTagIdentifier"
4019
+ }
4020
+ }
4021
+ },
4022
+ "puppetTagTagDeleteResponse": {
3946
4023
  "type": "object"
3947
4024
  },
4025
+ "puppetTagTagListResponse": {
4026
+ "type": "object",
4027
+ "properties": {
4028
+ "tags": {
4029
+ "type": "array",
4030
+ "items": {
4031
+ "$ref": "#/definitions/puppetTagIdentifier"
4032
+ }
4033
+ }
4034
+ }
4035
+ },
4036
+ "puppetTagType": {
4037
+ "type": "string",
4038
+ "enum": [
4039
+ "PERSONAL",
4040
+ "CORPORATION"
4041
+ ],
4042
+ "default": "PERSONAL"
4043
+ },
3948
4044
  "puppetUploadRequest": {
3949
4045
  "type": "object",
3950
4046
  "properties": {