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
@@ -0,0 +1,92 @@
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": "components restore"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "component_id": {
19
+ "type": "string"
20
+ },
21
+ "tag": {
22
+ "type": "string"
23
+ },
24
+ "archived_at": {
25
+ "type": ["string", "null"]
26
+ },
27
+ "changed": {
28
+ "type": "boolean"
29
+ }
30
+ },
31
+ "required": ["component_id", "tag", "archived_at", "changed"],
32
+ "additionalProperties": false
33
+ }
34
+ },
35
+ "required": ["ok", "command", "data"],
36
+ "additionalProperties": false
37
+ },
38
+ {
39
+ "type": "object",
40
+ "properties": {
41
+ "ok": {
42
+ "type": "boolean",
43
+ "const": false
44
+ },
45
+ "command": {
46
+ "type": "string",
47
+ "const": "components restore"
48
+ },
49
+ "error": {
50
+ "type": "object",
51
+ "properties": {
52
+ "code": {
53
+ "type": "string"
54
+ },
55
+ "message": {
56
+ "type": "string"
57
+ },
58
+ "request_id": {
59
+ "type": ["string", "null"]
60
+ },
61
+ "exit_code": {
62
+ "type": "integer",
63
+ "minimum": -9007199254740991,
64
+ "maximum": 9007199254740991
65
+ },
66
+ "api_code": {
67
+ "type": "string"
68
+ },
69
+ "hint": {
70
+ "type": "string"
71
+ },
72
+ "docs_url": {
73
+ "type": "string"
74
+ },
75
+ "human_action": {
76
+ "type": "object",
77
+ "propertyNames": {
78
+ "type": "string"
79
+ },
80
+ "additionalProperties": {}
81
+ }
82
+ },
83
+ "required": ["code", "message", "request_id", "exit_code"],
84
+ "additionalProperties": false
85
+ }
86
+ },
87
+ "required": ["ok", "command", "error"],
88
+ "additionalProperties": false
89
+ }
90
+ ],
91
+ "title": "taggor components restore --json"
92
+ }
@@ -29,6 +29,9 @@
29
29
  "component_id": {
30
30
  "type": "string"
31
31
  },
32
+ "component_tag": {
33
+ "type": ["string", "null"]
34
+ },
32
35
  "status": {
33
36
  "type": "string",
34
37
  "enum": ["active", "archived"]
@@ -46,6 +49,7 @@
46
49
  "id",
47
50
  "name",
48
51
  "component_id",
52
+ "component_tag",
49
53
  "status",
50
54
  "retention_days",
51
55
  "created_at"
@@ -88,6 +92,22 @@
88
92
  "type": "integer",
89
93
  "minimum": -9007199254740991,
90
94
  "maximum": 9007199254740991
95
+ },
96
+ "api_code": {
97
+ "type": "string"
98
+ },
99
+ "hint": {
100
+ "type": "string"
101
+ },
102
+ "docs_url": {
103
+ "type": "string"
104
+ },
105
+ "human_action": {
106
+ "type": "object",
107
+ "propertyNames": {
108
+ "type": "string"
109
+ },
110
+ "additionalProperties": {}
91
111
  }
92
112
  },
93
113
  "required": ["code", "message", "request_id", "exit_code"],
@@ -68,6 +68,22 @@
68
68
  "type": "integer",
69
69
  "minimum": -9007199254740991,
70
70
  "maximum": 9007199254740991
71
+ },
72
+ "api_code": {
73
+ "type": "string"
74
+ },
75
+ "hint": {
76
+ "type": "string"
77
+ },
78
+ "docs_url": {
79
+ "type": "string"
80
+ },
81
+ "human_action": {
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string"
85
+ },
86
+ "additionalProperties": {}
71
87
  }
72
88
  },
73
89
  "required": ["code", "message", "request_id", "exit_code"],
@@ -18,7 +18,7 @@
18
18
  "site_id": {
19
19
  "type": "string"
20
20
  },
21
- "site_key": {
21
+ "site_name": {
22
22
  "type": "string"
23
23
  },
24
24
  "component_id": {
@@ -32,7 +32,7 @@
32
32
  "const": false
33
33
  }
34
34
  },
35
- "required": ["site_id", "site_key", "component_id", "tag", "attached"],
35
+ "required": ["site_id", "site_name", "component_id", "tag", "attached"],
36
36
  "additionalProperties": false
37
37
  }
38
38
  },
@@ -66,6 +66,22 @@
66
66
  "type": "integer",
67
67
  "minimum": -9007199254740991,
68
68
  "maximum": 9007199254740991
69
+ },
70
+ "api_code": {
71
+ "type": "string"
72
+ },
73
+ "hint": {
74
+ "type": "string"
75
+ },
76
+ "docs_url": {
77
+ "type": "string"
78
+ },
79
+ "human_action": {
80
+ "type": "object",
81
+ "propertyNames": {
82
+ "type": "string"
83
+ },
84
+ "additionalProperties": {}
69
85
  }
70
86
  },
71
87
  "required": ["code", "message", "request_id", "exit_code"],
package/schemas/dev.json CHANGED
@@ -67,6 +67,22 @@
67
67
  "type": "integer",
68
68
  "minimum": -9007199254740991,
69
69
  "maximum": 9007199254740991
70
+ },
71
+ "api_code": {
72
+ "type": "string"
73
+ },
74
+ "hint": {
75
+ "type": "string"
76
+ },
77
+ "docs_url": {
78
+ "type": "string"
79
+ },
80
+ "human_action": {
81
+ "type": "object",
82
+ "propertyNames": {
83
+ "type": "string"
84
+ },
85
+ "additionalProperties": {}
70
86
  }
71
87
  },
72
88
  "required": ["code", "message", "request_id", "exit_code"],
package/schemas/init.json CHANGED
@@ -133,6 +133,22 @@
133
133
  "type": "integer",
134
134
  "minimum": -9007199254740991,
135
135
  "maximum": 9007199254740991
136
+ },
137
+ "api_code": {
138
+ "type": "string"
139
+ },
140
+ "hint": {
141
+ "type": "string"
142
+ },
143
+ "docs_url": {
144
+ "type": "string"
145
+ },
146
+ "human_action": {
147
+ "type": "object",
148
+ "propertyNames": {
149
+ "type": "string"
150
+ },
151
+ "additionalProperties": {}
136
152
  }
137
153
  },
138
154
  "required": ["code", "message", "request_id", "exit_code"],
@@ -86,6 +86,22 @@
86
86
  "type": "integer",
87
87
  "minimum": -9007199254740991,
88
88
  "maximum": 9007199254740991
89
+ },
90
+ "api_code": {
91
+ "type": "string"
92
+ },
93
+ "hint": {
94
+ "type": "string"
95
+ },
96
+ "docs_url": {
97
+ "type": "string"
98
+ },
99
+ "human_action": {
100
+ "type": "object",
101
+ "propertyNames": {
102
+ "type": "string"
103
+ },
104
+ "additionalProperties": {}
89
105
  }
90
106
  },
91
107
  "required": ["code", "message", "request_id", "exit_code"],
@@ -59,6 +59,22 @@
59
59
  "type": "integer",
60
60
  "minimum": -9007199254740991,
61
61
  "maximum": 9007199254740991
62
+ },
63
+ "api_code": {
64
+ "type": "string"
65
+ },
66
+ "hint": {
67
+ "type": "string"
68
+ },
69
+ "docs_url": {
70
+ "type": "string"
71
+ },
72
+ "human_action": {
73
+ "type": "object",
74
+ "propertyNames": {
75
+ "type": "string"
76
+ },
77
+ "additionalProperties": {}
62
78
  }
63
79
  },
64
80
  "required": ["code", "message", "request_id", "exit_code"],
package/schemas/logs.json CHANGED
@@ -119,6 +119,22 @@
119
119
  "type": "integer",
120
120
  "minimum": -9007199254740991,
121
121
  "maximum": 9007199254740991
122
+ },
123
+ "api_code": {
124
+ "type": "string"
125
+ },
126
+ "hint": {
127
+ "type": "string"
128
+ },
129
+ "docs_url": {
130
+ "type": "string"
131
+ },
132
+ "human_action": {
133
+ "type": "object",
134
+ "propertyNames": {
135
+ "type": "string"
136
+ },
137
+ "additionalProperties": {}
122
138
  }
123
139
  },
124
140
  "required": ["code", "message", "request_id", "exit_code"],
@@ -122,6 +122,22 @@
122
122
  "type": "integer",
123
123
  "minimum": -9007199254740991,
124
124
  "maximum": 9007199254740991
125
+ },
126
+ "api_code": {
127
+ "type": "string"
128
+ },
129
+ "hint": {
130
+ "type": "string"
131
+ },
132
+ "docs_url": {
133
+ "type": "string"
134
+ },
135
+ "human_action": {
136
+ "type": "object",
137
+ "propertyNames": {
138
+ "type": "string"
139
+ },
140
+ "additionalProperties": {}
125
141
  }
126
142
  },
127
143
  "required": ["code", "message", "request_id", "exit_code"],
@@ -204,6 +204,22 @@
204
204
  "type": "integer",
205
205
  "minimum": -9007199254740991,
206
206
  "maximum": 9007199254740991
207
+ },
208
+ "api_code": {
209
+ "type": "string"
210
+ },
211
+ "hint": {
212
+ "type": "string"
213
+ },
214
+ "docs_url": {
215
+ "type": "string"
216
+ },
217
+ "human_action": {
218
+ "type": "object",
219
+ "propertyNames": {
220
+ "type": "string"
221
+ },
222
+ "additionalProperties": {}
207
223
  }
208
224
  },
209
225
  "required": ["code", "message", "request_id", "exit_code"],
@@ -0,0 +1,180 @@
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": "pin"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "site_id": {
19
+ "type": "string"
20
+ },
21
+ "site_name": {
22
+ "type": "string"
23
+ },
24
+ "environment": {
25
+ "type": "string",
26
+ "enum": ["production", "staging"]
27
+ },
28
+ "component_id": {
29
+ "type": "string"
30
+ },
31
+ "tag": {
32
+ "type": "string"
33
+ },
34
+ "production": {
35
+ "type": "object",
36
+ "properties": {
37
+ "served_version_id": {
38
+ "type": ["string", "null"]
39
+ },
40
+ "served_semver": {
41
+ "type": ["string", "null"]
42
+ },
43
+ "source": {
44
+ "type": "string",
45
+ "enum": [
46
+ "pinned_version",
47
+ "production_channel",
48
+ "staging_channel",
49
+ "fallback_to_production_channel",
50
+ "none"
51
+ ]
52
+ },
53
+ "pinned_version_id": {
54
+ "type": ["string", "null"]
55
+ },
56
+ "suspended_props": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ }
61
+ }
62
+ },
63
+ "required": [
64
+ "served_version_id",
65
+ "served_semver",
66
+ "source",
67
+ "pinned_version_id",
68
+ "suspended_props"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ "staging": {
73
+ "type": "object",
74
+ "properties": {
75
+ "served_version_id": {
76
+ "type": ["string", "null"]
77
+ },
78
+ "served_semver": {
79
+ "type": ["string", "null"]
80
+ },
81
+ "source": {
82
+ "type": "string",
83
+ "enum": [
84
+ "pinned_version",
85
+ "production_channel",
86
+ "staging_channel",
87
+ "fallback_to_production_channel",
88
+ "none"
89
+ ]
90
+ },
91
+ "pinned_version_id": {
92
+ "type": ["string", "null"]
93
+ },
94
+ "suspended_props": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ },
101
+ "required": [
102
+ "served_version_id",
103
+ "served_semver",
104
+ "source",
105
+ "pinned_version_id",
106
+ "suspended_props"
107
+ ],
108
+ "additionalProperties": false
109
+ }
110
+ },
111
+ "required": [
112
+ "site_id",
113
+ "site_name",
114
+ "environment",
115
+ "component_id",
116
+ "tag",
117
+ "production",
118
+ "staging"
119
+ ],
120
+ "additionalProperties": false
121
+ }
122
+ },
123
+ "required": ["ok", "command", "data"],
124
+ "additionalProperties": false
125
+ },
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "ok": {
130
+ "type": "boolean",
131
+ "const": false
132
+ },
133
+ "command": {
134
+ "type": "string",
135
+ "const": "pin"
136
+ },
137
+ "error": {
138
+ "type": "object",
139
+ "properties": {
140
+ "code": {
141
+ "type": "string"
142
+ },
143
+ "message": {
144
+ "type": "string"
145
+ },
146
+ "request_id": {
147
+ "type": ["string", "null"]
148
+ },
149
+ "exit_code": {
150
+ "type": "integer",
151
+ "minimum": -9007199254740991,
152
+ "maximum": 9007199254740991
153
+ },
154
+ "api_code": {
155
+ "type": "string"
156
+ },
157
+ "hint": {
158
+ "type": "string"
159
+ },
160
+ "docs_url": {
161
+ "type": "string"
162
+ },
163
+ "human_action": {
164
+ "type": "object",
165
+ "propertyNames": {
166
+ "type": "string"
167
+ },
168
+ "additionalProperties": {}
169
+ }
170
+ },
171
+ "required": ["code", "message", "request_id", "exit_code"],
172
+ "additionalProperties": false
173
+ }
174
+ },
175
+ "required": ["ok", "command", "error"],
176
+ "additionalProperties": false
177
+ }
178
+ ],
179
+ "title": "taggor pin --json"
180
+ }
@@ -100,6 +100,22 @@
100
100
  "type": "integer",
101
101
  "minimum": -9007199254740991,
102
102
  "maximum": 9007199254740991
103
+ },
104
+ "api_code": {
105
+ "type": "string"
106
+ },
107
+ "hint": {
108
+ "type": "string"
109
+ },
110
+ "docs_url": {
111
+ "type": "string"
112
+ },
113
+ "human_action": {
114
+ "type": "object",
115
+ "propertyNames": {
116
+ "type": "string"
117
+ },
118
+ "additionalProperties": {}
103
119
  }
104
120
  },
105
121
  "required": ["code", "message", "request_id", "exit_code"],
@@ -92,6 +92,22 @@
92
92
  "type": "integer",
93
93
  "minimum": -9007199254740991,
94
94
  "maximum": 9007199254740991
95
+ },
96
+ "api_code": {
97
+ "type": "string"
98
+ },
99
+ "hint": {
100
+ "type": "string"
101
+ },
102
+ "docs_url": {
103
+ "type": "string"
104
+ },
105
+ "human_action": {
106
+ "type": "object",
107
+ "propertyNames": {
108
+ "type": "string"
109
+ },
110
+ "additionalProperties": {}
95
111
  }
96
112
  },
97
113
  "required": ["code", "message", "request_id", "exit_code"],
@@ -88,6 +88,22 @@
88
88
  "type": "integer",
89
89
  "minimum": -9007199254740991,
90
90
  "maximum": 9007199254740991
91
+ },
92
+ "api_code": {
93
+ "type": "string"
94
+ },
95
+ "hint": {
96
+ "type": "string"
97
+ },
98
+ "docs_url": {
99
+ "type": "string"
100
+ },
101
+ "human_action": {
102
+ "type": "object",
103
+ "propertyNames": {
104
+ "type": "string"
105
+ },
106
+ "additionalProperties": {}
91
107
  }
92
108
  },
93
109
  "required": ["code", "message", "request_id", "exit_code"],