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
@@ -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,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,20 +42,26 @@
48
42
  "type": "string"
49
43
  }
50
44
  },
45
+ "site_id": {
46
+ "type": "string"
47
+ },
48
+ "site_name": {
49
+ "type": "string"
50
+ },
51
51
  "environment": {
52
52
  "type": "string",
53
53
  "enum": ["production", "staging"]
54
54
  }
55
55
  },
56
56
  "required": [
57
- "id",
58
- "name",
59
57
  "status",
60
58
  "production_site_key",
61
59
  "production_allowed_domains",
62
60
  "staging_site_key",
63
61
  "staging_allowed_domains",
64
62
  "staging_fixed_domains",
63
+ "site_id",
64
+ "site_name",
65
65
  "environment"
66
66
  ],
67
67
  "additionalProperties": false
@@ -97,6 +97,22 @@
97
97
  "type": "integer",
98
98
  "minimum": -9007199254740991,
99
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": {}
100
116
  }
101
117
  },
102
118
  "required": ["code", "message", "request_id", "exit_code"],
@@ -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
+ }
@@ -102,6 +102,22 @@
102
102
  "type": "integer",
103
103
  "minimum": -9007199254740991,
104
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": {}
105
121
  }
106
122
  },
107
123
  "required": ["code", "message", "request_id", "exit_code"],
@@ -159,6 +159,22 @@
159
159
  "type": "integer",
160
160
  "minimum": -9007199254740991,
161
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": {}
162
178
  }
163
179
  },
164
180
  "required": ["code", "message", "request_id", "exit_code"],
@@ -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,9 +15,6 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
20
- },
21
18
  "environment": {
22
19
  "type": "string",
23
20
  "enum": ["production", "staging"]
@@ -31,6 +28,9 @@
31
28
  "created_at": {
32
29
  "type": "string"
33
30
  },
31
+ "key_id": {
32
+ "type": "string"
33
+ },
34
34
  "site_id": {
35
35
  "type": "string"
36
36
  },
@@ -40,7 +40,7 @@
40
40
  "site_key": {
41
41
  "type": "string"
42
42
  },
43
- "env_name": {
43
+ "env_var": {
44
44
  "type": "string",
45
45
  "const": "TAGGOR_SERVER_KEY"
46
46
  },
@@ -52,15 +52,15 @@
52
52
  }
53
53
  },
54
54
  "required": [
55
- "id",
56
55
  "environment",
57
56
  "display_prefix",
58
57
  "created_by",
59
58
  "created_at",
59
+ "key_id",
60
60
  "site_id",
61
61
  "site_name",
62
62
  "site_key",
63
- "env_name",
63
+ "env_var",
64
64
  "secret",
65
65
  "out"
66
66
  ],
@@ -97,6 +97,22 @@
97
97
  "type": "integer",
98
98
  "minimum": -9007199254740991,
99
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": {}
100
116
  }
101
117
  },
102
118
  "required": ["code", "message", "request_id", "exit_code"],
@@ -82,6 +82,22 @@
82
82
  "type": "integer",
83
83
  "minimum": -9007199254740991,
84
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": {}
85
101
  }
86
102
  },
87
103
  "required": ["code", "message", "request_id", "exit_code"],
@@ -15,9 +15,6 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "id": {
19
- "type": "string"
20
- },
21
18
  "environment": {
22
19
  "type": "string",
23
20
  "enum": ["production", "staging"]
@@ -31,6 +28,9 @@
31
28
  "created_at": {
32
29
  "type": "string"
33
30
  },
31
+ "key_id": {
32
+ "type": "string"
33
+ },
34
34
  "site_id": {
35
35
  "type": "string"
36
36
  },
@@ -57,11 +57,11 @@
57
57
  }
58
58
  },
59
59
  "required": [
60
- "id",
61
60
  "environment",
62
61
  "display_prefix",
63
62
  "created_by",
64
63
  "created_at",
64
+ "key_id",
65
65
  "site_id",
66
66
  "site_name",
67
67
  "site_key",
@@ -101,6 +101,22 @@
101
101
  "type": "integer",
102
102
  "minimum": -9007199254740991,
103
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": {}
104
120
  }
105
121
  },
106
122
  "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": {
@@ -207,14 +207,14 @@
207
207
  }
208
208
  },
209
209
  "required": [
210
- "id",
211
- "name",
212
210
  "status",
213
211
  "production_site_key",
214
212
  "production_allowed_domains",
215
213
  "staging_site_key",
216
214
  "staging_allowed_domains",
217
215
  "staging_fixed_domains",
216
+ "site_id",
217
+ "site_name",
218
218
  "snippet",
219
219
  "components"
220
220
  ],
@@ -251,6 +251,22 @@
251
251
  "type": "integer",
252
252
  "minimum": -9007199254740991,
253
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": {}
254
270
  }
255
271
  },
256
272
  "required": ["code", "message", "request_id", "exit_code"],
@@ -99,6 +99,22 @@
99
99
  "type": "integer",
100
100
  "minimum": -9007199254740991,
101
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": {}
102
118
  }
103
119
  },
104
120
  "required": ["code", "message", "request_id", "exit_code"],