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,426 @@
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": "publish"
14
+ },
15
+ "data": {
16
+ "oneOf": [
17
+ {
18
+ "type": "object",
19
+ "properties": {
20
+ "dry_run": {
21
+ "type": "boolean",
22
+ "const": true
23
+ },
24
+ "channel": {
25
+ "type": "string",
26
+ "enum": ["staging", "production"]
27
+ },
28
+ "components": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object",
32
+ "properties": {
33
+ "name": {
34
+ "type": "string"
35
+ },
36
+ "package": {
37
+ "type": "object",
38
+ "properties": {
39
+ "bytes": {
40
+ "type": "integer",
41
+ "minimum": -9007199254740991,
42
+ "maximum": 9007199254740991
43
+ },
44
+ "sha256": {
45
+ "type": "string"
46
+ },
47
+ "files": {
48
+ "type": "integer",
49
+ "minimum": -9007199254740991,
50
+ "maximum": 9007199254740991
51
+ }
52
+ },
53
+ "required": ["bytes", "sha256", "files"],
54
+ "additionalProperties": false
55
+ },
56
+ "skipped": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "object",
60
+ "properties": {
61
+ "path": {
62
+ "type": "string"
63
+ },
64
+ "reason": {
65
+ "type": "string",
66
+ "enum": [
67
+ "vendored",
68
+ "credential",
69
+ "junk",
70
+ "generated",
71
+ "taggorignore",
72
+ "project-file",
73
+ "extension"
74
+ ]
75
+ }
76
+ },
77
+ "required": ["path", "reason"],
78
+ "additionalProperties": false
79
+ }
80
+ }
81
+ },
82
+ "required": ["name", "package", "skipped"],
83
+ "additionalProperties": false
84
+ }
85
+ }
86
+ },
87
+ "required": ["dry_run", "channel", "components"],
88
+ "additionalProperties": false
89
+ },
90
+ {
91
+ "type": "object",
92
+ "properties": {
93
+ "dry_run": {
94
+ "type": "boolean",
95
+ "const": false
96
+ },
97
+ "channel": {
98
+ "type": "string",
99
+ "enum": ["staging", "production"]
100
+ },
101
+ "components": {
102
+ "type": "array",
103
+ "items": {
104
+ "type": "object",
105
+ "properties": {
106
+ "name": {
107
+ "type": "string"
108
+ },
109
+ "tag": {
110
+ "type": "string"
111
+ },
112
+ "component_id": {
113
+ "type": "string"
114
+ },
115
+ "build_id": {
116
+ "type": ["string", "null"]
117
+ },
118
+ "version_id": {
119
+ "type": "string"
120
+ },
121
+ "semver": {
122
+ "type": "string"
123
+ },
124
+ "hash": {
125
+ "type": "string"
126
+ },
127
+ "version_existed": {
128
+ "type": "boolean"
129
+ },
130
+ "channel": {
131
+ "type": "string",
132
+ "enum": ["staging", "production"]
133
+ },
134
+ "channel_changed": {
135
+ "type": "boolean"
136
+ },
137
+ "package": {
138
+ "type": "object",
139
+ "properties": {
140
+ "bytes": {
141
+ "type": "integer",
142
+ "minimum": -9007199254740991,
143
+ "maximum": 9007199254740991
144
+ },
145
+ "sha256": {
146
+ "type": "string"
147
+ },
148
+ "files": {
149
+ "type": "integer",
150
+ "minimum": -9007199254740991,
151
+ "maximum": 9007199254740991
152
+ }
153
+ },
154
+ "required": ["bytes", "sha256", "files"],
155
+ "additionalProperties": false
156
+ },
157
+ "skipped": {
158
+ "type": "array",
159
+ "items": {
160
+ "type": "object",
161
+ "properties": {
162
+ "path": {
163
+ "type": "string"
164
+ },
165
+ "reason": {
166
+ "type": "string",
167
+ "enum": [
168
+ "vendored",
169
+ "credential",
170
+ "junk",
171
+ "generated",
172
+ "taggorignore",
173
+ "project-file",
174
+ "extension"
175
+ ]
176
+ }
177
+ },
178
+ "required": ["path", "reason"],
179
+ "additionalProperties": false
180
+ }
181
+ },
182
+ "sites": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "object",
186
+ "properties": {
187
+ "id": {
188
+ "type": "string"
189
+ },
190
+ "site_key": {
191
+ "type": "string"
192
+ },
193
+ "name": {
194
+ "type": "string"
195
+ },
196
+ "snippet": {
197
+ "type": "string"
198
+ },
199
+ "loader_url": {
200
+ "type": "string"
201
+ },
202
+ "attachment": {
203
+ "type": "string",
204
+ "enum": ["created", "unchanged"]
205
+ },
206
+ "attached_channel": {
207
+ "type": "string",
208
+ "enum": ["staging", "production"]
209
+ },
210
+ "source": {
211
+ "type": "object",
212
+ "properties": {
213
+ "from": {
214
+ "type": "string",
215
+ "enum": ["flag", "project"]
216
+ },
217
+ "path": {
218
+ "type": ["string", "null"]
219
+ }
220
+ },
221
+ "required": ["from", "path"],
222
+ "additionalProperties": false
223
+ }
224
+ },
225
+ "required": [
226
+ "id",
227
+ "site_key",
228
+ "name",
229
+ "snippet",
230
+ "loader_url",
231
+ "attachment",
232
+ "attached_channel",
233
+ "source"
234
+ ],
235
+ "additionalProperties": false
236
+ }
237
+ },
238
+ "sites_not_attached": {
239
+ "type": "array",
240
+ "items": {
241
+ "type": "object",
242
+ "properties": {
243
+ "id": {
244
+ "type": "string"
245
+ },
246
+ "site_key": {
247
+ "type": "string"
248
+ },
249
+ "name": {
250
+ "type": "string"
251
+ },
252
+ "environment": {
253
+ "type": "string",
254
+ "enum": ["staging", "production"]
255
+ },
256
+ "reason": {
257
+ "type": "string",
258
+ "enum": ["production_site_from_project"]
259
+ },
260
+ "attach_command": {
261
+ "type": "string"
262
+ }
263
+ },
264
+ "required": [
265
+ "id",
266
+ "site_key",
267
+ "name",
268
+ "environment",
269
+ "reason",
270
+ "attach_command"
271
+ ],
272
+ "additionalProperties": false
273
+ }
274
+ },
275
+ "preview_url": {
276
+ "type": ["string", "null"]
277
+ },
278
+ "warnings": {
279
+ "type": "array",
280
+ "items": {
281
+ "type": "object",
282
+ "properties": {
283
+ "code": {
284
+ "type": "string"
285
+ },
286
+ "severity": {
287
+ "type": "string",
288
+ "enum": ["error", "warning"]
289
+ },
290
+ "message": {
291
+ "type": "string"
292
+ },
293
+ "hint": {
294
+ "type": "string"
295
+ },
296
+ "docs_url": {
297
+ "type": "string"
298
+ },
299
+ "file": {
300
+ "type": "string"
301
+ },
302
+ "line": {
303
+ "type": "integer",
304
+ "minimum": -9007199254740991,
305
+ "maximum": 9007199254740991
306
+ },
307
+ "column": {
308
+ "type": "integer",
309
+ "minimum": -9007199254740991,
310
+ "maximum": 9007199254740991
311
+ }
312
+ },
313
+ "required": ["code", "severity", "message"],
314
+ "additionalProperties": false
315
+ }
316
+ }
317
+ },
318
+ "required": [
319
+ "name",
320
+ "tag",
321
+ "component_id",
322
+ "build_id",
323
+ "version_id",
324
+ "semver",
325
+ "hash",
326
+ "version_existed",
327
+ "channel",
328
+ "channel_changed",
329
+ "package",
330
+ "skipped",
331
+ "sites",
332
+ "sites_not_attached",
333
+ "preview_url",
334
+ "warnings"
335
+ ],
336
+ "additionalProperties": false
337
+ }
338
+ }
339
+ },
340
+ "required": ["dry_run", "channel", "components"],
341
+ "additionalProperties": false
342
+ }
343
+ ]
344
+ }
345
+ },
346
+ "required": ["ok", "command", "data"],
347
+ "additionalProperties": false
348
+ },
349
+ {
350
+ "type": "object",
351
+ "properties": {
352
+ "ok": {
353
+ "type": "boolean",
354
+ "const": false
355
+ },
356
+ "command": {
357
+ "type": "string",
358
+ "const": "publish"
359
+ },
360
+ "error": {
361
+ "type": "object",
362
+ "properties": {
363
+ "code": {
364
+ "type": "string"
365
+ },
366
+ "message": {
367
+ "type": "string"
368
+ },
369
+ "request_id": {
370
+ "type": ["string", "null"]
371
+ },
372
+ "exit_code": {
373
+ "type": "integer",
374
+ "minimum": -9007199254740991,
375
+ "maximum": 9007199254740991
376
+ },
377
+ "errors": {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "object",
381
+ "properties": {
382
+ "code": {
383
+ "type": "string"
384
+ },
385
+ "severity": {
386
+ "type": "string",
387
+ "enum": ["error", "warning"]
388
+ },
389
+ "message": {
390
+ "type": "string"
391
+ },
392
+ "hint": {
393
+ "type": "string"
394
+ },
395
+ "docs_url": {
396
+ "type": "string"
397
+ },
398
+ "file": {
399
+ "type": "string"
400
+ },
401
+ "line": {
402
+ "type": "integer",
403
+ "minimum": -9007199254740991,
404
+ "maximum": 9007199254740991
405
+ },
406
+ "column": {
407
+ "type": "integer",
408
+ "minimum": -9007199254740991,
409
+ "maximum": 9007199254740991
410
+ }
411
+ },
412
+ "required": ["code", "severity", "message"],
413
+ "additionalProperties": false
414
+ }
415
+ }
416
+ },
417
+ "required": ["code", "message", "request_id", "exit_code"],
418
+ "additionalProperties": false
419
+ }
420
+ },
421
+ "required": ["ok", "command", "error"],
422
+ "additionalProperties": false
423
+ }
424
+ ],
425
+ "title": "taggor publish --json"
426
+ }
@@ -0,0 +1,120 @@
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": "pull"
14
+ },
15
+ "data": {
16
+ "type": "object",
17
+ "properties": {
18
+ "mode": {
19
+ "type": "string",
20
+ "enum": ["created", "component-added"]
21
+ },
22
+ "root": {
23
+ "type": "string"
24
+ },
25
+ "component_id": {
26
+ "type": "string"
27
+ },
28
+ "tag": {
29
+ "type": "string"
30
+ },
31
+ "version_id": {
32
+ "type": "string"
33
+ },
34
+ "semver": {
35
+ "type": ["string", "null"]
36
+ },
37
+ "sha256": {
38
+ "type": "string"
39
+ },
40
+ "path": {
41
+ "type": "string"
42
+ },
43
+ "managed": {
44
+ "type": "boolean"
45
+ },
46
+ "written": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "overwritten": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "already_listed": {
59
+ "type": "boolean"
60
+ }
61
+ },
62
+ "required": [
63
+ "mode",
64
+ "root",
65
+ "component_id",
66
+ "tag",
67
+ "version_id",
68
+ "semver",
69
+ "sha256",
70
+ "path",
71
+ "managed",
72
+ "written",
73
+ "overwritten",
74
+ "already_listed"
75
+ ],
76
+ "additionalProperties": false
77
+ }
78
+ },
79
+ "required": ["ok", "command", "data"],
80
+ "additionalProperties": false
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "ok": {
86
+ "type": "boolean",
87
+ "const": false
88
+ },
89
+ "command": {
90
+ "type": "string",
91
+ "const": "pull"
92
+ },
93
+ "error": {
94
+ "type": "object",
95
+ "properties": {
96
+ "code": {
97
+ "type": "string"
98
+ },
99
+ "message": {
100
+ "type": "string"
101
+ },
102
+ "request_id": {
103
+ "type": ["string", "null"]
104
+ },
105
+ "exit_code": {
106
+ "type": "integer",
107
+ "minimum": -9007199254740991,
108
+ "maximum": 9007199254740991
109
+ }
110
+ },
111
+ "required": ["code", "message", "request_id", "exit_code"],
112
+ "additionalProperties": false
113
+ }
114
+ },
115
+ "required": ["ok", "command", "error"],
116
+ "additionalProperties": false
117
+ }
118
+ ],
119
+ "title": "taggor pull --json"
120
+ }