@decantr/registry 1.0.0-beta.9 → 1.0.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,271 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://decantr.ai/schemas/common.v1.json",
4
+ "title": "Decantr Common Content Definitions",
5
+ "$defs": {
6
+ "nonEmptyString": {
7
+ "type": "string",
8
+ "minLength": 1
9
+ },
10
+ "nonEmptyStringArray": {
11
+ "type": "array",
12
+ "items": {
13
+ "$ref": "#/$defs/nonEmptyString"
14
+ }
15
+ },
16
+ "stringMap": {
17
+ "type": "object",
18
+ "additionalProperties": {
19
+ "$ref": "#/$defs/nonEmptyString"
20
+ }
21
+ },
22
+ "dependencyVersionMap": {
23
+ "type": "object",
24
+ "additionalProperties": {
25
+ "$ref": "#/$defs/nonEmptyString"
26
+ }
27
+ },
28
+ "patternRefObject": {
29
+ "type": "object",
30
+ "required": [
31
+ "pattern"
32
+ ],
33
+ "properties": {
34
+ "pattern": {
35
+ "$ref": "#/$defs/nonEmptyString"
36
+ },
37
+ "preset": {
38
+ "$ref": "#/$defs/nonEmptyString"
39
+ },
40
+ "as": {
41
+ "$ref": "#/$defs/nonEmptyString"
42
+ }
43
+ },
44
+ "additionalProperties": false
45
+ },
46
+ "patternReference": {
47
+ "anyOf": [
48
+ {
49
+ "$ref": "#/$defs/nonEmptyString"
50
+ },
51
+ {
52
+ "$ref": "#/$defs/patternRefObject"
53
+ }
54
+ ]
55
+ },
56
+ "layoutGroup": {
57
+ "type": "object",
58
+ "required": [
59
+ "cols"
60
+ ],
61
+ "properties": {
62
+ "cols": {
63
+ "type": "array",
64
+ "items": {
65
+ "$ref": "#/$defs/patternReference"
66
+ }
67
+ },
68
+ "at": {
69
+ "$ref": "#/$defs/nonEmptyString"
70
+ },
71
+ "span": {
72
+ "type": "object",
73
+ "additionalProperties": {
74
+ "type": "number"
75
+ }
76
+ }
77
+ },
78
+ "additionalProperties": false
79
+ },
80
+ "layoutItem": {
81
+ "anyOf": [
82
+ {
83
+ "$ref": "#/$defs/patternReference"
84
+ },
85
+ {
86
+ "$ref": "#/$defs/layoutGroup"
87
+ }
88
+ ]
89
+ },
90
+ "patternLayoutSpec": {
91
+ "type": "object",
92
+ "required": [
93
+ "layout",
94
+ "atoms"
95
+ ],
96
+ "properties": {
97
+ "layout": {
98
+ "$ref": "#/$defs/nonEmptyString"
99
+ },
100
+ "atoms": {
101
+ "$ref": "#/$defs/nonEmptyString"
102
+ },
103
+ "slots": {
104
+ "$ref": "#/$defs/stringMap"
105
+ }
106
+ },
107
+ "additionalProperties": true
108
+ },
109
+ "codeSpec": {
110
+ "type": "object",
111
+ "properties": {
112
+ "imports": {
113
+ "type": "string"
114
+ },
115
+ "example": {
116
+ "type": "string"
117
+ }
118
+ },
119
+ "additionalProperties": true
120
+ },
121
+ "themeRef": {
122
+ "type": "object",
123
+ "required": [
124
+ "id"
125
+ ],
126
+ "properties": {
127
+ "id": {
128
+ "$ref": "#/$defs/nonEmptyString"
129
+ },
130
+ "mode": {
131
+ "$ref": "#/$defs/nonEmptyString"
132
+ },
133
+ "shape": {
134
+ "$ref": "#/$defs/nonEmptyString"
135
+ }
136
+ },
137
+ "additionalProperties": false
138
+ },
139
+ "suggestedTheme": {
140
+ "type": "object",
141
+ "properties": {
142
+ "ids": {
143
+ "$ref": "#/$defs/nonEmptyStringArray"
144
+ },
145
+ "modes": {
146
+ "$ref": "#/$defs/nonEmptyStringArray"
147
+ },
148
+ "shapes": {
149
+ "$ref": "#/$defs/nonEmptyStringArray"
150
+ }
151
+ },
152
+ "additionalProperties": false
153
+ },
154
+ "seoHints": {
155
+ "type": "object",
156
+ "properties": {
157
+ "schema_org": {
158
+ "$ref": "#/$defs/nonEmptyStringArray"
159
+ },
160
+ "meta_priorities": {
161
+ "$ref": "#/$defs/nonEmptyStringArray"
162
+ }
163
+ },
164
+ "additionalProperties": true
165
+ },
166
+ "navigationHotkey": {
167
+ "type": "object",
168
+ "required": [
169
+ "key"
170
+ ],
171
+ "properties": {
172
+ "key": {
173
+ "$ref": "#/$defs/nonEmptyString"
174
+ },
175
+ "route": {
176
+ "$ref": "#/$defs/nonEmptyString"
177
+ },
178
+ "action": {
179
+ "$ref": "#/$defs/nonEmptyString"
180
+ },
181
+ "label": {
182
+ "$ref": "#/$defs/nonEmptyString"
183
+ }
184
+ },
185
+ "additionalProperties": false
186
+ },
187
+ "navigation": {
188
+ "type": "object",
189
+ "properties": {
190
+ "command_palette": {
191
+ "type": "boolean"
192
+ },
193
+ "hotkeys": {
194
+ "type": "array",
195
+ "items": {
196
+ "$ref": "#/$defs/navigationHotkey"
197
+ }
198
+ }
199
+ },
200
+ "additionalProperties": true
201
+ },
202
+ "voice": {
203
+ "type": "object",
204
+ "properties": {
205
+ "tone": {
206
+ "type": "string"
207
+ },
208
+ "cta_verbs": {
209
+ "$ref": "#/$defs/nonEmptyStringArray"
210
+ },
211
+ "avoid": {
212
+ "$ref": "#/$defs/nonEmptyStringArray"
213
+ },
214
+ "empty_states": {
215
+ "type": "string"
216
+ },
217
+ "errors": {
218
+ "type": "string"
219
+ },
220
+ "loading": {
221
+ "type": "string"
222
+ },
223
+ "metrics_format": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "additionalProperties": true
228
+ },
229
+ "classification": {
230
+ "type": "object",
231
+ "properties": {
232
+ "triggers": {
233
+ "type": "object",
234
+ "properties": {
235
+ "primary": {
236
+ "$ref": "#/$defs/nonEmptyStringArray"
237
+ },
238
+ "secondary": {
239
+ "$ref": "#/$defs/nonEmptyStringArray"
240
+ },
241
+ "negative": {
242
+ "$ref": "#/$defs/nonEmptyStringArray"
243
+ }
244
+ },
245
+ "required": [
246
+ "primary",
247
+ "secondary",
248
+ "negative"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ "implies": {
253
+ "$ref": "#/$defs/nonEmptyStringArray"
254
+ },
255
+ "weight": {
256
+ "type": "number"
257
+ },
258
+ "tier": {
259
+ "$ref": "#/$defs/nonEmptyString"
260
+ }
261
+ },
262
+ "required": [
263
+ "triggers",
264
+ "implies",
265
+ "weight",
266
+ "tier"
267
+ ],
268
+ "additionalProperties": true
269
+ }
270
+ }
271
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://decantr.ai/schemas/content-intelligence.v1.json",
4
+ "title": "Decantr Content Intelligence Metadata",
5
+ "type": "object",
6
+ "required": [
7
+ "source",
8
+ "verification_status",
9
+ "target_coverage",
10
+ "benchmark_confidence",
11
+ "confidence_tier",
12
+ "golden_usage",
13
+ "quality_score",
14
+ "confidence_score",
15
+ "recommended",
16
+ "evidence",
17
+ "recommendation_reasons",
18
+ "recommendation_blockers"
19
+ ],
20
+ "properties": {
21
+ "source": {
22
+ "enum": [
23
+ "authored",
24
+ "benchmark",
25
+ "hybrid"
26
+ ]
27
+ },
28
+ "verification_status": {
29
+ "enum": [
30
+ "unknown",
31
+ "pending",
32
+ "build-green",
33
+ "build-red",
34
+ "smoke-green",
35
+ "smoke-red"
36
+ ]
37
+ },
38
+ "last_verified_at": {
39
+ "type": [
40
+ "string",
41
+ "null"
42
+ ]
43
+ },
44
+ "target_coverage": {
45
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
46
+ },
47
+ "benchmark_confidence": {
48
+ "enum": [
49
+ "none",
50
+ "low",
51
+ "medium",
52
+ "high"
53
+ ]
54
+ },
55
+ "confidence_tier": {
56
+ "enum": [
57
+ "low",
58
+ "medium",
59
+ "high",
60
+ "verified"
61
+ ]
62
+ },
63
+ "golden_usage": {
64
+ "enum": [
65
+ "none",
66
+ "showcase",
67
+ "shortlisted"
68
+ ]
69
+ },
70
+ "quality_score": {
71
+ "type": [
72
+ "number",
73
+ "null"
74
+ ]
75
+ },
76
+ "confidence_score": {
77
+ "type": [
78
+ "number",
79
+ "null"
80
+ ]
81
+ },
82
+ "recommended": {
83
+ "type": "boolean"
84
+ },
85
+ "evidence": {
86
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
87
+ },
88
+ "recommendation_reasons": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "recommendation_blockers": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "string"
98
+ }
99
+ },
100
+ "benchmark": {
101
+ "type": "object",
102
+ "properties": {
103
+ "classification": {
104
+ "enum": [
105
+ "pending",
106
+ "A",
107
+ "B",
108
+ "C",
109
+ "D"
110
+ ]
111
+ },
112
+ "target": {
113
+ "type": [
114
+ "string",
115
+ "null"
116
+ ]
117
+ },
118
+ "drift_signal": {
119
+ "enum": [
120
+ "lower",
121
+ "moderate",
122
+ "elevated"
123
+ ]
124
+ },
125
+ "build_passed": {
126
+ "type": [
127
+ "boolean",
128
+ "null"
129
+ ]
130
+ },
131
+ "smoke_passed": {
132
+ "type": [
133
+ "boolean",
134
+ "null"
135
+ ]
136
+ }
137
+ },
138
+ "additionalProperties": false
139
+ }
140
+ },
141
+ "additionalProperties": false
142
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://decantr.ai/schemas/pattern.v2.json",
4
+ "title": "Decantr Pattern",
5
+ "type": "object",
6
+ "required": [
7
+ "$schema",
8
+ "id",
9
+ "version",
10
+ "name",
11
+ "description",
12
+ "components",
13
+ "default_preset",
14
+ "presets"
15
+ ],
16
+ "properties": {
17
+ "$schema": {
18
+ "const": "https://decantr.ai/schemas/pattern.v2.json"
19
+ },
20
+ "id": {
21
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
22
+ },
23
+ "version": {
24
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
25
+ },
26
+ "decantr_compat": {
27
+ "type": "string"
28
+ },
29
+ "name": {
30
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
31
+ },
32
+ "description": {
33
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
34
+ },
35
+ "tags": {
36
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
37
+ },
38
+ "dependencies": {
39
+ "type": "object",
40
+ "additionalProperties": true
41
+ },
42
+ "components": {
43
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
44
+ },
45
+ "default_preset": {
46
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
47
+ },
48
+ "presets": {
49
+ "type": "object",
50
+ "minProperties": 1,
51
+ "additionalProperties": {
52
+ "type": "object",
53
+ "required": [
54
+ "description",
55
+ "layout"
56
+ ],
57
+ "properties": {
58
+ "description": {
59
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyString"
60
+ },
61
+ "components": {
62
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
63
+ },
64
+ "layout": {
65
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/patternLayoutSpec"
66
+ },
67
+ "code": {
68
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/codeSpec"
69
+ }
70
+ },
71
+ "additionalProperties": true
72
+ }
73
+ },
74
+ "contained": {
75
+ "type": "boolean"
76
+ },
77
+ "io": {
78
+ "type": "object",
79
+ "properties": {
80
+ "produces": {
81
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
82
+ },
83
+ "consumes": {
84
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
85
+ },
86
+ "actions": {
87
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
88
+ }
89
+ },
90
+ "additionalProperties": true
91
+ },
92
+ "code": {
93
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/codeSpec"
94
+ },
95
+ "default_layout": {
96
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/patternLayoutSpec"
97
+ },
98
+ "visual_brief": {
99
+ "type": "string"
100
+ },
101
+ "composition": {
102
+ "type": "object",
103
+ "additionalProperties": {
104
+ "type": "string"
105
+ }
106
+ },
107
+ "motion": {
108
+ "type": "object",
109
+ "additionalProperties": true
110
+ },
111
+ "responsive": {
112
+ "type": "object",
113
+ "additionalProperties": {
114
+ "type": "string"
115
+ }
116
+ },
117
+ "accessibility": {
118
+ "type": "object",
119
+ "properties": {
120
+ "role": {
121
+ "type": "string"
122
+ },
123
+ "aria-label": {
124
+ "type": "string"
125
+ },
126
+ "keyboard": {
127
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
128
+ },
129
+ "announcements": {
130
+ "$ref": "https://decantr.ai/schemas/common.v1.json#/$defs/nonEmptyStringArray"
131
+ },
132
+ "focus_management": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ "additionalProperties": true
137
+ },
138
+ "layout_hints": {
139
+ "type": "object",
140
+ "additionalProperties": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ "category": {
145
+ "type": "string"
146
+ }
147
+ },
148
+ "additionalProperties": true
149
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://decantr.ai/schemas/public-content-list.v1.json",
4
+ "title": "Decantr Public Content List Response",
5
+ "type": "object",
6
+ "required": [
7
+ "items",
8
+ "total"
9
+ ],
10
+ "properties": {
11
+ "items": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "https://decantr.ai/schemas/public-content-summary.v1.json"
15
+ }
16
+ },
17
+ "total": {
18
+ "type": "number"
19
+ },
20
+ "limit": {
21
+ "type": "number"
22
+ },
23
+ "offset": {
24
+ "type": "number"
25
+ }
26
+ },
27
+ "additionalProperties": false
28
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://decantr.ai/schemas/public-content-record.v1.json",
4
+ "title": "Decantr Public Content Record",
5
+ "type": "object",
6
+ "required": [
7
+ "id",
8
+ "slug",
9
+ "namespace",
10
+ "type",
11
+ "version",
12
+ "data",
13
+ "visibility",
14
+ "status",
15
+ "created_at",
16
+ "updated_at"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "type": "string"
21
+ },
22
+ "slug": {
23
+ "type": "string"
24
+ },
25
+ "namespace": {
26
+ "type": "string"
27
+ },
28
+ "type": {
29
+ "type": "string"
30
+ },
31
+ "version": {
32
+ "type": "string"
33
+ },
34
+ "data": {
35
+ "type": "object",
36
+ "additionalProperties": true
37
+ },
38
+ "visibility": {
39
+ "enum": [
40
+ "public",
41
+ "private"
42
+ ]
43
+ },
44
+ "status": {
45
+ "enum": [
46
+ "pending",
47
+ "approved",
48
+ "rejected",
49
+ "published"
50
+ ]
51
+ },
52
+ "created_at": {
53
+ "type": "string"
54
+ },
55
+ "updated_at": {
56
+ "type": "string"
57
+ },
58
+ "published_at": {
59
+ "type": "string"
60
+ },
61
+ "owner_name": {
62
+ "type": [
63
+ "string",
64
+ "null"
65
+ ]
66
+ },
67
+ "owner_username": {
68
+ "type": [
69
+ "string",
70
+ "null"
71
+ ]
72
+ },
73
+ "thumbnail_url": {
74
+ "type": [
75
+ "string",
76
+ "null"
77
+ ]
78
+ },
79
+ "intelligence": {
80
+ "anyOf": [
81
+ {
82
+ "$ref": "https://decantr.ai/schemas/content-intelligence.v1.json"
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "additionalProperties": false
91
+ }