taggor 0.7.0 → 0.8.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.
@@ -15,24 +15,55 @@
15
15
  "data": {
16
16
  "type": "object",
17
17
  "properties": {
18
- "site_id": {
18
+ "id": {
19
19
  "type": "string"
20
20
  },
21
- "site_key": {
21
+ "name": {
22
22
  "type": "string"
23
23
  },
24
- "environment": {
25
- "type": "string",
26
- "enum": ["production", "staging"]
24
+ "status": {
25
+ "type": "string"
26
+ },
27
+ "production_site_key": {
28
+ "type": "string"
29
+ },
30
+ "production_allowed_domains": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
27
35
  },
28
- "allowed_domains": {
36
+ "staging_site_key": {
37
+ "type": "string"
38
+ },
39
+ "staging_allowed_domains": {
29
40
  "type": "array",
30
41
  "items": {
31
42
  "type": "string"
32
43
  }
44
+ },
45
+ "staging_fixed_domains": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
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
+ "id",
58
+ "name",
59
+ "status",
60
+ "production_site_key",
61
+ "production_allowed_domains",
62
+ "staging_site_key",
63
+ "staging_allowed_domains",
64
+ "staging_fixed_domains",
65
+ "environment"
66
+ ],
36
67
  "additionalProperties": false
37
68
  }
38
69
  },
@@ -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
  }
@@ -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
  }
@@ -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
  },
@@ -18,6 +18,10 @@
18
18
  "id": {
19
19
  "type": "string"
20
20
  },
21
+ "environment": {
22
+ "type": "string",
23
+ "enum": ["production", "staging"]
24
+ },
21
25
  "display_prefix": {
22
26
  "type": "string"
23
27
  },
@@ -30,6 +34,9 @@
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
  },
@@ -46,10 +53,12 @@
46
53
  },
47
54
  "required": [
48
55
  "id",
56
+ "environment",
49
57
  "display_prefix",
50
58
  "created_by",
51
59
  "created_at",
52
60
  "site_id",
61
+ "site_name",
53
62
  "site_key",
54
63
  "env_name",
55
64
  "secret",
@@ -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
  },
@@ -18,6 +18,10 @@
18
18
  "id": {
19
19
  "type": "string"
20
20
  },
21
+ "environment": {
22
+ "type": "string",
23
+ "enum": ["production", "staging"]
24
+ },
21
25
  "display_prefix": {
22
26
  "type": "string"
23
27
  },
@@ -30,6 +34,9 @@
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
  },
@@ -51,10 +58,12 @@
51
58
  },
52
59
  "required": [
53
60
  "id",
61
+ "environment",
54
62
  "display_prefix",
55
63
  "created_by",
56
64
  "created_at",
57
65
  "site_id",
66
+ "site_name",
58
67
  "site_key",
59
68
  "revoked_at",
60
69
  "remaining"
@@ -0,0 +1,265 @@
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
+ "id": {
19
+ "type": "string"
20
+ },
21
+ "name": {
22
+ "type": "string"
23
+ },
24
+ "status": {
25
+ "type": "string"
26
+ },
27
+ "production_site_key": {
28
+ "type": "string"
29
+ },
30
+ "production_allowed_domains": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "staging_site_key": {
37
+ "type": "string"
38
+ },
39
+ "staging_allowed_domains": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "staging_fixed_domains": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
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
+ "id",
211
+ "name",
212
+ "status",
213
+ "production_site_key",
214
+ "production_allowed_domains",
215
+ "staging_site_key",
216
+ "staging_allowed_domains",
217
+ "staging_fixed_domains",
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
+ },
256
+ "required": ["code", "message", "request_id", "exit_code"],
257
+ "additionalProperties": false
258
+ }
259
+ },
260
+ "required": ["ok", "command", "error"],
261
+ "additionalProperties": false
262
+ }
263
+ ],
264
+ "title": "taggor sites show --json"
265
+ }
@@ -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
  },