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,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 enable"
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 enable"
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 enable --json"
126
+ }
@@ -26,24 +26,44 @@
26
26
  "name": {
27
27
  "type": "string"
28
28
  },
29
- "site_key": {
29
+ "status": {
30
30
  "type": "string"
31
31
  },
32
- "environment": {
33
- "type": "string",
34
- "enum": ["production", "staging"]
32
+ "production_site_key": {
33
+ "type": "string"
35
34
  },
36
- "status": {
35
+ "production_allowed_domains": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string"
39
+ }
40
+ },
41
+ "staging_site_key": {
37
42
  "type": "string"
38
43
  },
39
- "allowed_domains": {
44
+ "staging_allowed_domains": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "staging_fixed_domains": {
40
51
  "type": "array",
41
52
  "items": {
42
53
  "type": "string"
43
54
  }
44
55
  }
45
56
  },
46
- "required": ["id", "name", "site_key", "environment", "status", "allowed_domains"],
57
+ "required": [
58
+ "id",
59
+ "name",
60
+ "status",
61
+ "production_site_key",
62
+ "production_allowed_domains",
63
+ "staging_site_key",
64
+ "staging_allowed_domains",
65
+ "staging_fixed_domains"
66
+ ],
47
67
  "additionalProperties": false
48
68
  }
49
69
  }
@@ -82,6 +102,22 @@
82
102
  "type": "integer",
83
103
  "minimum": -9007199254740991,
84
104
  "maximum": 9007199254740991
105
+ },
106
+ "api_code": {
107
+ "type": "string"
108
+ },
109
+ "hint": {
110
+ "type": "string"
111
+ },
112
+ "docs_url": {
113
+ "type": "string"
114
+ },
115
+ "human_action": {
116
+ "type": "object",
117
+ "propertyNames": {
118
+ "type": "string"
119
+ },
120
+ "additionalProperties": {}
85
121
  }
86
122
  },
87
123
  "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": {
@@ -37,16 +37,94 @@
37
37
  "type": "integer",
38
38
  "minimum": -9007199254740991,
39
39
  "maximum": 9007199254740991
40
+ },
41
+ "production": {
42
+ "type": "object",
43
+ "properties": {
44
+ "served_version_id": {
45
+ "type": ["string", "null"]
46
+ },
47
+ "served_semver": {
48
+ "type": ["string", "null"]
49
+ },
50
+ "source": {
51
+ "type": "string",
52
+ "enum": [
53
+ "pinned_version",
54
+ "production_channel",
55
+ "staging_channel",
56
+ "fallback_to_production_channel",
57
+ "none"
58
+ ]
59
+ },
60
+ "pinned_version_id": {
61
+ "type": ["string", "null"]
62
+ },
63
+ "suspended_props": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ }
68
+ }
69
+ },
70
+ "required": [
71
+ "served_version_id",
72
+ "served_semver",
73
+ "source",
74
+ "pinned_version_id",
75
+ "suspended_props"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "staging": {
80
+ "type": "object",
81
+ "properties": {
82
+ "served_version_id": {
83
+ "type": ["string", "null"]
84
+ },
85
+ "served_semver": {
86
+ "type": ["string", "null"]
87
+ },
88
+ "source": {
89
+ "type": "string",
90
+ "enum": [
91
+ "pinned_version",
92
+ "production_channel",
93
+ "staging_channel",
94
+ "fallback_to_production_channel",
95
+ "none"
96
+ ]
97
+ },
98
+ "pinned_version_id": {
99
+ "type": ["string", "null"]
100
+ },
101
+ "suspended_props": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "string"
105
+ }
106
+ }
107
+ },
108
+ "required": [
109
+ "served_version_id",
110
+ "served_semver",
111
+ "source",
112
+ "pinned_version_id",
113
+ "suspended_props"
114
+ ],
115
+ "additionalProperties": false
40
116
  }
41
117
  },
42
118
  "required": [
43
119
  "site_id",
44
- "site_key",
120
+ "site_name",
45
121
  "component_id",
46
122
  "tag",
47
123
  "prop",
48
124
  "changed",
49
- "props_revision"
125
+ "props_revision",
126
+ "production",
127
+ "staging"
50
128
  ],
51
129
  "additionalProperties": false
52
130
  }
@@ -81,6 +159,22 @@
81
159
  "type": "integer",
82
160
  "minimum": -9007199254740991,
83
161
  "maximum": 9007199254740991
162
+ },
163
+ "api_code": {
164
+ "type": "string"
165
+ },
166
+ "hint": {
167
+ "type": "string"
168
+ },
169
+ "docs_url": {
170
+ "type": "string"
171
+ },
172
+ "human_action": {
173
+ "type": "object",
174
+ "propertyNames": {
175
+ "type": "string"
176
+ },
177
+ "additionalProperties": {}
84
178
  }
85
179
  },
86
180
  "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
  "suspects": {
@@ -31,7 +31,7 @@
31
31
  "maximum": 9007199254740991
32
32
  }
33
33
  },
34
- "required": ["site_id", "site_key", "suspects", "daily_cap"],
34
+ "required": ["site_id", "site_name", "suspects", "daily_cap"],
35
35
  "additionalProperties": false
36
36
  }
37
37
  },
@@ -65,6 +65,22 @@
65
65
  "type": "integer",
66
66
  "minimum": -9007199254740991,
67
67
  "maximum": 9007199254740991
68
+ },
69
+ "api_code": {
70
+ "type": "string"
71
+ },
72
+ "hint": {
73
+ "type": "string"
74
+ },
75
+ "docs_url": {
76
+ "type": "string"
77
+ },
78
+ "human_action": {
79
+ "type": "object",
80
+ "propertyNames": {
81
+ "type": "string"
82
+ },
83
+ "additionalProperties": {}
68
84
  }
69
85
  },
70
86
  "required": ["code", "message", "request_id", "exit_code"],
@@ -15,8 +15,9 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
18
+ "environment": {
19
+ "type": "string",
20
+ "enum": ["production", "staging"]
20
21
  },
21
22
  "display_prefix": {
22
23
  "type": "string"
@@ -27,13 +28,19 @@
27
28
  "created_at": {
28
29
  "type": "string"
29
30
  },
31
+ "key_id": {
32
+ "type": "string"
33
+ },
30
34
  "site_id": {
31
35
  "type": "string"
32
36
  },
37
+ "site_name": {
38
+ "type": "string"
39
+ },
33
40
  "site_key": {
34
41
  "type": "string"
35
42
  },
36
- "env_name": {
43
+ "env_var": {
37
44
  "type": "string",
38
45
  "const": "TAGGOR_SERVER_KEY"
39
46
  },
@@ -45,13 +52,15 @@
45
52
  }
46
53
  },
47
54
  "required": [
48
- "id",
55
+ "environment",
49
56
  "display_prefix",
50
57
  "created_by",
51
58
  "created_at",
59
+ "key_id",
52
60
  "site_id",
61
+ "site_name",
53
62
  "site_key",
54
- "env_name",
63
+ "env_var",
55
64
  "secret",
56
65
  "out"
57
66
  ],
@@ -88,6 +97,22 @@
88
97
  "type": "integer",
89
98
  "minimum": -9007199254740991,
90
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": {}
91
116
  }
92
117
  },
93
118
  "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
  "server_keys": {
@@ -29,6 +29,10 @@
29
29
  "id": {
30
30
  "type": "string"
31
31
  },
32
+ "environment": {
33
+ "type": "string",
34
+ "enum": ["production", "staging"]
35
+ },
32
36
  "display_prefix": {
33
37
  "type": "string"
34
38
  },
@@ -39,12 +43,12 @@
39
43
  "type": "string"
40
44
  }
41
45
  },
42
- "required": ["id", "display_prefix", "created_by", "created_at"],
46
+ "required": ["id", "environment", "display_prefix", "created_by", "created_at"],
43
47
  "additionalProperties": false
44
48
  }
45
49
  }
46
50
  },
47
- "required": ["site_id", "site_key", "server_keys"],
51
+ "required": ["site_id", "site_name", "server_keys"],
48
52
  "additionalProperties": false
49
53
  }
50
54
  },
@@ -78,6 +82,22 @@
78
82
  "type": "integer",
79
83
  "minimum": -9007199254740991,
80
84
  "maximum": 9007199254740991
85
+ },
86
+ "api_code": {
87
+ "type": "string"
88
+ },
89
+ "hint": {
90
+ "type": "string"
91
+ },
92
+ "docs_url": {
93
+ "type": "string"
94
+ },
95
+ "human_action": {
96
+ "type": "object",
97
+ "propertyNames": {
98
+ "type": "string"
99
+ },
100
+ "additionalProperties": {}
81
101
  }
82
102
  },
83
103
  "required": ["code", "message", "request_id", "exit_code"],
@@ -15,8 +15,9 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
18
+ "environment": {
19
+ "type": "string",
20
+ "enum": ["production", "staging"]
20
21
  },
21
22
  "display_prefix": {
22
23
  "type": "string"
@@ -27,9 +28,15 @@
27
28
  "created_at": {
28
29
  "type": "string"
29
30
  },
31
+ "key_id": {
32
+ "type": "string"
33
+ },
30
34
  "site_id": {
31
35
  "type": "string"
32
36
  },
37
+ "site_name": {
38
+ "type": "string"
39
+ },
33
40
  "site_key": {
34
41
  "type": "string"
35
42
  },
@@ -50,11 +57,13 @@
50
57
  }
51
58
  },
52
59
  "required": [
53
- "id",
60
+ "environment",
54
61
  "display_prefix",
55
62
  "created_by",
56
63
  "created_at",
64
+ "key_id",
57
65
  "site_id",
66
+ "site_name",
58
67
  "site_key",
59
68
  "revoked_at",
60
69
  "remaining"
@@ -92,6 +101,22 @@
92
101
  "type": "integer",
93
102
  "minimum": -9007199254740991,
94
103
  "maximum": 9007199254740991
104
+ },
105
+ "api_code": {
106
+ "type": "string"
107
+ },
108
+ "hint": {
109
+ "type": "string"
110
+ },
111
+ "docs_url": {
112
+ "type": "string"
113
+ },
114
+ "human_action": {
115
+ "type": "object",
116
+ "propertyNames": {
117
+ "type": "string"
118
+ },
119
+ "additionalProperties": {}
95
120
  }
96
121
  },
97
122
  "required": ["code", "message", "request_id", "exit_code"],