@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,5 +1,5 @@
1
1
  /**
2
- * The anomaly guard of the render count (TAG-1730, decisions 64 and 69): the pure rule that turns
2
+ * The anomaly guard of the render count the pure rule that turns
3
3
  * what the loader hit points say into the count a rendering cut may be judged on.
4
4
  *
5
5
  * Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
@@ -7,49 +7,49 @@
7
7
  * cut of someone's components must never rest on it. The guarded count differs from the raw one in
8
8
  * three ways, all of which can only LOWER it (every doubt falls on the customer's side):
9
9
  * 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
10
- * 2. only deliveries that name their network count at all (TAG-1823: the network is written in a
10
+ * 2. only deliveries that name their network count at all (the network is written in a
11
11
  * point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
12
12
  * without a known ASN adds nothing here);
13
13
  * 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
14
14
  * network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
15
15
  * are needed.
16
- * What it does NOT stop: a botnet spread over many networks that stays under the spike rule. That is
16
+ * What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
17
17
  * why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
18
- * owner's approval of the cut line (decision 69); the cut flag stays off until then.
18
+ * owner's approval of the cut line; the cut flag stays off until then.
19
19
  *
20
- * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN (TAG-1823).
20
+ * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
21
21
  */
22
22
  /**
23
23
  * The provisional numbers of the guard. The cut line it judges a count against is the caller's
24
- * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`; decision 84 removed the 3x of decision 69).
24
+ * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
25
25
  */
26
26
  export declare const USAGE_GUARD: Readonly<{
27
27
  /**
28
- * The most one source may add, as a share of the cut line. 0.10 since TAG-1823 (it was 0.25): the guard
28
+ * The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
29
29
  * counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
30
30
  * took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
31
31
  * network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
32
- * from many networks can still raise a notice; the cut needs the flag and a person (decision 69).
32
+ * from many networks can still raise a notice; the cut needs the flag and a person.
33
33
  */
34
34
  sourceShare: 0.1;
35
35
  /**
36
- * The share when the line is the allowance itself (TAG-1628, decision 84: the Free plan is cut at 1x, no
36
+ * The share when the line is the allowance itself (the Free plan is cut at 1x, no
37
37
  * grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
38
38
  * as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
39
- * the count ABOVE it, TAG-1628 review L1), where the 3x line needed
39
+ * the count ABOVE it), where the 3x line needed
40
40
  * more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
41
41
  */
42
42
  freeSourceShare: 0.05;
43
43
  }>;
44
44
  /**
45
- * The spike rule of a site's stored submissions (TAG-1629): the daily signal that feeds `suspectSites`: it
45
+ * The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
46
46
  * protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
47
- * holds or changes a bill (decision 84 amendment: a customer pays what was used). A
47
+ * holds or changes a bill (a customer pays what was used). A
48
48
  * stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
49
49
  * not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
50
50
  * the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
51
- * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a spike.
52
- * PROVISIONAL, owner-confirmable. What it does not catch: steady forging under the floor (bounded by
51
+ * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
52
+ * Provisional. What it does not catch: steady forging under the floor (bounded by
53
53
  * the floor times the days, per site) and a slow ramp.
54
54
  */
55
55
  export declare const SUBMISSION_SPIKE_RULE: Readonly<{
@@ -59,7 +59,7 @@ export declare const SUBMISSION_SPIKE_RULE: Readonly<{
59
59
  minCount: 50;
60
60
  }>;
61
61
  /**
62
- * The submissions spike rule of a plan.
62
+ * The submissions surge rule of a plan.
63
63
  * Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
64
64
  * `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
65
65
  * month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
@@ -71,7 +71,7 @@ export declare function submissionSpikeRule(submissionsPerMonth: number): {
71
71
  };
72
72
  /**
73
73
  * The human deliveries one network brought to one site on one UTC day, counted in the network's own
74
- * point (TAG-1823: never next to a visitor hash, so a distinct count per network is not possible;
74
+ * point (never next to a visitor hash, so a distinct count per network is not possible;
75
75
  * the per-source cap does the work a distinct count did: a loop from one place stays at its cap).
76
76
  */
77
77
  export interface SourceDay {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The anomaly guard of the render count (TAG-1730, decisions 64 and 69): the pure rule that turns
2
+ * The anomaly guard of the render count the pure rule that turns
3
3
  * what the loader hit points say into the count a rendering cut may be judged on.
4
4
  *
5
5
  * Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
@@ -7,49 +7,49 @@
7
7
  * cut of someone's components must never rest on it. The guarded count differs from the raw one in
8
8
  * three ways, all of which can only LOWER it (every doubt falls on the customer's side):
9
9
  * 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
10
- * 2. only deliveries that name their network count at all (TAG-1823: the network is written in a
10
+ * 2. only deliveries that name their network count at all (the network is written in a
11
11
  * point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
12
12
  * without a known ASN adds nothing here);
13
13
  * 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
14
14
  * network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
15
15
  * are needed.
16
- * What it does NOT stop: a botnet spread over many networks that stays under the spike rule. That is
16
+ * What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
17
17
  * why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
18
- * owner's approval of the cut line (decision 69); the cut flag stays off until then.
18
+ * owner's approval of the cut line; the cut flag stays off until then.
19
19
  *
20
- * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN (TAG-1823).
20
+ * Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
21
21
  */
22
22
  /**
23
23
  * The provisional numbers of the guard. The cut line it judges a count against is the caller's
24
- * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`; decision 84 removed the 3x of decision 69).
24
+ * (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
25
25
  */
26
26
  export const USAGE_GUARD = Object.freeze({
27
27
  /**
28
- * The most one source may add, as a share of the cut line. 0.10 since TAG-1823 (it was 0.25): the guard
28
+ * The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
29
29
  * counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
30
30
  * took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
31
31
  * network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
32
- * from many networks can still raise a notice; the cut needs the flag and a person (decision 69).
32
+ * from many networks can still raise a notice; the cut needs the flag and a person.
33
33
  */
34
34
  sourceShare: 0.1,
35
35
  /**
36
- * The share when the line is the allowance itself (TAG-1628, decision 84: the Free plan is cut at 1x, no
36
+ * The share when the line is the allowance itself (the Free plan is cut at 1x, no
37
37
  * grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
38
38
  * as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
39
- * the count ABOVE it, TAG-1628 review L1), where the 3x line needed
39
+ * the count ABOVE it), where the 3x line needed
40
40
  * more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
41
41
  */
42
42
  freeSourceShare: 0.05,
43
43
  });
44
44
  /**
45
- * The spike rule of a site's stored submissions (TAG-1629): the daily signal that feeds `suspectSites`: it
45
+ * The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
46
46
  * protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
47
- * holds or changes a bill (decision 84 amendment: a customer pays what was used). A
47
+ * holds or changes a bill (a customer pays what was used). A
48
48
  * stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
49
49
  * not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
50
50
  * the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
51
- * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a spike.
52
- * PROVISIONAL, owner-confirmable. What it does not catch: steady forging under the floor (bounded by
51
+ * `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
52
+ * Provisional. What it does not catch: steady forging under the floor (bounded by
53
53
  * the floor times the days, per site) and a slow ramp.
54
54
  */
55
55
  export const SUBMISSION_SPIKE_RULE = Object.freeze({
@@ -59,7 +59,7 @@ export const SUBMISSION_SPIKE_RULE = Object.freeze({
59
59
  minCount: 50,
60
60
  });
61
61
  /**
62
- * The submissions spike rule of a plan.
62
+ * The submissions surge rule of a plan.
63
63
  * Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
64
64
  * `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
65
65
  * month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
@@ -1,15 +1,15 @@
1
1
  /**
2
- * The `quota:<workspaceId>` mirror (TAG-712): the workspace's usage as the API's hourly job last
2
+ * The `quota:<workspaceId>` mirror: the workspace's usage as the API's hourly job last
3
3
  * measured it, in the Workers KV namespace the edge already reads, so a consumer on the request
4
- * path (the edge; TAG-1607 enforces from it) never queries Postgres or the Analytics Engine.
4
+ * path (the edge; enforces from it) never queries Postgres or the Analytics Engine.
5
5
  * Written by apps/api (application/usage/usage-mirror.ts), read by whoever enforces. Zod-free.
6
6
  *
7
7
  * It is approximate and about an hour old or more by design. `enforceableRenders` leaves out the
8
- * sites whose render count looks forged (`suspectSiteKeys`: an open spike flag, or one a person
8
+ * sites whose render count looks forged (`suspectSiteKeys`: an open surge flag, or one a person
9
9
  * closed as forged): a reader must act on it, never on `renders.used`. The guard catches sudden
10
- * spikes only; a slow ramp or steady forging under the plan's daily floor passes it (bounded by
10
+ * surges only; a slow ramp or steady forging under the plan's daily floor passes it (bounded by
11
11
  * the plan, `spikeMinViews`). So a reader must never cut or degrade a workspace on renders alone:
12
- * a person looks first (TAG-1607). Security review of TAG-801.
12
+ * a person looks first.
13
13
  */
14
14
  import type { UsageLevel } from "./plan-usage.js";
15
15
  /** Layout version; a reader of a newer one treats the mirror as absent. */
@@ -23,7 +23,7 @@ export declare function accepted<T>(value: T): ValueOutcome<T>;
23
23
  export declare function refused(problem: ValueProblem): ValueOutcome<never>;
24
24
  /**
25
25
  * Length of a string in Unicode code points, the one unit of every string value limit in the
26
- * contract (TAG-224, `SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
26
+ * contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
27
27
  * and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
28
28
  * `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
29
29
  *
@@ -45,17 +45,17 @@ export declare const FIELD_NAME_SHAPE: RegExp;
45
45
  * with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
46
46
  * or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
47
47
  * does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
48
- * validated). String lengths are in code points (`codePointLength`, TAG-224), as in Zod and JSON
48
+ * validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
49
49
  * Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
50
50
  * without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
51
51
  * which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
52
52
  * live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
53
- * a declared field the value merely inherits is absent (TAG-304 parity test). Fields are defined
54
- * by `Object.fromEntries`, never assigned (TAG-304); items are appended with `push`, which only a
53
+ * a declared field the value merely inherits is absent (parity test). Fields are defined
54
+ * by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
55
55
  * page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
56
56
  * breaks every array, its own included). Recursion follows the schema, which nests at most
57
57
  * `valueSchemaDepth` levels once validated. Each call has a budget of
58
- * `MANIFEST_LIMITS.maxJsonLength` work units (TAG-226): every visited value costs 1, a string
58
+ * `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
59
59
  * also its UTF-16 length and an object also the number of fields its schema declares (each is
60
60
  * read, present or not); past the budget the call stops with `too-large`. A value costs at most
61
61
  * its JSON text length plus one per declared field it leaves out (each value takes at least one
@@ -80,7 +80,7 @@ export declare function checkValue(schema: ValueSchema, value: unknown): ValueOu
80
80
  *
81
81
  * Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
82
82
  * value limit, so not in code points) and the maximum nesting of arrays and
83
- * objects. Output: the parsed value (not yet checked against any schema: pass it to `checkValue`),
83
+ * objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
84
84
  * or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
85
85
  * Side effects: none.
86
86
  */
@@ -1,28 +1,28 @@
1
1
  /**
2
- * Zod-free value checks of component contract v1 (TAG-205): `checkValue` (a declared value schema
2
+ * Zod-free value checks of component contract v1: `checkValue` (a declared value schema
3
3
  * applied to a JS value) and `parseBoundedJson` (JSON text with length and nesting limits checked
4
4
  * before `JSON.parse`). The string format patterns live in `value-patterns.ts`.
5
5
  *
6
6
  * The runtime cannot import Zod (its bundle budget), yet it must validate `array` and
7
- * `object` props that come from attributes, properties or `<script type="application/json">`
8
- * (TAG-303, TAG-304). `checkValue` is that validator. It interprets the declared data with a
7
+ * `object` props that come from attributes, properties or `<script type="application/json">`;
8
+ * `checkValue` is that validator. It interprets the declared data with a
9
9
  * `switch`, never generates code, and builds a fresh value with only the declared fields, so
10
10
  * undeclared keys (including an own `__proto__` made by `JSON.parse`) never reach the component.
11
11
  * `value-check.test.ts` proves it agrees with the Zod `valueValidator(schema, "strip")` on
12
12
  * thousands of generated schemas and values, and the format patterns are the ones Zod uses.
13
- * TAG-223 made it safe on live values and unvalidated schemas: arrays are read by index up to a
13
+ * It is safe on live values and unvalidated schemas: arrays are read by index up to a
14
14
  * `length` read once, and a field name outside `FIELD_NAME_SHAPE` (`__proto__`) is refused.
15
- * TAG-224 made string lengths count code points, the unit of Zod and JSON Schema.
16
- * TAG-304 builds objects with `Object.fromEntries`, which defines own data properties
15
+ * String lengths count code points, the unit of Zod and JSON Schema.
16
+ * It builds objects with `Object.fromEntries`, which defines own data properties
17
17
  * (CreateDataProperty, as `Object.defineProperty` does) instead of assigning: a page that froze
18
18
  * `Object.prototype` (SES lockdown) or put a setter on `Object.prototype.<field>` can neither make
19
19
  * the write throw nor swallow it. Recursion follows the schema: a cyclic schema from component code
20
20
  * (with a cyclic value) recurses until the engine's stack limit, and the `RangeError` is caught by
21
21
  * the callers that pass unvalidated schemas (`propertyToValue`, the runtime's `emit`); a depth
22
- * parameter would cost the SDK bundle about 29 B gz (TAG-304).
23
- * TAG-226 gave each call a budget of visited values and string length (`too-large`), so a live
22
+ * parameter would cost the SDK bundle about 29 B gz.
23
+ * Each call has a budget of visited values and string length (`too-large`), so a live
24
24
  * value with shared references cannot make it walk and copy millions of nodes.
25
- * TAG-238 reads its limits as the plain constants of `limits.ts`, not through `MANIFEST_LIMITS`, so a
25
+ * It reads its limits as the plain constants of `limits.ts`, not through `MANIFEST_LIMITS`, so a
26
26
  * component bundle that checks values does not carry the whole manifest limits object.
27
27
  */
28
28
  import { ARRAY_MAX_ITEMS, MAX_JSON_LENGTH, STRING_MAX_LENGTH } from "./limits.js";
@@ -65,7 +65,7 @@ function matchesFormat(text, format) {
65
65
  }
66
66
  /**
67
67
  * Length of a string in Unicode code points, the one unit of every string value limit in the
68
- * contract (TAG-224, `SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
68
+ * contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
69
69
  * and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
70
70
  * `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
71
71
  *
@@ -74,7 +74,7 @@ function matchesFormat(text, format) {
74
74
  */
75
75
  export function codePointLength(text) {
76
76
  // Each well-formed pair becomes one unit; lone surrogates stay one unit each. One native pass,
77
- // the smallest code for the size budget (decision 29) and fast on long BMP text.
77
+ // the smallest code for the size budget and fast on long BMP text.
78
78
  return text.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length;
79
79
  }
80
80
  function checkString(schema, value) {
@@ -118,17 +118,17 @@ function isRecord(value) {
118
118
  * with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
119
119
  * or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
120
120
  * does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
121
- * validated). String lengths are in code points (`codePointLength`, TAG-224), as in Zod and JSON
121
+ * validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
122
122
  * Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
123
123
  * without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
124
124
  * which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
125
125
  * live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
126
- * a declared field the value merely inherits is absent (TAG-304 parity test). Fields are defined
127
- * by `Object.fromEntries`, never assigned (TAG-304); items are appended with `push`, which only a
126
+ * a declared field the value merely inherits is absent (parity test). Fields are defined
127
+ * by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
128
128
  * page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
129
129
  * breaks every array, its own included). Recursion follows the schema, which nests at most
130
130
  * `valueSchemaDepth` levels once validated. Each call has a budget of
131
- * `MANIFEST_LIMITS.maxJsonLength` work units (TAG-226): every visited value costs 1, a string
131
+ * `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
132
132
  * also its UTF-16 length and an object also the number of fields its schema declares (each is
133
133
  * read, present or not); past the budget the call stops with `too-large`. A value costs at most
134
134
  * its JSON text length plus one per declared field it leaves out (each value takes at least one
@@ -147,7 +147,7 @@ function isRecord(value) {
147
147
  * and bounded by the budget.
148
148
  */
149
149
  export function checkValue(schema, value) {
150
- // One budget per call (TAG-226), local to it so a nested call (a page getter that sets another
150
+ // One budget per call, local to it so a nested call (a page getter that sets another
151
151
  // prop) neither resets nor spends it. A string is charged before it is checked: a text past
152
152
  // the budget is refused without being counted, and one within it costs no more than it pays.
153
153
  let left = MAX_JSON_LENGTH;
@@ -170,7 +170,7 @@ export function checkValue(schema, value) {
170
170
  case "array": {
171
171
  if (!Array.isArray(value))
172
172
  return refused("wrong-type");
173
- // Read once and bounded before the loop, then items by index (TAG-223): an own
173
+ // Read once and bounded before the loop, then items by index: an own
174
174
  // `Symbol.iterator` or an array Proxy could otherwise yield more items than the `length`
175
175
  // checked here, or never end. A Proxy's `length` may be anything, hence the type check and
176
176
  // the negated comparisons (NaN is refused as too long).
@@ -194,7 +194,7 @@ export function checkValue(schema, value) {
194
194
  if (!isRecord(value))
195
195
  return refused("wrong-type");
196
196
  const required = new Set(schema.required);
197
- // Collected and defined at the end (TAG-304): `result[name] = …` would throw on a frozen
197
+ // Collected and defined at the end: `result[name] = …` would throw on a frozen
198
198
  // `Object.prototype.toString` and feed a page setter on `Object.prototype[name]`.
199
199
  const entries = [];
200
200
  const declared = Object.entries(schema.fields);
@@ -204,7 +204,7 @@ export function checkValue(schema, value) {
204
204
  return refused("too-large");
205
205
  for (const [name, field] of declared) {
206
206
  // A validated schema always passes; the runtime also checks against the definition's
207
- // own declarations (component code, TAG-223), where a field named `__proto__` must never
207
+ // own declarations (component code), where a field named `__proto__` must never
208
208
  // reach the component. The result is an ordinary object with only declared own keys.
209
209
  if (!FIELD_NAME_SHAPE.test(name))
210
210
  return refused("not-allowed");
@@ -260,7 +260,7 @@ function nestingExceeds(text, limit) {
260
260
  *
261
261
  * Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
262
262
  * value limit, so not in code points) and the maximum nesting of arrays and
263
- * objects. Output: the parsed value (not yet checked against any schema: pass it to `checkValue`),
263
+ * objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
264
264
  * or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
265
265
  * Side effects: none.
266
266
  */
@@ -1 +1 @@
1
- {"version":3,"file":"value-check.js","sourceRoot":"","sources":["../src/value-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClF,OAAO,EAAE,eAAe,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/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * String format patterns of component contract v1 (TAG-205): ISO date, ISO date-time, e-mail and
2
+ * String format patterns of component contract v1: ISO date, ISO date-time, e-mail and
3
3
  * phone. Their own module so the Zod schemas (`value-schema.ts`, `props.ts`) and the Zod-free checks
4
- * (`value-check.ts`) share them without importing each other (the import cycle TAG-008 found).
4
+ * (`value-check.ts`) share them without importing each other (which avoids an import cycle).
5
5
  * `value-check.test.ts` proves they are the patterns Zod uses.
6
6
  */
7
7
  const DATE_SOURCE = "(?:(?:\\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])))";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Declarative value schemas of component contract v1 (TAG-201).
2
+ * Declarative value schemas of component contract v1.
3
3
  *
4
4
  * A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
5
5
  * code, regular expressions or expressions (golden rule 5). It types the payload of
@@ -9,11 +9,11 @@
9
9
  *
10
10
  * `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
11
11
  * data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
12
- * Its Zod-free twin for the runtime is `checkValue` (value-check.ts, TAG-205); a test keeps the two
12
+ * Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
13
13
  * in agreement.
14
14
  */
15
15
  import * as z from "zod";
16
- /** String formats the platform checks (email, url and tel come from TAG-703). */
16
+ /** String formats the platform checks (email, url and tel come). */
17
17
  export declare const STRING_FORMATS: readonly ["email", "url", "tel", "date", "date-time"];
18
18
  /** Enum value: printable text, bounded. */
19
19
  export declare const en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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAItB,CAAC;AAEH,2CAA2C;AAC3C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,sCAAsC;AACtC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,iFAAiF;AACjF,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AA0B7C;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,CAAC,OAAO,CA6BvF"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Declarative value schemas of component contract v1 (TAG-201).
2
+ * Declarative value schemas of component contract v1.
3
3
  *
4
4
  * A value schema describes a JSON value with plain data (`{ type: "number", min: 0 }`), never with
5
5
  * code, regular expressions or expressions (golden rule 5). It types the payload of
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * `valueValidator` turns a declared value schema into a Zod validator by interpretation of the
11
11
  * data (a `switch` over `type`), so the edge, the API and the browser validate the same way.
12
- * Its Zod-free twin for the runtime is `checkValue` (value-check.ts, TAG-205); a test keeps the two
12
+ * Its Zod-free twin for the runtime is `checkValue` (value-check.ts); a test keeps the two
13
13
  * in agreement.
14
14
  */
15
15
  import * as z from "zod";
@@ -18,7 +18,7 @@ import { MANIFEST_LIMITS } from "./limits.js";
18
18
  import { fieldNameSchema } from "./names.js";
19
19
  import { isAllowedWebUrl } from "./url-value.js";
20
20
  import { TEL_PATTERN } from "./value-patterns.js";
21
- /** String formats the platform checks (email, url and tel come from TAG-703). */
21
+ /** String formats the platform checks (email, url and tel come). */
22
22
  export const STRING_FORMATS = Object.freeze(["email", "url", "tel", "date", "date-time"]);
23
23
  const lengthSchema = z.int().min(0).max(MANIFEST_LIMITS.stringMaxLength);
24
24
  const itemsCountSchema = z.int().min(0).max(MANIFEST_LIMITS.arrayMaxItems);
@@ -169,7 +169,7 @@ function stringValidator(schema) {
169
169
  case "email":
170
170
  return z.email();
171
171
  case "url":
172
- // Same rule as a `url` prop with http and https (TAG-205): printable ASCII, no trimming.
172
+ // Same rule as a `url` prop with http and https: printable ASCII, no trimming.
173
173
  return z.string().refine((text) => isAllowedWebUrl(text), {
174
174
  // value-validator: checks a value, not the manifest
175
175
  error: "Invalid URL",
@@ -1 +1 @@
1
- {"version":3,"file":"value-schema.js","sourceRoot":"","sources":["../src/value-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,iFAAiF;AACjF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAU,CAAC,CAAC;AAEnG,MAAM,YAAY,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;AACzE,MAAM,gBAAgB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC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,CAAC;iBAChD,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC;iBACzB,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,eAAe,CAAC,aAAa,CAAC,CAAC;QAC3D,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC1C,MAAM,KAAK,GAA8B,EAAE,CAAC;YAC5C,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1D,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;gBACrD,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YACtE,CAAC;YACD,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,44 +1,44 @@
1
1
  /**
2
- * `@taggor/contract/zod-free` (TAG-205): the part of the contract the browser runtime may import as
2
+ * `@taggor/contract/zod-free`: the part of the contract the browser runtime may import as
3
3
  * values. Nothing reachable from here imports Zod (zod-free.test.ts walks the import graph), so the
4
4
  * runtime gets the prop type catalog, the prop ↔ attribute mapping, the reserved names and the
5
5
  * limits without the 23 to 33 KB gz of Zod. Everything else stays `import type`.
6
- * TAG-207 added the contract version verdict (`checkContractVersion`, the runtime warns with it),
7
- * `migrateManifest` and the `__proto__` guard. TAG-206 added `checkStyleReferences`, the check of
8
- * the parts and CSS variables a component's CSS uses against its manifest. TAG-223 exported
9
- * `deepFreeze`, which the runtime applies to the event details it dispatches. TAG-211 added the
10
- * language tag pattern, the `locale` attribute name the SDK's `useLocale` reads, and the bounded
11
- * path helpers its build-time `checkMessages` quotes names with. TAG-213 added the asset types,
12
- * the content address of an asset and `checkAssetUrl`, the check the SDK's `useFont` runs.
13
- * TAG-435 added the artifact key layout (`artifactKey`, `isPublicArtifactKey`), which the edge
14
- * imports from here. TAG-602 added the site key pattern and the KV key layout of the site
15
- * manifest (`site-manifest-keys.ts`), which the API writes and the edge reads. TAG-702 moved the
16
- * allowed-domain rules (`hostname.ts`, TAG-601) here from the API, so the edge's data ingest checks
17
- * the `Origin` of a request with the very same code the API normalized the list with. TAG-703
18
- * added the consent text (`consent-text.ts`), which the ingest rebuilds to check a proof's `text_hash`.
19
- * TAG-609 added the KV keys of the takedown denylist (`denylist-keys.ts`), written by the API and read by the edge.
20
- * TAG-611 added the runtime version rule and the release pointers (`runtime-pointers.ts`), written by the operator tooling and read by the edge.
21
- * TAG-622 added `allowsHostname`, the one place of the "empty list allows any domain only on staging" rule.
22
- * TAG-415 added the private preview token (`preview-token.ts`), signed by the API and verified by the edge.
23
- * TAG-801 added the metering layout of the loader hit point (`metering.ts`), written by the edge and read by the usage readers.
24
- * TAG-1623 exported `SITE_MANIFEST_MAX_COMPONENTS`, the most components a site manifest holds, which the loader checks its own copy against.
25
- * TAG-318 added the runtime error telemetry layout (`runtime-errors.ts`), written by the edge and read by the API.
26
- * TAG-1302 added `safeDiagnosticText`, which the portal shows API text through (no new dependency: `diagnostic-catalog.ts` imports only `freeze.ts`).
27
- * The SSR spike (ADR 0066, no ticket) keeps its KV layouts (cap mark, `ssr:off`, version-day ledger, server keys) out of this barrel, in `@taggor/contract/ssr-kv`: re-exporting them here moved the runtime's size gate by 3 B gz past its ceiling.
6
+ * It also exports: the contract version verdict (`checkContractVersion`, the runtime warns with
7
+ * it), `migrateManifest` and the `__proto__` guard; `checkStyleReferences`, the check of the parts
8
+ * and CSS variables a component's CSS uses against its manifest; `deepFreeze`, which the runtime
9
+ * applies to the event details it dispatches; the language tag pattern, the `locale` attribute
10
+ * name the SDK's `useLocale` reads, and the bounded path helpers its build-time `checkMessages`
11
+ * quotes names with; the asset types, the content address of an asset and `checkAssetUrl`, the
12
+ * check the SDK's `useFont` runs; the artifact key layout (`artifactKey`, `isPublicArtifactKey`),
13
+ * which the edge imports from here; the site key pattern and the KV key layout of the site
14
+ * manifest (`site-manifest-keys.ts`), which the API writes and the edge reads; the allowed-domain
15
+ * rules (`hostname.ts`), shared with the API so the edge's data ingest checks the `Origin` of a
16
+ * request with the very same code the API normalized the list with; the KV keys of
17
+ * the takedown denylist (`denylist-keys.ts`), written by the API and read by the edge; the
18
+ * runtime version rule and the release pointers (`runtime-pointers.ts`), written by the operator
19
+ * tooling and read by the edge; `allowsHostname`, the one place of the "empty list allows any
20
+ * domain only on staging" rule; the private preview token (`preview-token.ts`), signed by the API
21
+ * and verified by the edge; the metering layout of the loader hit point (`metering.ts`), written
22
+ * by the edge and read by the usage readers; `SITE_MANIFEST_MAX_COMPONENTS`, the most components a
23
+ * site manifest holds, which the loader checks its own copy against; the runtime error telemetry
24
+ * layout (`runtime-errors.ts`), written by the edge and read by the API; and `safeDiagnosticText`,
25
+ * which the portal shows API text through (no new dependency: `diagnostic-catalog.ts` imports
26
+ * only `freeze.ts`).
27
+ * The server-rendering KV layouts (cap mark, `ssr:off`, version-day ledger, server keys) stay out of this barrel, in `@taggor/contract/ssr-kv`: re-exporting them here moved the runtime's size gate by 3 B gz past its ceiling.
28
28
  */
29
29
  export { CREDENTIAL_FIELD_NAME, findCredentialCollectionField, isCredentialFieldName, } from "./credential-fields.js";
30
- export { CONSENT_LOCALES, consentHashInput, consentLabelText, isConsentLocale, type ConsentLocale, } from "./consent-text.js";
31
30
  export { safeDiagnosticText } from "./diagnostic-catalog.js";
32
31
  export { DATA_API_LIMITS, MANIFEST_LIMITS, RUNTIME_LIMITS, WORKSPACE_LIMITS } from "./limits.js";
33
32
  export { ARTIFACT_KEY_PATTERN, ASSET_KEY_PREFIX, ARTIFACT_KIND_NAMES, ARTIFACT_KINDS, SHA256_HEX_PATTERN, artifactKey, assetKey, isConsistentArtifact, isPublicArtifactKey, isPublicAssetKey, parseArtifactKey, parseAssetKey, type ArtifactBucket, type ArtifactKind, type ArtifactKindLayout, type ParsedArtifactKey, type ParsedAssetKey, } from "./artifact-keys.js";
34
33
  export { ASSET_HASH_PATTERN, ASSET_PATH_PATTERN, ASSET_SOURCE_EXTENSIONS, ASSET_TYPES, assetTypeOfPath, checkAssetUrl, type AssetType, type CheckedAssetUrl, } from "./assets.js";
35
34
  export { boundedPath, boundedSegment } from "./bounded-path.js";
35
+ export { EVENT_PARAM_LIMITS, EVENT_PARAM_NAME_PATTERN, normalizeEventParams, type EventParams, } from "./event-params.js";
36
36
  export { LOCALE_ATTRIBUTE, LOCALE_TAG_PATTERN } from "./locale-tag.js";
37
37
  export { CONTRACT_MAJOR, CONTRACT_MINOR, CONTRACT_VERSION, CONTRACT_VERSION_POLICY, SUPPORT_WINDOW_MONTHS, checkContractVersion, classifyContractVersion, contractVersionMessage, contractVersionPattern, parseContractVersion, type ContractMajorSupport, type ContractVersion, type ContractVersionCheck, type ContractVersionClass, type ContractVersionCode, type ContractVersionConsumer, type ContractVersionContext, type ContractVersionKind, type ContractVersionPolicy, type ContractVersionProblem, } from "./contract-version.js";
38
38
  export { denyAssetKvKey, denyBundleKvKey, denySiteKvKey } from "./denylist-keys.js";
39
39
  export { MANIFEST_CHANNELS, SITE_KEY_PATTERN, TURNSTILE_SITE_KEY_PATTERN, isTurnstileSiteKey, emptySiteManifest, isSiteKey, manifestKvKey, SUSPECT_POLICIES, RESPECT_GPC_DEFAULT, DAILY_CAP_DEFAULT, DAILY_CAP_MIN, DAILY_CAP_HARD_MAX, type SuspectPolicy, dailyCapKvKey, DAILY_CAP_MARK_TTL_SECONDS, submissionCapKvKey, SUBMISSION_CAP_MARK_TTL_SECONDS, viewCapKvKey, publishedKvKey, SITE_MANIFEST_MAX_COMPONENTS, type EmptySiteManifest, type ManifestChannel, } from "./site-manifest-keys.js";
40
40
  export { DOMAIN_REJECTIONS, HOSTNAME_MAX_LENGTH, allowsHostname, matchesAllowedDomain, normalizeAllowedDomain, normalizeHostname, type DomainRejection, type DomainResult, } from "./hostname.js";
41
- export { COMPONENT_EVENT_KINDS, DEVICE_CLASSES, SSR_POINT_KINDS, SSR_FAILED_POINT_KIND, type SsrPointKind, EVENT_BEACON_CAP_PER_PAGE, EVENT_SAMPLE_RATE_MIN, HOST_ALLOWANCES, INTERNAL_READ_HEADER, TRAFFIC_CLASSES, UNSAMPLED_EVENT_KINDS, countsTowardUsage, eventWeight, shouldSendEvent, usageMonthStart, type ComponentEventKind, type DeviceClass, type HostAllowance, type TrafficClass, } from "./metering.js";
41
+ export { COMPONENT_EVENT_KINDS, DEVICE_CLASSES, SSR_POINT_KINDS, SSR_FAILED_POINT_KIND, type SsrPointKind, EVENT_BEACON_CAP_PER_PAGE, EVENT_PARAM_POINT_KIND, EVENT_SAMPLE_RATE_MIN, HOST_ALLOWANCES, INTERNAL_READ_HEADER, TRAFFIC_CLASSES, UNSAMPLED_EVENT_KINDS, countsTowardUsage, eventWeight, shouldSendEvent, usageMonthStart, type ComponentEventKind, type DeviceClass, type HostAllowance, type TrafficClass, } from "./metering.js";
42
42
  export { DEFAULT_RUNTIME_RING, RUNTIME_RINGS, RUNTIME_VERSION_MAX_LENGTH, isRuntimeRing, isRuntimeVersion, parseRuntimePointer, runtimePointerKvKey, serializeRuntimePointer, type RuntimePointer, type RuntimeRing, } from "./runtime-pointers.js";
43
43
  export { HOLD_DEFAULT_SECONDS, HOLD_MAX_SECONDS, HOLD_REGION_CLASS, holdCss, isHoldSeconds, } from "./early-loading.js";
44
44
  export { isPreviewClaims, issuePreviewToken, PREVIEW_TOKEN_MAX_LENGTH, PREVIEW_TTL_MS, previewExpiry, verifyPreviewToken, type PreviewClaims, type PreviewSigner, } from "./preview-token.js";
@@ -1 +1 @@
1
- {"version":3,"file":"zod-free.d.ts","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,KAAK,aAAa,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,WAAW,EACX,eAAe,EACf,aAAa,EACb,KAAK,SAAS,EACd,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK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E,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,qCAAqC,EACrC,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"zod-free.d.ts","sourceRoot":"","sources":["../src/zod-free.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,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