taggor 0.8.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 (48) hide show
  1. package/dist/taggor.mjs +3879 -1301
  2. package/package.json +9 -5
  3. package/schemas/agent-install.json +16 -0
  4. package/schemas/attach.json +16 -0
  5. package/schemas/check.json +18 -2
  6. package/schemas/codegen.json +181 -0
  7. package/schemas/components-archive.json +92 -0
  8. package/schemas/components-list.json +127 -0
  9. package/schemas/components-restore.json +92 -0
  10. package/schemas/data-collections.json +20 -0
  11. package/schemas/data-export.json +16 -0
  12. package/schemas/detach.json +16 -0
  13. package/schemas/dev.json +16 -0
  14. package/schemas/init.json +16 -0
  15. package/schemas/login.json +16 -0
  16. package/schemas/logout.json +16 -0
  17. package/schemas/logs.json +16 -0
  18. package/schemas/metrics-parameters.json +16 -0
  19. package/schemas/metrics.json +16 -0
  20. package/schemas/pin.json +16 -0
  21. package/schemas/preview.json +16 -0
  22. package/schemas/projects-clean.json +16 -0
  23. package/schemas/projects-list.json +16 -0
  24. package/schemas/promote.json +16 -0
  25. package/schemas/publish.json +156 -140
  26. package/schemas/pull.json +16 -0
  27. package/schemas/rollback.json +16 -0
  28. package/schemas/sites-create.json +24 -8
  29. package/schemas/sites-delete.json +127 -0
  30. package/schemas/sites-disable.json +126 -0
  31. package/schemas/sites-domains-set.json +24 -8
  32. package/schemas/sites-enable.json +126 -0
  33. package/schemas/sites-list.json +16 -0
  34. package/schemas/sites-props-set.json +16 -0
  35. package/schemas/sites-protection-set.json +16 -0
  36. package/schemas/sites-server-keys-create.json +22 -6
  37. package/schemas/sites-server-keys-list.json +16 -0
  38. package/schemas/sites-server-keys-revoke.json +20 -4
  39. package/schemas/sites-show.json +24 -8
  40. package/schemas/sites-snippet.json +16 -0
  41. package/schemas/sites-update.json +130 -0
  42. package/schemas/unpin.json +16 -0
  43. package/schemas/usage.json +16 -0
  44. package/schemas/versions.json +16 -0
  45. package/schemas/whoami.json +16 -0
  46. package/schemas/workspaces-list.json +105 -0
  47. package/schemas/workspaces-update.json +112 -0
  48. package/schemas/workspaces-use.json +16 -0
@@ -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": {
@@ -343,147 +340,151 @@
343
340
  }
344
341
  ]
345
342
  },
346
- "sites": {
347
- "type": "array",
348
- "items": {
349
- "type": "object",
350
- "properties": {
351
- "id": {
352
- "type": "string"
353
- },
354
- "name": {
355
- "type": "string"
356
- },
357
- "attachment": {
358
- "type": "string",
359
- "enum": ["created", "unchanged"]
360
- },
361
- "snippet": {
362
- "type": "object",
363
- "properties": {
364
- "production": {
365
- "type": "object",
366
- "properties": {
367
- "site_key": {
368
- "type": "string"
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
+ }
369
373
  },
370
- "html": {
371
- "type": "string"
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
+ }
372
389
  },
373
- "src": {
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": {
374
422
  "type": "string"
375
423
  }
376
- },
377
- "required": ["site_key", "html", "src"],
378
- "additionalProperties": false
424
+ }
379
425
  },
380
- "staging": {
381
- "type": "object",
382
- "properties": {
383
- "site_key": {
384
- "type": "string"
385
- },
386
- "html": {
387
- "type": "string"
388
- },
389
- "src": {
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": {
390
460
  "type": "string"
391
461
  }
392
- },
393
- "required": ["site_key", "html", "src"],
394
- "additionalProperties": false
395
- }
396
- },
397
- "required": ["production", "staging"],
398
- "additionalProperties": false
399
- },
400
- "production": {
401
- "type": "object",
402
- "properties": {
403
- "served_version_id": {
404
- "type": ["string", "null"]
405
- },
406
- "served_semver": {
407
- "type": ["string", "null"]
408
- },
409
- "source": {
410
- "type": "string",
411
- "enum": [
412
- "pinned_version",
413
- "production_channel",
414
- "staging_channel",
415
- "fallback_to_production_channel",
416
- "none"
417
- ]
418
- },
419
- "pinned_version_id": {
420
- "type": ["string", "null"]
421
- },
422
- "suspended_props": {
423
- "type": "array",
424
- "items": {
425
- "type": "string"
426
462
  }
427
- }
428
- },
429
- "required": [
430
- "served_version_id",
431
- "served_semver",
432
- "source",
433
- "pinned_version_id",
434
- "suspended_props"
435
- ],
436
- "additionalProperties": false
437
- },
438
- "staging": {
439
- "type": "object",
440
- "properties": {
441
- "served_version_id": {
442
- "type": ["string", "null"]
443
- },
444
- "served_semver": {
445
- "type": ["string", "null"]
446
- },
447
- "source": {
448
- "type": "string",
449
- "enum": [
450
- "pinned_version",
451
- "production_channel",
452
- "staging_channel",
453
- "fallback_to_production_channel",
454
- "none"
455
- ]
456
463
  },
457
- "pinned_version_id": {
458
- "type": ["string", "null"]
459
- },
460
- "suspended_props": {
461
- "type": "array",
462
- "items": {
463
- "type": "string"
464
- }
465
- }
466
- },
467
- "required": [
468
- "served_version_id",
469
- "served_semver",
470
- "source",
471
- "pinned_version_id",
472
- "suspended_props"
473
- ],
474
- "additionalProperties": false
475
- }
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
476
483
  },
477
- "required": [
478
- "id",
479
- "name",
480
- "attachment",
481
- "snippet",
482
- "production",
483
- "staging"
484
- ],
485
- "additionalProperties": false
486
- }
484
+ {
485
+ "type": "null"
486
+ }
487
+ ]
487
488
  },
488
489
  "preview_url": {
489
490
  "type": ["string", "null"]
@@ -529,13 +530,12 @@
529
530
  }
530
531
  },
531
532
  "required": [
532
- "name",
533
533
  "tag",
534
534
  "component_id",
535
535
  "build_id",
536
536
  "version_id",
537
537
  "semver",
538
- "hash",
538
+ "content_hash",
539
539
  "version_existed",
540
540
  "channel",
541
541
  "channel_changed",
@@ -544,7 +544,7 @@
544
544
  "pinned_sites",
545
545
  "suspended_site_props",
546
546
  "attached_sites",
547
- "sites",
547
+ "site",
548
548
  "preview_url",
549
549
  "warnings"
550
550
  ],
@@ -589,6 +589,22 @@
589
589
  "minimum": -9007199254740991,
590
590
  "maximum": 9007199254740991
591
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
+ },
592
608
  "errors": {
593
609
  "type": "array",
594
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"],
@@ -272,6 +272,22 @@
272
272
  "type": "integer",
273
273
  "minimum": -9007199254740991,
274
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": {}
275
291
  }
276
292
  },
277
293
  "required": ["code", "message", "request_id", "exit_code"],
@@ -15,12 +15,6 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
20
- },
21
- "name": {
22
- "type": "string"
23
- },
24
18
  "status": {
25
19
  "type": "string"
26
20
  },
@@ -48,6 +42,12 @@
48
42
  "type": "string"
49
43
  }
50
44
  },
45
+ "site_id": {
46
+ "type": "string"
47
+ },
48
+ "site_name": {
49
+ "type": "string"
50
+ },
51
51
  "snippet": {
52
52
  "type": "object",
53
53
  "properties": {
@@ -89,14 +89,14 @@
89
89
  }
90
90
  },
91
91
  "required": [
92
- "id",
93
- "name",
94
92
  "status",
95
93
  "production_site_key",
96
94
  "production_allowed_domains",
97
95
  "staging_site_key",
98
96
  "staging_allowed_domains",
99
97
  "staging_fixed_domains",
98
+ "site_id",
99
+ "site_name",
100
100
  "snippet"
101
101
  ],
102
102
  "additionalProperties": false
@@ -132,6 +132,22 @@
132
132
  "type": "integer",
133
133
  "minimum": -9007199254740991,
134
134
  "maximum": 9007199254740991
135
+ },
136
+ "api_code": {
137
+ "type": "string"
138
+ },
139
+ "hint": {
140
+ "type": "string"
141
+ },
142
+ "docs_url": {
143
+ "type": "string"
144
+ },
145
+ "human_action": {
146
+ "type": "object",
147
+ "propertyNames": {
148
+ "type": "string"
149
+ },
150
+ "additionalProperties": {}
135
151
  }
136
152
  },
137
153
  "required": ["code", "message", "request_id", "exit_code"],
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "ok": {
8
+ "type": "boolean",
9
+ "const": true
10
+ },
11
+ "command": {
12
+ "type": "string",
13
+ "const": "sites delete"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "status": {
19
+ "type": "string"
20
+ },
21
+ "production_site_key": {
22
+ "type": "string"
23
+ },
24
+ "production_allowed_domains": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "staging_site_key": {
31
+ "type": "string"
32
+ },
33
+ "staging_allowed_domains": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string"
37
+ }
38
+ },
39
+ "staging_fixed_domains": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "site_id": {
46
+ "type": "string"
47
+ },
48
+ "site_name": {
49
+ "type": "string"
50
+ },
51
+ "deleted": {
52
+ "type": "boolean",
53
+ "const": true
54
+ }
55
+ },
56
+ "required": [
57
+ "status",
58
+ "production_site_key",
59
+ "production_allowed_domains",
60
+ "staging_site_key",
61
+ "staging_allowed_domains",
62
+ "staging_fixed_domains",
63
+ "site_id",
64
+ "site_name",
65
+ "deleted"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "required": ["ok", "command", "data"],
71
+ "additionalProperties": false
72
+ },
73
+ {
74
+ "type": "object",
75
+ "properties": {
76
+ "ok": {
77
+ "type": "boolean",
78
+ "const": false
79
+ },
80
+ "command": {
81
+ "type": "string",
82
+ "const": "sites delete"
83
+ },
84
+ "error": {
85
+ "type": "object",
86
+ "properties": {
87
+ "code": {
88
+ "type": "string"
89
+ },
90
+ "message": {
91
+ "type": "string"
92
+ },
93
+ "request_id": {
94
+ "type": ["string", "null"]
95
+ },
96
+ "exit_code": {
97
+ "type": "integer",
98
+ "minimum": -9007199254740991,
99
+ "maximum": 9007199254740991
100
+ },
101
+ "api_code": {
102
+ "type": "string"
103
+ },
104
+ "hint": {
105
+ "type": "string"
106
+ },
107
+ "docs_url": {
108
+ "type": "string"
109
+ },
110
+ "human_action": {
111
+ "type": "object",
112
+ "propertyNames": {
113
+ "type": "string"
114
+ },
115
+ "additionalProperties": {}
116
+ }
117
+ },
118
+ "required": ["code", "message", "request_id", "exit_code"],
119
+ "additionalProperties": false
120
+ }
121
+ },
122
+ "required": ["ok", "command", "error"],
123
+ "additionalProperties": false
124
+ }
125
+ ],
126
+ "title": "taggor sites delete --json"
127
+ }