taggor 0.0.0-stage → 0.2.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,218 @@
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": "metrics"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "workspace_id": {
19
+ "type": "string"
20
+ },
21
+ "from": {
22
+ "type": "string"
23
+ },
24
+ "to": {
25
+ "type": "string"
26
+ },
27
+ "granularity": {
28
+ "type": "string"
29
+ },
30
+ "environment": {
31
+ "type": "string"
32
+ },
33
+ "group_by": {
34
+ "type": ["string", "null"]
35
+ },
36
+ "group_by_available": {
37
+ "type": "boolean"
38
+ },
39
+ "as_of": {
40
+ "type": "string"
41
+ },
42
+ "truncated": {
43
+ "type": "boolean"
44
+ },
45
+ "metrics": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "name": {
51
+ "type": "string"
52
+ },
53
+ "source": {
54
+ "type": ["string", "null"]
55
+ },
56
+ "trust": {
57
+ "type": ["string", "null"]
58
+ },
59
+ "available": {
60
+ "type": "boolean"
61
+ },
62
+ "reason": {
63
+ "type": ["string", "null"]
64
+ },
65
+ "breakdown_available": {
66
+ "type": "boolean"
67
+ }
68
+ },
69
+ "required": [
70
+ "name",
71
+ "source",
72
+ "trust",
73
+ "available",
74
+ "reason",
75
+ "breakdown_available"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "totals": {
81
+ "type": "object",
82
+ "propertyNames": {
83
+ "type": "string"
84
+ },
85
+ "additionalProperties": {
86
+ "type": ["number", "null"]
87
+ }
88
+ },
89
+ "series": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "object",
93
+ "properties": {
94
+ "start": {
95
+ "type": "string"
96
+ },
97
+ "values": {
98
+ "type": "object",
99
+ "propertyNames": {
100
+ "type": "string"
101
+ },
102
+ "additionalProperties": {
103
+ "type": ["number", "null"]
104
+ }
105
+ }
106
+ },
107
+ "required": ["start", "values"],
108
+ "additionalProperties": false
109
+ }
110
+ },
111
+ "groups": {
112
+ "type": "array",
113
+ "items": {
114
+ "type": "object",
115
+ "properties": {
116
+ "key": {
117
+ "type": "string"
118
+ },
119
+ "name": {
120
+ "type": "string"
121
+ },
122
+ "totals": {
123
+ "type": "object",
124
+ "propertyNames": {
125
+ "type": "string"
126
+ },
127
+ "additionalProperties": {
128
+ "type": ["number", "null"]
129
+ }
130
+ },
131
+ "series": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "object",
135
+ "properties": {
136
+ "start": {
137
+ "type": "string"
138
+ },
139
+ "values": {
140
+ "type": "object",
141
+ "propertyNames": {
142
+ "type": "string"
143
+ },
144
+ "additionalProperties": {
145
+ "type": ["number", "null"]
146
+ }
147
+ }
148
+ },
149
+ "required": ["start", "values"],
150
+ "additionalProperties": false
151
+ }
152
+ }
153
+ },
154
+ "required": ["key", "name", "totals", "series"],
155
+ "additionalProperties": false
156
+ }
157
+ }
158
+ },
159
+ "required": [
160
+ "workspace_id",
161
+ "from",
162
+ "to",
163
+ "granularity",
164
+ "environment",
165
+ "group_by",
166
+ "group_by_available",
167
+ "as_of",
168
+ "truncated",
169
+ "metrics",
170
+ "totals",
171
+ "series",
172
+ "groups"
173
+ ],
174
+ "additionalProperties": false
175
+ }
176
+ },
177
+ "required": ["ok", "command", "data"],
178
+ "additionalProperties": false
179
+ },
180
+ {
181
+ "type": "object",
182
+ "properties": {
183
+ "ok": {
184
+ "type": "boolean",
185
+ "const": false
186
+ },
187
+ "command": {
188
+ "type": "string",
189
+ "const": "metrics"
190
+ },
191
+ "error": {
192
+ "type": "object",
193
+ "properties": {
194
+ "code": {
195
+ "type": "string"
196
+ },
197
+ "message": {
198
+ "type": "string"
199
+ },
200
+ "request_id": {
201
+ "type": ["string", "null"]
202
+ },
203
+ "exit_code": {
204
+ "type": "integer",
205
+ "minimum": -9007199254740991,
206
+ "maximum": 9007199254740991
207
+ }
208
+ },
209
+ "required": ["code", "message", "request_id", "exit_code"],
210
+ "additionalProperties": false
211
+ }
212
+ },
213
+ "required": ["ok", "command", "error"],
214
+ "additionalProperties": false
215
+ }
216
+ ],
217
+ "title": "taggor metrics --json"
218
+ }
@@ -0,0 +1,106 @@
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": "projects clean"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "root": {
19
+ "type": "string"
20
+ },
21
+ "force": {
22
+ "type": "boolean"
23
+ },
24
+ "removed": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "object",
28
+ "properties": {
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "path": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "required": ["name", "path"],
37
+ "additionalProperties": false
38
+ }
39
+ },
40
+ "kept": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "name": {
46
+ "type": "string"
47
+ },
48
+ "path": {
49
+ "type": "string"
50
+ },
51
+ "reason": {
52
+ "type": "string",
53
+ "enum": ["unpublished", "recent"]
54
+ }
55
+ },
56
+ "required": ["name", "path", "reason"],
57
+ "additionalProperties": false
58
+ }
59
+ }
60
+ },
61
+ "required": ["root", "force", "removed", "kept"],
62
+ "additionalProperties": false
63
+ }
64
+ },
65
+ "required": ["ok", "command", "data"],
66
+ "additionalProperties": false
67
+ },
68
+ {
69
+ "type": "object",
70
+ "properties": {
71
+ "ok": {
72
+ "type": "boolean",
73
+ "const": false
74
+ },
75
+ "command": {
76
+ "type": "string",
77
+ "const": "projects clean"
78
+ },
79
+ "error": {
80
+ "type": "object",
81
+ "properties": {
82
+ "code": {
83
+ "type": "string"
84
+ },
85
+ "message": {
86
+ "type": "string"
87
+ },
88
+ "request_id": {
89
+ "type": ["string", "null"]
90
+ },
91
+ "exit_code": {
92
+ "type": "integer",
93
+ "minimum": -9007199254740991,
94
+ "maximum": 9007199254740991
95
+ }
96
+ },
97
+ "required": ["code", "message", "request_id", "exit_code"],
98
+ "additionalProperties": false
99
+ }
100
+ },
101
+ "required": ["ok", "command", "error"],
102
+ "additionalProperties": false
103
+ }
104
+ ],
105
+ "title": "taggor projects clean --json"
106
+ }
@@ -0,0 +1,102 @@
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": "projects list"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "root": {
19
+ "type": "string"
20
+ },
21
+ "projects": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "object",
25
+ "properties": {
26
+ "name": {
27
+ "type": "string"
28
+ },
29
+ "path": {
30
+ "type": "string"
31
+ },
32
+ "components": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "last_activity": {
39
+ "type": "string"
40
+ },
41
+ "sync": {
42
+ "type": "string",
43
+ "enum": ["synced", "unpublished"]
44
+ },
45
+ "unsynced": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
50
+ }
51
+ },
52
+ "required": ["name", "path", "components", "last_activity", "sync", "unsynced"],
53
+ "additionalProperties": false
54
+ }
55
+ }
56
+ },
57
+ "required": ["root", "projects"],
58
+ "additionalProperties": false
59
+ }
60
+ },
61
+ "required": ["ok", "command", "data"],
62
+ "additionalProperties": false
63
+ },
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "ok": {
68
+ "type": "boolean",
69
+ "const": false
70
+ },
71
+ "command": {
72
+ "type": "string",
73
+ "const": "projects list"
74
+ },
75
+ "error": {
76
+ "type": "object",
77
+ "properties": {
78
+ "code": {
79
+ "type": "string"
80
+ },
81
+ "message": {
82
+ "type": "string"
83
+ },
84
+ "request_id": {
85
+ "type": ["string", "null"]
86
+ },
87
+ "exit_code": {
88
+ "type": "integer",
89
+ "minimum": -9007199254740991,
90
+ "maximum": 9007199254740991
91
+ }
92
+ },
93
+ "required": ["code", "message", "request_id", "exit_code"],
94
+ "additionalProperties": false
95
+ }
96
+ },
97
+ "required": ["ok", "command", "error"],
98
+ "additionalProperties": false
99
+ }
100
+ ],
101
+ "title": "taggor projects list --json"
102
+ }
@@ -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": "promote"
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": "promote"
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": "promote"
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 promote --json"
182
+ }