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