taggor 0.7.0 → 0.9.0

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 (49) hide show
  1. package/EXIT_CODES.md +11 -11
  2. package/dist/taggor.mjs +5208 -1842
  3. package/package.json +9 -5
  4. package/schemas/agent-install.json +16 -0
  5. package/schemas/attach.json +102 -6
  6. package/schemas/check.json +18 -2
  7. package/schemas/codegen.json +181 -0
  8. package/schemas/components-archive.json +92 -0
  9. package/schemas/components-list.json +127 -0
  10. package/schemas/components-restore.json +92 -0
  11. package/schemas/data-collections.json +20 -0
  12. package/schemas/data-export.json +16 -0
  13. package/schemas/detach.json +18 -2
  14. package/schemas/dev.json +16 -0
  15. package/schemas/init.json +16 -0
  16. package/schemas/login.json +16 -0
  17. package/schemas/logout.json +16 -0
  18. package/schemas/logs.json +16 -0
  19. package/schemas/metrics-parameters.json +16 -0
  20. package/schemas/metrics.json +16 -0
  21. package/schemas/pin.json +180 -0
  22. package/schemas/preview.json +16 -0
  23. package/schemas/projects-clean.json +16 -0
  24. package/schemas/projects-list.json +16 -0
  25. package/schemas/promote.json +146 -26
  26. package/schemas/publish.json +306 -29
  27. package/schemas/pull.json +16 -0
  28. package/schemas/rollback.json +146 -26
  29. package/schemas/sites-create.json +75 -20
  30. package/schemas/sites-delete.json +127 -0
  31. package/schemas/sites-disable.json +126 -0
  32. package/schemas/sites-domains-set.json +54 -7
  33. package/schemas/sites-enable.json +126 -0
  34. package/schemas/sites-list.json +43 -7
  35. package/schemas/sites-props-set.json +97 -3
  36. package/schemas/sites-protection-set.json +18 -2
  37. package/schemas/sites-server-keys-create.json +30 -5
  38. package/schemas/sites-server-keys-list.json +23 -3
  39. package/schemas/sites-server-keys-revoke.json +28 -3
  40. package/schemas/sites-show.json +281 -0
  41. package/schemas/sites-snippet.json +59 -6
  42. package/schemas/sites-update.json +130 -0
  43. package/schemas/unpin.json +184 -0
  44. package/schemas/usage.json +16 -0
  45. package/schemas/versions.json +16 -0
  46. package/schemas/whoami.json +16 -0
  47. package/schemas/workspaces-list.json +105 -0
  48. package/schemas/workspaces-update.json +112 -0
  49. package/schemas/workspaces-use.json +16 -0
@@ -68,7 +68,7 @@
68
68
  "required": ["version_id", "semver"],
69
69
  "additionalProperties": false
70
70
  },
71
- "site_props": {
71
+ "pinned_sites": {
72
72
  "type": "array",
73
73
  "items": {
74
74
  "type": "object",
@@ -76,37 +76,31 @@
76
76
  "site_id": {
77
77
  "type": "string"
78
78
  },
79
- "site_key": {
79
+ "site_name": {
80
80
  "type": "string"
81
81
  },
82
- "outcome": {
82
+ "environment": {
83
83
  "type": "string",
84
- "enum": ["held_back", "suspended"]
84
+ "enum": ["production", "staging"]
85
85
  },
86
- "paths": {
87
- "type": "array",
88
- "items": {
89
- "type": "string"
90
- }
91
- },
92
- "suspended": {
93
- "type": "array",
94
- "items": {
95
- "type": "string"
96
- }
86
+ "pinned_version_id": {
87
+ "type": "string"
97
88
  },
98
- "restored": {
99
- "type": "array",
100
- "items": {
101
- "type": "string"
102
- }
89
+ "pinned_semver": {
90
+ "type": ["string", "null"]
103
91
  }
104
92
  },
105
- "required": ["site_id", "site_key", "outcome", "paths", "suspended", "restored"],
93
+ "required": [
94
+ "site_id",
95
+ "site_name",
96
+ "environment",
97
+ "pinned_version_id",
98
+ "pinned_semver"
99
+ ],
106
100
  "additionalProperties": false
107
101
  }
108
102
  },
109
- "site_props_unsettled": {
103
+ "suspended_site_props": {
110
104
  "type": "array",
111
105
  "items": {
112
106
  "type": "object",
@@ -114,13 +108,122 @@
114
108
  "site_id": {
115
109
  "type": "string"
116
110
  },
117
- "site_key": {
111
+ "site_name": {
118
112
  "type": "string"
113
+ },
114
+ "environment": {
115
+ "type": "string",
116
+ "enum": ["production", "staging"]
117
+ },
118
+ "props": {
119
+ "type": "array",
120
+ "items": {
121
+ "type": "string"
122
+ }
119
123
  }
120
124
  },
121
- "required": ["site_id", "site_key"],
125
+ "required": ["site_id", "site_name", "environment", "props"],
122
126
  "additionalProperties": false
123
127
  }
128
+ },
129
+ "attached_sites": {
130
+ "anyOf": [
131
+ {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object",
135
+ "properties": {
136
+ "site_id": {
137
+ "type": "string"
138
+ },
139
+ "site_name": {
140
+ "type": "string"
141
+ },
142
+ "production": {
143
+ "type": "object",
144
+ "properties": {
145
+ "served_version_id": {
146
+ "type": ["string", "null"]
147
+ },
148
+ "served_semver": {
149
+ "type": ["string", "null"]
150
+ },
151
+ "source": {
152
+ "type": "string",
153
+ "enum": [
154
+ "pinned_version",
155
+ "production_channel",
156
+ "staging_channel",
157
+ "fallback_to_production_channel",
158
+ "none"
159
+ ]
160
+ },
161
+ "pinned_version_id": {
162
+ "type": ["string", "null"]
163
+ },
164
+ "suspended_props": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ }
170
+ },
171
+ "required": [
172
+ "served_version_id",
173
+ "served_semver",
174
+ "source",
175
+ "pinned_version_id",
176
+ "suspended_props"
177
+ ],
178
+ "additionalProperties": false
179
+ },
180
+ "staging": {
181
+ "type": "object",
182
+ "properties": {
183
+ "served_version_id": {
184
+ "type": ["string", "null"]
185
+ },
186
+ "served_semver": {
187
+ "type": ["string", "null"]
188
+ },
189
+ "source": {
190
+ "type": "string",
191
+ "enum": [
192
+ "pinned_version",
193
+ "production_channel",
194
+ "staging_channel",
195
+ "fallback_to_production_channel",
196
+ "none"
197
+ ]
198
+ },
199
+ "pinned_version_id": {
200
+ "type": ["string", "null"]
201
+ },
202
+ "suspended_props": {
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ }
207
+ }
208
+ },
209
+ "required": [
210
+ "served_version_id",
211
+ "served_semver",
212
+ "source",
213
+ "pinned_version_id",
214
+ "suspended_props"
215
+ ],
216
+ "additionalProperties": false
217
+ }
218
+ },
219
+ "required": ["site_id", "site_name", "production", "staging"],
220
+ "additionalProperties": false
221
+ }
222
+ },
223
+ {
224
+ "type": "null"
225
+ }
226
+ ]
124
227
  }
125
228
  },
126
229
  "required": [
@@ -132,8 +235,9 @@
132
235
  "changed",
133
236
  "from",
134
237
  "to",
135
- "site_props",
136
- "site_props_unsettled"
238
+ "pinned_sites",
239
+ "suspended_site_props",
240
+ "attached_sites"
137
241
  ],
138
242
  "additionalProperties": false
139
243
  }
@@ -168,6 +272,22 @@
168
272
  "type": "integer",
169
273
  "minimum": -9007199254740991,
170
274
  "maximum": 9007199254740991
275
+ },
276
+ "api_code": {
277
+ "type": "string"
278
+ },
279
+ "hint": {
280
+ "type": "string"
281
+ },
282
+ "docs_url": {
283
+ "type": "string"
284
+ },
285
+ "human_action": {
286
+ "type": "object",
287
+ "propertyNames": {
288
+ "type": "string"
289
+ },
290
+ "additionalProperties": {}
171
291
  }
172
292
  },
173
293
  "required": ["code", "message", "request_id", "exit_code"],
@@ -30,7 +30,7 @@
30
30
  "items": {
31
31
  "type": "object",
32
32
  "properties": {
33
- "name": {
33
+ "tag": {
34
34
  "type": "string"
35
35
  },
36
36
  "package": {
@@ -79,7 +79,7 @@
79
79
  }
80
80
  }
81
81
  },
82
- "required": ["name", "package", "skipped"],
82
+ "required": ["tag", "package", "skipped"],
83
83
  "additionalProperties": false
84
84
  }
85
85
  }
@@ -103,9 +103,6 @@
103
103
  "items": {
104
104
  "type": "object",
105
105
  "properties": {
106
- "name": {
107
- "type": "string"
108
- },
109
106
  "tag": {
110
107
  "type": "string"
111
108
  },
@@ -121,7 +118,7 @@
121
118
  "semver": {
122
119
  "type": "string"
123
120
  },
124
- "hash": {
121
+ "content_hash": {
125
122
  "type": "string"
126
123
  },
127
124
  "version_existed": {
@@ -186,47 +183,309 @@
186
183
  "additionalProperties": false
187
184
  }
188
185
  },
189
- "sites": {
186
+ "pinned_sites": {
190
187
  "type": "array",
191
188
  "items": {
192
189
  "type": "object",
193
190
  "properties": {
194
- "id": {
191
+ "site_id": {
195
192
  "type": "string"
196
193
  },
197
- "site_key": {
194
+ "site_name": {
198
195
  "type": "string"
199
196
  },
200
- "name": {
197
+ "environment": {
198
+ "type": "string",
199
+ "enum": ["production", "staging"]
200
+ },
201
+ "pinned_version_id": {
201
202
  "type": "string"
202
203
  },
203
- "snippet": {
204
+ "pinned_semver": {
205
+ "type": ["string", "null"]
206
+ }
207
+ },
208
+ "required": [
209
+ "site_id",
210
+ "site_name",
211
+ "environment",
212
+ "pinned_version_id",
213
+ "pinned_semver"
214
+ ],
215
+ "additionalProperties": false
216
+ }
217
+ },
218
+ "suspended_site_props": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "object",
222
+ "properties": {
223
+ "site_id": {
204
224
  "type": "string"
205
225
  },
206
- "loader_url": {
226
+ "site_name": {
207
227
  "type": "string"
208
228
  },
209
- "attachment": {
229
+ "environment": {
210
230
  "type": "string",
211
- "enum": ["created", "unchanged"]
231
+ "enum": ["production", "staging"]
212
232
  },
213
- "attached_channel": {
214
- "type": "string",
215
- "enum": ["staging", "production"]
233
+ "props": {
234
+ "type": "array",
235
+ "items": {
236
+ "type": "string"
237
+ }
216
238
  }
217
239
  },
218
- "required": [
219
- "id",
220
- "site_key",
221
- "name",
222
- "snippet",
223
- "loader_url",
224
- "attachment",
225
- "attached_channel"
226
- ],
240
+ "required": ["site_id", "site_name", "environment", "props"],
227
241
  "additionalProperties": false
228
242
  }
229
243
  },
244
+ "attached_sites": {
245
+ "anyOf": [
246
+ {
247
+ "type": "array",
248
+ "items": {
249
+ "type": "object",
250
+ "properties": {
251
+ "site_id": {
252
+ "type": "string"
253
+ },
254
+ "site_name": {
255
+ "type": "string"
256
+ },
257
+ "production": {
258
+ "type": "object",
259
+ "properties": {
260
+ "served_version_id": {
261
+ "type": ["string", "null"]
262
+ },
263
+ "served_semver": {
264
+ "type": ["string", "null"]
265
+ },
266
+ "source": {
267
+ "type": "string",
268
+ "enum": [
269
+ "pinned_version",
270
+ "production_channel",
271
+ "staging_channel",
272
+ "fallback_to_production_channel",
273
+ "none"
274
+ ]
275
+ },
276
+ "pinned_version_id": {
277
+ "type": ["string", "null"]
278
+ },
279
+ "suspended_props": {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "string"
283
+ }
284
+ }
285
+ },
286
+ "required": [
287
+ "served_version_id",
288
+ "served_semver",
289
+ "source",
290
+ "pinned_version_id",
291
+ "suspended_props"
292
+ ],
293
+ "additionalProperties": false
294
+ },
295
+ "staging": {
296
+ "type": "object",
297
+ "properties": {
298
+ "served_version_id": {
299
+ "type": ["string", "null"]
300
+ },
301
+ "served_semver": {
302
+ "type": ["string", "null"]
303
+ },
304
+ "source": {
305
+ "type": "string",
306
+ "enum": [
307
+ "pinned_version",
308
+ "production_channel",
309
+ "staging_channel",
310
+ "fallback_to_production_channel",
311
+ "none"
312
+ ]
313
+ },
314
+ "pinned_version_id": {
315
+ "type": ["string", "null"]
316
+ },
317
+ "suspended_props": {
318
+ "type": "array",
319
+ "items": {
320
+ "type": "string"
321
+ }
322
+ }
323
+ },
324
+ "required": [
325
+ "served_version_id",
326
+ "served_semver",
327
+ "source",
328
+ "pinned_version_id",
329
+ "suspended_props"
330
+ ],
331
+ "additionalProperties": false
332
+ }
333
+ },
334
+ "required": ["site_id", "site_name", "production", "staging"],
335
+ "additionalProperties": false
336
+ }
337
+ },
338
+ {
339
+ "type": "null"
340
+ }
341
+ ]
342
+ },
343
+ "site": {
344
+ "anyOf": [
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "site_id": {
349
+ "type": "string"
350
+ },
351
+ "site_name": {
352
+ "type": "string"
353
+ },
354
+ "attachment": {
355
+ "type": "string",
356
+ "enum": ["created", "unchanged"]
357
+ },
358
+ "snippet": {
359
+ "type": "object",
360
+ "properties": {
361
+ "production": {
362
+ "type": "object",
363
+ "properties": {
364
+ "site_key": {
365
+ "type": "string"
366
+ },
367
+ "html": {
368
+ "type": "string"
369
+ },
370
+ "src": {
371
+ "type": "string"
372
+ }
373
+ },
374
+ "required": ["site_key", "html", "src"],
375
+ "additionalProperties": false
376
+ },
377
+ "staging": {
378
+ "type": "object",
379
+ "properties": {
380
+ "site_key": {
381
+ "type": "string"
382
+ },
383
+ "html": {
384
+ "type": "string"
385
+ },
386
+ "src": {
387
+ "type": "string"
388
+ }
389
+ },
390
+ "required": ["site_key", "html", "src"],
391
+ "additionalProperties": false
392
+ }
393
+ },
394
+ "required": ["production", "staging"],
395
+ "additionalProperties": false
396
+ },
397
+ "production": {
398
+ "type": "object",
399
+ "properties": {
400
+ "served_version_id": {
401
+ "type": ["string", "null"]
402
+ },
403
+ "served_semver": {
404
+ "type": ["string", "null"]
405
+ },
406
+ "source": {
407
+ "type": "string",
408
+ "enum": [
409
+ "pinned_version",
410
+ "production_channel",
411
+ "staging_channel",
412
+ "fallback_to_production_channel",
413
+ "none"
414
+ ]
415
+ },
416
+ "pinned_version_id": {
417
+ "type": ["string", "null"]
418
+ },
419
+ "suspended_props": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "string"
423
+ }
424
+ }
425
+ },
426
+ "required": [
427
+ "served_version_id",
428
+ "served_semver",
429
+ "source",
430
+ "pinned_version_id",
431
+ "suspended_props"
432
+ ],
433
+ "additionalProperties": false
434
+ },
435
+ "staging": {
436
+ "type": "object",
437
+ "properties": {
438
+ "served_version_id": {
439
+ "type": ["string", "null"]
440
+ },
441
+ "served_semver": {
442
+ "type": ["string", "null"]
443
+ },
444
+ "source": {
445
+ "type": "string",
446
+ "enum": [
447
+ "pinned_version",
448
+ "production_channel",
449
+ "staging_channel",
450
+ "fallback_to_production_channel",
451
+ "none"
452
+ ]
453
+ },
454
+ "pinned_version_id": {
455
+ "type": ["string", "null"]
456
+ },
457
+ "suspended_props": {
458
+ "type": "array",
459
+ "items": {
460
+ "type": "string"
461
+ }
462
+ }
463
+ },
464
+ "required": [
465
+ "served_version_id",
466
+ "served_semver",
467
+ "source",
468
+ "pinned_version_id",
469
+ "suspended_props"
470
+ ],
471
+ "additionalProperties": false
472
+ }
473
+ },
474
+ "required": [
475
+ "site_id",
476
+ "site_name",
477
+ "attachment",
478
+ "snippet",
479
+ "production",
480
+ "staging"
481
+ ],
482
+ "additionalProperties": false
483
+ },
484
+ {
485
+ "type": "null"
486
+ }
487
+ ]
488
+ },
230
489
  "preview_url": {
231
490
  "type": ["string", "null"]
232
491
  },
@@ -271,19 +530,21 @@
271
530
  }
272
531
  },
273
532
  "required": [
274
- "name",
275
533
  "tag",
276
534
  "component_id",
277
535
  "build_id",
278
536
  "version_id",
279
537
  "semver",
280
- "hash",
538
+ "content_hash",
281
539
  "version_existed",
282
540
  "channel",
283
541
  "channel_changed",
284
542
  "package",
285
543
  "skipped",
286
- "sites",
544
+ "pinned_sites",
545
+ "suspended_site_props",
546
+ "attached_sites",
547
+ "site",
287
548
  "preview_url",
288
549
  "warnings"
289
550
  ],
@@ -328,6 +589,22 @@
328
589
  "minimum": -9007199254740991,
329
590
  "maximum": 9007199254740991
330
591
  },
592
+ "api_code": {
593
+ "type": "string"
594
+ },
595
+ "hint": {
596
+ "type": "string"
597
+ },
598
+ "docs_url": {
599
+ "type": "string"
600
+ },
601
+ "human_action": {
602
+ "type": "object",
603
+ "propertyNames": {
604
+ "type": "string"
605
+ },
606
+ "additionalProperties": {}
607
+ },
331
608
  "errors": {
332
609
  "type": "array",
333
610
  "items": {
package/schemas/pull.json CHANGED
@@ -199,6 +199,22 @@
199
199
  "type": "integer",
200
200
  "minimum": -9007199254740991,
201
201
  "maximum": 9007199254740991
202
+ },
203
+ "api_code": {
204
+ "type": "string"
205
+ },
206
+ "hint": {
207
+ "type": "string"
208
+ },
209
+ "docs_url": {
210
+ "type": "string"
211
+ },
212
+ "human_action": {
213
+ "type": "object",
214
+ "propertyNames": {
215
+ "type": "string"
216
+ },
217
+ "additionalProperties": {}
202
218
  }
203
219
  },
204
220
  "required": ["code", "message", "request_id", "exit_code"],