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,281 @@
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 show"
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
+ "snippet": {
52
+ "type": "object",
53
+ "properties": {
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
69
+ },
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
85
+ }
86
+ },
87
+ "required": ["production", "staging"],
88
+ "additionalProperties": false
89
+ },
90
+ "components": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "object",
94
+ "properties": {
95
+ "component_id": {
96
+ "type": "string"
97
+ },
98
+ "tag": {
99
+ "type": "string"
100
+ },
101
+ "enabled": {
102
+ "type": "boolean"
103
+ },
104
+ "archived": {
105
+ "type": "boolean"
106
+ },
107
+ "loading": {
108
+ "type": "string",
109
+ "enum": ["eager", "idle"]
110
+ },
111
+ "props": {
112
+ "type": "object",
113
+ "propertyNames": {
114
+ "type": "string"
115
+ },
116
+ "additionalProperties": {}
117
+ },
118
+ "production": {
119
+ "type": "object",
120
+ "properties": {
121
+ "served_version_id": {
122
+ "type": ["string", "null"]
123
+ },
124
+ "served_semver": {
125
+ "type": ["string", "null"]
126
+ },
127
+ "source": {
128
+ "type": "string",
129
+ "enum": [
130
+ "pinned_version",
131
+ "production_channel",
132
+ "staging_channel",
133
+ "fallback_to_production_channel",
134
+ "none"
135
+ ]
136
+ },
137
+ "pinned_version_id": {
138
+ "type": ["string", "null"]
139
+ },
140
+ "suspended_props": {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ }
146
+ },
147
+ "required": [
148
+ "served_version_id",
149
+ "served_semver",
150
+ "source",
151
+ "pinned_version_id",
152
+ "suspended_props"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ "staging": {
157
+ "type": "object",
158
+ "properties": {
159
+ "served_version_id": {
160
+ "type": ["string", "null"]
161
+ },
162
+ "served_semver": {
163
+ "type": ["string", "null"]
164
+ },
165
+ "source": {
166
+ "type": "string",
167
+ "enum": [
168
+ "pinned_version",
169
+ "production_channel",
170
+ "staging_channel",
171
+ "fallback_to_production_channel",
172
+ "none"
173
+ ]
174
+ },
175
+ "pinned_version_id": {
176
+ "type": ["string", "null"]
177
+ },
178
+ "suspended_props": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string"
182
+ }
183
+ }
184
+ },
185
+ "required": [
186
+ "served_version_id",
187
+ "served_semver",
188
+ "source",
189
+ "pinned_version_id",
190
+ "suspended_props"
191
+ ],
192
+ "additionalProperties": false
193
+ }
194
+ },
195
+ "required": [
196
+ "component_id",
197
+ "tag",
198
+ "enabled",
199
+ "archived",
200
+ "loading",
201
+ "props",
202
+ "production",
203
+ "staging"
204
+ ],
205
+ "additionalProperties": false
206
+ }
207
+ }
208
+ },
209
+ "required": [
210
+ "status",
211
+ "production_site_key",
212
+ "production_allowed_domains",
213
+ "staging_site_key",
214
+ "staging_allowed_domains",
215
+ "staging_fixed_domains",
216
+ "site_id",
217
+ "site_name",
218
+ "snippet",
219
+ "components"
220
+ ],
221
+ "additionalProperties": false
222
+ }
223
+ },
224
+ "required": ["ok", "command", "data"],
225
+ "additionalProperties": false
226
+ },
227
+ {
228
+ "type": "object",
229
+ "properties": {
230
+ "ok": {
231
+ "type": "boolean",
232
+ "const": false
233
+ },
234
+ "command": {
235
+ "type": "string",
236
+ "const": "sites show"
237
+ },
238
+ "error": {
239
+ "type": "object",
240
+ "properties": {
241
+ "code": {
242
+ "type": "string"
243
+ },
244
+ "message": {
245
+ "type": "string"
246
+ },
247
+ "request_id": {
248
+ "type": ["string", "null"]
249
+ },
250
+ "exit_code": {
251
+ "type": "integer",
252
+ "minimum": -9007199254740991,
253
+ "maximum": 9007199254740991
254
+ },
255
+ "api_code": {
256
+ "type": "string"
257
+ },
258
+ "hint": {
259
+ "type": "string"
260
+ },
261
+ "docs_url": {
262
+ "type": "string"
263
+ },
264
+ "human_action": {
265
+ "type": "object",
266
+ "propertyNames": {
267
+ "type": "string"
268
+ },
269
+ "additionalProperties": {}
270
+ }
271
+ },
272
+ "required": ["code", "message", "request_id", "exit_code"],
273
+ "additionalProperties": false
274
+ }
275
+ },
276
+ "required": ["ok", "command", "error"],
277
+ "additionalProperties": false
278
+ }
279
+ ],
280
+ "title": "taggor sites show --json"
281
+ }
@@ -18,17 +18,54 @@
18
18
  "site_id": {
19
19
  "type": "string"
20
20
  },
21
- "site_key": {
21
+ "site_name": {
22
22
  "type": "string"
23
23
  },
24
- "html": {
25
- "type": "string"
24
+ "environment": {
25
+ "anyOf": [
26
+ {
27
+ "type": "string",
28
+ "enum": ["production", "staging"]
29
+ },
30
+ {
31
+ "type": "null"
32
+ }
33
+ ]
26
34
  },
27
- "src": {
28
- "type": "string"
35
+ "production": {
36
+ "type": "object",
37
+ "properties": {
38
+ "site_key": {
39
+ "type": "string"
40
+ },
41
+ "html": {
42
+ "type": "string"
43
+ },
44
+ "src": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": ["site_key", "html", "src"],
49
+ "additionalProperties": false
50
+ },
51
+ "staging": {
52
+ "type": "object",
53
+ "properties": {
54
+ "site_key": {
55
+ "type": "string"
56
+ },
57
+ "html": {
58
+ "type": "string"
59
+ },
60
+ "src": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "required": ["site_key", "html", "src"],
65
+ "additionalProperties": false
29
66
  }
30
67
  },
31
- "required": ["site_id", "site_key", "html", "src"],
68
+ "required": ["site_id", "site_name", "environment", "production", "staging"],
32
69
  "additionalProperties": false
33
70
  }
34
71
  },
@@ -62,6 +99,22 @@
62
99
  "type": "integer",
63
100
  "minimum": -9007199254740991,
64
101
  "maximum": 9007199254740991
102
+ },
103
+ "api_code": {
104
+ "type": "string"
105
+ },
106
+ "hint": {
107
+ "type": "string"
108
+ },
109
+ "docs_url": {
110
+ "type": "string"
111
+ },
112
+ "human_action": {
113
+ "type": "object",
114
+ "propertyNames": {
115
+ "type": "string"
116
+ },
117
+ "additionalProperties": {}
65
118
  }
66
119
  },
67
120
  "required": ["code", "message", "request_id", "exit_code"],
@@ -0,0 +1,130 @@
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 update"
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
+ "previous_name": {
52
+ "type": "string"
53
+ },
54
+ "changed": {
55
+ "type": "boolean"
56
+ }
57
+ },
58
+ "required": [
59
+ "status",
60
+ "production_site_key",
61
+ "production_allowed_domains",
62
+ "staging_site_key",
63
+ "staging_allowed_domains",
64
+ "staging_fixed_domains",
65
+ "site_id",
66
+ "site_name",
67
+ "previous_name",
68
+ "changed"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "required": ["ok", "command", "data"],
74
+ "additionalProperties": false
75
+ },
76
+ {
77
+ "type": "object",
78
+ "properties": {
79
+ "ok": {
80
+ "type": "boolean",
81
+ "const": false
82
+ },
83
+ "command": {
84
+ "type": "string",
85
+ "const": "sites update"
86
+ },
87
+ "error": {
88
+ "type": "object",
89
+ "properties": {
90
+ "code": {
91
+ "type": "string"
92
+ },
93
+ "message": {
94
+ "type": "string"
95
+ },
96
+ "request_id": {
97
+ "type": ["string", "null"]
98
+ },
99
+ "exit_code": {
100
+ "type": "integer",
101
+ "minimum": -9007199254740991,
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": {}
119
+ }
120
+ },
121
+ "required": ["code", "message", "request_id", "exit_code"],
122
+ "additionalProperties": false
123
+ }
124
+ },
125
+ "required": ["ok", "command", "error"],
126
+ "additionalProperties": false
127
+ }
128
+ ],
129
+ "title": "taggor sites update --json"
130
+ }
@@ -0,0 +1,184 @@
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": "unpin"
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
+ "was_pinned": {
111
+ "type": "boolean"
112
+ }
113
+ },
114
+ "required": [
115
+ "site_id",
116
+ "site_name",
117
+ "environment",
118
+ "component_id",
119
+ "tag",
120
+ "production",
121
+ "staging",
122
+ "was_pinned"
123
+ ],
124
+ "additionalProperties": false
125
+ }
126
+ },
127
+ "required": ["ok", "command", "data"],
128
+ "additionalProperties": false
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "ok": {
134
+ "type": "boolean",
135
+ "const": false
136
+ },
137
+ "command": {
138
+ "type": "string",
139
+ "const": "unpin"
140
+ },
141
+ "error": {
142
+ "type": "object",
143
+ "properties": {
144
+ "code": {
145
+ "type": "string"
146
+ },
147
+ "message": {
148
+ "type": "string"
149
+ },
150
+ "request_id": {
151
+ "type": ["string", "null"]
152
+ },
153
+ "exit_code": {
154
+ "type": "integer",
155
+ "minimum": -9007199254740991,
156
+ "maximum": 9007199254740991
157
+ },
158
+ "api_code": {
159
+ "type": "string"
160
+ },
161
+ "hint": {
162
+ "type": "string"
163
+ },
164
+ "docs_url": {
165
+ "type": "string"
166
+ },
167
+ "human_action": {
168
+ "type": "object",
169
+ "propertyNames": {
170
+ "type": "string"
171
+ },
172
+ "additionalProperties": {}
173
+ }
174
+ },
175
+ "required": ["code", "message", "request_id", "exit_code"],
176
+ "additionalProperties": false
177
+ }
178
+ },
179
+ "required": ["ok", "command", "error"],
180
+ "additionalProperties": false
181
+ }
182
+ ],
183
+ "title": "taggor unpin --json"
184
+ }
@@ -209,6 +209,22 @@
209
209
  "type": "integer",
210
210
  "minimum": -9007199254740991,
211
211
  "maximum": 9007199254740991
212
+ },
213
+ "api_code": {
214
+ "type": "string"
215
+ },
216
+ "hint": {
217
+ "type": "string"
218
+ },
219
+ "docs_url": {
220
+ "type": "string"
221
+ },
222
+ "human_action": {
223
+ "type": "object",
224
+ "propertyNames": {
225
+ "type": "string"
226
+ },
227
+ "additionalProperties": {}
212
228
  }
213
229
  },
214
230
  "required": ["code", "message", "request_id", "exit_code"],