taggor 0.0.0-stage → 0.1.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.
@@ -0,0 +1,182 @@
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": "rollback"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "component_id": {
19
+ "type": "string"
20
+ },
21
+ "tag": {
22
+ "type": "string"
23
+ },
24
+ "workspace": {
25
+ "type": ["string", "null"]
26
+ },
27
+ "channel": {
28
+ "type": "string",
29
+ "enum": ["staging", "production"]
30
+ },
31
+ "action": {
32
+ "type": "string",
33
+ "const": "rollback"
34
+ },
35
+ "changed": {
36
+ "type": "boolean"
37
+ },
38
+ "from": {
39
+ "anyOf": [
40
+ {
41
+ "type": "object",
42
+ "properties": {
43
+ "version_id": {
44
+ "type": "string"
45
+ },
46
+ "semver": {
47
+ "type": ["string", "null"]
48
+ }
49
+ },
50
+ "required": ["version_id", "semver"],
51
+ "additionalProperties": false
52
+ },
53
+ {
54
+ "type": "null"
55
+ }
56
+ ]
57
+ },
58
+ "to": {
59
+ "type": "object",
60
+ "properties": {
61
+ "version_id": {
62
+ "type": "string"
63
+ },
64
+ "semver": {
65
+ "type": ["string", "null"]
66
+ }
67
+ },
68
+ "required": ["version_id", "semver"],
69
+ "additionalProperties": false
70
+ },
71
+ "site_props": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "site_id": {
77
+ "type": "string"
78
+ },
79
+ "site_key": {
80
+ "type": "string"
81
+ },
82
+ "outcome": {
83
+ "type": "string",
84
+ "enum": ["held_back", "suspended"]
85
+ },
86
+ "paths": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "suspended": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "restored": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string"
102
+ }
103
+ }
104
+ },
105
+ "required": ["site_id", "site_key", "outcome", "paths", "suspended", "restored"],
106
+ "additionalProperties": false
107
+ }
108
+ },
109
+ "site_props_unsettled": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "object",
113
+ "properties": {
114
+ "site_id": {
115
+ "type": "string"
116
+ },
117
+ "site_key": {
118
+ "type": "string"
119
+ }
120
+ },
121
+ "required": ["site_id", "site_key"],
122
+ "additionalProperties": false
123
+ }
124
+ }
125
+ },
126
+ "required": [
127
+ "component_id",
128
+ "tag",
129
+ "workspace",
130
+ "channel",
131
+ "action",
132
+ "changed",
133
+ "from",
134
+ "to",
135
+ "site_props",
136
+ "site_props_unsettled"
137
+ ],
138
+ "additionalProperties": false
139
+ }
140
+ },
141
+ "required": ["ok", "command", "data"],
142
+ "additionalProperties": false
143
+ },
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "ok": {
148
+ "type": "boolean",
149
+ "const": false
150
+ },
151
+ "command": {
152
+ "type": "string",
153
+ "const": "rollback"
154
+ },
155
+ "error": {
156
+ "type": "object",
157
+ "properties": {
158
+ "code": {
159
+ "type": "string"
160
+ },
161
+ "message": {
162
+ "type": "string"
163
+ },
164
+ "request_id": {
165
+ "type": ["string", "null"]
166
+ },
167
+ "exit_code": {
168
+ "type": "integer",
169
+ "minimum": -9007199254740991,
170
+ "maximum": 9007199254740991
171
+ }
172
+ },
173
+ "required": ["code", "message", "request_id", "exit_code"],
174
+ "additionalProperties": false
175
+ }
176
+ },
177
+ "required": ["ok", "command", "error"],
178
+ "additionalProperties": false
179
+ }
180
+ ],
181
+ "title": "taggor rollback --json"
182
+ }
@@ -0,0 +1,128 @@
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 create"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "id": {
19
+ "type": "string"
20
+ },
21
+ "name": {
22
+ "type": "string"
23
+ },
24
+ "site_key": {
25
+ "type": "string"
26
+ },
27
+ "environment": {
28
+ "type": "string",
29
+ "enum": ["production", "staging"]
30
+ },
31
+ "status": {
32
+ "type": "string"
33
+ },
34
+ "allowed_domains": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "snippet": {
41
+ "type": "object",
42
+ "properties": {
43
+ "html": {
44
+ "type": "string"
45
+ },
46
+ "src": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": ["html", "src"],
51
+ "additionalProperties": false
52
+ },
53
+ "project_file": {
54
+ "type": "object",
55
+ "properties": {
56
+ "state": {
57
+ "type": "string",
58
+ "enum": ["none", "written", "kept", "skipped", "failed"]
59
+ },
60
+ "path": {
61
+ "type": ["string", "null"]
62
+ },
63
+ "reason": {
64
+ "type": ["string", "null"]
65
+ },
66
+ "kept_site_key": {
67
+ "type": ["string", "null"]
68
+ }
69
+ },
70
+ "required": ["state", "path", "reason", "kept_site_key"],
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "required": [
75
+ "id",
76
+ "name",
77
+ "site_key",
78
+ "environment",
79
+ "status",
80
+ "allowed_domains",
81
+ "snippet",
82
+ "project_file"
83
+ ],
84
+ "additionalProperties": false
85
+ }
86
+ },
87
+ "required": ["ok", "command", "data"],
88
+ "additionalProperties": false
89
+ },
90
+ {
91
+ "type": "object",
92
+ "properties": {
93
+ "ok": {
94
+ "type": "boolean",
95
+ "const": false
96
+ },
97
+ "command": {
98
+ "type": "string",
99
+ "const": "sites create"
100
+ },
101
+ "error": {
102
+ "type": "object",
103
+ "properties": {
104
+ "code": {
105
+ "type": "string"
106
+ },
107
+ "message": {
108
+ "type": "string"
109
+ },
110
+ "request_id": {
111
+ "type": ["string", "null"]
112
+ },
113
+ "exit_code": {
114
+ "type": "integer",
115
+ "minimum": -9007199254740991,
116
+ "maximum": 9007199254740991
117
+ }
118
+ },
119
+ "required": ["code", "message", "request_id", "exit_code"],
120
+ "additionalProperties": false
121
+ }
122
+ },
123
+ "required": ["ok", "command", "error"],
124
+ "additionalProperties": false
125
+ }
126
+ ],
127
+ "title": "taggor sites create --json"
128
+ }
@@ -0,0 +1,80 @@
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 domains set"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "site_id": {
19
+ "type": "string"
20
+ },
21
+ "site_key": {
22
+ "type": "string"
23
+ },
24
+ "environment": {
25
+ "type": "string",
26
+ "enum": ["production", "staging"]
27
+ },
28
+ "allowed_domains": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "string"
32
+ }
33
+ }
34
+ },
35
+ "required": ["site_id", "site_key", "environment", "allowed_domains"],
36
+ "additionalProperties": false
37
+ }
38
+ },
39
+ "required": ["ok", "command", "data"],
40
+ "additionalProperties": false
41
+ },
42
+ {
43
+ "type": "object",
44
+ "properties": {
45
+ "ok": {
46
+ "type": "boolean",
47
+ "const": false
48
+ },
49
+ "command": {
50
+ "type": "string",
51
+ "const": "sites domains set"
52
+ },
53
+ "error": {
54
+ "type": "object",
55
+ "properties": {
56
+ "code": {
57
+ "type": "string"
58
+ },
59
+ "message": {
60
+ "type": "string"
61
+ },
62
+ "request_id": {
63
+ "type": ["string", "null"]
64
+ },
65
+ "exit_code": {
66
+ "type": "integer",
67
+ "minimum": -9007199254740991,
68
+ "maximum": 9007199254740991
69
+ }
70
+ },
71
+ "required": ["code", "message", "request_id", "exit_code"],
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+ "required": ["ok", "command", "error"],
76
+ "additionalProperties": false
77
+ }
78
+ ],
79
+ "title": "taggor sites domains set --json"
80
+ }
@@ -0,0 +1,96 @@
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 list"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "sites": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "object",
22
+ "properties": {
23
+ "id": {
24
+ "type": "string"
25
+ },
26
+ "name": {
27
+ "type": "string"
28
+ },
29
+ "site_key": {
30
+ "type": "string"
31
+ },
32
+ "environment": {
33
+ "type": "string",
34
+ "enum": ["production", "staging"]
35
+ },
36
+ "status": {
37
+ "type": "string"
38
+ },
39
+ "allowed_domains": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "string"
43
+ }
44
+ }
45
+ },
46
+ "required": ["id", "name", "site_key", "environment", "status", "allowed_domains"],
47
+ "additionalProperties": false
48
+ }
49
+ }
50
+ },
51
+ "required": ["sites"],
52
+ "additionalProperties": false
53
+ }
54
+ },
55
+ "required": ["ok", "command", "data"],
56
+ "additionalProperties": false
57
+ },
58
+ {
59
+ "type": "object",
60
+ "properties": {
61
+ "ok": {
62
+ "type": "boolean",
63
+ "const": false
64
+ },
65
+ "command": {
66
+ "type": "string",
67
+ "const": "sites list"
68
+ },
69
+ "error": {
70
+ "type": "object",
71
+ "properties": {
72
+ "code": {
73
+ "type": "string"
74
+ },
75
+ "message": {
76
+ "type": "string"
77
+ },
78
+ "request_id": {
79
+ "type": ["string", "null"]
80
+ },
81
+ "exit_code": {
82
+ "type": "integer",
83
+ "minimum": -9007199254740991,
84
+ "maximum": 9007199254740991
85
+ }
86
+ },
87
+ "required": ["code", "message", "request_id", "exit_code"],
88
+ "additionalProperties": false
89
+ }
90
+ },
91
+ "required": ["ok", "command", "error"],
92
+ "additionalProperties": false
93
+ }
94
+ ],
95
+ "title": "taggor sites list --json"
96
+ }
@@ -0,0 +1,95 @@
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 props set"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "site_id": {
19
+ "type": "string"
20
+ },
21
+ "site_key": {
22
+ "type": "string"
23
+ },
24
+ "component_id": {
25
+ "type": "string"
26
+ },
27
+ "tag": {
28
+ "type": "string"
29
+ },
30
+ "prop": {
31
+ "type": "string"
32
+ },
33
+ "changed": {
34
+ "type": "boolean"
35
+ },
36
+ "props_revision": {
37
+ "type": "integer",
38
+ "minimum": -9007199254740991,
39
+ "maximum": 9007199254740991
40
+ }
41
+ },
42
+ "required": [
43
+ "site_id",
44
+ "site_key",
45
+ "component_id",
46
+ "tag",
47
+ "prop",
48
+ "changed",
49
+ "props_revision"
50
+ ],
51
+ "additionalProperties": false
52
+ }
53
+ },
54
+ "required": ["ok", "command", "data"],
55
+ "additionalProperties": false
56
+ },
57
+ {
58
+ "type": "object",
59
+ "properties": {
60
+ "ok": {
61
+ "type": "boolean",
62
+ "const": false
63
+ },
64
+ "command": {
65
+ "type": "string",
66
+ "const": "sites props set"
67
+ },
68
+ "error": {
69
+ "type": "object",
70
+ "properties": {
71
+ "code": {
72
+ "type": "string"
73
+ },
74
+ "message": {
75
+ "type": "string"
76
+ },
77
+ "request_id": {
78
+ "type": ["string", "null"]
79
+ },
80
+ "exit_code": {
81
+ "type": "integer",
82
+ "minimum": -9007199254740991,
83
+ "maximum": 9007199254740991
84
+ }
85
+ },
86
+ "required": ["code", "message", "request_id", "exit_code"],
87
+ "additionalProperties": false
88
+ }
89
+ },
90
+ "required": ["ok", "command", "error"],
91
+ "additionalProperties": false
92
+ }
93
+ ],
94
+ "title": "taggor sites props set --json"
95
+ }
@@ -0,0 +1,79 @@
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 protection set"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "site_id": {
19
+ "type": "string"
20
+ },
21
+ "site_key": {
22
+ "type": "string"
23
+ },
24
+ "suspects": {
25
+ "type": "string",
26
+ "enum": ["keep", "drop"]
27
+ },
28
+ "daily_cap": {
29
+ "type": "integer",
30
+ "minimum": -9007199254740991,
31
+ "maximum": 9007199254740991
32
+ }
33
+ },
34
+ "required": ["site_id", "site_key", "suspects", "daily_cap"],
35
+ "additionalProperties": false
36
+ }
37
+ },
38
+ "required": ["ok", "command", "data"],
39
+ "additionalProperties": false
40
+ },
41
+ {
42
+ "type": "object",
43
+ "properties": {
44
+ "ok": {
45
+ "type": "boolean",
46
+ "const": false
47
+ },
48
+ "command": {
49
+ "type": "string",
50
+ "const": "sites protection set"
51
+ },
52
+ "error": {
53
+ "type": "object",
54
+ "properties": {
55
+ "code": {
56
+ "type": "string"
57
+ },
58
+ "message": {
59
+ "type": "string"
60
+ },
61
+ "request_id": {
62
+ "type": ["string", "null"]
63
+ },
64
+ "exit_code": {
65
+ "type": "integer",
66
+ "minimum": -9007199254740991,
67
+ "maximum": 9007199254740991
68
+ }
69
+ },
70
+ "required": ["code", "message", "request_id", "exit_code"],
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "required": ["ok", "command", "error"],
75
+ "additionalProperties": false
76
+ }
77
+ ],
78
+ "title": "taggor sites protection set --json"
79
+ }