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.
- package/EXIT_CODES.md +20 -0
- package/LICENSE +21 -0
- package/README.md +51 -2
- package/bin/taggor.js +8 -0
- package/dist/taggor.mjs +25917 -0
- package/package.json +63 -3
- package/schemas/agent-install.json +131 -0
- package/schemas/attach.json +109 -0
- package/schemas/check.json +200 -0
- package/schemas/data-collections.json +102 -0
- package/schemas/data-export.json +82 -0
- package/schemas/detach.json +80 -0
- package/schemas/dev.json +81 -0
- package/schemas/init.json +139 -0
- package/schemas/login.json +100 -0
- package/schemas/logout.json +73 -0
- package/schemas/logs.json +133 -0
- package/schemas/metrics.json +218 -0
- package/schemas/projects-clean.json +106 -0
- package/schemas/projects-list.json +102 -0
- package/schemas/promote.json +182 -0
- package/schemas/publish.json +426 -0
- package/schemas/pull.json +120 -0
- package/schemas/rollback.json +182 -0
- package/schemas/sites-create.json +128 -0
- package/schemas/sites-domains-set.json +80 -0
- package/schemas/sites-list.json +96 -0
- package/schemas/sites-props-set.json +95 -0
- package/schemas/sites-protection-set.json +79 -0
- package/schemas/sites-server-keys-create.json +102 -0
- package/schemas/sites-server-keys-list.json +92 -0
- package/schemas/sites-server-keys-revoke.json +106 -0
- package/schemas/sites-snippet.json +76 -0
- package/schemas/usage.json +227 -0
- package/schemas/versions.json +125 -0
- package/schemas/whoami.json +121 -0
- package/schemas/workspaces-use.json +74 -0
package/package.json
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taggor",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The taggor CLI: login, init, dev, publish, promote, rollback, sites, data and logs.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"taggor",
|
|
7
|
+
"cli",
|
|
8
|
+
"web-components",
|
|
9
|
+
"components",
|
|
10
|
+
"ai-agents"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "https://taggor.dev/docs/",
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=20"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"bin": {
|
|
22
|
+
"taggor": "./bin/taggor.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin",
|
|
26
|
+
"dist/taggor.mjs",
|
|
27
|
+
"schemas",
|
|
28
|
+
"EXIT_CODES.md"
|
|
29
|
+
],
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@playwright/test": "1.64.1",
|
|
32
|
+
"@taggor/api-client": "0.0.0",
|
|
33
|
+
"@taggor/builder": "0.0.0",
|
|
34
|
+
"@taggor/config": "0.0.0",
|
|
35
|
+
"@taggor/contract": "0.1.0",
|
|
36
|
+
"@taggor/runtime": "0.1.0",
|
|
37
|
+
"@taggor/server": "0.1.0",
|
|
38
|
+
"@taggor/component": "0.1.0",
|
|
39
|
+
"@types/node": "26.6.5",
|
|
40
|
+
"ajv": "8.20.0",
|
|
41
|
+
"citty": "0.2.2",
|
|
42
|
+
"esbuild": "0.28.2",
|
|
43
|
+
"preact": "10.29.8",
|
|
44
|
+
"tar": "7.5.22",
|
|
45
|
+
"typescript": "6.0.3",
|
|
46
|
+
"zod": "4.6.7"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsc -b tsconfig.build.json && node scripts/bundle.ts",
|
|
50
|
+
"build:dev": "tsc -b tsconfig.build.json && node scripts/build-dev.ts",
|
|
51
|
+
"build:staging": "tsc -b tsconfig.build.json && node scripts/build-staging.ts",
|
|
52
|
+
"build:agents": "node scripts/build-agents.ts",
|
|
53
|
+
"agents:guide": "node scripts/gen-agents-guide.ts",
|
|
54
|
+
"agents:bundle": "node scripts/gen-agents-bundle.ts",
|
|
55
|
+
"onboarding:gen": "node scripts/gen-portal-onboarding.ts",
|
|
56
|
+
"agent-setup:gen": "node scripts/gen-agent-setup.ts",
|
|
57
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
58
|
+
"lint": "eslint . --max-warnings 0",
|
|
59
|
+
"schemas:gen": "SCHEMAS_UPDATE=1 vitest run src/interfaces/output/schemas.test.ts && prettier --write schemas",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"test:live": "vitest run --config vitest.integration.config.js",
|
|
63
|
+
"test:e2e": "playwright test --config e2e/playwright.config.ts",
|
|
64
|
+
"test:e2e:login": "sh scripts/login-e2e.sh"
|
|
65
|
+
}
|
|
6
66
|
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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": "agent install"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"target": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["claude", "codex", "cursor", "all"]
|
|
23
|
+
},
|
|
24
|
+
"bundle_version": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"files": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"path": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"action": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["written", "created", "appended", "updated", "unchanged"]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": ["path", "action"],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"root": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["target", "bundle_version", "files", "root"],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"bundle_version": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"installed": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"outdated": {
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
},
|
|
63
|
+
"entries": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"path": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"installed_version": {
|
|
72
|
+
"type": ["string", "null"]
|
|
73
|
+
},
|
|
74
|
+
"status": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": ["current", "outdated", "missing"]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": ["path", "installed_version", "status"],
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": ["bundle_version", "installed", "outdated", "entries"],
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": ["ok", "command", "data"],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"ok": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"const": false
|
|
99
|
+
},
|
|
100
|
+
"command": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"const": "agent install"
|
|
103
|
+
},
|
|
104
|
+
"error": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"code": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"message": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"request_id": {
|
|
114
|
+
"type": ["string", "null"]
|
|
115
|
+
},
|
|
116
|
+
"exit_code": {
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"minimum": -9007199254740991,
|
|
119
|
+
"maximum": 9007199254740991
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
123
|
+
"additionalProperties": false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": ["ok", "command", "error"],
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"title": "taggor agent install --json"
|
|
131
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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": "attach"
|
|
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
|
+
"channel": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["production", "staging"]
|
|
33
|
+
},
|
|
34
|
+
"created": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
"loading": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["eager", "idle"]
|
|
40
|
+
},
|
|
41
|
+
"site_source": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"from": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["flag", "project"]
|
|
47
|
+
},
|
|
48
|
+
"path": {
|
|
49
|
+
"type": ["string", "null"]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": ["from", "path"],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"site_id",
|
|
58
|
+
"site_key",
|
|
59
|
+
"component_id",
|
|
60
|
+
"tag",
|
|
61
|
+
"channel",
|
|
62
|
+
"created",
|
|
63
|
+
"site_source"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": ["ok", "command", "data"],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"ok": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"const": false
|
|
77
|
+
},
|
|
78
|
+
"command": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"const": "attach"
|
|
81
|
+
},
|
|
82
|
+
"error": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"code": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"message": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"request_id": {
|
|
92
|
+
"type": ["string", "null"]
|
|
93
|
+
},
|
|
94
|
+
"exit_code": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"minimum": -9007199254740991,
|
|
97
|
+
"maximum": 9007199254740991
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": ["ok", "command", "error"],
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"title": "taggor attach --json"
|
|
109
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
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": "check"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"ok": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"const": true
|
|
21
|
+
},
|
|
22
|
+
"version": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"components": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"name": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"path": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"ok": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"duration_ms": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": -9007199254740991,
|
|
42
|
+
"maximum": 9007199254740991
|
|
43
|
+
},
|
|
44
|
+
"gates": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"gate": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": ["typecheck", "size", "security"]
|
|
52
|
+
},
|
|
53
|
+
"ok": {
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
},
|
|
56
|
+
"errors": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": -9007199254740991,
|
|
59
|
+
"maximum": 9007199254740991
|
|
60
|
+
},
|
|
61
|
+
"warnings": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": -9007199254740991,
|
|
64
|
+
"maximum": 9007199254740991
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": ["gate", "ok", "errors", "warnings"],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"diagnostics": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"code": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"severity": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": ["error", "warning"]
|
|
82
|
+
},
|
|
83
|
+
"message": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"hint": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"docs_url": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"file": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"line": {
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"minimum": -9007199254740991,
|
|
98
|
+
"maximum": 9007199254740991
|
|
99
|
+
},
|
|
100
|
+
"column": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": -9007199254740991,
|
|
103
|
+
"maximum": 9007199254740991
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": ["code", "severity", "message"],
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": ["name", "path", "ok", "duration_ms", "gates", "diagnostics"],
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": ["ok", "version", "components"],
|
|
117
|
+
"additionalProperties": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": ["ok", "command", "data"],
|
|
121
|
+
"additionalProperties": false
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"ok": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"const": false
|
|
129
|
+
},
|
|
130
|
+
"command": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"const": "check"
|
|
133
|
+
},
|
|
134
|
+
"error": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"code": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"message": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"request_id": {
|
|
144
|
+
"type": ["string", "null"]
|
|
145
|
+
},
|
|
146
|
+
"exit_code": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": -9007199254740991,
|
|
149
|
+
"maximum": 9007199254740991
|
|
150
|
+
},
|
|
151
|
+
"errors": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"code": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"severity": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"enum": ["error", "warning"]
|
|
162
|
+
},
|
|
163
|
+
"message": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"hint": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"docs_url": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"file": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"line": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": -9007199254740991,
|
|
178
|
+
"maximum": 9007199254740991
|
|
179
|
+
},
|
|
180
|
+
"column": {
|
|
181
|
+
"type": "integer",
|
|
182
|
+
"minimum": -9007199254740991,
|
|
183
|
+
"maximum": 9007199254740991
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": ["code", "severity", "message"],
|
|
187
|
+
"additionalProperties": false
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
192
|
+
"additionalProperties": false
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": ["ok", "command", "error"],
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"title": "taggor check --json"
|
|
200
|
+
}
|
|
@@ -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": "data collections"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"collections": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"id": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"component_id": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"status": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["active", "archived"]
|
|
35
|
+
},
|
|
36
|
+
"retention_days": {
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"minimum": -9007199254740991,
|
|
39
|
+
"maximum": 9007199254740991
|
|
40
|
+
},
|
|
41
|
+
"created_at": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"id",
|
|
47
|
+
"name",
|
|
48
|
+
"component_id",
|
|
49
|
+
"status",
|
|
50
|
+
"retention_days",
|
|
51
|
+
"created_at"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["collections"],
|
|
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": "data collections"
|
|
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 data collections --json"
|
|
102
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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": "data export"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"collection_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"format": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["csv", "ndjson", "json"]
|
|
24
|
+
},
|
|
25
|
+
"rows": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": -9007199254740991,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"out": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"excel": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": ["collection_id", "format", "rows", "out", "excel"],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["ok", "command", "data"],
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"ok": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"const": false
|
|
50
|
+
},
|
|
51
|
+
"command": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "data export"
|
|
54
|
+
},
|
|
55
|
+
"error": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"code": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"message": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"request_id": {
|
|
65
|
+
"type": ["string", "null"]
|
|
66
|
+
},
|
|
67
|
+
"exit_code": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"minimum": -9007199254740991,
|
|
70
|
+
"maximum": 9007199254740991
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": ["code", "message", "request_id", "exit_code"],
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": ["ok", "command", "error"],
|
|
78
|
+
"additionalProperties": false
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"title": "taggor data export --json"
|
|
82
|
+
}
|