@taggor/contract 0.4.0 → 0.6.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.
Files changed (267) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/artifact-keys.d.ts +11 -11
  3. package/dist/artifact-keys.d.ts.map +1 -1
  4. package/dist/artifact-keys.js +11 -11
  5. package/dist/artifact-keys.js.map +1 -1
  6. package/dist/assets.d.ts +5 -5
  7. package/dist/assets.js +5 -5
  8. package/dist/bounded-path.d.ts +2 -2
  9. package/dist/bounded-path.js +2 -2
  10. package/dist/bounded.d.ts +2 -2
  11. package/dist/bounded.js +2 -2
  12. package/dist/build-diagnostic.d.ts +5 -5
  13. package/dist/build-diagnostic.js +5 -5
  14. package/dist/component-types.d.ts +7 -7
  15. package/dist/component-types.js +4 -4
  16. package/dist/component-types.js.map +1 -1
  17. package/dist/contract-version.d.ts +17 -12
  18. package/dist/contract-version.d.ts.map +1 -1
  19. package/dist/contract-version.js +24 -17
  20. package/dist/contract-version.js.map +1 -1
  21. package/dist/credential-fields.d.ts +1 -1
  22. package/dist/credential-fields.js +1 -1
  23. package/dist/css-tokens.d.ts +1 -1
  24. package/dist/css-tokens.js +1 -1
  25. package/dist/css-value.d.ts +4 -4
  26. package/dist/css-value.js +4 -4
  27. package/dist/data-api.d.ts +14 -44
  28. package/dist/data-api.d.ts.map +1 -1
  29. package/dist/data-api.js +20 -54
  30. package/dist/data-api.js.map +1 -1
  31. package/dist/denylist-keys.d.ts +1 -1
  32. package/dist/denylist-keys.js +4 -4
  33. package/dist/diagnostic-catalog.d.ts +63 -89
  34. package/dist/diagnostic-catalog.d.ts.map +1 -1
  35. package/dist/diagnostic-catalog.js +63 -87
  36. package/dist/diagnostic-catalog.js.map +1 -1
  37. package/dist/dom-members.snapshot.d.ts +4 -4
  38. package/dist/dom-members.snapshot.js +8 -8
  39. package/dist/early-loading.d.ts +1 -1
  40. package/dist/early-loading.js +1 -1
  41. package/dist/error-catalog.d.ts +81 -7
  42. package/dist/error-catalog.d.ts.map +1 -1
  43. package/dist/error-catalog.js +121 -51
  44. package/dist/error-catalog.js.map +1 -1
  45. package/dist/error-titles-pt-br.d.ts +13 -0
  46. package/dist/error-titles-pt-br.d.ts.map +1 -0
  47. package/dist/error-titles-pt-br.js +99 -0
  48. package/dist/error-titles-pt-br.js.map +1 -0
  49. package/dist/event-params.d.ts +41 -0
  50. package/dist/event-params.d.ts.map +1 -0
  51. package/dist/event-params.js +92 -0
  52. package/dist/event-params.js.map +1 -0
  53. package/dist/executable-config.d.ts +1 -1
  54. package/dist/freeze.d.ts +2 -2
  55. package/dist/freeze.js +2 -2
  56. package/dist/gunzip.d.ts +3 -3
  57. package/dist/gunzip.js +4 -4
  58. package/dist/gunzip.js.map +1 -1
  59. package/dist/hostname.d.ts +5 -6
  60. package/dist/hostname.d.ts.map +1 -1
  61. package/dist/hostname.js +7 -8
  62. package/dist/hostname.js.map +1 -1
  63. package/dist/human-actions.d.ts +3 -3
  64. package/dist/index.d.ts +11 -8
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +11 -8
  67. package/dist/index.js.map +1 -1
  68. package/dist/json-schema.d.ts +15 -15
  69. package/dist/json-schema.d.ts.map +1 -1
  70. package/dist/json-schema.js +20 -28
  71. package/dist/json-schema.js.map +1 -1
  72. package/dist/key-checksum.d.ts +1 -1
  73. package/dist/key-checksum.js +1 -1
  74. package/dist/libraries.d.ts +4 -4
  75. package/dist/libraries.d.ts.map +1 -1
  76. package/dist/libraries.js +4 -4
  77. package/dist/libraries.js.map +1 -1
  78. package/dist/limit-catalog.d.ts +19 -40
  79. package/dist/limit-catalog.d.ts.map +1 -1
  80. package/dist/limit-catalog.js +34 -55
  81. package/dist/limit-catalog.js.map +1 -1
  82. package/dist/limits.d.ts +22 -34
  83. package/dist/limits.d.ts.map +1 -1
  84. package/dist/limits.js +23 -35
  85. package/dist/limits.js.map +1 -1
  86. package/dist/locale-tag.d.ts +3 -3
  87. package/dist/locale-tag.js +3 -3
  88. package/dist/make-diagnostic.d.ts +2 -3
  89. package/dist/make-diagnostic.d.ts.map +1 -1
  90. package/dist/make-diagnostic.js.map +1 -1
  91. package/dist/manifest-compat-diagnostics.d.ts +1 -1
  92. package/dist/manifest-compat.js +1 -1
  93. package/dist/manifest.d.ts +44 -24
  94. package/dist/manifest.d.ts.map +1 -1
  95. package/dist/manifest.js +41 -61
  96. package/dist/manifest.js.map +1 -1
  97. package/dist/metering.d.ts +33 -21
  98. package/dist/metering.d.ts.map +1 -1
  99. package/dist/metering.js +33 -21
  100. package/dist/metering.js.map +1 -1
  101. package/dist/migrate.d.ts +1 -1
  102. package/dist/migrate.js +5 -5
  103. package/dist/migrate.js.map +1 -1
  104. package/dist/money.d.ts +2 -2
  105. package/dist/money.js +2 -2
  106. package/dist/names.d.ts +4 -4
  107. package/dist/names.js +4 -4
  108. package/dist/overage-pricing.d.ts +1 -1
  109. package/dist/overage-pricing.js +1 -1
  110. package/dist/plan-ids.d.ts +1 -1
  111. package/dist/plan-ids.js +1 -1
  112. package/dist/plan-limits.d.ts +13 -13
  113. package/dist/plan-limits.d.ts.map +1 -1
  114. package/dist/plan-limits.js +8 -8
  115. package/dist/plan-limits.js.map +1 -1
  116. package/dist/plan-pricing.d.ts +33 -62
  117. package/dist/plan-pricing.d.ts.map +1 -1
  118. package/dist/plan-pricing.js +20 -67
  119. package/dist/plan-pricing.js.map +1 -1
  120. package/dist/plan-usage.d.ts +18 -18
  121. package/dist/plan-usage.d.ts.map +1 -1
  122. package/dist/plan-usage.js +19 -20
  123. package/dist/plan-usage.js.map +1 -1
  124. package/dist/preview-token.js +2 -2
  125. package/dist/prop-names.d.ts +5 -5
  126. package/dist/prop-names.d.ts.map +1 -1
  127. package/dist/prop-names.js +10 -10
  128. package/dist/prop-names.js.map +1 -1
  129. package/dist/prop-type-docs.js +1 -1
  130. package/dist/prop-types.d.ts +6 -6
  131. package/dist/prop-types.js +16 -16
  132. package/dist/prop-types.js.map +1 -1
  133. package/dist/props.d.ts +5 -5
  134. package/dist/props.js +6 -6
  135. package/dist/props.js.map +1 -1
  136. package/dist/proto-guard.js +3 -3
  137. package/dist/proto-guard.js.map +1 -1
  138. package/dist/runtime-errors.d.ts +2 -2
  139. package/dist/runtime-errors.js +2 -2
  140. package/dist/runtime-pointers.d.ts +2 -2
  141. package/dist/runtime-pointers.js +2 -2
  142. package/{schema → dist/schema}/component-manifest.v1.json +7 -14
  143. package/{schema → dist/schema}/data-api.v1.json +4 -39
  144. package/dist/secret-scan.d.ts +10 -10
  145. package/dist/secret-scan.d.ts.map +1 -1
  146. package/dist/secret-scan.js +15 -16
  147. package/dist/secret-scan.js.map +1 -1
  148. package/dist/semver.d.ts +2 -2
  149. package/dist/semver.js +2 -2
  150. package/dist/server-key.js +1 -1
  151. package/dist/site-manifest-keys.d.ts +11 -11
  152. package/dist/site-manifest-keys.d.ts.map +1 -1
  153. package/dist/site-manifest-keys.js +18 -18
  154. package/dist/site-manifest-keys.js.map +1 -1
  155. package/dist/site-manifest.d.ts +3 -10
  156. package/dist/site-manifest.d.ts.map +1 -1
  157. package/dist/site-manifest.js +12 -15
  158. package/dist/site-manifest.js.map +1 -1
  159. package/dist/source-archive.d.ts +13 -13
  160. package/dist/source-archive.js +25 -25
  161. package/dist/source-archive.js.map +1 -1
  162. package/dist/source-package-corpus.d.ts +3 -4
  163. package/dist/source-package-corpus.d.ts.map +1 -1
  164. package/dist/source-package-corpus.js +4 -6
  165. package/dist/source-package-corpus.js.map +1 -1
  166. package/dist/source-package.d.ts +17 -17
  167. package/dist/source-package.d.ts.map +1 -1
  168. package/dist/source-package.js +15 -15
  169. package/dist/source-package.js.map +1 -1
  170. package/dist/source-secrets.js +1 -1
  171. package/dist/ssr-cap.d.ts +2 -2
  172. package/dist/ssr-cap.d.ts.map +1 -1
  173. package/dist/ssr-cap.js +4 -4
  174. package/dist/ssr-kv.d.ts +1 -1
  175. package/dist/ssr-kv.js +1 -1
  176. package/dist/ssr-render.d.ts +2 -2
  177. package/dist/ssr-render.d.ts.map +1 -1
  178. package/dist/ssr-render.js +3 -3
  179. package/dist/ssr-render.js.map +1 -1
  180. package/dist/ssr-version-ledger.js +3 -3
  181. package/dist/style-references.d.ts +2 -3
  182. package/dist/style-references.d.ts.map +1 -1
  183. package/dist/style-references.js +10 -11
  184. package/dist/style-references.js.map +1 -1
  185. package/dist/support-contact.d.ts +11 -0
  186. package/dist/support-contact.d.ts.map +1 -0
  187. package/dist/support-contact.js +11 -0
  188. package/dist/support-contact.js.map +1 -0
  189. package/dist/tag-name.d.ts +6 -6
  190. package/dist/tag-name.d.ts.map +1 -1
  191. package/dist/tag-name.js +7 -7
  192. package/dist/tag-name.js.map +1 -1
  193. package/dist/tar-writer.js +1 -1
  194. package/dist/testing.d.ts +1 -1
  195. package/dist/testing.js +1 -1
  196. package/dist/text-codec.d.ts +2 -2
  197. package/dist/text-codec.js +2 -2
  198. package/dist/url-value.d.ts +1 -1
  199. package/dist/url-value.d.ts.map +1 -1
  200. package/dist/url-value.js +7 -7
  201. package/dist/url-value.js.map +1 -1
  202. package/dist/usage-guard.d.ts +16 -16
  203. package/dist/usage-guard.js +15 -15
  204. package/dist/usage-mirror.d.ts +5 -5
  205. package/dist/value-check.d.ts +6 -6
  206. package/dist/value-check.js +20 -20
  207. package/dist/value-check.js.map +1 -1
  208. package/dist/value-patterns.js +2 -2
  209. package/dist/value-schema.d.ts +3 -3
  210. package/dist/value-schema.d.ts.map +1 -1
  211. package/dist/value-schema.js +4 -4
  212. package/dist/value-schema.js.map +1 -1
  213. package/dist/zod-free.d.ts +25 -25
  214. package/dist/zod-free.d.ts.map +1 -1
  215. package/dist/zod-free.js +26 -26
  216. package/dist/zod-free.js.map +1 -1
  217. package/package.json +9 -10
  218. package/dist/consent-text.d.ts +0 -31
  219. package/dist/consent-text.d.ts.map +0 -1
  220. package/dist/consent-text.js +0 -41
  221. package/dist/consent-text.js.map +0 -1
  222. package/schema/DEPLOYED +0 -12
  223. package/schema/published/SHA256SUMS +0 -41
  224. package/schema/published/build-diagnostic/v1.10.json +0 -83
  225. package/schema/published/build-diagnostic/v1.11.json +0 -83
  226. package/schema/published/build-diagnostic/v1.3.json +0 -83
  227. package/schema/published/build-diagnostic/v1.4.json +0 -83
  228. package/schema/published/build-diagnostic/v1.5.json +0 -83
  229. package/schema/published/build-diagnostic/v1.6.json +0 -83
  230. package/schema/published/build-diagnostic/v1.7.json +0 -83
  231. package/schema/published/build-diagnostic/v1.8.json +0 -83
  232. package/schema/published/build-diagnostic/v1.9.json +0 -83
  233. package/schema/published/component-manifest/v1.10.json +0 -1443
  234. package/schema/published/component-manifest/v1.11.json +0 -1443
  235. package/schema/published/component-manifest/v1.3.json +0 -1411
  236. package/schema/published/component-manifest/v1.4.json +0 -1419
  237. package/schema/published/component-manifest/v1.5.json +0 -1437
  238. package/schema/published/component-manifest/v1.6.json +0 -1437
  239. package/schema/published/component-manifest/v1.7.json +0 -1437
  240. package/schema/published/component-manifest/v1.8.json +0 -1437
  241. package/schema/published/component-manifest/v1.9.json +0 -1437
  242. package/schema/published/data-api/v1.10.json +0 -282
  243. package/schema/published/data-api/v1.11.json +0 -282
  244. package/schema/published/data-api/v1.3.json +0 -281
  245. package/schema/published/data-api/v1.4.json +0 -281
  246. package/schema/published/data-api/v1.5.json +0 -281
  247. package/schema/published/data-api/v1.6.json +0 -281
  248. package/schema/published/data-api/v1.7.json +0 -281
  249. package/schema/published/data-api/v1.8.json +0 -282
  250. package/schema/published/data-api/v1.9.json +0 -282
  251. package/schema/published/library-manifest/v1.10.json +0 -68
  252. package/schema/published/library-manifest/v1.11.json +0 -68
  253. package/schema/published/library-manifest/v1.5.json +0 -68
  254. package/schema/published/library-manifest/v1.6.json +0 -68
  255. package/schema/published/library-manifest/v1.7.json +0 -68
  256. package/schema/published/library-manifest/v1.8.json +0 -68
  257. package/schema/published/library-manifest/v1.9.json +0 -68
  258. package/schema/published/taggor-config/v1.10.json +0 -56
  259. package/schema/published/taggor-config/v1.11.json +0 -56
  260. package/schema/published/taggor-config/v1.5.json +0 -56
  261. package/schema/published/taggor-config/v1.6.json +0 -56
  262. package/schema/published/taggor-config/v1.7.json +0 -56
  263. package/schema/published/taggor-config/v1.8.json +0 -56
  264. package/schema/published/taggor-config/v1.9.json +0 -56
  265. /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
  266. /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
  267. /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
@@ -1,1419 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://taggor.app/schema/component-manifest/v1.json",
4
- "type": "object",
5
- "properties": {
6
- "contractVersion": {
7
- "type": "string",
8
- "pattern": "^1\\.(?:0|1|2|3|4)\\.(?:0|[1-9]\\d{0,5})$"
9
- },
10
- "name": {
11
- "$ref": "#/$defs/ComponentName"
12
- },
13
- "tag": {
14
- "$ref": "#/$defs/TagName"
15
- },
16
- "title": {
17
- "type": "string",
18
- "minLength": 1,
19
- "maxLength": 80,
20
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
21
- },
22
- "description": {
23
- "type": "string",
24
- "minLength": 1,
25
- "maxLength": 500,
26
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
27
- },
28
- "props": {
29
- "type": "object",
30
- "propertyNames": {
31
- "$ref": "#/$defs/PropName"
32
- },
33
- "additionalProperties": {
34
- "$ref": "#/$defs/PropDeclaration"
35
- },
36
- "maxProperties": 50
37
- },
38
- "events": {
39
- "type": "object",
40
- "propertyNames": {
41
- "$ref": "#/$defs/MemberName"
42
- },
43
- "additionalProperties": {
44
- "$ref": "#/$defs/EventDeclaration"
45
- },
46
- "maxProperties": 20
47
- },
48
- "slots": {
49
- "type": "object",
50
- "propertyNames": {
51
- "$ref": "#/$defs/MemberName"
52
- },
53
- "additionalProperties": {
54
- "$ref": "#/$defs/SlotDeclaration"
55
- },
56
- "maxProperties": 10
57
- },
58
- "parts": {
59
- "type": "object",
60
- "propertyNames": {
61
- "$ref": "#/$defs/MemberName"
62
- },
63
- "additionalProperties": {
64
- "$ref": "#/$defs/PartDeclaration"
65
- },
66
- "maxProperties": 30
67
- },
68
- "cssVars": {
69
- "type": "object",
70
- "propertyNames": {
71
- "$ref": "#/$defs/CssVarName"
72
- },
73
- "additionalProperties": {
74
- "$ref": "#/$defs/CssVarDeclaration"
75
- },
76
- "maxProperties": 30
77
- },
78
- "data": {
79
- "$ref": "#/$defs/DataDeclaration"
80
- },
81
- "size": {
82
- "$ref": "#/$defs/SizeHints"
83
- },
84
- "permissions": {
85
- "$ref": "#/$defs/Permissions"
86
- },
87
- "locales": {
88
- "$ref": "#/$defs/LocalesDeclaration"
89
- },
90
- "assets": {
91
- "type": "object",
92
- "propertyNames": {
93
- "type": "string",
94
- "maxLength": 64,
95
- "pattern": "^[0-9a-f]{64}$"
96
- },
97
- "additionalProperties": {
98
- "$ref": "#/$defs/AssetDeclaration"
99
- },
100
- "maxProperties": 50
101
- },
102
- "formAssociated": {
103
- "description": "True for a form field component (TAG-314): the element is form-associated, submits the value the component sets under its name attribute, takes part in the form's validation, reset and disabled state, and delegates focus unless delegatesFocus is false. Defaults to false.",
104
- "type": "boolean"
105
- },
106
- "delegatesFocus": {
107
- "description": "Whether the shadow root delegates focus (TAG-314): focusing the element, clicking one of its labels or a non-focusable part of it focuses the component's first focusable element. Defaults to the value of formAssociated.",
108
- "type": "boolean"
109
- }
110
- },
111
- "required": [
112
- "contractVersion",
113
- "name",
114
- "tag",
115
- "title",
116
- "description"
117
- ],
118
- "additionalProperties": false,
119
- "title": "Taggor component manifest v1",
120
- "description": "Declarative description of a Taggor component. Generated from the Zod source in @taggor/contract; do not edit.",
121
- "$defs": {
122
- "ComponentName": {
123
- "type": "string",
124
- "minLength": 1,
125
- "maxLength": 64,
126
- "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
127
- },
128
- "TagName": {
129
- "type": "string",
130
- "minLength": 1,
131
- "maxLength": 64,
132
- "pattern": "^(?!taggor-)(?!(?:annotation-xml|color-profile|font-face|font-face-src|font-face-uri|font-face-format|font-face-name|missing-glyph)$)[a-z][a-z0-9]*(?:-[a-z0-9]+)+$"
133
- },
134
- "PropName": {
135
- "type": "string",
136
- "minLength": 1,
137
- "maxLength": 40,
138
- "pattern": "^(?!on)(?!(?:aria|data)[A-Z0-9])(?!(?:accessKey|accessKeyLabel|accesskey|activeViewTransition|addEventListener|adoptedCallback|after|animate|append|appendChild|assignedSlot|attachInternals|attachShadow|attributeChangedCallback|attributeStyleMap|attributes|autocapitalize|autocorrect|autofocus|baseURI|before|blur|checkVisibility|childElementCount|childNodes|children|class|classList|className|click|clientHeight|clientLeft|clientTop|clientWidth|cloneNode|closest|compareDocumentPosition|computedStyleMap|connectedCallback|connectedMoveCallback|constructor|contains|contentEditable|contenteditable|currentCSSZoom|customElementRegistry|dataset|dir|disabledFeatures|disconnectedCallback|dispatchEvent|draggable|editContext|elementTiming|enterKeyHint|enterkeyhint|exportparts|firstChild|firstElementChild|focus|focusGroup|focusGroupStart|focusgroup|formAssociated|formAssociatedCallback|formDisabledCallback|formResetCallback|formStateRestoreCallback|getAnimations|getAttribute|getAttributeNS|getAttributeNames|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getHTML|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasOwnProperty|hasPointerCapture|headingoffset|headingreset|hidden|hidePopover|id|inert|innerHTML|innerText|inputMode|inputmode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|insertBefore|is|isConnected|isContentEditable|isDefaultNamespace|isEqualNode|isPrototypeOf|isSameNode|itemid|itemprop|itemref|itemscope|itemtype|lang|lastChild|lastElementChild|localName|lookupNamespaceURI|lookupPrefix|matches|moveBefore|mozMatchesSelector|mozRequestFullScreen|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|nonce|normalize|observedAttributes|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|part|popover|prefix|prepend|previousElementSibling|previousSibling|propertyIsEnumerable|pseudo|querySelector|querySelectorAll|releaseCapture|releasePointerCapture|remove|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|replaceChildren|replaceWith|requestFullscreen|requestPointerLock|role|scroll|scrollBy|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollLeftMax|scrollTo|scrollTop|scrollTopMax|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setCapture|setHTML|setHTMLUnsafe|setPointerCapture|shadowRoot|showPopover|slot|spellcheck|startViewTransition|style|tabIndex|tabindex|tagName|textContent|title|toLocaleString|toString|toggleAttribute|togglePopover|translate|valueOf|virtualKeyboardPolicy|virtualkeyboardpolicy|webkitMatchesSelector|webkitRequestFullScreen|webkitRequestFullscreen|when|writingSuggestions|writingsuggestions)$)[a-z][a-zA-Z0-9]*$"
139
- },
140
- "PropDeclaration": {
141
- "oneOf": [
142
- {
143
- "type": "object",
144
- "properties": {
145
- "type": {
146
- "type": "string",
147
- "const": "string"
148
- },
149
- "description": {
150
- "description": "What this member is for; shown in docs, the portal and to agents.",
151
- "type": "string",
152
- "minLength": 1,
153
- "maxLength": 300,
154
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
155
- },
156
- "minLength": {
157
- "type": "integer",
158
- "minimum": 0,
159
- "maximum": 10000
160
- },
161
- "maxLength": {
162
- "description": "Defaults to 10000.",
163
- "type": "integer",
164
- "minimum": 1,
165
- "maximum": 10000
166
- },
167
- "format": {
168
- "type": "string",
169
- "enum": [
170
- "email",
171
- "url",
172
- "tel",
173
- "date",
174
- "date-time"
175
- ]
176
- },
177
- "default": {
178
- "type": "string",
179
- "maxLength": 10000
180
- }
181
- },
182
- "required": [
183
- "type"
184
- ],
185
- "additionalProperties": false
186
- },
187
- {
188
- "type": "object",
189
- "properties": {
190
- "type": {
191
- "type": "string",
192
- "const": "number"
193
- },
194
- "description": {
195
- "description": "What this member is for; shown in docs, the portal and to agents.",
196
- "type": "string",
197
- "minLength": 1,
198
- "maxLength": 300,
199
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
200
- },
201
- "min": {
202
- "type": "number"
203
- },
204
- "max": {
205
- "type": "number"
206
- },
207
- "integer": {
208
- "type": "boolean"
209
- },
210
- "default": {
211
- "type": "number"
212
- },
213
- "step": {
214
- "type": "number",
215
- "exclusiveMinimum": 0
216
- }
217
- },
218
- "required": [
219
- "type"
220
- ],
221
- "additionalProperties": false
222
- },
223
- {
224
- "type": "object",
225
- "properties": {
226
- "type": {
227
- "type": "string",
228
- "const": "boolean"
229
- },
230
- "description": {
231
- "description": "What this member is for; shown in docs, the portal and to agents.",
232
- "type": "string",
233
- "minLength": 1,
234
- "maxLength": 300,
235
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
236
- },
237
- "default": {
238
- "type": "boolean",
239
- "const": false
240
- }
241
- },
242
- "required": [
243
- "type"
244
- ],
245
- "additionalProperties": false
246
- },
247
- {
248
- "type": "object",
249
- "properties": {
250
- "type": {
251
- "type": "string",
252
- "const": "enum"
253
- },
254
- "description": {
255
- "description": "What this member is for; shown in docs, the portal and to agents.",
256
- "type": "string",
257
- "minLength": 1,
258
- "maxLength": 300,
259
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
260
- },
261
- "values": {
262
- "minItems": 1,
263
- "maxItems": 50,
264
- "type": "array",
265
- "items": {
266
- "$ref": "#/$defs/EnumValue"
267
- },
268
- "uniqueItems": true
269
- },
270
- "default": {
271
- "type": "string",
272
- "maxLength": 64
273
- }
274
- },
275
- "required": [
276
- "type",
277
- "values"
278
- ],
279
- "additionalProperties": false
280
- },
281
- {
282
- "type": "object",
283
- "properties": {
284
- "type": {
285
- "type": "string",
286
- "const": "color"
287
- },
288
- "description": {
289
- "description": "What this member is for; shown in docs, the portal and to agents.",
290
- "type": "string",
291
- "minLength": 1,
292
- "maxLength": 300,
293
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
294
- },
295
- "default": {
296
- "type": "string",
297
- "minLength": 1,
298
- "maxLength": 64,
299
- "pattern": "^(?:(?:color-mix|oklab|oklch|color|clamp|rgba|hsla|calc|rgb|hsl|hwb|lab|lch|min|max|var)\\(|[a-zA-Z-][a-zA-Z0-9-]*(?![a-zA-Z0-9(-])|[#0-9,.%/+\\s)])+$"
300
- }
301
- },
302
- "required": [
303
- "type"
304
- ],
305
- "additionalProperties": false
306
- },
307
- {
308
- "type": "object",
309
- "properties": {
310
- "type": {
311
- "type": "string",
312
- "const": "url"
313
- },
314
- "description": {
315
- "description": "What this member is for; shown in docs, the portal and to agents.",
316
- "type": "string",
317
- "minLength": 1,
318
- "maxLength": 300,
319
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
320
- },
321
- "protocols": {
322
- "description": "Accepted URL schemes; defaults to [\"https\"].",
323
- "minItems": 1,
324
- "maxItems": 3,
325
- "type": "array",
326
- "items": {
327
- "type": "string",
328
- "enum": [
329
- "https",
330
- "http",
331
- "mailto"
332
- ]
333
- },
334
- "uniqueItems": true
335
- },
336
- "default": {
337
- "type": "string",
338
- "maxLength": 2048,
339
- "pattern": "^(?:https:\\/\\/|http:\\/\\/|mailto:)[!#-&(-;=?-\\[\\]-_a-z{-~]+$"
340
- }
341
- },
342
- "required": [
343
- "type"
344
- ],
345
- "additionalProperties": false
346
- },
347
- {
348
- "type": "object",
349
- "properties": {
350
- "type": {
351
- "type": "string",
352
- "const": "date"
353
- },
354
- "description": {
355
- "description": "What this member is for; shown in docs, the portal and to agents.",
356
- "type": "string",
357
- "minLength": 1,
358
- "maxLength": 300,
359
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
360
- },
361
- "min": {
362
- "type": "string",
363
- "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])))$"
364
- },
365
- "max": {
366
- "type": "string",
367
- "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])))$"
368
- },
369
- "default": {
370
- "type": "string",
371
- "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])))$"
372
- }
373
- },
374
- "required": [
375
- "type"
376
- ],
377
- "additionalProperties": false
378
- },
379
- {
380
- "type": "object",
381
- "properties": {
382
- "type": {
383
- "type": "string",
384
- "const": "array"
385
- },
386
- "description": {
387
- "description": "What this member is for; shown in docs, the portal and to agents.",
388
- "type": "string",
389
- "minLength": 1,
390
- "maxLength": 300,
391
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
392
- },
393
- "items": {
394
- "$ref": "#/$defs/ValueSchemaDepth2"
395
- },
396
- "minItems": {
397
- "type": "integer",
398
- "minimum": 0,
399
- "maximum": 1000
400
- },
401
- "maxItems": {
402
- "description": "Defaults to 1000.",
403
- "type": "integer",
404
- "minimum": 1,
405
- "maximum": 1000
406
- },
407
- "default": {
408
- "maxItems": 1000,
409
- "type": "array",
410
- "items": {
411
- "$ref": "#/$defs/DefaultValueDepth2"
412
- }
413
- }
414
- },
415
- "required": [
416
- "type",
417
- "items"
418
- ],
419
- "additionalProperties": false
420
- },
421
- {
422
- "type": "object",
423
- "properties": {
424
- "type": {
425
- "type": "string",
426
- "const": "object"
427
- },
428
- "description": {
429
- "description": "What this member is for; shown in docs, the portal and to agents.",
430
- "type": "string",
431
- "minLength": 1,
432
- "maxLength": 300,
433
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
434
- },
435
- "fields": {
436
- "type": "object",
437
- "propertyNames": {
438
- "$ref": "#/$defs/FieldName"
439
- },
440
- "additionalProperties": {
441
- "$ref": "#/$defs/ValueSchemaDepth2"
442
- },
443
- "maxProperties": 50
444
- },
445
- "required": {
446
- "minItems": 1,
447
- "maxItems": 50,
448
- "type": "array",
449
- "items": {
450
- "$ref": "#/$defs/FieldName"
451
- },
452
- "uniqueItems": true
453
- },
454
- "default": {
455
- "type": "object",
456
- "propertyNames": {
457
- "$ref": "#/$defs/FieldName"
458
- },
459
- "additionalProperties": {
460
- "$ref": "#/$defs/DefaultValueDepth2"
461
- },
462
- "maxProperties": 50
463
- }
464
- },
465
- "required": [
466
- "type",
467
- "fields"
468
- ],
469
- "additionalProperties": false
470
- }
471
- ]
472
- },
473
- "EnumValue": {
474
- "type": "string",
475
- "minLength": 1,
476
- "maxLength": 64,
477
- "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
478
- },
479
- "ValueSchemaDepth2": {
480
- "oneOf": [
481
- {
482
- "$ref": "#/$defs/StringValueSchema"
483
- },
484
- {
485
- "$ref": "#/$defs/NumberValueSchema"
486
- },
487
- {
488
- "$ref": "#/$defs/BooleanValueSchema"
489
- },
490
- {
491
- "$ref": "#/$defs/EnumValueSchema"
492
- },
493
- {
494
- "type": "object",
495
- "properties": {
496
- "type": {
497
- "type": "string",
498
- "const": "array"
499
- },
500
- "description": {
501
- "description": "What this member is for; shown in docs, the portal and to agents.",
502
- "type": "string",
503
- "minLength": 1,
504
- "maxLength": 300,
505
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
506
- },
507
- "items": {
508
- "$ref": "#/$defs/ValueSchemaDepth1"
509
- },
510
- "minItems": {
511
- "type": "integer",
512
- "minimum": 0,
513
- "maximum": 1000
514
- },
515
- "maxItems": {
516
- "description": "Defaults to 1000.",
517
- "type": "integer",
518
- "minimum": 1,
519
- "maximum": 1000
520
- }
521
- },
522
- "required": [
523
- "type",
524
- "items"
525
- ],
526
- "additionalProperties": false
527
- },
528
- {
529
- "type": "object",
530
- "properties": {
531
- "type": {
532
- "type": "string",
533
- "const": "object"
534
- },
535
- "description": {
536
- "description": "What this member is for; shown in docs, the portal and to agents.",
537
- "type": "string",
538
- "minLength": 1,
539
- "maxLength": 300,
540
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
541
- },
542
- "fields": {
543
- "type": "object",
544
- "propertyNames": {
545
- "$ref": "#/$defs/FieldName"
546
- },
547
- "additionalProperties": {
548
- "$ref": "#/$defs/ValueSchemaDepth1"
549
- },
550
- "maxProperties": 50
551
- },
552
- "required": {
553
- "minItems": 1,
554
- "maxItems": 50,
555
- "type": "array",
556
- "items": {
557
- "$ref": "#/$defs/FieldName"
558
- },
559
- "uniqueItems": true
560
- }
561
- },
562
- "required": [
563
- "type",
564
- "fields"
565
- ],
566
- "additionalProperties": false
567
- }
568
- ]
569
- },
570
- "StringValueSchema": {
571
- "type": "object",
572
- "properties": {
573
- "type": {
574
- "type": "string",
575
- "const": "string"
576
- },
577
- "description": {
578
- "description": "What this member is for; shown in docs, the portal and to agents.",
579
- "type": "string",
580
- "minLength": 1,
581
- "maxLength": 300,
582
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
583
- },
584
- "minLength": {
585
- "type": "integer",
586
- "minimum": 0,
587
- "maximum": 10000
588
- },
589
- "maxLength": {
590
- "description": "Defaults to 10000.",
591
- "type": "integer",
592
- "minimum": 1,
593
- "maximum": 10000
594
- },
595
- "format": {
596
- "type": "string",
597
- "enum": [
598
- "email",
599
- "url",
600
- "tel",
601
- "date",
602
- "date-time"
603
- ]
604
- }
605
- },
606
- "required": [
607
- "type"
608
- ],
609
- "additionalProperties": false
610
- },
611
- "NumberValueSchema": {
612
- "type": "object",
613
- "properties": {
614
- "type": {
615
- "type": "string",
616
- "const": "number"
617
- },
618
- "description": {
619
- "description": "What this member is for; shown in docs, the portal and to agents.",
620
- "type": "string",
621
- "minLength": 1,
622
- "maxLength": 300,
623
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
624
- },
625
- "min": {
626
- "type": "number"
627
- },
628
- "max": {
629
- "type": "number"
630
- },
631
- "integer": {
632
- "type": "boolean"
633
- }
634
- },
635
- "required": [
636
- "type"
637
- ],
638
- "additionalProperties": false
639
- },
640
- "BooleanValueSchema": {
641
- "type": "object",
642
- "properties": {
643
- "type": {
644
- "type": "string",
645
- "const": "boolean"
646
- },
647
- "description": {
648
- "description": "What this member is for; shown in docs, the portal and to agents.",
649
- "type": "string",
650
- "minLength": 1,
651
- "maxLength": 300,
652
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
653
- }
654
- },
655
- "required": [
656
- "type"
657
- ],
658
- "additionalProperties": false
659
- },
660
- "EnumValueSchema": {
661
- "type": "object",
662
- "properties": {
663
- "type": {
664
- "type": "string",
665
- "const": "enum"
666
- },
667
- "description": {
668
- "description": "What this member is for; shown in docs, the portal and to agents.",
669
- "type": "string",
670
- "minLength": 1,
671
- "maxLength": 300,
672
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
673
- },
674
- "values": {
675
- "minItems": 1,
676
- "maxItems": 50,
677
- "type": "array",
678
- "items": {
679
- "$ref": "#/$defs/EnumValue"
680
- },
681
- "uniqueItems": true
682
- }
683
- },
684
- "required": [
685
- "type",
686
- "values"
687
- ],
688
- "additionalProperties": false
689
- },
690
- "ValueSchemaDepth1": {
691
- "oneOf": [
692
- {
693
- "$ref": "#/$defs/StringValueSchema"
694
- },
695
- {
696
- "$ref": "#/$defs/NumberValueSchema"
697
- },
698
- {
699
- "$ref": "#/$defs/BooleanValueSchema"
700
- },
701
- {
702
- "$ref": "#/$defs/EnumValueSchema"
703
- },
704
- {
705
- "type": "object",
706
- "properties": {
707
- "type": {
708
- "type": "string",
709
- "const": "array"
710
- },
711
- "description": {
712
- "description": "What this member is for; shown in docs, the portal and to agents.",
713
- "type": "string",
714
- "minLength": 1,
715
- "maxLength": 300,
716
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
717
- },
718
- "items": {
719
- "$ref": "#/$defs/ScalarValueSchema"
720
- },
721
- "minItems": {
722
- "type": "integer",
723
- "minimum": 0,
724
- "maximum": 1000
725
- },
726
- "maxItems": {
727
- "description": "Defaults to 1000.",
728
- "type": "integer",
729
- "minimum": 1,
730
- "maximum": 1000
731
- }
732
- },
733
- "required": [
734
- "type",
735
- "items"
736
- ],
737
- "additionalProperties": false
738
- },
739
- {
740
- "type": "object",
741
- "properties": {
742
- "type": {
743
- "type": "string",
744
- "const": "object"
745
- },
746
- "description": {
747
- "description": "What this member is for; shown in docs, the portal and to agents.",
748
- "type": "string",
749
- "minLength": 1,
750
- "maxLength": 300,
751
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
752
- },
753
- "fields": {
754
- "type": "object",
755
- "propertyNames": {
756
- "$ref": "#/$defs/FieldName"
757
- },
758
- "additionalProperties": {
759
- "$ref": "#/$defs/ScalarValueSchema"
760
- },
761
- "maxProperties": 50
762
- },
763
- "required": {
764
- "minItems": 1,
765
- "maxItems": 50,
766
- "type": "array",
767
- "items": {
768
- "$ref": "#/$defs/FieldName"
769
- },
770
- "uniqueItems": true
771
- }
772
- },
773
- "required": [
774
- "type",
775
- "fields"
776
- ],
777
- "additionalProperties": false
778
- }
779
- ]
780
- },
781
- "ScalarValueSchema": {
782
- "oneOf": [
783
- {
784
- "$ref": "#/$defs/StringValueSchema"
785
- },
786
- {
787
- "$ref": "#/$defs/NumberValueSchema"
788
- },
789
- {
790
- "$ref": "#/$defs/BooleanValueSchema"
791
- },
792
- {
793
- "$ref": "#/$defs/EnumValueSchema"
794
- }
795
- ]
796
- },
797
- "FieldName": {
798
- "type": "string",
799
- "minLength": 1,
800
- "maxLength": 40,
801
- "pattern": "^(?!(?:constructor|hasOwnProperty|isPrototypeOf|propertyIsEnumerable|toLocaleString|toString|valueOf)$)[a-zA-Z][a-zA-Z0-9_]*$"
802
- },
803
- "DefaultValueDepth2": {
804
- "anyOf": [
805
- {
806
- "anyOf": [
807
- {
808
- "type": "string",
809
- "maxLength": 10000
810
- },
811
- {
812
- "type": "number"
813
- },
814
- {
815
- "type": "boolean"
816
- }
817
- ]
818
- },
819
- {
820
- "maxItems": 1000,
821
- "type": "array",
822
- "items": {
823
- "$ref": "#/$defs/DefaultValueDepth1"
824
- }
825
- },
826
- {
827
- "type": "object",
828
- "propertyNames": {
829
- "$ref": "#/$defs/FieldName"
830
- },
831
- "additionalProperties": {
832
- "$ref": "#/$defs/DefaultValueDepth1"
833
- },
834
- "maxProperties": 50
835
- }
836
- ]
837
- },
838
- "DefaultValueDepth1": {
839
- "anyOf": [
840
- {
841
- "anyOf": [
842
- {
843
- "type": "string",
844
- "maxLength": 10000
845
- },
846
- {
847
- "type": "number"
848
- },
849
- {
850
- "type": "boolean"
851
- }
852
- ]
853
- },
854
- {
855
- "maxItems": 1000,
856
- "type": "array",
857
- "items": {
858
- "anyOf": [
859
- {
860
- "type": "string",
861
- "maxLength": 10000
862
- },
863
- {
864
- "type": "number"
865
- },
866
- {
867
- "type": "boolean"
868
- }
869
- ]
870
- }
871
- },
872
- {
873
- "type": "object",
874
- "propertyNames": {
875
- "$ref": "#/$defs/FieldName"
876
- },
877
- "additionalProperties": {
878
- "anyOf": [
879
- {
880
- "type": "string",
881
- "maxLength": 10000
882
- },
883
- {
884
- "type": "number"
885
- },
886
- {
887
- "type": "boolean"
888
- }
889
- ]
890
- },
891
- "maxProperties": 50
892
- }
893
- ]
894
- },
895
- "MemberName": {
896
- "type": "string",
897
- "minLength": 1,
898
- "maxLength": 40,
899
- "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
900
- },
901
- "EventDeclaration": {
902
- "type": "object",
903
- "properties": {
904
- "description": {
905
- "description": "What this member is for; shown in docs, the portal and to agents.",
906
- "type": "string",
907
- "minLength": 1,
908
- "maxLength": 300,
909
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
910
- },
911
- "detail": {
912
- "description": "Schema of `event.detail`; use { \"type\": \"object\", \"fields\": {} } for an event without data.",
913
- "$ref": "#/$defs/ValueSchema"
914
- },
915
- "bubbles": {
916
- "description": "Defaults to true.",
917
- "type": "boolean"
918
- },
919
- "composed": {
920
- "description": "Defaults to true.",
921
- "type": "boolean"
922
- }
923
- },
924
- "required": [
925
- "detail"
926
- ],
927
- "additionalProperties": false
928
- },
929
- "ValueSchema": {
930
- "oneOf": [
931
- {
932
- "$ref": "#/$defs/StringValueSchema"
933
- },
934
- {
935
- "$ref": "#/$defs/NumberValueSchema"
936
- },
937
- {
938
- "$ref": "#/$defs/BooleanValueSchema"
939
- },
940
- {
941
- "$ref": "#/$defs/EnumValueSchema"
942
- },
943
- {
944
- "type": "object",
945
- "properties": {
946
- "type": {
947
- "type": "string",
948
- "const": "array"
949
- },
950
- "description": {
951
- "description": "What this member is for; shown in docs, the portal and to agents.",
952
- "type": "string",
953
- "minLength": 1,
954
- "maxLength": 300,
955
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
956
- },
957
- "items": {
958
- "$ref": "#/$defs/ValueSchemaDepth2"
959
- },
960
- "minItems": {
961
- "type": "integer",
962
- "minimum": 0,
963
- "maximum": 1000
964
- },
965
- "maxItems": {
966
- "description": "Defaults to 1000.",
967
- "type": "integer",
968
- "minimum": 1,
969
- "maximum": 1000
970
- }
971
- },
972
- "required": [
973
- "type",
974
- "items"
975
- ],
976
- "additionalProperties": false
977
- },
978
- {
979
- "type": "object",
980
- "properties": {
981
- "type": {
982
- "type": "string",
983
- "const": "object"
984
- },
985
- "description": {
986
- "description": "What this member is for; shown in docs, the portal and to agents.",
987
- "type": "string",
988
- "minLength": 1,
989
- "maxLength": 300,
990
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
991
- },
992
- "fields": {
993
- "type": "object",
994
- "propertyNames": {
995
- "$ref": "#/$defs/FieldName"
996
- },
997
- "additionalProperties": {
998
- "$ref": "#/$defs/ValueSchemaDepth2"
999
- },
1000
- "maxProperties": 50
1001
- },
1002
- "required": {
1003
- "minItems": 1,
1004
- "maxItems": 50,
1005
- "type": "array",
1006
- "items": {
1007
- "$ref": "#/$defs/FieldName"
1008
- },
1009
- "uniqueItems": true
1010
- }
1011
- },
1012
- "required": [
1013
- "type",
1014
- "fields"
1015
- ],
1016
- "additionalProperties": false
1017
- }
1018
- ],
1019
- "description": "Declarative description of a JSON value. Plain data only: no code, no regular expressions."
1020
- },
1021
- "SlotDeclaration": {
1022
- "type": "object",
1023
- "properties": {
1024
- "description": {
1025
- "description": "What this member is for; shown in docs, the portal and to agents.",
1026
- "type": "string",
1027
- "minLength": 1,
1028
- "maxLength": 300,
1029
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1030
- }
1031
- },
1032
- "additionalProperties": false
1033
- },
1034
- "PartDeclaration": {
1035
- "type": "object",
1036
- "properties": {
1037
- "description": {
1038
- "description": "What this member is for; shown in docs, the portal and to agents.",
1039
- "type": "string",
1040
- "minLength": 1,
1041
- "maxLength": 300,
1042
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1043
- }
1044
- },
1045
- "additionalProperties": false
1046
- },
1047
- "CssVarName": {
1048
- "type": "string",
1049
- "minLength": 1,
1050
- "maxLength": 64,
1051
- "pattern": "^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
1052
- },
1053
- "CssVarDeclaration": {
1054
- "oneOf": [
1055
- {
1056
- "type": "object",
1057
- "properties": {
1058
- "type": {
1059
- "type": "string",
1060
- "enum": [
1061
- "color",
1062
- "length",
1063
- "number",
1064
- "percentage"
1065
- ]
1066
- },
1067
- "default": {
1068
- "type": "string",
1069
- "minLength": 1,
1070
- "maxLength": 100,
1071
- "pattern": "^(?:(?:color-mix|oklab|oklch|color|clamp|rgba|hsla|calc|rgb|hsl|hwb|lab|lch|min|max|var)\\(|[a-zA-Z-][a-zA-Z0-9-]*(?![a-zA-Z0-9(-])|[#0-9,.%/+\\s)])+$"
1072
- },
1073
- "description": {
1074
- "description": "What this member is for; shown in docs, the portal and to agents.",
1075
- "type": "string",
1076
- "minLength": 1,
1077
- "maxLength": 300,
1078
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1079
- }
1080
- },
1081
- "required": [
1082
- "type",
1083
- "default"
1084
- ],
1085
- "additionalProperties": false
1086
- },
1087
- {
1088
- "type": "object",
1089
- "properties": {
1090
- "type": {
1091
- "type": "string",
1092
- "const": "font-family"
1093
- },
1094
- "default": {
1095
- "type": "string",
1096
- "minLength": 1,
1097
- "maxLength": 100,
1098
- "pattern": "^[a-zA-Z0-9,\\s-]+$"
1099
- },
1100
- "description": {
1101
- "description": "What this member is for; shown in docs, the portal and to agents.",
1102
- "type": "string",
1103
- "minLength": 1,
1104
- "maxLength": 300,
1105
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1106
- }
1107
- },
1108
- "required": [
1109
- "type",
1110
- "default"
1111
- ],
1112
- "additionalProperties": false
1113
- }
1114
- ]
1115
- },
1116
- "DataDeclaration": {
1117
- "type": "object",
1118
- "properties": {
1119
- "collections": {
1120
- "type": "object",
1121
- "propertyNames": {
1122
- "$ref": "#/$defs/MemberName"
1123
- },
1124
- "additionalProperties": {
1125
- "$ref": "#/$defs/CollectionDeclaration"
1126
- },
1127
- "maxProperties": 10
1128
- },
1129
- "track": {
1130
- "type": "object",
1131
- "propertyNames": {
1132
- "$ref": "#/$defs/MemberName"
1133
- },
1134
- "additionalProperties": {
1135
- "$ref": "#/$defs/TrackEventDeclaration"
1136
- },
1137
- "maxProperties": 30
1138
- },
1139
- "personal": {
1140
- "description": "True when the collections hold personal data (TAG-212): every submit then carries the visitor's consent. Defaults to false.",
1141
- "type": "boolean"
1142
- },
1143
- "privacyPolicyUrl": {
1144
- "description": "Name of the prop of type \"url\" that links the privacy policy, set per site (TAG-212). Required when personal is true.",
1145
- "$ref": "#/$defs/PropName"
1146
- }
1147
- },
1148
- "additionalProperties": false
1149
- },
1150
- "CollectionDeclaration": {
1151
- "type": "object",
1152
- "properties": {
1153
- "description": {
1154
- "description": "What this member is for; shown in docs, the portal and to agents.",
1155
- "type": "string",
1156
- "minLength": 1,
1157
- "maxLength": 300,
1158
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1159
- },
1160
- "fields": {
1161
- "type": "object",
1162
- "propertyNames": {
1163
- "$ref": "#/$defs/SnakeName"
1164
- },
1165
- "additionalProperties": {
1166
- "$ref": "#/$defs/CollectionField"
1167
- },
1168
- "minProperties": 1,
1169
- "maxProperties": 50
1170
- },
1171
- "required": {
1172
- "minItems": 1,
1173
- "maxItems": 50,
1174
- "type": "array",
1175
- "items": {
1176
- "$ref": "#/$defs/SnakeName"
1177
- },
1178
- "uniqueItems": true
1179
- },
1180
- "visibility": {
1181
- "description": "Defaults to \"private\".",
1182
- "type": "string",
1183
- "enum": [
1184
- "private",
1185
- "public"
1186
- ]
1187
- }
1188
- },
1189
- "required": [
1190
- "fields"
1191
- ],
1192
- "additionalProperties": false
1193
- },
1194
- "SnakeName": {
1195
- "type": "string",
1196
- "minLength": 1,
1197
- "maxLength": 40,
1198
- "pattern": "^(?!(?:constructor|hasOwnProperty|isPrototypeOf|propertyIsEnumerable|toLocaleString|toString|valueOf)$)[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
1199
- },
1200
- "CollectionField": {
1201
- "oneOf": [
1202
- {
1203
- "$ref": "#/$defs/StringValueSchema"
1204
- },
1205
- {
1206
- "$ref": "#/$defs/NumberValueSchema"
1207
- },
1208
- {
1209
- "$ref": "#/$defs/BooleanValueSchema"
1210
- },
1211
- {
1212
- "$ref": "#/$defs/EnumValueSchema"
1213
- },
1214
- {
1215
- "type": "object",
1216
- "properties": {
1217
- "type": {
1218
- "type": "string",
1219
- "const": "array"
1220
- },
1221
- "description": {
1222
- "description": "What this member is for; shown in docs, the portal and to agents.",
1223
- "type": "string",
1224
- "minLength": 1,
1225
- "maxLength": 300,
1226
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1227
- },
1228
- "items": {
1229
- "$ref": "#/$defs/ScalarValueSchema"
1230
- },
1231
- "minItems": {
1232
- "type": "integer",
1233
- "minimum": 0,
1234
- "maximum": 1000
1235
- },
1236
- "maxItems": {
1237
- "description": "Defaults to 1000.",
1238
- "type": "integer",
1239
- "minimum": 1,
1240
- "maximum": 1000
1241
- }
1242
- },
1243
- "required": [
1244
- "type",
1245
- "items"
1246
- ],
1247
- "additionalProperties": false
1248
- }
1249
- ]
1250
- },
1251
- "TrackEventDeclaration": {
1252
- "type": "object",
1253
- "properties": {
1254
- "description": {
1255
- "description": "What this member is for; shown in docs, the portal and to agents.",
1256
- "type": "string",
1257
- "minLength": 1,
1258
- "maxLength": 300,
1259
- "pattern": "^[^\\u0000-\\u0008\\u000b\\u000c\\u000e-\\u001f\\u007f]*$"
1260
- },
1261
- "props": {
1262
- "type": "object",
1263
- "propertyNames": {
1264
- "$ref": "#/$defs/SnakeName"
1265
- },
1266
- "additionalProperties": {
1267
- "$ref": "#/$defs/TrackProp"
1268
- },
1269
- "maxProperties": 8
1270
- }
1271
- },
1272
- "additionalProperties": false
1273
- },
1274
- "TrackProp": {
1275
- "oneOf": [
1276
- {
1277
- "$ref": "#/$defs/NumberValueSchema"
1278
- },
1279
- {
1280
- "$ref": "#/$defs/BooleanValueSchema"
1281
- },
1282
- {
1283
- "$ref": "#/$defs/EnumValueSchema"
1284
- }
1285
- ]
1286
- },
1287
- "SizeHints": {
1288
- "type": "object",
1289
- "properties": {
1290
- "display": {
1291
- "description": "Defaults to \"block\".",
1292
- "type": "string",
1293
- "enum": [
1294
- "block",
1295
- "inline-block"
1296
- ]
1297
- },
1298
- "minHeight": {
1299
- "description": "Reserved height in CSS pixels.",
1300
- "type": "integer",
1301
- "minimum": 0,
1302
- "maximum": 4000
1303
- },
1304
- "maxWidth": {
1305
- "type": "integer",
1306
- "minimum": 1,
1307
- "maximum": 4000
1308
- },
1309
- "aspectRatio": {
1310
- "type": "object",
1311
- "properties": {
1312
- "width": {
1313
- "type": "integer",
1314
- "minimum": 1,
1315
- "maximum": 100
1316
- },
1317
- "height": {
1318
- "type": "integer",
1319
- "minimum": 1,
1320
- "maximum": 100
1321
- }
1322
- },
1323
- "required": [
1324
- "width",
1325
- "height"
1326
- ],
1327
- "additionalProperties": false
1328
- }
1329
- },
1330
- "additionalProperties": false
1331
- },
1332
- "Permissions": {
1333
- "type": "object",
1334
- "properties": {
1335
- "apis": {
1336
- "minItems": 1,
1337
- "maxItems": 4,
1338
- "type": "array",
1339
- "items": {
1340
- "type": "string",
1341
- "enum": [
1342
- "clipboard-write",
1343
- "fullscreen",
1344
- "geolocation",
1345
- "web-share"
1346
- ]
1347
- },
1348
- "uniqueItems": true
1349
- },
1350
- "connect": {
1351
- "minItems": 1,
1352
- "maxItems": 10,
1353
- "type": "array",
1354
- "items": {
1355
- "type": "string",
1356
- "maxLength": 2048,
1357
- "pattern": "^https:\\/\\/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}(?::[1-9]\\d{0,4})?$"
1358
- },
1359
- "uniqueItems": true
1360
- }
1361
- },
1362
- "additionalProperties": false
1363
- },
1364
- "LocalesDeclaration": {
1365
- "type": "object",
1366
- "properties": {
1367
- "supported": {
1368
- "minItems": 1,
1369
- "maxItems": 30,
1370
- "type": "array",
1371
- "items": {
1372
- "type": "string",
1373
- "maxLength": 35,
1374
- "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
1375
- },
1376
- "uniqueItems": true
1377
- },
1378
- "default": {
1379
- "type": "string",
1380
- "maxLength": 35,
1381
- "pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
1382
- }
1383
- },
1384
- "required": [
1385
- "supported",
1386
- "default"
1387
- ],
1388
- "additionalProperties": false
1389
- },
1390
- "AssetDeclaration": {
1391
- "type": "object",
1392
- "properties": {
1393
- "type": {
1394
- "type": "string",
1395
- "enum": [
1396
- "image/avif",
1397
- "image/jpeg",
1398
- "image/png",
1399
- "image/svg+xml",
1400
- "image/webp",
1401
- "font/woff2"
1402
- ],
1403
- "description": "MIME type; the CDN path ends in its extension."
1404
- },
1405
- "size": {
1406
- "type": "integer",
1407
- "minimum": 1,
1408
- "maximum": 2097152,
1409
- "description": "Size of the file in bytes."
1410
- }
1411
- },
1412
- "required": [
1413
- "type",
1414
- "size"
1415
- ],
1416
- "additionalProperties": false
1417
- }
1418
- }
1419
- }