@agentproto/corpus-cli 0.11.6 → 0.11.8

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.
@@ -174,7 +174,7 @@
174
174
  "ref": {
175
175
  "type": "string",
176
176
  "minLength": 1,
177
- "description": "Ref to a published or local ROUTINE.md (AIP-41), e.g. \"@agentik/routines-standard/daily-9am-utc\"."
177
+ "description": "Ref to a published or local ROUTINE.md (AIP-41), e.g. \"@acme/routines-standard/daily-9am-utc\"."
178
178
  }
179
179
  }
180
180
  },
@@ -56,7 +56,7 @@
56
56
  "properties": {
57
57
  "handle": { "type": "string" },
58
58
  "kind": { "enum": ["personal", "brand"] },
59
- "owner": { "type": "string", "description": "Principal ref, e.g. user:jeremy. Whose account it is." }
59
+ "owner": { "type": "string", "description": "Principal ref, e.g. user:alice. Whose account it is." }
60
60
  }
61
61
  },
62
62
  "connection": {
@@ -178,7 +178,7 @@
178
178
  "additionalProperties": false,
179
179
  "properties": {
180
180
  "mode": { "$ref": "#/$defs/approvalMode" },
181
- "approver": { "type": "string", "description": "Principal ref, e.g. user:jeremy." }
181
+ "approver": { "type": "string", "description": "Principal ref, e.g. user:alice." }
182
182
  }
183
183
  },
184
184
  "gates": {
@@ -135,6 +135,17 @@
135
135
  }
136
136
  ]
137
137
  },
138
+ "access": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "properties": {
142
+ "remote": {
143
+ "type": "boolean",
144
+ "description": "false: never listed to, nor callable from, a paired device."
145
+ }
146
+ },
147
+ "description": "Who may open the app from another device."
148
+ },
138
149
  "ui": {
139
150
  "type": "object",
140
151
  "required": [
@@ -185,6 +196,63 @@
185
196
  }
186
197
  }
187
198
  },
199
+ "install": {
200
+ "type": "object",
201
+ "additionalProperties": false,
202
+ "description": "How the UI installs as a web app (see \"Installable UI\"). Refines the manifest the host derives; every field is optional.",
203
+ "properties": {
204
+ "shortName": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 12
208
+ },
209
+ "themeColor": {
210
+ "type": "string",
211
+ "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
212
+ },
213
+ "backgroundColor": {
214
+ "type": "string",
215
+ "pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
216
+ },
217
+ "display": {
218
+ "enum": [
219
+ "standalone",
220
+ "minimal-ui",
221
+ "browser"
222
+ ]
223
+ },
224
+ "icons": {
225
+ "type": "array",
226
+ "minItems": 1,
227
+ "maxItems": 8,
228
+ "items": {
229
+ "type": "object",
230
+ "required": [
231
+ "path"
232
+ ],
233
+ "additionalProperties": false,
234
+ "properties": {
235
+ "path": {
236
+ "type": "string",
237
+ "pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$)).+\\.(png|svg|webp)$",
238
+ "description": "Relative to the app dir, no `..` segment."
239
+ },
240
+ "sizes": {
241
+ "type": "string",
242
+ "pattern": "^(any|[0-9]+x[0-9]+( [0-9]+x[0-9]+)*)$"
243
+ },
244
+ "purpose": {
245
+ "enum": [
246
+ "any",
247
+ "maskable",
248
+ "monochrome"
249
+ ]
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ },
188
256
  "toolScope": {
189
257
  "type": "object",
190
258
  "additionalProperties": {
@@ -498,6 +566,32 @@
498
566
  "uniqueItems": true,
499
567
  "description": "Host directories the app is granted READ-ONLY access to outside its sandboxed dir (absolute or ~-relative). Carried verbatim in frontmatter by emit/load; validated to exist at install time. Read-only everywhere — there is no write/delete path for these roots."
500
568
  },
569
+ "boundaries": {
570
+ "type": "object",
571
+ "additionalProperties": false,
572
+ "description": "Filesystem boundary policy for sessions the app spawns (app_run, workflow agent steps). The host confines them to the app's zones: app dir read-only, run workspace and data dir writable, everything else denied, including the host repo the app is installed inside. The host repo's own config (.git, .gitignore, .claude/, .codex/, .mcp.json, CLAUDE.md, AGENTS.md at its root) stays readable, never writable. The hidden zone gates the working tree only: committed content is reachable through the readable .git. See AIP-53 § Session boundaries.",
573
+ "properties": {
574
+ "enforce": {
575
+ "type": "string",
576
+ "enum": [
577
+ "required",
578
+ "best-effort"
579
+ ],
580
+ "default": "best-effort",
581
+ "description": "required: refuse the spawn when the zones cannot be enforced on the chosen harness or platform. best-effort: spawn with an explicit warning."
582
+ },
583
+ "hostReads": {
584
+ "type": "array",
585
+ "maxItems": 64,
586
+ "uniqueItems": true,
587
+ "items": {
588
+ "type": "string",
589
+ "pattern": "^(?!/)(?!\\.?/*$)(?!\\s)(?!(?:.*/)?\\.\\.(?:/|$)).*\\S$"
590
+ },
591
+ "description": "Paths in the app's own host repo (the git repo whose working tree holds the app dir) its sessions may READ, relative to the host repo root, no '..' segment, not '.' itself: a sibling package's built CLI, a shared folder. The host resolves symlinks and refuses an entry that lands outside the host repo or names the whole repo; secret files inside an entry (.env, keys) stay masked. Never writable. Ignored when the app is not inside a git repo."
592
+ }
593
+ }
594
+ },
501
595
  "category": {
502
596
  "type": "string",
503
597
  "minLength": 1,
@@ -647,7 +741,7 @@
647
741
  "pattern": "^[a-z][a-z0-9]{1,15}_[a-zA-Z0-9-](?:[a-zA-Z0-9_-]*[a-zA-Z0-9-])?$"
648
742
  },
649
743
  "uniqueItems": true,
650
- "description": "Provider tools granted to this app's own agents: the MCP names the provider's `exposes.tools` entries compute (`<prefix>_<name>`, for example `bureau_navigate`). Each is granted at the access class the provider declares, as if every AGENT.md of this app had opted in to it by name. Omitted or empty means nothing is granted."
744
+ "description": "Provider tools granted to this app's own agents: the MCP names the provider's `exposes.tools` entries compute (`<prefix>_<name>`, for example `webpilot_navigate`). Each is granted at the access class the provider declares, as if every AGENT.md of this app had opted in to it by name. Omitted or empty means nothing is granted."
651
745
  }
652
746
  }
653
747
  }
@@ -364,7 +364,7 @@
364
364
  "description": "A host record of one account on one site in one profile (C17). It authorizes nothing: only grants do. It never holds a cookie, token or storage value (C9).",
365
365
  "required": ["id", "site", "profileRef", "session", "source", "grantIds"],
366
366
  "properties": {
367
- "id": { "type": "string", "minLength": 1, "description": "Stable name, for example linkedin-jeremy." },
367
+ "id": { "type": "string", "minLength": 1, "description": "Stable name, for example linkedin-alice." },
368
368
  "site": { "$ref": "#/$defs/domain" },
369
369
  "account": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Display name or address on the site. Personal data, not a secret." },
370
370
  "profileRef": { "type": "string", "minLength": 1, "description": "<instance>/<profile> the account lives in." },
@@ -85,7 +85,7 @@
85
85
  "minLength": 1
86
86
  },
87
87
  "default": [],
88
- "description": "Free-form labels. Scope anchors are carried here in their formatted form (e.g. 'global', 'project:acme', 'agent:assistant', 'pr:acme/app#42'). Two anchors tie an item to an AIP-34 tree and an AIP-9 operator: 'node:<id>' (the AIP-34 node id, e.g. 'node:@acme/agentik') scopes visibility, and 'operator:<id>' (e.g. 'operator:pm-demo') marks ownership and never widens visibility. An item carries at most one of each; the node projection and write rules are in AIP-72 section 10."
88
+ "description": "Free-form labels. Scope anchors are carried here in their formatted form (e.g. 'global', 'project:acme', 'agent:assistant', 'pr:acme/app#42'). Two anchors tie an item to an AIP-34 tree and an AIP-9 operator: 'node:<id>' (the AIP-34 node id, e.g. 'node:@acme/demo-app') scopes visibility, and 'operator:<id>' (e.g. 'operator:pm-demo') marks ownership and never widens visibility. An item carries at most one of each; the node projection and write rules are in AIP-72 section 10."
89
89
  },
90
90
  "polarity": {
91
91
  "enum": [
@@ -68,6 +68,27 @@
68
68
  "items": { "$ref": "#/$defs/partitionId" },
69
69
  "description": "Optional tie-break after the AIP-49 normative order."
70
70
  },
71
+ "usage": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "required": ["categories"],
75
+ "description": "Metered usage as data (rules 29 to 32 and 35). Which primitive a host calls (hold, debit, shadow) is the host's choice, not a field. A category never carries a rate: the anchor is the only place a rate is written, so a category with `rate`, `ratio` or `creditsPerUnit` is refused by this schema (rule 30). Values of `margin`, `marginFloor` and `floorMinor` are the host's, the AIP sets none. Cross-references (a fixed cost in a currency that is neither the anchor currency nor an fx key; `at-cost` with a marginFloor above 1; duplicate ids) belong to the parser.",
76
+ "properties": {
77
+ "defaults": {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "properties": {
81
+ "margin": { "type": "number", "exclusiveMinimum": 0 },
82
+ "floorMinor": { "type": "integer", "minimum": 0 }
83
+ }
84
+ },
85
+ "categories": {
86
+ "type": "array",
87
+ "minItems": 1,
88
+ "items": { "$ref": "#/$defs/usageCategory" }
89
+ }
90
+ }
91
+ },
71
92
  "taxBasis": {
72
93
  "enum": ["net", "gross"],
73
94
  "description": "Required by the parser when any conversion starts from fiat (rule 13)."
@@ -202,6 +223,39 @@
202
223
  },
203
224
  "$defs": {
204
225
  "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
226
+ "usageCategory": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": ["id", "cost"],
230
+ "properties": {
231
+ "id": { "$ref": "#/$defs/id" },
232
+ "match": {
233
+ "type": "object",
234
+ "additionalProperties": false,
235
+ "description": "Every given field must equal the event's. Of the categories that match, the one with the most fields wins (rule 29).",
236
+ "properties": {
237
+ "kind": { "type": "string", "minLength": 1 },
238
+ "model": { "type": "string", "minLength": 1 },
239
+ "channel": { "type": "string", "minLength": 1 },
240
+ "op": { "type": "string", "minLength": 1 }
241
+ }
242
+ },
243
+ "cost": {
244
+ "description": "Where the provider cost comes from (rule 29).",
245
+ "oneOf": [
246
+ { "type": "object", "additionalProperties": false, "required": ["source"], "properties": { "source": { "const": "measured" } } },
247
+ { "type": "object", "additionalProperties": false, "required": ["source"], "properties": { "source": { "const": "catalog" } } },
248
+ { "type": "object", "additionalProperties": false, "required": ["source", "amount", "currency"], "properties": { "source": { "const": "fixed" }, "amount": { "type": "number", "minimum": 0 }, "currency": { "$ref": "#/$defs/currency" } } }
249
+ ]
250
+ },
251
+ "margin": {
252
+ "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "const": "at-cost" }],
253
+ "description": "A multiplier on the cost, or `at-cost` (margin 1.0, nothing overrides it, rule 31)."
254
+ },
255
+ "marginFloor": { "type": "number", "exclusiveMinimum": 0, "description": "The lowest real margin (price / cost) the category may sell at (rule 35)." },
256
+ "floorMinor": { "type": "integer", "minimum": 0, "description": "Smallest charge per action, minor units of primaryAsset." }
257
+ }
258
+ },
205
259
  "featureId": {
206
260
  "type": "string",
207
261
  "pattern": "^[a-z][a-z0-9_-]*$",
@@ -427,6 +481,10 @@
427
481
  "$ref": "#/$defs/id",
428
482
  "description": "prepaid-pool only: the conversion the payment runs."
429
483
  },
484
+ "discounts": {
485
+ "enum": ["allow", "refuse"],
486
+ "description": "Whether a payment may carry a discount (coupon, promotion code): amount plus discount then equals the price. Absent means refuse."
487
+ },
430
488
  "includes": {
431
489
  "type": "array",
432
490
  "items": { "$ref": "#/$defs/include" },
@@ -443,7 +501,11 @@
443
501
  "description": "When the period's includes are given: at the payment date, or at the calendar period boundary."
444
502
  },
445
503
  "grace": { "$ref": "#/$defs/duration" },
446
- "onUpgrade": { "enum": ["none", "prorate"] }
504
+ "onUpgrade": { "enum": ["none", "prorate"] },
505
+ "trial": {
506
+ "$ref": "#/$defs/duration",
507
+ "description": "A free first period of this length: a zero payment opens it with the features and includes of the offer. Absent means a zero payment is refused."
508
+ }
447
509
  }
448
510
  },
449
511
  "rail": {
@@ -0,0 +1,95 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-79/actor.schema.json",
4
+ "title": "collect.actor/v1",
5
+ "description": "An author or submitter, with dated audience readings. Each reading has exactly one of value and unknown.",
6
+ "type": "object",
7
+ "properties": {
8
+ "ref": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "displayName": {
13
+ "type": "string"
14
+ },
15
+ "handle": {
16
+ "type": "string"
17
+ },
18
+ "profileUrl": {
19
+ "type": "string"
20
+ },
21
+ "accountCreatedAt": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string",
25
+ "format": "date",
26
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
27
+ },
28
+ {
29
+ "type": "string",
30
+ "format": "date-time",
31
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
32
+ }
33
+ ]
34
+ },
35
+ "verified": {
36
+ "type": "boolean"
37
+ },
38
+ "audience": {
39
+ "default": [],
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "properties": {
44
+ "measuredAt": {
45
+ "type": "string",
46
+ "format": "date-time",
47
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
48
+ },
49
+ "kind": {
50
+ "type": "string",
51
+ "enum": [
52
+ "followers",
53
+ "karma",
54
+ "subscribers"
55
+ ]
56
+ },
57
+ "value": {
58
+ "type": "number",
59
+ "minimum": 0
60
+ },
61
+ "rawValue": {
62
+ "type": "string"
63
+ },
64
+ "unknown": {
65
+ "type": "string",
66
+ "enum": [
67
+ "not_exposed",
68
+ "not_fetched",
69
+ "blocked"
70
+ ]
71
+ }
72
+ },
73
+ "required": [
74
+ "measuredAt",
75
+ "kind"
76
+ ],
77
+ "oneOf": [
78
+ {
79
+ "required": [
80
+ "value"
81
+ ]
82
+ },
83
+ {
84
+ "required": [
85
+ "unknown"
86
+ ]
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "ref"
94
+ ]
95
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/docs/aip-79/item.schema.json",
4
+ "title": "collect.item/v1",
5
+ "description": "One collected item (article, post, thread, submission, review, video or query result).",
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "source": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "sourceInstance": {
17
+ "type": "string"
18
+ },
19
+ "kind": {
20
+ "type": "string",
21
+ "enum": [
22
+ "article",
23
+ "post",
24
+ "thread",
25
+ "submission",
26
+ "review",
27
+ "video",
28
+ "query"
29
+ ]
30
+ },
31
+ "url": {
32
+ "type": "string"
33
+ },
34
+ "canonicalUrl": {
35
+ "type": "string"
36
+ },
37
+ "contentId": {
38
+ "type": "string"
39
+ },
40
+ "contentGroupId": {
41
+ "type": "string"
42
+ },
43
+ "subjects": {
44
+ "default": [],
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "label": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "provenance": {
54
+ "type": "string",
55
+ "enum": [
56
+ "query",
57
+ "source_tag",
58
+ "classifier"
59
+ ]
60
+ },
61
+ "classifier": {
62
+ "type": "object",
63
+ "properties": {
64
+ "name": {
65
+ "type": "string",
66
+ "minLength": 1
67
+ },
68
+ "version": {
69
+ "type": "string",
70
+ "minLength": 1
71
+ }
72
+ },
73
+ "required": [
74
+ "name",
75
+ "version"
76
+ ]
77
+ }
78
+ },
79
+ "required": [
80
+ "label",
81
+ "provenance"
82
+ ]
83
+ }
84
+ },
85
+ "title": {
86
+ "type": "string"
87
+ },
88
+ "text": {
89
+ "type": "string"
90
+ },
91
+ "textTruncated": {
92
+ "type": "boolean"
93
+ },
94
+ "language": {
95
+ "type": "string"
96
+ },
97
+ "wordCount": {
98
+ "type": "integer",
99
+ "minimum": 0,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "format": {
103
+ "type": "string"
104
+ },
105
+ "authorRef": {
106
+ "type": "string"
107
+ },
108
+ "submitterRef": {
109
+ "type": "string"
110
+ },
111
+ "publishedAt": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string",
115
+ "format": "date",
116
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
117
+ },
118
+ {
119
+ "type": "string",
120
+ "format": "date-time",
121
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
122
+ }
123
+ ]
124
+ },
125
+ "postedAt": {
126
+ "anyOf": [
127
+ {
128
+ "type": "string",
129
+ "format": "date",
130
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
131
+ },
132
+ {
133
+ "type": "string",
134
+ "format": "date-time",
135
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
136
+ }
137
+ ]
138
+ },
139
+ "firstSeenAt": {
140
+ "type": "string",
141
+ "format": "date-time",
142
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
143
+ },
144
+ "links": {
145
+ "type": "object",
146
+ "properties": {
147
+ "target": {
148
+ "type": "string"
149
+ },
150
+ "parent": {
151
+ "type": "string"
152
+ },
153
+ "root": {
154
+ "type": "string"
155
+ },
156
+ "quoted": {
157
+ "type": "string"
158
+ }
159
+ }
160
+ },
161
+ "outboundLinks": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ "parts": {
168
+ "type": "array",
169
+ "items": {
170
+ "type": "object",
171
+ "properties": {
172
+ "id": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ },
176
+ "text": {
177
+ "type": "string"
178
+ },
179
+ "authorRef": {
180
+ "type": "string"
181
+ },
182
+ "postedAt": {
183
+ "anyOf": [
184
+ {
185
+ "type": "string",
186
+ "format": "date",
187
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
188
+ },
189
+ {
190
+ "type": "string",
191
+ "format": "date-time",
192
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ "required": [
198
+ "id",
199
+ "text"
200
+ ]
201
+ }
202
+ },
203
+ "tags": {
204
+ "type": "array",
205
+ "items": {
206
+ "type": "string"
207
+ }
208
+ },
209
+ "hasMedia": {
210
+ "type": "boolean"
211
+ },
212
+ "query": {
213
+ "type": "string"
214
+ },
215
+ "runId": {
216
+ "type": "string"
217
+ },
218
+ "rawRefs": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string"
222
+ }
223
+ },
224
+ "ext": {
225
+ "type": "object",
226
+ "propertyNames": {
227
+ "type": "string"
228
+ },
229
+ "additionalProperties": {}
230
+ }
231
+ },
232
+ "required": [
233
+ "id",
234
+ "source",
235
+ "kind",
236
+ "firstSeenAt"
237
+ ]
238
+ }