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"],
@@ -15,49 +15,88 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
20
- },
21
- "name": {
18
+ "status": {
22
19
  "type": "string"
23
20
  },
24
- "site_key": {
21
+ "production_site_key": {
25
22
  "type": "string"
26
23
  },
27
- "environment": {
28
- "type": "string",
29
- "enum": ["production", "staging"]
24
+ "production_allowed_domains": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ }
30
29
  },
31
- "status": {
30
+ "staging_site_key": {
32
31
  "type": "string"
33
32
  },
34
- "allowed_domains": {
33
+ "staging_allowed_domains": {
35
34
  "type": "array",
36
35
  "items": {
37
36
  "type": "string"
38
37
  }
39
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
+ },
40
51
  "snippet": {
41
52
  "type": "object",
42
53
  "properties": {
43
- "html": {
44
- "type": "string"
54
+ "production": {
55
+ "type": "object",
56
+ "properties": {
57
+ "site_key": {
58
+ "type": "string"
59
+ },
60
+ "html": {
61
+ "type": "string"
62
+ },
63
+ "src": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "required": ["site_key", "html", "src"],
68
+ "additionalProperties": false
45
69
  },
46
- "src": {
47
- "type": "string"
70
+ "staging": {
71
+ "type": "object",
72
+ "properties": {
73
+ "site_key": {
74
+ "type": "string"
75
+ },
76
+ "html": {
77
+ "type": "string"
78
+ },
79
+ "src": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "required": ["site_key", "html", "src"],
84
+ "additionalProperties": false
48
85
  }
49
86
  },
50
- "required": ["html", "src"],
87
+ "required": ["production", "staging"],
51
88
  "additionalProperties": false
52
89
  }
53
90
  },
54
91
  "required": [
55
- "id",
56
- "name",
57
- "site_key",
58
- "environment",
59
92
  "status",
60
- "allowed_domains",
93
+ "production_site_key",
94
+ "production_allowed_domains",
95
+ "staging_site_key",
96
+ "staging_allowed_domains",
97
+ "staging_fixed_domains",
98
+ "site_id",
99
+ "site_name",
61
100
  "snippet"
62
101
  ],
63
102
  "additionalProperties": false
@@ -93,6 +132,22 @@
93
132
  "type": "integer",
94
133
  "minimum": -9007199254740991,
95
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": {}
96
151
  }
97
152
  },
98
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
+ }
@@ -0,0 +1,126 @@
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 disable"
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
+ "changed": {
52
+ "type": "boolean"
53
+ }
54
+ },
55
+ "required": [
56
+ "status",
57
+ "production_site_key",
58
+ "production_allowed_domains",
59
+ "staging_site_key",
60
+ "staging_allowed_domains",
61
+ "staging_fixed_domains",
62
+ "site_id",
63
+ "site_name",
64
+ "changed"
65
+ ],
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "required": ["ok", "command", "data"],
70
+ "additionalProperties": false
71
+ },
72
+ {
73
+ "type": "object",
74
+ "properties": {
75
+ "ok": {
76
+ "type": "boolean",
77
+ "const": false
78
+ },
79
+ "command": {
80
+ "type": "string",
81
+ "const": "sites disable"
82
+ },
83
+ "error": {
84
+ "type": "object",
85
+ "properties": {
86
+ "code": {
87
+ "type": "string"
88
+ },
89
+ "message": {
90
+ "type": "string"
91
+ },
92
+ "request_id": {
93
+ "type": ["string", "null"]
94
+ },
95
+ "exit_code": {
96
+ "type": "integer",
97
+ "minimum": -9007199254740991,
98
+ "maximum": 9007199254740991
99
+ },
100
+ "api_code": {
101
+ "type": "string"
102
+ },
103
+ "hint": {
104
+ "type": "string"
105
+ },
106
+ "docs_url": {
107
+ "type": "string"
108
+ },
109
+ "human_action": {
110
+ "type": "object",
111
+ "propertyNames": {
112
+ "type": "string"
113
+ },
114
+ "additionalProperties": {}
115
+ }
116
+ },
117
+ "required": ["code", "message", "request_id", "exit_code"],
118
+ "additionalProperties": false
119
+ }
120
+ },
121
+ "required": ["ok", "command", "error"],
122
+ "additionalProperties": false
123
+ }
124
+ ],
125
+ "title": "taggor sites disable --json"
126
+ }
@@ -15,24 +15,55 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "site_id": {
18
+ "status": {
19
19
  "type": "string"
20
20
  },
21
- "site_key": {
21
+ "production_site_key": {
22
22
  "type": "string"
23
23
  },
24
- "environment": {
25
- "type": "string",
26
- "enum": ["production", "staging"]
24
+ "production_allowed_domains": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "string"
28
+ }
27
29
  },
28
- "allowed_domains": {
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": {
29
40
  "type": "array",
30
41
  "items": {
31
42
  "type": "string"
32
43
  }
44
+ },
45
+ "site_id": {
46
+ "type": "string"
47
+ },
48
+ "site_name": {
49
+ "type": "string"
50
+ },
51
+ "environment": {
52
+ "type": "string",
53
+ "enum": ["production", "staging"]
33
54
  }
34
55
  },
35
- "required": ["site_id", "site_key", "environment", "allowed_domains"],
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
+ "environment"
66
+ ],
36
67
  "additionalProperties": false
37
68
  }
38
69
  },
@@ -66,6 +97,22 @@
66
97
  "type": "integer",
67
98
  "minimum": -9007199254740991,
68
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": {}
69
116
  }
70
117
  },
71
118
  "required": ["code", "message", "request_id", "exit_code"],