@agentique.io/schemas 0.1.0 → 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,343 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.agentique.io/registry-trust.schema.json",
4
+ "title": "Agentique Public Registry Trust Contracts",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["contractVersion"],
8
+ "properties": {
9
+ "contractVersion": {
10
+ "type": "string",
11
+ "const": "1.0"
12
+ },
13
+ "creatorMetadata": {
14
+ "$ref": "#/$defs/creatorMetadata"
15
+ },
16
+ "packageContext": {
17
+ "$ref": "#/$defs/packageContext"
18
+ },
19
+ "desiredState": {
20
+ "$ref": "#/$defs/desiredState"
21
+ },
22
+ "scannerPolicy": {
23
+ "$ref": "#/$defs/scannerPolicy"
24
+ },
25
+ "reviewEligibility": {
26
+ "$ref": "#/$defs/reviewEligibility"
27
+ },
28
+ "creatorCheckpoints": {
29
+ "$ref": "#/$defs/creatorCheckpoints"
30
+ },
31
+ "generatedDraft": {
32
+ "$ref": "#/$defs/generatedDraft"
33
+ },
34
+ "patchDelta": {
35
+ "$ref": "#/$defs/patchDelta"
36
+ },
37
+ "platformProjection": {
38
+ "$ref": "#/$defs/platformProjection"
39
+ }
40
+ },
41
+ "$defs": {
42
+ "fingerprint": {
43
+ "type": "string",
44
+ "pattern": "^sha256:[a-f0-9]{64}$"
45
+ },
46
+ "reasonCode": {
47
+ "type": "string",
48
+ "minLength": 3,
49
+ "maxLength": 80,
50
+ "pattern": "^[a-z0-9][a-z0-9._-]*$"
51
+ },
52
+ "httpsUrl": {
53
+ "type": "string",
54
+ "format": "uri",
55
+ "pattern": "^https://"
56
+ },
57
+ "creatorMetadata": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": ["declaredBy", "declaredAt"],
61
+ "properties": {
62
+ "declaredBy": {
63
+ "type": "string",
64
+ "minLength": 3,
65
+ "maxLength": 80,
66
+ "pattern": "^[a-z0-9][a-z0-9._-]*$"
67
+ },
68
+ "declaredAt": {
69
+ "type": "string",
70
+ "format": "date-time"
71
+ },
72
+ "notes": {
73
+ "type": "string",
74
+ "minLength": 12,
75
+ "maxLength": 400
76
+ }
77
+ }
78
+ },
79
+ "packageContext": {
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "required": ["packageName", "version", "sourceUrl"],
83
+ "properties": {
84
+ "packageName": {
85
+ "type": "string",
86
+ "minLength": 2,
87
+ "maxLength": 120,
88
+ "pattern": "^(?:@[a-z0-9][a-z0-9._-]*/)?[a-z0-9][a-z0-9._-]*$"
89
+ },
90
+ "version": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 80,
94
+ "pattern": "^[0-9A-Za-z][0-9A-Za-z.+_-]*$"
95
+ },
96
+ "sourceUrl": {
97
+ "$ref": "#/$defs/httpsUrl"
98
+ },
99
+ "ownershipEvidenceVersion": {
100
+ "type": "string",
101
+ "minLength": 3,
102
+ "maxLength": 80,
103
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
104
+ },
105
+ "packageDigest": {
106
+ "$ref": "#/$defs/fingerprint"
107
+ }
108
+ }
109
+ },
110
+ "desiredState": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "required": ["fingerprint", "readbackState"],
114
+ "properties": {
115
+ "fingerprint": {
116
+ "$ref": "#/$defs/fingerprint"
117
+ },
118
+ "readbackState": {
119
+ "type": "string",
120
+ "enum": ["unchanged", "stale", "rescan-required", "review-required"]
121
+ },
122
+ "contentHash": {
123
+ "$ref": "#/$defs/fingerprint"
124
+ },
125
+ "scannerPolicyVersion": {
126
+ "type": "string",
127
+ "minLength": 3,
128
+ "maxLength": 80,
129
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
130
+ },
131
+ "reasons": {
132
+ "type": "array",
133
+ "maxItems": 12,
134
+ "uniqueItems": true,
135
+ "items": {
136
+ "$ref": "#/$defs/reasonCode"
137
+ }
138
+ }
139
+ }
140
+ },
141
+ "scannerPolicy": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": ["policyVersion"],
145
+ "properties": {
146
+ "policyVersion": {
147
+ "type": "string",
148
+ "minLength": 3,
149
+ "maxLength": 80,
150
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
151
+ },
152
+ "analyzerManifestVersion": {
153
+ "type": "string",
154
+ "minLength": 3,
155
+ "maxLength": 80,
156
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
157
+ },
158
+ "ruleManifestVersion": {
159
+ "type": "string",
160
+ "minLength": 3,
161
+ "maxLength": 80,
162
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
163
+ },
164
+ "freshness": {
165
+ "type": "string",
166
+ "enum": ["current", "stale", "rescan-required", "unknown"]
167
+ }
168
+ }
169
+ },
170
+ "reviewEligibility": {
171
+ "type": "object",
172
+ "additionalProperties": false,
173
+ "required": ["state"],
174
+ "properties": {
175
+ "state": {
176
+ "type": "string",
177
+ "enum": ["eligible", "needs-evidence", "creator-blocked", "blocked", "unknown"]
178
+ },
179
+ "evidenceTypes": {
180
+ "type": "array",
181
+ "maxItems": 10,
182
+ "uniqueItems": true,
183
+ "items": {
184
+ "type": "string",
185
+ "enum": [
186
+ "download",
187
+ "cli-install",
188
+ "hosted-demo-use",
189
+ "external-endpoint-use",
190
+ "collection-maintainer",
191
+ "moderator-issued",
192
+ "existing-primary-review"
193
+ ]
194
+ }
195
+ },
196
+ "reasons": {
197
+ "type": "array",
198
+ "maxItems": 12,
199
+ "uniqueItems": true,
200
+ "items": {
201
+ "$ref": "#/$defs/reasonCode"
202
+ }
203
+ }
204
+ }
205
+ },
206
+ "creatorCheckpoint": {
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": ["kind", "acknowledged"],
210
+ "properties": {
211
+ "kind": {
212
+ "type": "string",
213
+ "enum": [
214
+ "lane-selection",
215
+ "source-upload",
216
+ "manifest-inspection",
217
+ "scan-ownership-evidence",
218
+ "data-flow-disclosure",
219
+ "card-fields",
220
+ "public-draft-preview",
221
+ "review-only-confirmation",
222
+ "readback-acknowledgement"
223
+ ]
224
+ },
225
+ "acknowledged": {
226
+ "type": "boolean",
227
+ "const": true
228
+ },
229
+ "completedAt": {
230
+ "type": "string",
231
+ "format": "date-time"
232
+ },
233
+ "evidenceHash": {
234
+ "$ref": "#/$defs/fingerprint"
235
+ }
236
+ }
237
+ },
238
+ "creatorCheckpoints": {
239
+ "type": "array",
240
+ "minItems": 1,
241
+ "maxItems": 9,
242
+ "items": {
243
+ "$ref": "#/$defs/creatorCheckpoint"
244
+ }
245
+ },
246
+ "generatedDraft": {
247
+ "type": "object",
248
+ "additionalProperties": false,
249
+ "required": ["draftOnly", "kind", "generatedAt"],
250
+ "properties": {
251
+ "draftOnly": {
252
+ "type": "boolean",
253
+ "const": true
254
+ },
255
+ "kind": {
256
+ "type": "string",
257
+ "enum": ["card", "manifest"]
258
+ },
259
+ "generatedAt": {
260
+ "type": "string",
261
+ "format": "date-time"
262
+ },
263
+ "schemaVersion": {
264
+ "type": "string",
265
+ "minLength": 3,
266
+ "maxLength": 80,
267
+ "pattern": "^[a-z0-9][a-z0-9._:-]*$"
268
+ },
269
+ "summary": {
270
+ "type": "string",
271
+ "minLength": 12,
272
+ "maxLength": 240
273
+ }
274
+ }
275
+ },
276
+ "patchDelta": {
277
+ "type": "object",
278
+ "additionalProperties": false,
279
+ "required": ["mode", "operations"],
280
+ "properties": {
281
+ "mode": {
282
+ "type": "string",
283
+ "enum": ["patch", "delta"]
284
+ },
285
+ "operations": {
286
+ "type": "array",
287
+ "minItems": 1,
288
+ "maxItems": 30,
289
+ "items": {
290
+ "type": "object",
291
+ "additionalProperties": false,
292
+ "required": ["op", "path"],
293
+ "properties": {
294
+ "op": {
295
+ "type": "string",
296
+ "enum": ["add", "replace", "remove"]
297
+ },
298
+ "path": {
299
+ "type": "string",
300
+ "minLength": 1,
301
+ "maxLength": 160,
302
+ "pattern": "^/[A-Za-z0-9_/-]+$"
303
+ },
304
+ "valueSummary": {
305
+ "type": "string",
306
+ "minLength": 1,
307
+ "maxLength": 160
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+ },
314
+ "platformProjection": {
315
+ "type": "object",
316
+ "additionalProperties": false,
317
+ "required": ["source", "publicationState"],
318
+ "properties": {
319
+ "source": {
320
+ "type": "string",
321
+ "const": "agentique.io"
322
+ },
323
+ "publicationState": {
324
+ "type": "string",
325
+ "enum": ["draft", "review-required", "published", "blocked", "unavailable", "stale"]
326
+ },
327
+ "currentVersion": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "maxLength": 80
331
+ },
332
+ "observedAt": {
333
+ "type": "string",
334
+ "format": "date-time"
335
+ },
336
+ "publishedAt": {
337
+ "type": "string",
338
+ "format": "date-time"
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
@@ -52,6 +52,30 @@
52
52
  },
53
53
  "permissionRisk": {
54
54
  "$ref": "https://schemas.agentique.io/permission-risk.schema.json"
55
+ },
56
+ "parserVariant": {
57
+ "$ref": "https://schemas.agentique.io/parser-variant.schema.json#/$defs/parserVariantMetadata"
58
+ },
59
+ "registryTrust": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "creatorMetadata": {
64
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/creatorMetadata"
65
+ },
66
+ "packageContext": {
67
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/packageContext"
68
+ },
69
+ "creatorCheckpoints": {
70
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/creatorCheckpoints"
71
+ },
72
+ "generatedDraft": {
73
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/generatedDraft"
74
+ },
75
+ "patchDelta": {
76
+ "$ref": "https://schemas.agentique.io/registry-trust.schema.json#/$defs/patchDelta"
77
+ }
78
+ }
55
79
  }
56
80
  }
57
81
  }